feat(monitor): proportion-based overall status + reusable auto-refresh

- Change overall status logic: >50% failed = UNAVAILABLE, any failed
  or degraded = DEGRADED, all ok = OPERATIONAL
- Extract useAutoRefresh composable with localStorage persistence
- Create AutoRefreshButton dropdown component (reusable)
- Integrate auto-refresh into channel status page via MonitorHero
This commit is contained in:
erio
2026-04-23 23:34:58 +08:00
parent 5e060b2222
commit 0dcc0e0504
6 changed files with 250 additions and 38 deletions

View File

@@ -308,6 +308,12 @@ export default {
saving: 'Saving...',
selectedCount: '({count} selected)',
refresh: 'Refresh',
autoRefresh: {
title: 'Auto Refresh',
enable: 'Enable auto refresh',
countdown: 'Auto refresh: {seconds}s',
seconds: '{n} seconds',
},
view: 'View',
settings: 'Settings',
chooseFile: 'Choose File',