feat: show total net usage and connection mode in server page

This commit is contained in:
Shahrad Elahi
2023-12-21 17:54:10 +03:30
parent 212363c7fa
commit 9dd427f90c
5 changed files with 92 additions and 25 deletions

View File

@@ -3,12 +3,12 @@
export let showInHover: boolean = false;
export let rootClass: string | undefined = undefined;
export let value: string;
export let value: string | number;
let className: string | undefined = undefined;
export { className as class };
const handleCopy = () => {
navigator.clipboard.writeText(value);
navigator.clipboard.writeText(value?.toString() || '');
};
</script>

View File

@@ -11,6 +11,7 @@ export const badgeVariants = tv({
destructive:
'bg-destructive hover:bg-destructive/80 border-transparent text-destructive-foreground',
outline: 'text-foreground',
tor: 'bg-purple-700 hover:bg-purple-700/80 border-transparent text-white',
},
},
defaultVariants: {