From 932d20cfc6510fac049a4833e0e0f33096ebdf92 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Sun, 6 Oct 2019 02:17:50 +0300 Subject: [PATCH] Add form for entering or changing emoji pack metadata --- src/lang/en.js | 9 +- src/views/emojiPacks/components/EmojiPack.vue | 137 ++++++------------ .../components/PropertyEditingRow.vue | 27 ---- src/views/emojiPacks/index.vue | 18 +-- 4 files changed, 58 insertions(+), 133 deletions(-) delete mode 100644 src/views/emojiPacks/components/PropertyEditingRow.vue diff --git a/src/lang/en.js b/src/lang/en.js index c7903c68..a84a4ec3 100644 --- a/src/lang/en.js +++ b/src/lang/en.js @@ -323,7 +323,14 @@ export default { packs: 'Packs', remotePacks: 'Remote packs', remoteInstanceAddress: 'Remote instance address', - refreshRemote: 'Refresh remote packs' + refreshRemote: 'Refresh remote packs', + sharePack: 'Share pack', + homepage: 'Homepage', + description: 'Description', + license: 'License', + fallbackSrc: 'Fallback source', + fallbackSrcSha: 'Fallback source SHA', + savePackMetadata: 'Save pack metadata' }, invites: { inviteTokens: 'Invite tokens', diff --git a/src/views/emojiPacks/components/EmojiPack.vue b/src/views/emojiPacks/components/EmojiPack.vue index d29ea9b2..71708ee3 100644 --- a/src/views/emojiPacks/components/EmojiPack.vue +++ b/src/views/emojiPacks/components/EmojiPack.vue @@ -1,111 +1,56 @@ diff --git a/src/views/emojiPacks/index.vue b/src/views/emojiPacks/index.vue index c798f8b5..41854e70 100644 --- a/src/views/emojiPacks/index.vue +++ b/src/views/emojiPacks/index.vue @@ -24,11 +24,10 @@ - -
+ + - -
+
@@ -44,11 +43,10 @@
- -
+ + - -
+
@@ -62,7 +60,9 @@ export default { data() { return { remoteInstanceAddress: '', - newPackName: '' + newPackName: '', + activeLocalPack: '', + activeRemotePack: '' } }, computed: {