funkwhale/front/src/ui/pages/upload/history.vue

18 wiersze
534 B
Vue
Czysty Zwykły widok Historia

2024-01-21 13:28:06 +00:00
<script setup lang="ts">
import { useAsyncState } from '@vueuse/core';
import axios from 'axios';
2024-01-21 13:28:06 +00:00
import UploadGroupList from '~/ui/components/UploadGroupList.vue'
import { useUploadsStore } from '~/ui/stores/upload'
// TODO: Fetch upload history from server
const uploads = useUploadsStore()
const history = uploads.uploadGroups
const { state: data } = useAsyncState(axios.post('/api/v2/upload-groups', { baseUrl: '/' }).then(t => t.data), [])
2024-01-21 13:28:06 +00:00
</script>
2024-01-20 21:54:07 +00:00
<template>
{{ data }}
2024-01-21 13:28:06 +00:00
<UploadGroupList :groups="history" />
2024-01-20 21:54:07 +00:00
</template>