mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 02:45:49 +02:00
chore(deps): update devdependency @antfu/eslint-config to v4
This commit is contained in:
parent
bbae67939f
commit
cc4d7af85f
5 changed files with 92 additions and 83 deletions
|
@ -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())
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue