forked from KodeStar/audiosilo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcached.vue
54 lines (48 loc) · 1.25 KB
/
cached.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<template>
<div class="p-3 px-6 lg:px-12 w-screen lg:w-full content-area overflow-auto mr-4">
<h2 class="my-6 text-xl font-bold">Cached Books</h2>
<div v-if="books.length > 0">
<div class="flex flex-wrap">
<div v-for="book in books" :key="book.hash" @click="$store.dispatch('app/selectFolder', book)" class="flex m-3 flex-col cursor-pointer">
<div class="w-60 h-60 bg-gray-300 justify-center flex items-center rounded-md shadow-inner p-4">
<Cover :image="book.cover" :path="book.path" />
</div>
</div>
</div>
</div>
<div v-else>
There are no books currently cached
</div>
</div>
</template>
<script>
export default {
layout: 'page',
name: 'Cached',
data () {
return {
}
},
computed: {
loginStatus () {
return this.$store.state.app.loginStatus
},
server () {
return this.$store.state.app.server
},
books () {
return this.$store.state.app.groupDetails.cached_books
}
},
watch: {
},
mounted () {
this.$store.commit('app/rightbar', false)
this.$store.dispatch('app/initialiseApp')
this.$store.commit('app/activepage', 'cached')
this.$store.dispatch('app/cachedBooks')
},
methods: {
}
}
</script>