Compare commits
	
		
			1 Commits
		
	
	
		
			example
			...
			tauri-v1.1
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 9683480f6a | 
| @@ -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': [ | ||||
|   | ||||
| @@ -32,17 +32,20 @@ | ||||
|   }, | ||||
|   "scripts": { | ||||
|     "build": "vite build --mode prod", | ||||
|     "build:tauri": "pnpm tauri build", | ||||
|     "build:test": "vite build --mode test", | ||||
|     "cleanup": "sa cleanup", | ||||
|     "commit": "sa git-commit", | ||||
|     "commit:zh": "sa git-commit -l=zh-cn", | ||||
|     "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" | ||||
|   }, | ||||
| @@ -54,6 +57,7 @@ | ||||
|     "@sa/hooks": "workspace:*", | ||||
|     "@sa/materials": "workspace:*", | ||||
|     "@sa/utils": "workspace:*", | ||||
|     "@tauri-apps/api": "2.5.0", | ||||
|     "@vueuse/core": "13.4.0", | ||||
|     "clipboard": "2.0.11", | ||||
|     "dayjs": "1.11.13", | ||||
| @@ -75,6 +79,7 @@ | ||||
|     "@sa/scripts": "workspace:*", | ||||
|     "@sa/uno-preset": "workspace:*", | ||||
|     "@soybeanjs/eslint-config": "1.6.1", | ||||
|     "@tauri-apps/cli": "2.5.0", | ||||
|     "@types/node": "24.0.3", | ||||
|     "@types/nprogress": "0.2.3", | ||||
|     "@unocss/eslint-config": "66.2.3", | ||||
|   | ||||
							
								
								
									
										134
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						| @@ -29,6 +29,9 @@ importers: | ||||
|       '@sa/utils': | ||||
|         specifier: workspace:* | ||||
|         version: link:packages/utils | ||||
|       '@tauri-apps/api': | ||||
|         specifier: 2.5.0 | ||||
|         version: 2.5.0 | ||||
|       '@vueuse/core': | ||||
|         specifier: 13.4.0 | ||||
|         version: 13.4.0(vue@3.5.17(typescript@5.8.3)) | ||||
| @@ -87,6 +90,9 @@ importers: | ||||
|       '@soybeanjs/eslint-config': | ||||
|         specifier: 1.6.1 | ||||
|         version: 1.6.1(@unocss/eslint-config@66.2.3(eslint@9.29.0(jiti@2.4.2))(typescript@5.8.3))(eslint-plugin-vue@10.2.0(eslint@9.29.0(jiti@2.4.2))(vue-eslint-parser@10.1.4(eslint@9.29.0(jiti@2.4.2))))(eslint@9.29.0(jiti@2.4.2))(typescript@5.8.3)(vue-eslint-parser@10.1.4(eslint@9.29.0(jiti@2.4.2))) | ||||
|       '@tauri-apps/cli': | ||||
|         specifier: 2.5.0 | ||||
|         version: 2.5.0 | ||||
|       '@types/node': | ||||
|         specifier: 24.0.3 | ||||
|         version: 24.0.3 | ||||
| @@ -1081,6 +1087,85 @@ packages: | ||||
|       vue-eslint-parser: | ||||
|         optional: true | ||||
|  | ||||
|   '@tauri-apps/api@2.5.0': | ||||
|     resolution: {integrity: sha512-Ldux4ip+HGAcPUmuLT8EIkk6yafl5vK0P0c0byzAKzxJh7vxelVtdPONjfgTm96PbN24yjZNESY8CKo8qniluA==} | ||||
|  | ||||
|   '@tauri-apps/cli-darwin-arm64@2.5.0': | ||||
|     resolution: {integrity: sha512-VuVAeTFq86dfpoBDNYAdtQVLbP0+2EKCHIIhkaxjeoPARR0sLpFHz2zs0PcFU76e+KAaxtEtAJAXGNUc8E1PzQ==} | ||||
|     engines: {node: '>= 10'} | ||||
|     cpu: [arm64] | ||||
|     os: [darwin] | ||||
|  | ||||
|   '@tauri-apps/cli-darwin-x64@2.5.0': | ||||
|     resolution: {integrity: sha512-hUF01sC06cZVa8+I0/VtsHOk9BbO75rd+YdtHJ48xTdcYaQ5QIwL4yZz9OR1AKBTaUYhBam8UX9Pvd5V2/4Dpw==} | ||||
|     engines: {node: '>= 10'} | ||||
|     cpu: [x64] | ||||
|     os: [darwin] | ||||
|  | ||||
|   '@tauri-apps/cli-linux-arm-gnueabihf@2.5.0': | ||||
|     resolution: {integrity: sha512-LQKqttsK252LlqYyX8R02MinUsfFcy3+NZiJwHFgi5Y3+ZUIAED9cSxJkyNtuY5KMnR4RlpgWyLv4P6akN1xhg==} | ||||
|     engines: {node: '>= 10'} | ||||
|     cpu: [arm] | ||||
|     os: [linux] | ||||
|  | ||||
|   '@tauri-apps/cli-linux-arm64-gnu@2.5.0': | ||||
|     resolution: {integrity: sha512-mTQufsPcpdHg5RW0zypazMo4L55EfeE5snTzrPqbLX4yCK2qalN7+rnP8O8GT06xhp6ElSP/Ku1M2MR297SByQ==} | ||||
|     engines: {node: '>= 10'} | ||||
|     cpu: [arm64] | ||||
|     os: [linux] | ||||
|     libc: [glibc] | ||||
|  | ||||
|   '@tauri-apps/cli-linux-arm64-musl@2.5.0': | ||||
|     resolution: {integrity: sha512-rQO1HhRUQqyEaal5dUVOQruTRda/TD36s9kv1hTxZiFuSq3558lsTjAcUEnMAtBcBkps20sbyTJNMT0AwYIk8Q==} | ||||
|     engines: {node: '>= 10'} | ||||
|     cpu: [arm64] | ||||
|     os: [linux] | ||||
|     libc: [musl] | ||||
|  | ||||
|   '@tauri-apps/cli-linux-riscv64-gnu@2.5.0': | ||||
|     resolution: {integrity: sha512-7oS18FN46yDxyw1zX/AxhLAd7T3GrLj3Ai6s8hZKd9qFVzrAn36ESL7d3G05s8wEtsJf26qjXnVF4qleS3dYsA==} | ||||
|     engines: {node: '>= 10'} | ||||
|     cpu: [riscv64] | ||||
|     os: [linux] | ||||
|     libc: [glibc] | ||||
|  | ||||
|   '@tauri-apps/cli-linux-x64-gnu@2.5.0': | ||||
|     resolution: {integrity: sha512-SG5sFNL7VMmDBdIg3nO3EzNRT306HsiEQ0N90ILe3ZABYAVoPDO/ttpCO37ApLInTzrq/DLN+gOlC/mgZvLw1w==} | ||||
|     engines: {node: '>= 10'} | ||||
|     cpu: [x64] | ||||
|     os: [linux] | ||||
|     libc: [glibc] | ||||
|  | ||||
|   '@tauri-apps/cli-linux-x64-musl@2.5.0': | ||||
|     resolution: {integrity: sha512-QXDM8zp/6v05PNWju5ELsVwF0VH1n6b5pk2E6W/jFbbiwz80Vs1lACl9pv5kEHkrxBj+aWU/03JzGuIj2g3SkQ==} | ||||
|     engines: {node: '>= 10'} | ||||
|     cpu: [x64] | ||||
|     os: [linux] | ||||
|     libc: [musl] | ||||
|  | ||||
|   '@tauri-apps/cli-win32-arm64-msvc@2.5.0': | ||||
|     resolution: {integrity: sha512-pFSHFK6b+o9y4Un8w0gGLwVyFTZaC3P0kQ7umRt/BLDkzD5RnQ4vBM7CF8BCU5nkwmEBUCZd7Wt3TWZxe41o6Q==} | ||||
|     engines: {node: '>= 10'} | ||||
|     cpu: [arm64] | ||||
|     os: [win32] | ||||
|  | ||||
|   '@tauri-apps/cli-win32-ia32-msvc@2.5.0': | ||||
|     resolution: {integrity: sha512-EArv1IaRlogdLAQyGlKmEqZqm5RfHCUMhJoedWu7GtdbOMUfSAz6FMX2boE1PtEmNO4An+g188flLeVErrxEKg==} | ||||
|     engines: {node: '>= 10'} | ||||
|     cpu: [ia32] | ||||
|     os: [win32] | ||||
|  | ||||
|   '@tauri-apps/cli-win32-x64-msvc@2.5.0': | ||||
|     resolution: {integrity: sha512-lj43EFYbnAta8pd9JnUq87o+xRUR0odz+4rixBtTUwUgdRdwQ2V9CzFtsMu6FQKpFQ6mujRK6P1IEwhL6ADRsQ==} | ||||
|     engines: {node: '>= 10'} | ||||
|     cpu: [x64] | ||||
|     os: [win32] | ||||
|  | ||||
|   '@tauri-apps/cli@2.5.0': | ||||
|     resolution: {integrity: sha512-rAtHqG0Gh/IWLjN2zTf3nZqYqbo81oMbqop56rGTjrlWk9pTTAjkqOjSL9XQLIMZ3RbeVjveCqqCA0s8RnLdMg==} | ||||
|     engines: {node: '>= 10'} | ||||
|     hasBin: true | ||||
|  | ||||
|   '@trysound/sax@0.2.0': | ||||
|     resolution: {integrity: sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==} | ||||
|     engines: {node: '>=10.13.0'} | ||||
| @@ -4915,6 +5000,55 @@ snapshots: | ||||
|       - '@types/eslint' | ||||
|       - supports-color | ||||
|  | ||||
|   '@tauri-apps/api@2.5.0': {} | ||||
|  | ||||
|   '@tauri-apps/cli-darwin-arm64@2.5.0': | ||||
|     optional: true | ||||
|  | ||||
|   '@tauri-apps/cli-darwin-x64@2.5.0': | ||||
|     optional: true | ||||
|  | ||||
|   '@tauri-apps/cli-linux-arm-gnueabihf@2.5.0': | ||||
|     optional: true | ||||
|  | ||||
|   '@tauri-apps/cli-linux-arm64-gnu@2.5.0': | ||||
|     optional: true | ||||
|  | ||||
|   '@tauri-apps/cli-linux-arm64-musl@2.5.0': | ||||
|     optional: true | ||||
|  | ||||
|   '@tauri-apps/cli-linux-riscv64-gnu@2.5.0': | ||||
|     optional: true | ||||
|  | ||||
|   '@tauri-apps/cli-linux-x64-gnu@2.5.0': | ||||
|     optional: true | ||||
|  | ||||
|   '@tauri-apps/cli-linux-x64-musl@2.5.0': | ||||
|     optional: true | ||||
|  | ||||
|   '@tauri-apps/cli-win32-arm64-msvc@2.5.0': | ||||
|     optional: true | ||||
|  | ||||
|   '@tauri-apps/cli-win32-ia32-msvc@2.5.0': | ||||
|     optional: true | ||||
|  | ||||
|   '@tauri-apps/cli-win32-x64-msvc@2.5.0': | ||||
|     optional: true | ||||
|  | ||||
|   '@tauri-apps/cli@2.5.0': | ||||
|     optionalDependencies: | ||||
|       '@tauri-apps/cli-darwin-arm64': 2.5.0 | ||||
|       '@tauri-apps/cli-darwin-x64': 2.5.0 | ||||
|       '@tauri-apps/cli-linux-arm-gnueabihf': 2.5.0 | ||||
|       '@tauri-apps/cli-linux-arm64-gnu': 2.5.0 | ||||
|       '@tauri-apps/cli-linux-arm64-musl': 2.5.0 | ||||
|       '@tauri-apps/cli-linux-riscv64-gnu': 2.5.0 | ||||
|       '@tauri-apps/cli-linux-x64-gnu': 2.5.0 | ||||
|       '@tauri-apps/cli-linux-x64-musl': 2.5.0 | ||||
|       '@tauri-apps/cli-win32-arm64-msvc': 2.5.0 | ||||
|       '@tauri-apps/cli-win32-ia32-msvc': 2.5.0 | ||||
|       '@tauri-apps/cli-win32-x64-msvc': 2.5.0 | ||||
|  | ||||
|   '@trysound/sax@0.2.0': {} | ||||
|  | ||||
|   '@tybys/wasm-util@0.9.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/ | ||||
							
								
								
									
										4580
									
								
								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 = "2", features = [] } | ||||
|  | ||||
| [dependencies] | ||||
| serde_json = "1.0" | ||||
| serde = { version = "1.0", features = ["derive"] } | ||||
| tauri = { version = "2", 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() | ||||
| } | ||||
							
								
								
									
										7
									
								
								src-tauri/capabilities/migrated.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,7 @@ | ||||
| { | ||||
|   "identifier": "migrated", | ||||
|   "description": "permissions that were migrated from v1", | ||||
|   "local": true, | ||||
|   "windows": ["main"], | ||||
|   "permissions": ["core:default"] | ||||
| } | ||||
							
								
								
									
										1676
									
								
								src-tauri/gen/schemas/acl-manifests.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										9
									
								
								src-tauri/gen/schemas/capabilities.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,9 @@ | ||||
| { | ||||
|   "migrated": { | ||||
|     "identifier": "migrated", | ||||
|     "description": "permissions that were migrated from v1", | ||||
|     "local": true, | ||||
|     "windows": ["main"], | ||||
|     "permissions": ["core:default"] | ||||
|   } | ||||
| } | ||||
							
								
								
									
										1778
									
								
								src-tauri/gen/schemas/desktop-schema.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										1778
									
								
								src-tauri/gen/schemas/macOS-schema.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											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"); | ||||
| } | ||||
							
								
								
									
										57
									
								
								src-tauri/tauri.conf.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,57 @@ | ||||
| { | ||||
|   "$schema": "../node_modules/@tauri-apps/cli/config.schema.json", | ||||
|   "build": { | ||||
|     "beforeBuildCommand": "npm run build", | ||||
|     "beforeDevCommand": "npm run dev", | ||||
|     "frontendDist": "../dist", | ||||
|     "devUrl": "http://localhost:9527" | ||||
|   }, | ||||
|   "bundle": { | ||||
|     "active": true, | ||||
|     "category": "DeveloperTool", | ||||
|     "copyright": "", | ||||
|     "targets": "all", | ||||
|     "externalBin": [], | ||||
|     "icon": ["icons/32x32.png", "icons/128x128.png", "icons/128x128@2x.png", "icons/icon.icns", "icons/icon.ico"], | ||||
|     "windows": { | ||||
|       "certificateThumbprint": null, | ||||
|       "digestAlgorithm": "sha256", | ||||
|       "timestampUrl": "" | ||||
|     }, | ||||
|     "longDescription": "", | ||||
|     "macOS": { | ||||
|       "entitlements": null, | ||||
|       "exceptionDomain": "", | ||||
|       "frameworks": [], | ||||
|       "providerShortName": null, | ||||
|       "signingIdentity": null | ||||
|     }, | ||||
|     "resources": [], | ||||
|     "shortDescription": "", | ||||
|     "linux": { | ||||
|       "deb": { | ||||
|         "depends": [] | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   "productName": "soybean-admin", | ||||
|   "mainBinaryName": "soybean-admin", | ||||
|   "version": "1.0.0", | ||||
|   "identifier": "cn.soybeanjs.admin", | ||||
|   "plugins": {}, | ||||
|   "app": { | ||||
|     "windows": [ | ||||
|       { | ||||
|         "fullscreen": false, | ||||
|         "height": 768, | ||||
|         "resizable": true, | ||||
|         "title": "SoybeanAdmin", | ||||
|         "width": 1366, | ||||
|         "useHttpsScheme": true | ||||
|       } | ||||
|     ], | ||||
|     "security": { | ||||
|       "csp": null | ||||
|     } | ||||
|   } | ||||
| } | ||||