⚡ 格式化代码.
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
import type { TableData } from '@arco-design/web-vue/es/table/interface';
|
||||
import axios from 'axios';
|
||||
|
||||
export interface ContentDataRecord {
|
||||
x: string;
|
||||
y: number;
|
||||
}
|
||||
|
||||
export function queryContentData() {
|
||||
return axios.get<ContentDataRecord[]>('/api/content-data');
|
||||
}
|
||||
|
||||
export interface PopularRecord {
|
||||
key: number;
|
||||
clickNumber: string;
|
||||
title: string;
|
||||
increases: number;
|
||||
}
|
||||
|
||||
export function queryPopularList(params: { type: string }) {
|
||||
return axios.get<TableData[]>('/api/popular/list', { params });
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
import type { DataGrid } from '@/types/global';
|
||||
import type {
|
||||
ExecHostLogQueryResponse,
|
||||
ExecLogInterruptRequest,
|
||||
ExecLogQueryRequest,
|
||||
ExecLogQueryResponse,
|
||||
ExecLogStatusResponse,
|
||||
ExecLogTailRequest,
|
||||
ExecLogInterruptRequest
|
||||
ExecLogTailRequest
|
||||
} from '../exec/exec-log';
|
||||
import axios from 'axios';
|
||||
import qs from 'query-string';
|
||||
|
||||
@@ -156,7 +156,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.preference-containers{
|
||||
.preference-containers {
|
||||
padding: 0 16px;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
<div class="tab-bar-scroll">
|
||||
<div class="tags-wrap">
|
||||
<tab-item v-for="(tag, index) in tagList"
|
||||
:key="tag.fullPath"
|
||||
:index="index"
|
||||
:item-data="tag" />
|
||||
:key="tag.fullPath"
|
||||
:index="index"
|
||||
:item-data="tag" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="tag-bar-operation"></div>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import type { ExecType, ILogAppender, LogAddons, LogAppenderConf, LogDomRef } from '../const';
|
||||
import { LogAppenderOptions } from '../const';
|
||||
import type { ExecLogTailRequest } from '@/api/exec/exec-log';
|
||||
import { openExecLogChannel } from '@/api/exec/exec-log';
|
||||
import { getExecCommandLogTailToken } from '@/api/exec/exec-command-log';
|
||||
import { getExecJobLogTailToken } from '@/api/job/exec-job-log';
|
||||
import { LogAppenderOptions } from '../const';
|
||||
import { Message } from '@arco-design/web-vue';
|
||||
import { useDebounceFn } from '@vueuse/core';
|
||||
import { addEventListen, removeEventListen } from '@/utils/event';
|
||||
|
||||
@@ -3,13 +3,7 @@ import { use } from 'echarts/core';
|
||||
import QueryHeader from '@dangojs/a-query-header';
|
||||
import { CanvasRenderer } from 'echarts/renderers';
|
||||
import { BarChart, LineChart, PieChart, RadarChart } from 'echarts/charts';
|
||||
import {
|
||||
GridComponent,
|
||||
TooltipComponent,
|
||||
LegendComponent,
|
||||
DataZoomComponent,
|
||||
GraphicComponent,
|
||||
} from 'echarts/components';
|
||||
import { DataZoomComponent, GraphicComponent, GridComponent, LegendComponent, TooltipComponent, } from 'echarts/components';
|
||||
import Breadcrumb from './app/breadcrumb/index.vue';
|
||||
import Chart from './view/chart/index.vue';
|
||||
import CardList from './view/card-list/index.vue';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { IFileUploader, ResponseMessageBody } from './const';
|
||||
import type { FileItem } from '@arco-design/web-vue';
|
||||
import { openFileUploadChannel } from '@/api/system/upload';
|
||||
import type { IFileUploader, ResponseMessageBody } from './const';
|
||||
import { UploadOperatorType, UploadReceiverType } from './const';
|
||||
import { openFileUploadChannel } from '@/api/system/upload';
|
||||
|
||||
// 512 KB
|
||||
export const PART_SIZE = 512 * 1024;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { onMounted, onBeforeMount, onBeforeUnmount } from 'vue';
|
||||
import { onBeforeMount, onBeforeUnmount, onMounted } from 'vue';
|
||||
import { useDebounceFn } from '@vueuse/core';
|
||||
import { useAppStore } from '@/store';
|
||||
import { addEventListen, removeEventListen } from '@/utils/event';
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import Mock from 'mockjs';
|
||||
// import './user';
|
||||
|
||||
import '@/views/dashboard/workplace/mock';
|
||||
|
||||
Mock.setup({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Router, LocationQueryRaw } from 'vue-router';
|
||||
import type { LocationQueryRaw, Router } from 'vue-router';
|
||||
import NProgress from 'nprogress';
|
||||
import { useUserStore } from '@/store';
|
||||
import { isLogin } from '@/utils/auth';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { RouteMeta, NavigationGuard } from 'vue-router';
|
||||
import type { NavigationGuard, RouteMeta } from 'vue-router';
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export type Component<T = any> =
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { ITerminalPanelManager, ITerminalSessionManager, ITerminalTabManager,ISftpTransferManager } from '@/views/host/terminal/types/terminal.type';
|
||||
import type { ISftpTransferManager, ITerminalPanelManager, ITerminalSessionManager, ITerminalTabManager } from '@/views/host/terminal/types/terminal.type';
|
||||
import type { AuthorizedHostQueryResponse } from '@/api/asset/asset-authorized-data';
|
||||
import type { TerminalTheme } from '@/api/asset/host-terminal';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { UserState } from './types';
|
||||
import type { LoginRequest } from '@/api/user/auth';
|
||||
import { defineStore } from 'pinia';
|
||||
import { getUserPermission, login as userLogin, logout as userLogout } from '@/api/user/auth';
|
||||
import { defineStore } from 'pinia';
|
||||
import { clearToken, setToken } from '@/utils/auth';
|
||||
import { md5 } from '@/utils';
|
||||
import { removeRouteListener } from '@/utils/route-listener';
|
||||
|
||||
@@ -30,7 +30,7 @@ export interface Pagination {
|
||||
limit?: number;
|
||||
}
|
||||
|
||||
export interface NodeData {
|
||||
export interface NodeData {
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { useRouter, useRoute } from 'vue-router';
|
||||
import { useRoute, useRouter } from 'vue-router';
|
||||
|
||||
const router = useRouter();
|
||||
const route = useRoute();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="terminal-example" ref="terminal"/>
|
||||
<div class="terminal-example" ref="terminal" />
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
|
||||
@@ -21,12 +21,12 @@
|
||||
</script>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import RoleTable from './components/role-table.vue';
|
||||
import RoleFormModal from './components/role-form-modal.vue';
|
||||
import RoleMenuGrantModal from '@/views/user/role/components/role-menu-grant-modal.vue';
|
||||
import { ref, onBeforeMount, onUnmounted } from 'vue';
|
||||
import { useCacheStore, useDictStore } from '@/store';
|
||||
import { dictKeys } from './types/const';
|
||||
import RoleTable from './components/role-table.vue';
|
||||
import RoleFormModal from './components/role-form-modal.vue';
|
||||
import RoleMenuGrantModal from '@/views/user/role/components/role-menu-grant-modal.vue';
|
||||
|
||||
const render = ref();
|
||||
const table = ref();
|
||||
|
||||
Reference in New Issue
Block a user