@ -1,3 +0,0 @@ |
|||
.vscode |
|||
.idea |
|||
.vite |
@ -0,0 +1,30 @@ |
|||
NODE_ENV=production |
|||
|
|||
VITE_DEV=true |
|||
|
|||
# 请求路径 |
|||
VITE_BASE_URL='https://lock.zdhlcn.com:9807' |
|||
|
|||
# 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持S3服务 |
|||
VITE_UPLOAD_TYPE=server |
|||
|
|||
# 接口地址 |
|||
VITE_API_URL=/admin-api |
|||
|
|||
# 是否删除debugger |
|||
VITE_DROP_DEBUGGER=false |
|||
|
|||
# 是否删除console.log |
|||
VITE_DROP_CONSOLE=false |
|||
|
|||
# 是否sourcemap |
|||
VITE_SOURCEMAP=true |
|||
|
|||
# 打包路径 |
|||
VITE_BASE_PATH=/ |
|||
|
|||
# 输出路径 |
|||
VITE_OUT_DIR=dist |
|||
|
|||
# TAURI启动标记 |
|||
VITE_IS_TAURI=true |
@ -1,18 +0,0 @@ |
|||
{ |
|||
"recommendations": [ |
|||
"christian-kohler.path-intellisense", |
|||
"vscode-icons-team.vscode-icons", |
|||
"davidanson.vscode-markdownlint", |
|||
"dbaeumer.vscode-eslint", |
|||
"esbenp.prettier-vscode", |
|||
"mrmlnc.vscode-less", |
|||
"lokalise.i18n-ally", |
|||
"redhat.vscode-yaml", |
|||
"csstools.postcss", |
|||
"mikestead.dotenv", |
|||
"eamodio.gitlens", |
|||
"antfu.iconify", |
|||
"antfu.unocss", |
|||
"Vue.volar" |
|||
] |
|||
} |
@ -1,16 +0,0 @@ |
|||
{ |
|||
// Use IntelliSense to learn about possible attributes. |
|||
// Hover to view descriptions of existing attributes. |
|||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 |
|||
"version": "0.2.0", |
|||
"configurations": [ |
|||
{ |
|||
"type": "msedge", |
|||
"request": "launch", |
|||
"name": "Launch Edge against localhost", |
|||
"url": "http://localhost", |
|||
"webRoot": "${workspaceFolder}/src", |
|||
"sourceMaps": true |
|||
} |
|||
] |
|||
} |
@ -1,144 +0,0 @@ |
|||
{ |
|||
"typescript.tsdk": "node_modules/typescript/lib", |
|||
"npm.packageManager": "pnpm", |
|||
"editor.tabSize": 2, |
|||
"prettier.printWidth": 100, // 超过最大值换行 |
|||
"editor.defaultFormatter": "esbenp.prettier-vscode", |
|||
"files.eol": "\n", |
|||
"search.exclude": { |
|||
"**/node_modules": true, |
|||
"**/*.log": true, |
|||
"**/*.log*": true, |
|||
"**/bower_components": true, |
|||
"**/dist": true, |
|||
"**/elehukouben": true, |
|||
"**/.git": true, |
|||
"**/.gitignore": true, |
|||
"**/.svn": true, |
|||
"**/.DS_Store": true, |
|||
"**/.idea": true, |
|||
"**/.vscode": false, |
|||
"**/yarn.lock": true, |
|||
"**/tmp": true, |
|||
"out": true, |
|||
"dist": true, |
|||
"node_modules": true, |
|||
"CHANGELOG.md": true, |
|||
"examples": true, |
|||
"res": true, |
|||
"screenshots": true, |
|||
"yarn-error.log": true, |
|||
"**/.yarn": true |
|||
}, |
|||
"files.exclude": { |
|||
"**/.cache": true, |
|||
"**/.editorconfig": true, |
|||
"**/.eslintcache": true, |
|||
"**/bower_components": true, |
|||
"**/.idea": true, |
|||
"**/tmp": true, |
|||
"**/.git": true, |
|||
"**/.svn": true, |
|||
"**/.hg": true, |
|||
"**/CVS": true, |
|||
"**/.DS_Store": true |
|||
}, |
|||
"files.watcherExclude": { |
|||
"**/.git/objects/**": true, |
|||
"**/.git/subtree-cache/**": true, |
|||
"**/.vscode/**": true, |
|||
"**/node_modules/**": true, |
|||
"**/tmp/**": true, |
|||
"**/bower_components/**": true, |
|||
"**/dist/**": true, |
|||
"**/yarn.lock": true |
|||
}, |
|||
"stylelint.enable": true, |
|||
"stylelint.validate": ["css", "less", "postcss", "scss", "vue", "sass"], |
|||
"path-intellisense.mappings": { |
|||
"@/": "${workspaceRoot}/src" |
|||
}, |
|||
"[javascriptreact]": { |
|||
"editor.defaultFormatter": "esbenp.prettier-vscode" |
|||
}, |
|||
"[typescript]": { |
|||
"editor.defaultFormatter": "esbenp.prettier-vscode" |
|||
}, |
|||
"[typescriptreact]": { |
|||
"editor.defaultFormatter": "esbenp.prettier-vscode" |
|||
}, |
|||
"[html]": { |
|||
"editor.defaultFormatter": "esbenp.prettier-vscode" |
|||
}, |
|||
"[css]": { |
|||
"editor.defaultFormatter": "esbenp.prettier-vscode" |
|||
}, |
|||
"[less]": { |
|||
"editor.defaultFormatter": "esbenp.prettier-vscode" |
|||
}, |
|||
"[scss]": { |
|||
"editor.defaultFormatter": "esbenp.prettier-vscode" |
|||
}, |
|||
"[markdown]": { |
|||
"editor.defaultFormatter": "esbenp.prettier-vscode" |
|||
}, |
|||
"editor.codeActionsOnSave": { |
|||
"source.fixAll.eslint": "explicit", |
|||
"source.fixAll.stylelint": "explicit" |
|||
}, |
|||
"editor.formatOnSave": true, |
|||
"[vue]": { |
|||
"editor.defaultFormatter": "esbenp.prettier-vscode" |
|||
}, |
|||
"i18n-ally.localesPaths": ["src/locales"], |
|||
"i18n-ally.keystyle": "nested", |
|||
"i18n-ally.sortKeys": true, |
|||
"i18n-ally.namespace": false, |
|||
"i18n-ally.enabledParsers": ["ts"], |
|||
"i18n-ally.sourceLanguage": "en", |
|||
"i18n-ally.displayLanguage": "zh-CN", |
|||
"i18n-ally.enabledFrameworks": ["vue", "react"], |
|||
"cSpell.words": [ |
|||
"brotli", |
|||
"browserslist", |
|||
"codemirror", |
|||
"commitlint", |
|||
"cropperjs", |
|||
"echart", |
|||
"echarts", |
|||
"esnext", |
|||
"esno", |
|||
"iconify", |
|||
"INTLIFY", |
|||
"lintstagedrc", |
|||
"logicflow", |
|||
"nprogress", |
|||
"pinia", |
|||
"pnpm", |
|||
"qrcode", |
|||
"sider", |
|||
"sortablejs", |
|||
"stylelint", |
|||
"svgs", |
|||
"unocss", |
|||
"unplugin", |
|||
"unref", |
|||
"videojs", |
|||
"VITE", |
|||
"vitejs", |
|||
"vueuse", |
|||
"wangeditor", |
|||
"zxcvbn" |
|||
], |
|||
// 控制相关文件嵌套展示 |
|||
"explorer.fileNesting.enabled": true, |
|||
"explorer.fileNesting.expand": false, |
|||
"explorer.fileNesting.patterns": { |
|||
"*.ts": "$(capture).test.ts, $(capture).test.tsx", |
|||
"*.tsx": "$(capture).test.ts, $(capture).test.tsx", |
|||
"*.env": "$(capture).env.*", |
|||
"package.json": "pnpm-lock.yaml,yarn.lock,LICENSE,README*,CHANGELOG*,CNAME,.gitattributes,.eslintrc-auto-import.json,.gitignore,prettier.config.js,stylelint.config.js,commitlint.config.js,.stylelintignore,.prettierignore,.gitpod.yml,.eslintrc.js,.eslintignore" |
|||
}, |
|||
"terminal.integrated.scrollback": 10000, |
|||
"nuxt.isNuxtApp": false |
|||
} |
@ -0,0 +1,4 @@ |
|||
# Generated by Cargo |
|||
# will have compiled files and executables |
|||
/target/ |
|||
/gen/schemas |
@ -0,0 +1,25 @@ |
|||
[package] |
|||
name = "挂牌上锁平台" |
|||
version = "0.1.0" |
|||
description = "挂牌上锁平台" |
|||
authors = ["you"] |
|||
license = "" |
|||
repository = "" |
|||
edition = "2021" |
|||
rust-version = "1.77.2" |
|||
|
|||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html |
|||
|
|||
[lib] |
|||
name = "app_lib" |
|||
crate-type = ["staticlib", "cdylib", "rlib"] |
|||
|
|||
[build-dependencies] |
|||
tauri-build = { version = "2.4.0", features = [] } |
|||
|
|||
[dependencies] |
|||
serde_json = "1.0" |
|||
serde = { version = "1.0", features = ["derive"] } |
|||
log = "0.4" |
|||
tauri = { version = "2.8.2", features = [] } |
|||
tauri-plugin-log = "2" |
@ -0,0 +1,3 @@ |
|||
fn main() { |
|||
tauri_build::build() |
|||
} |
@ -0,0 +1,11 @@ |
|||
{ |
|||
"$schema": "../gen/schemas/desktop-schema.json", |
|||
"identifier": "default", |
|||
"description": "enables the default permissions", |
|||
"windows": [ |
|||
"main" |
|||
], |
|||
"permissions": [ |
|||
"core:default" |
|||
] |
|||
} |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 1002 B |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 7.6 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 659 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 933 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 81 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 5.0 KiB |
@ -0,0 +1,16 @@ |
|||
#[cfg_attr(mobile, tauri::mobile_entry_point)] |
|||
pub fn run() { |
|||
tauri::Builder::default() |
|||
.setup(|app| { |
|||
if cfg!(debug_assertions) { |
|||
app.handle().plugin( |
|||
tauri_plugin_log::Builder::default() |
|||
.level(log::LevelFilter::Info) |
|||
.build(), |
|||
)?; |
|||
} |
|||
Ok(()) |
|||
}) |
|||
.run(tauri::generate_context!()) |
|||
.expect("error while running tauri application"); |
|||
} |
@ -0,0 +1,6 @@ |
|||
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
|
|||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] |
|||
|
|||
fn main() { |
|||
app_lib::run(); |
|||
} |
@ -0,0 +1,37 @@ |
|||
{ |
|||
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json", |
|||
"productName": "ElectronicLock", |
|||
"version": "0.1.0", |
|||
"identifier": "lock.zdhlcn.com", |
|||
"build": { |
|||
"frontendDist": "../dist-prod", |
|||
"devUrl": "http://localhost", |
|||
"beforeDevCommand": "pnpm dev:tauri", |
|||
"beforeBuildCommand": "pnpm build:tauri" |
|||
}, |
|||
"app": { |
|||
"windows": [ |
|||
{ |
|||
"title": "挂牌上锁平台", |
|||
"width": 800, |
|||
"height": 600, |
|||
"resizable": true, |
|||
"fullscreen": false |
|||
} |
|||
], |
|||
"security": { |
|||
"csp": null |
|||
} |
|||
}, |
|||
"bundle": { |
|||
"active": true, |
|||
"targets": "all", |
|||
"icon": [ |
|||
"icons/32x32.png", |
|||
"icons/128x128.png", |
|||
"icons/128x128@2x.png", |
|||
"icons/icon.icns", |
|||
"icons/icon.ico" |
|||
] |
|||
} |
|||
} |
After Width: | Height: | Size: 10 KiB |