aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/settings
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-09-09 17:37:58 -0400
committerGitHub <noreply@github.com>2020-09-09 17:37:58 -0400
commit8408bee90a0a78a77e7c5834e633a0387f9f434c (patch)
tree4cdb1021b75b32ed7b850503e48870de12cb7831 /ext/bg/js/settings
parent0d00f7e1cf8a0fa1e2b1aa2732bceaae39f4e23c (diff)
Settings controller file renaming (#794)
* Rename SettingsBackup to BackupController * Rename files to more closely match classes * Improve organization of script imports
Diffstat (limited to 'ext/bg/js/settings')
-rw-r--r--ext/bg/js/settings/anki-controller.js (renamed from ext/bg/js/settings/anki.js)0
-rw-r--r--ext/bg/js/settings/anki-templates-controller.js (renamed from ext/bg/js/settings/anki-templates.js)0
-rw-r--r--ext/bg/js/settings/audio-controller.js (renamed from ext/bg/js/settings/audio.js)0
-rw-r--r--ext/bg/js/settings/backup-controller.js (renamed from ext/bg/js/settings/backup.js)2
-rw-r--r--ext/bg/js/settings/dictionary-controller.js (renamed from ext/bg/js/settings/dictionaries.js)0
-rw-r--r--ext/bg/js/settings/main.js4
-rw-r--r--ext/bg/js/settings/popup-preview-controller.js (renamed from ext/bg/js/settings/popup-preview.js)0
-rw-r--r--ext/bg/js/settings/profile-controller.js (renamed from ext/bg/js/settings/profiles.js)0
-rw-r--r--ext/bg/js/settings/storage-controller.js (renamed from ext/bg/js/settings/storage.js)0
9 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/settings/anki.js b/ext/bg/js/settings/anki-controller.js
index 0965e633..0965e633 100644
--- a/ext/bg/js/settings/anki.js
+++ b/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
index 87f13100..87f13100 100644
--- a/ext/bg/js/settings/anki-templates.js
+++ b/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
index d389acb5..d389acb5 100644
--- a/ext/bg/js/settings/audio.js
+++ b/ext/bg/js/settings/audio-controller.js
diff --git a/ext/bg/js/settings/backup.js b/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
index 9292d2c4..9292d2c4 100644
--- a/ext/bg/js/settings/dictionaries.js
+++ b/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
index d4145b76..d4145b76 100644
--- a/ext/bg/js/settings/popup-preview.js
+++ b/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
index a32c03d1..a32c03d1 100644
--- a/ext/bg/js/settings/profiles.js
+++ b/ext/bg/js/settings/profile-controller.js
diff --git a/ext/bg/js/settings/storage.js b/ext/bg/js/settings/storage-controller.js
index 24c6d7ef..24c6d7ef 100644
--- a/ext/bg/js/settings/storage.js
+++ b/ext/bg/js/settings/storage-controller.js