fix: code lint packages
parent
4243b3000b
commit
e702e4aba0
|
@ -19,8 +19,10 @@ export {
|
|||
CircleCheckBig,
|
||||
CircleHelp,
|
||||
CircleX,
|
||||
CloudUpload,
|
||||
Copy,
|
||||
CornerDownLeft,
|
||||
Download,
|
||||
Ellipsis,
|
||||
Expand,
|
||||
ExternalLink,
|
||||
|
@ -31,6 +33,7 @@ export {
|
|||
Github,
|
||||
Grip,
|
||||
GripVertical,
|
||||
History,
|
||||
Menu as IconDefault,
|
||||
Info,
|
||||
InspectionPanel,
|
||||
|
@ -63,10 +66,7 @@ export {
|
|||
Sun,
|
||||
SunMoon,
|
||||
SwatchBook,
|
||||
Upload,
|
||||
UserRoundPen,
|
||||
X,
|
||||
Download,
|
||||
Upload,
|
||||
CloudUpload,
|
||||
History,
|
||||
} from 'lucide-vue-next';
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
* @zh_CN GITHUB 仓库地址
|
||||
*/
|
||||
// export const VBEN_GITHUB_URL = 'https://github.com/vbenjs/vue-vben-admin';
|
||||
export const VBEN_GITHUB_URL = 'https://github.com/yudaocode/yudao-ui-admin-vben';
|
||||
export const VBEN_GITHUB_URL =
|
||||
'https://github.com/yudaocode/yudao-ui-admin-vben';
|
||||
|
||||
/**
|
||||
* @zh_CN 文档地址
|
||||
|
|
|
@ -6,23 +6,34 @@ for (let i = 0; i <= 15; i++) {
|
|||
export function buildUUID(): string {
|
||||
let uuid = '';
|
||||
for (let i = 1; i <= 36; i++) {
|
||||
if (i === 9 || i === 14 || i === 19 || i === 24) {
|
||||
uuid += '-';
|
||||
} else if (i === 15) {
|
||||
uuid += 4;
|
||||
} else if (i === 20) {
|
||||
uuid += hexList[(Math.random() * 4) | 8];
|
||||
} else {
|
||||
uuid += hexList[(Math.random() * 16) | 0];
|
||||
switch (i) {
|
||||
case 9:
|
||||
case 14:
|
||||
case 19:
|
||||
case 24: {
|
||||
uuid += '-';
|
||||
break;
|
||||
}
|
||||
case 15: {
|
||||
uuid += 4;
|
||||
break;
|
||||
}
|
||||
case 20: {
|
||||
uuid += hexList[(Math.random() * 4) | 8];
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
uuid += hexList[Math.trunc(Math.random() * 16)];
|
||||
}
|
||||
}
|
||||
}
|
||||
return uuid.replace(/-/g, '');
|
||||
return uuid.replaceAll('-', '');
|
||||
}
|
||||
|
||||
let unique = 0;
|
||||
export function buildShortUUID(prefix = ''): string {
|
||||
const time = Date.now();
|
||||
const random = Math.floor(Math.random() * 1000000000);
|
||||
const random = Math.floor(Math.random() * 1_000_000_000);
|
||||
unique++;
|
||||
return prefix + '_' + random + unique + String(time);
|
||||
return `${prefix}_${random}${unique}${String(time)}`;
|
||||
}
|
||||
|
|
|
@ -91,4 +91,9 @@ interface MenuRecordRaw extends MenuRecordBadgeRaw {
|
|||
show?: boolean;
|
||||
}
|
||||
|
||||
export type { ExRouteRecordRaw, MenuRecordBadgeRaw, MenuRecordRaw, AppRouteRecordRaw };
|
||||
export type {
|
||||
AppRouteRecordRaw,
|
||||
ExRouteRecordRaw,
|
||||
MenuRecordBadgeRaw,
|
||||
MenuRecordRaw,
|
||||
};
|
||||
|
|
|
@ -14,17 +14,33 @@ defineOptions({
|
|||
<span class="border-input w-[35%] border-b dark:border-gray-600"></span>
|
||||
</div>
|
||||
|
||||
<div class="w-full mt-4 flex justify-between">
|
||||
<a href="https://doc.iocoder.cn/" target="_blank" class="text-primary hover:text-primary/80 text-sm">
|
||||
<div class="mt-4 flex w-full justify-between">
|
||||
<a
|
||||
href="https://doc.iocoder.cn/"
|
||||
target="_blank"
|
||||
class="text-primary hover:text-primary/80 text-sm"
|
||||
>
|
||||
📚 开发指南
|
||||
</a>
|
||||
<a href="https://doc.iocoder.cn/video/" target="_blank" class="text-primary hover:text-primary/80 text-sm">
|
||||
<a
|
||||
href="https://doc.iocoder.cn/video/"
|
||||
target="_blank"
|
||||
class="text-primary hover:text-primary/80 text-sm"
|
||||
>
|
||||
🔥 视频教程
|
||||
</a>
|
||||
<a href="https://www.iocoder.cn/Interview/good-collection/" target="_blank" class="text-primary hover:text-primary/80 text-sm">
|
||||
<a
|
||||
href="https://www.iocoder.cn/Interview/good-collection/"
|
||||
target="_blank"
|
||||
class="text-primary hover:text-primary/80 text-sm"
|
||||
>
|
||||
⚡ 面试手册
|
||||
</a>
|
||||
<a href="http://static.yudao.iocoder.cn/mp/Aix9975.jpeg" target="_blank" class="text-primary hover:text-primary/80 text-sm">
|
||||
<a
|
||||
href="http://static.yudao.iocoder.cn/mp/Aix9975.jpeg"
|
||||
target="_blank"
|
||||
class="text-primary hover:text-primary/80 text-sm"
|
||||
>
|
||||
🤝 外包咨询
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
import { MdiGithub, MdiQqchat, MdiWechat, AntdDingTalk } from '@vben/icons';
|
||||
import { AntdDingTalk, MdiGithub, MdiQqchat, MdiWechat } from '@vben/icons';
|
||||
import { $t } from '@vben/locales';
|
||||
|
||||
import { VbenIconButton } from '@vben-core/shadcn-ui';
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import type {
|
||||
// 系列类型的定义后缀都为 SeriesOption
|
||||
BarSeriesOption,
|
||||
LineSeriesOption,
|
||||
GaugeSeriesOption,
|
||||
LineSeriesOption,
|
||||
} from 'echarts/charts';
|
||||
import type {
|
||||
DatasetComponentOption,
|
||||
|
@ -13,7 +13,13 @@ import type {
|
|||
} from 'echarts/components';
|
||||
import type { ComposeOption } from 'echarts/core';
|
||||
|
||||
import { BarChart, LineChart, PieChart, RadarChart, GaugeChart } from 'echarts/charts';
|
||||
import {
|
||||
BarChart,
|
||||
GaugeChart,
|
||||
LineChart,
|
||||
PieChart,
|
||||
RadarChart,
|
||||
} from 'echarts/charts';
|
||||
import {
|
||||
// 数据集组件
|
||||
DatasetComponent,
|
||||
|
@ -33,9 +39,9 @@ import { CanvasRenderer } from 'echarts/renderers';
|
|||
export type ECOption = ComposeOption<
|
||||
| BarSeriesOption
|
||||
| DatasetComponentOption
|
||||
| GaugeSeriesOption
|
||||
| GridComponentOption
|
||||
| LineSeriesOption
|
||||
| GaugeSeriesOption
|
||||
| TitleComponentOption
|
||||
| TooltipComponentOption
|
||||
>;
|
||||
|
|
|
@ -18,4 +18,6 @@ export const MdiCheckboxMarkedCircleOutline = createIconifyIcon(
|
|||
'mdi:checkbox-marked-circle-outline',
|
||||
);
|
||||
|
||||
export const AntdProfileOutlined = createIconifyIcon('ant-design:profile-outlined');
|
||||
export const AntdProfileOutlined = createIconifyIcon(
|
||||
'ant-design:profile-outlined',
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue