forked from AkkomaGang/admin-fe
Rename EmojiPacks module and view
This commit is contained in:
parent
e500401698
commit
d2d9866191
8 changed files with 7 additions and 7 deletions
|
@ -12,7 +12,7 @@ import user from './modules/user'
|
||||||
import userProfile from './modules/userProfile'
|
import userProfile from './modules/userProfile'
|
||||||
import users from './modules/users'
|
import users from './modules/users'
|
||||||
import getters from './getters'
|
import getters from './getters'
|
||||||
import emoji_packs from './modules/emoji_packs.js'
|
import emojiPacks from './modules/emojiPacks.js'
|
||||||
|
|
||||||
Vue.use(Vuex)
|
Vue.use(Vuex)
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ const store = new Vuex.Store({
|
||||||
user,
|
user,
|
||||||
userProfile,
|
userProfile,
|
||||||
users,
|
users,
|
||||||
emoji_packs
|
emojiPacks
|
||||||
},
|
},
|
||||||
getters
|
getters
|
||||||
})
|
})
|
||||||
|
|
|
@ -7,7 +7,7 @@ import {
|
||||||
deletePack,
|
deletePack,
|
||||||
savePackMetadata,
|
savePackMetadata,
|
||||||
importFromFS,
|
importFromFS,
|
||||||
updatePackFile } from '@/api/emoji_packs'
|
updatePackFile } from '@/api/emojiPacks'
|
||||||
|
|
||||||
import { Message } from 'element-ui'
|
import { Message } from 'element-ui'
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
<p>Select the local pack to copy to</p>
|
<p>Select the local pack to copy to</p>
|
||||||
<el-select v-model="copyToLocalPackName" placeholder="Local pack">
|
<el-select v-model="copyToLocalPackName" placeholder="Local pack">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(_pack, name) in $store.state.emoji_packs.localPacks"
|
v-for="(_pack, name) in $store.state.emojiPacks.localPacks"
|
||||||
:key="name"
|
:key="name"
|
||||||
:label="name"
|
:label="name"
|
||||||
:value="name" />
|
:value="name" />
|
||||||
|
@ -64,7 +64,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import { addressOfEmojiInPack } from '@/api/emoji_packs'
|
import { addressOfEmojiInPack } from '@/api/emojiPacks'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
|
@ -49,7 +49,7 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-for="(pack, name) in $store.state.emoji_packs.localPacks" :key="name">
|
<div v-for="(pack, name) in $store.state.emojiPacks.localPacks" :key="name">
|
||||||
<emoji-pack :name="name" :pack="pack" :host="$store.getters.authHost" :is-local="true" />
|
<emoji-pack :name="name" :pack="pack" :host="$store.getters.authHost" :is-local="true" />
|
||||||
<el-divider />
|
<el-divider />
|
||||||
</div>
|
</div>
|
||||||
|
@ -64,7 +64,7 @@
|
||||||
Refresh remote packs
|
Refresh remote packs
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
||||||
<div v-for="(pack, name) in $store.state.emoji_packs.remotePacks" :key="name">
|
<div v-for="(pack, name) in $store.state.emojiPacks.remotePacks" :key="name">
|
||||||
<emoji-pack :name="name" :pack="pack" :host="remoteInstanceAddress" :is-local="false" />
|
<emoji-pack :name="name" :pack="pack" :host="remoteInstanceAddress" :is-local="false" />
|
||||||
<el-divider />
|
<el-divider />
|
||||||
</div>
|
</div>
|
Loading…
Reference in a new issue