Compare commits
	
		
			13 Commits
		
	
	
		
			tauri-v1.0
			...
			v1.0.2
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 4af884c08b | ||
|  | 41e470ed6e | ||
|  | 2f15a2ac6a | ||
|  | 1c72dc76ee | ||
|  | a1b484a8eb | ||
|  | d9410e416e | ||
|  | 769d84a7f4 | ||
|  | 0fbb00cee1 | ||
|  | cc539974b2 | ||
|  | 1ec5ea0ff1 | ||
|  | 9125cc9b60 | ||
|  | 76011af8a9 | ||
|  | 4babbe19a3 | 
							
								
								
									
										43
									
								
								CHANGELOG.md
									
									
									
									
									
								
							
							
						
						| @@ -1,6 +1,49 @@ | |||||||
| # Changelog | # Changelog | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ## [v1.0.2](https://github.com/soybeanjs/soybean-admin/compare/tauri-v1.0.1...v1.0.2) (24-04-08) | ||||||
|  |  | ||||||
|  | ###    🐞 Bug Fixes | ||||||
|  |  | ||||||
|  | - **projects**: unify border-radius of Tag. fixed #378  -  by @honghuangdc in https://github.com/soybeanjs/soybean-admin/issues/378 [<samp>(2f15a)</samp>](https://github.com/soybeanjs/soybean-admin/commit/2f15a2a) | ||||||
|  | - **styles**: fix css var is inserted repeatedly  -  by **燕博文** [<samp>(769d8)</samp>](https://github.com/soybeanjs/soybean-admin/commit/769d84a) | ||||||
|  |  | ||||||
|  | ###    💅 Refactors | ||||||
|  |  | ||||||
|  | - **projects**: refactor addThemeVarsToHtml  -  by @honghuangdc [<samp>(41e47)</samp>](https://github.com/soybeanjs/soybean-admin/commit/41e470e) | ||||||
|  |  | ||||||
|  | ###    🏡 Chore | ||||||
|  |  | ||||||
|  | - **deps**: update deps  -  by @honghuangdc [<samp>(a1b48)</samp>](https://github.com/soybeanjs/soybean-admin/commit/a1b484a) | ||||||
|  | - **projects**: disabled unocss eslint rule: order-attributify  -  by @honghuangdc [<samp>(1c72d)</samp>](https://github.com/soybeanjs/soybean-admin/commit/1c72dc7) | ||||||
|  |  | ||||||
|  | ###    ❤️ Contributors | ||||||
|  |  | ||||||
|  | [](https://github.com/honghuangdc)   | ||||||
|  | [燕博文](mailto:349952469@qq.com) | ||||||
|  |  | ||||||
|  | ## [v1.0.1](https://github.com/soybeanjs/soybean-admin/compare/tauri-v1.0.0...v1.0.1) (24-04-03) | ||||||
|  |  | ||||||
|  | ###    🐞 Bug Fixes | ||||||
|  |  | ||||||
|  | - **projects**: | ||||||
|  |   - fix flatRequest error type. fixed #376  -  by @honghuangdc in https://github.com/soybeanjs/soybean-admin/issues/376 [<samp>(1ec5e)</samp>](https://github.com/soybeanjs/soybean-admin/commit/1ec5ea0) | ||||||
|  |   - add maxWidth for GlobalTab to fix bg with gap. fixed #350  -  by @honghuangdc in https://github.com/soybeanjs/soybean-admin/issues/350 [<samp>(cc539)</samp>](https://github.com/soybeanjs/soybean-admin/commit/cc53997) | ||||||
|  |  | ||||||
|  | ###    📖 Documentation | ||||||
|  |  | ||||||
|  | - **projects**: update README.md  -  by @honghuangdc [<samp>(76011)</samp>](https://github.com/soybeanjs/soybean-admin/commit/76011af) | ||||||
|  |  | ||||||
|  | ###    🏡 Chore | ||||||
|  |  | ||||||
|  | - **projects**: | ||||||
|  |   - update deps  -  by @honghuangdc [<samp>(4babb)</samp>](https://github.com/soybeanjs/soybean-admin/commit/4babbe1) | ||||||
|  |   - update pnpm version  -  by @honghuangdc [<samp>(9125c)</samp>](https://github.com/soybeanjs/soybean-admin/commit/9125cc9) | ||||||
|  |  | ||||||
|  | ###    ❤️ Contributors | ||||||
|  |  | ||||||
|  | [](https://github.com/honghuangdc)   | ||||||
|  |  | ||||||
| ## [v1.0.0](https://github.com/soybeanjs/soybean-admin/compare/v0.10.4...v1.0.0) (24-03-31) | ## [v1.0.0](https://github.com/soybeanjs/soybean-admin/compare/v0.10.4...v1.0.0) (24-03-31) | ||||||
|  |  | ||||||
| ###    🚀 Features | ###    🚀 Features | ||||||
|   | |||||||
| @@ -48,7 +48,7 @@ | |||||||
|   - [预览地址](https://antd.soybeanjs.cn/) |   - [预览地址](https://antd.soybeanjs.cn/) | ||||||
|   - [Github 仓库](https://github.com/soybeanjs/soybean-admin-antd) |   - [Github 仓库](https://github.com/soybeanjs/soybean-admin-antd) | ||||||
|   - [Gitee 仓库](https://gitee.com/honghuangdc/soybean-admin-antd) |   - [Gitee 仓库](https://gitee.com/honghuangdc/soybean-admin-antd) | ||||||
|   - |  | ||||||
| - **旧版:** | - **旧版:** | ||||||
|   - [预览地址](https://legacy.soybeanjs.cn/) |   - [预览地址](https://legacy.soybeanjs.cn/) | ||||||
|   - [Github 仓库](https://github.com/soybeanjs/soybean-admin/tree/legacy) |   - [Github 仓库](https://github.com/soybeanjs/soybean-admin/tree/legacy) | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| import { defineConfig } from '@soybeanjs/eslint-config'; | import { defineConfig } from '@soybeanjs/eslint-config'; | ||||||
|  |  | ||||||
| export default defineConfig( | export default defineConfig( | ||||||
|   { vue: true, unocss: true, ignores: ['src-tauri/target'] }, |   { vue: true, unocss: true }, | ||||||
|   { |   { | ||||||
|     rules: { |     rules: { | ||||||
|       'vue/multi-word-component-names': [ |       'vue/multi-word-component-names': [ | ||||||
| @@ -17,7 +17,8 @@ export default defineConfig( | |||||||
|           registeredComponentsOnly: false, |           registeredComponentsOnly: false, | ||||||
|           ignores: ['/^icon-/'] |           ignores: ['/^icon-/'] | ||||||
|         } |         } | ||||||
|       ] |       ], | ||||||
|  |       'order-attributify': 'off' | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| ); | ); | ||||||
|   | |||||||
							
								
								
									
										36
									
								
								package.json
									
									
									
									
									
								
							
							
						
						| @@ -1,8 +1,8 @@ | |||||||
| { | { | ||||||
|   "name": "soybean-admin", |   "name": "soybean-admin", | ||||||
|   "type": "module", |   "type": "module", | ||||||
|   "version": "1.0.0", |   "version": "1.0.2", | ||||||
|   "packageManager": "pnpm@8.15.5", |   "packageManager": "pnpm@8.15.6", | ||||||
|   "description": "A fresh and elegant admin template, based on Vue3、Vite3、TypeScript、NaiveUI and UnoCSS. 一个基于Vue3、Vite3、TypeScript、NaiveUI and UnoCSS的清新优雅的中后台模版。", |   "description": "A fresh and elegant admin template, based on Vue3、Vite3、TypeScript、NaiveUI and UnoCSS. 一个基于Vue3、Vite3、TypeScript、NaiveUI and UnoCSS的清新优雅的中后台模版。", | ||||||
|   "author": { |   "author": { | ||||||
|     "name": "Soybean", |     "name": "Soybean", | ||||||
| @@ -29,19 +29,16 @@ | |||||||
|   ], |   ], | ||||||
|   "scripts": { |   "scripts": { | ||||||
|     "build": "vite build --mode prod", |     "build": "vite build --mode prod", | ||||||
|     "build:tauri": "pnpm tauri build", |  | ||||||
|     "build:test": "vite build --mode test", |     "build:test": "vite build --mode test", | ||||||
|     "cleanup": "sa cleanup", |     "cleanup": "sa cleanup", | ||||||
|     "commit": "sa git-commit", |     "commit": "sa git-commit", | ||||||
|     "dev": "vite --mode test", |     "dev": "vite --mode test", | ||||||
|     "dev:prod": "vite --mode prod", |     "dev:prod": "vite --mode prod", | ||||||
|     "dev:tauri": "pnpm tauri dev", |  | ||||||
|     "gen-route": "sa gen-route", |     "gen-route": "sa gen-route", | ||||||
|     "lint": "eslint . --fix", |     "lint": "eslint . --fix", | ||||||
|     "prepare": "simple-git-hooks", |     "prepare": "simple-git-hooks", | ||||||
|     "preview": "vite preview", |     "preview": "vite preview", | ||||||
|     "release": "sa release", |     "release": "sa release", | ||||||
|     "tauri-icon": "pnpm tauri icon ./public/logo.png", |  | ||||||
|     "typecheck": "vue-tsc --noEmit --skipLibCheck", |     "typecheck": "vue-tsc --noEmit --skipLibCheck", | ||||||
|     "update-pkg": "sa update-pkg" |     "update-pkg": "sa update-pkg" | ||||||
|   }, |   }, | ||||||
| @@ -63,42 +60,41 @@ | |||||||
|     "pinia": "2.1.7", |     "pinia": "2.1.7", | ||||||
|     "vue": "3.4.21", |     "vue": "3.4.21", | ||||||
|     "vue-draggable-plus": "0.4.0", |     "vue-draggable-plus": "0.4.0", | ||||||
|     "vue-i18n": "9.10.2", |     "vue-i18n": "9.11.0", | ||||||
|     "vue-router": "4.3.0" |     "vue-router": "4.3.0" | ||||||
|   }, |   }, | ||||||
|   "devDependencies": { |   "devDependencies": { | ||||||
|     "@elegant-router/vue": "0.3.6", |     "@elegant-router/vue": "0.3.6", | ||||||
|     "@iconify/json": "2.2.196", |     "@iconify/json": "2.2.198", | ||||||
|     "@sa/scripts": "workspace:*", |     "@sa/scripts": "workspace:*", | ||||||
|     "@sa/uno-preset": "workspace:*", |     "@sa/uno-preset": "workspace:*", | ||||||
|     "@soybeanjs/eslint-config": "1.2.5", |     "@soybeanjs/eslint-config": "1.2.5", | ||||||
|     "@tauri-apps/cli": "1.5.11", |  | ||||||
|     "@types/lodash-es": "4.17.12", |     "@types/lodash-es": "4.17.12", | ||||||
|     "@types/node": "20.12.2", |     "@types/node": "20.12.5", | ||||||
|     "@types/nprogress": "0.2.3", |     "@types/nprogress": "0.2.3", | ||||||
|     "@unocss/eslint-config": "0.58.8", |     "@unocss/eslint-config": "0.59.0", | ||||||
|     "@unocss/preset-icons": "0.58.8", |     "@unocss/preset-icons": "0.59.0", | ||||||
|     "@unocss/preset-uno": "0.58.8", |     "@unocss/preset-uno": "0.59.0", | ||||||
|     "@unocss/transformer-directives": "0.58.8", |     "@unocss/transformer-directives": "0.59.0", | ||||||
|     "@unocss/transformer-variant-group": "0.58.8", |     "@unocss/transformer-variant-group": "0.59.0", | ||||||
|     "@unocss/vite": "0.58.8", |     "@unocss/vite": "0.59.0", | ||||||
|     "@vitejs/plugin-vue": "5.0.4", |     "@vitejs/plugin-vue": "5.0.4", | ||||||
|     "@vitejs/plugin-vue-jsx": "3.1.0", |     "@vitejs/plugin-vue-jsx": "3.1.0", | ||||||
|     "eslint": "8.57.0", |     "eslint": "8.57.0", | ||||||
|     "eslint-plugin-vue": "9.24.0", |     "eslint-plugin-vue": "9.24.0", | ||||||
|     "lint-staged": "15.2.2", |     "lint-staged": "15.2.2", | ||||||
|     "sass": "1.72.0", |     "sass": "1.74.1", | ||||||
|     "simple-git-hooks": "2.11.1", |     "simple-git-hooks": "2.11.1", | ||||||
|     "tsx": "4.7.1", |     "tsx": "4.7.2", | ||||||
|     "typescript": "5.4.3", |     "typescript": "5.4.4", | ||||||
|     "unplugin-icons": "0.18.5", |     "unplugin-icons": "0.18.5", | ||||||
|     "unplugin-vue-components": "0.26.0", |     "unplugin-vue-components": "0.26.0", | ||||||
|     "vite": "5.2.7", |     "vite": "5.2.8", | ||||||
|     "vite-plugin-progress": "0.0.7", |     "vite-plugin-progress": "0.0.7", | ||||||
|     "vite-plugin-svg-icons": "2.0.1", |     "vite-plugin-svg-icons": "2.0.1", | ||||||
|     "vite-plugin-vue-devtools": "7.0.25", |     "vite-plugin-vue-devtools": "7.0.25", | ||||||
|     "vue-eslint-parser": "9.4.2", |     "vue-eslint-parser": "9.4.2", | ||||||
|     "vue-tsc": "2.0.7" |     "vue-tsc": "2.0.11" | ||||||
|   }, |   }, | ||||||
|   "simple-git-hooks": { |   "simple-git-hooks": { | ||||||
|     "commit-msg": "pnpm sa git-commit-verify", |     "commit-msg": "pnpm sa git-commit-verify", | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "@sa/axios", |   "name": "@sa/axios", | ||||||
|   "version": "1.0.0", |   "version": "1.0.2", | ||||||
|   "exports": { |   "exports": { | ||||||
|     ".": "./src/index.ts" |     ".": "./src/index.ts" | ||||||
|   }, |   }, | ||||||
|   | |||||||
| @@ -145,9 +145,10 @@ export function createFlatRequest<ResponseData = any, State = Record<string, unk | |||||||
| ) { | ) { | ||||||
|   const { instance, opts, cancelRequest, cancelAllRequest } = createCommonRequest<ResponseData>(axiosConfig, options); |   const { instance, opts, cancelRequest, cancelAllRequest } = createCommonRequest<ResponseData>(axiosConfig, options); | ||||||
|  |  | ||||||
|   const flatRequest: FlatRequestInstance<State> = async function flatRequest<T = any, R extends ResponseType = 'json'>( |   const flatRequest: FlatRequestInstance<State, ResponseData> = async function flatRequest< | ||||||
|     config: CustomAxiosRequestConfig |     T = any, | ||||||
|   ) { |     R extends ResponseType = 'json' | ||||||
|  |   >(config: CustomAxiosRequestConfig) { | ||||||
|     try { |     try { | ||||||
|       const response: AxiosResponse<ResponseData> = await instance(config); |       const response: AxiosResponse<ResponseData> = await instance(config); | ||||||
|  |  | ||||||
| @@ -163,7 +164,7 @@ export function createFlatRequest<ResponseData = any, State = Record<string, unk | |||||||
|     } catch (error) { |     } catch (error) { | ||||||
|       return { data: null, error }; |       return { data: null, error }; | ||||||
|     } |     } | ||||||
|   } as FlatRequestInstance<State>; |   } as FlatRequestInstance<State, ResponseData>; | ||||||
|  |  | ||||||
|   flatRequest.cancelRequest = cancelRequest; |   flatRequest.cancelRequest = cancelRequest; | ||||||
|   flatRequest.cancelAllRequest = cancelAllRequest; |   flatRequest.cancelAllRequest = cancelAllRequest; | ||||||
|   | |||||||
| @@ -85,15 +85,17 @@ export type FlatResponseSuccessData<T = any> = { | |||||||
|   error: null; |   error: null; | ||||||
| }; | }; | ||||||
|  |  | ||||||
| export type FlatResponseFailData<T = any> = { | export type FlatResponseFailData<ResponseData = any> = { | ||||||
|   data: null; |   data: null; | ||||||
|   error: AxiosError<T>; |   error: AxiosError<ResponseData>; | ||||||
| }; | }; | ||||||
|  |  | ||||||
| export type FlatResponseData<T = any> = FlatResponseSuccessData<T> | FlatResponseFailData<T>; | export type FlatResponseData<T = any, ResponseData = any> = | ||||||
|  |   | FlatResponseSuccessData<T> | ||||||
|  |   | FlatResponseFailData<ResponseData>; | ||||||
|  |  | ||||||
| export interface FlatRequestInstance<S = Record<string, unknown>> extends RequestInstanceCommon<S> { | export interface FlatRequestInstance<S = Record<string, unknown>, ResponseData = any> extends RequestInstanceCommon<S> { | ||||||
|   <T = any, R extends ResponseType = 'json'>( |   <T = any, R extends ResponseType = 'json'>( | ||||||
|     config: CustomAxiosRequestConfig<R> |     config: CustomAxiosRequestConfig<R> | ||||||
|   ): Promise<FlatResponseData<MappedType<R, T>>>; |   ): Promise<FlatResponseData<MappedType<R, T>, ResponseData>>; | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "@sa/color-palette", |   "name": "@sa/color-palette", | ||||||
|   "version": "1.0.0", |   "version": "1.0.2", | ||||||
|   "exports": { |   "exports": { | ||||||
|     ".": "./src/index.ts" |     ".": "./src/index.ts" | ||||||
|   }, |   }, | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "@sa/hooks", |   "name": "@sa/hooks", | ||||||
|   "version": "1.0.0", |   "version": "1.0.2", | ||||||
|   "exports": { |   "exports": { | ||||||
|     ".": "./src/index.ts" |     ".": "./src/index.ts" | ||||||
|   }, |   }, | ||||||
|   | |||||||
| @@ -16,19 +16,19 @@ export type HookRequestInstanceResponseSuccessData<T = any> = { | |||||||
|   error: Ref<null>; |   error: Ref<null>; | ||||||
| }; | }; | ||||||
|  |  | ||||||
| export type HookRequestInstanceResponseFailData<T = any> = { | export type HookRequestInstanceResponseFailData<ResponseData = any> = { | ||||||
|   data: Ref<null>; |   data: Ref<null>; | ||||||
|   error: Ref<AxiosError<T>>; |   error: Ref<AxiosError<ResponseData>>; | ||||||
| }; | }; | ||||||
|  |  | ||||||
| export type HookRequestInstanceResponseData<T = any> = { | export type HookRequestInstanceResponseData<T = any, ResponseData = any> = { | ||||||
|   loading: Ref<boolean>; |   loading: Ref<boolean>; | ||||||
| } & (HookRequestInstanceResponseSuccessData<T> | HookRequestInstanceResponseFailData<T>); | } & (HookRequestInstanceResponseSuccessData<T> | HookRequestInstanceResponseFailData<ResponseData>); | ||||||
|  |  | ||||||
| export interface HookRequestInstance { | export interface HookRequestInstance<ResponseData = any> { | ||||||
|   <T = any, R extends ResponseType = 'json'>( |   <T = any, R extends ResponseType = 'json'>( | ||||||
|     config: CustomAxiosRequestConfig |     config: CustomAxiosRequestConfig | ||||||
|   ): HookRequestInstanceResponseData<MappedType<R, T>>; |   ): HookRequestInstanceResponseData<MappedType<R, T>, ResponseData>; | ||||||
|   cancelRequest: (requestId: string) => void; |   cancelRequest: (requestId: string) => void; | ||||||
|   cancelAllRequest: () => void; |   cancelAllRequest: () => void; | ||||||
| } | } | ||||||
| @@ -45,13 +45,13 @@ export default function createHookRequest<ResponseData = any>( | |||||||
| ) { | ) { | ||||||
|   const request = createFlatRequest<ResponseData>(axiosConfig, options); |   const request = createFlatRequest<ResponseData>(axiosConfig, options); | ||||||
|  |  | ||||||
|   const hookRequest: HookRequestInstance = function hookRequest<T = any, R extends ResponseType = 'json'>( |   const hookRequest: HookRequestInstance<ResponseData> = function hookRequest<T = any, R extends ResponseType = 'json'>( | ||||||
|     config: CustomAxiosRequestConfig |     config: CustomAxiosRequestConfig | ||||||
|   ) { |   ) { | ||||||
|     const { loading, startLoading, endLoading } = useLoading(); |     const { loading, startLoading, endLoading } = useLoading(); | ||||||
|  |  | ||||||
|     const data = ref<MappedType<R, T> | null>(null); |     const data = ref<MappedType<R, T> | null>(null) as Ref<MappedType<R, T>>; | ||||||
|     const error = ref<AxiosError<MappedType<R, T>> | null>(null); |     const error = ref<AxiosError<ResponseData> | null>(null) as Ref<AxiosError<ResponseData> | null>; | ||||||
|  |  | ||||||
|     startLoading(); |     startLoading(); | ||||||
|  |  | ||||||
| @@ -70,7 +70,7 @@ export default function createHookRequest<ResponseData = any>( | |||||||
|       data, |       data, | ||||||
|       error |       error | ||||||
|     }; |     }; | ||||||
|   } as HookRequestInstance; |   } as HookRequestInstance<ResponseData>; | ||||||
|  |  | ||||||
|   hookRequest.cancelRequest = request.cancelRequest; |   hookRequest.cancelRequest = request.cancelRequest; | ||||||
|   hookRequest.cancelAllRequest = request.cancelAllRequest; |   hookRequest.cancelAllRequest = request.cancelAllRequest; | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "@sa/materials", |   "name": "@sa/materials", | ||||||
|   "version": "1.0.0", |   "version": "1.0.2", | ||||||
|   "exports": { |   "exports": { | ||||||
|     ".": "./src/index.ts" |     ".": "./src/index.ts" | ||||||
|   }, |   }, | ||||||
|   | |||||||
| @@ -203,7 +203,7 @@ function handleClickMask() { | |||||||
|       <!-- Main Content --> |       <!-- Main Content --> | ||||||
|       <main |       <main | ||||||
|         :id="isContentScroll ? scrollElId : undefined" |         :id="isContentScroll ? scrollElId : undefined" | ||||||
|         class="flex flex-grow flex-col" |         class="flex flex-col flex-grow" | ||||||
|         :class="[commonClass, contentClass, leftGapClass, { 'overflow-y-auto': isContentScroll }]" |         :class="[commonClass, contentClass, leftGapClass, { 'overflow-y-auto': isContentScroll }]" | ||||||
|       > |       > | ||||||
|         <slot></slot> |         <slot></slot> | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "@sa/fetch", |   "name": "@sa/fetch", | ||||||
|   "version": "1.0.0", |   "version": "1.0.2", | ||||||
|   "exports": { |   "exports": { | ||||||
|     ".": "./src/index.ts" |     ".": "./src/index.ts" | ||||||
|   }, |   }, | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "@sa/scripts", |   "name": "@sa/scripts", | ||||||
|   "version": "1.0.0", |   "version": "1.0.2", | ||||||
|   "bin": { |   "bin": { | ||||||
|     "sa": "./bin.ts" |     "sa": "./bin.ts" | ||||||
|   }, |   }, | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "@sa/uno-preset", |   "name": "@sa/uno-preset", | ||||||
|   "version": "1.0.0", |   "version": "1.0.2", | ||||||
|   "exports": { |   "exports": { | ||||||
|     ".": "./src/index.ts" |     ".": "./src/index.ts" | ||||||
|   }, |   }, | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "@sa/utils", |   "name": "@sa/utils", | ||||||
|   "version": "1.0.0", |   "version": "1.0.2", | ||||||
|   "exports": { |   "exports": { | ||||||
|     ".": "./src/index.ts" |     ".": "./src/index.ts" | ||||||
|   }, |   }, | ||||||
| @@ -13,7 +13,7 @@ | |||||||
|     "colord": "2.9.3", |     "colord": "2.9.3", | ||||||
|     "crypto-js": "4.2.0", |     "crypto-js": "4.2.0", | ||||||
|     "localforage": "1.10.0", |     "localforage": "1.10.0", | ||||||
|     "nanoid": "5.0.6" |     "nanoid": "5.0.7" | ||||||
|   }, |   }, | ||||||
|   "devDependencies": { |   "devDependencies": { | ||||||
|     "@types/crypto-js": "4.2.2" |     "@types/crypto-js": "4.2.2" | ||||||
|   | |||||||
							
								
								
									
										882
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								public/logo.png
									
									
									
									
									
								
							
							
						
						| Before Width: | Height: | Size: 20 KiB | 
							
								
								
									
										3
									
								
								src-tauri/.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						| @@ -1,3 +0,0 @@ | |||||||
| # Generated by Cargo |  | ||||||
| # will have compiled files and executables |  | ||||||
| /target/ |  | ||||||
							
								
								
									
										3664
									
								
								src-tauri/Cargo.lock
									
									
									
										generated
									
									
									
								
							
							
						
						| @@ -1,26 +0,0 @@ | |||||||
| [package] |  | ||||||
| name = "app" |  | ||||||
| version = "0.1.0" |  | ||||||
| description = "A Tauri App" |  | ||||||
| authors = ["you"] |  | ||||||
| license = "" |  | ||||||
| repository = "" |  | ||||||
| default-run = "app" |  | ||||||
| edition = "2021" |  | ||||||
| rust-version = "1.60" |  | ||||||
|  |  | ||||||
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html |  | ||||||
|  |  | ||||||
| [build-dependencies] |  | ||||||
| tauri-build = { version = "1.5.1", features = [] } |  | ||||||
|  |  | ||||||
| [dependencies] |  | ||||||
| serde_json = "1.0" |  | ||||||
| serde = { version = "1.0", features = ["derive"] } |  | ||||||
| tauri = { version = "1.6.1", features = [] } |  | ||||||
|  |  | ||||||
| [features] |  | ||||||
| # this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled. |  | ||||||
| # If you use cargo directly instead of tauri's cli you can use this feature flag to switch between tauri's `dev` and `build` modes. |  | ||||||
| # DO NOT REMOVE!! |  | ||||||
| custom-protocol = [ "tauri/custom-protocol" ] |  | ||||||
| @@ -1,3 +0,0 @@ | |||||||
| fn main() { |  | ||||||
|   tauri_build::build() |  | ||||||
| } |  | ||||||
| Before Width: | Height: | Size: 8.8 KiB | 
| Before Width: | Height: | Size: 19 KiB | 
| Before Width: | Height: | Size: 1.7 KiB | 
| Before Width: | Height: | Size: 7.4 KiB | 
| Before Width: | Height: | Size: 9.9 KiB | 
| Before Width: | Height: | Size: 10 KiB | 
| Before Width: | Height: | Size: 21 KiB | 
| Before Width: | Height: | Size: 1.6 KiB | 
| Before Width: | Height: | Size: 23 KiB | 
| Before Width: | Height: | Size: 2.6 KiB | 
| Before Width: | Height: | Size: 4.7 KiB | 
| Before Width: | Height: | Size: 6.1 KiB | 
| Before Width: | Height: | Size: 3.0 KiB | 
| Before Width: | Height: | Size: 31 KiB | 
| Before Width: | Height: | Size: 39 KiB | 
| @@ -1,8 +0,0 @@ | |||||||
| // Prevents additional console window on Windows in release, DO NOT REMOVE!! |  | ||||||
| #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] |  | ||||||
|  |  | ||||||
| fn main() { |  | ||||||
|   tauri::Builder::default() |  | ||||||
|     .run(tauri::generate_context!()) |  | ||||||
|     .expect("error while running tauri application"); |  | ||||||
| } |  | ||||||
| @@ -1,60 +0,0 @@ | |||||||
| { |  | ||||||
|   "$schema": "../node_modules/@tauri-apps/cli/schema.json", |  | ||||||
|   "build": { |  | ||||||
|     "beforeBuildCommand": "npm run build", |  | ||||||
|     "beforeDevCommand": "npm run dev", |  | ||||||
|     "devPath": "http://localhost:9527", |  | ||||||
|     "distDir": "../dist" |  | ||||||
|   }, |  | ||||||
|   "package": { |  | ||||||
|     "productName": "soybean-admin", |  | ||||||
|     "version": "1.0.0" |  | ||||||
|   }, |  | ||||||
|   "tauri": { |  | ||||||
|     "allowlist": { |  | ||||||
|       "all": false |  | ||||||
|     }, |  | ||||||
|     "bundle": { |  | ||||||
|       "active": true, |  | ||||||
|       "category": "DeveloperTool", |  | ||||||
|       "copyright": "", |  | ||||||
|       "deb": { |  | ||||||
|         "depends": [] |  | ||||||
|       }, |  | ||||||
|       "externalBin": [], |  | ||||||
|       "icon": ["icons/32x32.png", "icons/128x128.png", "icons/128x128@2x.png", "icons/icon.icns", "icons/icon.ico"], |  | ||||||
|       "identifier": "cn.soybeanjs.admin", |  | ||||||
|       "longDescription": "", |  | ||||||
|       "macOS": { |  | ||||||
|         "entitlements": null, |  | ||||||
|         "exceptionDomain": "", |  | ||||||
|         "frameworks": [], |  | ||||||
|         "providerShortName": null, |  | ||||||
|         "signingIdentity": null |  | ||||||
|       }, |  | ||||||
|       "resources": [], |  | ||||||
|       "shortDescription": "", |  | ||||||
|       "targets": "all", |  | ||||||
|       "windows": { |  | ||||||
|         "certificateThumbprint": null, |  | ||||||
|         "digestAlgorithm": "sha256", |  | ||||||
|         "timestampUrl": "" |  | ||||||
|       } |  | ||||||
|     }, |  | ||||||
|     "security": { |  | ||||||
|       "csp": null |  | ||||||
|     }, |  | ||||||
|     "updater": { |  | ||||||
|       "active": false |  | ||||||
|     }, |  | ||||||
|     "windows": [ |  | ||||||
|       { |  | ||||||
|         "fullscreen": false, |  | ||||||
|         "height": 768, |  | ||||||
|         "resizable": true, |  | ||||||
|         "title": "SoybeanAdmin", |  | ||||||
|         "width": 1366 |  | ||||||
|       } |  | ||||||
|     ] |  | ||||||
|   } |  | ||||||
| } |  | ||||||
| @@ -184,7 +184,7 @@ init(); | |||||||
|             <template #prefix> |             <template #prefix> | ||||||
|               <SvgIcon :icon="tab.icon" :local-icon="tab.localIcon" class="inline-block align-text-bottom text-16px" /> |               <SvgIcon :icon="tab.icon" :local-icon="tab.localIcon" class="inline-block align-text-bottom text-16px" /> | ||||||
|             </template> |             </template> | ||||||
|             <span>{{ tab.label }}</span> |             <div class="max-w-240px ellipsis-text">{{ tab.label }}</div> | ||||||
|           </PageTab> |           </PageTab> | ||||||
|         </div> |         </div> | ||||||
|       </BetterScroll> |       </BetterScroll> | ||||||
|   | |||||||
| @@ -150,7 +150,11 @@ export function addThemeVarsToHtml(tokens: App.Theme.BaseToken, darkTokens: App. | |||||||
|     } |     } | ||||||
|   `; |   `; | ||||||
|  |  | ||||||
|   const style = document.createElement('style'); |   const styleId = 'theme-vars'; | ||||||
|  |  | ||||||
|  |   const style = document.querySelector(`#${styleId}`) || document.createElement('style'); | ||||||
|  |  | ||||||
|  |   style.id = styleId; | ||||||
|  |  | ||||||
|   style.textContent = css + darkCss; |   style.textContent = css + darkCss; | ||||||
|  |  | ||||||
| @@ -230,6 +234,9 @@ export function getNaiveTheme(colors: App.Theme.ThemeColor) { | |||||||
|     }, |     }, | ||||||
|     LoadingBar: { |     LoadingBar: { | ||||||
|       colorLoading |       colorLoading | ||||||
|  |     }, | ||||||
|  |     Tag: { | ||||||
|  |       borderRadius: '6px' | ||||||
|     } |     } | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
|   | |||||||