完善翻译
parent
dd41e00691
commit
3fdff4e6eb
|
@ -8,5 +8,14 @@
|
||||||
"theme_grey": "灰常美丽",
|
"theme_grey": "灰常美丽",
|
||||||
"theme_mid_autumn": "月里嫦娥",
|
"theme_mid_autumn": "月里嫦娥",
|
||||||
"theme_naruto": "木叶之村",
|
"theme_naruto": "木叶之村",
|
||||||
"theme_happy_new_year": "新年快乐"
|
"theme_happy_new_year": "新年快乐",
|
||||||
|
|
||||||
|
"source_kw": "酷我音乐",
|
||||||
|
"source_kg": "酷狗音乐",
|
||||||
|
"source_tx": "企鹅音乐",
|
||||||
|
"source_wy": "网易音乐",
|
||||||
|
"source_mg": "咪咕音乐",
|
||||||
|
"source_bd": "百度音乐",
|
||||||
|
|
||||||
|
"source_all": "聚合搜索"
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,12 +8,5 @@
|
||||||
"time": "时长",
|
"time": "时长",
|
||||||
"lossless": "无损",
|
"lossless": "无损",
|
||||||
"high_quality": "高品质",
|
"high_quality": "高品质",
|
||||||
"no_item": "搜我所想~~😉",
|
"no_item": "搜我所想~~😉"
|
||||||
"source_kw": "酷我音乐",
|
|
||||||
"source_kg": "酷狗音乐",
|
|
||||||
"source_tx": "QQ音乐",
|
|
||||||
"source_wy": "网易音乐",
|
|
||||||
"source_mg": "咪咕音乐",
|
|
||||||
"source_bd": "百度音乐",
|
|
||||||
"source_all": "聚合搜索"
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,5 +8,11 @@
|
||||||
"theme_grey": "灰常美麗",
|
"theme_grey": "灰常美麗",
|
||||||
"theme_mid_autumn": "月裡嫦娥",
|
"theme_mid_autumn": "月裡嫦娥",
|
||||||
"theme_naruto": "木葉之村",
|
"theme_naruto": "木葉之村",
|
||||||
"theme_happy_new_year": "新年快樂"
|
"theme_happy_new_year": "新年快樂",
|
||||||
|
"source_kw": "酷我音樂",
|
||||||
|
"source_kg": "酷狗音樂",
|
||||||
|
"source_tx": "企鵝音樂",
|
||||||
|
"source_wy": "網易音樂",
|
||||||
|
"source_mg": "咪咕音樂",
|
||||||
|
"source_bd": "百度音樂"
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,12 +8,5 @@
|
||||||
"time": "時長",
|
"time": "時長",
|
||||||
"lossless": "無損",
|
"lossless": "無損",
|
||||||
"high_quality": "高品質",
|
"high_quality": "高品質",
|
||||||
"no_item": "搜我所想~~😉",
|
"no_item": "搜我所想~~😉"
|
||||||
"source_kw": "酷我音樂",
|
|
||||||
"source_kg": "酷狗音樂",
|
|
||||||
"source_tx": "QQ音樂",
|
|
||||||
"source_wy": "網易音樂",
|
|
||||||
"source_mg": "咪咕音樂",
|
|
||||||
"source_bd": "百度音樂",
|
|
||||||
"source_all": "聚合搜索"
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,5 +8,13 @@
|
||||||
"theme_grey": "Grey",
|
"theme_grey": "Grey",
|
||||||
"theme_mid_autumn": "Mid-Autumn",
|
"theme_mid_autumn": "Mid-Autumn",
|
||||||
"theme_naruto": "Naruto",
|
"theme_naruto": "Naruto",
|
||||||
"theme_happy_new_year": "New Year"
|
"theme_happy_new_year": "New Year",
|
||||||
|
|
||||||
|
"source_kw": "Kuwo",
|
||||||
|
"source_kg": "Kugou",
|
||||||
|
"source_tx": "Tencent",
|
||||||
|
"source_wy": "Netease",
|
||||||
|
"source_mg": "Migu",
|
||||||
|
"source_bd": "Baidu",
|
||||||
|
"source_all": "Aggregated"
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,12 +8,5 @@
|
||||||
"time": "Interval",
|
"time": "Interval",
|
||||||
"lossless": "SQ",
|
"lossless": "SQ",
|
||||||
"high_quality": "HQ",
|
"high_quality": "HQ",
|
||||||
"no_item": "Search what i think~~😉",
|
"no_item": "Search what i think~~😉"
|
||||||
"source_kw": "Kuwo",
|
|
||||||
"source_kg": "Kugou",
|
|
||||||
"source_tx": "Tencent",
|
|
||||||
"source_wy": "Netease",
|
|
||||||
"source_mg": "Migu",
|
|
||||||
"source_bd": "Baidu",
|
|
||||||
"source_all": "Aggregated"
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,14 +11,23 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
source(state) {
|
source(state) {
|
||||||
return music.sources.find(s => s.id === state.setting.sourceId) || music.sources[0]
|
const source = music.sources.find(s => s.id === state.setting.sourceId) || music.sources[0]
|
||||||
|
return { id: source.id, name: window.i18n.t('store.state.source_' + source.id) }
|
||||||
},
|
},
|
||||||
sources(state) {
|
sources(state) {
|
||||||
return {
|
return {
|
||||||
active: state.setting.sourceId,
|
active: state.setting.sourceId,
|
||||||
list: music.sources,
|
list: music.sources.map(item => ({ id: item.id, name: window.i18n.t('store.state.source_' + item.id) })),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
sourceNames() {
|
||||||
|
const sources = {}
|
||||||
|
for (const source of music.sources) {
|
||||||
|
sources[source.id] = window.i18n.t('store.state.source_' + source.id)
|
||||||
|
}
|
||||||
|
sources.all = window.i18n.t('store.state.source_all')
|
||||||
|
return sources
|
||||||
|
},
|
||||||
userInfo(state) {
|
userInfo(state) {
|
||||||
return state.userInfo
|
return state.userInfo
|
||||||
},
|
},
|
||||||
|
|
|
@ -19,7 +19,9 @@ const state = {
|
||||||
|
|
||||||
// getters
|
// getters
|
||||||
const getters = {
|
const getters = {
|
||||||
sourceInfo: () => ({ sources, sourceList }),
|
sourceInfo(state, getters, rootState, { sourceNames }) {
|
||||||
|
return { sources: sources.map(item => ({ id: item.id, name: sourceNames[item.id] })), sourceList }
|
||||||
|
},
|
||||||
list(state) {
|
list(state) {
|
||||||
return state.list
|
return state.list
|
||||||
},
|
},
|
||||||
|
@ -37,7 +39,7 @@ const actions = {
|
||||||
getList({ state, rootState, commit }, page) {
|
getList({ state, rootState, commit }, page) {
|
||||||
let source = rootState.setting.leaderboard.source
|
let source = rootState.setting.leaderboard.source
|
||||||
let tabId = rootState.setting.leaderboard.tabId
|
let tabId = rootState.setting.leaderboard.tabId
|
||||||
let key = `${source}${tabId}${page}}`
|
let key = `${source}${tabId}${page}`
|
||||||
if (state.list.length && state.key == key) return true
|
if (state.list.length && state.key == key) return true
|
||||||
commit('clearList')
|
commit('clearList')
|
||||||
return music[source].leaderboard.getList(tabId, page).then(result => commit('setList', { result, key }))
|
return music[source].leaderboard.getList(tabId, page).then(result => commit('setList', { result, key }))
|
||||||
|
|
|
@ -35,7 +35,9 @@ const state = {
|
||||||
|
|
||||||
// getters
|
// getters
|
||||||
const getters = {
|
const getters = {
|
||||||
sources: () => sources,
|
sources(state, getters, rootState, { sourceNames }) {
|
||||||
|
return sources.map(item => ({ id: item.id, name: sourceNames[item.id] }))
|
||||||
|
},
|
||||||
sourceList: state => state.sourceList || [],
|
sourceList: state => state.sourceList || [],
|
||||||
searchText: state => state.text,
|
searchText: state => state.text,
|
||||||
allList: state => ({ list: state.list, allPage: state.allPage, page: state.page, total: state.total, limit: state.limit, sourceMaxPage: state.sourceMaxPage }),
|
allList: state => ({ list: state.list, allPage: state.allPage, page: state.page, total: state.total, limit: state.limit, sourceMaxPage: state.sourceMaxPage }),
|
||||||
|
|
|
@ -39,7 +39,9 @@ sources.forEach(source => {
|
||||||
|
|
||||||
// getters
|
// getters
|
||||||
const getters = {
|
const getters = {
|
||||||
sourceInfo: () => ({ sources, sortList }),
|
sourceInfo(state, getters, rootState, { sourceNames }) {
|
||||||
|
return { sources: sources.map(item => ({ id: item.id, name: sourceNames[item.id] })), sortList }
|
||||||
|
},
|
||||||
tags: state => state.tags,
|
tags: state => state.tags,
|
||||||
isVisibleListDetail: state => state.isVisibleListDetail,
|
isVisibleListDetail: state => state.isVisibleListDetail,
|
||||||
selectListInfo: state => state.selectListInfo,
|
selectListInfo: state => state.selectListInfo,
|
||||||
|
|
|
@ -5,7 +5,7 @@ export default {
|
||||||
list: [
|
list: [
|
||||||
{
|
{
|
||||||
id: 'kgtop500',
|
id: 'kgtop500',
|
||||||
name: '酷狗TOP500',
|
name: 'TOP500',
|
||||||
bangid: '8888',
|
bangid: '8888',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -53,11 +53,11 @@ export default {
|
||||||
name: 'DJ热歌榜',
|
name: 'DJ热歌榜',
|
||||||
bangid: '24971',
|
bangid: '24971',
|
||||||
},
|
},
|
||||||
// {
|
{
|
||||||
// id: 'kghyxgb',
|
id: 'kghyxgb',
|
||||||
// name: '华语新歌榜',
|
name: '华语新歌榜',
|
||||||
// bangid: '31308',
|
bangid: '31308',
|
||||||
// },
|
},
|
||||||
],
|
],
|
||||||
getUrl(p, id) {
|
getUrl(p, id) {
|
||||||
return `http://www2.kugou.kugou.com/yueku/v9/rank/home/${p}-${id}.html`
|
return `http://www2.kugou.kugou.com/yueku/v9/rank/home/${p}-${id}.html`
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
div(:class="$style.search")
|
div(:class="$style.search")
|
||||||
//- transition
|
//- transition
|
||||||
div(:class="$style.header")
|
div(:class="$style.header")
|
||||||
material-tab(:class="$style.tab" :list="newSources" align="left" item-key="id" item-name="name" v-model="searchSourceId")
|
material-tab(:class="$style.tab" :list="sources" align="left" item-key="id" item-name="name" v-model="searchSourceId")
|
||||||
div(v-if="listInfo.list.length" :class="$style.list")
|
div(v-if="listInfo.list.length" :class="$style.list")
|
||||||
div(:class="$style.thead")
|
div(:class="$style.thead")
|
||||||
table
|
table
|
||||||
|
@ -137,9 +137,6 @@ export default {
|
||||||
isAPITemp() {
|
isAPITemp() {
|
||||||
return this.setting.apiSource == 'temp'
|
return this.setting.apiSource == 'temp'
|
||||||
},
|
},
|
||||||
newSources() {
|
|
||||||
return this.sources.map(item => ({ id: item.id, name: this.$t('view.search.source_' + item.id) }))
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapMutations(['setSearchSource']),
|
...mapMutations(['setSearchSource']),
|
||||||
|
|
Loading…
Reference in New Issue