zero-knowledge file sharing
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix duration text

Juliet 5aa00bc7 0a6e175d

+3 -3
+3 -3
web/src/lib/utils.ts
··· 88 88 export function formatExpiry(unixSec: number): string { 89 89 const secs = unixSec - Math.floor(Date.now() / 1000); 90 90 if (secs < 60) return "expires in less than a minute"; 91 - if (secs < 3600) return `expires in ${Math.floor(secs / 60)}m`; 92 - if (secs < 86400) return `expires in ${Math.floor(secs / 3600)}h`; 93 - return `expires in ${Math.floor(secs / 86400)}d`; 91 + if (secs < 3600) return `expires in ${Math.floor(secs / 60)} minutes`; 92 + if (secs < 86400) return `expires in ${Math.floor(secs / 3600)} hours`; 93 + return `expires in ${Math.floor(secs / 86400)} days`; 94 94 } 95 95 96 96 export function triggerDownload(blob: Blob, fileName: string) {