25 lines
693 B
Vue
Raw Normal View History

2024-09-26 01:05:18 +05:00
<script setup lang="ts">
import Base from "@/views/Base.vue";
import PlayIcon from "@/components/PlayIcon.vue";
import ExternalIcon from "@/components/ExternalIcon.vue";
import LocationIcon from "@/components/LocationIcon.vue";
import Error from "@/components/Error.vue";
import Station from "@/components/Station.vue";
import { api, store } from "@";
2024-09-26 01:05:18 +05:00
import { ref, onMounted, onUnmounted } from "vue";
const player = store.usePlayer();
2024-09-26 01:05:18 +05:00
const error = ref(null);
onMounted(async () => {
await player.refreshStations(error);
2024-09-26 01:05:18 +05:00
});
</script>
<template>
<Base>
<Error :value="error" />
<Station :stationInfo="station" v-for="station in player.stations" />
2024-09-26 01:05:18 +05:00
</Base>
</template>