diff --git a/ext/bg/js/settings/anki.js b/ext/bg/js/settings/anki-controller.js similarity index 100% rename from ext/bg/js/settings/anki.js rename to ext/bg/js/settings/anki-controller.js diff --git a/ext/bg/js/settings/anki-templates.js b/ext/bg/js/settings/anki-templates-controller.js similarity index 100% rename from ext/bg/js/settings/anki-templates.js rename to ext/bg/js/settings/anki-templates-controller.js diff --git a/ext/bg/js/settings/audio.js b/ext/bg/js/settings/audio-controller.js similarity index 100% rename from ext/bg/js/settings/audio.js rename to ext/bg/js/settings/audio-controller.js diff --git a/ext/bg/js/settings/backup.js b/ext/bg/js/settings/backup-controller.js similarity index 99% rename from ext/bg/js/settings/backup.js rename to ext/bg/js/settings/backup-controller.js index 57963cec..ac1294e7 100644 --- a/ext/bg/js/settings/backup.js +++ b/ext/bg/js/settings/backup-controller.js @@ -20,7 +20,7 @@ * api */ -class SettingsBackup { +class BackupController { constructor(settingsController) { this._settingsController = settingsController; this._settingsExportToken = null; diff --git a/ext/bg/js/settings/dictionaries.js b/ext/bg/js/settings/dictionary-controller.js similarity index 100% rename from ext/bg/js/settings/dictionaries.js rename to ext/bg/js/settings/dictionary-controller.js diff --git a/ext/bg/js/settings/main.js b/ext/bg/js/settings/main.js index 4932586b..37c6375d 100644 --- a/ext/bg/js/settings/main.js +++ b/ext/bg/js/settings/main.js @@ -19,6 +19,7 @@ * AnkiController * AnkiTemplatesController * AudioController + * BackupController * ClipboardPopupsController * DictionaryController * DictionaryImportController @@ -26,7 +27,6 @@ * PopupPreviewController * ProfileController * ScanInputsController - * SettingsBackup * SettingsController * StorageController * api @@ -90,7 +90,7 @@ async function setupEnvironmentInfo() { const ankiTemplatesController = new AnkiTemplatesController(settingsController, ankiController); ankiTemplatesController.prepare(); - const settingsBackup = new SettingsBackup(settingsController); + const settingsBackup = new BackupController(settingsController); settingsBackup.prepare(); const scanInputsController = new ScanInputsController(settingsController); diff --git a/ext/bg/js/settings/popup-preview.js b/ext/bg/js/settings/popup-preview-controller.js similarity index 100% rename from ext/bg/js/settings/popup-preview.js rename to ext/bg/js/settings/popup-preview-controller.js diff --git a/ext/bg/js/settings/profiles.js b/ext/bg/js/settings/profile-controller.js similarity index 100% rename from ext/bg/js/settings/profiles.js rename to ext/bg/js/settings/profile-controller.js diff --git a/ext/bg/js/settings/storage.js b/ext/bg/js/settings/storage-controller.js similarity index 100% rename from ext/bg/js/settings/storage.js rename to ext/bg/js/settings/storage-controller.js diff --git a/ext/bg/settings.html b/ext/bg/settings.html index ae89ca1f..b01fbf73 100644 --- a/ext/bg/settings.html +++ b/ext/bg/settings.html @@ -1165,39 +1165,40 @@ + + + + + + + + - - - - - - - - + + + + + + + - + - - - - + + - - - - - +