From 6efa99fb800c3062b689177d3259123cea362c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E6=A3=AE?= Date: Mon, 27 Oct 2025 15:44:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E7=AE=A1=E7=90=86+mockapi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 1 + .env.production | 3 +- .env.test | 3 +- .vscode/launch.json | 17 ++ app/apis/index.ts | 7 + {src => app}/app.config.ts | 0 app/app.tsx | 28 +++ {src => app}/index.html | 0 app/model/app.model.ts | 11 + {src => app}/pages/index/index.config.ts | 0 {src => app}/pages/index/index.tsx | 3 +- src/app.css => app/styles/tailwind.basic.css | 0 app/utils/network/index.ts | 30 +++ config/dev.ts | 3 + config/index.ts | 4 +- mock/index.ts | 25 ++ package-lock.json | 227 ++++++++++++------- package.json | 6 +- project.config.json | 9 +- src/app.ts | 17 -- src/pages/index/index.css | 0 tsconfig.json | 4 +- 22 files changed, 284 insertions(+), 114 deletions(-) create mode 100644 .vscode/launch.json create mode 100644 app/apis/index.ts rename {src => app}/app.config.ts (100%) create mode 100644 app/app.tsx rename {src => app}/index.html (100%) create mode 100644 app/model/app.model.ts rename {src => app}/pages/index/index.config.ts (100%) rename {src => app}/pages/index/index.tsx (68%) rename src/app.css => app/styles/tailwind.basic.css (100%) create mode 100644 app/utils/network/index.ts create mode 100644 mock/index.ts delete mode 100644 src/app.ts delete mode 100644 src/pages/index/index.css diff --git a/.env.development b/.env.development index 8334c6d..402c2a9 100644 --- a/.env.development +++ b/.env.development @@ -1,2 +1,3 @@ # 配置文档参考 https://taro-docs.jd.com/docs/next/env-mode-config TARO_APP_ID="wxcd229ecd6e0bf031" +TARO_APP_API_BASE_URL="http://127.0.0.1:9527" \ No newline at end of file diff --git a/.env.production b/.env.production index 795865b..b4684f4 100644 --- a/.env.production +++ b/.env.production @@ -1 +1,2 @@ -TARO_APP_ID="wxcd229ecd6e0bf031" \ No newline at end of file +TARO_APP_ID="wxcd229ecd6e0bf031" +TARO_APP_API_BASE_URL="https://api.jikemp.com" \ No newline at end of file diff --git a/.env.test b/.env.test index 795865b..b4684f4 100644 --- a/.env.test +++ b/.env.test @@ -1 +1,2 @@ -TARO_APP_ID="wxcd229ecd6e0bf031" \ No newline at end of file +TARO_APP_ID="wxcd229ecd6e0bf031" +TARO_APP_API_BASE_URL="https://api.jikemp.com" \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..4c96939 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,17 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Taro 微信小程序调试", + "type": "node", + "runtimeExecutable": "npm", + "runtimeArgs": [ + "run", + "dev:weapp" + ], + "cwd": "${workspaceFolder}", + "console": "internalConsole", + "internalConsoleOptions": "openOnFirstSessionStart" + } + ] +} \ No newline at end of file diff --git a/app/apis/index.ts b/app/apis/index.ts new file mode 100644 index 0000000..0d43035 --- /dev/null +++ b/app/apis/index.ts @@ -0,0 +1,7 @@ +import { doGet } from "@/utils/network" + + + +export const getGlobalConfig = async () => { + return await doGet('/api/globalConfig') +} \ No newline at end of file diff --git a/src/app.config.ts b/app/app.config.ts similarity index 100% rename from src/app.config.ts rename to app/app.config.ts diff --git a/app/app.tsx b/app/app.tsx new file mode 100644 index 0000000..eec80e6 --- /dev/null +++ b/app/app.tsx @@ -0,0 +1,28 @@ +import { PropsWithChildren } from 'react' +import { useLaunch } from '@tarojs/taro' +import { RecoilRoot } from 'recoil' + +import './styles/tailwind.basic.css' +import { getGlobalConfig } from './apis' + + +function App({ children }: PropsWithChildren) { + useLaunch(() => { + // 初始化全局配置 + loadGlobalConfig() + console.log('App launched.') + }) + + const loadGlobalConfig = async () => { + const res = await getGlobalConfig() + console.log(res) + } + + return ( + + {children} + + ) +} + +export default App diff --git a/src/index.html b/app/index.html similarity index 100% rename from src/index.html rename to app/index.html diff --git a/app/model/app.model.ts b/app/model/app.model.ts new file mode 100644 index 0000000..c9b11b8 --- /dev/null +++ b/app/model/app.model.ts @@ -0,0 +1,11 @@ + + +import { atom } from 'recoil' + +// App全局状态 +export const useAppModel = atom({ + key: 'appModel', + default: { + isLoading: false, + } +}) diff --git a/src/pages/index/index.config.ts b/app/pages/index/index.config.ts similarity index 100% rename from src/pages/index/index.config.ts rename to app/pages/index/index.config.ts diff --git a/src/pages/index/index.tsx b/app/pages/index/index.tsx similarity index 68% rename from src/pages/index/index.tsx rename to app/pages/index/index.tsx index 8297355..3a02239 100644 --- a/src/pages/index/index.tsx +++ b/app/pages/index/index.tsx @@ -1,6 +1,5 @@ import { View, Text } from '@tarojs/components' import { useLoad } from '@tarojs/taro' -import './index.css' export default function Index () { useLoad(() => { @@ -9,7 +8,7 @@ export default function Index () { return ( - + Hello world! diff --git a/src/app.css b/app/styles/tailwind.basic.css similarity index 100% rename from src/app.css rename to app/styles/tailwind.basic.css diff --git a/app/utils/network/index.ts b/app/utils/network/index.ts new file mode 100644 index 0000000..d3f159b --- /dev/null +++ b/app/utils/network/index.ts @@ -0,0 +1,30 @@ +import Taro from "@tarojs/taro" + +const BASE_URL = process.env.TARO_APP_API_BASE_URL || '未设置域名' + +console.log('BASE_URL', BASE_URL) + +const getHeaders = () => { + return { + 'Content-Type': 'application/json', + } +} + + +// 发起GET请求 +export const doGet = async (url: string, data?: any) => { + try { + const res = await Taro.request({ + url: BASE_URL + url, + method: 'GET', + data: data || {}, + header: getHeaders(), + }) + if (res.statusCode !== 200) { + throw new Error(res.errMsg) + } + return res.data + } catch (error) { + throw error + } +} diff --git a/config/dev.ts b/config/dev.ts index aa5a594..bec9318 100644 --- a/config/dev.ts +++ b/config/dev.ts @@ -5,6 +5,9 @@ export default { quiet: false, stats: true }, + plugins: [ + '@tarojs/plugin-mock' + ], mini: {}, h5: {} } satisfies UserConfigExport<'webpack5'> diff --git a/config/index.ts b/config/index.ts index 4040e82..af9f23b 100644 --- a/config/index.ts +++ b/config/index.ts @@ -17,7 +17,7 @@ export default defineConfig<'webpack5'>(async (merge, { command, mode }) => { 375: 2, 828: 1.81 / 2 }, - sourceRoot: 'src', + sourceRoot: 'app', outputRoot: `dist/${process.env.TARO_ENV}`, plugins: [ "@tarojs/plugin-generator" @@ -61,7 +61,7 @@ export default defineConfig<'webpack5'>(async (merge, { command, mode }) => { rem2rpx: true, cssEntries: [ // 你 @import "weapp-tailwindcss"; 那个文件绝对路径 - path.resolve(__dirname, '../src/app.css'), + path.resolve(__dirname, '../app/styles/tailwind.basic.css'), ], }], }, diff --git a/mock/index.ts b/mock/index.ts new file mode 100644 index 0000000..14cd20f --- /dev/null +++ b/mock/index.ts @@ -0,0 +1,25 @@ +import Mock from 'mockjs' + + +export default { + "GET /api/hello": (req:any, res:any) => { + const result = Mock.mock({ + "code": 0, + "msg": "success", + "data": { + "name|1": ["张三", "李四", "王五"] + } + }) + return res.send(result); + }, + "GET /api/globalConfig": (req:any, res:any) => { + const result = Mock.mock({ + "code": 0, + "msg": "success", + "data": { + "appId": "123456", + } + }) + return res.send(result); + } +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 02ab6df..ac74f57 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,13 +13,16 @@ "@tarojs/components": "4.1.7", "@tarojs/helper": "4.1.7", "@tarojs/plugin-framework-react": "4.1.7", + "@tarojs/plugin-mock": "^0.0.10", "@tarojs/plugin-platform-weapp": "4.1.7", "@tarojs/react": "4.1.7", "@tarojs/runtime": "4.1.7", "@tarojs/shared": "4.1.7", "@tarojs/taro": "4.1.7", + "mockjs": "^1.1.0", "react": "^18.0.0", - "react-dom": "^18.0.0" + "react-dom": "^18.0.0", + "recoil": "^0.7.7" }, "devDependencies": { "@babel/core": "^7.24.4", @@ -34,6 +37,7 @@ "@tarojs/taro-loader": "4.1.7", "@tarojs/webpack5-runner": "4.1.7", "@types/minimatch": "^5", + "@types/mockjs": "^1.0.10", "@types/node": "^18", "@types/react": "^18.0.0", "@types/webpack-env": "^1.13.6", @@ -6322,6 +6326,70 @@ "node": ">=4" } }, + "node_modules/@tarojs/plugin-mock": { + "version": "0.0.10", + "resolved": "https://registry.npmmirror.com/@tarojs/plugin-mock/-/plugin-mock-0.0.10.tgz", + "integrity": "sha512-2+suAl8KXXfN8XDFVoJ8jRPGSi+fKisUHmbqimss6uG7pTWSC5+ZxqjOU0j188l8xr5FmrV8oLvcoG4a2kYTsw==", + "license": "MIT", + "dependencies": { + "body-parser": "^1.19.0", + "cors": "^2.8.5", + "express": "^4.17.1", + "get-port": "^5.1.1", + "glob": "^7.1.6", + "http-proxy-middleware": "^1.0.3", + "path-to-regexp": "^6.1.0" + } + }, + "node_modules/@tarojs/plugin-mock/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@tarojs/plugin-mock/node_modules/http-proxy-middleware": { + "version": "1.3.1", + "resolved": "https://registry.npmmirror.com/http-proxy-middleware/-/http-proxy-middleware-1.3.1.tgz", + "integrity": "sha512-13eVVDYS4z79w7f1+NPllJtOQFx/FdUW4btIvVRMaRlUY9VGstAbo5MOhLEuUgZFRHn3x50ufn25zkj/boZnEg==", + "license": "MIT", + "dependencies": { + "@types/http-proxy": "^1.17.5", + "http-proxy": "^1.18.1", + "is-glob": "^4.0.1", + "is-plain-obj": "^3.0.0", + "micromatch": "^4.0.2" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@tarojs/plugin-mock/node_modules/is-plain-obj": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/is-plain-obj/-/is-plain-obj-3.0.0.tgz", + "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@tarojs/plugin-platform-weapp": { "version": "4.1.7", "resolved": "https://registry.npmmirror.com/@tarojs/plugin-platform-weapp/-/plugin-platform-weapp-4.1.7.tgz", @@ -6416,7 +6484,6 @@ "resolved": "https://registry.npmmirror.com/@tarojs/taro/-/taro-4.1.7.tgz", "integrity": "sha512-b8KGAgAnpXSh626gTTBpJkpFMcYE1w0vNDfPOyJDhJ/kHuQeuZcTPzxuzxIIqte5WLLT4tFselSavXe49uOZbA==", "license": "MIT", - "peer": true, "dependencies": { "@tarojs/api": "4.1.7", "@tarojs/runtime": "4.1.7", @@ -6798,7 +6865,6 @@ "version": "1.17.17", "resolved": "https://registry.npmmirror.com/@types/http-proxy/-/http-proxy-1.17.17.tgz", "integrity": "sha512-ED6LB+Z1AVylNTu7hdzuBqOgMnvG/ld6wGCG8wFnAzKX5uyW2K3WD52v0gnLCTK/VLpXtKckgWuyScYK6cSPaw==", - "devOptional": true, "license": "MIT", "dependencies": { "@types/node": "*" @@ -6873,6 +6939,13 @@ "integrity": "sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==", "license": "MIT" }, + "node_modules/@types/mockjs": { + "version": "1.0.10", + "resolved": "https://registry.npmmirror.com/@types/mockjs/-/mockjs-1.0.10.tgz", + "integrity": "sha512-SXgrhajHG7boLv6oU93CcmdDm0HYRiceuz6b+7z+/2lCJPTWDv0V5YiwFHT2ejE4bQqgSXQiVPQYPWv7LGsK1g==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/ms": { "version": "2.1.0", "resolved": "https://registry.npmmirror.com/@types/ms/-/ms-2.1.0.tgz", @@ -7775,7 +7848,6 @@ "version": "1.3.8", "resolved": "https://registry.npmmirror.com/accepts/-/accepts-1.3.8.tgz", "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "devOptional": true, "license": "MIT", "dependencies": { "mime-types": "~2.1.34", @@ -7789,7 +7861,6 @@ "version": "0.6.3", "resolved": "https://registry.npmmirror.com/negotiator/-/negotiator-0.6.3.tgz", "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -8088,7 +8159,6 @@ "version": "1.1.1", "resolved": "https://registry.npmmirror.com/array-flatten/-/array-flatten-1.1.1.tgz", "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", - "devOptional": true, "license": "MIT" }, "node_modules/array-ify": { @@ -8705,7 +8775,6 @@ "version": "1.20.3", "resolved": "https://registry.npmmirror.com/body-parser/-/body-parser-1.20.3.tgz", "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", - "devOptional": true, "license": "MIT", "dependencies": { "bytes": "3.1.2", @@ -8730,7 +8799,6 @@ "version": "2.6.9", "resolved": "https://registry.npmmirror.com/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "devOptional": true, "license": "MIT", "dependencies": { "ms": "2.0.0" @@ -8740,7 +8808,6 @@ "version": "0.4.24", "resolved": "https://registry.npmmirror.com/iconv-lite/-/iconv-lite-0.4.24.tgz", "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "devOptional": true, "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3" @@ -8753,7 +8820,6 @@ "version": "2.0.0", "resolved": "https://registry.npmmirror.com/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "devOptional": true, "license": "MIT" }, "node_modules/bonjour-service": { @@ -8899,7 +8965,6 @@ "version": "3.1.2", "resolved": "https://registry.npmmirror.com/bytes/-/bytes-3.1.2.tgz", "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -9084,7 +9149,6 @@ "version": "1.0.2", "resolved": "https://registry.npmmirror.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "devOptional": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -9098,7 +9162,6 @@ "version": "1.0.4", "resolved": "https://registry.npmmirror.com/call-bound/-/call-bound-1.0.4.tgz", "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "devOptional": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.2", @@ -9662,7 +9725,6 @@ "version": "2.20.3", "resolved": "https://registry.npmmirror.com/commander/-/commander-2.20.3.tgz", "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "devOptional": true, "license": "MIT" }, "node_modules/commondir": { @@ -9784,7 +9846,6 @@ "version": "0.5.4", "resolved": "https://registry.npmmirror.com/content-disposition/-/content-disposition-0.5.4.tgz", "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "devOptional": true, "license": "MIT", "dependencies": { "safe-buffer": "5.2.1" @@ -9797,7 +9858,6 @@ "version": "1.0.5", "resolved": "https://registry.npmmirror.com/content-type/-/content-type-1.0.5.tgz", "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -9858,7 +9918,6 @@ "version": "0.7.1", "resolved": "https://registry.npmmirror.com/cookie/-/cookie-0.7.1.tgz", "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -9868,7 +9927,6 @@ "version": "1.0.6", "resolved": "https://registry.npmmirror.com/cookie-signature/-/cookie-signature-1.0.6.tgz", "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", - "devOptional": true, "license": "MIT" }, "node_modules/copy-anything": { @@ -9967,6 +10025,19 @@ "devOptional": true, "license": "MIT" }, + "node_modules/cors": { + "version": "2.8.5", + "resolved": "https://registry.npmmirror.com/cors/-/cors-2.8.5.tgz", + "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", + "license": "MIT", + "dependencies": { + "object-assign": "^4", + "vary": "^1" + }, + "engines": { + "node": ">= 0.10" + } + }, "node_modules/cosmiconfig": { "version": "9.0.0", "resolved": "https://registry.npmmirror.com/cosmiconfig/-/cosmiconfig-9.0.0.tgz", @@ -10933,7 +11004,6 @@ "version": "2.0.0", "resolved": "https://registry.npmmirror.com/depd/-/depd-2.0.0.tgz", "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -10950,7 +11020,6 @@ "version": "1.2.0", "resolved": "https://registry.npmmirror.com/destroy/-/destroy-1.2.0.tgz", "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.8", @@ -11224,7 +11293,6 @@ "version": "1.0.1", "resolved": "https://registry.npmmirror.com/dunder-proto/-/dunder-proto-1.0.1.tgz", "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "devOptional": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.1", @@ -11253,7 +11321,6 @@ "version": "1.1.1", "resolved": "https://registry.npmmirror.com/ee-first/-/ee-first-1.1.1.tgz", "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", - "devOptional": true, "license": "MIT" }, "node_modules/electron-to-chromium": { @@ -11283,7 +11350,6 @@ "version": "2.0.0", "resolved": "https://registry.npmmirror.com/encodeurl/-/encodeurl-2.0.0.tgz", "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -11466,7 +11532,6 @@ "version": "1.0.1", "resolved": "https://registry.npmmirror.com/es-define-property/-/es-define-property-1.0.1.tgz", "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -11476,7 +11541,6 @@ "version": "1.3.0", "resolved": "https://registry.npmmirror.com/es-errors/-/es-errors-1.3.0.tgz", "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -11521,7 +11585,6 @@ "version": "1.1.1", "resolved": "https://registry.npmmirror.com/es-object-atoms/-/es-object-atoms-1.1.1.tgz", "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "devOptional": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0" @@ -12101,7 +12164,6 @@ "version": "1.0.3", "resolved": "https://registry.npmmirror.com/escape-html/-/escape-html-1.0.3.tgz", "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", - "devOptional": true, "license": "MIT" }, "node_modules/escape-string-regexp": { @@ -12654,7 +12716,6 @@ "version": "1.8.1", "resolved": "https://registry.npmmirror.com/etag/-/etag-1.8.1.tgz", "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -12745,7 +12806,6 @@ "version": "4.21.2", "resolved": "https://registry.npmmirror.com/express/-/express-4.21.2.tgz", "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", - "devOptional": true, "license": "MIT", "dependencies": { "accepts": "~1.3.8", @@ -12792,7 +12852,6 @@ "version": "2.6.9", "resolved": "https://registry.npmmirror.com/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "devOptional": true, "license": "MIT", "dependencies": { "ms": "2.0.0" @@ -12802,14 +12861,12 @@ "version": "2.0.0", "resolved": "https://registry.npmmirror.com/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "devOptional": true, "license": "MIT" }, "node_modules/express/node_modules/path-to-regexp": { "version": "0.1.12", "resolved": "https://registry.npmmirror.com/path-to-regexp/-/path-to-regexp-0.1.12.tgz", "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", - "devOptional": true, "license": "MIT" }, "node_modules/exsolve": { @@ -13034,7 +13091,6 @@ "version": "1.3.1", "resolved": "https://registry.npmmirror.com/finalhandler/-/finalhandler-1.3.1.tgz", "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", - "devOptional": true, "license": "MIT", "dependencies": { "debug": "2.6.9", @@ -13053,7 +13109,6 @@ "version": "2.6.9", "resolved": "https://registry.npmmirror.com/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "devOptional": true, "license": "MIT", "dependencies": { "ms": "2.0.0" @@ -13063,7 +13118,6 @@ "version": "2.0.0", "resolved": "https://registry.npmmirror.com/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "devOptional": true, "license": "MIT" }, "node_modules/find-cache-dir": { @@ -13143,7 +13197,6 @@ "version": "1.15.11", "resolved": "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.11.tgz", "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==", - "devOptional": true, "funding": [ { "type": "individual", @@ -13214,7 +13267,6 @@ "version": "0.2.0", "resolved": "https://registry.npmmirror.com/forwarded/-/forwarded-0.2.0.tgz", "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -13238,7 +13290,6 @@ "version": "0.5.2", "resolved": "https://registry.npmmirror.com/fresh/-/fresh-0.5.2.tgz", "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -13422,7 +13473,6 @@ "version": "1.3.0", "resolved": "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.3.0.tgz", "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "devOptional": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.2", @@ -13443,11 +13493,22 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/get-port": { + "version": "5.1.1", + "resolved": "https://registry.npmmirror.com/get-port/-/get-port-5.1.1.tgz", + "integrity": "sha512-g/Q1aTSDOxFpchXC4i8ZWvxA1lnPqx/JHqcpIw0/LX9T8x/GBbi6YnlN5nhaKIFkT8oFsscUKgDJYxfwfS6QsQ==", + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/get-proto": { "version": "1.0.1", "resolved": "https://registry.npmmirror.com/get-proto/-/get-proto-1.0.1.tgz", "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "devOptional": true, "license": "MIT", "dependencies": { "dunder-proto": "^1.0.1", @@ -13828,7 +13889,6 @@ "version": "1.2.0", "resolved": "https://registry.npmmirror.com/gopd/-/gopd-1.2.0.tgz", "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -13898,6 +13958,12 @@ "node": ">=0.8.0" } }, + "node_modules/hamt_plus": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/hamt_plus/-/hamt_plus-1.0.2.tgz", + "integrity": "sha512-t2JXKaehnMb9paaYA7J0BX8QQAY8lwfQ9Gjf4pg/mk4krt+cmwmU652HOoWonf+7+EQV97ARPMhhVgU1ra2GhA==", + "license": "MIT" + }, "node_modules/handle-thing": { "version": "2.0.1", "resolved": "https://registry.npmmirror.com/handle-thing/-/handle-thing-2.0.1.tgz", @@ -13970,7 +14036,6 @@ "version": "1.1.0", "resolved": "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.1.0.tgz", "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -14303,7 +14368,6 @@ "version": "2.0.0", "resolved": "https://registry.npmmirror.com/http-errors/-/http-errors-2.0.0.tgz", "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "devOptional": true, "license": "MIT", "dependencies": { "depd": "2.0.0", @@ -14327,7 +14391,6 @@ "version": "1.18.1", "resolved": "https://registry.npmmirror.com/http-proxy/-/http-proxy-1.18.1.tgz", "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", - "devOptional": true, "license": "MIT", "dependencies": { "eventemitter3": "^4.0.0", @@ -14394,7 +14457,6 @@ "version": "4.0.7", "resolved": "https://registry.npmmirror.com/eventemitter3/-/eventemitter3-4.0.7.tgz", "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", - "devOptional": true, "license": "MIT" }, "node_modules/https-proxy-agent": { @@ -16702,7 +16764,6 @@ "version": "1.1.0", "resolved": "https://registry.npmmirror.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz", "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -16742,7 +16803,6 @@ "version": "0.3.0", "resolved": "https://registry.npmmirror.com/media-typer/-/media-typer-0.3.0.tgz", "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -16778,7 +16838,6 @@ "version": "1.0.3", "resolved": "https://registry.npmmirror.com/merge-descriptors/-/merge-descriptors-1.0.3.tgz", "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", - "devOptional": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -16805,7 +16864,6 @@ "version": "1.1.2", "resolved": "https://registry.npmmirror.com/methods/-/methods-1.1.2.tgz", "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -16840,7 +16898,6 @@ "version": "1.6.0", "resolved": "https://registry.npmmirror.com/mime/-/mime-1.6.0.tgz", "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "devOptional": true, "license": "MIT", "bin": { "mime": "cli.js" @@ -16863,7 +16920,6 @@ "version": "2.1.35", "resolved": "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "devOptional": true, "license": "MIT", "dependencies": { "mime-db": "1.52.0" @@ -16876,7 +16932,6 @@ "version": "1.52.0", "resolved": "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -17183,6 +17238,17 @@ "pathe": "^2.0.1" } }, + "node_modules/mockjs": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/mockjs/-/mockjs-1.1.0.tgz", + "integrity": "sha512-eQsKcWzIaZzEZ07NuEyO4Nw65g0hdWAyurVol1IPl1gahRwY+svqzfgfey8U8dahLwG44d6/RwEzuK52rSa/JQ==", + "dependencies": { + "commander": "*" + }, + "bin": { + "random": "bin/random" + } + }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", @@ -17535,7 +17601,6 @@ "version": "4.1.1", "resolved": "https://registry.npmmirror.com/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -17545,7 +17610,6 @@ "version": "1.13.4", "resolved": "https://registry.npmmirror.com/object-inspect/-/object-inspect-1.13.4.tgz", "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -17672,7 +17736,6 @@ "version": "2.4.1", "resolved": "https://registry.npmmirror.com/on-finished/-/on-finished-2.4.1.tgz", "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "devOptional": true, "license": "MIT", "dependencies": { "ee-first": "1.1.1" @@ -18171,7 +18234,6 @@ "version": "1.3.3", "resolved": "https://registry.npmmirror.com/parseurl/-/parseurl-1.3.3.tgz", "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -18253,6 +18315,12 @@ "dev": true, "license": "ISC" }, + "node_modules/path-to-regexp": { + "version": "6.3.0", + "resolved": "https://registry.npmmirror.com/path-to-regexp/-/path-to-regexp-6.3.0.tgz", + "integrity": "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==", + "license": "MIT" + }, "node_modules/path-type": { "version": "6.0.0", "resolved": "https://registry.npmmirror.com/path-type/-/path-type-6.0.0.tgz", @@ -20269,7 +20337,6 @@ "version": "2.0.7", "resolved": "https://registry.npmmirror.com/proxy-addr/-/proxy-addr-2.0.7.tgz", "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "devOptional": true, "license": "MIT", "dependencies": { "forwarded": "0.2.0", @@ -20283,7 +20350,6 @@ "version": "1.9.1", "resolved": "https://registry.npmmirror.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz", "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.10" @@ -20355,7 +20421,6 @@ "version": "6.13.0", "resolved": "https://registry.npmmirror.com/qs/-/qs-6.13.0.tgz", "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", - "devOptional": true, "license": "BSD-3-Clause", "dependencies": { "side-channel": "^1.0.6" @@ -20426,7 +20491,6 @@ "version": "1.2.1", "resolved": "https://registry.npmmirror.com/range-parser/-/range-parser-1.2.1.tgz", "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -20436,7 +20500,6 @@ "version": "2.5.2", "resolved": "https://registry.npmmirror.com/raw-body/-/raw-body-2.5.2.tgz", "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", - "devOptional": true, "license": "MIT", "dependencies": { "bytes": "3.1.2", @@ -20452,7 +20515,6 @@ "version": "0.4.24", "resolved": "https://registry.npmmirror.com/iconv-lite/-/iconv-lite-0.4.24.tgz", "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "devOptional": true, "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3" @@ -20632,6 +20694,26 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/recoil": { + "version": "0.7.7", + "resolved": "https://registry.npmmirror.com/recoil/-/recoil-0.7.7.tgz", + "integrity": "sha512-8Og5KPQW9LwC577Vc7Ug2P0vQshkv1y3zG3tSSkWMqkWSwHmE+by06L8JtnGocjW6gcCvfwB3YtrJG6/tWivNQ==", + "license": "MIT", + "dependencies": { + "hamt_plus": "1.0.2" + }, + "peerDependencies": { + "react": ">=16.13.1" + }, + "peerDependenciesMeta": { + "react-dom": { + "optional": true + }, + "react-native": { + "optional": true + } + } + }, "node_modules/reflect.getprototypeof": { "version": "1.0.10", "resolved": "https://registry.npmmirror.com/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz", @@ -20821,7 +20903,6 @@ "version": "1.0.0", "resolved": "https://registry.npmmirror.com/requires-port/-/requires-port-1.0.0.tgz", "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", - "devOptional": true, "license": "MIT" }, "node_modules/resolve": { @@ -21099,7 +21180,6 @@ "version": "5.2.1", "resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.2.1.tgz", "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "devOptional": true, "funding": [ { "type": "github", @@ -21162,7 +21242,6 @@ "version": "2.1.2", "resolved": "https://registry.npmmirror.com/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "devOptional": true, "license": "MIT" }, "node_modules/sass": { @@ -21452,7 +21531,6 @@ "version": "0.19.0", "resolved": "https://registry.npmmirror.com/send/-/send-0.19.0.tgz", "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", - "devOptional": true, "license": "MIT", "dependencies": { "debug": "2.6.9", @@ -21477,7 +21555,6 @@ "version": "2.6.9", "resolved": "https://registry.npmmirror.com/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "devOptional": true, "license": "MIT", "dependencies": { "ms": "2.0.0" @@ -21487,14 +21564,12 @@ "version": "2.0.0", "resolved": "https://registry.npmmirror.com/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "devOptional": true, "license": "MIT" }, "node_modules/send/node_modules/encodeurl": { "version": "1.0.2", "resolved": "https://registry.npmmirror.com/encodeurl/-/encodeurl-1.0.2.tgz", "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -21600,7 +21675,6 @@ "version": "1.16.2", "resolved": "https://registry.npmmirror.com/serve-static/-/serve-static-1.16.2.tgz", "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", - "devOptional": true, "license": "MIT", "dependencies": { "encodeurl": "~2.0.0", @@ -21665,7 +21739,6 @@ "version": "1.2.0", "resolved": "https://registry.npmmirror.com/setprototypeof/-/setprototypeof-1.2.0.tgz", "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "devOptional": true, "license": "ISC" }, "node_modules/shallow-clone": { @@ -21718,7 +21791,6 @@ "version": "1.1.0", "resolved": "https://registry.npmmirror.com/side-channel/-/side-channel-1.1.0.tgz", "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", - "devOptional": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -21738,7 +21810,6 @@ "version": "1.0.0", "resolved": "https://registry.npmmirror.com/side-channel-list/-/side-channel-list-1.0.0.tgz", "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", - "devOptional": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -21755,7 +21826,6 @@ "version": "1.0.1", "resolved": "https://registry.npmmirror.com/side-channel-map/-/side-channel-map-1.0.1.tgz", "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "devOptional": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.2", @@ -21774,7 +21844,6 @@ "version": "1.0.2", "resolved": "https://registry.npmmirror.com/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "devOptional": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.2", @@ -22010,7 +22079,6 @@ "version": "2.0.1", "resolved": "https://registry.npmmirror.com/statuses/-/statuses-2.0.1.tgz", "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -22369,7 +22437,6 @@ } ], "license": "MIT", - "peer": true, "dependencies": { "@csstools/css-parser-algorithms": "^3.0.5", "@csstools/css-tokenizer": "^3.0.4", @@ -23410,7 +23477,6 @@ "version": "1.0.1", "resolved": "https://registry.npmmirror.com/toidentifier/-/toidentifier-1.0.1.tgz", "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "devOptional": true, "license": "MIT", "engines": { "node": ">=0.6" @@ -23626,6 +23692,7 @@ "resolved": "https://registry.npmmirror.com/type-fest/-/type-fest-0.21.3.tgz", "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "license": "(MIT OR CC0-1.0)", + "peer": true, "engines": { "node": ">=10" }, @@ -23637,7 +23704,6 @@ "version": "1.6.18", "resolved": "https://registry.npmmirror.com/type-is/-/type-is-1.6.18.tgz", "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "devOptional": true, "license": "MIT", "dependencies": { "media-typer": "0.3.0", @@ -23876,7 +23942,6 @@ "version": "1.0.0", "resolved": "https://registry.npmmirror.com/unpipe/-/unpipe-1.0.0.tgz", "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -23973,7 +24038,6 @@ "version": "1.0.1", "resolved": "https://registry.npmmirror.com/utils-merge/-/utils-merge-1.0.1.tgz", "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.4.0" @@ -24010,7 +24074,6 @@ "version": "1.1.2", "resolved": "https://registry.npmmirror.com/vary/-/vary-1.1.2.tgz", "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "devOptional": true, "license": "MIT", "engines": { "node": ">= 0.8" diff --git a/package.json b/package.json index 4359ace..e6bd642 100644 --- a/package.json +++ b/package.json @@ -26,13 +26,16 @@ "@tarojs/components": "4.1.7", "@tarojs/helper": "4.1.7", "@tarojs/plugin-framework-react": "4.1.7", + "@tarojs/plugin-mock": "^0.0.10", "@tarojs/plugin-platform-weapp": "4.1.7", "@tarojs/react": "4.1.7", "@tarojs/runtime": "4.1.7", "@tarojs/shared": "4.1.7", "@tarojs/taro": "4.1.7", + "mockjs": "^1.1.0", "react": "^18.0.0", - "react-dom": "^18.0.0" + "react-dom": "^18.0.0", + "recoil": "^0.7.7" }, "devDependencies": { "@babel/core": "^7.24.4", @@ -47,6 +50,7 @@ "@tarojs/taro-loader": "4.1.7", "@tarojs/webpack5-runner": "4.1.7", "@types/minimatch": "^5", + "@types/mockjs": "^1.0.10", "@types/node": "^18", "@types/react": "^18.0.0", "@types/webpack-env": "^1.13.6", diff --git a/project.config.json b/project.config.json index 38787c3..5b15866 100644 --- a/project.config.json +++ b/project.config.json @@ -4,12 +4,9 @@ "description": "jikemp_weapp", "appid": "touristappid", "setting": { - "urlCheck": true, - "es6": false, - "enhance": false, - "compileHotReLoad": false, - "postcss": false, - "minified": false + "urlCheck": false, + "bigPackageSizeSupport": true, + "preloadBackgroundData": false }, "compileType": "miniprogram" } diff --git a/src/app.ts b/src/app.ts deleted file mode 100644 index a6355ef..0000000 --- a/src/app.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { PropsWithChildren } from 'react' -import { useLaunch } from '@tarojs/taro' - -import './app.css' - -function App({ children }: PropsWithChildren) { - useLaunch(() => { - console.log('App launched.') - }) - - // children 是将要会渲染的页面 - return children -} - - - -export default App diff --git a/src/pages/index/index.css b/src/pages/index/index.css deleted file mode 100644 index e69de29..0000000 diff --git a/tsconfig.json b/tsconfig.json index 1a4753b..b516b0f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,9 +22,9 @@ ], "paths": { // TS5090 leading './' - "@/*": ["./src/*"] + "@/*": ["./app/*"] } }, - "include": ["./src", "./types", "./config"], + "include": ["./app", "./types", "./config"], "compileOnSave": false }