diff --git a/src/lang/en.js b/src/lang/en.js index e21a156d..d9951f61 100644 --- a/src/lang/en.js +++ b/src/lang/en.js @@ -420,6 +420,7 @@ export default { activityPub: 'ActivityPub', auth: 'Authentication', captcha: 'Captcha', + emoji: 'Emoji', frontend: 'Frontend', http: 'HTTP', mrf: 'MRF', diff --git a/src/views/settings/components/Emoji.vue b/src/views/settings/components/Emoji.vue new file mode 100644 index 00000000..a7dffc62 --- /dev/null +++ b/src/views/settings/components/Emoji.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/views/settings/components/Frontend.vue b/src/views/settings/components/Frontend.vue index 894f8f51..df5911a1 100644 --- a/src/views/settings/components/Frontend.vue +++ b/src/views/settings/components/Frontend.vue @@ -16,10 +16,6 @@ - - - - @@ -62,12 +58,6 @@ export default { chatData() { return _.get(this.settings.settings, [':pleroma', ':chat']) || {} }, - emoji() { - return this.settings.description.find(setting => setting.key === ':emoji') - }, - emojiData() { - return _.get(this.settings.settings, [':pleroma', ':emoji']) || {} - }, frontend() { return this.settings.description.find(setting => setting.key === ':frontend_configurations') }, diff --git a/src/views/settings/components/index.js b/src/views/settings/components/index.js index 75f10e33..e3c5c4a8 100644 --- a/src/views/settings/components/index.js +++ b/src/views/settings/components/index.js @@ -1,6 +1,7 @@ export { default as ActivityPub } from './ActivityPub' export { default as Authentication } from './Authentication' export { default as Captcha } from './Captcha' +export { default as Emoji } from './Emoji' export { default as Esshd } from './Esshd' export { default as Frontend } from './Frontend' export { default as Gopher } from './Gopher' diff --git a/src/views/settings/components/tabs.js b/src/views/settings/components/tabs.js index e3a98a3c..1915f413 100644 --- a/src/views/settings/components/tabs.js +++ b/src/views/settings/components/tabs.js @@ -16,6 +16,10 @@ export const tabs = description => { label: 'settings.captcha', settings: ['Pleroma.Captcha', 'Pleroma.Captcha.Kocaptcha'] }, + 'emoji': { + label: 'settings.emoji', + settings: [':emoji'] + }, 'frontend': { label: 'settings.frontend', settings: [':assets', ':chat', ':frontends', ':emoji', ':frontend_configurations', ':markup', ':static_fe'] diff --git a/src/views/settings/index.vue b/src/views/settings/index.vue index fa6cf500..b1c0129c 100644 --- a/src/views/settings/index.vue +++ b/src/views/settings/index.vue @@ -60,6 +60,7 @@ import { ActivityPub, Authentication, Captcha, + Emoji, Esshd, Frontend, Gopher, @@ -85,6 +86,7 @@ export default { ActivityPub, Authentication, Captcha, + Emoji, Esshd, Frontend, Gopher,