fix: build warnings
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2346>
This commit is contained in:
parent
77e920672d
commit
8713d3b98a
|
@ -73,7 +73,6 @@
|
||||||
"@vitejs/plugin-vue": "4.0.0",
|
"@vitejs/plugin-vue": "4.0.0",
|
||||||
"@vitest/coverage-c8": "0.25.8",
|
"@vitest/coverage-c8": "0.25.8",
|
||||||
"@vue/compiler-sfc": "3.2.45",
|
"@vue/compiler-sfc": "3.2.45",
|
||||||
"@vue/devtools": "^6.5.0",
|
|
||||||
"@vue/eslint-config-standard": "8.0.1",
|
"@vue/eslint-config-standard": "8.0.1",
|
||||||
"@vue/eslint-config-typescript": "11.0.2",
|
"@vue/eslint-config-typescript": "11.0.2",
|
||||||
"@vue/test-utils": "2.2.7",
|
"@vue/test-utils": "2.2.7",
|
||||||
|
|
|
@ -205,7 +205,7 @@ fetchQuota()
|
||||||
//
|
//
|
||||||
// Filesystem
|
// Filesystem
|
||||||
//
|
//
|
||||||
const fsPath = reactive([])
|
const fsPath = ref([])
|
||||||
const fsStatus = ref({
|
const fsStatus = ref({
|
||||||
import: {
|
import: {
|
||||||
status: 'pending'
|
status: 'pending'
|
||||||
|
@ -223,7 +223,7 @@ const fetchFilesystem = async (updateLoading: boolean) => {
|
||||||
pause()
|
pause()
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await axios.get('libraries/fs-import', { params: { path: fsPath.join('/') } })
|
const response = await axios.get('libraries/fs-import', { params: { path: fsPath.value.join('/') } })
|
||||||
fsStatus.value = response.data
|
fsStatus.value = response.data
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
useErrorHandler(error as Error)
|
useErrorHandler(error as Error)
|
||||||
|
@ -243,7 +243,7 @@ const importFs = async () => {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await axios.post('libraries/fs-import', {
|
const response = await axios.post('libraries/fs-import', {
|
||||||
path: fsPath.join('/'),
|
path: fsPath.value.join('/'),
|
||||||
library: props.library.uuid,
|
library: props.library.uuid,
|
||||||
import_reference: importReference.value
|
import_reference: importReference.value
|
||||||
})
|
})
|
||||||
|
|
|
@ -120,7 +120,7 @@ const getUrl = (code: string) => store.getters['instance/absoluteUrl'](router.re
|
||||||
</table>
|
</table>
|
||||||
<button
|
<button
|
||||||
class="ui basic button"
|
class="ui basic button"
|
||||||
@click="invitations = []"
|
@click="invitations.length = 0"
|
||||||
>
|
>
|
||||||
{{ $t('components.manage.users.InvitationForm.button.clear') }}
|
{{ $t('components.manage.users.InvitationForm.button.clear') }}
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -2,7 +2,6 @@ import type { InitModule } from '~/types'
|
||||||
|
|
||||||
import store, { key } from '~/store'
|
import store, { key } from '~/store'
|
||||||
import router from '~/router'
|
import router from '~/router'
|
||||||
import devtools from '@vue/devtools'
|
|
||||||
|
|
||||||
import { createApp, defineAsyncComponent, h } from 'vue'
|
import { createApp, defineAsyncComponent, h } from 'vue'
|
||||||
|
|
||||||
|
@ -14,10 +13,6 @@ import '~/api'
|
||||||
// NOTE: Set the theme as fast as possible
|
// NOTE: Set the theme as fast as possible
|
||||||
useTheme()
|
useTheme()
|
||||||
|
|
||||||
if (import.meta.env.MODE === 'development') {
|
|
||||||
devtools.connect(/* host, port */)
|
|
||||||
}
|
|
||||||
|
|
||||||
const logger = useLogger()
|
const logger = useLogger()
|
||||||
logger.info('Loading environment:', import.meta.env.MODE)
|
logger.info('Loading environment:', import.meta.env.MODE)
|
||||||
logger.debug('Environment variables:', import.meta.env)
|
logger.debug('Environment variables:', import.meta.env)
|
||||||
|
|
|
@ -51,7 +51,7 @@ const fetchPolicy = async (id: number) => {
|
||||||
isLoadingPolicy.value = false
|
isLoadingPolicy.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
const permissions = reactive([] as string[])
|
const permissions = ref([] as string[])
|
||||||
const isLoading = ref(false)
|
const isLoading = ref(false)
|
||||||
const object = ref()
|
const object = ref()
|
||||||
const fetchData = async () => {
|
const fetchData = async () => {
|
||||||
|
@ -68,7 +68,7 @@ const fetchData = async () => {
|
||||||
if (response.data.user) {
|
if (response.data.user) {
|
||||||
for (const { code } of allPermissions.value) {
|
for (const { code } of allPermissions.value) {
|
||||||
if (response.data.user.permissions[code]) {
|
if (response.data.user.permissions[code]) {
|
||||||
permissions.push(code)
|
permissions.value.push(code)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -120,7 +120,7 @@ const updateUser = async (attr: string, toNull = false) => {
|
||||||
|
|
||||||
if (attr === 'permissions') {
|
if (attr === 'permissions') {
|
||||||
params.permissions = allPermissions.value.reduce((acc, { code }) => {
|
params.permissions = allPermissions.value.reduce((acc, { code }) => {
|
||||||
acc[code] = permissions.includes(code)
|
acc[code] = permissions.value.includes(code)
|
||||||
return acc
|
return acc
|
||||||
}, {} as Record<string, boolean>)
|
}, {} as Record<string, boolean>)
|
||||||
}
|
}
|
||||||
|
|
883
front/yarn.lock
883
front/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue