fix: 🚸 make importing emoji packs clearer

This commit is contained in:
ThatOneCalculator 2023-08-10 13:04:16 -07:00
parent 483d96e297
commit cb424e37f5
No known key found for this signature in database
GPG key ID: 8703CACD01000000
3 changed files with 13 additions and 4 deletions

View file

@ -1136,6 +1136,9 @@ deletePasskeysConfirm: "This will irreversibly delete all passkeys and security
inputNotMatch: "Input does not match" inputNotMatch: "Input does not match"
addRe: "Add \"re:\" at the beginning of comment in reply to a post with a content warning" addRe: "Add \"re:\" at the beginning of comment in reply to a post with a content warning"
confirm: "Confirm" confirm: "Confirm"
importZip: "Import ZIP"
exportZip: "Export ZIP"
emojiPackCreator: "Emoji pack creator"
_sensitiveMediaDetection: _sensitiveMediaDetection:
description: "Reduces the effort of server moderation through automatically recognizing description: "Reduces the effort of server moderation through automatically recognizing

View file

@ -1,6 +1,5 @@
import define from "../../../define.js"; import define from "../../../define.js";
import { createImportCustomEmojisJob } from "@/queue/index.js"; import { createImportCustomEmojisJob } from "@/queue/index.js";
import ms from "ms";
export const meta = { export const meta = {
secure: true, secure: true,

View file

@ -294,7 +294,7 @@ const menu = (ev: MouseEvent) => {
[ [
{ {
icon: "ph-download-simple ph-bold ph-lg", icon: "ph-download-simple ph-bold ph-lg",
text: i18n.ts.export, text: i18n.ts.exportZip,
action: async () => { action: async () => {
os.api("export-custom-emojis", {}) os.api("export-custom-emojis", {})
.then(() => { .then(() => {
@ -313,7 +313,7 @@ const menu = (ev: MouseEvent) => {
}, },
{ {
icon: "ph-upload-simple ph-bold ph-lg", icon: "ph-upload-simple ph-bold ph-lg",
text: i18n.ts.import, text: i18n.ts.importZip,
action: async () => { action: async () => {
const file = await selectFile( const file = await selectFile(
ev.currentTarget ?? ev.target, 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, ev.currentTarget ?? ev.target,
); );
@ -420,7 +427,7 @@ const headerActions = $computed(() => [
handler: add, handler: add,
}, },
{ {
icon: "ph-dots-three-outline ph-bold ph-lg", icon: "ph-file-zip ph-bold ph-lg",
handler: menu, handler: menu,
}, },
]); ]);