Compare commits
	
		
			1 Commits
		
	
	
		
			v1.3.5
			...
			tauri-v1.0
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | ebdef724b0 | 
| @@ -1,7 +1,7 @@ | ||||
| import { defineConfig } from '@soybeanjs/eslint-config'; | ||||
|  | ||||
| export default defineConfig( | ||||
|   { vue: true, unocss: true }, | ||||
|   { vue: true, unocss: true, ignores: ['src-tauri/target'] }, | ||||
|   { | ||||
|     rules: { | ||||
|       'vue/multi-word-component-names': [ | ||||
|   | ||||
| @@ -29,16 +29,19 @@ | ||||
|   ], | ||||
|   "scripts": { | ||||
|     "build": "vite build --mode prod", | ||||
|     "build:tauri": "pnpm tauri build", | ||||
|     "build:test": "vite build --mode test", | ||||
|     "cleanup": "sa cleanup", | ||||
|     "commit": "sa git-commit", | ||||
|     "dev": "vite --mode test", | ||||
|     "dev:prod": "vite --mode prod", | ||||
|     "dev:tauri": "pnpm tauri dev", | ||||
|     "gen-route": "sa gen-route", | ||||
|     "lint": "eslint . --fix", | ||||
|     "prepare": "simple-git-hooks", | ||||
|     "preview": "vite preview", | ||||
|     "release": "sa release", | ||||
|     "tauri-icon": "pnpm tauri icon ./public/logo.png", | ||||
|     "typecheck": "vue-tsc --noEmit --skipLibCheck", | ||||
|     "update-pkg": "sa update-pkg" | ||||
|   }, | ||||
| @@ -69,6 +72,7 @@ | ||||
|     "@sa/scripts": "workspace:*", | ||||
|     "@sa/uno-preset": "workspace:*", | ||||
|     "@soybeanjs/eslint-config": "1.2.5", | ||||
|     "@tauri-apps/cli": "1.5.11", | ||||
|     "@types/lodash-es": "4.17.12", | ||||
|     "@types/node": "20.12.5", | ||||
|     "@types/nprogress": "0.2.3", | ||||
|   | ||||
							
								
								
									
										114
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						| @@ -81,6 +81,9 @@ importers: | ||||
|       '@soybeanjs/eslint-config': | ||||
|         specifier: 1.2.5 | ||||
|         version: 1.2.5(@unocss/eslint-config@0.59.0)(eslint-plugin-vue@9.24.0)(eslint@8.57.0)(typescript@5.4.4)(vue-eslint-parser@9.4.2) | ||||
|       '@tauri-apps/cli': | ||||
|         specifier: 1.5.11 | ||||
|         version: 1.5.11 | ||||
|       '@types/lodash-es': | ||||
|         specifier: 4.17.12 | ||||
|         version: 4.17.12 | ||||
| @@ -1738,6 +1741,117 @@ packages: | ||||
|       defer-to-connect: 2.0.1 | ||||
|     dev: true | ||||
|  | ||||
|   /@tauri-apps/cli-darwin-arm64@1.5.11: | ||||
|     resolution: {integrity: sha512-2NLSglDb5VfvTbMtmOKWyD+oaL/e8Z/ZZGovHtUFyUSFRabdXc6cZOlcD1BhFvYkHqm+TqGaz5qtPR5UbqDs8A==} | ||||
|     engines: {node: '>= 10'} | ||||
|     cpu: [arm64] | ||||
|     os: [darwin] | ||||
|     requiresBuild: true | ||||
|     dev: true | ||||
|     optional: true | ||||
|  | ||||
|   /@tauri-apps/cli-darwin-x64@1.5.11: | ||||
|     resolution: {integrity: sha512-/RQllHiJRH2fJOCudtZlaUIjofkHzP3zZgxi71ZUm7Fy80smU5TDfwpwOvB0wSVh0g/ciDjMArCSTo0MRvL+ag==} | ||||
|     engines: {node: '>= 10'} | ||||
|     cpu: [x64] | ||||
|     os: [darwin] | ||||
|     requiresBuild: true | ||||
|     dev: true | ||||
|     optional: true | ||||
|  | ||||
|   /@tauri-apps/cli-linux-arm-gnueabihf@1.5.11: | ||||
|     resolution: {integrity: sha512-IlBuBPKmMm+a5LLUEK6a21UGr9ZYd6zKuKLq6IGM4tVweQa8Sf2kP2Nqs74dMGIUrLmMs0vuqdURpykQg+z4NQ==} | ||||
|     engines: {node: '>= 10'} | ||||
|     cpu: [arm] | ||||
|     os: [linux] | ||||
|     requiresBuild: true | ||||
|     dev: true | ||||
|     optional: true | ||||
|  | ||||
|   /@tauri-apps/cli-linux-arm64-gnu@1.5.11: | ||||
|     resolution: {integrity: sha512-w+k1bNHCU/GbmXshtAhyTwqosThUDmCEFLU4Zkin1vl2fuAtQry2RN7thfcJFepblUGL/J7yh3Q/0+BCjtspKQ==} | ||||
|     engines: {node: '>= 10'} | ||||
|     cpu: [arm64] | ||||
|     os: [linux] | ||||
|     libc: [glibc] | ||||
|     requiresBuild: true | ||||
|     dev: true | ||||
|     optional: true | ||||
|  | ||||
|   /@tauri-apps/cli-linux-arm64-musl@1.5.11: | ||||
|     resolution: {integrity: sha512-PN6/dl+OfYQ/qrAy4HRAfksJ2AyWQYn2IA/2Wwpaa7SDRz2+hzwTQkvajuvy0sQ5L2WCG7ymFYRYMbpC6Hk9Pg==} | ||||
|     engines: {node: '>= 10'} | ||||
|     cpu: [arm64] | ||||
|     os: [linux] | ||||
|     libc: [musl] | ||||
|     requiresBuild: true | ||||
|     dev: true | ||||
|     optional: true | ||||
|  | ||||
|   /@tauri-apps/cli-linux-x64-gnu@1.5.11: | ||||
|     resolution: {integrity: sha512-MTVXLi89Nj7Apcvjezw92m7ZqIDKT5SFKZtVPCg6RoLUBTzko/BQoXYIRWmdoz2pgkHDUHgO2OMJ8oKzzddXbw==} | ||||
|     engines: {node: '>= 10'} | ||||
|     cpu: [x64] | ||||
|     os: [linux] | ||||
|     libc: [glibc] | ||||
|     requiresBuild: true | ||||
|     dev: true | ||||
|     optional: true | ||||
|  | ||||
|   /@tauri-apps/cli-linux-x64-musl@1.5.11: | ||||
|     resolution: {integrity: sha512-kwzAjqFpz7rvTs7WGZLy/a5nS5t15QKr3E9FG95MNF0exTl3d29YoAUAe1Mn0mOSrTJ9Z+vYYAcI/QdcsGBP+w==} | ||||
|     engines: {node: '>= 10'} | ||||
|     cpu: [x64] | ||||
|     os: [linux] | ||||
|     libc: [musl] | ||||
|     requiresBuild: true | ||||
|     dev: true | ||||
|     optional: true | ||||
|  | ||||
|   /@tauri-apps/cli-win32-arm64-msvc@1.5.11: | ||||
|     resolution: {integrity: sha512-L+5NZ/rHrSUrMxjj6YpFYCXp6wHnq8c8SfDTBOX8dO8x+5283/vftb4vvuGIsLS4UwUFXFnLt3XQr44n84E67Q==} | ||||
|     engines: {node: '>= 10'} | ||||
|     cpu: [arm64] | ||||
|     os: [win32] | ||||
|     requiresBuild: true | ||||
|     dev: true | ||||
|     optional: true | ||||
|  | ||||
|   /@tauri-apps/cli-win32-ia32-msvc@1.5.11: | ||||
|     resolution: {integrity: sha512-oVlD9IVewrY0lZzTdb71kNXkjdgMqFq+ohb67YsJb4Rf7o8A9DTlFds1XLCe3joqLMm4M+gvBKD7YnGIdxQ9vA==} | ||||
|     engines: {node: '>= 10'} | ||||
|     cpu: [ia32] | ||||
|     os: [win32] | ||||
|     requiresBuild: true | ||||
|     dev: true | ||||
|     optional: true | ||||
|  | ||||
|   /@tauri-apps/cli-win32-x64-msvc@1.5.11: | ||||
|     resolution: {integrity: sha512-1CexcqUFCis5ypUIMOKllxUBrna09McbftWENgvVXMfA+SP+yPDPAVb8fIvUcdTIwR/yHJwcIucmTB4anww4vg==} | ||||
|     engines: {node: '>= 10'} | ||||
|     cpu: [x64] | ||||
|     os: [win32] | ||||
|     requiresBuild: true | ||||
|     dev: true | ||||
|     optional: true | ||||
|  | ||||
|   /@tauri-apps/cli@1.5.11: | ||||
|     resolution: {integrity: sha512-B475D7phZrq5sZ3kDABH4g2mEoUIHtnIO+r4ZGAAfsjMbZCwXxR/jlMGTEL+VO3YzjpF7gQe38IzB4vLBbVppw==} | ||||
|     engines: {node: '>= 10'} | ||||
|     hasBin: true | ||||
|     optionalDependencies: | ||||
|       '@tauri-apps/cli-darwin-arm64': 1.5.11 | ||||
|       '@tauri-apps/cli-darwin-x64': 1.5.11 | ||||
|       '@tauri-apps/cli-linux-arm-gnueabihf': 1.5.11 | ||||
|       '@tauri-apps/cli-linux-arm64-gnu': 1.5.11 | ||||
|       '@tauri-apps/cli-linux-arm64-musl': 1.5.11 | ||||
|       '@tauri-apps/cli-linux-x64-gnu': 1.5.11 | ||||
|       '@tauri-apps/cli-linux-x64-musl': 1.5.11 | ||||
|       '@tauri-apps/cli-win32-arm64-msvc': 1.5.11 | ||||
|       '@tauri-apps/cli-win32-ia32-msvc': 1.5.11 | ||||
|       '@tauri-apps/cli-win32-x64-msvc': 1.5.11 | ||||
|     dev: true | ||||
|  | ||||
|   /@tootallnate/once@2.0.0: | ||||
|     resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==} | ||||
|     engines: {node: '>= 10'} | ||||
|   | ||||
							
								
								
									
										
											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 | ||||
|       } | ||||
|     ] | ||||
|   } | ||||
| } | ||||