Add dashboard version button and self-update UI wiring
This commit is contained in:
@@ -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',
|
||||
|
||||
2
status/dist/features.js
vendored
2
status/dist/features.js
vendored
File diff suppressed because one or more lines are too long
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user