A mobile app for listening to radio stations from around the globe
git clone git://soophie.de/verbal
28
template: `29
<div class="w-full gap-4 group flex items-center">30
<div31
class="w-[54px] h-[54px] min-w-[54px] bg-zinc-900 rounded-lg overflow-hidden cursor-pointer"31
class="w-[54px] h-[54px] min-w-[54px] bg-zinc-900 rounded-md overflow-hidden cursor-pointer"32
@click="() => setStation(station)"33
>34
<img
59
:title="$lang('global.country')"60
>61
<v-icon62
id="world"62
id="map-pin"63
class="w-[18px] h-[18px] !min-w-[18px] inline-flex text-gray-400"64
size="100%"65
></v-icon>66
<p>{{station.country}}</p>66
<p>{{station.state ? station.state + ', ' : ''}}{{station.country}}</p>67
</span>68
<span69
v-if="station.votes"
8
export const state = {9
app: null,10
tab: 'favorites',10
tab: 'search',11
account: {12
username: '',13
language: 'en'
58
}59
},60
template: `61
<div class="px-4 sm:px-10 pb-8 sm:pb-[100px] max-w-[800px] mx-auto flex flex-col">61
<div class="px-4 sm:px-10 pb-8 sm:pb-[100px] max-w-[1200px] mx-auto flex flex-col">62
<v-menu :state="state"></v-menu>63
<v-player :station="state.station"></v-player>64
<v-search ref="search" :state="state"></v-search>
13
},14
results: [],15
loading: false,16
more: true16
more: true,17
countries: [18
{ name: 'All', value: '' },19
{ name: 'US', value: 'US' },20
{ name: 'GB', value: 'GB' },21
{ name: 'DE', value: 'DE' },22
{ name: 'CA', value: 'CA' }23
],24
languages: [25
{ name: 'All', value: '' },26
{ name: 'EN', value: 'EN' },27
{ name: 'DE', value: 'DE' },28
{ name: 'FR', value: 'FR' },29
{ name: 'ES', value: 'ES' }30
]31
};32
},33
components: {
57
this.more = false;58
}59
this.results.push(...result);60
},61
reset() {62
this.query = {63
name : '',64
page: 065
};66
this.doSearch();67
}68
},69
mounted() {
80
spellcheck="false"81
autocomplete="off"82
>83
<div class="flex gap-5">84
<select85
v-model="query.country"86
@change="doSearch"87
class="w-full h-[56px] px-5 text-lg rounded-lg bg-zinc-900 text-white font-medium placeholder:font-normal placeholder:text-gray-500 focus:placeholder:text-gray-600 outline-none cursor-pointer"88
>89
<option v-for="country in countries" :value="country.value">{{country.name}}</option>90
</select>91
<select92
v-model="query.language"93
@change="doSearch"94
class="w-full h-[56px] px-5 text-lg rounded-lg bg-zinc-900 text-white font-medium placeholder:font-normal placeholder:text-gray-500 focus:placeholder:text-gray-600 outline-none cursor-pointer"95
>96
<option v-for="language in languages" :value="language.value">{{language.name}}</option>97
</select>98
</div>99
<ul class="flex flex-col">100
<li101
:key="station.id"