diff --git a/management-ui/package-lock.json b/management-ui/package-lock.json index 96a62d7..905fe97 100644 --- a/management-ui/package-lock.json +++ b/management-ui/package-lock.json @@ -18,7 +18,7 @@ "hls.js": "^1.6.13", "leaflet": "^1.9.4", "lucide-vue-next": "^0.525.0", - "reka-ui": "^2.5.0", + "reka-ui": "^2.6.1", "tailwind-merge": "^3.3.1", "tailwindcss": "^4.1.11", "tw-animate-css": "^1.3.6", @@ -2462,9 +2462,9 @@ "license": "MIT" }, "node_modules/reka-ui": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/reka-ui/-/reka-ui-2.5.0.tgz", - "integrity": "sha512-81aMAmJeVCy2k0E6x7n1kypDY6aM1ldLis5+zcdV1/JtoAlSDck5OBsyLRJU9CfgbrQp1ImnRnBSmC4fZ2fkZQ==", + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/reka-ui/-/reka-ui-2.6.1.tgz", + "integrity": "sha512-XK7cJDQoNuGXfCNzBBo/81Yg/OgjPwvbabnlzXG2VsdSgNsT6iIkuPBPr+C0Shs+3bb0x0lbPvgQAhMSCKm5Ww==", "license": "MIT", "dependencies": { "@floating-ui/dom": "^1.6.13", diff --git a/management-ui/package.json b/management-ui/package.json index 34871ce..886af13 100644 --- a/management-ui/package.json +++ b/management-ui/package.json @@ -19,7 +19,7 @@ "hls.js": "^1.6.13", "leaflet": "^1.9.4", "lucide-vue-next": "^0.525.0", - "reka-ui": "^2.5.0", + "reka-ui": "^2.6.1", "tailwind-merge": "^3.3.1", "tailwindcss": "^4.1.11", "tw-animate-css": "^1.3.6", diff --git a/management-ui/src/components/ui/button/index.ts b/management-ui/src/components/ui/button/index.ts index bc13b1c..e9ef548 100644 --- a/management-ui/src/components/ui/button/index.ts +++ b/management-ui/src/components/ui/button/index.ts @@ -9,22 +9,24 @@ export const buttonVariants = cva( variants: { variant: { default: - "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90", + "bg-primary text-primary-foreground hover:bg-primary/90", destructive: - "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60", + "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60", outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50", secondary: - "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80", + "bg-secondary text-secondary-foreground hover:bg-secondary/80", ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50", link: "text-primary underline-offset-4 hover:underline", }, size: { - default: "h-9 px-4 py-2 has-[>svg]:px-3", - sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5", - lg: "h-10 rounded-md px-6 has-[>svg]:px-4", - icon: "size-9", + "default": "h-9 px-4 py-2 has-[>svg]:px-3", + "sm": "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5", + "lg": "h-10 rounded-md px-6 has-[>svg]:px-4", + "icon": "size-9", + "icon-sm": "size-8", + "icon-lg": "size-10", }, }, defaultVariants: { @@ -33,5 +35,4 @@ export const buttonVariants = cva( }, }, ) - export type ButtonVariants = VariantProps diff --git a/management-ui/src/components/ui/pagination/Pagination.vue b/management-ui/src/components/ui/pagination/Pagination.vue new file mode 100644 index 0000000..29f26f5 --- /dev/null +++ b/management-ui/src/components/ui/pagination/Pagination.vue @@ -0,0 +1,26 @@ + + + diff --git a/management-ui/src/components/ui/pagination/PaginationContent.vue b/management-ui/src/components/ui/pagination/PaginationContent.vue new file mode 100644 index 0000000..3e672a0 --- /dev/null +++ b/management-ui/src/components/ui/pagination/PaginationContent.vue @@ -0,0 +1,22 @@ + + + diff --git a/management-ui/src/components/ui/pagination/PaginationEllipsis.vue b/management-ui/src/components/ui/pagination/PaginationEllipsis.vue new file mode 100644 index 0000000..5babe78 --- /dev/null +++ b/management-ui/src/components/ui/pagination/PaginationEllipsis.vue @@ -0,0 +1,25 @@ + + + diff --git a/management-ui/src/components/ui/pagination/PaginationFirst.vue b/management-ui/src/components/ui/pagination/PaginationFirst.vue new file mode 100644 index 0000000..d72cc34 --- /dev/null +++ b/management-ui/src/components/ui/pagination/PaginationFirst.vue @@ -0,0 +1,33 @@ + + + diff --git a/management-ui/src/components/ui/pagination/PaginationItem.vue b/management-ui/src/components/ui/pagination/PaginationItem.vue new file mode 100644 index 0000000..4c8b502 --- /dev/null +++ b/management-ui/src/components/ui/pagination/PaginationItem.vue @@ -0,0 +1,34 @@ + + + diff --git a/management-ui/src/components/ui/pagination/PaginationLast.vue b/management-ui/src/components/ui/pagination/PaginationLast.vue new file mode 100644 index 0000000..c990eb4 --- /dev/null +++ b/management-ui/src/components/ui/pagination/PaginationLast.vue @@ -0,0 +1,33 @@ + + + diff --git a/management-ui/src/components/ui/pagination/PaginationNext.vue b/management-ui/src/components/ui/pagination/PaginationNext.vue new file mode 100644 index 0000000..9d06cda --- /dev/null +++ b/management-ui/src/components/ui/pagination/PaginationNext.vue @@ -0,0 +1,33 @@ + + + diff --git a/management-ui/src/components/ui/pagination/PaginationPrevious.vue b/management-ui/src/components/ui/pagination/PaginationPrevious.vue new file mode 100644 index 0000000..a63b08e --- /dev/null +++ b/management-ui/src/components/ui/pagination/PaginationPrevious.vue @@ -0,0 +1,33 @@ + + + diff --git a/management-ui/src/components/ui/pagination/index.ts b/management-ui/src/components/ui/pagination/index.ts new file mode 100644 index 0000000..58e6d78 --- /dev/null +++ b/management-ui/src/components/ui/pagination/index.ts @@ -0,0 +1,8 @@ +export { default as Pagination } from "./Pagination.vue" +export { default as PaginationContent } from "./PaginationContent.vue" +export { default as PaginationEllipsis } from "./PaginationEllipsis.vue" +export { default as PaginationFirst } from "./PaginationFirst.vue" +export { default as PaginationItem } from "./PaginationItem.vue" +export { default as PaginationLast } from "./PaginationLast.vue" +export { default as PaginationNext } from "./PaginationNext.vue" +export { default as PaginationPrevious } from "./PaginationPrevious.vue" diff --git a/management-ui/src/customcompometns/DeviceCertificateDialog.vue b/management-ui/src/customcompometns/DeviceCertificateDialog.vue index a34611e..7275e6e 100644 --- a/management-ui/src/customcompometns/DeviceCertificateDialog.vue +++ b/management-ui/src/customcompometns/DeviceCertificateDialog.vue @@ -17,7 +17,7 @@ import type { ColumnDef } from '@tanstack/vue-table' const props = defineProps({ modelValue: { type: Boolean as PropType, required: true }, - device: { type: Object as PropType, required: false }, + device: { type: Object as PropType, required: false }, }) const emit = defineEmits<{ @@ -39,8 +39,8 @@ type DeviceCertListDto = { certs: DeviceCertDto[] } // --- local state --- const loading = ref(false) -const error = ref(null) -const certs = ref([]) +const error = ref(null) +const certs = ref([]) const guid = computed(() => props.device?.guid ?? '') @@ -55,8 +55,8 @@ const columns: ColumnDef[] = [ { accessorKey: 'issuerCN', header: 'Issuer CN' }, { accessorKey: 'subjectDN', header: 'Subject DN' }, { accessorKey: 'notBefore', header: 'Not Before', cell: ({ row }) => fmt(row.original.notBefore) }, - { accessorKey: 'notAfter', header: 'Not After', cell: ({ row }) => fmt(row.original.notAfter) }, - { accessorKey: 'createdAt', header: 'Created', cell: ({ row }) => fmt(row.original.createdAt) }, + { accessorKey: 'notAfter', header: 'Not After', cell: ({ row }) => fmt(row.original.notAfter) }, + { accessorKey: 'createdAt', header: 'Created', cell: ({ row }) => fmt(row.original.createdAt) }, ] async function loadCerts() { @@ -91,7 +91,7 @@ function close() {