Simplify client overview access controls and layout
Build and Deploy Gateway / build-and-push (push) Successful in 14s
Build and Deploy Gateway / deploy (push) Successful in 7s

This commit is contained in:
2026-07-14 22:06:38 +03:00
parent e5a69dcb73
commit 162ef861d7
7 changed files with 104 additions and 165 deletions
-9
View File
@@ -98,15 +98,6 @@ export async function copyText(text, options = {}) {
await clipboard.writeText(text);
}
export function accessTabForKey(tabs, current, key) {
const index = tabs.indexOf(current);
if (key === 'Home') return tabs[0];
if (key === 'End') return tabs.at(-1);
if (key === 'ArrowLeft') return tabs[(index - 1 + tabs.length) % tabs.length];
if (key === 'ArrowRight') return tabs[(index + 1) % tabs.length];
return current;
}
export function subscriptionUsage(userInfo = {}) {
const upload = Math.max(0, Number(userInfo.upload) || 0);
const download = Math.max(0, Number(userInfo.download) || 0);