Compare commits
	
		
			1 Commits
		
	
	
		
			tauri-v1.3
			...
			tauri-v1.3
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 23d6d51166 | 
| @@ -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 }, |   { vue: true, unocss: true, ignores: ['src-tauri/target'] }, | ||||||
|   { |   { | ||||||
|     rules: { |     rules: { | ||||||
|       'vue/multi-word-component-names': [ |       'vue/multi-word-component-names': [ | ||||||
|   | |||||||
| @@ -32,17 +32,20 @@ | |||||||
|   }, |   }, | ||||||
|   "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", | ||||||
|     "czh": "sa git-commit -l=zh-cn", |     "czh": "sa git-commit -l=zh-cn", | ||||||
|     "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" | ||||||
|   }, |   }, | ||||||
| @@ -73,6 +76,7 @@ | |||||||
|     "@sa/scripts": "workspace:*", |     "@sa/scripts": "workspace:*", | ||||||
|     "@sa/uno-preset": "workspace:*", |     "@sa/uno-preset": "workspace:*", | ||||||
|     "@soybeanjs/eslint-config": "1.3.7", |     "@soybeanjs/eslint-config": "1.3.7", | ||||||
|  |     "@tauri-apps/cli": "1.6.0", | ||||||
|     "@types/node": "22.0.0", |     "@types/node": "22.0.0", | ||||||
|     "@types/nprogress": "0.2.3", |     "@types/nprogress": "0.2.3", | ||||||
|     "@unocss/eslint-config": "0.61.7", |     "@unocss/eslint-config": "0.61.7", | ||||||
|   | |||||||
							
								
								
									
										115
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						| @@ -81,6 +81,9 @@ importers: | |||||||
|       '@soybeanjs/eslint-config': |       '@soybeanjs/eslint-config': | ||||||
|         specifier: 1.3.7 |         specifier: 1.3.7 | ||||||
|         version: 1.3.7(@unocss/eslint-config@0.61.7(eslint@9.8.0)(typescript@5.5.4))(eslint-plugin-vue@9.27.0(eslint@9.8.0))(eslint@9.8.0)(typescript@5.5.4)(vue-eslint-parser@9.4.3(eslint@9.8.0)) |         version: 1.3.7(@unocss/eslint-config@0.61.7(eslint@9.8.0)(typescript@5.5.4))(eslint-plugin-vue@9.27.0(eslint@9.8.0))(eslint@9.8.0)(typescript@5.5.4)(vue-eslint-parser@9.4.3(eslint@9.8.0)) | ||||||
|  |       '@tauri-apps/cli': | ||||||
|  |         specifier: 1.6.0 | ||||||
|  |         version: 1.6.0 | ||||||
|       '@types/node': |       '@types/node': | ||||||
|         specifier: 22.0.0 |         specifier: 22.0.0 | ||||||
|         version: 22.0.0 |         version: 22.0.0 | ||||||
| @@ -1099,6 +1102,75 @@ packages: | |||||||
|     resolution: {integrity: sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==} |     resolution: {integrity: sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==} | ||||||
|     engines: {node: '>=14.16'} |     engines: {node: '>=14.16'} | ||||||
|  |  | ||||||
|  |   '@tauri-apps/cli-darwin-arm64@1.6.0': | ||||||
|  |     resolution: {integrity: sha512-SNRwUD9nqGxY47mbY1CGTt/jqyQOU7Ps7Mx/mpgahL0FVUDiCEY/5L9QfEPPhEgccgcelEVn7i6aQHIkHyUtCA==} | ||||||
|  |     engines: {node: '>= 10'} | ||||||
|  |     cpu: [arm64] | ||||||
|  |     os: [darwin] | ||||||
|  |  | ||||||
|  |   '@tauri-apps/cli-darwin-x64@1.6.0': | ||||||
|  |     resolution: {integrity: sha512-g2/uDR/eeH2arvuawA4WwaEOqv/7jDO/ZLNI3JlBjP5Pk8GGb3Kdy0ro1xQzF94mtk2mOnOXa4dMgAet4sUJ1A==} | ||||||
|  |     engines: {node: '>= 10'} | ||||||
|  |     cpu: [x64] | ||||||
|  |     os: [darwin] | ||||||
|  |  | ||||||
|  |   '@tauri-apps/cli-linux-arm-gnueabihf@1.6.0': | ||||||
|  |     resolution: {integrity: sha512-EVwf4oRkQyG8BpSrk0gqO7oA0sDM2MdNDtJpMfleYFEgCxLIOGZKNqaOW3M7U+0Y4qikmG3TtRK+ngc8Ymtrjg==} | ||||||
|  |     engines: {node: '>= 10'} | ||||||
|  |     cpu: [arm] | ||||||
|  |     os: [linux] | ||||||
|  |  | ||||||
|  |   '@tauri-apps/cli-linux-arm64-gnu@1.6.0': | ||||||
|  |     resolution: {integrity: sha512-YdpY17cAySrhK9dX4BUVEmhAxE2o+6skIEFg8iN/xrDwRxhaNPI9I80YXPatUTX54Kx55T5++25VJG9+3iw83A==} | ||||||
|  |     engines: {node: '>= 10'} | ||||||
|  |     cpu: [arm64] | ||||||
|  |     os: [linux] | ||||||
|  |     libc: [glibc] | ||||||
|  |  | ||||||
|  |   '@tauri-apps/cli-linux-arm64-musl@1.6.0': | ||||||
|  |     resolution: {integrity: sha512-4U628tuf2U8pMr4tIBJhEkrFwt+46dwhXrDlpdyWSZtnop5RJAVKHODm0KbWns4xGKfTW1F3r6sSv+2ZxLcISA==} | ||||||
|  |     engines: {node: '>= 10'} | ||||||
|  |     cpu: [arm64] | ||||||
|  |     os: [linux] | ||||||
|  |     libc: [musl] | ||||||
|  |  | ||||||
|  |   '@tauri-apps/cli-linux-x64-gnu@1.6.0': | ||||||
|  |     resolution: {integrity: sha512-AKRzp76fVUaJyXj5KRJT9bJyhwZyUnRQU0RqIRqOtZCT5yr6qGP8rjtQ7YhCIzWrseBlOllc3Qvbgw3Yl0VQcA==} | ||||||
|  |     engines: {node: '>= 10'} | ||||||
|  |     cpu: [x64] | ||||||
|  |     os: [linux] | ||||||
|  |     libc: [glibc] | ||||||
|  |  | ||||||
|  |   '@tauri-apps/cli-linux-x64-musl@1.6.0': | ||||||
|  |     resolution: {integrity: sha512-0edIdq6aMBTaRMIXddHfyAFL361JqulLLd2Wi2aoOie7DkQ2MYh6gv3hA7NB9gqFwNIGE+xtJ4BkXIP2tSGPlg==} | ||||||
|  |     engines: {node: '>= 10'} | ||||||
|  |     cpu: [x64] | ||||||
|  |     os: [linux] | ||||||
|  |     libc: [musl] | ||||||
|  |  | ||||||
|  |   '@tauri-apps/cli-win32-arm64-msvc@1.6.0': | ||||||
|  |     resolution: {integrity: sha512-QwWpWk4ubcwJ1rljsRAmINgB2AwkyzZhpYbalA+MmzyYMREcdXWGkyixWbRZgqc6fEWEBmq5UG73qz5eBJiIKg==} | ||||||
|  |     engines: {node: '>= 10'} | ||||||
|  |     cpu: [arm64] | ||||||
|  |     os: [win32] | ||||||
|  |  | ||||||
|  |   '@tauri-apps/cli-win32-ia32-msvc@1.6.0': | ||||||
|  |     resolution: {integrity: sha512-Vtw0yxO9+aEFuhuxQ57ALG43tjECopRimRuKGbtZYDCriB/ty5TrT3QWMdy0dxBkpDTu3Rqsz30sbDzw6tlP3Q==} | ||||||
|  |     engines: {node: '>= 10'} | ||||||
|  |     cpu: [ia32] | ||||||
|  |     os: [win32] | ||||||
|  |  | ||||||
|  |   '@tauri-apps/cli-win32-x64-msvc@1.6.0': | ||||||
|  |     resolution: {integrity: sha512-h54FHOvGi7+LIfRchzgZYSCHB1HDlP599vWXQQJ/XnwJY+6Rwr2E5bOe/EhqoG8rbGkfK0xX3KPAvXPbUlmggg==} | ||||||
|  |     engines: {node: '>= 10'} | ||||||
|  |     cpu: [x64] | ||||||
|  |     os: [win32] | ||||||
|  |  | ||||||
|  |   '@tauri-apps/cli@1.6.0': | ||||||
|  |     resolution: {integrity: sha512-DBBpBl6GhTzm8ImMbKkfaZ4fDTykWrC7Q5OXP4XqD91recmDEn2LExuvuiiS3HYe7uP8Eb5B9NPHhqJb+Zo7qQ==} | ||||||
|  |     engines: {node: '>= 10'} | ||||||
|  |     hasBin: true | ||||||
|  |  | ||||||
|   '@tootallnate/once@2.0.0': |   '@tootallnate/once@2.0.0': | ||||||
|     resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==} |     resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==} | ||||||
|     engines: {node: '>= 10'} |     engines: {node: '>= 10'} | ||||||
| @@ -5671,6 +5743,49 @@ snapshots: | |||||||
|     dependencies: |     dependencies: | ||||||
|       defer-to-connect: 2.0.1 |       defer-to-connect: 2.0.1 | ||||||
|  |  | ||||||
|  |   '@tauri-apps/cli-darwin-arm64@1.6.0': | ||||||
|  |     optional: true | ||||||
|  |  | ||||||
|  |   '@tauri-apps/cli-darwin-x64@1.6.0': | ||||||
|  |     optional: true | ||||||
|  |  | ||||||
|  |   '@tauri-apps/cli-linux-arm-gnueabihf@1.6.0': | ||||||
|  |     optional: true | ||||||
|  |  | ||||||
|  |   '@tauri-apps/cli-linux-arm64-gnu@1.6.0': | ||||||
|  |     optional: true | ||||||
|  |  | ||||||
|  |   '@tauri-apps/cli-linux-arm64-musl@1.6.0': | ||||||
|  |     optional: true | ||||||
|  |  | ||||||
|  |   '@tauri-apps/cli-linux-x64-gnu@1.6.0': | ||||||
|  |     optional: true | ||||||
|  |  | ||||||
|  |   '@tauri-apps/cli-linux-x64-musl@1.6.0': | ||||||
|  |     optional: true | ||||||
|  |  | ||||||
|  |   '@tauri-apps/cli-win32-arm64-msvc@1.6.0': | ||||||
|  |     optional: true | ||||||
|  |  | ||||||
|  |   '@tauri-apps/cli-win32-ia32-msvc@1.6.0': | ||||||
|  |     optional: true | ||||||
|  |  | ||||||
|  |   '@tauri-apps/cli-win32-x64-msvc@1.6.0': | ||||||
|  |     optional: true | ||||||
|  |  | ||||||
|  |   '@tauri-apps/cli@1.6.0': | ||||||
|  |     optionalDependencies: | ||||||
|  |       '@tauri-apps/cli-darwin-arm64': 1.6.0 | ||||||
|  |       '@tauri-apps/cli-darwin-x64': 1.6.0 | ||||||
|  |       '@tauri-apps/cli-linux-arm-gnueabihf': 1.6.0 | ||||||
|  |       '@tauri-apps/cli-linux-arm64-gnu': 1.6.0 | ||||||
|  |       '@tauri-apps/cli-linux-arm64-musl': 1.6.0 | ||||||
|  |       '@tauri-apps/cli-linux-x64-gnu': 1.6.0 | ||||||
|  |       '@tauri-apps/cli-linux-x64-musl': 1.6.0 | ||||||
|  |       '@tauri-apps/cli-win32-arm64-msvc': 1.6.0 | ||||||
|  |       '@tauri-apps/cli-win32-ia32-msvc': 1.6.0 | ||||||
|  |       '@tauri-apps/cli-win32-x64-msvc': 1.6.0 | ||||||
|  |  | ||||||
|   '@tootallnate/once@2.0.0': {} |   '@tootallnate/once@2.0.0': {} | ||||||
|  |  | ||||||
|   '@trysound/sax@0.2.0': {} |   '@trysound/sax@0.2.0': {} | ||||||
|   | |||||||
							
								
								
									
										
											BIN
										
									
								
								public/logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 20 KiB | 
							
								
								
									
										3
									
								
								src-tauri/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,3 @@ | |||||||
|  | # Generated by Cargo | ||||||
|  | # will have compiled files and executables | ||||||
|  | /target/ | ||||||
							
								
								
									
										3664
									
								
								src-tauri/Cargo.lock
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										26
									
								
								src-tauri/Cargo.toml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,26 @@ | |||||||
|  | [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" ] | ||||||
							
								
								
									
										3
									
								
								src-tauri/build.rs
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,3 @@ | |||||||
|  | fn main() { | ||||||
|  |   tauri_build::build() | ||||||
|  | } | ||||||
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/128x128.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 8.8 KiB | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/128x128@2x.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 19 KiB | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/32x32.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 1.7 KiB | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/Square107x107Logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 7.4 KiB | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/Square142x142Logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 9.9 KiB | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/Square150x150Logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 10 KiB | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/Square284x284Logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 21 KiB | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/Square30x30Logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 1.6 KiB | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/Square310x310Logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 23 KiB | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/Square44x44Logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.6 KiB | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/Square71x71Logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 4.7 KiB | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/Square89x89Logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 6.1 KiB | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/StoreLogo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 3.0 KiB | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/icon.icns
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/icon.ico
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 31 KiB | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/icon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 39 KiB | 
							
								
								
									
										8
									
								
								src-tauri/src/main.rs
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,8 @@ | |||||||
|  | // 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"); | ||||||
|  | } | ||||||
							
								
								
									
										60
									
								
								src-tauri/tauri.conf.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,60 @@ | |||||||
|  | { | ||||||
|  |   "$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 | ||||||
|  |       } | ||||||
|  |     ] | ||||||
|  |   } | ||||||
|  | } | ||||||