diff --git a/packages/@core/base/icons/src/lucide.ts b/packages/@core/base/icons/src/lucide.ts index d6747133b..2a5de70bd 100644 --- a/packages/@core/base/icons/src/lucide.ts +++ b/packages/@core/base/icons/src/lucide.ts @@ -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'; diff --git a/packages/@core/base/shared/src/constants/vben.ts b/packages/@core/base/shared/src/constants/vben.ts index 96b9222ac..777768852 100644 --- a/packages/@core/base/shared/src/constants/vben.ts +++ b/packages/@core/base/shared/src/constants/vben.ts @@ -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 文档地址 diff --git a/packages/@core/base/shared/src/utils/uuid.ts b/packages/@core/base/shared/src/utils/uuid.ts index 548bcf398..3a58b4775 100644 --- a/packages/@core/base/shared/src/utils/uuid.ts +++ b/packages/@core/base/shared/src/utils/uuid.ts @@ -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)}`; } diff --git a/packages/@core/base/typings/src/menu-record.ts b/packages/@core/base/typings/src/menu-record.ts index 861bc6843..50922ed1b 100644 --- a/packages/@core/base/typings/src/menu-record.ts +++ b/packages/@core/base/typings/src/menu-record.ts @@ -91,4 +91,9 @@ interface MenuRecordRaw extends MenuRecordBadgeRaw { show?: boolean; } -export type { ExRouteRecordRaw, MenuRecordBadgeRaw, MenuRecordRaw, AppRouteRecordRaw }; +export type { + AppRouteRecordRaw, + ExRouteRecordRaw, + MenuRecordBadgeRaw, + MenuRecordRaw, +}; diff --git a/packages/effects/common-ui/src/components/captcha/index.ts b/packages/effects/common-ui/src/components/captcha/index.ts index 1360e0b02..27dbf82ee 100644 --- a/packages/effects/common-ui/src/components/captcha/index.ts +++ b/packages/effects/common-ui/src/components/captcha/index.ts @@ -5,4 +5,4 @@ export { default as SliderCaptcha } from './slider-captcha/index.vue'; export { default as SliderRotateCaptcha } from './slider-rotate-captcha/index.vue'; export type * from './types'; -export { default as Verification } from './verification/index.vue'; \ No newline at end of file +export { default as Verification } from './verification/index.vue'; diff --git a/packages/effects/common-ui/src/ui/authentication/doc-link.vue b/packages/effects/common-ui/src/ui/authentication/doc-link.vue index 4c0e632cb..2c0d01f3e 100644 --- a/packages/effects/common-ui/src/ui/authentication/doc-link.vue +++ b/packages/effects/common-ui/src/ui/authentication/doc-link.vue @@ -14,17 +14,33 @@ defineOptions({ -
- +
+ 📚 开发指南 - + 🔥 视频教程 - + ⚡ 面试手册 - + 🤝 外包咨询
diff --git a/packages/effects/common-ui/src/ui/authentication/third-party-login.vue b/packages/effects/common-ui/src/ui/authentication/third-party-login.vue index fcfb9c1b3..1f339c7f5 100644 --- a/packages/effects/common-ui/src/ui/authentication/third-party-login.vue +++ b/packages/effects/common-ui/src/ui/authentication/third-party-login.vue @@ -1,5 +1,5 @@