forked from Mirrors/swingmusic-webclient
Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
80a0bdbbf1 | ||
|
|
2e27da3f9f | ||
|
|
74bf8f5d78 | ||
|
|
bfdefc37fd | ||
|
|
44a877b9c9 | ||
|
|
db93fd554e | ||
|
|
40a7ad084c | ||
|
|
e44aa01d63 | ||
|
|
192e705890 | ||
|
|
50f92b65ab | ||
|
|
a5aea45cd6 | ||
|
|
cc93fe7419 |
@@ -24,7 +24,7 @@
|
||||
"pinia-plugin-persistedstate": "^3.2.0",
|
||||
"qr-code-styling": "^1.6.0-rc.1",
|
||||
"v-wave": "^1.5.0",
|
||||
"vue": "^v3.2.45",
|
||||
"vue": "^v3.5.13",
|
||||
"vue-boring-avatars": "^1.4.0",
|
||||
"vue-debounce": "^3.0.2",
|
||||
"vue-router": "^4.1.3",
|
||||
|
||||
4
src/assets/icons/explicit.svg
Normal file
4
src/assets/icons/explicit.svg
Normal file
@@ -0,0 +1,4 @@
|
||||
<svg viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M3.84421 21.8972H18.0295C20.5685 21.8972 21.8737 20.5919 21.8737 18.0914V3.82921C21.8737 1.32656 20.5685 0.0234375 18.0295 0.0234375H3.84421C1.31484 0.0234375 0 1.31695 0 3.82921V18.0914C0 20.6016 1.31484 21.8972 3.84421 21.8972Z" fill="#aeaeaf"/>
|
||||
<path d="M8.24921 16.3608C7.44976 16.3608 7.04688 15.8618 7.04688 15.0368V6.67026C7.04688 5.84948 7.45187 5.34839 8.24921 5.34839H13.795C14.3777 5.34839 14.7607 5.68026 14.7607 6.26643C14.7607 6.8376 14.3777 7.19619 13.795 7.19619H9.33695V9.92808H13.5377C14.0824 9.92808 14.4464 10.2356 14.4464 10.7923C14.4464 11.3222 14.0824 11.6255 13.5377 11.6255H9.33695V14.513H13.795C14.3777 14.513 14.7607 14.8545 14.7607 15.4406C14.7607 16.0118 14.3777 16.3608 13.795 16.3608H8.24921Z" fill="#111111"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 831 B |
4
src/assets/icons/pencil.svg
Normal file
4
src/assets/icons/pencil.svg
Normal file
@@ -0,0 +1,4 @@
|
||||
<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M3.42607 18.5857L16.593 5.42412L14.344 3.16546L1.1674 16.3366L0.0267015 19.0816C-0.10197 19.4303 0.258496 19.8049 0.592479 19.6708L3.42607 18.5857ZM17.715 4.32139L18.9829 3.07476C19.6122 2.44546 19.6378 1.7482 19.0703 1.16906L18.6128 0.709452C18.0454 0.139922 17.3439 0.200625 16.7125 0.808593L15.4467 2.06273L17.715 4.32139Z" fill="currentColor"/>
|
||||
</svg>
|
||||
|
||||
|
After Width: | Height: | Size: 439 B |
@@ -267,4 +267,9 @@ button {
|
||||
.badge.new {
|
||||
background-color: $blue;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.explicit-icon {
|
||||
width: 0.9rem;
|
||||
margin-left: $smaller;
|
||||
}
|
||||
@@ -32,6 +32,7 @@
|
||||
<span class="ellip">
|
||||
{{ queue.currenttrack?.title || 'Hello there' }}
|
||||
</span>
|
||||
<ExplicitIcon class="explicit-icon" v-if="queue.currenttrack?.explicit" />
|
||||
<MasterFlag :bitrate="queue.currenttrack?.bitrate || 0" />
|
||||
</div>
|
||||
<ArtistName
|
||||
@@ -61,6 +62,7 @@ import HotKeys from '../LeftSidebar/NP/HotKeys.vue'
|
||||
import HeartSvg from '../shared/HeartSvg.vue'
|
||||
import MasterFlag from '../shared/MasterFlag.vue'
|
||||
import Actions from './Right.vue'
|
||||
import ExplicitIcon from '@/assets/icons/explicit.svg'
|
||||
|
||||
const queue = useQStore()
|
||||
const settings = useSettingsStore()
|
||||
|
||||
@@ -57,6 +57,10 @@ onMounted(async () => {
|
||||
date.value = res.data.dates
|
||||
}
|
||||
})
|
||||
|
||||
defineOptions({
|
||||
inheritAttrs: false,
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
@@ -22,6 +22,12 @@
|
||||
@hideModal="hideModal"
|
||||
@setTitle="setTitle"
|
||||
/>
|
||||
<CrudPage
|
||||
v-if="modal.component == modal.options.page"
|
||||
@hideModal="hideModal"
|
||||
@setTitle="setTitle"
|
||||
v-bind="modal.props"
|
||||
/>
|
||||
<UpdatePlaylist
|
||||
v-if="modal.component == modal.options.updatePlaylist"
|
||||
v-bind="modal.props"
|
||||
@@ -49,6 +55,7 @@ import { useRouter } from 'vue-router'
|
||||
|
||||
import AuthLogin from './modals/AuthLogin.vue'
|
||||
import ConfirmModal from './modals/ConfirmModal.vue'
|
||||
import CrudPage from './modals/CrudPage.vue'
|
||||
import NewPlaylist from './modals/NewPlaylist.vue'
|
||||
import RootDirsPrompt from './modals/RootDirsPrompt.vue'
|
||||
import SetRootDirs from './modals/SetRootDirs.vue'
|
||||
|
||||
81
src/components/modals/CrudPage.vue
Normal file
81
src/components/modals/CrudPage.vue
Normal file
@@ -0,0 +1,81 @@
|
||||
<template>
|
||||
<form action="" v-if="delete">
|
||||
<div>Are you sure you want to delete this page?</div>
|
||||
<br />
|
||||
<button @click.prevent="submit" class="critical">Yes, Delete</button>
|
||||
</form>
|
||||
<form class="playlist-modal" @submit.prevent="submit" v-else>
|
||||
<label for="name">Page name</label>
|
||||
<br />
|
||||
<input type="search" class="rounded-sm" id="name" :value="page?.name" />
|
||||
<br />
|
||||
<label for="description">Description</label>
|
||||
<br />
|
||||
<input type="search" class="rounded-sm" id="description" :value="page?.extra.description" />
|
||||
<br /><br />
|
||||
<button type="submit">{{ page ? 'Update' : 'Create' }}</button>
|
||||
</form>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { Page } from '@/interfaces'
|
||||
import { createNewPage, deletePage, updatePage } from '@/requests/pages'
|
||||
import { router } from '@/router';
|
||||
import { NotifType, Notification } from '@/stores/notification'
|
||||
|
||||
const props = defineProps<{
|
||||
page?: Page
|
||||
hash?: string
|
||||
type?: string
|
||||
extra?: any
|
||||
delete?: boolean
|
||||
}>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'hideModal'): void
|
||||
(e: 'setTitle', title: string): void
|
||||
}>()
|
||||
|
||||
emit('setTitle', props.page ? (props.delete ? 'Delete Page' : 'Update Page') : 'New Page')
|
||||
|
||||
async function submit(e: Event) {
|
||||
if (props.delete && props.page) {
|
||||
const deleted = await deletePage(props.page.id)
|
||||
if (deleted) {
|
||||
new Notification('Page deleted', NotifType.Success)
|
||||
emit('hideModal')
|
||||
router.push('/')
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
e.preventDefault()
|
||||
const name = (e.target as any).elements['name'].value
|
||||
const description = (e.target as any).elements['description'].value
|
||||
|
||||
// If the page is null, we are creating a new page
|
||||
if (props.page == null) {
|
||||
const created = await createNewPage(name, description, [
|
||||
{
|
||||
hash: props.hash as string,
|
||||
type: props.type as string,
|
||||
extra: props.extra,
|
||||
},
|
||||
])
|
||||
|
||||
if (created) {
|
||||
new Notification('New page created', NotifType.Success)
|
||||
emit('hideModal')
|
||||
}
|
||||
} else {
|
||||
const updatedPage = await updatePage(props.page, name, description)
|
||||
|
||||
if (updatedPage) {
|
||||
props.page.name = updatedPage.name
|
||||
props.page.extra.description = updatedPage.extra.description
|
||||
new Notification('Page updated', NotifType.Success)
|
||||
emit('hideModal')
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -59,7 +59,7 @@ const currentGroup = computed(() => {
|
||||
// select default tab
|
||||
for (const group of settingGroups) {
|
||||
for (const settings of group.groups) {
|
||||
if (settings.title === 'Last.fm') {
|
||||
if (settings.title === 'Appearance') {
|
||||
return settings
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
params: { albumhash: album.albumhash },
|
||||
}"
|
||||
class="album-card"
|
||||
@contextmenu.prevent="showMenu"
|
||||
:class="{ 'context-menu-open': contextMenuFlag }"
|
||||
>
|
||||
<div class="with-img rounded-sm no-scroll">
|
||||
<div
|
||||
@@ -56,7 +58,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { Routes } from '@/router'
|
||||
import { computed } from 'vue'
|
||||
import { computed, ref } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
|
||||
import { Album } from '../../interfaces'
|
||||
@@ -66,9 +68,11 @@ import { playSources } from '@/enums'
|
||||
import useAlbumStore from '@/stores/pages/album'
|
||||
import { paths } from '../../config'
|
||||
import MasterFlag from './MasterFlag.vue'
|
||||
import { showAlbumContextMenu } from '@/helpers/contextMenuHandler'
|
||||
|
||||
const imguri = paths.images.thumb.medium
|
||||
const route = useRoute()
|
||||
const contextMenuFlag = ref(false)
|
||||
const imguri = paths.images.thumb.medium
|
||||
|
||||
const props = defineProps<{
|
||||
album: Album
|
||||
@@ -94,6 +98,10 @@ const artists = computed(() => {
|
||||
|
||||
return albumartists
|
||||
})
|
||||
|
||||
function showMenu(e: MouseEvent) {
|
||||
showAlbumContextMenu(e, contextMenuFlag, props.album)
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@@ -105,6 +113,10 @@ const artists = computed(() => {
|
||||
height: max-content;
|
||||
transition: background-color 0.2s ease-out;
|
||||
|
||||
&.context-menu-open {
|
||||
background-color: $gray5;
|
||||
}
|
||||
|
||||
.with-img {
|
||||
position: relative;
|
||||
|
||||
@@ -130,10 +142,6 @@ const artists = computed(() => {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
img {
|
||||
/* border-radius: 0 0 $medium $medium; Not sure why this one was added, fugly with animation */
|
||||
}
|
||||
|
||||
.gradient {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
},
|
||||
}"
|
||||
class="artist-card"
|
||||
@contextmenu.prevent="showContextMenu"
|
||||
:class="{ 'context-menu-open': contextMenuFlag }"
|
||||
>
|
||||
<div class="image circular">
|
||||
<img class="artist-image circular" :src="imguri + artist.image" />
|
||||
@@ -38,12 +40,19 @@ import { Routes } from '@/router'
|
||||
|
||||
import { playSources } from '@/enums'
|
||||
import PlayBtn from './PlayBtn.vue'
|
||||
import { ref } from 'vue'
|
||||
import { showArtistContextMenu } from '@/helpers/contextMenuHandler'
|
||||
|
||||
const imguri = paths.images.artist.medium
|
||||
const contextMenuFlag = ref(false)
|
||||
|
||||
defineProps<{
|
||||
const props = defineProps<{
|
||||
artist: Artist
|
||||
}>()
|
||||
|
||||
const showContextMenu = (e: MouseEvent) => {
|
||||
showArtistContextMenu(e, contextMenuFlag, props.artist.artisthash, props.artist.name)
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@@ -59,6 +68,10 @@ defineProps<{
|
||||
height: max-content;
|
||||
transition: background-color 0.2s ease-out;
|
||||
|
||||
&.context-menu-open {
|
||||
background-color: $gray5;
|
||||
}
|
||||
|
||||
.image {
|
||||
position: relative;
|
||||
|
||||
|
||||
@@ -1,36 +1,68 @@
|
||||
<template>
|
||||
<div v-if="type == 'album'" class="cardlistrow">
|
||||
<AlbumCard v-for="item in items" :key="item.albumhash" class="hlistitem" :album="(item as Album)" />
|
||||
</div>
|
||||
<div v-else-if="type == 'artist'" class="cardlistrow">
|
||||
<ArtistCard v-for="item in items" :key="item.artisthash" class="hlistitem" :artist="(item as Artist)" />
|
||||
</div>
|
||||
<div v-else-if="type == 'mix'" class="cardlistrow">
|
||||
<MixCard v-for="item in items" :key="item.sourcehash" class="hlistitem" :mix="(item as Mix)" />
|
||||
</div>
|
||||
<div class="cardlistrow">
|
||||
<component v-for="item in items" :key="item.key" :is="item.component" v-bind="item.props" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { Album, Artist, Mix } from "@/interfaces";
|
||||
import AlbumCard from "./AlbumCard.vue";
|
||||
import ArtistCard from "./ArtistCard.vue";
|
||||
import MixCard from "../Mixes/MixCard.vue";
|
||||
import { Album, Artist, Mix } from '@/interfaces'
|
||||
import AlbumCard from './AlbumCard.vue'
|
||||
import ArtistCard from './ArtistCard.vue'
|
||||
import MixCard from '../Mixes/MixCard.vue'
|
||||
import { computed } from 'vue'
|
||||
|
||||
defineProps<{
|
||||
type: string | "album" | "artist" | "mix";
|
||||
items: Album[] | Artist[] | Mix[];
|
||||
}>();
|
||||
const props = defineProps<{
|
||||
items: Album[] | Artist[] | Mix[]
|
||||
}>()
|
||||
|
||||
const items = computed(() => {
|
||||
return props.items.map((item: any) => {
|
||||
const i = {
|
||||
component: <any>null,
|
||||
props: {},
|
||||
key: '',
|
||||
}
|
||||
|
||||
switch (item['type']) {
|
||||
case 'album':
|
||||
i.component = AlbumCard
|
||||
i.key = item.albumhash
|
||||
i.props = {
|
||||
album: item,
|
||||
}
|
||||
break
|
||||
case 'artist':
|
||||
i.component = ArtistCard
|
||||
i.key = item.artisthash
|
||||
i.props = {
|
||||
artist: item,
|
||||
}
|
||||
break
|
||||
case 'mix':
|
||||
i.component = MixCard
|
||||
i.key = item.sourcehash
|
||||
i.props = {
|
||||
mix: item,
|
||||
}
|
||||
break
|
||||
}
|
||||
|
||||
return i
|
||||
})
|
||||
})
|
||||
|
||||
console.log(props)
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.cardlistrow {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax($cardwidth, 1fr));
|
||||
padding-bottom: 2rem;
|
||||
z-index: -1;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax($cardwidth, 1fr));
|
||||
padding-bottom: 2rem;
|
||||
z-index: -1;
|
||||
|
||||
@include mediumPhones {
|
||||
grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
|
||||
}
|
||||
@include mediumPhones {
|
||||
grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -2,11 +2,17 @@
|
||||
<div class="cardscroller">
|
||||
<div class="rinfo">
|
||||
<div class="rtitle">
|
||||
<b>{{ title }}</b>
|
||||
<b>
|
||||
<RouterLink :to="route || ''">
|
||||
{{ title }}
|
||||
</RouterLink>
|
||||
</b>
|
||||
<SeeAll v-if="route && itemlist.length >= maxAbumCards" :route="route" :text="seeAllText" />
|
||||
</div>
|
||||
<div v-if="description" class="rdesc">
|
||||
{{ description }}
|
||||
<RouterLink :to="route || ''">
|
||||
{{ description }}
|
||||
</RouterLink>
|
||||
</div>
|
||||
</div>
|
||||
<div class="recentitems">
|
||||
@@ -26,7 +32,7 @@
|
||||
import { playSources } from '@/enums'
|
||||
import { maxAbumCards } from '@/stores/content-width'
|
||||
|
||||
import { computed } from 'vue'
|
||||
import { computed, onMounted } from 'vue'
|
||||
import PlaylistCard from '../PlaylistsList/PlaylistCard.vue'
|
||||
import SeeAll from '../shared/SeeAll.vue'
|
||||
import AlbumCard from './AlbumCard.vue'
|
||||
@@ -131,6 +137,10 @@ function getProps(item: { type: string; item?: any; with_helptext?: boolean }) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
console.log(props.items)
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
@@ -30,6 +30,12 @@
|
||||
grid-template-columns: 1fr max-content;
|
||||
}
|
||||
|
||||
.right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.after {
|
||||
margin-top: 2rem;
|
||||
margin-left: -$medium;
|
||||
|
||||
@@ -28,7 +28,7 @@ defineProps<{
|
||||
font-weight: 600;
|
||||
margin-left: $smaller;
|
||||
padding: 2px 5px;
|
||||
border-radius: 5px;
|
||||
border-radius: 4px;
|
||||
opacity: 0.75;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
<span class="title ellip">
|
||||
{{ track.title }}
|
||||
</span>
|
||||
<ExplicitIcon class="explicit-icon" v-if="track.explicit" />
|
||||
<MasterFlag :bitrate="track.bitrate" />
|
||||
</div>
|
||||
<div class="isSmallArtists">
|
||||
@@ -40,6 +41,7 @@ const imguri = paths.images.thumb.small;
|
||||
|
||||
import ArtistName from "../ArtistName.vue";
|
||||
import MasterFlag from "../MasterFlag.vue";
|
||||
import ExplicitIcon from "@/assets/icons/explicit.svg";
|
||||
|
||||
import { paths } from "@/config";
|
||||
|
||||
@@ -59,6 +61,10 @@ defineEmits<{
|
||||
position: relative;
|
||||
align-items: center;
|
||||
|
||||
.explicit-icon {
|
||||
margin-left: $small;
|
||||
}
|
||||
|
||||
.thumbnail {
|
||||
margin-right: $medium;
|
||||
display: flex;
|
||||
|
||||
@@ -85,6 +85,9 @@ export const paths = {
|
||||
return this.base + '/artists'
|
||||
},
|
||||
},
|
||||
pages: {
|
||||
base: base_url + '/pages',
|
||||
},
|
||||
search: {
|
||||
base: base_url + '/search',
|
||||
get top() {
|
||||
@@ -144,7 +147,7 @@ export const paths = {
|
||||
},
|
||||
files: base_url + '/file',
|
||||
home: {
|
||||
base: base_url + '/home',
|
||||
base: base_url + '/nothome',
|
||||
get recentlyAdded() {
|
||||
return this.base + '/recents/added'
|
||||
},
|
||||
|
||||
@@ -1,56 +1,109 @@
|
||||
import useModal from "@/stores/modal";
|
||||
import useAlbum from "@/stores/pages/album";
|
||||
import useTracklist from "@/stores/queue/tracklist";
|
||||
import { router, Routes } from '@/router'
|
||||
|
||||
import { Option, Playlist } from "@/interfaces";
|
||||
import { addAlbumToPlaylist } from "@/requests/playlists";
|
||||
import { getAddToPlaylistOptions, get_find_on_social } from "./utils";
|
||||
import { AddToQueueIcon, PlayNextIcon, PlaylistIcon, PlusIcon } from "@/icons";
|
||||
import useAlbum from '@/stores/pages/album'
|
||||
import useTracklist from '@/stores/queue/tracklist'
|
||||
import usePage from '@/stores/pages/page'
|
||||
|
||||
export default async () => {
|
||||
const album = useAlbum();
|
||||
import { getAlbumTracks } from '@/requests/album'
|
||||
import { addAlbumToPlaylist } from '@/requests/playlists'
|
||||
import { addOrRemoveItemFromPage } from '@/requests/pages'
|
||||
|
||||
const play_next = <Option>{
|
||||
label: "Play next",
|
||||
action: () => {
|
||||
const tracks = album.tracks.filter(
|
||||
(track) => !track.is_album_disc_number
|
||||
);
|
||||
useTracklist().insertAfterCurrent(tracks);
|
||||
},
|
||||
icon: PlayNextIcon,
|
||||
};
|
||||
import { Album, Option, Page, Playlist, Track } from '@/interfaces'
|
||||
import { AddToQueueIcon, DeleteIcon, PlayNextIcon, PlusIcon } from '@/icons'
|
||||
import { getAddToPageOptions, getAddToPlaylistOptions, get_find_on_social } from './utils'
|
||||
|
||||
const add_to_queue = <Option>{
|
||||
label: "Add to queue",
|
||||
action: () => {
|
||||
const tracks = album.tracks.filter(
|
||||
(track) => !track.is_album_disc_number
|
||||
);
|
||||
useTracklist().addTracks(tracks);
|
||||
},
|
||||
icon: AddToQueueIcon,
|
||||
};
|
||||
export default async (album?: Album) => {
|
||||
const albumStore = useAlbum()
|
||||
|
||||
// Action for each playlist option
|
||||
const AddToPlaylistAction = (playlist: Playlist) => {
|
||||
const store = album;
|
||||
addAlbumToPlaylist(playlist, store.info.albumhash);
|
||||
};
|
||||
if (!album) {
|
||||
album = albumStore.info
|
||||
}
|
||||
|
||||
const add_to_playlist: Option = {
|
||||
label: "Add to Playlist",
|
||||
children: () => getAddToPlaylistOptions(AddToPlaylistAction, {
|
||||
albumhash: album.info.albumhash,
|
||||
playlist_name: album.info.title,
|
||||
}),
|
||||
icon: PlusIcon,
|
||||
};
|
||||
const play_next = <Option>{
|
||||
label: 'Play next',
|
||||
action: async () => {
|
||||
let tracks: Track[] = []
|
||||
|
||||
return [
|
||||
play_next,
|
||||
add_to_queue,
|
||||
add_to_playlist,
|
||||
get_find_on_social(),
|
||||
];
|
||||
};
|
||||
if (album) {
|
||||
tracks = await getAlbumTracks(album.albumhash)
|
||||
} else {
|
||||
tracks = albumStore.tracks.filter(track => !track.is_album_disc_number)
|
||||
}
|
||||
|
||||
useTracklist().insertAfterCurrent(tracks)
|
||||
},
|
||||
icon: PlayNextIcon,
|
||||
}
|
||||
|
||||
const add_to_queue = <Option>{
|
||||
label: 'Add to queue',
|
||||
action: async () => {
|
||||
let tracks: Track[] = []
|
||||
|
||||
if (album) {
|
||||
tracks = await getAlbumTracks(album.albumhash)
|
||||
} else {
|
||||
tracks = albumStore.tracks.filter(track => !track.is_album_disc_number)
|
||||
}
|
||||
|
||||
useTracklist().addTracks(tracks)
|
||||
},
|
||||
icon: AddToQueueIcon,
|
||||
}
|
||||
|
||||
// Action for each playlist option
|
||||
const AddToPlaylistAction = (playlist: Playlist) => {
|
||||
addAlbumToPlaylist(playlist, album.albumhash)
|
||||
}
|
||||
|
||||
const add_to_playlist: Option = {
|
||||
label: 'Add to Playlist',
|
||||
children: () =>
|
||||
getAddToPlaylistOptions(AddToPlaylistAction, {
|
||||
albumhash: album.albumhash,
|
||||
playlist_name: album.title,
|
||||
}),
|
||||
icon: PlusIcon,
|
||||
}
|
||||
|
||||
const addToPageAction = (page: Page) => {
|
||||
addOrRemoveItemFromPage(page.id, album, 'album', 'add')
|
||||
}
|
||||
|
||||
const add_to_page: Option = {
|
||||
label: 'Add to Page',
|
||||
children: () =>
|
||||
getAddToPageOptions(addToPageAction, {
|
||||
page: null,
|
||||
hash: album.albumhash,
|
||||
type: 'album',
|
||||
extra: {},
|
||||
}),
|
||||
icon: PlusIcon,
|
||||
}
|
||||
|
||||
const remove_from_page: Option = {
|
||||
label: 'Remove from Page',
|
||||
action: async () => {
|
||||
const success = await addOrRemoveItemFromPage(
|
||||
parseInt(router.currentRoute.value.params.page as string),
|
||||
album,
|
||||
'album',
|
||||
'remove'
|
||||
)
|
||||
|
||||
if (success) {
|
||||
usePage().removeLocalItem(album, 'album')
|
||||
}
|
||||
},
|
||||
icon: DeleteIcon,
|
||||
}
|
||||
|
||||
return [
|
||||
play_next,
|
||||
add_to_queue,
|
||||
add_to_playlist,
|
||||
...[router.currentRoute.value.name === Routes.Page ? remove_from_page : add_to_page],
|
||||
get_find_on_social('album', '', album),
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,54 +1,102 @@
|
||||
import modal from "@/stores/modal";
|
||||
import useTracklist from "@/stores/queue/tracklist";
|
||||
import { Routes } from '@/router'
|
||||
import { router } from '@/router'
|
||||
|
||||
import { getArtistTracks } from "@/requests/artists";
|
||||
import { addArtistToPlaylist } from "@/requests/playlists";
|
||||
import usePage from '@/stores/pages/page'
|
||||
import useTracklist from '@/stores/queue/tracklist'
|
||||
|
||||
import { Option, Playlist } from "@/interfaces";
|
||||
import { getAddToPlaylistOptions, get_find_on_social } from "./utils";
|
||||
import { AddToQueueIcon, PlayNextIcon, PlaylistIcon, PlusIcon } from "@/icons";
|
||||
import { getArtistTracks } from '@/requests/artists'
|
||||
import { addArtistToPlaylist } from '@/requests/playlists'
|
||||
import { addOrRemoveItemFromPage } from '@/requests/pages'
|
||||
|
||||
import { Artist, Option, Page, Playlist } from '@/interfaces'
|
||||
import { AddToQueueIcon, DeleteIcon, PlayNextIcon, PlusIcon } from '@/icons'
|
||||
import { getAddToPageOptions, getAddToPlaylistOptions, get_find_on_social } from './utils'
|
||||
|
||||
export default async (artisthash: string, artistname: string) => {
|
||||
const play_next = <Option>{
|
||||
label: "Play next",
|
||||
action: () => {
|
||||
getArtistTracks(artisthash).then((tracks) => {
|
||||
const store = useTracklist();
|
||||
store.insertAfterCurrent(tracks);
|
||||
});
|
||||
},
|
||||
icon: PlayNextIcon,
|
||||
};
|
||||
const play_next = <Option>{
|
||||
label: 'Play next',
|
||||
action: () => {
|
||||
getArtistTracks(artisthash).then(tracks => {
|
||||
const store = useTracklist()
|
||||
store.insertAfterCurrent(tracks)
|
||||
})
|
||||
},
|
||||
icon: PlayNextIcon,
|
||||
}
|
||||
|
||||
const add_to_queue = <Option>{
|
||||
label: "Add to queue",
|
||||
action: () => {
|
||||
getArtistTracks(artisthash).then((tracks) => {
|
||||
const store = useTracklist();
|
||||
store.addTracks(tracks);
|
||||
});
|
||||
},
|
||||
icon: AddToQueueIcon,
|
||||
};
|
||||
const add_to_queue = <Option>{
|
||||
label: 'Add to queue',
|
||||
action: () => {
|
||||
getArtistTracks(artisthash).then(tracks => {
|
||||
const store = useTracklist()
|
||||
store.addTracks(tracks)
|
||||
})
|
||||
},
|
||||
icon: AddToQueueIcon,
|
||||
}
|
||||
|
||||
// Action for each playlist option
|
||||
const AddToPlaylistAction = (playlist: Playlist) => {
|
||||
addArtistToPlaylist(playlist, artisthash);
|
||||
};
|
||||
// Action for each playlist option
|
||||
const AddToPlaylistAction = (playlist: Playlist) => {
|
||||
addArtistToPlaylist(playlist, artisthash)
|
||||
}
|
||||
|
||||
const add_to_playlist: Option = {
|
||||
label: "Add to Playlist",
|
||||
children: () => getAddToPlaylistOptions(AddToPlaylistAction, {
|
||||
artisthash,
|
||||
playlist_name: `This is ${artistname}`,
|
||||
}),
|
||||
icon: PlusIcon,
|
||||
};
|
||||
const add_to_playlist: Option = {
|
||||
label: 'Add to Playlist',
|
||||
children: () =>
|
||||
getAddToPlaylistOptions(AddToPlaylistAction, {
|
||||
artisthash,
|
||||
playlist_name: `This is ${artistname}`,
|
||||
}),
|
||||
icon: PlusIcon,
|
||||
}
|
||||
|
||||
return [
|
||||
play_next,
|
||||
add_to_queue,
|
||||
add_to_playlist,
|
||||
get_find_on_social("artist"),
|
||||
];
|
||||
};
|
||||
const addToPageAction = (page: Page) => {
|
||||
addOrRemoveItemFromPage(
|
||||
page.id,
|
||||
{
|
||||
artisthash,
|
||||
} as Artist,
|
||||
'artist',
|
||||
'add'
|
||||
)
|
||||
}
|
||||
|
||||
const add_to_page: Option = {
|
||||
label: 'Add to Page',
|
||||
children: () =>
|
||||
getAddToPageOptions(addToPageAction, {
|
||||
page: null,
|
||||
hash: artisthash,
|
||||
type: 'artist',
|
||||
extra: {},
|
||||
}),
|
||||
icon: PlusIcon,
|
||||
}
|
||||
|
||||
const remove_from_page: Option = {
|
||||
label: 'Remove from Page',
|
||||
action: async () => {
|
||||
const success = await addOrRemoveItemFromPage(
|
||||
parseInt(router.currentRoute.value.params.page as string),
|
||||
{
|
||||
artisthash,
|
||||
} as Artist,
|
||||
'artist',
|
||||
'remove'
|
||||
)
|
||||
|
||||
if (success) {
|
||||
usePage().removeLocalItem({ artisthash } as Artist, 'artist')
|
||||
}
|
||||
},
|
||||
icon: DeleteIcon,
|
||||
}
|
||||
|
||||
return [
|
||||
play_next,
|
||||
add_to_queue,
|
||||
add_to_playlist,
|
||||
...[router.currentRoute.value.name === Routes.Page ? remove_from_page : add_to_page],
|
||||
get_find_on_social('artist'),
|
||||
]
|
||||
}
|
||||
|
||||
@@ -3,16 +3,15 @@ import useAlbum from '@/stores/pages/album'
|
||||
import useArtist from '@/stores/pages/artist'
|
||||
|
||||
import { SearchIcon } from '@/icons'
|
||||
import { Option, Playlist } from '@/interfaces'
|
||||
import { Album, Option, Page, Playlist } from '@/interfaces'
|
||||
import { getAllPages } from '@/requests/pages'
|
||||
import { getAllPlaylists } from '@/requests/playlists'
|
||||
|
||||
export const separator: Option = {
|
||||
type: 'separator',
|
||||
}
|
||||
|
||||
export function get_new_playlist_option(
|
||||
new_playlist_modal_props: any = {}
|
||||
): Option {
|
||||
export function get_new_playlist_option(new_playlist_modal_props: any = {}): Option {
|
||||
return {
|
||||
label: 'New playlist',
|
||||
action: () => {
|
||||
@@ -21,6 +20,15 @@ export function get_new_playlist_option(
|
||||
}
|
||||
}
|
||||
|
||||
export function get_new_page_option(new_playlist_modal_props: any = {}): Option {
|
||||
return {
|
||||
label: 'New page',
|
||||
action: () => {
|
||||
modal().showPageModal(new_playlist_modal_props)
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
type action = (playlist: Playlist) => void
|
||||
|
||||
/**
|
||||
@@ -29,10 +37,7 @@ type action = (playlist: Playlist) => void
|
||||
* @param new_playlist_modal_props Props to be passed to the modal when creating a new playlist
|
||||
* @returns A list of options to be used in a context menu
|
||||
*/
|
||||
export async function getAddToPlaylistOptions(
|
||||
addToPlaylist: action,
|
||||
new_playlist_modal_props: any = {}
|
||||
) {
|
||||
export async function getAddToPlaylistOptions(addToPlaylist: action, new_playlist_modal_props: any = {}) {
|
||||
const new_playlist = get_new_playlist_option(new_playlist_modal_props)
|
||||
const p = await getAllPlaylists(true)
|
||||
|
||||
@@ -44,7 +49,7 @@ export async function getAddToPlaylistOptions(
|
||||
|
||||
let playlists = <Option[]>[]
|
||||
|
||||
playlists = p.map((playlist) => {
|
||||
playlists = p.map(playlist => {
|
||||
return <Option>{
|
||||
label: playlist.name,
|
||||
action: () => {
|
||||
@@ -56,20 +61,42 @@ export async function getAddToPlaylistOptions(
|
||||
return [...items, separator, ...playlists]
|
||||
}
|
||||
|
||||
export const get_find_on_social = (page = 'album', query = '') => {
|
||||
/**
|
||||
*
|
||||
* @param addToPlaylist Function to be called when a playlist is selected
|
||||
* @param new_playlist_modal_props Props to be passed to the modal when creating a new playlist
|
||||
* @returns A list of options to be used in a context menu
|
||||
*/
|
||||
export async function getAddToPageOptions(addToPage: (page: Page) => void, new_page_modal_props: any = {}) {
|
||||
const new_page = get_new_page_option(new_page_modal_props)
|
||||
const p = await getAllPages()
|
||||
|
||||
let items = [new_page]
|
||||
|
||||
if (p.length === 0) {
|
||||
return items
|
||||
}
|
||||
|
||||
let pages = <Option[]>[]
|
||||
|
||||
pages = p.map(playlist => {
|
||||
return <Option>{
|
||||
label: playlist.name,
|
||||
action: () => {
|
||||
addToPage(playlist)
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
return [...items, separator, ...pages]
|
||||
}
|
||||
|
||||
export const get_find_on_social = (page = 'album', query = '', album?: Album) => {
|
||||
const is_album = page === 'album'
|
||||
const getAlbumSearchTerm = () => {
|
||||
const store = useAlbum()
|
||||
|
||||
return `${store.info.title} - ${store.info.albumartists
|
||||
.map((a) => a.name)
|
||||
.join(', ')}`
|
||||
return `${album?.title} - ${album?.albumartists.map(a => a.name).join(', ')}`
|
||||
}
|
||||
const search_term = query
|
||||
? query
|
||||
: is_album
|
||||
? getAlbumSearchTerm()
|
||||
: useArtist().info.name
|
||||
const search_term = query ? query : is_album ? getAlbumSearchTerm() : useArtist().info.name
|
||||
|
||||
return <Option>{
|
||||
label: 'Search on',
|
||||
@@ -77,67 +104,36 @@ export const get_find_on_social = (page = 'album', query = '') => {
|
||||
children: async () => [
|
||||
{
|
||||
label: 'Google',
|
||||
action: () =>
|
||||
window.open(
|
||||
`https://www.google.com/search?q=${search_term}`,
|
||||
'_blank'
|
||||
),
|
||||
action: () => window.open(`https://www.google.com/search?q=${search_term}`, '_blank'),
|
||||
},
|
||||
{
|
||||
label: 'YouTube',
|
||||
action: () =>
|
||||
window.open(
|
||||
`https://www.youtube.com/results?search_query=${search_term}`,
|
||||
'_blank'
|
||||
),
|
||||
action: () => window.open(`https://www.youtube.com/results?search_query=${search_term}`, '_blank'),
|
||||
},
|
||||
{
|
||||
label: 'Spotify',
|
||||
action: () =>
|
||||
window.open(
|
||||
`https://open.spotify.com/search/${search_term}/${page}s`,
|
||||
'_blank'
|
||||
),
|
||||
action: () => window.open(`https://open.spotify.com/search/${search_term}/${page}s`, '_blank'),
|
||||
},
|
||||
{
|
||||
label: 'Tidal',
|
||||
action: () =>
|
||||
window.open(
|
||||
`https://listen.tidal.com/search/${page}s?q=${search_term}`,
|
||||
'_blank'
|
||||
),
|
||||
action: () => window.open(`https://listen.tidal.com/search/${page}s?q=${search_term}`, '_blank'),
|
||||
},
|
||||
{
|
||||
label: 'Apple Music',
|
||||
action: () =>
|
||||
window.open(
|
||||
`https://music.apple.com/search?term=${search_term}`,
|
||||
'_blank'
|
||||
),
|
||||
action: () => window.open(`https://music.apple.com/search?term=${search_term}`, '_blank'),
|
||||
},
|
||||
{
|
||||
label: 'Deezer',
|
||||
action: () =>
|
||||
window.open(
|
||||
`https://www.deezer.com/search/${search_term}/${page}`,
|
||||
'_blank'
|
||||
),
|
||||
action: () => window.open(`https://www.deezer.com/search/${search_term}/${page}`, '_blank'),
|
||||
},
|
||||
{
|
||||
label: 'Wikipedia',
|
||||
action: () =>
|
||||
window.open(
|
||||
`https://en.wikipedia.org/wiki/Special:Search?search=${search_term}`,
|
||||
'_blank'
|
||||
),
|
||||
window.open(`https://en.wikipedia.org/wiki/Special:Search?search=${search_term}`, '_blank'),
|
||||
},
|
||||
{
|
||||
label: 'Last.fm',
|
||||
action: () =>
|
||||
window.open(
|
||||
`https://www.last.fm/search/${page}s?q=${search_term}`,
|
||||
'_blank'
|
||||
),
|
||||
action: () => window.open(`https://www.last.fm/search/${page}s?q=${search_term}`, '_blank'),
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
@@ -1,88 +1,78 @@
|
||||
import { Store } from "pinia";
|
||||
import { Ref } from "vue";
|
||||
import { useRoute } from "vue-router";
|
||||
import { Store } from 'pinia'
|
||||
import { Ref } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
|
||||
import { ContextSrc } from "@/enums";
|
||||
import { Track } from "@/interfaces";
|
||||
import useContextStore from "@/stores/context";
|
||||
import { ContextSrc } from '@/enums'
|
||||
import { Album, Track } from '@/interfaces'
|
||||
import useContextStore from '@/stores/context'
|
||||
|
||||
import albumContextItems from "@/context_menus/album";
|
||||
import artistContextItems from "@/context_menus/artist";
|
||||
import folderContextItems from "@/context_menus/folder";
|
||||
import trackContextItems from "@/context_menus/track";
|
||||
import queueContextItems from "@/context_menus/queue";
|
||||
import albumContextItems from '@/context_menus/album'
|
||||
import artistContextItems from '@/context_menus/artist'
|
||||
import folderContextItems from '@/context_menus/folder'
|
||||
import trackContextItems from '@/context_menus/track'
|
||||
import queueContextItems from '@/context_menus/queue'
|
||||
|
||||
let stop_prev_watcher = () => {};
|
||||
let stop_prev_watcher = () => {}
|
||||
|
||||
function flagWatcher(menu: Store, flag: Ref<boolean>) {
|
||||
stop_prev_watcher();
|
||||
stop_prev_watcher()
|
||||
|
||||
if (flag.value) {
|
||||
return (flag.value = false);
|
||||
}
|
||||
if (flag.value) {
|
||||
return (flag.value = false)
|
||||
}
|
||||
|
||||
// watch for context menu visibility and reset flag
|
||||
stop_prev_watcher = menu.$subscribe((mutation, state) => {
|
||||
//@ts-ignore
|
||||
flag.value = state.visible;
|
||||
});
|
||||
// watch for context menu visibility and reset flag
|
||||
stop_prev_watcher = menu.$subscribe((mutation, state) => {
|
||||
//@ts-ignore
|
||||
flag.value = state.visible
|
||||
})
|
||||
}
|
||||
|
||||
export const showTrackContextMenu = (
|
||||
e: MouseEvent,
|
||||
track: Track,
|
||||
flag: Ref<boolean>,
|
||||
) => {
|
||||
const menu = useContextStore();
|
||||
const options = () => trackContextItems(track);
|
||||
export const showTrackContextMenu = (e: MouseEvent, track: Track, flag: Ref<boolean>) => {
|
||||
const menu = useContextStore()
|
||||
const options = () => trackContextItems(track)
|
||||
|
||||
menu.showContextMenu(e, options, ContextSrc.Track);
|
||||
menu.showContextMenu(e, options, ContextSrc.Track)
|
||||
|
||||
flagWatcher(menu, flag);
|
||||
};
|
||||
flagWatcher(menu, flag)
|
||||
}
|
||||
|
||||
export const showAlbumContextMenu = (e: MouseEvent, flag: Ref<boolean>) => {
|
||||
const menu = useContextStore();
|
||||
export const showAlbumContextMenu = (e: MouseEvent, flag: Ref<boolean>, album?: Album) => {
|
||||
const menu = useContextStore()
|
||||
|
||||
const options = () => albumContextItems();
|
||||
menu.showContextMenu(e, options, ContextSrc.AlbumHeader);
|
||||
const options = () => albumContextItems(album)
|
||||
menu.showContextMenu(e, options, ContextSrc.AlbumHeader)
|
||||
|
||||
flagWatcher(menu, flag);
|
||||
};
|
||||
flagWatcher(menu, flag)
|
||||
}
|
||||
|
||||
export const showFolderContextMenu = (
|
||||
e: MouseEvent,
|
||||
flag: Ref<boolean>,
|
||||
source: ContextSrc,
|
||||
path: string
|
||||
) => {
|
||||
const menu = useContextStore();
|
||||
export const showFolderContextMenu = (e: MouseEvent, flag: Ref<boolean>, source: ContextSrc, path: string) => {
|
||||
const menu = useContextStore()
|
||||
|
||||
const options = () => folderContextItems(path);
|
||||
menu.showContextMenu(e, options, source);
|
||||
const options = () => folderContextItems(path)
|
||||
menu.showContextMenu(e, options, source)
|
||||
|
||||
flagWatcher(menu, flag);
|
||||
};
|
||||
flagWatcher(menu, flag)
|
||||
}
|
||||
|
||||
export const showArtistContextMenu = (
|
||||
e: MouseEvent,
|
||||
flag: Ref<boolean>,
|
||||
artisthash: string,
|
||||
artistname: string
|
||||
) => {
|
||||
const menu = useContextStore();
|
||||
export const showArtistContextMenu = (e: MouseEvent, flag: Ref<boolean>, artisthash: string, artistname: string) => {
|
||||
const menu = useContextStore()
|
||||
|
||||
const options = () => artistContextItems(artisthash, artistname);
|
||||
menu.showContextMenu(e, options, ContextSrc.ArtistHeader);
|
||||
const options = () => artistContextItems(artisthash, artistname)
|
||||
menu.showContextMenu(e, options, ContextSrc.ArtistHeader)
|
||||
|
||||
flagWatcher(menu, flag);
|
||||
};
|
||||
flagWatcher(menu, flag)
|
||||
}
|
||||
|
||||
export const showQueueContextMenu = (e: MouseEvent, flag: Ref<boolean>) => {
|
||||
const menu = useContextStore();
|
||||
const menu = useContextStore()
|
||||
|
||||
const options = () => queueContextItems();
|
||||
menu.showContextMenu(e, options, ContextSrc.Queue);
|
||||
const options = () => queueContextItems()
|
||||
menu.showContextMenu(e, options, ContextSrc.Queue)
|
||||
|
||||
flagWatcher(menu, flag);
|
||||
};
|
||||
flagWatcher(menu, flag)
|
||||
}
|
||||
|
||||
// export const showAlbumCardContextMenu = (e: MouseEvent, flag: Ref<boolean>, album: Album) => {
|
||||
|
||||
// }
|
||||
|
||||
@@ -28,6 +28,7 @@ export interface Track extends AlbumDisc {
|
||||
trackhash: string
|
||||
filetype: string
|
||||
is_favorite: boolean
|
||||
explicit: boolean
|
||||
|
||||
og_title: string
|
||||
og_album: string
|
||||
@@ -117,6 +118,7 @@ export interface HomePageItem {
|
||||
items: { type: string; item?: any; with_helptext?: boolean }[]
|
||||
path?: string
|
||||
seeAllText?: string
|
||||
url?: string
|
||||
}
|
||||
|
||||
export interface Artist {
|
||||
@@ -178,6 +180,15 @@ export interface Playlist {
|
||||
}[]
|
||||
}
|
||||
|
||||
export interface Page {
|
||||
id: number
|
||||
name: string
|
||||
items: { item: Album | Artist | Mix | Playlist; type: string }[]
|
||||
extra: {
|
||||
description: string
|
||||
}
|
||||
}
|
||||
|
||||
export interface Radio {
|
||||
name: string
|
||||
image: string
|
||||
|
||||
138
src/requests/pages.ts
Normal file
138
src/requests/pages.ts
Normal file
@@ -0,0 +1,138 @@
|
||||
import { paths } from '@/config'
|
||||
import { Album, Artist, Mix, Page, Playlist } from '@/interfaces'
|
||||
import { Notification, NotifType } from '@/stores/notification'
|
||||
import useAxios from './useAxios'
|
||||
|
||||
const { base: basePageUrl } = paths.api.pages
|
||||
|
||||
export async function getAllPages() {
|
||||
const { data, status } = await useAxios({
|
||||
url: basePageUrl,
|
||||
method: 'GET',
|
||||
})
|
||||
|
||||
if (status == 200) {
|
||||
return data as Page[]
|
||||
}
|
||||
|
||||
return []
|
||||
}
|
||||
|
||||
export async function getPage(page_id: string) {
|
||||
const { data, status } = await useAxios({
|
||||
url: basePageUrl + `/${page_id}`,
|
||||
method: 'GET',
|
||||
})
|
||||
|
||||
return data as Page
|
||||
}
|
||||
|
||||
export async function createNewPage(
|
||||
name: string,
|
||||
description: string,
|
||||
items?: { hash: string; type: string; extra: any }[]
|
||||
) {
|
||||
const { data, status } = await useAxios({
|
||||
url: basePageUrl,
|
||||
props: {
|
||||
name,
|
||||
description,
|
||||
items,
|
||||
},
|
||||
method: 'POST',
|
||||
})
|
||||
|
||||
if (status == 201) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
export async function updatePage(page: Page, name: string, description: string) {
|
||||
const { data, status } = await useAxios({
|
||||
url: basePageUrl + `/${page.id}`,
|
||||
props: {
|
||||
name,
|
||||
description,
|
||||
},
|
||||
method: 'PUT',
|
||||
})
|
||||
|
||||
if (status == 200) {
|
||||
return data.page as Page
|
||||
}
|
||||
|
||||
return null
|
||||
}
|
||||
|
||||
export async function addOrRemoveItemFromPage(
|
||||
page_number: number,
|
||||
item: Album | Artist | Mix | Playlist,
|
||||
type: string,
|
||||
command: 'add' | 'remove'
|
||||
) {
|
||||
const payload = {
|
||||
type: type,
|
||||
hash: '',
|
||||
extra: {},
|
||||
}
|
||||
|
||||
switch (type) {
|
||||
case 'album':
|
||||
payload.hash = (item as Album).albumhash
|
||||
break
|
||||
case 'artist':
|
||||
payload.hash = (item as Artist).artisthash
|
||||
break
|
||||
case 'mix':
|
||||
payload.hash = (item as Mix).sourcehash
|
||||
break
|
||||
case 'playlist':
|
||||
payload.hash = (item as Playlist).id.toString()
|
||||
break
|
||||
}
|
||||
|
||||
if (payload.hash === '') {
|
||||
throw new Error('Invalid item type. Item not added to page.')
|
||||
}
|
||||
|
||||
const { data, status } = await useAxios({
|
||||
url: basePageUrl + `/${page_number}/items`,
|
||||
props: {
|
||||
item: payload,
|
||||
},
|
||||
method: command == 'add' ? 'POST' : 'DELETE',
|
||||
})
|
||||
|
||||
if (status == 200) {
|
||||
new Notification(
|
||||
`${payload.type[0].toUpperCase() + payload.type.slice(1)} ${
|
||||
command == 'add' ? 'added' : 'removed'
|
||||
} to page`,
|
||||
NotifType.Success
|
||||
)
|
||||
return true
|
||||
}
|
||||
|
||||
if (status == 400) {
|
||||
new Notification(`${payload.type[0].toUpperCase() + payload.type.slice(1)} already in page`, NotifType.Error)
|
||||
return false
|
||||
}
|
||||
|
||||
new Notification('Failed: ' + data.error, NotifType.Error)
|
||||
return false
|
||||
}
|
||||
|
||||
export async function deletePage(page_number: number) {
|
||||
const { data, status } = await useAxios({
|
||||
url: basePageUrl + `/${page_number}`,
|
||||
method: 'DELETE',
|
||||
})
|
||||
|
||||
if (status == 200) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
@@ -28,6 +28,7 @@ const FavoriteCardScroller = () => import("@/views/FavoriteCardScroller.vue");
|
||||
const StatsView = () => import("@/views/Stats/main.vue");
|
||||
const MixView = () => import("@/views/MixView.vue");
|
||||
const MixListView = () => import("@/views/MixListView.vue");
|
||||
const Page = () => import("@/views/Pages/Page.vue");
|
||||
|
||||
const folder = {
|
||||
path: "/folder/:path",
|
||||
@@ -202,6 +203,12 @@ const MixList = {
|
||||
component: MixListView,
|
||||
};
|
||||
|
||||
const PageView = {
|
||||
path: "/pages/:page",
|
||||
name: "Page",
|
||||
component: Page,
|
||||
};
|
||||
|
||||
const routes = [
|
||||
folder,
|
||||
playlists,
|
||||
@@ -225,6 +232,7 @@ const routes = [
|
||||
Stats,
|
||||
Mix,
|
||||
MixList,
|
||||
PageView,
|
||||
];
|
||||
|
||||
const Routes = {
|
||||
@@ -250,6 +258,7 @@ const Routes = {
|
||||
Stats: Stats.name,
|
||||
Mix: Mix.name,
|
||||
MixList: MixList.name,
|
||||
Page: PageView.name,
|
||||
};
|
||||
|
||||
const router = createRouter({
|
||||
|
||||
@@ -1,63 +1,61 @@
|
||||
import { Setting } from "@/interfaces/settings";
|
||||
import {
|
||||
addRootDirs as editRootDirs,
|
||||
triggerScan,
|
||||
} from "@/requests/settings/rootdirs";
|
||||
import { SettingType } from "../enums";
|
||||
import { manageRootDirsStrings as data } from "../strings";
|
||||
import { Setting } from '@/interfaces/settings'
|
||||
import { addRootDirs as editRootDirs, triggerScan } from '@/requests/settings/rootdirs'
|
||||
import { SettingType } from '../enums'
|
||||
import { manageRootDirsStrings as data } from '../strings'
|
||||
|
||||
import useModalStore from "@/stores/modal";
|
||||
import useSettingsStore from "@/stores/settings";
|
||||
import useModalStore from '@/stores/modal'
|
||||
import useSettingsStore from '@/stores/settings'
|
||||
|
||||
const text = data.settings;
|
||||
const text = data.settings
|
||||
|
||||
const change_root_dirs: Setting = {
|
||||
title: text.change,
|
||||
type: SettingType.button,
|
||||
state: null,
|
||||
button_text: () =>
|
||||
`\xa0 \xa0 ${
|
||||
useSettingsStore().root_dirs.length ? "Modify" : "Configure"
|
||||
} \xa0 \xa0`,
|
||||
action: () => useModalStore().showRootDirsPromptModal(),
|
||||
};
|
||||
title: text.change,
|
||||
type: SettingType.button,
|
||||
state: null,
|
||||
button_text: () => `\xa0 \xa0 ${useSettingsStore().root_dirs.length ? 'Modify' : 'Configure'} \xa0 \xa0`,
|
||||
action: () => useModalStore().showRootDirsPromptModal(),
|
||||
}
|
||||
|
||||
const list_root_dirs: Setting = {
|
||||
title: text.list_root_dirs,
|
||||
type: SettingType.root_dirs,
|
||||
state: () =>
|
||||
useSettingsStore().root_dirs.map((d) => ({
|
||||
title: d,
|
||||
action: () => {
|
||||
editRootDirs([], [d]).then((all_dirs) => {
|
||||
useSettingsStore().setRootDirs(all_dirs);
|
||||
});
|
||||
},
|
||||
})),
|
||||
defaultAction: () => {},
|
||||
action: () => triggerScan(),
|
||||
};
|
||||
title: text.list_root_dirs,
|
||||
type: SettingType.root_dirs,
|
||||
state: () =>
|
||||
useSettingsStore().root_dirs.map(d => ({
|
||||
title: d,
|
||||
action: () => {
|
||||
editRootDirs([], [d]).then(all_dirs => {
|
||||
useSettingsStore().setRootDirs(all_dirs)
|
||||
})
|
||||
},
|
||||
})),
|
||||
defaultAction: () => {},
|
||||
action: () => triggerScan(),
|
||||
}
|
||||
|
||||
const enable_scans: Setting = {
|
||||
title: "Enable periodic scans",
|
||||
type: SettingType.binary,
|
||||
state: () => useSettingsStore().enablePeriodicScans,
|
||||
action: () => useSettingsStore().togglePeriodicScans(),
|
||||
};
|
||||
// const enable_scans: Setting = {
|
||||
// title: "Enable periodic scans",
|
||||
// type: SettingType.binary,
|
||||
// state: () => useSettingsStore().enablePeriodicScans,
|
||||
// action: () => useSettingsStore().togglePeriodicScans(),
|
||||
// };
|
||||
|
||||
const useWatchdog: Setting = {
|
||||
title: "Watch root dirs for new music",
|
||||
experimental: true,
|
||||
type: SettingType.binary,
|
||||
state: () => useSettingsStore().enableWatchDog,
|
||||
action: () => useSettingsStore().toggleWatchdog(),
|
||||
};
|
||||
// const useWatchdog: Setting = {
|
||||
// title: "Watch root dirs for new music",
|
||||
// experimental: true,
|
||||
// type: SettingType.binary,
|
||||
// state: () => useSettingsStore().enableWatchDog,
|
||||
// action: () => useSettingsStore().toggleWatchdog(),
|
||||
// };
|
||||
|
||||
const periodicScanInterval: Setting = {
|
||||
title: "Periodic scan interval (minutes)",
|
||||
type: SettingType.free_number_input,
|
||||
state: () => useSettingsStore().periodicInterval,
|
||||
action: (newValue: number) => useSettingsStore().updatePeriodicInterval(newValue),
|
||||
};
|
||||
// const periodicScanInterval: Setting = {
|
||||
// title: "Periodic scan interval (minutes)",
|
||||
// type: SettingType.free_number_input,
|
||||
// state: () => useSettingsStore().periodicInterval,
|
||||
// action: (newValue: number) => useSettingsStore().updatePeriodicInterval(newValue),
|
||||
// };
|
||||
|
||||
export default [change_root_dirs, list_root_dirs, useWatchdog, enable_scans, periodicScanInterval];
|
||||
export default [
|
||||
change_root_dirs,
|
||||
list_root_dirs,
|
||||
// useWatchdog, enable_scans, periodicScanInterval
|
||||
]
|
||||
|
||||
@@ -30,9 +30,11 @@ export default defineStore('homepage', () => {
|
||||
|
||||
async function fetchAll() {
|
||||
const data: { [key: string]: HomePageItem }[] = await getHomePageData(maxAbumCards.value)
|
||||
let keys = []
|
||||
|
||||
for (const [index, item] of data.entries()) {
|
||||
const key = Object.keys(item)[0]
|
||||
keys.push(key)
|
||||
// @ts-ignore
|
||||
homepageData[key] = item[key]
|
||||
// @ts-ignore
|
||||
@@ -41,6 +43,18 @@ export default defineStore('homepage', () => {
|
||||
homepageData[key].path = routes[key]
|
||||
// @ts-ignore
|
||||
homepageData[key].seeAllText = seeAllTexts[key]
|
||||
|
||||
if (item[key].url) {
|
||||
// @ts-ignore
|
||||
homepageData[key].path = item[key].url
|
||||
}
|
||||
}
|
||||
|
||||
// remove keys not in response
|
||||
for (const key in homepageData) {
|
||||
if (!keys.includes(key)) {
|
||||
delete homepageData[key]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,86 +1,90 @@
|
||||
import { defineStore } from "pinia";
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
export enum ModalOptions {
|
||||
newPlaylist,
|
||||
updatePlaylist,
|
||||
deletePlaylist,
|
||||
SetIP,
|
||||
rootDirsPrompt,
|
||||
setRootDirs,
|
||||
saveFolderAsPlaylist,
|
||||
login,
|
||||
settings
|
||||
newPlaylist,
|
||||
page,
|
||||
updatePlaylist,
|
||||
deletePlaylist,
|
||||
SetIP,
|
||||
rootDirsPrompt,
|
||||
setRootDirs,
|
||||
saveFolderAsPlaylist,
|
||||
login,
|
||||
settings,
|
||||
}
|
||||
|
||||
export default defineStore("newModal", {
|
||||
state: () => ({
|
||||
title: "",
|
||||
options: ModalOptions,
|
||||
component: <any>null,
|
||||
props: <any>{},
|
||||
visible: false,
|
||||
}),
|
||||
actions: {
|
||||
showModal(modalOption: ModalOptions, props: any = {}) {
|
||||
this.component = modalOption;
|
||||
this.visible = true;
|
||||
this.props = props;
|
||||
export default defineStore('newModal', {
|
||||
state: () => ({
|
||||
title: '',
|
||||
options: ModalOptions,
|
||||
component: <any>null,
|
||||
props: <any>{},
|
||||
visible: false,
|
||||
}),
|
||||
actions: {
|
||||
showModal(modalOption: ModalOptions, props: any = {}) {
|
||||
this.component = modalOption
|
||||
this.visible = true
|
||||
this.props = props
|
||||
},
|
||||
showNewPlaylistModal(props: any = {}) {
|
||||
this.showModal(ModalOptions.newPlaylist, props)
|
||||
},
|
||||
showPageModal(props: any = {}) {
|
||||
this.showModal(ModalOptions.page, props)
|
||||
},
|
||||
showSaveFolderAsPlaylistModal(path: string) {
|
||||
const playlist_name = path.split('/').pop()
|
||||
const props = {
|
||||
playlist_name,
|
||||
path,
|
||||
}
|
||||
this.showModal(ModalOptions.newPlaylist, props)
|
||||
},
|
||||
showSaveArtistAsPlaylistModal(name: string, artisthash: string) {
|
||||
const props = {
|
||||
artisthash,
|
||||
playlist_name: `This is ${name}`,
|
||||
}
|
||||
this.showModal(ModalOptions.newPlaylist, props)
|
||||
},
|
||||
showSaveQueueAsPlaylistModal(name: string) {
|
||||
const props = {
|
||||
is_queue: true,
|
||||
playlist_name: name,
|
||||
}
|
||||
this.showModal(ModalOptions.newPlaylist, props)
|
||||
},
|
||||
showEditPlaylistModal() {
|
||||
this.showModal(ModalOptions.updatePlaylist)
|
||||
},
|
||||
showDeletePlaylistModal(pid: number) {
|
||||
const props = {
|
||||
pid: pid,
|
||||
}
|
||||
this.showModal(ModalOptions.deletePlaylist, props)
|
||||
},
|
||||
showSetIPModal() {
|
||||
this.showModal(ModalOptions.SetIP)
|
||||
},
|
||||
showRootDirsPromptModal() {
|
||||
this.showModal(ModalOptions.rootDirsPrompt)
|
||||
},
|
||||
showSetRootDirsModal() {
|
||||
this.showModal(ModalOptions.setRootDirs)
|
||||
},
|
||||
showLoginModal() {
|
||||
this.showModal(ModalOptions.login)
|
||||
},
|
||||
showSettingsModal() {
|
||||
this.showModal(ModalOptions.settings)
|
||||
},
|
||||
hideModal() {
|
||||
this.visible = false
|
||||
this.setTitle('')
|
||||
},
|
||||
setTitle(new_title: string) {
|
||||
this.title = new_title
|
||||
},
|
||||
},
|
||||
showNewPlaylistModal(props: any = {}) {
|
||||
this.showModal(ModalOptions.newPlaylist, props);
|
||||
},
|
||||
showSaveFolderAsPlaylistModal(path: string) {
|
||||
const playlist_name = path.split("/").pop();
|
||||
const props = {
|
||||
playlist_name,
|
||||
path,
|
||||
};
|
||||
this.showModal(ModalOptions.newPlaylist, props);
|
||||
},
|
||||
showSaveArtistAsPlaylistModal(name: string, artisthash: string) {
|
||||
const props = {
|
||||
artisthash,
|
||||
playlist_name: `This is ${name}`,
|
||||
};
|
||||
this.showModal(ModalOptions.newPlaylist, props);
|
||||
},
|
||||
showSaveQueueAsPlaylistModal(name: string) {
|
||||
const props = {
|
||||
is_queue: true,
|
||||
playlist_name: name,
|
||||
};
|
||||
this.showModal(ModalOptions.newPlaylist, props);
|
||||
},
|
||||
showEditPlaylistModal() {
|
||||
this.showModal(ModalOptions.updatePlaylist);
|
||||
},
|
||||
showDeletePlaylistModal(pid: number) {
|
||||
const props = {
|
||||
pid: pid,
|
||||
};
|
||||
this.showModal(ModalOptions.deletePlaylist, props);
|
||||
},
|
||||
showSetIPModal() {
|
||||
this.showModal(ModalOptions.SetIP);
|
||||
},
|
||||
showRootDirsPromptModal() {
|
||||
this.showModal(ModalOptions.rootDirsPrompt);
|
||||
},
|
||||
showSetRootDirsModal() {
|
||||
this.showModal(ModalOptions.setRootDirs);
|
||||
},
|
||||
showLoginModal(){
|
||||
this.showModal(ModalOptions.login);
|
||||
},
|
||||
showSettingsModal(){
|
||||
this.showModal(ModalOptions.settings);
|
||||
},
|
||||
hideModal() {
|
||||
this.visible = false;
|
||||
this.setTitle("");
|
||||
},
|
||||
setTitle(new_title: string) {
|
||||
this.title = new_title;
|
||||
},
|
||||
},
|
||||
});
|
||||
})
|
||||
|
||||
25
src/stores/pages/page.ts
Normal file
25
src/stores/pages/page.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { Artist, Album, Page } from '@/interfaces'
|
||||
import { getPage } from '@/requests/pages'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
export default defineStore('page', {
|
||||
state: () => ({
|
||||
page: <Page | null>null,
|
||||
}),
|
||||
actions: {
|
||||
async fetchPage(page_no: string) {
|
||||
this.page = await getPage(page_no)
|
||||
},
|
||||
async removeLocalItem(item: Album | Artist, type: 'album' | 'artist') {
|
||||
if (!this.page) return
|
||||
|
||||
if (type == 'album') {
|
||||
this.page.items = this.page.items.filter(i => (i.item as Album).albumhash != (item as Album).albumhash)
|
||||
} else {
|
||||
this.page.items = this.page.items.filter(
|
||||
i => (i.item as Artist).artisthash != (item as Artist).artisthash
|
||||
)
|
||||
}
|
||||
},
|
||||
},
|
||||
})
|
||||
68
src/views/Pages/Page.vue
Normal file
68
src/views/Pages/Page.vue
Normal file
@@ -0,0 +1,68 @@
|
||||
<template>
|
||||
<CardGridPage :items="page.page?.items || []">
|
||||
<template #header>
|
||||
<GenericHeader>
|
||||
<template #name>
|
||||
<span @click="updatePage">
|
||||
{{ page.page?.name }} <span><PencilSvg height="0.8rem" width="0.8rem" /></span
|
||||
></span>
|
||||
</template>
|
||||
<template #description v-if="page.page?.extra.description">
|
||||
<span @click="updatePage"> {{ page.page?.extra.description }} </span>
|
||||
</template>
|
||||
<template #right>
|
||||
<button @click="deletePage"><DeleteSvg height="1.2rem" width="1.2rem" /> Delete</button>
|
||||
</template>
|
||||
</GenericHeader>
|
||||
</template>
|
||||
</CardGridPage>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { Page } from '@/interfaces'
|
||||
import { getPage } from '@/requests/pages'
|
||||
import { onMounted, ref } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
|
||||
import DeleteSvg from '@/assets/icons/delete.svg'
|
||||
import PencilSvg from '@/assets/icons/pencil.svg'
|
||||
import GenericHeader from '@/components/shared/GenericHeader.vue'
|
||||
import CardGridPage from '@/views/SearchView/CardGridPage.vue'
|
||||
|
||||
import useModal from '@/stores/modal'
|
||||
import usePage from '@/stores/pages/page'
|
||||
|
||||
const modal = useModal()
|
||||
const page = usePage()
|
||||
|
||||
onMounted(async () => {
|
||||
const route = useRoute()
|
||||
const page_id = route.params.page as string
|
||||
page.fetchPage(page_id)
|
||||
})
|
||||
|
||||
function updatePage() {
|
||||
console.log('update page')
|
||||
modal.showPageModal({
|
||||
page: page.page,
|
||||
})
|
||||
}
|
||||
|
||||
function deletePage() {
|
||||
modal.showPageModal({
|
||||
page: page.page,
|
||||
delete: true,
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
span {
|
||||
cursor: text;
|
||||
margin-right: $smaller;
|
||||
}
|
||||
|
||||
.generichead {
|
||||
margin-top: 2rem;
|
||||
}
|
||||
</style>
|
||||
@@ -1,100 +1,90 @@
|
||||
<template>
|
||||
<NoItems
|
||||
:title="`No ${page} results`"
|
||||
:description="desc"
|
||||
:icon="SearchSvg"
|
||||
:flag="!items.length"
|
||||
v-if="showNoItemsComponent"
|
||||
/>
|
||||
<div class="v-scroll-page" style="height: 100%">
|
||||
<DynamicScroller
|
||||
style="height: 100%"
|
||||
class="scroller"
|
||||
:min-item-size="64"
|
||||
:items="scrollerItems"
|
||||
>
|
||||
<template #before>
|
||||
<slot name="header"></slot>
|
||||
</template>
|
||||
<template #default="{ item, index, active }">
|
||||
<DynamicScrollerItem
|
||||
:item="item"
|
||||
:active="active"
|
||||
:size-dependencies="[item.props]"
|
||||
:data-index="index"
|
||||
>
|
||||
<component
|
||||
:is="item.component"
|
||||
:key="index"
|
||||
v-bind="item.props"
|
||||
></component>
|
||||
</DynamicScrollerItem>
|
||||
</template>
|
||||
</DynamicScroller>
|
||||
</div>
|
||||
<NoItems
|
||||
:title="`No ${page} results`"
|
||||
:description="desc"
|
||||
:icon="SearchSvg"
|
||||
:flag="!items.length"
|
||||
v-if="showNoItemsComponent"
|
||||
/>
|
||||
<div class="v-scroll-page" style="height: 100%">
|
||||
<DynamicScroller style="height: 100%" class="scroller" :min-item-size="64" :items="scrollerItems">
|
||||
<template #before>
|
||||
<slot name="header"></slot>
|
||||
</template>
|
||||
<template #default="{ item, index, active }">
|
||||
<DynamicScrollerItem
|
||||
:item="item"
|
||||
:active="active"
|
||||
:size-dependencies="[item.props]"
|
||||
:data-index="index"
|
||||
>
|
||||
<component :is="item.component" :key="index" v-bind="item.props"></component>
|
||||
</DynamicScrollerItem>
|
||||
</template>
|
||||
</DynamicScroller>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed } from "vue";
|
||||
import { computed } from 'vue'
|
||||
|
||||
import useSearchStore from "@/stores/search";
|
||||
import { maxAbumCards } from "@/stores/content-width";
|
||||
import useSearchStore from '@/stores/search'
|
||||
import { maxAbumCards } from '@/stores/content-width'
|
||||
|
||||
import SearchSvg from "@/assets/icons/search.svg";
|
||||
import NoItems from "@/components/shared/NoItems.vue";
|
||||
import CardRow from "@/components/shared/CardRow.vue";
|
||||
import AlbumsFetcher from "@/components/ArtistView/AlbumsFetcher.vue";
|
||||
import SearchSvg from '@/assets/icons/search.svg'
|
||||
import NoItems from '@/components/shared/NoItems.vue'
|
||||
import CardRow from '@/components/shared/CardRow.vue'
|
||||
import AlbumsFetcher from '@/components/ArtistView/AlbumsFetcher.vue'
|
||||
|
||||
const props = defineProps<{
|
||||
page: "album" | "artist" | "mix";
|
||||
fetch_callback?: () => Promise<void>;
|
||||
items: any[];
|
||||
outside_route?: boolean;
|
||||
showNoItemsComponent?: boolean;
|
||||
}>();
|
||||
page?: 'album' | 'artist' | 'mix'
|
||||
fetch_callback?: () => Promise<void>
|
||||
items: any[]
|
||||
outside_route?: boolean
|
||||
showNoItemsComponent?: boolean
|
||||
}>()
|
||||
|
||||
const search = useSearchStore();
|
||||
const search = useSearchStore()
|
||||
|
||||
const desc = computed(() =>
|
||||
search.query === ""
|
||||
? `Start typing to search for ${props.page}s`
|
||||
: `Results for '${search.query}' should appear here`
|
||||
);
|
||||
search.query === ''
|
||||
? `Start typing to search for ${props.page}s`
|
||||
: `Results for '${search.query}' should appear here`
|
||||
)
|
||||
|
||||
const scrollerItems = computed(() => {
|
||||
let maxCards = maxAbumCards.value;
|
||||
let maxCards = maxAbumCards.value
|
||||
|
||||
if (props.outside_route) {
|
||||
maxCards = 6;
|
||||
}
|
||||
if (props.outside_route) {
|
||||
maxCards = 6
|
||||
}
|
||||
|
||||
const groups = Math.ceil(props.items.length / maxCards);
|
||||
const items = [];
|
||||
const groups = Math.ceil(props.items.length / maxCards)
|
||||
const items = []
|
||||
|
||||
for (let i = 0; i < groups; i++) {
|
||||
items.push({
|
||||
id: i,
|
||||
component: CardRow,
|
||||
props: {
|
||||
type: props.page,
|
||||
items: props.items.slice(i * maxCards, (i + 1) * maxCards),
|
||||
},
|
||||
});
|
||||
}
|
||||
for (let i = 0; i < groups; i++) {
|
||||
items.push({
|
||||
id: i,
|
||||
component: CardRow,
|
||||
props: {
|
||||
items: props.items.slice(i * maxCards, (i + 1) * maxCards),
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
const moreItems = props.page === 'album' ? search.albums.more : search.artists.more
|
||||
const moreItems = props.page === 'album' ? search.albums.more : search.artists.more
|
||||
|
||||
if (props.fetch_callback && moreItems) {
|
||||
items.push({
|
||||
id: Math.random(),
|
||||
component: AlbumsFetcher,
|
||||
props: {
|
||||
fetch_callback: props.fetch_callback,
|
||||
outside_route: props.outside_route,
|
||||
},
|
||||
});
|
||||
}
|
||||
if (props.fetch_callback && moreItems) {
|
||||
items.push({
|
||||
id: Math.random(),
|
||||
component: AlbumsFetcher,
|
||||
props: {
|
||||
fetch_callback: props.fetch_callback,
|
||||
outside_route: props.outside_route,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
return items;
|
||||
});
|
||||
return items
|
||||
})
|
||||
</script>
|
||||
|
||||
232
yarn.lock
232
yarn.lock
@@ -295,11 +295,21 @@
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz#533f36457a25814cf1df6488523ad547d784a99f"
|
||||
integrity sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==
|
||||
|
||||
"@babel/helper-string-parser@^7.25.9":
|
||||
version "7.25.9"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz#1aabb72ee72ed35789b4bbcad3ca2862ce614e8c"
|
||||
integrity sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==
|
||||
|
||||
"@babel/helper-validator-identifier@^7.22.5":
|
||||
version "7.22.5"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz#9544ef6a33999343c8740fa51350f30eeaaaf193"
|
||||
integrity sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==
|
||||
|
||||
"@babel/helper-validator-identifier@^7.25.9":
|
||||
version "7.25.9"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz#24b64e2c3ec7cd3b3c547729b8d16871f22cbdc7"
|
||||
integrity sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==
|
||||
|
||||
"@babel/helper-validator-option@^7.22.5":
|
||||
version "7.22.5"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.22.5.tgz#de52000a15a177413c8234fa3a8af4ee8102d0ac"
|
||||
@@ -342,11 +352,6 @@
|
||||
chalk "^2.0.0"
|
||||
js-tokens "^4.0.0"
|
||||
|
||||
"@babel/parser@^7.16.4":
|
||||
version "7.20.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.20.7.tgz#66fe23b3c8569220817d5feb8b9dcdc95bb4f71b"
|
||||
integrity sha512-T3Z9oHybU+0vZlY9CiDSJQTD5ZapcW18ZctFMi0MOAl/4BjFF4ul7NVSARLdbGO5vDqy9eQiGTV0LtKfvCYvcg==
|
||||
|
||||
"@babel/parser@^7.20.15", "@babel/parser@^7.21.3", "@babel/parser@^7.22.7":
|
||||
version "7.22.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.22.7.tgz#df8cf085ce92ddbdbf668a7f186ce848c9036cae"
|
||||
@@ -357,6 +362,13 @@
|
||||
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.22.5.tgz#721fd042f3ce1896238cf1b341c77eb7dee7dbea"
|
||||
integrity sha512-DFZMC9LJUG9PLOclRC32G63UXwzqS2koQC8dkx+PLdmt1xSePYpbT/NbsrJy8Q/muXz7o/h/d4A7Fuyixm559Q==
|
||||
|
||||
"@babel/parser@^7.25.3":
|
||||
version "7.26.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.26.7.tgz#e114cd099e5f7d17b05368678da0fb9f69b3385c"
|
||||
integrity sha512-kEvgGGgEjRUutvdVvZhbn/BxVt+5VSpwXz1j3WYXQbXDo8KzFOPNG2GQbdAiNq8g6wn1yKk7C/qrke03a84V+w==
|
||||
dependencies:
|
||||
"@babel/types" "^7.26.7"
|
||||
|
||||
"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.22.5":
|
||||
version "7.22.5"
|
||||
resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.22.5.tgz#87245a21cd69a73b0b81bcda98d443d6df08f05e"
|
||||
@@ -1072,6 +1084,14 @@
|
||||
"@babel/helper-validator-identifier" "^7.22.5"
|
||||
to-fast-properties "^2.0.0"
|
||||
|
||||
"@babel/types@^7.26.7":
|
||||
version "7.26.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.26.7.tgz#5e2b89c0768e874d4d061961f3a5a153d71dc17a"
|
||||
integrity sha512-t8kDRGrKXyp6+tjUh7hw2RLyclsW4TRoRvRHtSyAX9Bb5ldlFh+90YAYY6awRXrlB4G5G2izNeGySpATlFzmOg==
|
||||
dependencies:
|
||||
"@babel/helper-string-parser" "^7.25.9"
|
||||
"@babel/helper-validator-identifier" "^7.25.9"
|
||||
|
||||
"@canvas/image-data@^1.0.0":
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/@canvas/image-data/-/image-data-1.0.0.tgz#3bd2cd856e13fc9e2c25feff360a4056857b0367"
|
||||
@@ -1652,16 +1672,6 @@
|
||||
resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue/-/plugin-vue-3.2.0.tgz#a1484089dd85d6528f435743f84cdd0d215bbb54"
|
||||
integrity sha512-E0tnaL4fr+qkdCNxJ+Xd0yM31UwMkQje76fsDVBBUCoGOUPexu2VDUYHL8P4CwV+zMvWw6nlRw19OnRKmYAJpw==
|
||||
|
||||
"@vue/compiler-core@3.2.45":
|
||||
version "3.2.45"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.2.45.tgz#d9311207d96f6ebd5f4660be129fb99f01ddb41b"
|
||||
integrity sha512-rcMj7H+PYe5wBV3iYeUgbCglC+pbpN8hBLTJvRiK2eKQiWqu+fG9F+8sW99JdL4LQi7Re178UOxn09puSXvn4A==
|
||||
dependencies:
|
||||
"@babel/parser" "^7.16.4"
|
||||
"@vue/shared" "3.2.45"
|
||||
estree-walker "^2.0.2"
|
||||
source-map "^0.6.1"
|
||||
|
||||
"@vue/compiler-core@3.3.4":
|
||||
version "3.3.4"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.3.4.tgz#7fbf591c1c19e1acd28ffd284526e98b4f581128"
|
||||
@@ -1672,13 +1682,16 @@
|
||||
estree-walker "^2.0.2"
|
||||
source-map-js "^1.0.2"
|
||||
|
||||
"@vue/compiler-dom@3.2.45":
|
||||
version "3.2.45"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.2.45.tgz#c43cc15e50da62ecc16a42f2622d25dc5fd97dce"
|
||||
integrity sha512-tyYeUEuKqqZO137WrZkpwfPCdiiIeXYCcJ8L4gWz9vqaxzIQRccTSwSWZ/Axx5YR2z+LvpUbmPNXxuBU45lyRw==
|
||||
"@vue/compiler-core@3.5.13":
|
||||
version "3.5.13"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.5.13.tgz#b0ae6c4347f60c03e849a05d34e5bf747c9bda05"
|
||||
integrity sha512-oOdAkwqUfW1WqpwSYJce06wvt6HljgY3fGeM9NcVA1HaYOij3mZG9Rkysn0OHuyUAGMbEbARIpsG+LPVlBJ5/Q==
|
||||
dependencies:
|
||||
"@vue/compiler-core" "3.2.45"
|
||||
"@vue/shared" "3.2.45"
|
||||
"@babel/parser" "^7.25.3"
|
||||
"@vue/shared" "3.5.13"
|
||||
entities "^4.5.0"
|
||||
estree-walker "^2.0.2"
|
||||
source-map-js "^1.2.0"
|
||||
|
||||
"@vue/compiler-dom@3.3.4":
|
||||
version "3.3.4"
|
||||
@@ -1688,21 +1701,28 @@
|
||||
"@vue/compiler-core" "3.3.4"
|
||||
"@vue/shared" "3.3.4"
|
||||
|
||||
"@vue/compiler-sfc@3.2.45":
|
||||
version "3.2.45"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.2.45.tgz#7f7989cc04ec9e7c55acd406827a2c4e96872c70"
|
||||
integrity sha512-1jXDuWah1ggsnSAOGsec8cFjT/K6TMZ0sPL3o3d84Ft2AYZi2jWJgRMjw4iaK0rBfA89L5gw427H4n1RZQBu6Q==
|
||||
"@vue/compiler-dom@3.5.13":
|
||||
version "3.5.13"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.5.13.tgz#bb1b8758dbc542b3658dda973b98a1c9311a8a58"
|
||||
integrity sha512-ZOJ46sMOKUjO3e94wPdCzQ6P1Lx/vhp2RSvfaab88Ajexs0AHeV0uasYhi99WPaogmBlRHNRuly8xV75cNTMDA==
|
||||
dependencies:
|
||||
"@babel/parser" "^7.16.4"
|
||||
"@vue/compiler-core" "3.2.45"
|
||||
"@vue/compiler-dom" "3.2.45"
|
||||
"@vue/compiler-ssr" "3.2.45"
|
||||
"@vue/reactivity-transform" "3.2.45"
|
||||
"@vue/shared" "3.2.45"
|
||||
"@vue/compiler-core" "3.5.13"
|
||||
"@vue/shared" "3.5.13"
|
||||
|
||||
"@vue/compiler-sfc@3.5.13":
|
||||
version "3.5.13"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.5.13.tgz#461f8bd343b5c06fac4189c4fef8af32dea82b46"
|
||||
integrity sha512-6VdaljMpD82w6c2749Zhf5T9u5uLBWKnVue6XWxprDobftnletJ8+oel7sexFfM3qIxNmVE7LSFGTpv6obNyaQ==
|
||||
dependencies:
|
||||
"@babel/parser" "^7.25.3"
|
||||
"@vue/compiler-core" "3.5.13"
|
||||
"@vue/compiler-dom" "3.5.13"
|
||||
"@vue/compiler-ssr" "3.5.13"
|
||||
"@vue/shared" "3.5.13"
|
||||
estree-walker "^2.0.2"
|
||||
magic-string "^0.25.7"
|
||||
postcss "^8.1.10"
|
||||
source-map "^0.6.1"
|
||||
magic-string "^0.30.11"
|
||||
postcss "^8.4.48"
|
||||
source-map-js "^1.2.0"
|
||||
|
||||
"@vue/compiler-sfc@^3.2.20":
|
||||
version "3.3.4"
|
||||
@@ -1720,14 +1740,6 @@
|
||||
postcss "^8.1.10"
|
||||
source-map-js "^1.0.2"
|
||||
|
||||
"@vue/compiler-ssr@3.2.45":
|
||||
version "3.2.45"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-ssr/-/compiler-ssr-3.2.45.tgz#bd20604b6e64ea15344d5b6278c4141191c983b2"
|
||||
integrity sha512-6BRaggEGqhWht3lt24CrIbQSRD5O07MTmd+LjAn5fJj568+R9eUD2F7wMQJjX859seSlrYog7sUtrZSd7feqrQ==
|
||||
dependencies:
|
||||
"@vue/compiler-dom" "3.2.45"
|
||||
"@vue/shared" "3.2.45"
|
||||
|
||||
"@vue/compiler-ssr@3.3.4":
|
||||
version "3.3.4"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-ssr/-/compiler-ssr-3.3.4.tgz#9d1379abffa4f2b0cd844174ceec4a9721138777"
|
||||
@@ -1736,22 +1748,19 @@
|
||||
"@vue/compiler-dom" "3.3.4"
|
||||
"@vue/shared" "3.3.4"
|
||||
|
||||
"@vue/compiler-ssr@3.5.13":
|
||||
version "3.5.13"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-ssr/-/compiler-ssr-3.5.13.tgz#e771adcca6d3d000f91a4277c972a996d07f43ba"
|
||||
integrity sha512-wMH6vrYHxQl/IybKJagqbquvxpWCuVYpoUJfCqFZwa/JY1GdATAQ+TgVtgrwwMZ0D07QhA99rs/EAAWfvG6KpA==
|
||||
dependencies:
|
||||
"@vue/compiler-dom" "3.5.13"
|
||||
"@vue/shared" "3.5.13"
|
||||
|
||||
"@vue/devtools-api@^6.4.5":
|
||||
version "6.4.5"
|
||||
resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.4.5.tgz#d54e844c1adbb1e677c81c665ecef1a2b4bb8380"
|
||||
integrity sha512-JD5fcdIuFxU4fQyXUu3w2KpAJHzTVdN+p4iOX2lMWSHMOoQdMAcpFLZzm9Z/2nmsoZ1a96QEhZ26e50xLBsgOQ==
|
||||
|
||||
"@vue/reactivity-transform@3.2.45":
|
||||
version "3.2.45"
|
||||
resolved "https://registry.yarnpkg.com/@vue/reactivity-transform/-/reactivity-transform-3.2.45.tgz#07ac83b8138550c83dfb50db43cde1e0e5e8124d"
|
||||
integrity sha512-BHVmzYAvM7vcU5WmuYqXpwaBHjsS8T63jlKGWVtHxAHIoMIlmaMyurUSEs1Zcg46M4AYT5MtB1U274/2aNzjJQ==
|
||||
dependencies:
|
||||
"@babel/parser" "^7.16.4"
|
||||
"@vue/compiler-core" "3.2.45"
|
||||
"@vue/shared" "3.2.45"
|
||||
estree-walker "^2.0.2"
|
||||
magic-string "^0.25.7"
|
||||
|
||||
"@vue/reactivity-transform@3.3.4":
|
||||
version "3.3.4"
|
||||
resolved "https://registry.yarnpkg.com/@vue/reactivity-transform/-/reactivity-transform-3.3.4.tgz#52908476e34d6a65c6c21cd2722d41ed8ae51929"
|
||||
@@ -1763,48 +1772,49 @@
|
||||
estree-walker "^2.0.2"
|
||||
magic-string "^0.30.0"
|
||||
|
||||
"@vue/reactivity@3.2.45":
|
||||
version "3.2.45"
|
||||
resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.2.45.tgz#412a45b574de601be5a4a5d9a8cbd4dee4662ff0"
|
||||
integrity sha512-PRvhCcQcyEVohW0P8iQ7HDcIOXRjZfAsOds3N99X/Dzewy8TVhTCT4uXpAHfoKjVTJRA0O0K+6QNkDIZAxNi3A==
|
||||
"@vue/reactivity@3.5.13":
|
||||
version "3.5.13"
|
||||
resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.5.13.tgz#b41ff2bb865e093899a22219f5b25f97b6fe155f"
|
||||
integrity sha512-NaCwtw8o48B9I6L1zl2p41OHo/2Z4wqYGGIK1Khu5T7yxrn+ATOixn/Udn2m+6kZKB/J7cuT9DbWWhRxqixACg==
|
||||
dependencies:
|
||||
"@vue/shared" "3.2.45"
|
||||
"@vue/shared" "3.5.13"
|
||||
|
||||
"@vue/runtime-core@3.2.45":
|
||||
version "3.2.45"
|
||||
resolved "https://registry.yarnpkg.com/@vue/runtime-core/-/runtime-core-3.2.45.tgz#7ad7ef9b2519d41062a30c6fa001ec43ac549c7f"
|
||||
integrity sha512-gzJiTA3f74cgARptqzYswmoQx0fIA+gGYBfokYVhF8YSXjWTUA2SngRzZRku2HbGbjzB6LBYSbKGIaK8IW+s0A==
|
||||
"@vue/runtime-core@3.5.13":
|
||||
version "3.5.13"
|
||||
resolved "https://registry.yarnpkg.com/@vue/runtime-core/-/runtime-core-3.5.13.tgz#1fafa4bf0b97af0ebdd9dbfe98cd630da363a455"
|
||||
integrity sha512-Fj4YRQ3Az0WTZw1sFe+QDb0aXCerigEpw418pw1HBUKFtnQHWzwojaukAs2X/c9DQz4MQ4bsXTGlcpGxU/RCIw==
|
||||
dependencies:
|
||||
"@vue/reactivity" "3.2.45"
|
||||
"@vue/shared" "3.2.45"
|
||||
"@vue/reactivity" "3.5.13"
|
||||
"@vue/shared" "3.5.13"
|
||||
|
||||
"@vue/runtime-dom@3.2.45":
|
||||
version "3.2.45"
|
||||
resolved "https://registry.yarnpkg.com/@vue/runtime-dom/-/runtime-dom-3.2.45.tgz#1a2ef6ee2ad876206fbbe2a884554bba2d0faf59"
|
||||
integrity sha512-cy88YpfP5Ue2bDBbj75Cb4bIEZUMM/mAkDMfqDTpUYVgTf/kuQ2VQ8LebuZ8k6EudgH8pYhsGWHlY0lcxlvTwA==
|
||||
"@vue/runtime-dom@3.5.13":
|
||||
version "3.5.13"
|
||||
resolved "https://registry.yarnpkg.com/@vue/runtime-dom/-/runtime-dom-3.5.13.tgz#610fc795de9246300e8ae8865930d534e1246215"
|
||||
integrity sha512-dLaj94s93NYLqjLiyFzVs9X6dWhTdAlEAciC3Moq7gzAc13VJUdCnjjRurNM6uTLFATRHexHCTu/Xp3eW6yoog==
|
||||
dependencies:
|
||||
"@vue/runtime-core" "3.2.45"
|
||||
"@vue/shared" "3.2.45"
|
||||
csstype "^2.6.8"
|
||||
"@vue/reactivity" "3.5.13"
|
||||
"@vue/runtime-core" "3.5.13"
|
||||
"@vue/shared" "3.5.13"
|
||||
csstype "^3.1.3"
|
||||
|
||||
"@vue/server-renderer@3.2.45":
|
||||
version "3.2.45"
|
||||
resolved "https://registry.yarnpkg.com/@vue/server-renderer/-/server-renderer-3.2.45.tgz#ca9306a0c12b0530a1a250e44f4a0abac6b81f3f"
|
||||
integrity sha512-ebiMq7q24WBU1D6uhPK//2OTR1iRIyxjF5iVq/1a5I1SDMDyDu4Ts6fJaMnjrvD3MqnaiFkKQj+LKAgz5WIK3g==
|
||||
"@vue/server-renderer@3.5.13":
|
||||
version "3.5.13"
|
||||
resolved "https://registry.yarnpkg.com/@vue/server-renderer/-/server-renderer-3.5.13.tgz#429ead62ee51de789646c22efe908e489aad46f7"
|
||||
integrity sha512-wAi4IRJV/2SAW3htkTlB+dHeRmpTiVIK1OGLWV1yeStVSebSQQOwGwIq0D3ZIoBj2C2qpgz5+vX9iEBkTdk5YA==
|
||||
dependencies:
|
||||
"@vue/compiler-ssr" "3.2.45"
|
||||
"@vue/shared" "3.2.45"
|
||||
|
||||
"@vue/shared@3.2.45":
|
||||
version "3.2.45"
|
||||
resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.2.45.tgz#a3fffa7489eafff38d984e23d0236e230c818bc2"
|
||||
integrity sha512-Ewzq5Yhimg7pSztDV+RH1UDKBzmtqieXQlpTVm2AwraoRL/Rks96mvd8Vgi7Lj+h+TH8dv7mXD3FRZR3TUvbSg==
|
||||
"@vue/compiler-ssr" "3.5.13"
|
||||
"@vue/shared" "3.5.13"
|
||||
|
||||
"@vue/shared@3.3.4":
|
||||
version "3.3.4"
|
||||
resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.3.4.tgz#06e83c5027f464eef861c329be81454bc8b70780"
|
||||
integrity sha512-7OjdcV8vQ74eiz1TZLzZP4JwqM5fA94K6yntPS5Z25r9HDuGNzaGdgvwKYq6S+MxwF0TFRwe50fIR/MYnakdkQ==
|
||||
|
||||
"@vue/shared@3.5.13":
|
||||
version "3.5.13"
|
||||
resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.5.13.tgz#87b309a6379c22b926e696893237826f64339b6f"
|
||||
integrity sha512-/hnE/qP5ZoGpol0a5mDi45bOd7t3tjYJBjsgCsivow7D48cJeV5l05RD82lPqi7gRiphZM37rnhW1l6ZoCNNnQ==
|
||||
|
||||
"@vueuse/components@^9.2.0":
|
||||
version "9.10.0"
|
||||
resolved "https://registry.yarnpkg.com/@vueuse/components/-/components-9.10.0.tgz#5c9686048119227d1cd59549e4a543dabfe860a0"
|
||||
@@ -2582,16 +2592,16 @@ csso@^5.0.5:
|
||||
dependencies:
|
||||
css-tree "~2.2.0"
|
||||
|
||||
csstype@^2.6.8:
|
||||
version "2.6.21"
|
||||
resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.21.tgz#2efb85b7cc55c80017c66a5ad7cbd931fda3a90e"
|
||||
integrity sha512-Z1PhmomIfypOpoMjRQB70jfvy/wxT50qW08YXO5lMIJkrdq4yOTR+AW7FqutScmB9NkLwxo+jU+kZLbofZZq/w==
|
||||
|
||||
csstype@^3.1.2:
|
||||
version "3.1.2"
|
||||
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.2.tgz#1d4bf9d572f11c14031f0436e1c10bc1f571f50b"
|
||||
integrity sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==
|
||||
|
||||
csstype@^3.1.3:
|
||||
version "3.1.3"
|
||||
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.3.tgz#d80ff294d114fb0e6ac500fbf85b60137d7eff81"
|
||||
integrity sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==
|
||||
|
||||
de-indent@^1.0.2:
|
||||
version "1.0.2"
|
||||
resolved "https://registry.yarnpkg.com/de-indent/-/de-indent-1.0.2.tgz#b2038e846dc33baa5796128d0804b455b8c1e21d"
|
||||
@@ -2810,7 +2820,7 @@ enhanced-resolve@^4.1.1:
|
||||
memory-fs "^0.5.0"
|
||||
tapable "^1.0.0"
|
||||
|
||||
entities@^4.2.0:
|
||||
entities@^4.2.0, entities@^4.5.0:
|
||||
version "4.5.0"
|
||||
resolved "https://registry.yarnpkg.com/entities/-/entities-4.5.0.tgz#5d268ea5e7113ec74c4d033b79ea5a35a488fb48"
|
||||
integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==
|
||||
@@ -4203,7 +4213,7 @@ magic-string@^0.30.0:
|
||||
dependencies:
|
||||
"@jridgewell/sourcemap-codec" "^1.4.15"
|
||||
|
||||
magic-string@^0.30.3:
|
||||
magic-string@^0.30.11, magic-string@^0.30.3:
|
||||
version "0.30.17"
|
||||
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.17.tgz#450a449673d2460e5bbcfba9a61916a1714c7453"
|
||||
integrity sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==
|
||||
@@ -4393,6 +4403,11 @@ nanoid@^3.3.4:
|
||||
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab"
|
||||
integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==
|
||||
|
||||
nanoid@^3.3.8:
|
||||
version "3.3.8"
|
||||
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.8.tgz#b1be3030bee36aaff18bacb375e5cce521684baf"
|
||||
integrity sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==
|
||||
|
||||
nanoid@^4.0.2:
|
||||
version "4.0.2"
|
||||
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-4.0.2.tgz#140b3c5003959adbebf521c170f282c5e7f9fb9e"
|
||||
@@ -4687,6 +4702,11 @@ picocolors@^1.0.0:
|
||||
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c"
|
||||
integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==
|
||||
|
||||
picocolors@^1.1.1:
|
||||
version "1.1.1"
|
||||
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b"
|
||||
integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==
|
||||
|
||||
picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.3.1:
|
||||
version "2.3.1"
|
||||
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
|
||||
@@ -4777,6 +4797,15 @@ postcss@^8.1.10, postcss@^8.4.18:
|
||||
picocolors "^1.0.0"
|
||||
source-map-js "^1.0.2"
|
||||
|
||||
postcss@^8.4.48:
|
||||
version "8.5.1"
|
||||
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.5.1.tgz#e2272a1f8a807fafa413218245630b5db10a3214"
|
||||
integrity sha512-6oz2beyjc5VMn/KV1pPw8fliQkhBXrVn1Z3TVyqZxU8kZpzEKhBdmCFqI6ZbmGtamQvQGuU1sgPTk8ZrXDD7jQ==
|
||||
dependencies:
|
||||
nanoid "^3.3.8"
|
||||
picocolors "^1.1.1"
|
||||
source-map-js "^1.2.1"
|
||||
|
||||
prebuild-install@^7.1.1:
|
||||
version "7.1.1"
|
||||
resolved "https://registry.yarnpkg.com/prebuild-install/-/prebuild-install-7.1.1.tgz#de97d5b34a70a0c81334fd24641f2a1702352e45"
|
||||
@@ -5323,6 +5352,11 @@ sortable-dnd@0.2.7:
|
||||
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c"
|
||||
integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==
|
||||
|
||||
source-map-js@^1.2.0, source-map-js@^1.2.1:
|
||||
version "1.2.1"
|
||||
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.1.tgz#1ce5650fddd87abc099eda37dcff024c2667ae46"
|
||||
integrity sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==
|
||||
|
||||
source-map-support@~0.5.20:
|
||||
version "0.5.21"
|
||||
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f"
|
||||
@@ -5331,7 +5365,7 @@ source-map-support@~0.5.20:
|
||||
buffer-from "^1.0.0"
|
||||
source-map "^0.6.0"
|
||||
|
||||
source-map@^0.6.0, source-map@^0.6.1:
|
||||
source-map@^0.6.0:
|
||||
version "0.6.1"
|
||||
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
|
||||
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
|
||||
@@ -6000,16 +6034,16 @@ vue-wrap-balancer@^1.0.0:
|
||||
dependencies:
|
||||
nanoid "^4.0.2"
|
||||
|
||||
vue@^v3.2.45:
|
||||
version "3.2.45"
|
||||
resolved "https://registry.yarnpkg.com/vue/-/vue-3.2.45.tgz#94a116784447eb7dbd892167784619fef379b3c8"
|
||||
integrity sha512-9Nx/Mg2b2xWlXykmCwiTUCWHbWIj53bnkizBxKai1g61f2Xit700A1ljowpTIM11e3uipOeiPcSqnmBg6gyiaA==
|
||||
vue@^v3.5.13:
|
||||
version "3.5.13"
|
||||
resolved "https://registry.yarnpkg.com/vue/-/vue-3.5.13.tgz#9f760a1a982b09c0c04a867903fc339c9f29ec0a"
|
||||
integrity sha512-wmeiSMxkZCSc+PM2w2VRsOYAZC8GdipNFRTsLSfodVqI9mbejKeXEGr8SckuLnrQPGe3oJN5c3K0vpoU9q/wCQ==
|
||||
dependencies:
|
||||
"@vue/compiler-dom" "3.2.45"
|
||||
"@vue/compiler-sfc" "3.2.45"
|
||||
"@vue/runtime-dom" "3.2.45"
|
||||
"@vue/server-renderer" "3.2.45"
|
||||
"@vue/shared" "3.2.45"
|
||||
"@vue/compiler-dom" "3.5.13"
|
||||
"@vue/compiler-sfc" "3.5.13"
|
||||
"@vue/runtime-dom" "3.5.13"
|
||||
"@vue/server-renderer" "3.5.13"
|
||||
"@vue/shared" "3.5.13"
|
||||
|
||||
webidl-conversions@^4.0.2:
|
||||
version "4.0.2"
|
||||
|
||||
Reference in New Issue
Block a user