mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-27 12:48:01 +02:00
Changes:
- Relocated code from App.vue to their respective stores - Linked to privacy page in wiki (related to #15)
This commit is contained in:
parent
1b5ee1d2d5
commit
44db54737b
17 changed files with 666 additions and 620 deletions
|
@ -1,14 +1,16 @@
|
|||
<script setup>
|
||||
import { reactive, ref, onMounted, onUnmounted } from 'vue';
|
||||
|
||||
import { getJsonHyp } from '../scripts/fetch.js';
|
||||
import { useRoute } from '../scripts/util.js';
|
||||
import { useResults } from '@/stores/results.js';
|
||||
|
||||
import { getJsonHyp } from '@/scripts/fetch.js';
|
||||
import { useRoute } from '@/scripts/util.js';
|
||||
import { useT } from '@/scripts/i18n.js';
|
||||
|
||||
import AlbumItem from './AlbumItem.vue';
|
||||
|
||||
const props = defineProps(['id']);
|
||||
defineEmits(['get-album']);
|
||||
const props = defineProps(['id']),
|
||||
{ getAlbum } = useResults();
|
||||
|
||||
const data = reactive({
|
||||
title: '',
|
||||
|
@ -68,7 +70,7 @@ onMounted(get);
|
|||
:author="i.subtitle"
|
||||
:art="i.thumbnails[0].url"
|
||||
@open-album="
|
||||
$emit('get-album', '/playlist?list=' + i.id);
|
||||
getAlbum('/playlist?list=' + i.id);
|
||||
nav.state.page = 'home';
|
||||
" />
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue