mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-12 06:57:13 +08:00
style: 部分代码优化
1.格式优化:去除部分多余空行(较少代码段区分尽量不添加空行)、注释(代码尽量自解释) 2.完善部分 Swagger 注解信息 3.修复部分前后端警告
This commit is contained in:
@@ -15,8 +15,7 @@ const LIST: AppRouteRecordRaw = {
|
||||
{
|
||||
name: 'SearchTable',
|
||||
path: 'search-table', // The midline path complies with SEO specifications
|
||||
component: () =>
|
||||
import('@/views/demo/list/search-table/index.vue'),
|
||||
component: () => import('@/views/demo/list/search-table/index.vue'),
|
||||
meta: {
|
||||
locale: 'menu.list.searchTable',
|
||||
requiresAuth: true,
|
||||
|
@@ -48,15 +48,6 @@
|
||||
{{ $t('workplace.docs.changelog') }}
|
||||
</a-link>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-link
|
||||
href="https://blog.charles7c.top"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
>
|
||||
{{ $t('workplace.docs.authorSite') }}👋
|
||||
</a-link>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-link
|
||||
href="https://doc.charles7c.top/require.html"
|
||||
@@ -66,6 +57,15 @@
|
||||
{{ $t('workplace.docs.require') }}✨
|
||||
</a-link>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-link
|
||||
href="https://blog.charles7c.top"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
>
|
||||
{{ $t('workplace.docs.authorSite') }}👋
|
||||
</a-link>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-card>
|
||||
</template>
|
||||
|
@@ -14,8 +14,8 @@ export default {
|
||||
'workplace.docs.userGuide': 'User Guide',
|
||||
'workplace.docs.faq': 'FAQ',
|
||||
'workplace.docs.changelog': 'Change Log',
|
||||
'workplace.docs.authorSite': 'Author Site',
|
||||
'workplace.docs.require': 'Require',
|
||||
'workplace.docs.authorSite': 'Author Site',
|
||||
'workplace.announcement': 'Announcement',
|
||||
'workplace.recently.visited': 'Recently Visited',
|
||||
'workplace.record.nodata': 'No data',
|
||||
|
@@ -14,8 +14,8 @@ export default {
|
||||
'workplace.docs.userGuide': '使用指南',
|
||||
'workplace.docs.faq': '常见问题',
|
||||
'workplace.docs.changelog': '更新日志',
|
||||
'workplace.docs.authorSite': '作者主页',
|
||||
'workplace.docs.require': '需求墙',
|
||||
'workplace.docs.authorSite': '作者主页',
|
||||
'workplace.announcement': '公告',
|
||||
'workplace.recently.visited': '最近访问',
|
||||
'workplace.record.nodata': '暂无数据',
|
||||
|
@@ -50,7 +50,10 @@
|
||||
<script lang="ts" setup>
|
||||
import { ref } from 'vue';
|
||||
import useLoading from '@/hooks/loading';
|
||||
import { queryPopularAuthor, PopularAuthorRes } from '@/api/demo/visualization';
|
||||
import {
|
||||
queryPopularAuthor,
|
||||
PopularAuthorRes,
|
||||
} from '@/api/demo/visualization';
|
||||
|
||||
const { loading, setLoading } = useLoading();
|
||||
const tableData = ref<PopularAuthorRes>({ list: [] });
|
||||
|
@@ -31,7 +31,10 @@
|
||||
<script lang="ts" setup>
|
||||
import { computed, ref } from 'vue';
|
||||
import useLoading from '@/hooks/loading';
|
||||
import { queryDataChainGrowth, DataChainGrowth } from '@/api/demo/visualization';
|
||||
import {
|
||||
queryDataChainGrowth,
|
||||
DataChainGrowth,
|
||||
} from '@/api/demo/visualization';
|
||||
import useChartOption from '@/hooks/chart-option';
|
||||
|
||||
const props = defineProps({
|
||||
|
@@ -36,7 +36,9 @@
|
||||
<icon-face-smile-fill />
|
||||
</template>
|
||||
</a-Input>
|
||||
<a-button type="primary">{{ $t('realTimeMonitor.chat.update') }}</a-button>
|
||||
<a-button type="primary">{{
|
||||
$t('realTimeMonitor.chat.update')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</div>
|
||||
</a-card>
|
||||
|
@@ -12,16 +12,26 @@
|
||||
</a-tabs>
|
||||
<div class="data-statistic-content">
|
||||
<a-radio-group :default-value="3" type="button">
|
||||
<a-radio :value="1">{{ $t('realTimeMonitor.liveMethod.normal') }}</a-radio>
|
||||
<a-radio :value="2">{{ $t('realTimeMonitor.liveMethod.flowControl') }}</a-radio>
|
||||
<a-radio :value="3">{{ $t('realTimeMonitor.liveMethod.video') }}</a-radio>
|
||||
<a-radio :value="1">{{
|
||||
$t('realTimeMonitor.liveMethod.normal')
|
||||
}}</a-radio>
|
||||
<a-radio :value="2">{{
|
||||
$t('realTimeMonitor.liveMethod.flowControl')
|
||||
}}</a-radio>
|
||||
<a-radio :value="3">{{
|
||||
$t('realTimeMonitor.liveMethod.video')
|
||||
}}</a-radio>
|
||||
<a-radio :value="4">{{ $t('realTimeMonitor.liveMethod.web') }}</a-radio>
|
||||
</a-radio-group>
|
||||
|
||||
<div class="data-statistic-list-wrapper">
|
||||
<div class="data-statistic-list-header">
|
||||
<a-button type="text">{{ $t('realTimeMonitor.editCarousel') }}</a-button>
|
||||
<a-button disabled>{{ $t('realTimeMonitor.startCarousel') }}</a-button>
|
||||
<a-button type="text">{{
|
||||
$t('realTimeMonitor.editCarousel')
|
||||
}}</a-button>
|
||||
<a-button disabled>{{
|
||||
$t('realTimeMonitor.startCarousel')
|
||||
}}</a-button>
|
||||
</div>
|
||||
<div class="data-statistic-list-content">
|
||||
<DataStatisticList />
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<template>
|
||||
<a-card class="general-card" :title="$t('realTimeMonitor.title.quickOperation')">
|
||||
<a-card
|
||||
class="general-card"
|
||||
:title="$t('realTimeMonitor.title.quickOperation')"
|
||||
>
|
||||
<a-space direction="vertical" fill :size="10">
|
||||
<a-button long>
|
||||
{{ $t('realTimeMonitor.quickOperation.changeClarity') }}
|
||||
|
@@ -1,7 +1,10 @@
|
||||
<template>
|
||||
<a-card class="general-card" :title="$t('realTimeMonitor.title.studioInfo')">
|
||||
<a-form :model="{}" layout="vertical">
|
||||
<a-form-item :label="$t('realTimeMonitor.studioInfo.label.studioTitle')" required>
|
||||
<a-form-item
|
||||
:label="$t('realTimeMonitor.studioInfo.label.studioTitle')"
|
||||
required
|
||||
>
|
||||
<a-input
|
||||
:placeholder="`王立群${$t(
|
||||
'realTimeMonitor.studioInfo.placeholder.studioTitle'
|
||||
@@ -27,7 +30,9 @@
|
||||
<a-input-search />
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
<a-button type="primary">{{ $t('realTimeMonitor.studioInfo.btn.fresh') }}</a-button>
|
||||
<a-button type="primary">{{
|
||||
$t('realTimeMonitor.studioInfo.btn.fresh')
|
||||
}}</a-button>
|
||||
</a-card>
|
||||
</template>
|
||||
|
||||
|
@@ -4,7 +4,9 @@
|
||||
:title="$t('realTimeMonitor.studioStatus.title.studioStatus')"
|
||||
>
|
||||
<template #extra>
|
||||
<a-tag color="green">{{ $t('realTimeMonitor.studioStatus.smooth') }}</a-tag>
|
||||
<a-tag color="green">{{
|
||||
$t('realTimeMonitor.studioStatus.smooth')
|
||||
}}</a-tag>
|
||||
</template>
|
||||
<a-descriptions layout="horizontal" :data="dataStatus" :column="2">
|
||||
<template #label="{ label }">
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<template>
|
||||
<a-card class="general-card" :title="$t('realTimeMonitor.title.studioPreview')">
|
||||
<a-card
|
||||
class="general-card"
|
||||
:title="$t('realTimeMonitor.title.studioPreview')"
|
||||
>
|
||||
<template #extra>
|
||||
<icon-more />
|
||||
</template>
|
||||
@@ -7,15 +10,20 @@
|
||||
<img
|
||||
src="http://p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/c788fc704d32cf3b1136c7d45afc2669.png~tplv-uwbnlip3yd-webp.webp"
|
||||
class="studio-preview"
|
||||
alt="Studio Preview"
|
||||
/>
|
||||
<div class="studio-bar">
|
||||
<div v-if="userInfo">
|
||||
<a-space :size="12">
|
||||
<a-avatar :size="24">
|
||||
<img :src="getAvatar(userInfo.avatar, userInfo.gender)" />
|
||||
<img
|
||||
:src="getAvatar(userInfo.avatar, userInfo.gender)"
|
||||
alt="Avatar"
|
||||
/>
|
||||
</a-avatar>
|
||||
<a-typography-text>
|
||||
{{ userInfo.nickname }} {{ $t('realTimeMonitor.studioPreview.studio') }}
|
||||
{{ userInfo.nickname }}
|
||||
{{ $t('realTimeMonitor.studioPreview.studio') }}
|
||||
</a-typography-text>
|
||||
</a-space>
|
||||
</div>
|
||||
|
@@ -84,9 +84,7 @@
|
||||
size="small"
|
||||
:disabled="currentToken === record.token"
|
||||
:title="
|
||||
currentToken === record.token
|
||||
? '不能强退当前登录用户'
|
||||
: '强退'
|
||||
currentToken === record.token ? '不能强退自己' : '强退'
|
||||
"
|
||||
>
|
||||
<template #icon><icon-delete /></template>强退
|
||||
|
Reference in New Issue
Block a user