Add dashboard version button and self-update UI wiring

This commit is contained in:
Krystie
2026-05-05 17:36:50 -07:00
parent 95b137bf17
commit a216dd882d
3 changed files with 17 additions and 2 deletions

View File

@@ -54,11 +54,25 @@ module.exports = {
},
},
{
// Frontend assets use browser globals
// Browser-side assets (client JS)
files: ['assets/**/*.js', 'frontend/**/*.js'],
env: {
browser: true,
es2021: true,
node: false,
},
globals: {
// Common dashboard globals from status/index.html context
apiUrl: 'readonly',
API_BASE_URL: 'readonly',
CONFIG: 'readonly',
// Client-side dashboard classes (loaded via script tags)
ErrorHandler: 'readonly',
ProgressTracker: 'readonly',
ThemeAdapter: 'readonly',
DnsTemplateSelector: 'readonly',
TourManager: 'readonly',
TooltipDefinitions: 'readonly',
},
rules: {
'no-undef': 'warn',

File diff suppressed because one or more lines are too long

View File

@@ -378,6 +378,7 @@
} else {
dcUpdateBadge.style.display = 'none';
dcUpdateDetails.style.display = 'none';
await dcLoadVersion();
if (!silent) dcShowStatus('You are running the latest version.', 'success');
}