mirror of
https://gitlab.com/RemixDev/deemix-webui.git
synced 2024-12-28 02:16:11 +00:00
Add country code in link analyzer
This commit is contained in:
parent
41588015ab
commit
c6912a395c
|
@ -142,7 +142,7 @@
|
||||||
|
|
||||||
<template v-if="countries.length">
|
<template v-if="countries.length">
|
||||||
<h3>{{ $t('linkAnalyzer.countries') }}</h3>
|
<h3>{{ $t('linkAnalyzer.countries') }}</h3>
|
||||||
<p v-for="(country, i) in countries" :key="i">{{ country[0] }} - {{ country[1] }}</p>
|
<p v-for="(country, i) in countries" :key="i">{{ country[0] }} - [{{ country[2] }}] {{ country[1] }}</p>
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="type === 'track'">
|
<template v-else-if="type === 'track'">
|
||||||
<h3>{{ $t('linkAnalyzer.noCountries') }}</h3>
|
<h3>{{ $t('linkAnalyzer.noCountries') }}</h3>
|
||||||
|
@ -231,6 +231,7 @@ export default {
|
||||||
const chars = [...cc].map(c => c.charCodeAt() + 127397)
|
const chars = [...cc].map(c => c.charCodeAt() + 127397)
|
||||||
temp.push(String.fromCodePoint(...chars))
|
temp.push(String.fromCodePoint(...chars))
|
||||||
temp.push(COUNTRIES[cc])
|
temp.push(COUNTRIES[cc])
|
||||||
|
temp.push(cc.toUpperCase())
|
||||||
this.countries.push(temp)
|
this.countries.push(temp)
|
||||||
this.available_countries.push(cc.toLowerCase())
|
this.available_countries.push(cc.toLowerCase())
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue