1234567891011121314151617181920212223242526 |
- <script setup>
- import { useRadioStore } from "../js/store";
- import radiomanifest from "@radiomanifest/radiomanifest";
- const store = useRadioStore();
- setTimeout(() => {
- for (const url of Object.keys(store.radios)) {
- radiomanifest.get(url).then((data) => {
- store.radios[url] = { ...store.radios[url], ...data };
- });
- }
- }, 100);
- </script>
- <template>
- <f7-page name="home">
- <!-- Page content-->
- <f7-block-title>Radio</f7-block-title>
- <f7-list>
- <f7-list-item
- v-for="(radio, url) in store.radios"
- :key="radio.name"
- :link="`/radio/${encodeURIComponent(url)}`"
- :title="radio.name"
- />
- </f7-list>
- </f7-page>
- </template>
|