diff --git a/locales/en-US.yml b/locales/en-US.yml index cc7c12ce40..60784310f3 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -1136,6 +1136,9 @@ deletePasskeysConfirm: "This will irreversibly delete all passkeys and security inputNotMatch: "Input does not match" addRe: "Add \"re:\" at the beginning of comment in reply to a post with a content warning" confirm: "Confirm" +importZip: "Import ZIP" +exportZip: "Export ZIP" +emojiPackCreator: "Emoji pack creator" _sensitiveMediaDetection: description: "Reduces the effort of server moderation through automatically recognizing diff --git a/packages/backend/src/server/api/endpoints/admin/emoji/import-zip.ts b/packages/backend/src/server/api/endpoints/admin/emoji/import-zip.ts index 6f49d6d18d..9eba9dfd54 100644 --- a/packages/backend/src/server/api/endpoints/admin/emoji/import-zip.ts +++ b/packages/backend/src/server/api/endpoints/admin/emoji/import-zip.ts @@ -1,6 +1,5 @@ import define from "../../../define.js"; import { createImportCustomEmojisJob } from "@/queue/index.js"; -import ms from "ms"; export const meta = { secure: true, diff --git a/packages/client/src/pages/admin/emojis.vue b/packages/client/src/pages/admin/emojis.vue index 8d633e5513..fbe71d3798 100644 --- a/packages/client/src/pages/admin/emojis.vue +++ b/packages/client/src/pages/admin/emojis.vue @@ -294,7 +294,7 @@ const menu = (ev: MouseEvent) => { [ { icon: "ph-download-simple ph-bold ph-lg", - text: i18n.ts.export, + text: i18n.ts.exportZip, action: async () => { os.api("export-custom-emojis", {}) .then(() => { @@ -313,7 +313,7 @@ const menu = (ev: MouseEvent) => { }, { icon: "ph-upload-simple ph-bold ph-lg", - text: i18n.ts.import, + text: i18n.ts.importZip, action: async () => { const file = await selectFile( ev.currentTarget ?? ev.target, @@ -335,6 +335,13 @@ const menu = (ev: MouseEvent) => { }); }, }, + { + icon: "ph-info ph-bold ph-lg", + text: i18n.ts.emojiPackCreator, + action: () => { + window.open("https://git.joinfirefish.org/firefish/emoji-gen", "_blank"); + } + }, ], ev.currentTarget ?? ev.target, ); @@ -420,7 +427,7 @@ const headerActions = $computed(() => [ handler: add, }, { - icon: "ph-dots-three-outline ph-bold ph-lg", + icon: "ph-file-zip ph-bold ph-lg", handler: menu, }, ]);