basic file sharing

This commit is contained in:
2025-08-29 15:32:23 +02:00
parent c8b52a5b3b
commit 284d805590
84 changed files with 3969 additions and 375 deletions

View File

@@ -27,3 +27,13 @@ export function trim(str: string, char: string) {
return start > 0 || end < str.length ? str.substring(start, end) : str;
}
export function copyToClipboard(content: string): boolean {
navigator.clipboard.writeText(content);
return navigator.clipboard != null;
}
export function capitalize(s: string): string {
return s.slice(0, 1).toUpperCase() + s.slice(1);
}