diff --git a/build/alias/index.ts b/build/alias/index.ts deleted file mode 100644 index db539a9f..00000000 --- a/build/alias/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -import path from 'path'; - -export default { - '@': path.resolve(__dirname, '/src') -}; diff --git a/build/index.ts b/build/index.ts index fb5c7104..bcb666cc 100644 --- a/build/index.ts +++ b/build/index.ts @@ -1,10 +1,4 @@ -import alias from './alias'; import viteEnv from './env'; import plugins from './plugins'; - -export { - alias, - viteEnv, - plugins -} +export { viteEnv, plugins }; diff --git a/index.html b/index.html index 11603f87..fcd14125 100644 --- a/index.html +++ b/index.html @@ -8,6 +8,7 @@
+ diff --git a/package.json b/package.json index 04d7b84e..f8765c4a 100644 --- a/package.json +++ b/package.json @@ -14,11 +14,14 @@ "*.{vue,js,jsx,ts,tsx}": "eslint --fix" }, "dependencies": { + "@types/chroma-js": "^2.1.3", "@vueuse/core": "^6.0.0", "axios": "^0.21.1", + "chroma-js": "^2.1.2", "dayjs": "^1.10.6", "element-plus": "^1.0.2-beta.70", "form-data": "^4.0.0", + "naive-ui": "^2.16.4", "nprogress": "^0.2.0", "pinia": "^2.0.0-rc.4", "qs": "^6.10.1", diff --git a/src/App.vue b/src/App.vue index 77c543d1..0f8f16df 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,11 +1,16 @@ diff --git a/src/components/common/NaiveApp/NaiveContent.vue b/src/components/common/NaiveApp/NaiveContent.vue new file mode 100644 index 00000000..80799b22 --- /dev/null +++ b/src/components/common/NaiveApp/NaiveContent.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/components/common/NaiveApp/index.vue b/src/components/common/NaiveApp/index.vue new file mode 100644 index 00000000..ee3b3d50 --- /dev/null +++ b/src/components/common/NaiveApp/index.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/components/common/index.ts b/src/components/common/index.ts new file mode 100644 index 00000000..638eb567 --- /dev/null +++ b/src/components/common/index.ts @@ -0,0 +1,3 @@ +import NaiveApp from './NaiveApp/index.vue'; + +export { NaiveApp }; diff --git a/src/components/index.ts b/src/components/index.ts index e69de29b..ddce31e8 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -0,0 +1 @@ +export { NaiveApp } from './common'; diff --git a/src/interface/app.ts b/src/interface/app.ts new file mode 100644 index 00000000..9d7f39d6 --- /dev/null +++ b/src/interface/app.ts @@ -0,0 +1,8 @@ +export interface ThemeSettings { + /** 深色模式 */ + darkMode: boolean; + /** 主题颜色 */ + themeColor: string; + /** 主题颜色列表 */ + themeColorList: string[]; +} diff --git a/src/interface/common.ts b/src/interface/common.ts new file mode 100644 index 00000000..e69de29b diff --git a/src/interface/index.ts b/src/interface/index.ts index 0d115449..f0169007 100644 --- a/src/interface/index.ts +++ b/src/interface/index.ts @@ -1 +1,2 @@ export { UserInfo } from './business'; +export { ThemeSettings } from './app'; diff --git a/src/layouts/BasicLayout.vue b/src/layouts/BasicLayout.vue new file mode 100644 index 00000000..f3e96c4f --- /dev/null +++ b/src/layouts/BasicLayout.vue @@ -0,0 +1,8 @@ + + + + diff --git a/src/layouts/index.ts b/src/layouts/index.ts index e69de29b..080b97e5 100644 --- a/src/layouts/index.ts +++ b/src/layouts/index.ts @@ -0,0 +1,3 @@ +import BasicLayout from './BasicLayout.vue'; + +export { BasicLayout }; diff --git a/src/main.ts b/src/main.ts index fcaed446..d35a6762 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,13 +1,33 @@ import { createApp } from 'vue'; import App from './App.vue'; -import { setupRouter } from './router'; -import { setupSmoothScroll, setupElementPlus } from './plugins'; +import { setupStore } from './store'; +import { router, setupRouter } from './router'; +import { setupSmoothScroll, setupNaive } from './plugins'; +import { NaiveApp } from './components'; import 'virtual:windi.css'; import './styles/css/global.css'; -const app = createApp(App); -setupSmoothScroll(); -setupElementPlus(app); -setupRouter(app); +async function setupApp() { + const naiveApp = createApp(NaiveApp); + const app = createApp(App); -app.mount('#app'); + /** 注册naive UI组件 */ + setupNaive(app); + + /** 挂载全局状态 */ + setupStore(app); + + // 优先挂载一下 naiveApp 解决路由守卫,Axios中可使用,Dialog,Message 等之类组件 + naiveApp.mount('#naiveApp', true); + + // 挂载路由 + setupRouter(app); + + // 路由准备就绪后挂载APP实例 + await router.isReady(); + + app.mount('#app', true); +} + +setupSmoothScroll(); +setupApp(); diff --git a/src/plugins/index.ts b/src/plugins/index.ts index ee8f0f20..2af444dc 100644 --- a/src/plugins/index.ts +++ b/src/plugins/index.ts @@ -1,5 +1,5 @@ import setupSmoothScroll from './smooth-scroll'; -import setupElementPlus from './element-plus'; +import setupNaive from './naive'; import NProgress from './nprogress'; -export { setupSmoothScroll, setupElementPlus, NProgress }; +export { setupSmoothScroll, setupNaive, NProgress }; diff --git a/src/plugins/naive.ts b/src/plugins/naive.ts new file mode 100644 index 00000000..010e5348 --- /dev/null +++ b/src/plugins/naive.ts @@ -0,0 +1,9 @@ +import { create, NSpace, NButton, NDatePicker, NInput } from 'naive-ui'; +import type { App } from 'vue'; + +export default function setupNaive(app: App) { + const naive = create({ + components: [NSpace, NButton, NDatePicker, NInput] + }); + app.use(naive); +} diff --git a/src/router/index.ts b/src/router/index.ts index 8489c751..9942aa7b 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -6,7 +6,7 @@ import createRouterGuide from './permission'; const routes: Array = [...customRoutes]; -const router = createRouter({ +export const router = createRouter({ history: createWebHistory(), routes }); diff --git a/src/router/permission.ts b/src/router/permission.ts index c46b2510..bb0734e9 100644 --- a/src/router/permission.ts +++ b/src/router/permission.ts @@ -1,5 +1,4 @@ import type { Router } from 'vue-router'; -import { NProgress } from '@/plugins'; /** * 路由守卫函数 @@ -7,10 +6,10 @@ import { NProgress } from '@/plugins'; */ export default function createRouterGuide(router: Router) { router.beforeEach((to, from, next) => { - NProgress.start(); + window.$loadingBar?.start(); next(); }); router.afterEach(() => { - NProgress.done(); + window.$loadingBar?.finish(); }); } diff --git a/src/router/routes.ts b/src/router/routes.ts index 47b93bc3..1dde8475 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -1,4 +1,5 @@ import type { RouteRecordRaw } from 'vue-router'; +import { BasicLayout } from '@/layouts'; /** * 自定义路由 @@ -7,16 +8,19 @@ export const customRoutes: Array = [ { name: 'root', path: '/', - redirect: 'home' - }, - { - name: 'home', - path: '/home', - component: () => import('@/views/home/index.vue') - }, - { - name: 'system', - path: '/system', - component: () => import('@/views/system/index.vue') + redirect: '/home', + component: BasicLayout, + children: [ + { + name: 'home', + path: '/home', + component: () => import('@/views/home/index.vue') + }, + { + name: 'system', + path: '/system', + component: () => import('@/views/system/index.vue') + } + ] } ]; diff --git a/src/settings/index.ts b/src/settings/index.ts new file mode 100644 index 00000000..cc700b0b --- /dev/null +++ b/src/settings/index.ts @@ -0,0 +1,3 @@ +import themeSettings from './theme'; + +export { themeSettings }; diff --git a/src/settings/theme/index.ts b/src/settings/theme/index.ts new file mode 100644 index 00000000..fe3383bc --- /dev/null +++ b/src/settings/theme/index.ts @@ -0,0 +1,33 @@ +import type { ThemeSettings } from '@/interface'; + +const themeColorList = [ + '#2d8cf0', + '#0960bd', + '#0084f4', + '#009688', + '#536dfe', + '#ff5c93', + '#ee4f12', + '#0096c7', + '#9c27b0', + '#ff9800', + '#FF3D68', + '#00C1D4', + '#71EFA3', + '#171010', + '#78DEC7', + '#1768AC', + '#FB9300', + '#FC5404' +]; + +const themeSettings: ThemeSettings = { + /** 深色主题 */ + darkMode: false, + /** 系统主题色 */ + themeColor: themeColorList[0], + /** 系统内置主题色列表 */ + themeColorList +}; + +export default themeSettings; diff --git a/src/store/modules/app/index.ts b/src/store/modules/app/index.ts index 1d5aa409..55457340 100644 --- a/src/store/modules/app/index.ts +++ b/src/store/modules/app/index.ts @@ -1,7 +1,13 @@ import { defineStore } from 'pinia'; +import type { GlobalThemeOverrides } from 'naive-ui'; import { store } from '../../index'; +import { themeSettings } from '@/settings'; +import type { ThemeSettings } from '@/interface'; +import { brightenColor } from '@/utils'; interface AppState { + /** 主题配置 */ + themeSettings: ThemeSettings; /** 侧边栏折叠 */ asideCollapse: boolean; } @@ -9,8 +15,29 @@ interface AppState { const appStore = defineStore({ id: 'app-store', state: (): AppState => ({ + themeSettings, asideCollapse: false }), + getters: { + /** naive UI主题配置 */ + themeOverrids(): GlobalThemeOverrides { + const primaryColor = this.themeSettings.themeColor; + const primaryColorHover = brightenColor(primaryColor); + const primaryColorPressed = primaryColorHover; + const colorLoading = primaryColor; + + return { + common: { + primaryColor, + primaryColorHover, + primaryColorPressed + }, + LoadingBar: { + colorLoading + } + }; + } + }, actions: { handleAsideCollapse(collapse: boolean) { this.asideCollapse = collapse; diff --git a/src/typings/window.d.ts b/src/typings/window.d.ts new file mode 100644 index 00000000..bc7f221e --- /dev/null +++ b/src/typings/window.d.ts @@ -0,0 +1,15 @@ +import type { + LoadingBarProviderInst, + DialogProviderInst, + MessageProviderInst, + NotificationProviderInst +} from 'naive-ui'; + +declare global { + interface Window { + $loadingBar?: LoadingBarProviderInst; + $dialog?: DialogProviderInst; + $message?: MessageProviderInst; + $notification?: NotificationProviderInst; + } +} diff --git a/src/utils/common/color.ts b/src/utils/common/color.ts new file mode 100644 index 00000000..e989d132 --- /dev/null +++ b/src/utils/common/color.ts @@ -0,0 +1,9 @@ +import chroma from 'chroma-js'; + +/** + * 更亮的颜色 + * @param color + */ +export function brightenColor(color: string) { + return chroma(color).brighten(0.5).hex(); +} diff --git a/src/utils/common/index.ts b/src/utils/common/index.ts index b4c97c1a..9e149deb 100644 --- a/src/utils/common/index.ts +++ b/src/utils/common/index.ts @@ -11,3 +11,5 @@ export { isSet, isMap } from './typeof'; + +export { brightenColor } from './color'; diff --git a/src/utils/index.ts b/src/utils/index.ts index afada134..35d9a867 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -10,5 +10,6 @@ export { isDate, isRegExp, isSet, - isMap + isMap, + brightenColor } from './common'; diff --git a/src/views/home/index.vue b/src/views/home/index.vue index ef337e96..a772601f 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -1,6 +1,49 @@ - + diff --git a/vite.config.ts b/vite.config.ts index e8eda9c1..6edaa34e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,10 +1,15 @@ import { defineConfig } from 'vite'; import vue from '@vitejs/plugin-vue'; -import { alias, viteEnv, plugins } from './build'; +import path from 'path'; +import { viteEnv, plugins } from './build'; export default defineConfig({ base: viteEnv.VITE_BASE_URL, - resolve: { alias }, + resolve: { + alias: { + '@': path.resolve(__dirname, './src') + } + }, css: { preprocessorOptions: { scss: { diff --git a/yarn.lock b/yarn.lock index 8146dbe0..61caf627 100644 --- a/yarn.lock +++ b/yarn.lock @@ -223,6 +223,18 @@ dependencies: chalk "^4.0.0" +"@css-render/plugin-bem@^0.15.4": + version "0.15.5" + resolved "https://registry.nlark.com/@css-render/plugin-bem/download/@css-render/plugin-bem-0.15.5.tgz#90ccc9613f25484a795ac3f9d00018f8badb0556" + integrity sha1-kMzJYT8lSEp5WsP50AAY+LrbBVY= + dependencies: + css-render "~0.15.5" + +"@css-render/vue3-ssr@^0.15.4": + version "0.15.5" + resolved "https://registry.nlark.com/@css-render/vue3-ssr/download/@css-render/vue3-ssr-0.15.5.tgz#86994d35967528aa46e3853d40b8bdd2a95b2f9d" + integrity sha1-hplNNZZ1KKpG44U9QLi90qlbL50= + "@element-plus/icons@^0.0.11": version "0.0.11" resolved "https://registry.nlark.com/@element-plus/icons/download/@element-plus/icons-0.0.11.tgz#9b187c002774548b911850d17fa5fc2f9a515f57" @@ -247,6 +259,11 @@ resolved "https://registry.npm.taobao.org/@emmetio/scanner/download/@emmetio/scanner-1.0.0.tgz#065b2af6233fe7474d44823e3deb89724af42b5f" integrity sha1-Blsq9iM/50dNRII+PeuJckr0K18= +"@emotion/hash@~0.8.0": + version "0.8.0" + resolved "https://registry.npm.taobao.org/@emotion/hash/download/@emotion/hash-0.8.0.tgz#bbbff68978fefdbe68ccb533bc8cbe1d1afb5413" + integrity sha1-u7/2iXj+/b5ozLUzvIy+HRr7VBM= + "@eslint/eslintrc@^0.4.3": version "0.4.3" resolved "https://registry.nlark.com/@eslint/eslintrc/download/@eslint/eslintrc-0.4.3.tgz?cache=0&sync_timestamp=1626557132800&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40eslint%2Feslintrc%2Fdownload%2F%40eslint%2Feslintrc-0.4.3.tgz#9e42981ef035beb3dd49add17acb96e8ff6f394c" @@ -286,6 +303,17 @@ resolved "https://registry.nlark.com/@iconify/json/download/@iconify/json-1.1.388.tgz#d78c2d6d7ab19862da15a2f01c3c150f0a6b4a87" integrity sha1-14wtbXqxmGLaFaLwHDwVDwprSoc= +"@jest/types@^26.6.2": + version "26.6.2" + resolved "https://registry.nlark.com/@jest/types/download/@jest/types-26.6.2.tgz?cache=0&sync_timestamp=1624900057884&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40jest%2Ftypes%2Fdownload%2F%40jest%2Ftypes-26.6.2.tgz#bef5a532030e1d88a2f5a6d933f84e97226ed48e" + integrity sha1-vvWlMgMOHYii9abZM/hOlyJu1I4= + dependencies: + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^15.0.0" + chalk "^4.0.0" + "@nodelib/fs.scandir@2.1.4": version "2.1.4" resolved "https://registry.npm.taobao.org/@nodelib/fs.scandir/download/@nodelib/fs.scandir-2.1.4.tgz?cache=0&sync_timestamp=1609074618762&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40nodelib%2Ffs.scandir%2Fdownload%2F%40nodelib%2Ffs.scandir-2.1.4.tgz#d4b3549a5db5de2683e0c1071ab4f140904bbf69" @@ -320,11 +348,43 @@ estree-walker "^2.0.1" picomatch "^2.2.2" +"@types/chroma-js@^2.1.3": + version "2.1.3" + resolved "https://registry.nlark.com/@types/chroma-js/download/@types/chroma-js-2.1.3.tgz#0b03d737ff28fad10eb884e0c6cedd5ffdc4ba0a" + integrity sha1-CwPXN/8o+tEOuITgxs7dX/3Eugo= + "@types/estree@^0.0.48": version "0.0.48" resolved "https://registry.nlark.com/@types/estree/download/@types/estree-0.0.48.tgz#18dc8091b285df90db2f25aa7d906cfc394b7f74" integrity sha1-GNyAkbKF35DbLyWqfZBs/DlLf3Q= +"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0": + version "2.0.3" + resolved "https://registry.nlark.com/@types/istanbul-lib-coverage/download/@types/istanbul-lib-coverage-2.0.3.tgz#4ba8ddb720221f432e443bd5f9117fd22cfd4762" + integrity sha1-S6jdtyAiH0MuRDvV+RF/0iz9R2I= + +"@types/istanbul-lib-report@*": + version "3.0.0" + resolved "https://registry.nlark.com/@types/istanbul-lib-report/download/@types/istanbul-lib-report-3.0.0.tgz#c14c24f18ea8190c118ee7562b7ff99a36552686" + integrity sha1-wUwk8Y6oGQwRjudWK3/5mjZVJoY= + dependencies: + "@types/istanbul-lib-coverage" "*" + +"@types/istanbul-reports@^3.0.0": + version "3.0.1" + resolved "https://registry.nlark.com/@types/istanbul-reports/download/@types/istanbul-reports-3.0.1.tgz#9153fe98bba2bd565a63add9436d6f0d7f8468ff" + integrity sha1-kVP+mLuivVZaY63ZQ21vDX+EaP8= + dependencies: + "@types/istanbul-lib-report" "*" + +"@types/jest@^26.0.20": + version "26.0.24" + resolved "https://registry.nlark.com/@types/jest/download/@types/jest-26.0.24.tgz?cache=0&sync_timestamp=1628800694961&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fjest%2Fdownload%2F%40types%2Fjest-26.0.24.tgz#943d11976b16739185913a1936e0de0c4a7d595a" + integrity sha1-lD0Rl2sWc5GFkToZNuDeDEp9WVo= + dependencies: + jest-diff "^26.0.0" + pretty-format "^26.0.0" + "@types/json-schema@^7.0.7": version "7.0.7" resolved "https://registry.nlark.com/@types/json-schema/download/@types/json-schema-7.0.7.tgz#98a993516c859eb0d5c4c8f098317a9ea68db9ad" @@ -335,11 +395,38 @@ resolved "https://registry.nlark.com/@types/json5/download/@types/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" integrity sha1-7ihweulOEdK4J7y+UnC86n8+ce4= +"@types/lodash-es@^4.17.4": + version "4.17.4" + resolved "https://registry.nlark.com/@types/lodash-es/download/@types/lodash-es-4.17.4.tgz#b2e440d2bf8a93584a9fd798452ec497986c9b97" + integrity sha1-suRA0r+Kk1hKn9eYRS7El5hsm5c= + dependencies: + "@types/lodash" "*" + +"@types/lodash@*", "@types/lodash@^4.14.170": + version "4.14.172" + resolved "https://registry.nlark.com/@types/lodash/download/@types/lodash-4.14.172.tgz?cache=0&sync_timestamp=1627979626480&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Flodash%2Fdownload%2F%40types%2Flodash-4.14.172.tgz#aad774c28e7bfd7a67de25408e03ee5a8c3d028a" + integrity sha1-qtd0wo57/Xpn3iVAjgPuWow9Aoo= + "@types/minimist@^1.2.0": version "1.2.1" resolved "https://registry.nlark.com/@types/minimist/download/@types/minimist-1.2.1.tgz?cache=0&sync_timestamp=1621241867849&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fminimist%2Fdownload%2F%40types%2Fminimist-1.2.1.tgz#283f669ff76d7b8260df8ab7a4262cc83d988256" integrity sha1-KD9mn/dte4Jg34q3pCYsyD2YglY= +"@types/node@*": + version "16.6.1" + resolved "https://registry.nlark.com/@types/node/download/@types/node-16.6.1.tgz#aee62c7b966f55fc66c7b6dfa1d58db2a616da61" + integrity sha1-ruYse5ZvVfxmx7bfodWNsqYW2mE= + +"@types/node@^14.14.10": + version "14.17.9" + resolved "https://registry.nlark.com/@types/node/download/@types/node-14.17.9.tgz#b97c057e6138adb7b720df2bd0264b03c9f504fd" + integrity sha1-uXwFfmE4rbe3IN8r0CZLA8n1BP0= + +"@types/node@~14.14.31": + version "14.14.45" + resolved "https://registry.nlark.com/@types/node/download/@types/node-14.14.45.tgz#ec2dfb5566ff814d061aef7e141575aedba245cf" + integrity sha1-7C37VWb/gU0GGu9+FBV1rtuiRc8= + "@types/normalize-package-data@^2.4.0": version "2.4.0" resolved "https://registry.nlark.com/@types/normalize-package-data/download/@types/normalize-package-data-2.4.0.tgz?cache=0&sync_timestamp=1621242064742&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fnormalize-package-data%2Fdownload%2F%40types%2Fnormalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e" @@ -370,6 +457,18 @@ resolved "https://registry.nlark.com/@types/throttle-debounce/download/@types/throttle-debounce-2.1.0.tgz?cache=0&sync_timestamp=1621243798725&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fthrottle-debounce%2Fdownload%2F%40types%2Fthrottle-debounce-2.1.0.tgz#1c3df624bfc4b62f992d3012b84c56d41eab3776" integrity sha1-HD32JL/Eti+ZLTASuExW1B6rN3Y= +"@types/yargs-parser@*": + version "20.2.1" + resolved "https://registry.nlark.com/@types/yargs-parser/download/@types/yargs-parser-20.2.1.tgz?cache=0&sync_timestamp=1625243778291&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fyargs-parser%2Fdownload%2F%40types%2Fyargs-parser-20.2.1.tgz#3b9ce2489919d9e4fea439b76916abc34b2df129" + integrity sha1-O5ziSJkZ2eT+pDm3aRarw0st8Sk= + +"@types/yargs@^15.0.0": + version "15.0.14" + resolved "https://registry.nlark.com/@types/yargs/download/@types/yargs-15.0.14.tgz?cache=0&sync_timestamp=1625519310139&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fyargs%2Fdownload%2F%40types%2Fyargs-15.0.14.tgz#26d821ddb89e70492160b66d10a0eb6df8f6fb06" + integrity sha1-Jtgh3biecEkhYLZtEKDrbfj2+wY= + dependencies: + "@types/yargs-parser" "*" + "@typescript-eslint/eslint-plugin@^4.29.2": version "4.29.2" resolved "https://registry.nlark.com/@typescript-eslint/eslint-plugin/download/@typescript-eslint/eslint-plugin-4.29.2.tgz?cache=0&sync_timestamp=1629146668258&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40typescript-eslint%2Feslint-plugin%2Fdownload%2F%40typescript-eslint%2Feslint-plugin-4.29.2.tgz#f54dc0a32b8f61c6024ab8755da05363b733838d" @@ -854,6 +953,11 @@ async-validator@^3.4.0: resolved "https://registry.nlark.com/async-validator/download/async-validator-3.5.2.tgz#68e866a96824e8b2694ff7a831c1a25c44d5e500" integrity sha1-aOhmqWgk6LJpT/eoMcGiXETV5QA= +async-validator@^4.0.1: + version "4.0.2" + resolved "https://registry.nlark.com/async-validator/download/async-validator-4.0.2.tgz#f8089628ff8a95f7c8c58e1b8d3c3cd9de186996" + integrity sha1-+AiWKP+KlffIxY4bjTw82d4YaZY= + async@0.9.x: version "0.9.2" resolved "https://registry.nlark.com/async/download/async-0.9.2.tgz#aea74d5e61c1f899613bf64bda66d4c78f2fd17d" @@ -1034,6 +1138,13 @@ chardet@^0.7.0: optionalDependencies: fsevents "~2.3.1" +chroma-js@^2.1.2: + version "2.1.2" + resolved "https://registry.nlark.com/chroma-js/download/chroma-js-2.1.2.tgz#1075cb9ae25bcb2017c109394168b5cf3aa500ec" + integrity sha1-EHXLmuJbyyAXwQk5QWi1zzqlAOw= + dependencies: + cross-env "^6.0.3" + ci-info@^2.0.0: version "2.0.0" resolved "https://registry.nlark.com/ci-info/download/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46" @@ -1246,6 +1357,13 @@ cosmiconfig@^7.0.0: path-type "^4.0.0" yaml "^1.10.0" +cross-env@^6.0.3: + version "6.0.3" + resolved "https://registry.nlark.com/cross-env/download/cross-env-6.0.3.tgz?cache=0&sync_timestamp=1622605224328&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fcross-env%2Fdownload%2Fcross-env-6.0.3.tgz#4256b71e49b3a40637a0ce70768a6ef5c72ae941" + integrity sha1-Qla3HkmzpAY3oM5wdopu9ccq6UE= + dependencies: + cross-spawn "^7.0.0" + cross-spawn@^6.0.5: version "6.0.5" resolved "https://registry.nlark.com/cross-spawn/download/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" @@ -1257,7 +1375,7 @@ cross-spawn@^6.0.5: shebang-command "^1.2.0" which "^1.2.9" -cross-spawn@^7.0.2, cross-spawn@^7.0.3: +cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3: version "7.0.3" resolved "https://registry.npm.taobao.org/cross-spawn/download/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" integrity sha1-9zqFudXUHQRVUcF34ogtSshXKKY= @@ -1266,6 +1384,15 @@ cross-spawn@^7.0.2, cross-spawn@^7.0.3: shebang-command "^2.0.0" which "^2.0.1" +css-render@^0.15.3, css-render@^0.15.4, css-render@~0.15.5: + version "0.15.5" + resolved "https://registry.nlark.com/css-render/download/css-render-0.15.5.tgz#e4c03b70307f31ca90133ad047419e69121bf096" + integrity sha1-5MA7cDB/McqQEzrQR0GeaRIb8JY= + dependencies: + "@emotion/hash" "~0.8.0" + "@types/node" "~14.14.31" + csstype "~3.0.5" + cssesc@^3.0.0: version "3.0.0" resolved "https://registry.npm.taobao.org/cssesc/download/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee" @@ -1276,6 +1403,11 @@ csstype@^2.6.8: resolved "https://registry.nlark.com/csstype/download/csstype-2.6.17.tgz#4cf30eb87e1d1a005d8b6510f95292413f6a1c0e" integrity sha1-TPMOuH4dGgBdi2UQ+VKSQT9qHA4= +csstype@~3.0.5: + version "3.0.8" + resolved "https://registry.nlark.com/csstype/download/csstype-3.0.8.tgz#d2266a792729fb227cd216fb572f43728e1ad340" + integrity sha1-0iZqeScp+yJ80hb7Vy9Dco4a00A= + cz-conventional-changelog@3.2.0: version "3.2.0" resolved "https://registry.npm.taobao.org/cz-conventional-changelog/download/cz-conventional-changelog-3.2.0.tgz#6aef1f892d64113343d7e455529089ac9f20e477" @@ -1321,6 +1453,11 @@ dargs@^7.0.0: resolved "https://registry.nlark.com/dargs/download/dargs-7.0.0.tgz?cache=0&sync_timestamp=1620054548989&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fdargs%2Fdownload%2Fdargs-7.0.0.tgz#04015c41de0bcb69ec84050f3d9be0caf8d6d5cc" integrity sha1-BAFcQd4Ly2nshAUPPZvgyvjW1cw= +date-fns@^2.19.0: + version "2.23.0" + resolved "https://registry.nlark.com/date-fns/download/date-fns-2.23.0.tgz?cache=0&sync_timestamp=1627020299263&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fdate-fns%2Fdownload%2Fdate-fns-2.23.0.tgz#4e886c941659af0cf7b30fafdd1eaa37e88788a9" + integrity sha1-TohslBZZrwz3sw+v3R6qN+iHiKk= + dayjs@1.x: version "1.10.5" resolved "https://registry.nlark.com/dayjs/download/dayjs-1.10.5.tgz?cache=0&sync_timestamp=1622012259636&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fdayjs%2Fdownload%2Fdayjs-1.10.5.tgz#5600df4548fc2453b3f163ebb2abbe965ccfb986" @@ -1404,6 +1541,11 @@ detect-indent@6.0.0: resolved "https://registry.nlark.com/detect-indent/download/detect-indent-6.0.0.tgz?cache=0&sync_timestamp=1618847118351&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fdetect-indent%2Fdownload%2Fdetect-indent-6.0.0.tgz#0abd0f549f69fc6659a254fe96786186b6f528fd" integrity sha1-Cr0PVJ9p/GZZolT+lnhhhrb1KP0= +diff-sequences@^26.6.2: + version "26.6.2" + resolved "https://registry.nlark.com/diff-sequences/download/diff-sequences-26.6.2.tgz?cache=0&sync_timestamp=1624900057366&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fdiff-sequences%2Fdownload%2Fdiff-sequences-26.6.2.tgz#48ba99157de1923412eed41db6b6d4aa9ca7c0b1" + integrity sha1-SLqZFX3hkjQS7tQdtrbUqpynwLE= + dir-glob@^3.0.1: version "3.0.1" resolved "https://registry.npm.taobao.org/dir-glob/download/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" @@ -1809,6 +1951,11 @@ esutils@^2.0.2: resolved "https://registry.nlark.com/esutils/download/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" integrity sha1-dNLrTeC42hKTcRkQ1Qd1ubcQ72Q= +evtd@^0.2.2: + version "0.2.2" + resolved "https://registry.nlark.com/evtd/download/evtd-0.2.2.tgz#bebbe27e15aedc1d5c18bc2620dfc90f260787c3" + integrity sha1-vrvifhWu3B1cGLwmIN/JDyYHh8M= + execa@^5.0.0: version "5.0.0" resolved "https://registry.nlark.com/execa/download/execa-5.0.0.tgz?cache=0&sync_timestamp=1618846808524&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fexeca%2Fdownload%2Fexeca-5.0.0.tgz#4029b0007998a841fbd1032e5f4de86a3c1e3376" @@ -2260,6 +2407,11 @@ header-case@^2.0.4: capital-case "^1.0.4" tslib "^2.0.3" +highlight.js@^11.0.1: + version "11.2.0" + resolved "https://registry.nlark.com/highlight.js/download/highlight.js-11.2.0.tgz#a7e3b8c1fdc4f0538b93b2dc2ddd53a40c6ab0f0" + integrity sha1-p+O4wf3E8FOLk7LcLd1TpAxqsPA= + homedir-polyfill@^1.0.1: version "1.0.3" resolved "https://registry.npm.taobao.org/homedir-polyfill/download/homedir-polyfill-1.0.3.tgz#743298cef4e5af3e194161fbadcc2151d3a058e8" @@ -2586,6 +2738,21 @@ jake@^10.6.1: filelist "^1.0.1" minimatch "^3.0.4" +jest-diff@^26.0.0: + version "26.6.2" + resolved "https://registry.nlark.com/jest-diff/download/jest-diff-26.6.2.tgz#1aa7468b52c3a68d7d5c5fdcdfcd5e49bd164394" + integrity sha1-GqdGi1LDpo19XF/c381eSb0WQ5Q= + dependencies: + chalk "^4.0.0" + diff-sequences "^26.6.2" + jest-get-type "^26.3.0" + pretty-format "^26.6.2" + +jest-get-type@^26.3.0: + version "26.3.0" + resolved "https://registry.nlark.com/jest-get-type/download/jest-get-type-26.3.0.tgz?cache=0&sync_timestamp=1624900056951&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fjest-get-type%2Fdownload%2Fjest-get-type-26.3.0.tgz#e97dc3c3f53c2b406ca7afaed4493b1d099199e0" + integrity sha1-6X3Dw/U8K0Bsp6+u1Ek7HQmRmeA= + jiti@^1.11.0: version "1.11.0" resolved "https://registry.nlark.com/jiti/download/jiti-1.11.0.tgz#64120a30d97b9bf37b8b032cf4564dfadc28984c" @@ -2781,6 +2948,11 @@ locate-path@^6.0.0: dependencies: p-locate "^5.0.0" +lodash-es@^4.17.21: + version "4.17.21" + resolved "https://registry.npm.taobao.org/lodash-es/download/lodash-es-4.17.21.tgz?cache=0&sync_timestamp=1613835893273&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Flodash-es%2Fdownload%2Flodash-es-4.17.21.tgz#43e626c46e6591b7750beb2b50117390c609e3ee" + integrity sha1-Q+YmxG5lkbd1C+srUBFzkMYJ4+4= + lodash.camelcase@^4.3.0: version "4.3.0" resolved "https://registry.npm.taobao.org/lodash.camelcase/download/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6" @@ -2999,6 +3171,29 @@ mute-stream@0.0.7: resolved "https://registry.nlark.com/mute-stream/download/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" integrity sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s= +naive-ui@^2.16.4: + version "2.16.4" + resolved "https://registry.nlark.com/naive-ui/download/naive-ui-2.16.4.tgz#d3b4f111a447c77b8846cb9accc7223f608f4b4f" + integrity sha1-07TxEaRHx3uIRsuazMciP2CPS08= + dependencies: + "@css-render/plugin-bem" "^0.15.4" + "@css-render/vue3-ssr" "^0.15.4" + "@types/lodash" "^4.14.170" + "@types/lodash-es" "^4.17.4" + async-validator "^4.0.1" + css-render "^0.15.4" + date-fns "^2.19.0" + evtd "^0.2.2" + highlight.js "^11.0.1" + lodash "^4.17.21" + lodash-es "^4.17.21" + seemly "^0.3.1" + treemate "^0.3.0" + vdirs "^0.1.4" + vfonts "^0.1.0" + vooks "^0.2.6" + vueuc "^0.4.9" + nanoid@^3.1.23: version "3.1.23" resolved "https://registry.nlark.com/nanoid/download/nanoid-3.1.23.tgz#f744086ce7c2bc47ee0a8472574d5c78e4183a81" @@ -3466,6 +3661,16 @@ prettier@^2.3.2: resolved "https://registry.nlark.com/prettier/download/prettier-2.3.2.tgz?cache=0&sync_timestamp=1624696193562&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fprettier%2Fdownload%2Fprettier-2.3.2.tgz#ef280a05ec253712e486233db5c6f23441e7342d" integrity sha1-7ygKBewlNxLkhiM9tcbyNEHnNC0= +pretty-format@^26.0.0, pretty-format@^26.6.2: + version "26.6.2" + resolved "https://registry.nlark.com/pretty-format/download/pretty-format-26.6.2.tgz#e35c2705f14cb7fe2fe94fa078345b444120fc93" + integrity sha1-41wnBfFMt/4v6U+geDRbREEg/JM= + dependencies: + "@jest/types" "^26.6.2" + ansi-regex "^5.0.0" + ansi-styles "^4.0.0" + react-is "^17.0.1" + progress@^2.0.0: version "2.0.3" resolved "https://registry.npm.taobao.org/progress/download/progress-2.0.3.tgz?cache=0&sync_timestamp=1599054255267&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fprogress%2Fdownload%2Fprogress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" @@ -3608,6 +3813,11 @@ quick-lru@^4.0.1: resolved "https://registry.npm.taobao.org/quick-lru/download/quick-lru-4.0.1.tgz?cache=0&sync_timestamp=1610610364837&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fquick-lru%2Fdownload%2Fquick-lru-4.0.1.tgz#5b8878f113a58217848c6482026c73e1ba57727f" integrity sha1-W4h48ROlgheEjGSCAmxz4bpXcn8= +react-is@^17.0.1: + version "17.0.2" + resolved "https://registry.nlark.com/react-is/download/react-is-17.0.2.tgz?cache=0&sync_timestamp=1629130680650&other_urls=https%3A%2F%2Fregistry.nlark.com%2Freact-is%2Fdownload%2Freact-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0" + integrity sha1-5pHUqOnHiTZWVVOas3J2Kw77VPA= + read-pkg-up@^3.0.0: version "3.0.0" resolved "https://registry.npm.taobao.org/read-pkg-up/download/read-pkg-up-3.0.0.tgz?cache=0&sync_timestamp=1616916344510&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fread-pkg-up%2Fdownload%2Fread-pkg-up-3.0.0.tgz#3ed496685dba0f8fe118d0691dc51f4a1ff96f07" @@ -3816,6 +4026,13 @@ sass@^1.38.0: dependencies: chokidar ">=3.0.0 <4.0.0" +seemly@^0.3.1: + version "0.3.1" + resolved "https://registry.nlark.com/seemly/download/seemly-0.3.1.tgz#bcb439d7e399a7cc546ca86c31d24328cc3944ca" + integrity sha1-vLQ51+OZp8xUbKhsMdJDKMw5RMo= + dependencies: + "@types/jest" "^26.0.20" + semver-compare@^1.0.0: version "1.0.0" resolved "https://registry.nlark.com/semver-compare/download/semver-compare-1.0.0.tgz#0dee216a1c941ab37e9efb1788f6afc5ff5537fc" @@ -4188,6 +4405,11 @@ token-stream@1.0.0: resolved "https://registry.npm.taobao.org/token-stream/download/token-stream-1.0.0.tgz#cc200eab2613f4166d27ff9afc7ca56d49df6eb4" integrity sha1-zCAOqyYT9BZtJ/+a/HylbUnfbrQ= +treemate@^0.3.0: + version "0.3.0" + resolved "https://registry.nlark.com/treemate/download/treemate-0.3.0.tgz#9f3ca2dce12d8285990646df4acb0db114b38088" + integrity sha1-nzyi3OEtgoWZBkbfSssNsRSzgIg= + trim-newlines@^3.0.0: version "3.0.0" resolved "https://registry.nlark.com/trim-newlines/download/trim-newlines-3.0.0.tgz?cache=0&sync_timestamp=1619005721489&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftrim-newlines%2Fdownload%2Ftrim-newlines-3.0.0.tgz#79726304a6a898aa8373427298d54c2ee8b1cb30" @@ -4333,6 +4555,19 @@ validate-npm-package-license@^3.0.1: spdx-correct "^3.0.0" spdx-expression-parse "^3.0.0" +vdirs@^0.1.4: + version "0.1.4" + resolved "https://registry.nlark.com/vdirs/download/vdirs-0.1.4.tgz#c4c0ff86cf47fed03de5f869e265311ef188ab74" + integrity sha1-xMD/hs9H/tA95fhp4mUxHvGIq3Q= + dependencies: + "@types/node" "^14.14.10" + evtd "^0.2.2" + +vfonts@^0.1.0: + version "0.1.0" + resolved "https://registry.nlark.com/vfonts/download/vfonts-0.1.0.tgz#c16af37ca044b2725ae55553049280efbe6222a9" + integrity sha1-wWrzfKBEsnJa5VVTBJKA775iIqk= + vite-plugin-components@^0.13.2: version "0.13.2" resolved "https://registry.nlark.com/vite-plugin-components/download/vite-plugin-components-0.13.2.tgz#9e1b1b90ca8a817954f5ac5ecc24dbbdf1cc1684" @@ -4398,6 +4633,13 @@ void-elements@^3.1.0: resolved "https://registry.npm.taobao.org/void-elements/download/void-elements-3.1.0.tgz#614f7fbf8d801f0bb5f0661f5b2f5785750e4f09" integrity sha1-YU9/v42AHwu18GYfWy9XhXUOTwk= +vooks@^0.2.4, vooks@^0.2.6: + version "0.2.8" + resolved "https://registry.nlark.com/vooks/download/vooks-0.2.8.tgz#fad6a78c72e39443e56285337b0843baaeed0f3e" + integrity sha1-+tanjHLjlEPlYoUzewhDuq7tDz4= + dependencies: + evtd "^0.2.2" + vscode-css-languageservice@^5.1.4: version "5.1.4" resolved "https://registry.nlark.com/vscode-css-languageservice/download/vscode-css-languageservice-5.1.4.tgz#07e4c63f1c3bb06e6f3f329c32b490d20a601bab" @@ -4586,6 +4828,18 @@ vue@^3.2.2: "@vue/runtime-dom" "3.2.2" "@vue/shared" "3.2.2" +vueuc@^0.4.9: + version "0.4.10" + resolved "https://registry.nlark.com/vueuc/download/vueuc-0.4.10.tgz#ae26ba76a0af154f8a139ef3718135a2c6adf676" + integrity sha1-ria6dqCvFU+KE57zcYE1osat9nY= + dependencies: + css-render "^0.15.3" + evtd "^0.2.2" + resize-observer-polyfill "^1.5.1" + seemly "^0.3.1" + vdirs "^0.1.4" + vooks "^0.2.4" + which-boxed-primitive@^1.0.2: version "1.0.2" resolved "https://registry.nlark.com/which-boxed-primitive/download/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6"