diff --git a/packages/frontend/src/components/MKCustomEmojiEditDraft.vue b/packages/frontend/src/components/MKCustomEmojiEditDraft.vue new file mode 100644 index 0000000000..17576b7b06 --- /dev/null +++ b/packages/frontend/src/components/MKCustomEmojiEditDraft.vue @@ -0,0 +1,229 @@ + + + {{ i18n.ts.noCustomEmojis }} + + + + + + + + + + {{ i18n.ts.name }}: {{ emoji.name }} + {{ i18n.ts.category }}:{{ emoji.category }} + {{ i18n.ts.tags }}:{{ emoji.aliases.join(' ') }} + {{ i18n.ts.license }}:{{ emoji.license }} + + + + {{ i18n.ts.edit }} + + + {{ i18n.ts.undrafted }} + + + {{ i18n.ts.delete }} + + + + + + + + + + + + diff --git a/packages/frontend/src/components/MkCustomEmojiEditLocal.vue b/packages/frontend/src/components/MkCustomEmojiEditLocal.vue new file mode 100644 index 0000000000..7112a38430 --- /dev/null +++ b/packages/frontend/src/components/MkCustomEmojiEditLocal.vue @@ -0,0 +1,225 @@ + + + + {{ i18n.ts.search }} + + + Select mode + + + Select all + Set category + Set tag + Add tag + Remove tag + Set Lisence + Delete + + + {{ i18n.ts.noCustomEmojis }} + + + + + + + {{ emoji.name + ' (draft)' }} + {{ emoji.category }} + + + + + + {{ emoji.name }} + {{ emoji.category }} + + + + + + + + + + + diff --git a/packages/frontend/src/components/MkCustomEmojiEditRemote.vue b/packages/frontend/src/components/MkCustomEmojiEditRemote.vue new file mode 100644 index 0000000000..26c8dd66ac --- /dev/null +++ b/packages/frontend/src/components/MkCustomEmojiEditRemote.vue @@ -0,0 +1,110 @@ + + + + + {{ i18n.ts.search }} + + + {{ i18n.ts.host }} + + + + {{ i18n.ts.noCustomEmojis }} + + + + + + {{ emoji.name }} + {{ emoji.host }} + + + + + + + + + + diff --git a/packages/frontend/src/pages/emoji-edit-dialog.vue b/packages/frontend/src/components/MkEmojiEditDialog.vue similarity index 100% rename from packages/frontend/src/pages/emoji-edit-dialog.vue rename to packages/frontend/src/components/MkEmojiEditDialog.vue diff --git a/packages/frontend/src/pages/about.emojis.vue b/packages/frontend/src/pages/about.emojis.vue index 805662065c..a49a70c88a 100644 --- a/packages/frontend/src/pages/about.emojis.vue +++ b/packages/frontend/src/pages/about.emojis.vue @@ -120,7 +120,7 @@ function toggleTag(tag) { } const edit = () => { - os.popup(defineAsyncComponent(() => import('./emoji-edit-dialog.vue')), { + os.popup(defineAsyncComponent(() => import('@/components/MkEmojiEditDialog.vue')), { isRequest: true, }, { done: result => { diff --git a/packages/frontend/src/pages/custom-emojis-manager.vue b/packages/frontend/src/pages/custom-emojis-manager.vue index 5dcd2009ed..6e55ffb945 100644 --- a/packages/frontend/src/pages/custom-emojis-manager.vue +++ b/packages/frontend/src/pages/custom-emojis-manager.vue @@ -10,106 +10,13 @@ SPDX-License-Identifier: AGPL-3.0-only - - - {{ i18n.ts.search }} - - - Select mode - - - Select all - Set category - Set tag - Add tag - Remove tag - Set License - Delete - - - {{ i18n.ts.noCustomEmojis }} - - - - - - - {{ emoji.name + ' (draft)' }} - {{ emoji.category }} - - - - - - {{ emoji.name }} - {{ emoji.category }} - - - - - - + - - - {{ i18n.ts.noCustomEmojis }} - - - - - - - - - - {{ i18n.ts.name }}: {{ emoji.name }} - {{ i18n.ts.category }}:{{ emoji.category }} - {{ i18n.ts.tags }}:{{ emoji.aliases.join(' ') }} - {{ i18n.ts.license }}:{{ emoji.license }} - - - - {{ i18n.ts.edit }} - - - {{ i18n.ts.undrafted }} - - - {{ i18n.ts.delete }} - - - - - - - + - - - - - {{ i18n.ts.search }} - - - {{ i18n.ts.host }} - - - - {{ i18n.ts.noCustomEmojis }} - - - - - - {{ emoji.name }} - {{ emoji.host }} - - - - - + @@ -118,171 +25,30 @@ SPDX-License-Identifier: AGPL-3.0-only