mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 04:23:01 +00:00
some bug fixes
- watch route params instead of route object in folderview - move to script setup on album view - use album as a reactive object instead of refs - use axios instead of fetch to get album data - improve clickable areas on songItem - move album requests to POST
This commit is contained in:
@@ -13,6 +13,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="search">
|
||||
<div class="loaderr">
|
||||
<Loader />
|
||||
</div>
|
||||
<input
|
||||
type="text"
|
||||
class="search-input border"
|
||||
@@ -26,11 +29,13 @@
|
||||
|
||||
<script>
|
||||
import perks from "@/composables/perks.js";
|
||||
import { watch } from '@vue/runtime-core';
|
||||
import useDebouncedRef from '@/composables/useDebouncedRef.js';
|
||||
import { watch } from "@vue/runtime-core";
|
||||
import useDebouncedRef from "@/composables/useDebouncedRef.js";
|
||||
import Loader from "../shared/Loader.vue";
|
||||
|
||||
export default {
|
||||
props: ["path", "first_song"],
|
||||
components: { Loader },
|
||||
setup(props, { emit }) {
|
||||
const query = useDebouncedRef("", 400);
|
||||
|
||||
@@ -63,8 +68,13 @@ export default {
|
||||
.folder-top .search {
|
||||
width: 50%;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
place-items: end;
|
||||
|
||||
.loaderr {
|
||||
width: 2rem;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
max-width: 20rem;
|
||||
width: 100%;
|
||||
@@ -123,4 +133,4 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user