diff --git a/package.json b/package.json index dcfef63d1..4b3401c36 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calckey", - "version": "12.119.0-calc.12.6", + "version": "12.119.0-calc.12.7", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/client/src/components/MkPostFormAttaches.vue b/packages/client/src/components/MkPostFormAttaches.vue index 373967143..56bbef3f2 100644 --- a/packages/client/src/components/MkPostFormAttaches.vue +++ b/packages/client/src/components/MkPostFormAttaches.vue @@ -74,7 +74,7 @@ export default defineComponent({ }, async rename(file) { const { canceled, result } = await os.inputText({ - title: this.i18n.ts.enterFileName, + title: i18n.ts.enterFileName, default: file.name, allowEmpty: false, }); @@ -90,9 +90,9 @@ export default defineComponent({ async describe(file) { os.popup(defineAsyncComponent(() => import('@/components/MkMediaCaption.vue')), { - title: this.i18n.ts.describeFile, + title: i18n.ts.describeFile, input: { - placeholder: this.i18n.ts.inputNewDescription, + placeholder: i18n.ts.inputNewDescription, default: file.comment !== null ? file.comment : '', }, image: file, @@ -113,19 +113,19 @@ export default defineComponent({ showFileMenu(file, ev: MouseEvent) { if (this.menu) return; this.menu = os.popupMenu([{ - text: this.i18n.ts.renameFile, + text: i18n.ts.renameFile, icon: 'ph-cursor-text-bold ph-lg', action: () => { this.rename(file); }, }, { - text: file.isSensitive ? this.i18n.ts.unmarkAsSensitive : this.i18n.ts.markAsSensitive, + text: file.isSensitive ? i18n.ts.unmarkAsSensitive : i18n.ts.markAsSensitive, icon: file.isSensitive ? 'ph-eye-slash-bold ph-lg' : 'ph-eye-bold ph-lg', action: () => { this.toggleSensitive(file); }, }, { - text: this.i18n.ts.describeFile, + text: i18n.ts.describeFile, icon: 'ph-cursor-text-bold ph-lg', action: () => { this.describe(file); }, }, { - text: this.i18n.ts.attachCancel, + text: i18n.ts.attachCancel, icon: 'ph-circle-wavy-warning-bold ph-lg', action: () => { this.detachMedia(file.id); }, }], ev.currentTarget ?? ev.target).then(() => this.menu = null); diff --git a/packages/client/src/pages/page-editor/page-editor.script-block.vue b/packages/client/src/pages/page-editor/page-editor.script-block.vue index 3671dd962..a89daab80 100644 --- a/packages/client/src/pages/page-editor/page-editor.script-block.vue +++ b/packages/client/src/pages/page-editor/page-editor.script-block.vue @@ -216,7 +216,7 @@ export default defineComponent({ methods: { async changeType() { const { canceled, result: type } = await os.select({ - title: this.i18n.ts._pages.selectType, + title: i18n.ts._pages.selectType, groupedItems: this.getScriptBlockList(this.getExpectedType ? this.getExpectedType() : null) }); if (canceled) return; diff --git a/packages/client/src/pages/user/index.photos.vue b/packages/client/src/pages/user/index.photos.vue index 9fbd3a22e..703b3adce 100644 --- a/packages/client/src/pages/user/index.photos.vue +++ b/packages/client/src/pages/user/index.photos.vue @@ -1,5 +1,5 @@