Compare commits
	
		
			1 Commits
		
	
	
		
			05dc11e258
			...
			tauri-v0.1
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					c70b2299a9 | 
@@ -1,3 +1,4 @@
 | 
			
		||||
!.env-config.ts
 | 
			
		||||
router-page.d.ts
 | 
			
		||||
 | 
			
		||||
*.svg
 | 
			
		||||
src-tauri/target
 | 
			
		||||
 
 | 
			
		||||
@@ -38,10 +38,13 @@
 | 
			
		||||
    "dev": "cross-env VITE_SERVICE_ENV=dev vite",
 | 
			
		||||
    "dev:test": "cross-env VITE_SERVICE_ENV=test vite",
 | 
			
		||||
    "dev:prod": "cross-env VITE_SERVICE_ENV=prod vite",
 | 
			
		||||
    "dev:tauri": "pnpm tauri dev",
 | 
			
		||||
    "build": "npm run typecheck && cross-env VITE_SERVICE_ENV=prod vite build",
 | 
			
		||||
    "build:dev": "npm run typecheck && cross-env VITE_SERVICE_ENV=dev vite build",
 | 
			
		||||
    "build:test": "npm run typecheck && cross-env VITE_SERVICE_ENV=test vite build",
 | 
			
		||||
    "build:vercel": "cross-env VITE_HASH_ROUTE=Y VITE_VERCEL=Y vite build",
 | 
			
		||||
    "build:tauri": "pnpm tauri build",
 | 
			
		||||
    "tauri-icon": "pnpm tauri icon ./public/logo.png",
 | 
			
		||||
    "preview": "vite preview",
 | 
			
		||||
    "typecheck": "vue-tsc --noEmit --skipLibCheck",
 | 
			
		||||
    "lint": "eslint . --fix",
 | 
			
		||||
@@ -90,6 +93,7 @@
 | 
			
		||||
    "@plugin-web-update-notification/vite": "^1.6.5",
 | 
			
		||||
    "@soybeanjs/cli": "0.7.1",
 | 
			
		||||
    "@soybeanjs/vite-plugin-vue-page-route": "0.0.10",
 | 
			
		||||
    "@tauri-apps/cli": "^1.3.1",
 | 
			
		||||
    "@types/bmapgl": "0.0.7",
 | 
			
		||||
    "@types/crypto-js": "4.1.2",
 | 
			
		||||
    "@types/node": "20.6.3",
 | 
			
		||||
@@ -127,7 +131,7 @@
 | 
			
		||||
  },
 | 
			
		||||
  "simple-git-hooks": {
 | 
			
		||||
    "commit-msg": "pnpm soy git-commit-verify",
 | 
			
		||||
    "pre-commit": "pnpm typecheck && pnpm soy lint-staged"
 | 
			
		||||
    "pre-commit": "pnpm typecheck && pnpm lint"
 | 
			
		||||
  },
 | 
			
		||||
  "soybean": {
 | 
			
		||||
    "useSoybeanToken": true
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										114
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						@@ -111,6 +111,9 @@ devDependencies:
 | 
			
		||||
  '@soybeanjs/vite-plugin-vue-page-route':
 | 
			
		||||
    specifier: 0.0.10
 | 
			
		||||
    version: 0.0.10
 | 
			
		||||
  '@tauri-apps/cli':
 | 
			
		||||
    specifier: ^1.3.1
 | 
			
		||||
    version: 1.4.0
 | 
			
		||||
  '@types/bmapgl':
 | 
			
		||||
    specifier: 0.0.7
 | 
			
		||||
    version: 0.0.7
 | 
			
		||||
@@ -2515,6 +2518,117 @@ packages:
 | 
			
		||||
      defer-to-connect: 2.0.1
 | 
			
		||||
    dev: true
 | 
			
		||||
 | 
			
		||||
  /@tauri-apps/cli-darwin-arm64@1.4.0:
 | 
			
		||||
    resolution: {integrity: sha512-nA/ml0SfUt6/CYLVbHmT500Y+ijqsuv5+s9EBnVXYSLVg9kbPUZJJHluEYK+xKuOj6xzyuT/+rZFMRapmJD3jQ==}
 | 
			
		||||
    engines: {node: '>= 10'}
 | 
			
		||||
    cpu: [arm64]
 | 
			
		||||
    os: [darwin]
 | 
			
		||||
    requiresBuild: true
 | 
			
		||||
    dev: true
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  /@tauri-apps/cli-darwin-x64@1.4.0:
 | 
			
		||||
    resolution: {integrity: sha512-ov/F6Zr+dg9B0PtRu65stFo2G0ow2TUlneqYYrkj+vA3n+moWDHfVty0raDjMLQbQt3rv3uayFMXGPMgble9OA==}
 | 
			
		||||
    engines: {node: '>= 10'}
 | 
			
		||||
    cpu: [x64]
 | 
			
		||||
    os: [darwin]
 | 
			
		||||
    requiresBuild: true
 | 
			
		||||
    dev: true
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  /@tauri-apps/cli-linux-arm-gnueabihf@1.4.0:
 | 
			
		||||
    resolution: {integrity: sha512-zwjbiMncycXDV7doovymyKD7sCg53ouAmfgpUqEBOTY3vgBi9TwijyPhJOqoG5vUVWhouNBC08akGmE4dja15g==}
 | 
			
		||||
    engines: {node: '>= 10'}
 | 
			
		||||
    cpu: [arm]
 | 
			
		||||
    os: [linux]
 | 
			
		||||
    requiresBuild: true
 | 
			
		||||
    dev: true
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  /@tauri-apps/cli-linux-arm64-gnu@1.4.0:
 | 
			
		||||
    resolution: {integrity: sha512-5MCBcziqXC72mMXnkZU68mutXIR6zavDxopArE2gQtK841IlE06bIgtLi0kUUhlFJk2nhPRgiDgdLbrPlyt7fw==}
 | 
			
		||||
    engines: {node: '>= 10'}
 | 
			
		||||
    cpu: [arm64]
 | 
			
		||||
    os: [linux]
 | 
			
		||||
    libc: [glibc]
 | 
			
		||||
    requiresBuild: true
 | 
			
		||||
    dev: true
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  /@tauri-apps/cli-linux-arm64-musl@1.4.0:
 | 
			
		||||
    resolution: {integrity: sha512-7J3pRB6n6uNYgIfCeKt2Oz8J7oSaz2s8GGFRRH2HPxuTHrBNCinzVYm68UhVpJrL3bnGkU0ziVZLsW/iaOGfUg==}
 | 
			
		||||
    engines: {node: '>= 10'}
 | 
			
		||||
    cpu: [arm64]
 | 
			
		||||
    os: [linux]
 | 
			
		||||
    libc: [musl]
 | 
			
		||||
    requiresBuild: true
 | 
			
		||||
    dev: true
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  /@tauri-apps/cli-linux-x64-gnu@1.4.0:
 | 
			
		||||
    resolution: {integrity: sha512-Zh5gfAJxOv5AVWxcwuueaQ2vIAhlg0d6nZui6nMyfIJ8dbf3aZQ5ZzP38sYow5h/fbvgL+3GSQxZRBIa3c2E1w==}
 | 
			
		||||
    engines: {node: '>= 10'}
 | 
			
		||||
    cpu: [x64]
 | 
			
		||||
    os: [linux]
 | 
			
		||||
    libc: [glibc]
 | 
			
		||||
    requiresBuild: true
 | 
			
		||||
    dev: true
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  /@tauri-apps/cli-linux-x64-musl@1.4.0:
 | 
			
		||||
    resolution: {integrity: sha512-OLAYoICU3FaYiTdBsI+lQTKnDHeMmFMXIApN0M+xGiOkoIOQcV9CConMPjgmJQ867+NHRNgUGlvBEAh9CiJodQ==}
 | 
			
		||||
    engines: {node: '>= 10'}
 | 
			
		||||
    cpu: [x64]
 | 
			
		||||
    os: [linux]
 | 
			
		||||
    libc: [musl]
 | 
			
		||||
    requiresBuild: true
 | 
			
		||||
    dev: true
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  /@tauri-apps/cli-win32-arm64-msvc@1.4.0:
 | 
			
		||||
    resolution: {integrity: sha512-gZ05GENFbI6CB5MlOUsLlU0kZ9UtHn9riYtSXKT6MYs8HSPRffPHaHSL0WxsJweWh9nR5Hgh/TUU8uW3sYCzCg==}
 | 
			
		||||
    engines: {node: '>= 10'}
 | 
			
		||||
    cpu: [arm64]
 | 
			
		||||
    os: [win32]
 | 
			
		||||
    requiresBuild: true
 | 
			
		||||
    dev: true
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  /@tauri-apps/cli-win32-ia32-msvc@1.4.0:
 | 
			
		||||
    resolution: {integrity: sha512-JsetT/lTx/Zq98eo8T5CiRyF1nKeX04RO8JlJrI3ZOYsZpp/A5RJvMd/szQ17iOzwiHdge+tx7k2jHysR6oBlQ==}
 | 
			
		||||
    engines: {node: '>= 10'}
 | 
			
		||||
    cpu: [ia32]
 | 
			
		||||
    os: [win32]
 | 
			
		||||
    requiresBuild: true
 | 
			
		||||
    dev: true
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  /@tauri-apps/cli-win32-x64-msvc@1.4.0:
 | 
			
		||||
    resolution: {integrity: sha512-z8Olcnwp5aYhzqUAarFjqF+oELCjuYWnB2HAJHlfsYNfDCAORY5kct3Fklz8PSsubC3U2EugWn8n42DwnThurg==}
 | 
			
		||||
    engines: {node: '>= 10'}
 | 
			
		||||
    cpu: [x64]
 | 
			
		||||
    os: [win32]
 | 
			
		||||
    requiresBuild: true
 | 
			
		||||
    dev: true
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  /@tauri-apps/cli@1.4.0:
 | 
			
		||||
    resolution: {integrity: sha512-VXYr2i2iVFl98etQSQsqLzXgX96bnWiNZd1YADgatqwy/qecbd6Kl5ZAPB5R4ynsgE8A1gU7Fbzh7dCEQYFfmA==}
 | 
			
		||||
    engines: {node: '>= 10'}
 | 
			
		||||
    hasBin: true
 | 
			
		||||
    optionalDependencies:
 | 
			
		||||
      '@tauri-apps/cli-darwin-arm64': 1.4.0
 | 
			
		||||
      '@tauri-apps/cli-darwin-x64': 1.4.0
 | 
			
		||||
      '@tauri-apps/cli-linux-arm-gnueabihf': 1.4.0
 | 
			
		||||
      '@tauri-apps/cli-linux-arm64-gnu': 1.4.0
 | 
			
		||||
      '@tauri-apps/cli-linux-arm64-musl': 1.4.0
 | 
			
		||||
      '@tauri-apps/cli-linux-x64-gnu': 1.4.0
 | 
			
		||||
      '@tauri-apps/cli-linux-x64-musl': 1.4.0
 | 
			
		||||
      '@tauri-apps/cli-win32-arm64-msvc': 1.4.0
 | 
			
		||||
      '@tauri-apps/cli-win32-ia32-msvc': 1.4.0
 | 
			
		||||
      '@tauri-apps/cli-win32-x64-msvc': 1.4.0
 | 
			
		||||
    dev: true
 | 
			
		||||
 | 
			
		||||
  /@tootallnate/once@2.0.0:
 | 
			
		||||
    resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==}
 | 
			
		||||
    engines: {node: '>= 10'}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										3
									
								
								src-tauri/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,3 @@
 | 
			
		||||
# Generated by Cargo
 | 
			
		||||
# will have compiled files and executables
 | 
			
		||||
/target/
 | 
			
		||||
							
								
								
									
										4302
									
								
								src-tauri/Cargo.lock
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										28
									
								
								src-tauri/Cargo.toml
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,28 @@
 | 
			
		||||
[package]
 | 
			
		||||
name = "app"
 | 
			
		||||
version = "0.1.0"
 | 
			
		||||
description = "A Tauri App"
 | 
			
		||||
authors = ["you"]
 | 
			
		||||
license = ""
 | 
			
		||||
repository = ""
 | 
			
		||||
default-run = "app"
 | 
			
		||||
edition = "2021"
 | 
			
		||||
rust-version = "1.57"
 | 
			
		||||
 | 
			
		||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 | 
			
		||||
 | 
			
		||||
[build-dependencies]
 | 
			
		||||
tauri-build = { version = "1.1.1", features = [] }
 | 
			
		||||
 | 
			
		||||
[dependencies]
 | 
			
		||||
serde_json = "1.0"
 | 
			
		||||
serde = { version = "1.0", features = ["derive"] }
 | 
			
		||||
tauri = { version = "1.1.1", features = ["api-all"] }
 | 
			
		||||
 | 
			
		||||
[features]
 | 
			
		||||
# by default Tauri runs in production mode
 | 
			
		||||
# when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL
 | 
			
		||||
default = [ "custom-protocol" ]
 | 
			
		||||
# this feature is used for production builds where `devPath` points to the filesystem
 | 
			
		||||
# DO NOT remove this
 | 
			
		||||
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: 9.0 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/128x128@2x.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 20 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/32x32.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 1.8 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/Square107x107Logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 7.8 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/Square142x142Logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 10 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/Square150x150Logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 11 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/Square284x284Logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 22 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/Square30x30Logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 1.7 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/Square310x310Logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 24 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/Square44x44Logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 2.8 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/Square71x71Logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 4.9 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/Square89x89Logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 6.4 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/StoreLogo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 3.2 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/icon.icns
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/icon.ico
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 32 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								src-tauri/icons/icon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 42 KiB  | 
							
								
								
									
										10
									
								
								src-tauri/src/main.rs
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,10 @@
 | 
			
		||||
#![cfg_attr(
 | 
			
		||||
  all(not(debug_assertions), target_os = "windows"),
 | 
			
		||||
  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:3200",
 | 
			
		||||
    "distDir": "../dist"
 | 
			
		||||
  },
 | 
			
		||||
  "package": {
 | 
			
		||||
    "productName": "soybean-admin",
 | 
			
		||||
    "version": "0.10.4"
 | 
			
		||||
  },
 | 
			
		||||
  "tauri": {
 | 
			
		||||
    "allowlist": {
 | 
			
		||||
      "all": true
 | 
			
		||||
    },
 | 
			
		||||
    "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.tauri-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": 800,
 | 
			
		||||
        "resizable": true,
 | 
			
		||||
        "title": "soybean-admin",
 | 
			
		||||
        "width": 1000
 | 
			
		||||
      }
 | 
			
		||||
    ]
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||