Rename the ID from token-browser to image-tagger
This commit is contained in:
parent
2fdcdf062c
commit
acc1858f44
25 changed files with 37 additions and 37 deletions
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"TB": {
|
||||
"IT": {
|
||||
"common": {
|
||||
"unsaved": "This change hasn't been saved, if you close without saving it will be undone."
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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": [
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
export const __ID__ = `token-browser`;
|
||||
export const __ID__ = `image-tagger`;
|
||||
|
||||
/**
|
||||
* @param {string} path
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
.token-browser.ArtBrowser {
|
||||
.image-tagger.ArtBrowser {
|
||||
> .window-content {
|
||||
display: grid;
|
||||
grid-template-columns: 175px auto;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
.token-browser.ArtSidebar {
|
||||
.image-tagger.ArtSidebar {
|
||||
flex-flow: column;
|
||||
gap: 1.5rem;
|
||||
padding: 1rem;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
.token-browser.ArtistApp {
|
||||
.image-tagger.ArtistApp {
|
||||
ul li button {
|
||||
padding: 0;
|
||||
border: none;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
.token-browser.ImageApp {
|
||||
.image-tagger.ImageApp {
|
||||
> .window-content {
|
||||
display: grid;
|
||||
grid-template-columns: 200px auto;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
.token-browser {
|
||||
.image-tagger {
|
||||
> .window-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
.token-browser > .window-content {
|
||||
.image-tagger > .window-content {
|
||||
ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
.token-browser > .window-content {
|
||||
.image-tagger > .window-content {
|
||||
.row {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
.token-browser > .window-content hr {
|
||||
.image-tagger > .window-content hr {
|
||||
all: initial;
|
||||
display: block;
|
||||
width: 100%;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
.token-browser > .window-content {
|
||||
.image-tagger > .window-content {
|
||||
li {
|
||||
margin: 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
data-image-id="{{image.id}}"
|
||||
>
|
||||
<img
|
||||
src="{{tb-filePath image.path}}"
|
||||
src="{{it-filePath image.path}}"
|
||||
alt=""
|
||||
>
|
||||
{{#if is.single}}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<li class="image">
|
||||
<img
|
||||
src="{{tb-filePath image.path}}"
|
||||
src="{{it-filePath image.path}}"
|
||||
alt=""
|
||||
>
|
||||
{{#if (eq selectMode "single")}}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
<ul class="image-list image-list--{{listLayout}}">
|
||||
{{#each images as | image |}}
|
||||
{{>
|
||||
(tb-filePath "templates/ArtBrowser/image/grid.hbs")
|
||||
(it-filePath "templates/ArtBrowser/image/grid.hbs")
|
||||
image=image
|
||||
is=@root.is
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -29,6 +29,6 @@
|
|||
id="{{meta.idp}}-artists"
|
||||
name="artists"
|
||||
>
|
||||
{{ tb-options artists artistList }}
|
||||
{{ it-options artists artistList }}
|
||||
</multi-select>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@
|
|||
<div class="grow"></div>
|
||||
<button
|
||||
type="button"
|
||||
aria-label="{{localize 'TB.apps.ArtistApp.add-link'}}"
|
||||
data-tooltip="TB.apps.ArtistApp.add-link"
|
||||
aria-label="{{localize 'IT.apps.ArtistApp.add-link'}}"
|
||||
data-tooltip="IT.apps.ArtistApp.add-link"
|
||||
data-action="addNewLink"
|
||||
>
|
||||
+
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
<li
|
||||
data-index="{{@key}}"
|
||||
{{#if link.isNew}}
|
||||
data-tooltip="TB.common.unsaved"
|
||||
data-tooltip="IT.common.unsaved"
|
||||
{{/if}}
|
||||
>
|
||||
<a
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
{{link.name}}
|
||||
</a>
|
||||
{{#if link.isNew}}
|
||||
<div class="large" aria-label="{{localize 'TB.common.unsaved'}}">
|
||||
<div class="large" aria-label="{{localize 'IT.common.unsaved'}}">
|
||||
!
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<div class="form-group">
|
||||
<label for="{{idp}}-name">
|
||||
{{localize "TB.dialogs.Link.name"}}
|
||||
{{localize "IT.dialogs.Link.name"}}
|
||||
</label>
|
||||
<input
|
||||
id="{{idp}}-name"
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
</div>
|
||||
<div class="form-group">
|
||||
<label for="{{idp}}-url">
|
||||
{{localize "TB.dialogs.Link.url"}}
|
||||
{{localize "IT.dialogs.Link.url"}}
|
||||
</label>
|
||||
<input
|
||||
id="{{idp}}-url"
|
||||
|
|
|
|||
|
|
@ -25,6 +25,6 @@
|
|||
id="{{meta.idp}}-artists"
|
||||
name="artists"
|
||||
>
|
||||
{{ tb-options image.artists artists }}
|
||||
{{ it-options image.artists artists }}
|
||||
</multi-select>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue