Enhanced setup and settings pages with full configuration
- Extended SetupRequest model to include all configuration fields - Updated setup API endpoint to handle comprehensive configuration - Created new setup.html with organized configuration sections - Enhanced config modal in index.html with all settings - Updated JavaScript modules to use unified config API - Added backup configuration section - Documented new features in features.md and instructions.md
This commit is contained in:
@@ -56,6 +56,9 @@ AniWorld.ConfigManager = (function() {
|
||||
// NFO configuration
|
||||
bindNFOEvents();
|
||||
|
||||
// Backup configuration
|
||||
bindBackupEvents();
|
||||
|
||||
// Status panel
|
||||
const closeStatus = document.getElementById('close-status');
|
||||
if (closeStatus) {
|
||||
@@ -118,8 +121,16 @@ AniWorld.ConfigManager = (function() {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Bind NFO config events
|
||||
/** * Bind backup config events
|
||||
*/
|
||||
function bindBackupEvents() {
|
||||
const saveBackup = document.getElementById('save-backup-config');
|
||||
if (saveBackup) {
|
||||
saveBackup.addEventListener('click', AniWorld.MainConfig.saveBackupConfig);
|
||||
}
|
||||
}
|
||||
|
||||
/** * Bind NFO config events
|
||||
*/
|
||||
function bindNFOEvents() {
|
||||
const saveNFO = document.getElementById('save-nfo-config');
|
||||
|
||||
Reference in New Issue
Block a user