upgrade vuetify to 3.6.8

This commit is contained in:
jxxghp
2024-05-31 11:46:27 +08:00
parent b242e757e0
commit 23ac80886d
10 changed files with 25 additions and 42 deletions
+2 -3
View File
@@ -38,7 +38,6 @@
"express-http-proxy": "^2.0.0", "express-http-proxy": "^2.0.0",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"pull-refresh-vue3": "^0.3.1",
"qrcode.vue": "^3.4.1", "qrcode.vue": "^3.4.1",
"sass": "^1.59.3", "sass": "^1.59.3",
"tailwindcss": "^3.3.2", "tailwindcss": "^3.3.2",
@@ -51,7 +50,7 @@
"vue3-apexcharts": "^1.4.1", "vue3-apexcharts": "^1.4.1",
"vue3-perfect-scrollbar": "^2.0.0", "vue3-perfect-scrollbar": "^2.0.0",
"vuedraggable": "^4.1.0", "vuedraggable": "^4.1.0",
"vuetify": "3.5.14", "vuetify": "3.6.8",
"vuetify-use-dialog": "^0.6.11", "vuetify-use-dialog": "^0.6.11",
"vuex": "^4.1.0", "vuex": "^4.1.0",
"vuex-persistedstate": "^4.1.0", "vuex-persistedstate": "^4.1.0",
@@ -102,4 +101,4 @@
"resolutions": { "resolutions": {
"postcss": "8" "postcss": "8"
} }
} }
+1 -1
View File
@@ -16,7 +16,7 @@ const variableTheme = controlledComputed(
) )
// 定时器 // 定时器
let refreshTimer: NodeJS.Timer | null = null let refreshTimer: NodeJS.Timeout | null = null
// 时间序列 // 时间序列
const series = ref([ const series = ref([
+1 -1
View File
@@ -17,7 +17,7 @@ const variableTheme = controlledComputed(
) )
// 定时器 // 定时器
let refreshTimer: NodeJS.Timer | null = null let refreshTimer: NodeJS.Timeout | null = null
// 时间序列 // 时间序列
const series = ref([ const series = ref([
+1 -1
View File
@@ -10,7 +10,7 @@ const headers = ['进程ID', '进程名称', '运行时间', '内存占用']
const processList = ref<Process[]>([]) const processList = ref<Process[]>([])
// 定时器 // 定时器
let refreshTimer: NodeJS.Timer | null = null let refreshTimer: NodeJS.Timeout | null = null
// 调用API加载数据 // 调用API加载数据
async function loadProcessList() { async function loadProcessList() {
+1 -1
View File
@@ -6,7 +6,7 @@ import type { ScheduleInfo } from '@/api/types'
const schedulerList = ref<ScheduleInfo[]>([]) const schedulerList = ref<ScheduleInfo[]>([])
// 定时器 // 定时器
let refreshTimer: NodeJS.Timer | null = null let refreshTimer: NodeJS.Timeout | null = null
// 调用API加载定时服务列表 // 调用API加载定时服务列表
async function loadSchedulerList() { async function loadSchedulerList() {
+1 -1
View File
@@ -4,7 +4,7 @@ import api from '@/api'
import type { DownloaderInfo } from '@/api/types' import type { DownloaderInfo } from '@/api/types'
// 定时器 // 定时器
let refreshTimer: NodeJS.Timer | null = null let refreshTimer: NodeJS.Timeout | null = null
// 下载器信息 // 下载器信息
const downloadInfo = ref<DownloaderInfo>({ const downloadInfo = ref<DownloaderInfo>({
+10 -26
View File
@@ -1,5 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
import PullRefresh from 'pull-refresh-vue3' import { VPullToRefresh } from 'vuetify/labs/VPullToRefresh'
import api from '@/api' import api from '@/api'
import type { DownloadingInfo } from '@/api/types' import type { DownloadingInfo } from '@/api/types'
import NoDataFound from '@/components/NoDataFound.vue' import NoDataFound from '@/components/NoDataFound.vue'
@@ -7,7 +7,7 @@ import DownloadingCard from '@/components/cards/DownloadingCard.vue'
import store from '@/store' import store from '@/store'
// 定时器 // 定时器
let refreshTimer: NodeJS.Timer | null = null let refreshTimer: NodeJS.Timeout | null = null
// 数据列表 // 数据列表
const dataList = ref<DownloadingInfo[]>([]) const dataList = ref<DownloadingInfo[]>([])
@@ -20,8 +20,7 @@ async function fetchData() {
try { try {
dataList.value = await api.get('download/') dataList.value = await api.get('download/')
isRefreshed.value = true isRefreshed.value = true
} } catch (error) {
catch (error) {
console.error(error) console.error(error)
} }
} }
@@ -41,10 +40,8 @@ const filteredDataList = computed(() => {
// 从Vuex Store中获取用户信息 // 从Vuex Store中获取用户信息
const superUser = store.state.auth.superUser const superUser = store.state.auth.superUser
const userName = store.state.auth.userName const userName = store.state.auth.userName
if (superUser) if (superUser) return dataList.value
return dataList.value else return dataList.value.filter(data => data.userid === userName || data.username === userName)
else
return dataList.value.filter(data => data.userid === userName || data.username === userName)
}) })
// 加载时获取数据 // 加载时获取数据
@@ -67,23 +64,10 @@ onUnmounted(() => {
</script> </script>
<template> <template>
<LoadingBanner <LoadingBanner v-if="!isRefreshed" class="mt-12" />
v-if="!isRefreshed" <VPullToRefresh v-model="loading" @load="onRefresh" :pull-down-threshold="64">
class="mt-12" <div v-if="filteredDataList.length > 0" class="grid gap-3 grid-downloading-card">
/> <DownloadingCard v-for="data in filteredDataList" :key="data.hash" :info="data" />
<PullRefresh
v-model="loading"
@refresh="onRefresh"
>
<div
v-if="filteredDataList.length > 0"
class="grid gap-3 grid-downloading-card"
>
<DownloadingCard
v-for="data in filteredDataList"
:key="data.hash"
:info="data"
/>
</div> </div>
<NoDataFound <NoDataFound
v-if="filteredDataList.length === 0 && isRefreshed" v-if="filteredDataList.length === 0 && isRefreshed"
@@ -91,5 +75,5 @@ onUnmounted(() => {
error-title="没有任务" error-title="没有任务"
error-description="正在下载的任务将会显示在这里" error-description="正在下载的任务将会显示在这里"
/> />
</PullRefresh> </VPullToRefresh>
</template> </template>
+1 -1
View File
@@ -10,7 +10,7 @@ const $toast = useToast()
const schedulerList = ref<ScheduleInfo[]>([]) const schedulerList = ref<ScheduleInfo[]>([])
// 定时器 // 定时器
let refreshTimer: NodeJS.Timer | null = null let refreshTimer: NodeJS.Timeout | null = null
// 调用API加载定时服务列表 // 调用API加载定时服务列表
async function loadSchedulerList() { async function loadSchedulerList() {
+3 -3
View File
@@ -1,5 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
import PullRefresh from 'pull-refresh-vue3' import { VPullToRefresh } from 'vuetify/labs/VPullToRefresh'
import api from '@/api' import api from '@/api'
import type { Subscribe } from '@/api/types' import type { Subscribe } from '@/api/types'
import NoDataFound from '@/components/NoDataFound.vue' import NoDataFound from '@/components/NoDataFound.vue'
@@ -60,7 +60,7 @@ const filteredDataList = computed(() => {
<template> <template>
<LoadingBanner v-if="!isRefreshed" class="mt-12" /> <LoadingBanner v-if="!isRefreshed" class="mt-12" />
<PullRefresh v-model="loading" @refresh="onRefresh"> <VPullToRefresh v-model="loading" @load="onRefresh">
<div v-if="filteredDataList.length > 0" class="mx-3 grid gap-4 grid-subscribe-card p-1"> <div v-if="filteredDataList.length > 0" class="mx-3 grid gap-4 grid-subscribe-card p-1">
<SubscribeCard <SubscribeCard
v-for="data in filteredDataList" v-for="data in filteredDataList"
@@ -76,7 +76,7 @@ const filteredDataList = computed(() => {
error-title="没有订阅" error-title="没有订阅"
error-description="请通过搜索添加电影电视剧订阅" error-description="请通过搜索添加电影电视剧订阅"
/> />
</PullRefresh> </VPullToRefresh>
<!-- 底部操作按钮 --> <!-- 底部操作按钮 -->
<VFab <VFab
v-if="store.state.auth.superUser" v-if="store.state.auth.superUser"
+4 -4
View File
@@ -7396,10 +7396,10 @@ vuetify-use-dialog@^0.6.11:
dependencies: dependencies:
defu "^6.1.4" defu "^6.1.4"
vuetify@3.5.14: vuetify@3.6.8:
version "3.5.14" version "3.6.8"
resolved "https://registry.yarnpkg.com/vuetify/-/vuetify-3.5.14.tgz#9590a06bcf49398f1303203b84cc065899d7cec8" resolved "https://registry.yarnpkg.com/vuetify/-/vuetify-3.6.8.tgz#89ab0b68aa5488c7b54a04fa4a02a1b802892aaa"
integrity sha512-bmfid7K4D+wPi9h7sK4PxjmIB2tBzNuqlW14cs30iQ7GAphEeo/HYwn6aEdNK/Na+imhti8CJDDqdGs6SEfyXQ== integrity sha512-j0v0iTeSVRj2ZEM9Q8HxejHxmxrQLYQSalhH82hfcraORaiDoqf1XV05N3P5ERXkKiJjJc/LfxFAUUvYSldxeg==
vuex-persistedstate@^4.1.0: vuex-persistedstate@^4.1.0:
version "4.1.0" version "4.1.0"