Improve client accessibility and bump Harbor versions
Build and Deploy Gateway / build-and-push (push) Successful in 14s
Build and Deploy Gateway / deploy (push) Successful in 6s

This commit is contained in:
2026-07-12 13:24:05 +03:00
parent 5b3d288405
commit 24fda3e34e
7 changed files with 215 additions and 30 deletions
+9
View File
@@ -98,6 +98,15 @@ 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);