UI review, stage 1: 401 on /auth/*, expiring certs, VPN netmask, formatBytes
401 from change-password/change-username no longer logs the user out; Analytics reads the plain /profiles array; VPN settings send vpn_netmask with vpn_network (the API reset it to 255.255.255.0); formatBytes guards null/NaN/negative; Certificates sorts 0 days correctly. Vitest added for formatters, CIDR parsing and the 401 interceptor. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3fac8d70d8
commit
b78de98f26
11 files changed
+672
-57
No files matched your search
@@ -234,8 +234,8 @@ const categorized = computed(() => {
|
||||
});
|
||||
|
||||
// Sort logic
|
||||
active.sort((a,b) => (a.days_remaining || 9999) - (b.days_remaining || 9999));
|
||||
expired.sort((a,b) => (b.days_remaining || -9999) - (a.days_remaining || -9999));
|
||||
active.sort((a,b) => (a.days_remaining ?? 9999) - (b.days_remaining ?? 9999));
|
||||
expired.sort((a,b) => (b.days_remaining ?? -9999) - (a.days_remaining ?? -9999));
|
||||
|
||||
return { active, expired };
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user