remove dead code
This commit is contained in:
parent
6bf5d6cdd3
commit
ca94462d93
@ -1,41 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div v-if="items">
|
|
||||||
<TrackList :tracks="items" />
|
|
||||||
<table class="table">
|
|
||||||
<thead />
|
|
||||||
<tbody>
|
|
||||||
<tr v-for="item in items" :key="item.id">
|
|
||||||
<td>
|
|
||||||
<Icon icon="play-fill" @click="() => {}" />
|
|
||||||
<Icon icon="plus" @click="() => {}" />
|
|
||||||
</td>
|
|
||||||
<td>{{ item.artist }}</td>
|
|
||||||
<td>{{ item.album }}</td>
|
|
||||||
<td>{{ $formatDuration(item.duration) }}</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
<script lang="ts">
|
|
||||||
import Vue from 'vue'
|
|
||||||
import TrackList from '@/library/TrackList.vue'
|
|
||||||
|
|
||||||
export default Vue.extend({
|
|
||||||
components: {
|
|
||||||
TrackList,
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
loading: true,
|
|
||||||
items: [] as any[],
|
|
||||||
}
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.$api.getRandomSongs().then(items => {
|
|
||||||
this.loading = false
|
|
||||||
this.items = items// .sort((a: any, b:any) => a.created.localeCompare(b.created));
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
</script>
|
|
@ -6,7 +6,6 @@ import ArtistDetails from '@/library/artist/ArtistDetails.vue'
|
|||||||
import ArtistLibrary from '@/library/artist/ArtistLibrary.vue'
|
import ArtistLibrary from '@/library/artist/ArtistLibrary.vue'
|
||||||
import AlbumDetails from '@/library/album/AlbumDetails.vue'
|
import AlbumDetails from '@/library/album/AlbumDetails.vue'
|
||||||
import AlbumLibrary from '@/library/album/AlbumLibrary.vue'
|
import AlbumLibrary from '@/library/album/AlbumLibrary.vue'
|
||||||
import RandomSongs from '@/playlist/RandomSongs.vue'
|
|
||||||
import GenreDetails from '@/library/genre/GenreDetails.vue'
|
import GenreDetails from '@/library/genre/GenreDetails.vue'
|
||||||
import GenreLibrary from '@/library/genre/GenreLibrary.vue'
|
import GenreLibrary from '@/library/genre/GenreLibrary.vue'
|
||||||
import Starred from '@/library/starred/Starred.vue'
|
import Starred from '@/library/starred/Starred.vue'
|
||||||
@ -98,11 +97,6 @@ export function setupRouter(auth: AuthService) {
|
|||||||
component: Playlist,
|
component: Playlist,
|
||||||
props: true,
|
props: true,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: 'playlist-random',
|
|
||||||
path: '/random',
|
|
||||||
component: RandomSongs,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: 'search',
|
name: 'search',
|
||||||
path: '/search',
|
path: '/search',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user