@@ -84,19 +52,6 @@
:file="file"
:is-local="isLocal" />
-
-
- {{ $t('emoji.thisWillDownload') }} "{{ name }}" {{ $t('emoji.downloadToCurrentInstance') }}
- "{{ downloadSharedAs.trim() === '' ? name : downloadSharedAs }}" ({{ $t('emoji.canBeChanged') }}).
- {{ $t('emoji.willBeUsable') }}.
-
-
-
-
- {{ isDesktop ? $t('emoji.downloadSharedPack') : $t('emoji.downloadSharedPackMobile') }}
-
-
-
@@ -125,17 +80,12 @@ export default {
required: true
}
},
-
data() {
return {
- showPackContent: [],
- downloadSharedAs: ''
+ showPackContent: []
}
},
computed: {
- isDesktop() {
- return this.$store.state.app.device === 'desktop'
- },
isMobile() {
return this.$store.state.app.device === 'mobile'
},
@@ -209,15 +159,6 @@ export default {
}
},
methods: {
- downloadFromInstance(url) {
- const instanceAddress = `${new URL(url).protocol}//${new URL(url).hostname}`
- this.$store.dispatch(
- 'DownloadFrom',
- { instanceAddress, packName: this.name, as: this.downloadSharedAs }
- ).then(() => this.$store.dispatch('ReloadEmoji'))
- .then(() => this.$store.dispatch('SetLocalEmojiPacks'))
- },
-
deletePack() {
this.$confirm('This will delete the pack, are you sure?', 'Warning', {
confirmButtonText: 'Yes, delete the pack',
@@ -229,7 +170,6 @@ export default {
.then(() => this.$store.dispatch('SetLocalEmojiPacks'))
}).catch(() => {})
},
-
savePackMetadata() {
this.$store.dispatch('SavePackMetadata', { packName: this.name })
}
diff --git a/src/views/emojiPacks/components/RemoteEmojiPack.vue b/src/views/emojiPacks/components/RemoteEmojiPack.vue
new file mode 100644
index 00000000..0c9ecaf3
--- /dev/null
+++ b/src/views/emojiPacks/components/RemoteEmojiPack.vue
@@ -0,0 +1,282 @@
+
+
+
+
+
diff --git a/src/views/emojiPacks/index.vue b/src/views/emojiPacks/index.vue
index 2757e3a4..8154f254 100644
--- a/src/views/emojiPacks/index.vue
+++ b/src/views/emojiPacks/index.vue
@@ -27,7 +27,7 @@
@@ -37,6 +37,7 @@
v-model="remoteInstanceAddress"
:placeholder="$t('emoji.remoteInstanceAddress')" />