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"
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

View file

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

View file

@ -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,
},
]);