chore(deps): update devdependency @antfu/eslint-config to v4

This commit is contained in:
Jacky 2025-01-26 20:22:51 +08:00
parent bbae67939f
commit cc4d7af85f
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
5 changed files with 92 additions and 83 deletions

View file

@ -1,8 +1,8 @@
<script setup lang="ts">
import type { Environment } from '@/api/environment'
import type { Ref } from 'vue'
import type { SSEvent } from 'sse.js'
import { useUserStore } from '@/pinia'
import { SSE, type SSEvent } from 'sse.js'
import { SSE } from 'sse.js'
const props = defineProps<{
hiddenLocal?: boolean
@ -12,8 +12,8 @@ const target = defineModel<number[]>('target')
const map = defineModel<Record<number, string>>('map')
const { token } = storeToRefs(useUserStore())
const data = ref([]) as Ref<Environment[]>
const data_map = ref({}) as Ref<Record<number, Environment>>
const data = ref<Environment[]>([])
const data_map = ref<Record<number, Environment>>({})
const sse = shallowRef(newSSE())

View file

@ -1,11 +1,10 @@
<script setup lang="ts">
import type { Environment } from '@/api/environment'
import type { Ref } from 'vue'
import upgrade, { type RuntimeInfo } from '@/api/upgrade'
import type { RuntimeInfo } from '@/api/upgrade'
import upgrade from '@/api/upgrade'
import websocket from '@/lib/websocket'
import _ from 'lodash'
import { marked } from 'marked'
import { useRoute } from 'vue-router'
const route = useRoute()
const visible = ref(false)
@ -15,9 +14,9 @@ const channel = ref('stable')
const nodeNames = computed(() => nodes.value.map(v => v.name).join(', '))
const loading = ref(false)
const data = ref({
const data = ref<RuntimeInfo>({
name: '',
}) as Ref<RuntimeInfo>
} as RuntimeInfo)
const modalVisible = ref(false)
const modalClosable = ref(false)

View file

@ -1,8 +1,10 @@
import type {
CustomRender,
} from '@/components/StdDesign/StdDataDisplay/StdTableTransformer'
import type { Column, JSXElements } from '@/components/StdDesign/types'
import site_category from '@/api/site_category'
import {
actualValueRender,
type CustomRender,
datetime,
} from '@/components/StdDesign/StdDataDisplay/StdTableTransformer'
import { input, select, selector } from '@/components/StdDesign/StdDataEntry'