refactor: 更换 ESLint 配置为 @antfu/eslint-config

This commit is contained in:
2024-05-10 22:29:45 +08:00
parent 5101dd12d9
commit bfc8e42bad
148 changed files with 7314 additions and 5046 deletions

View File

@@ -13,11 +13,28 @@
</template>
<script lang="ts" setup>
import { listDashboardAccessTrend, type DashboardAccessTrendResp } from '@/apis'
import VCharts from 'vue-echarts'
import { graphic } from 'echarts'
import { type DashboardAccessTrendResp, listDashboardAccessTrend } from '@/apis'
import { useChart } from '@/hooks'
// 提示框
const tooltipItemsHtmlString = (items) => {
return items
.map(
(el) => `<div class="content-panel">
<p>
<span style="background-color: ${el.color}" class="tooltip-item-icon"></span>
<span>${el.seriesName}</span>
</p>
<span class="tooltip-value">
${el.value}
</span>
</div>`
)
.join('')
}
const xData = ref<string[]>([])
const pvStatisticsData = ref<number[]>([])
const ipStatisticsData = ref<number[]>([])
@@ -196,23 +213,6 @@ const onChange = (days: number) => {
getChartData(days)
}
// 提示框
const tooltipItemsHtmlString = (items) => {
return items
.map(
(el) => `<div class="content-panel">
<p>
<span style="background-color: ${el.color}" class="tooltip-item-icon"></span>
<span>${el.seriesName}</span>
</p>
<span class="tooltip-value">
${el.value}
</span>
</div>`
)
.join('')
}
onMounted(() => {
getChartData(30)
})

View File

@@ -2,7 +2,7 @@
<a-card title="快捷操作" :bordered="false" size="medium" class="card gi_card_title">
<a-card-grid v-for="(item, index) in list" :key="item.name" class="card-grid-item" :style="{ width: '33.33%' }">
<a-card :bordered="false" hoverable>
<a-row justify="center" align="center" :class="'animated-fade-up-' + (index + 1)">
<a-row justify="center" align="center" :class="`animated-fade-up-${index + 1}`">
<a-space direction="vertical" align="center" class="wrapper" @click="router.replace({ path: item.path })">
<component :is="item.icon" :size="30" class="icon"></component>
<a-typography-text class="text">{{ item.name }}</a-typography-text>

View File

@@ -7,7 +7,7 @@
v-for="(item, index) in list"
:key="index"
align="right"
:class="'animated-fade-up-' + index"
:class="`animated-fade-up-${index}`"
style="overflow: hidden"
>
<template #content>

View File

@@ -8,7 +8,7 @@
v-for="(item, index) in dataList"
:key="index"
align="right"
:class="'animated-fade-up-' + index"
:class="`animated-fade-up-${index}`"
style="overflow: hidden"
>
<template #content>
@@ -26,7 +26,7 @@
</template>
<script setup lang="ts">
import { listDashboardNotice, type DashboardNoticeResp } from '@/apis'
import { type DashboardNoticeResp, listDashboardNotice } from '@/apis'
import { useDict } from '@/hooks/app'
import NoticeDetailModal from '@/views/system/notice/NoticeDetailModal.vue'

View File

@@ -3,7 +3,7 @@
<a-row align="stretch">
<a-col v-for="(item, index) in list" :key="item.name" :xs="12" :sm="8" :md="8">
<a-card-grid class="w-full h-full">
<a-card :bordered="false" hoverable :class="'animated-fade-up-' + index">
<a-card :bordered="false" hoverable :class="`animated-fade-up-${index}`">
<a :href="item.url" target="_blank">
<section class="item">
<div class="item__header">

View File

@@ -26,10 +26,10 @@
<script setup lang="ts">
import NowTime from './NowTime/index.vue'
import SupportCard from './SupportCard.vue'
import { useDevice } from '@/hooks'
import { useUserStore } from '@/stores'
import { goodTimeText } from '@/utils'
import SupportCard from './SupportCard.vue'
const { isDesktop } = useDevice()
const userStore = useUserStore()