Settings controller file renaming (#794)

* Rename SettingsBackup to BackupController

* Rename files to more closely match classes

* Improve organization of script imports
This commit is contained in:
toasted-nutbread 2020-09-09 17:37:58 -04:00 committed by GitHub
parent 0d00f7e1cf
commit 8408bee90a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 22 additions and 21 deletions

View File

@ -20,7 +20,7 @@
* api * api
*/ */
class SettingsBackup { class BackupController {
constructor(settingsController) { constructor(settingsController) {
this._settingsController = settingsController; this._settingsController = settingsController;
this._settingsExportToken = null; this._settingsExportToken = null;

View File

@ -19,6 +19,7 @@
* AnkiController * AnkiController
* AnkiTemplatesController * AnkiTemplatesController
* AudioController * AudioController
* BackupController
* ClipboardPopupsController * ClipboardPopupsController
* DictionaryController * DictionaryController
* DictionaryImportController * DictionaryImportController
@ -26,7 +27,6 @@
* PopupPreviewController * PopupPreviewController
* ProfileController * ProfileController
* ScanInputsController * ScanInputsController
* SettingsBackup
* SettingsController * SettingsController
* StorageController * StorageController
* api * api
@ -90,7 +90,7 @@ async function setupEnvironmentInfo() {
const ankiTemplatesController = new AnkiTemplatesController(settingsController, ankiController); const ankiTemplatesController = new AnkiTemplatesController(settingsController, ankiController);
ankiTemplatesController.prepare(); ankiTemplatesController.prepare();
const settingsBackup = new SettingsBackup(settingsController); const settingsBackup = new BackupController(settingsController);
settingsBackup.prepare(); settingsBackup.prepare();
const scanInputsController = new ScanInputsController(settingsController); const scanInputsController = new ScanInputsController(settingsController);

View File

@ -1165,39 +1165,40 @@
<script src="/mixed/js/api.js"></script> <script src="/mixed/js/api.js"></script>
<script src="/mixed/js/japanese.js"></script> <script src="/mixed/js/japanese.js"></script>
<script src="/mixed/js/audio-system.js"></script>
<script src="/mixed/js/cache-map.js"></script>
<script src="/mixed/js/dictionary-data-util.js"></script>
<script src="/mixed/js/document-util.js"></script>
<script src="/mixed/js/dom-data-binder.js"></script>
<script src="/mixed/js/object-property-accessor.js"></script>
<script src="/mixed/js/task-accumulator.js"></script>
<script src="/bg/js/anki.js"></script> <script src="/bg/js/anki.js"></script>
<script src="/bg/js/anki-note-builder.js"></script> <script src="/bg/js/anki-note-builder.js"></script>
<script src="/bg/js/options.js"></script> <script src="/bg/js/options.js"></script>
<script src="/bg/js/util.js"></script> <script src="/bg/js/util.js"></script>
<script src="/mixed/js/audio-system.js"></script>
<script src="/mixed/js/document-util.js"></script>
<script src="/bg/js/database.js"></script> <script src="/bg/js/database.js"></script>
<script src="/bg/js/dictionary-database.js"></script> <script src="/bg/js/dictionary-database.js"></script>
<script src="/bg/js/dictionary-importer.js"></script> <script src="/bg/js/dictionary-importer.js"></script>
<script src="/bg/js/json-schema.js"></script> <script src="/bg/js/json-schema.js"></script>
<script src="/bg/js/media-utility.js"></script> <script src="/bg/js/media-utility.js"></script>
<script src="/mixed/js/cache-map.js"></script>
<script src="/bg/js/settings/anki.js"></script> <script src="/bg/js/settings/keyboard-mouse-input-field.js"></script>
<script src="/bg/js/settings/anki-templates.js"></script> <script src="/bg/js/settings/profile-conditions-ui.js"></script>
<script src="/bg/js/settings/audio.js"></script>
<script src="/bg/js/settings/backup.js"></script> <script src="/bg/js/settings/anki-controller.js"></script>
<script src="/bg/js/settings/anki-templates-controller.js"></script>
<script src="/bg/js/settings/audio-controller.js"></script>
<script src="/bg/js/settings/backup-controller.js"></script>
<script src="/bg/js/settings/clipboard-popups-controller.js"></script> <script src="/bg/js/settings/clipboard-popups-controller.js"></script>
<script src="/bg/js/settings/dictionaries.js"></script> <script src="/bg/js/settings/dictionary-controller.js"></script>
<script src="/bg/js/settings/dictionary-import-controller.js"></script> <script src="/bg/js/settings/dictionary-import-controller.js"></script>
<script src="/bg/js/settings/generic-setting-controller.js"></script> <script src="/bg/js/settings/generic-setting-controller.js"></script>
<script src="/bg/js/settings/keyboard-mouse-input-field.js"></script> <script src="/bg/js/settings/popup-preview-controller.js"></script>
<script src="/bg/js/settings/popup-preview.js"></script> <script src="/bg/js/settings/profile-controller.js"></script>
<script src="/bg/js/settings/profiles.js"></script>
<script src="/bg/js/settings/profile-conditions-ui.js"></script>
<script src="/bg/js/settings/scan-inputs-controller.js"></script> <script src="/bg/js/settings/scan-inputs-controller.js"></script>
<script src="/bg/js/settings/settings-controller.js"></script> <script src="/bg/js/settings/settings-controller.js"></script>
<script src="/bg/js/settings/storage.js"></script> <script src="/bg/js/settings/storage-controller.js"></script>
<script src="/mixed/js/dictionary-data-util.js"></script>
<script src="/mixed/js/object-property-accessor.js"></script>
<script src="/mixed/js/task-accumulator.js"></script>
<script src="/mixed/js/dom-data-binder.js"></script>
<script src="/bg/js/settings/main.js"></script> <script src="/bg/js/settings/main.js"></script>
</body> </body>