mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
move page stores into pages folder
This commit is contained in:
@@ -23,7 +23,7 @@ import AlbumBio from "../components/AlbumView/AlbumBio.vue";
|
||||
import SongList from "../components/FolderView/SongList.vue";
|
||||
import FeaturedArtists from "../components/PlaylistView/FeaturedArtists.vue";
|
||||
|
||||
import useAStore from "../stores/album";
|
||||
import useAStore from "../stores/pages/album";
|
||||
import { onBeforeRouteUpdate } from "vue-router";
|
||||
|
||||
const album = useAStore();
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
<script setup lang="ts">
|
||||
import { ref } from "@vue/reactivity";
|
||||
import { onBeforeRouteUpdate } from "vue-router";
|
||||
|
||||
import SongList from "@/components/FolderView/SongList.vue";
|
||||
import FolderList from "@/components/FolderView/FolderList.vue";
|
||||
|
||||
import useFStore from "../stores/folder";
|
||||
import useFStore from "../stores/pages/folder";
|
||||
import useLoaderStore from "../stores/loader";
|
||||
|
||||
const loader = useLoaderStore();
|
||||
@@ -24,7 +24,7 @@ const scrollable = ref(null);
|
||||
|
||||
onBeforeRouteUpdate((to) => {
|
||||
loader.startLoading();
|
||||
FStore.fetchAll(to.params.path)
|
||||
FStore.fetchAll(to.params.path as string)
|
||||
.then(() => {
|
||||
scrollable.value.scrollTop = 0;
|
||||
})
|
||||
|
||||
@@ -28,10 +28,10 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import Header from "../components/PlaylistView/Header.vue";
|
||||
import SongList from "../components/FolderView/SongList.vue";
|
||||
import FeaturedArtists from "../components/PlaylistView/FeaturedArtists.vue";
|
||||
import usePTrackStore from "../stores/p.ptracks";
|
||||
import Header from "@/components/PlaylistView/Header.vue";
|
||||
import SongList from "@/components/FolderView/SongList.vue";
|
||||
import FeaturedArtists from "@/components/PlaylistView/FeaturedArtists.vue";
|
||||
import usePTrackStore from "@/stores/pages/playlist";
|
||||
|
||||
const playlist = usePTrackStore();
|
||||
</script>
|
||||
|
||||
@@ -12,10 +12,10 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import PlaylistCard from "../components/playlists/PlaylistCard.vue";
|
||||
import PlaylistCard from "@/components/playlists/PlaylistCard.vue";
|
||||
|
||||
import usePStore from "../stores/playlists";
|
||||
import NewPlaylistCard from "../components/playlists/NewPlaylistCard.vue";
|
||||
import usePStore from "@/stores/pages/playlists";
|
||||
import NewPlaylistCard from "@/components/playlists/NewPlaylistCard.vue";
|
||||
const pStore = usePStore();
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user