A mobile app for listening to radio stations from around the globe
git clone git://soophie.de/verbal
blob: 1dfb6711db36a3d675be8050207f3ca1f16e2253 (1230 bytes)[doc][blame][raw]
1
import {http} from './utils.js';2
import VMenu from './component/menu.js';3
import VSearch from './page/search.js';4
import VFavorites from './page/favorites.js';5
import VAccount from './page/account.js';7
export const state = {8
tab: 'search',9
account: {10
username: 'typable',11
language: 'en'12
},13
station: {14
name: 'Liquid Trap',15
favicon: 'https://cdn-images.audioaddict.com/6/b/5/b/d/6/6b5bd66a99e46fa1258cb565d988ea7c.jpg',16
is_favorite: true17
}18
};20
(async () => {21
state.locale = await http`get::/asset/json/locale.json`();23
new Vue({24
el: '#app',25
data: {26
state27
},28
components: {29
VMenu,30
VSearch,31
VFavorites,32
VAccount33
},34
mounted() {35
document.body.style.display = '';36
},37
template: `38
<div class="px-4 sm:px-10 pb-8 sm:pb-[100px] max-w-[800px] mx-auto flex flex-col">39
<v-menu :state="state"></v-menu>40
<v-search :state="state"></v-search>41
<v-favorites :state="state"></v-favorites>42
<v-account :state="state"></v-account>43
</div>44
`45
});46
})();