build(projects): add tauri scripts, change tauri icon, fix mockjs [添加tauri相关的命令,变更tauri图标,修复mockjs]
1
.gitignore
vendored
@ -30,6 +30,5 @@ stats.html
|
|||||||
*.sw?
|
*.sw?
|
||||||
|
|
||||||
/src/typings/components.d.ts
|
/src/typings/components.d.ts
|
||||||
pnpm-lock.yaml
|
|
||||||
package-lock.json
|
package-lock.json
|
||||||
yarn.lock
|
yarn.lock
|
||||||
|
1
.vscode/settings.json
vendored
@ -36,6 +36,7 @@
|
|||||||
"material-icon-theme.activeIconPack": "angular",
|
"material-icon-theme.activeIconPack": "angular",
|
||||||
"material-icon-theme.files.associations": {},
|
"material-icon-theme.files.associations": {},
|
||||||
"material-icon-theme.folders.associations": {
|
"material-icon-theme.folders.associations": {
|
||||||
|
"src-tauri": "src",
|
||||||
"enum": "typescript",
|
"enum": "typescript",
|
||||||
"enums": "typescript",
|
"enums": "typescript",
|
||||||
"store": "context",
|
"store": "context",
|
||||||
|
@ -38,10 +38,13 @@
|
|||||||
"dev": "cross-env VITE_SERVICE_ENV=dev vite",
|
"dev": "cross-env VITE_SERVICE_ENV=dev vite",
|
||||||
"dev:test": "cross-env VITE_SERVICE_ENV=test vite",
|
"dev:test": "cross-env VITE_SERVICE_ENV=test vite",
|
||||||
"dev:prod": "cross-env VITE_SERVICE_ENV=prod 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": "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: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: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:vercel": "cross-env VITE_HASH_ROUTE=Y VITE_VERCEL=Y vite build",
|
||||||
|
"build:tauri": "pnpm tauri build",
|
||||||
|
"tauri-icon": "pnpm tauri icon ./src-tauri/app-icon.png",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"typecheck": "vue-tsc --noEmit --skipLibCheck",
|
"typecheck": "vue-tsc --noEmit --skipLibCheck",
|
||||||
"lint": "eslint . --fix",
|
"lint": "eslint . --fix",
|
||||||
|
@ -4,9 +4,18 @@
|
|||||||
# mockjs: ^1.1.0
|
# mockjs: ^1.1.0
|
||||||
#
|
#
|
||||||
diff --git a/node_modules/mockjs/dist/mock.js b/node_modules/mockjs/dist/mock.js
|
diff --git a/node_modules/mockjs/dist/mock.js b/node_modules/mockjs/dist/mock.js
|
||||||
index 35d5b9a..dcc2fb9 100644
|
index 35d5b9a..3e6a52e 100644
|
||||||
--- a/node_modules/mockjs/dist/mock.js
|
--- a/node_modules/mockjs/dist/mock.js
|
||||||
+++ b/node_modules/mockjs/dist/mock.js
|
+++ b/node_modules/mockjs/dist/mock.js
|
||||||
|
@@ -8264,7 +8264,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||||
|
Util.extend(MockXMLHttpRequest.prototype, {
|
||||||
|
// https://xhr.spec.whatwg.org/#the-open()-method
|
||||||
|
// Sets the request method, request URL, and synchronous flag.
|
||||||
|
- open: function(method, url, async, username, password) {
|
||||||
|
+ open: function(method, url, async = true, username, password) {
|
||||||
|
var that = this
|
||||||
|
|
||||||
|
Util.extend(this.custom, {
|
||||||
@@ -8310,6 +8310,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
@@ -8310,6 +8310,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||||
var xhr = createNativeXMLHttpRequest()
|
var xhr = createNativeXMLHttpRequest()
|
||||||
this.custom.xhr = xhr
|
this.custom.xhr = xhr
|
||||||
|
10659
pnpm-lock.yaml
Normal file
BIN
src-tauri/app-icon.png
Normal file
After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 974 B After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 7.5 KiB |
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 903 B After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 34 KiB |