move page stores into pages folder

This commit is contained in:
geoffrey45
2022-06-10 17:08:29 +03:00
parent 67d19fb6e3
commit 75123f5384
18 changed files with 60 additions and 61 deletions
+1 -1
View File
@@ -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();
+3 -3
View File
@@ -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;
})
+4 -4
View File
@@ -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>
+3 -3
View File
@@ -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>