From acc1858f445797bc5da0e0089cb3a62afa1039e7 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 1 Feb 2026 15:40:10 -0700 Subject: [PATCH] Rename the ID from token-browser to image-tagger --- langs/en-ca.json | 2 +- module.json | 4 ++-- module/apps/ArtBrowser.mjs | 2 +- module/apps/ArtistApp.mjs | 6 +++--- module/apps/ImageApp.mjs | 6 +++--- module/apps/mixins/DBConnector.mjs | 6 +++--- module/consts.mjs | 2 +- module/handlebarsHelpers/_index.mjs | 4 ++-- styles/apps/ArtBrowser.css | 2 +- styles/apps/ArtSidebar.css | 2 +- styles/apps/ArtistApp.css | 2 +- styles/apps/ImageApp.css | 2 +- styles/apps/common.css | 2 +- styles/elements/checkbox.css | 2 +- styles/elements/lists.css | 2 +- styles/elements/utils.css | 2 +- styles/resets/hr.css | 2 +- styles/resets/lists.css | 2 +- templates/ArtBrowser/image/grid.hbs | 2 +- templates/ArtBrowser/image/list.hbs | 2 +- templates/ArtBrowser/images.hbs | 2 +- templates/ArtBrowser/sidebar.hbs | 2 +- templates/ArtistApp/linkList.hbs | 8 ++++---- templates/Dialogs/Link.hbs | 4 ++-- templates/ImageApp/form.hbs | 2 +- 25 files changed, 37 insertions(+), 37 deletions(-) diff --git a/langs/en-ca.json b/langs/en-ca.json index 3c0f95a..358d281 100644 --- a/langs/en-ca.json +++ b/langs/en-ca.json @@ -1,5 +1,5 @@ { - "TB": { + "IT": { "common": { "unsaved": "This change hasn't been saved, if you close without saving it will be undone." }, diff --git a/module.json b/module.json index e8ee4e9..8dad50f 100644 --- a/module.json +++ b/module.json @@ -12,12 +12,12 @@ "manifest": "", "download": "", "esmodules": [ - "module/token-browser.mjs" + "module/image-tagger.mjs" ], "styles": [ { "src": "styles/main.css", - "layer": "modules.token-browser" + "layer": "modules.image-tagger" } ], "languages": [ diff --git a/module/apps/ArtBrowser.mjs b/module/apps/ArtBrowser.mjs index c28f958..dc4e500 100644 --- a/module/apps/ArtBrowser.mjs +++ b/module/apps/ArtBrowser.mjs @@ -142,7 +142,7 @@ export class ArtBrowser extends HandlebarsApplicationMixin(ApplicationV2) { if (element) { element.innerText = `${this.#selected.size} Selected`; element.innerText = _loc( - `TB.apps.ArtBrowser.selected`, + `IT.apps.ArtBrowser.selected`, { current: this.#selected.size, required: this.#selectCount, diff --git a/module/apps/ArtistApp.mjs b/module/apps/ArtistApp.mjs index 21b36cf..9d888fa 100644 --- a/module/apps/ArtistApp.mjs +++ b/module/apps/ArtistApp.mjs @@ -63,11 +63,11 @@ export class ArtistApp extends get title() { if (this._docID && this._doc.name) { return game.i18n.format( - `TB.apps.ArtistApp.title.edit`, + `IT.apps.ArtistApp.title.edit`, { name: this._doc.name }, ); }; - return game.i18n.localize(`TB.apps.ArtistApp.title.create`); + return game.i18n.localize(`IT.apps.ArtistApp.title.create`); }; // #endregion Instance Data @@ -126,7 +126,7 @@ export class ArtistApp extends /** @this {ArtistApp} */ static async #addNewLink() { const link = await promptViaTemplate( - `TB.dialogs.Link.title`, + `IT.dialogs.Link.title`, `templates/Dialogs/Link.hbs`, ); link.isNew = true; diff --git a/module/apps/ImageApp.mjs b/module/apps/ImageApp.mjs index 2e9f4da..2c6667a 100644 --- a/module/apps/ImageApp.mjs +++ b/module/apps/ImageApp.mjs @@ -54,14 +54,14 @@ export class ImageApp extends if (this._docID) { if (this._doc.name) { return _loc( - `TB.apps.ImageApp.title.edit-named`, + `IT.apps.ImageApp.title.edit-named`, { name: this._doc.name }, ); } else { - return _loc(`TB.apps.ImageApp.title.edit-generic`); + return _loc(`IT.apps.ImageApp.title.edit-generic`); } }; - return _loc(`TB.apps.ImageApp.title.upload`); + return _loc(`IT.apps.ImageApp.title.upload`); }; // #endregion Instance Data diff --git a/module/apps/mixins/DBConnector.mjs b/module/apps/mixins/DBConnector.mjs index 660a178..2873479 100644 --- a/module/apps/mixins/DBConnector.mjs +++ b/module/apps/mixins/DBConnector.mjs @@ -49,7 +49,7 @@ export function DBConnectorMixin(HandlebarsApp) { if (documents[this._docID] == null) { ui.notifications.error(_loc( - `TB.notifs.error.document-ID-404`, + `IT.notifs.error.document-ID-404`, { id: this._docID, dbType: this.dbType }, )); return false; @@ -73,7 +73,7 @@ export function DBConnectorMixin(HandlebarsApp) { async isAbleToSave() { if (!game.user.can(`FILES_UPLOAD`)) { ui.notifications.error( - `TB.notifs.error.no-upload-permission`, + `IT.notifs.error.no-upload-permission`, { localize: true }, ); return false; @@ -84,7 +84,7 @@ export function DBConnectorMixin(HandlebarsApp) { const newLastModified = await lastModifiedAt(this.dbPath); if (newLastModified !== this.#lastModified) { ui.notifications.error( - `TB.notifs.error.db-out-of-date`, + `IT.notifs.error.db-out-of-date`, { localize: true }, ); return false; diff --git a/module/consts.mjs b/module/consts.mjs index 8275b7a..878f8e5 100644 --- a/module/consts.mjs +++ b/module/consts.mjs @@ -1,4 +1,4 @@ -export const __ID__ = `token-browser`; +export const __ID__ = `image-tagger`; /** * @param {string} path diff --git a/module/handlebarsHelpers/_index.mjs b/module/handlebarsHelpers/_index.mjs index b7251ef..68607f5 100644 --- a/module/handlebarsHelpers/_index.mjs +++ b/module/handlebarsHelpers/_index.mjs @@ -3,6 +3,6 @@ import { options } from "./options.mjs"; export default { // MARK: Complex - "tb-options": options, - "tb-filePath": filePath, + "it-options": options, + "it-filePath": filePath, }; diff --git a/styles/apps/ArtBrowser.css b/styles/apps/ArtBrowser.css index a6e677d..a148573 100644 --- a/styles/apps/ArtBrowser.css +++ b/styles/apps/ArtBrowser.css @@ -1,4 +1,4 @@ -.token-browser.ArtBrowser { +.image-tagger.ArtBrowser { > .window-content { display: grid; grid-template-columns: 175px auto; diff --git a/styles/apps/ArtSidebar.css b/styles/apps/ArtSidebar.css index 6b4a6ab..a3179cb 100644 --- a/styles/apps/ArtSidebar.css +++ b/styles/apps/ArtSidebar.css @@ -1,4 +1,4 @@ -.token-browser.ArtSidebar { +.image-tagger.ArtSidebar { flex-flow: column; gap: 1.5rem; padding: 1rem; diff --git a/styles/apps/ArtistApp.css b/styles/apps/ArtistApp.css index 24061da..f3e7f78 100644 --- a/styles/apps/ArtistApp.css +++ b/styles/apps/ArtistApp.css @@ -1,4 +1,4 @@ -.token-browser.ArtistApp { +.image-tagger.ArtistApp { ul li button { padding: 0; border: none; diff --git a/styles/apps/ImageApp.css b/styles/apps/ImageApp.css index 209f8c0..1c4072e 100644 --- a/styles/apps/ImageApp.css +++ b/styles/apps/ImageApp.css @@ -1,4 +1,4 @@ -.token-browser.ImageApp { +.image-tagger.ImageApp { > .window-content { display: grid; grid-template-columns: 200px auto; diff --git a/styles/apps/common.css b/styles/apps/common.css index 8282d46..ccc14a4 100644 --- a/styles/apps/common.css +++ b/styles/apps/common.css @@ -1,4 +1,4 @@ -.token-browser { +.image-tagger { > .window-content { display: flex; flex-direction: column; diff --git a/styles/elements/checkbox.css b/styles/elements/checkbox.css index 0cc5257..59b7dd3 100644 --- a/styles/elements/checkbox.css +++ b/styles/elements/checkbox.css @@ -1,3 +1,3 @@ -.token-browser > .window-content input[type="checkbox"] { +.image-tagger > .window-content input[type="checkbox"] { --checkbox-checked-color: var(--color-level-success-border); } diff --git a/styles/elements/lists.css b/styles/elements/lists.css index 2056025..4adbe9f 100644 --- a/styles/elements/lists.css +++ b/styles/elements/lists.css @@ -1,4 +1,4 @@ -.token-browser > .window-content { +.image-tagger > .window-content { ul { margin: 0; padding: 0; diff --git a/styles/elements/utils.css b/styles/elements/utils.css index 2521cc1..6e028d0 100644 --- a/styles/elements/utils.css +++ b/styles/elements/utils.css @@ -1,4 +1,4 @@ -.token-browser > .window-content { +.image-tagger > .window-content { .row { display: flex; flex-direction: row; diff --git a/styles/resets/hr.css b/styles/resets/hr.css index 8c95ca6..2d48801 100644 --- a/styles/resets/hr.css +++ b/styles/resets/hr.css @@ -1,4 +1,4 @@ -.token-browser > .window-content hr { +.image-tagger > .window-content hr { all: initial; display: block; width: 100%; diff --git a/styles/resets/lists.css b/styles/resets/lists.css index 897ae3f..2e44c5c 100644 --- a/styles/resets/lists.css +++ b/styles/resets/lists.css @@ -1,4 +1,4 @@ -.token-browser > .window-content { +.image-tagger > .window-content { li { margin: 0; } diff --git a/templates/ArtBrowser/image/grid.hbs b/templates/ArtBrowser/image/grid.hbs index 6744778..9289c9d 100644 --- a/templates/ArtBrowser/image/grid.hbs +++ b/templates/ArtBrowser/image/grid.hbs @@ -3,7 +3,7 @@ data-image-id="{{image.id}}" > {{#if is.single}} diff --git a/templates/ArtBrowser/image/list.hbs b/templates/ArtBrowser/image/list.hbs index e82ec68..1ca9223 100644 --- a/templates/ArtBrowser/image/list.hbs +++ b/templates/ArtBrowser/image/list.hbs @@ -1,6 +1,6 @@
  • {{#if (eq selectMode "single")}} diff --git a/templates/ArtBrowser/images.hbs b/templates/ArtBrowser/images.hbs index effff3d..fe03183 100644 --- a/templates/ArtBrowser/images.hbs +++ b/templates/ArtBrowser/images.hbs @@ -12,7 +12,7 @@