diff --git a/src/lang/en.js b/src/lang/en.js index fa4d3209..272dc4b0 100644 --- a/src/lang/en.js +++ b/src/lang/en.js @@ -350,56 +350,8 @@ export default { followRelay: 'Follow new relay', instanceUrl: 'Instance URL', success: 'Settings changed successfully!', - emojiPacks: 'Emoji packs', - reloadEmoji: 'Reload emoji', - importPacks: 'Import packs from the server filesystem', - importEmojiTooltip: 'Importing from the filesystem will scan the directories and import those without pack.json but with emoji.txt or without neither', - localPacks: 'Local packs', - refreshLocalPacks: 'Refresh local packs', - createLocalPack: 'Create a new local pack', - packs: 'Packs', - remotePacks: 'Remote packs', - remoteInstanceAddress: 'Remote instance address', - refreshRemote: 'Refresh remote packs', - sharePack: 'Share pack', - homepage: 'Homepage', description: 'Description', - license: 'License', - fallbackSrc: 'Fallback source', - fallbackSrcSha: 'Fallback source SHA', - savePackMetadata: 'Save pack metadata', - addNewEmoji: 'Add new emoji to the pack', - shortcode: 'Shortcode', - uploadFile: 'Upload a file', - customFilename: 'Custom filename', - optional: 'optional', - customFilenameDesc: 'Custom file name (optional)', - url: 'URL', - required: 'required', - clickToUpload: 'Click to upload', - showPackContents: 'Show pack contents', - manageEmoji: 'Manage existing emoji', - file: 'File', - update: 'Update', - remove: 'Remove', removeFromDB: 'Remove setting from the DB', - selectLocalPack: 'Select the local pack to copy to', - localPack: 'Local pack', - specifyShortcode: 'Specify a custom shortcode', - specifyFilename: 'Specify a custom filename', - leaveEmptyShortcode: 'leave empty to use the same shortcode', - leaveEmptyFilename: 'leave empty to use the same filename', - copy: 'Copy', - copyToLocalPack: 'Copy to local pack', - thisWillDownload: 'This will download the', - downloadToCurrentInstance: 'pack to the current instance under the name', - canBeChanged: 'can be changed below', - willBeUsable: 'It will then be usable and shareable from the current instance', - downloadPack: 'Download pack', - deletePack: 'Delete pack', - downloadSharedPack: 'Download shared pack to current instance', - downloadAsOptional: 'Download as (optional)', - downloadPackArchive: 'Download pack archive', successfullyDownloaded: 'Successfully downloaded', successfullyImported: 'Successfully imported', nowNewPacksToImport: 'No new packs to import', @@ -433,5 +385,58 @@ export default { emailSent: 'Invite was sent', submitFormError: 'There are invalid values in the form. Please fix them before continuing.', inviteViaEmailAlert: 'To send invite via email make sure to enable `invites_enabled` and disable `registrations_open`' + }, + emoji: { + emojiPacks: 'Emoji packs', + reloaded: 'Emoji reloaded successfully!', + refreshed: 'Emoji refreshed successfully!', + importEmojiTooltip: 'Importing from the filesystem will scan the directories and import those without pack.json but with emoji.txt or without neither', + reloadEmoji: 'Reload emoji', + importPacks: 'Import packs from the server filesystem', + localPacks: 'Local packs', + refreshLocalPacks: 'Refresh local packs', + createLocalPack: 'Create a new local pack', + remotePacks: 'Remote packs', + remoteInstanceAddress: 'Remote instance address', + refreshRemote: 'Refresh remote packs', + sharePack: 'Share pack', + required: 'required', + homepage: 'Homepage', + description: 'Description', + packs: 'Packs', + license: 'License', + shortcode: 'Shortcode', + fallbackSrc: 'Fallback source', + fallbackSrcSha: 'Fallback source SHA', + savePackMetadata: 'Save pack metadata', + deletePack: 'Delete pack', + downloadPack: 'Download pack', + downloadPackArchive: 'Download pack archive', + addNewEmoji: 'Add new emoji to the pack', + manageEmoji: 'Manage existing emoji', + thisWillDownload: 'This will download the', + downloadToCurrentInstance: 'pack to the current instance under the name', + canBeChanged: 'can be changed below', + willBeUsable: 'It will then be usable and shareable from the current instance', + downloadAsOptional: 'Download as (optional)', + downloadSharedPack: 'Download shared pack to current instance', + optional: 'optional', + uploadFile: 'Upload a file', + url: 'URL', + clickToUpload: 'Click to upload', + upload: 'Upload', + customFilename: 'Custom filename', + customFilenameDesc: 'Custom file name (optional)', + file: 'File', + localPack: 'Local pack', + leaveEmptyShortcode: 'leave empty to use the same shortcode', + leaveEmptyFilename: 'leave empty to use the same filename', + update: 'Update', + remove: 'Remove', + selectLocalPack: 'Select the local pack to copy to', + specifyShortcode: 'Specify a custom shortcode', + specifyFilename: 'Specify a custom filename', + copy: 'Copy', + copyToLocalPack: 'Copy to local pack' } } diff --git a/src/router/index.js b/src/router/index.js index 8a7f9e36..e8510bb8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -63,6 +63,20 @@ const invites = { ] } +const emojiPacksDisabled = disabledFeatures.includes('emoji-packs') +const emojiPacks = { + path: '/emoji_packs', + component: Layout, + children: [ + { + path: 'index', + component: () => import('@/views/emojiPacks/index'), + name: 'Emoji Packs', + meta: { title: 'Emoji Packs', icon: 'eye-open', noCache: true } + } + ] +} + const moderationLogDisabled = disabledFeatures.includes('moderation-log') const moderationLog = { path: '/moderation_log', @@ -143,6 +157,7 @@ export const asyncRouterMap = [ ...(statusesDisabled ? [] : [statuses]), ...(reportsDisabled ? [] : [reports]), ...(invitesDisabled ? [] : [invites]), + ...(emojiPacksDisabled ? [] : [emojiPacks]), ...(moderationLogDisabled ? [] : [moderationLog]), ...(settingsDisabled ? [] : [settings]), { diff --git a/src/views/emojiPacks/components/EmojiPack.vue b/src/views/emojiPacks/components/EmojiPack.vue index 81e2da99..3a8bf97a 100644 --- a/src/views/emojiPacks/components/EmojiPack.vue +++ b/src/views/emojiPacks/components/EmojiPack.vue @@ -1,29 +1,29 @@