-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
1,242 additions
and
28 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<script setup lang="ts"> | ||
const props = defineProps<{ | ||
value: string | ||
label?: string | ||
copyValueLabel?: string | ||
}>() | ||
function copyValue() { | ||
navigator.clipboard.writeText(props.value) | ||
} | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<p class="mb-2 text-sm font-medium leading-6 text-gray-700 dark:text-gray-200" v-if="label"> | ||
{{ label }} | ||
</p> | ||
<div | ||
class="text-md flex flex-row rounded-md border border-gray-300 bg-white text-gray-700 transition-colors duration-200 dark:border-gray-600 dark:bg-gray-950 dark:text-gray-200 sm:text-sm sm:leading-6" | ||
> | ||
<div class="no-scrollbar mt-0 max-w-full flex-grow overflow-x-scroll px-3 py-1.5"> | ||
{{ value }} | ||
</div> | ||
<button | ||
class="rounded-r-md bg-gray-50 px-3 py-1.5 duration-200 hover:bg-gray-200 focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 focus:ring-offset-white focus:duration-0 dark:bg-gray-950 dark:hover:bg-gray-800 dark:focus:ring-primary-300 dark:focus:ring-offset-primary-950" | ||
@click="copyValue()" | ||
> | ||
<font-awesome-icon | ||
:icon="['fas', 'clone']" | ||
aria-hidden="true" | ||
:class="['h-4', 'w-4', copyValueLabel ? 'mr-2' : '']" | ||
/> | ||
{{ copyValueLabel }} | ||
</button> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style> | ||
.no-scrollbar::-webkit-scrollbar { | ||
display: none; | ||
} | ||
.no-scrollbar { | ||
-ms-overflow-style: none; | ||
scrollbar-width: none; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<script setup lang="ts"> | ||
import { NeProgressBar } from '@nethserver/vue-tailwind-lib' | ||
import { range } from 'lodash' | ||
const props = defineProps<{ | ||
totalSteps: number | ||
currentStep: number | ||
stepLabel: string | ||
}>() | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<NeProgressBar :progress="(currentStep / totalSteps) * 100" size="sm" /> | ||
<div class="mt-2 flex flex-row"> | ||
<div v-for="i in range(1, totalSteps + 1)" :key="i" class="flex grow basis-0 justify-center"> | ||
<p class="text-xs font-semibold text-primary-400" v-if="i == currentStep"> | ||
Step {{ currentStep }}/{{ totalSteps }} | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.