From 8b1a60dce238a6e84c6c5bff8395cb642fd86ec7 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Thu, 4 Feb 2021 02:22:44 +0300 Subject: [PATCH] Move Emoji pack page to Emoji tab inside Settings page --- src/router/index.js | 15 - .../{components => }/LocalEmojiPack.vue | 0 .../{components => }/NewEmojiUploader.vue | 0 .../{components => }/RemoteEmojiPack.vue | 0 .../{components => }/SingleEmojiEditor.vue | 0 src/views/emojiPacks/index.vue | 344 ------------------ src/views/settings/components/Emoji.vue | 229 +++++++++++- src/views/settings/styles/main.scss | 119 ++++++ 8 files changed, 337 insertions(+), 370 deletions(-) rename src/views/emojiPacks/{components => }/LocalEmojiPack.vue (100%) rename src/views/emojiPacks/{components => }/NewEmojiUploader.vue (100%) rename src/views/emojiPacks/{components => }/RemoteEmojiPack.vue (100%) rename src/views/emojiPacks/{components => }/SingleEmojiEditor.vue (100%) delete mode 100644 src/views/emojiPacks/index.vue diff --git a/src/router/index.js b/src/router/index.js index 5becbc9e..42d7d3e1 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -70,20 +70,6 @@ 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', @@ -179,7 +165,6 @@ export const asyncRouterMap = [ ...(statusesDisabled ? [] : [statuses]), ...(reportsDisabled ? [] : [reports]), ...(invitesDisabled ? [] : [invites]), - ...(emojiPacksDisabled ? [] : [emojiPacks]), ...(moderationLogDisabled ? [] : [moderationLog]), ...(mediaProxyCacheDisabled ? [] : [mediaProxyCache]), ...(settingsDisabled ? [] : [settings]), diff --git a/src/views/emojiPacks/components/LocalEmojiPack.vue b/src/views/emojiPacks/LocalEmojiPack.vue similarity index 100% rename from src/views/emojiPacks/components/LocalEmojiPack.vue rename to src/views/emojiPacks/LocalEmojiPack.vue diff --git a/src/views/emojiPacks/components/NewEmojiUploader.vue b/src/views/emojiPacks/NewEmojiUploader.vue similarity index 100% rename from src/views/emojiPacks/components/NewEmojiUploader.vue rename to src/views/emojiPacks/NewEmojiUploader.vue diff --git a/src/views/emojiPacks/components/RemoteEmojiPack.vue b/src/views/emojiPacks/RemoteEmojiPack.vue similarity index 100% rename from src/views/emojiPacks/components/RemoteEmojiPack.vue rename to src/views/emojiPacks/RemoteEmojiPack.vue diff --git a/src/views/emojiPacks/components/SingleEmojiEditor.vue b/src/views/emojiPacks/SingleEmojiEditor.vue similarity index 100% rename from src/views/emojiPacks/components/SingleEmojiEditor.vue rename to src/views/emojiPacks/SingleEmojiEditor.vue diff --git a/src/views/emojiPacks/index.vue b/src/views/emojiPacks/index.vue deleted file mode 100644 index 90c5e562..00000000 --- a/src/views/emojiPacks/index.vue +++ /dev/null @@ -1,344 +0,0 @@ - - - - - diff --git a/src/views/settings/components/Emoji.vue b/src/views/settings/components/Emoji.vue index a7dffc62..0d85d825 100644 --- a/src/views/settings/components/Emoji.vue +++ b/src/views/settings/components/Emoji.vue @@ -1,33 +1,137 @@