kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
fix(front): linter errors
rodzic
b64d157252
commit
28a5e53850
|
@ -1,12 +1,10 @@
|
|||
<script setup lang="ts">
|
||||
import type { Library } from '~/types'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { ref } from 'vue'
|
||||
import { useStore } from '~/store'
|
||||
|
||||
import axios from 'axios'
|
||||
|
||||
import LibraryForm from './Form.vue'
|
||||
import LibraryCard from '~/views/content/remote/Card.vue'
|
||||
import Quota from './Quota.vue'
|
||||
|
||||
|
@ -14,8 +12,6 @@ import useErrorHandler from '~/composables/useErrorHandler'
|
|||
|
||||
import Loader from '~/components/ui/Loader.vue'
|
||||
import Section from '~/components/ui/Section.vue'
|
||||
import Alert from '~/components/ui/Alert.vue'
|
||||
import Button from '~/components/ui/Button.vue'
|
||||
import Spacer from '~/components/ui/Spacer.vue'
|
||||
|
||||
|
||||
|
@ -23,7 +19,6 @@ import { useI18n } from 'vue-i18n'
|
|||
|
||||
const { t } = useI18n()
|
||||
|
||||
const router = useRouter()
|
||||
const store = useStore()
|
||||
|
||||
const libraries = ref([] as Library[])
|
||||
|
@ -46,10 +41,6 @@ const fetchData = async () => {
|
|||
}
|
||||
|
||||
fetchData()
|
||||
|
||||
const libraryCreated = (library: Library) => {
|
||||
router.push({ name: 'library.detail', params: { id: library.uuid } })
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -59,8 +50,8 @@ const libraryCreated = (library: Library) => {
|
|||
:h1="t('views.content.libraries.Home.header.libraries')"
|
||||
page-header
|
||||
>
|
||||
<quota />
|
||||
</Section>
|
||||
<quota />
|
||||
</Section>
|
||||
<Spacer />
|
||||
<Section
|
||||
v-if="libraries.length > 0"
|
||||
|
|
|
@ -13,7 +13,6 @@ import { useI18n } from 'vue-i18n'
|
|||
import DangerousButton from '~/components/common/DangerousButton.vue'
|
||||
|
||||
import Alert from '~/components/ui/Alert.vue'
|
||||
import Section from '~/components/ui/Section.vue'
|
||||
import Layout from '~/components/ui/Layout.vue'
|
||||
import Link from '~/components/ui/Link.vue'
|
||||
import Spacer from '~/components/ui/Spacer.vue'
|
||||
|
|
Ładowanie…
Reference in New Issue