fix: 🚸 make importing emoji packs clearer
This commit is contained in:
parent
483d96e297
commit
cb424e37f5
3 changed files with 13 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import define from "../../../define.js";
|
||||
import { createImportCustomEmojisJob } from "@/queue/index.js";
|
||||
import ms from "ms";
|
||||
|
||||
export const meta = {
|
||||
secure: true,
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
]);
|
||||
|
|
Loading…
Reference in a new issue