feat:

This commit is contained in:
john 2024-07-16 09:59:24 +08:00
parent 54b156ef63
commit ef787f4b42
3 changed files with 113 additions and 113 deletions

Binary file not shown.

View File

@ -1,5 +1,5 @@
{ {
"name": "tg-bot", "name": "tg-bot-miniapp",
"private": true, "private": true,
"version": "0.0.0", "version": "0.0.0",
"type": "module", "type": "module",

224
yarn.lock
View File

@ -26,44 +26,44 @@ __metadata:
linkType: hard linkType: hard
"@babel/compat-data@npm:^7.24.8": "@babel/compat-data@npm:^7.24.8":
version: 7.24.8 version: 7.24.9
resolution: "@babel/compat-data@npm:7.24.8" resolution: "@babel/compat-data@npm:7.24.9"
checksum: 10c0/7f465e9d8e44c5b516eeb3001362a3cd9a6df51dd90d3ac9868e1e7fa631ac57fc781cec6700110d4f555ba37fe59c4a71927b445106fe0062e79e79ffe11091 checksum: 10c0/95a69c9ed00ae78b4921f33403e9b35518e6139a0c46af763c65dea160720cb57c6cc23f7d30249091a0248335b0e39de5c8dfa8e7877c830e44561e0bdc1254
languageName: node languageName: node
linkType: hard linkType: hard
"@babel/core@npm:^7.24.5": "@babel/core@npm:^7.24.5":
version: 7.24.8 version: 7.24.9
resolution: "@babel/core@npm:7.24.8" resolution: "@babel/core@npm:7.24.9"
dependencies: dependencies:
"@ampproject/remapping": "npm:^2.2.0" "@ampproject/remapping": "npm:^2.2.0"
"@babel/code-frame": "npm:^7.24.7" "@babel/code-frame": "npm:^7.24.7"
"@babel/generator": "npm:^7.24.8" "@babel/generator": "npm:^7.24.9"
"@babel/helper-compilation-targets": "npm:^7.24.8" "@babel/helper-compilation-targets": "npm:^7.24.8"
"@babel/helper-module-transforms": "npm:^7.24.8" "@babel/helper-module-transforms": "npm:^7.24.9"
"@babel/helpers": "npm:^7.24.8" "@babel/helpers": "npm:^7.24.8"
"@babel/parser": "npm:^7.24.8" "@babel/parser": "npm:^7.24.8"
"@babel/template": "npm:^7.24.7" "@babel/template": "npm:^7.24.7"
"@babel/traverse": "npm:^7.24.8" "@babel/traverse": "npm:^7.24.8"
"@babel/types": "npm:^7.24.8" "@babel/types": "npm:^7.24.9"
convert-source-map: "npm:^2.0.0" convert-source-map: "npm:^2.0.0"
debug: "npm:^4.1.0" debug: "npm:^4.1.0"
gensync: "npm:^1.0.0-beta.2" gensync: "npm:^1.0.0-beta.2"
json5: "npm:^2.2.3" json5: "npm:^2.2.3"
semver: "npm:^6.3.1" semver: "npm:^6.3.1"
checksum: 10c0/5e21b40cc69746deda3fe3d6540351d9cb0d1ad5aea055b7c319db26071ff5789fd9580d1aa47b114f07631e8e2109f4e71696ca11d7c7e60d157767022c1bd2 checksum: 10c0/e104ec6efbf099f55184933e9ab078eb5821c792ddfef3e9c6561986ec4ff103f5c11e3d7d6e5e8929e50e2c58db1cc80e5b6f14b530335b6622095ec4b4124c
languageName: node languageName: node
linkType: hard linkType: hard
"@babel/generator@npm:^7.24.8": "@babel/generator@npm:^7.24.8, @babel/generator@npm:^7.24.9":
version: 7.24.8 version: 7.24.9
resolution: "@babel/generator@npm:7.24.8" resolution: "@babel/generator@npm:7.24.9"
dependencies: dependencies:
"@babel/types": "npm:^7.24.8" "@babel/types": "npm:^7.24.9"
"@jridgewell/gen-mapping": "npm:^0.3.5" "@jridgewell/gen-mapping": "npm:^0.3.5"
"@jridgewell/trace-mapping": "npm:^0.3.25" "@jridgewell/trace-mapping": "npm:^0.3.25"
jsesc: "npm:^2.5.1" jsesc: "npm:^2.5.1"
checksum: 10c0/e8a278e75a895f13a7b17dd79abe1e894fe82a5ed3abb127c33c14c66773d69993762521c094c6c364723f8f7375683b0d4a96097781175a29407baedf67b769 checksum: 10c0/cd1f7edce7717462546c349e15289d1267a3ed627c6f6583fbf51e78eacacc6500ec2f0024f08f1cc7138989e575635b931acf4549f9e728017a22176a9ea6b6
languageName: node languageName: node
linkType: hard linkType: hard
@ -118,9 +118,9 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@babel/helper-module-transforms@npm:^7.24.8": "@babel/helper-module-transforms@npm:^7.24.9":
version: 7.24.8 version: 7.24.9
resolution: "@babel/helper-module-transforms@npm:7.24.8" resolution: "@babel/helper-module-transforms@npm:7.24.9"
dependencies: dependencies:
"@babel/helper-environment-visitor": "npm:^7.24.7" "@babel/helper-environment-visitor": "npm:^7.24.7"
"@babel/helper-module-imports": "npm:^7.24.7" "@babel/helper-module-imports": "npm:^7.24.7"
@ -129,7 +129,7 @@ __metadata:
"@babel/helper-validator-identifier": "npm:^7.24.7" "@babel/helper-validator-identifier": "npm:^7.24.7"
peerDependencies: peerDependencies:
"@babel/core": ^7.0.0 "@babel/core": ^7.0.0
checksum: 10c0/b76496d5045af55be9de60e59e65e56a43033f01ccc746b26b7af911c358668c206b688ce70a23ab31ec04f9728f3a38e8d01073c85244115ab62f271a7fa3d1 checksum: 10c0/e27bca43bc113731ee4f2b33a4c5bf9c7eebf4d64487b814c305cbd5feb272c29fcd3d79634ba03131ade171e5972bc7ede8dbc83ba0deb02f1e62d318c87770
languageName: node languageName: node
linkType: hard linkType: hard
@ -271,14 +271,14 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@babel/types@npm:^7.0.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.24.7, @babel/types@npm:^7.24.8, @babel/types@npm:^7.8.3": "@babel/types@npm:^7.0.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.24.7, @babel/types@npm:^7.24.8, @babel/types@npm:^7.24.9, @babel/types@npm:^7.8.3":
version: 7.24.8 version: 7.24.9
resolution: "@babel/types@npm:7.24.8" resolution: "@babel/types@npm:7.24.9"
dependencies: dependencies:
"@babel/helper-string-parser": "npm:^7.24.8" "@babel/helper-string-parser": "npm:^7.24.8"
"@babel/helper-validator-identifier": "npm:^7.24.7" "@babel/helper-validator-identifier": "npm:^7.24.7"
to-fast-properties: "npm:^2.0.0" to-fast-properties: "npm:^2.0.0"
checksum: 10c0/2d7bf561ae993e794cb052c5a81d3a6d1877da13e1e2eb2a59ae75a8fb1c965b618fb3e4abd42548f5f9a4587d3a149185a32d6c4c4ea82195da7dd86f2da0f1 checksum: 10c0/4970b3481cab39c5c3fdb7c28c834df5c7049f3c7f43baeafe121bb05270ebf0da7c65b097abf314877f213baa591109c82204f30d66cdd46c22ece4a2f32415
languageName: node languageName: node
linkType: hard linkType: hard
@ -980,14 +980,14 @@ __metadata:
linkType: hard linkType: hard
"@typescript-eslint/eslint-plugin@npm:^7.13.1": "@typescript-eslint/eslint-plugin@npm:^7.13.1":
version: 7.16.0 version: 7.16.1
resolution: "@typescript-eslint/eslint-plugin@npm:7.16.0" resolution: "@typescript-eslint/eslint-plugin@npm:7.16.1"
dependencies: dependencies:
"@eslint-community/regexpp": "npm:^4.10.0" "@eslint-community/regexpp": "npm:^4.10.0"
"@typescript-eslint/scope-manager": "npm:7.16.0" "@typescript-eslint/scope-manager": "npm:7.16.1"
"@typescript-eslint/type-utils": "npm:7.16.0" "@typescript-eslint/type-utils": "npm:7.16.1"
"@typescript-eslint/utils": "npm:7.16.0" "@typescript-eslint/utils": "npm:7.16.1"
"@typescript-eslint/visitor-keys": "npm:7.16.0" "@typescript-eslint/visitor-keys": "npm:7.16.1"
graphemer: "npm:^1.4.0" graphemer: "npm:^1.4.0"
ignore: "npm:^5.3.1" ignore: "npm:^5.3.1"
natural-compare: "npm:^1.4.0" natural-compare: "npm:^1.4.0"
@ -998,44 +998,44 @@ __metadata:
peerDependenciesMeta: peerDependenciesMeta:
typescript: typescript:
optional: true optional: true
checksum: 10c0/a6c4c93bd7ec1604079018b95416d8ac28af3345d50620f815ffd36e705c4964d88edc434e710ef8722690497f1eeab1e9a0f48faa6d448405980f5d05c888b7 checksum: 10c0/3d0d8fa7e00dff4deb70f41432030e4e0e0bc1e4415ae7be969b77bb216fd0797507ed852baaf6d12f6ae022f69ac6356201f6b4129ddfd57b232bfc6715ac8a
languageName: node languageName: node
linkType: hard linkType: hard
"@typescript-eslint/parser@npm:^7.13.1": "@typescript-eslint/parser@npm:^7.13.1":
version: 7.16.0 version: 7.16.1
resolution: "@typescript-eslint/parser@npm:7.16.0" resolution: "@typescript-eslint/parser@npm:7.16.1"
dependencies: dependencies:
"@typescript-eslint/scope-manager": "npm:7.16.0" "@typescript-eslint/scope-manager": "npm:7.16.1"
"@typescript-eslint/types": "npm:7.16.0" "@typescript-eslint/types": "npm:7.16.1"
"@typescript-eslint/typescript-estree": "npm:7.16.0" "@typescript-eslint/typescript-estree": "npm:7.16.1"
"@typescript-eslint/visitor-keys": "npm:7.16.0" "@typescript-eslint/visitor-keys": "npm:7.16.1"
debug: "npm:^4.3.4" debug: "npm:^4.3.4"
peerDependencies: peerDependencies:
eslint: ^8.56.0 eslint: ^8.56.0
peerDependenciesMeta: peerDependenciesMeta:
typescript: typescript:
optional: true optional: true
checksum: 10c0/bf809c5a59dddc72fc2f11a5d10c78825fa2ffbec72a711e3f783b022d77266a1b709ad450912ebbff24ca9ac20c6baae1d12477735e00aafce662fdbdfa66ef checksum: 10c0/f0c731d9f22ccbcc2a15eb33376ae09cdcdcb4c69fcce425e8e7e5e3ccce51c4ee431d350109a02a09f40df81349c59eddd0264fe53a4194f326c0e0e2e3e83a
languageName: node languageName: node
linkType: hard linkType: hard
"@typescript-eslint/scope-manager@npm:7.16.0": "@typescript-eslint/scope-manager@npm:7.16.1":
version: 7.16.0 version: 7.16.1
resolution: "@typescript-eslint/scope-manager@npm:7.16.0" resolution: "@typescript-eslint/scope-manager@npm:7.16.1"
dependencies: dependencies:
"@typescript-eslint/types": "npm:7.16.0" "@typescript-eslint/types": "npm:7.16.1"
"@typescript-eslint/visitor-keys": "npm:7.16.0" "@typescript-eslint/visitor-keys": "npm:7.16.1"
checksum: 10c0/e00f57908a1b30fb93ae0e35c46a798669782428e98f927a4d39ef3b1e7d5ad4a48e4e121bd136ed9732c2d1c09cf0b99e4029b1a1a11aadf6f2b92e1003f41c checksum: 10c0/5105edd927fd45097eb9c16f235ba48c2d9f2f3a3948fbdc4ffdc9a9fc5f130fa46c32d9188fe4bb303bd99508d7f0aad342c2ec0d9ad887aa1416dd54edeb66
languageName: node languageName: node
linkType: hard linkType: hard
"@typescript-eslint/type-utils@npm:7.16.0": "@typescript-eslint/type-utils@npm:7.16.1":
version: 7.16.0 version: 7.16.1
resolution: "@typescript-eslint/type-utils@npm:7.16.0" resolution: "@typescript-eslint/type-utils@npm:7.16.1"
dependencies: dependencies:
"@typescript-eslint/typescript-estree": "npm:7.16.0" "@typescript-eslint/typescript-estree": "npm:7.16.1"
"@typescript-eslint/utils": "npm:7.16.0" "@typescript-eslint/utils": "npm:7.16.1"
debug: "npm:^4.3.4" debug: "npm:^4.3.4"
ts-api-utils: "npm:^1.3.0" ts-api-utils: "npm:^1.3.0"
peerDependencies: peerDependencies:
@ -1043,23 +1043,23 @@ __metadata:
peerDependenciesMeta: peerDependenciesMeta:
typescript: typescript:
optional: true optional: true
checksum: 10c0/91ef86e173d2d86487d669ddda7a0f754485e82a671a64cfbf7790639dfb4c691f6f002ae19d4d82a90e4cca9cd7563e38100c1dfabab461632b0da1eac2b39b checksum: 10c0/7551566185ca372dbc3d53b8ab047ea7e2c50b25d9a9293d5163498fb87c4b16a585d267a4a99df57d70326754acf168aad726ee5e8b9c0d4e59f1b8653d951d
languageName: node languageName: node
linkType: hard linkType: hard
"@typescript-eslint/types@npm:7.16.0": "@typescript-eslint/types@npm:7.16.1":
version: 7.16.0 version: 7.16.1
resolution: "@typescript-eslint/types@npm:7.16.0" resolution: "@typescript-eslint/types@npm:7.16.1"
checksum: 10c0/5d7080991241232072c50c1e1be35976631f764fe0f4fd43cf1026a2722aab772a14906dfaa322183b040c6ca8ae4494a78f653dd3b22bcdbdfe063a301240b0 checksum: 10c0/5ab7bfcac81adb01672057270d0273da98dcf50d2add5819b4787b5973f6624d11ad33d6fb495f80fe628fefa3a5ed319b433ed57e9121e444cfc002e1e48625
languageName: node languageName: node
linkType: hard linkType: hard
"@typescript-eslint/typescript-estree@npm:7.16.0": "@typescript-eslint/typescript-estree@npm:7.16.1":
version: 7.16.0 version: 7.16.1
resolution: "@typescript-eslint/typescript-estree@npm:7.16.0" resolution: "@typescript-eslint/typescript-estree@npm:7.16.1"
dependencies: dependencies:
"@typescript-eslint/types": "npm:7.16.0" "@typescript-eslint/types": "npm:7.16.1"
"@typescript-eslint/visitor-keys": "npm:7.16.0" "@typescript-eslint/visitor-keys": "npm:7.16.1"
debug: "npm:^4.3.4" debug: "npm:^4.3.4"
globby: "npm:^11.1.0" globby: "npm:^11.1.0"
is-glob: "npm:^4.0.3" is-glob: "npm:^4.0.3"
@ -1069,31 +1069,31 @@ __metadata:
peerDependenciesMeta: peerDependenciesMeta:
typescript: typescript:
optional: true optional: true
checksum: 10c0/2b4e7cbdb1b43d937d1dde057ab18111e0f2bb16cb2d3f48a60c5611ff81d0b64455b325475bcce6213c54653b6c4d3b475526f7ffcf8f74014ab9b64a3d6d92 checksum: 10c0/979269e9d42d75c0e49f47c7bb5e9554bd29041339c6fecfe5c76726699bce25132bef8b54210769e4f0abb858a278923340d3e4decc6551406e2c5ec065fe04
languageName: node languageName: node
linkType: hard linkType: hard
"@typescript-eslint/utils@npm:7.16.0": "@typescript-eslint/utils@npm:7.16.1":
version: 7.16.0 version: 7.16.1
resolution: "@typescript-eslint/utils@npm:7.16.0" resolution: "@typescript-eslint/utils@npm:7.16.1"
dependencies: dependencies:
"@eslint-community/eslint-utils": "npm:^4.4.0" "@eslint-community/eslint-utils": "npm:^4.4.0"
"@typescript-eslint/scope-manager": "npm:7.16.0" "@typescript-eslint/scope-manager": "npm:7.16.1"
"@typescript-eslint/types": "npm:7.16.0" "@typescript-eslint/types": "npm:7.16.1"
"@typescript-eslint/typescript-estree": "npm:7.16.0" "@typescript-eslint/typescript-estree": "npm:7.16.1"
peerDependencies: peerDependencies:
eslint: ^8.56.0 eslint: ^8.56.0
checksum: 10c0/1b835cbd243a4266a84655bcfcd08a14003e9740efbb032d60ab4403f03838280e7ad759b1f362d88939beaee08d7a1752fa6b049aad8d33793758853469fe76 checksum: 10c0/22fbf17eec064d1e67f2a4bf512f62d5369a22fe11226f043cbeb0fe79cd18006b04f933e5025f4e5c2f82047248dac52cc97199e495ad17d564084210099d17
languageName: node languageName: node
linkType: hard linkType: hard
"@typescript-eslint/visitor-keys@npm:7.16.0": "@typescript-eslint/visitor-keys@npm:7.16.1":
version: 7.16.0 version: 7.16.1
resolution: "@typescript-eslint/visitor-keys@npm:7.16.0" resolution: "@typescript-eslint/visitor-keys@npm:7.16.1"
dependencies: dependencies:
"@typescript-eslint/types": "npm:7.16.0" "@typescript-eslint/types": "npm:7.16.1"
eslint-visitor-keys: "npm:^3.4.3" eslint-visitor-keys: "npm:^3.4.3"
checksum: 10c0/a3c614cdc2e9c37e007e15e1ee169a9ad040fac189d0abd2b840f78910b499b362493bbf0019c5979785567ae30839a799b4dd219f70a668bac930fd79fdc5d3 checksum: 10c0/060bc6770ba3ea271c6a844501f4dfee1b8842a0c405e60d2a258466b1b4e66086234a3fddac8745bb1a39a89eab29afeaf16133ad925bd426ac8fdb13fb7f94
languageName: node languageName: node
linkType: hard linkType: hard
@ -1430,9 +1430,9 @@ __metadata:
linkType: hard linkType: hard
"caniuse-lite@npm:^1.0.30001599, caniuse-lite@npm:^1.0.30001640": "caniuse-lite@npm:^1.0.30001599, caniuse-lite@npm:^1.0.30001640":
version: 1.0.30001641 version: 1.0.30001642
resolution: "caniuse-lite@npm:1.0.30001641" resolution: "caniuse-lite@npm:1.0.30001642"
checksum: 10c0/a065b641cfcc84b36955ee909bfd7313ad103d6a299f0fd261e0e4160e8f1cec79d685c5a9f11097a77687cf47154eddb8133163f2a34bcb8d73c45033a014d2 checksum: 10c0/7366878ecdd482392a741c66fd2b39816b70573d66f64b1f8e5916835faf7a15f116368290170f4d7c4e823ec78eea9b6c0f63bee763a511cc7990afa429d63b
languageName: node languageName: node
linkType: hard linkType: hard
@ -1630,42 +1630,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"tg-bot@workspace:.":
version: 0.0.0-use.local
resolution: "tg-bot@workspace:."
dependencies:
"@hyper-fetch/core": "npm:^5.7.5"
"@hyper-fetch/react": "npm:^5.7.5"
"@types/node": "npm:^20.14.10"
"@types/postcss-pxtorem": "npm:^6.0.3"
"@types/react": "npm:^18.3.3"
"@types/react-dom": "npm:^18.3.0"
"@typescript-eslint/eslint-plugin": "npm:^7.13.1"
"@typescript-eslint/parser": "npm:^7.13.1"
"@vitejs/plugin-react": "npm:^4.3.1"
"@vkruglikov/react-telegram-web-app": "npm:2.1.9"
antd-mobile: "npm:^5.37.1"
antd-mobile-icons: "npm:^0.3.0"
autoprefixer: "npm:^10.4.19"
clsx: "npm:^2.1.1"
eslint: "npm:^8.57.0"
eslint-plugin-react-hooks: "npm:^4.6.2"
eslint-plugin-react-refresh: "npm:^0.4.7"
postcss: "npm:^8.4.39"
postcss-pxtorem: "npm:^6.1.0"
react: "npm:^18.3.1"
react-dom: "npm:^18.3.1"
react-iconfont-cli: "npm:^2.0.2"
react-router-dom: "npm:^6.24.1"
tailwind-merge: "npm:^2.4.0"
typescript: "npm:^5.2.2"
vconsole: "npm:^3.15.1"
vite: "npm:^5.3.1"
vite-plugin-compression: "npm:^0.5.1"
zustand: "npm:^4.5.4"
languageName: unknown
linkType: soft
"eastasianwidth@npm:^0.2.0": "eastasianwidth@npm:^0.2.0":
version: 0.2.0 version: 0.2.0
resolution: "eastasianwidth@npm:0.2.0" resolution: "eastasianwidth@npm:0.2.0"
@ -1674,9 +1638,9 @@ __metadata:
linkType: hard linkType: hard
"electron-to-chromium@npm:^1.4.820": "electron-to-chromium@npm:^1.4.820":
version: 1.4.827 version: 1.4.828
resolution: "electron-to-chromium@npm:1.4.827" resolution: "electron-to-chromium@npm:1.4.828"
checksum: 10c0/e37719d8f13da78eb2bc68184cdf73d167ecf413abc28afef2b0a5c55866293752fda980d83a5f42b5780781bde418b24c12e1c38f2662d25ed1c2f71880bc24 checksum: 10c0/3c9d101379c952d2ebe62941ba91cd7806ff47d0fc957e3e38c89bf6a3b4a6bbe1e7cf38017144ac28dc4856fe202a06371d969a041a746763ed6a88a2b4fb18
languageName: node languageName: node
linkType: hard linkType: hard
@ -3493,6 +3457,42 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"tg-bot-miniapp@workspace:.":
version: 0.0.0-use.local
resolution: "tg-bot-miniapp@workspace:."
dependencies:
"@hyper-fetch/core": "npm:^5.7.5"
"@hyper-fetch/react": "npm:^5.7.5"
"@types/node": "npm:^20.14.10"
"@types/postcss-pxtorem": "npm:^6.0.3"
"@types/react": "npm:^18.3.3"
"@types/react-dom": "npm:^18.3.0"
"@typescript-eslint/eslint-plugin": "npm:^7.13.1"
"@typescript-eslint/parser": "npm:^7.13.1"
"@vitejs/plugin-react": "npm:^4.3.1"
"@vkruglikov/react-telegram-web-app": "npm:2.1.9"
antd-mobile: "npm:^5.37.1"
antd-mobile-icons: "npm:^0.3.0"
autoprefixer: "npm:^10.4.19"
clsx: "npm:^2.1.1"
eslint: "npm:^8.57.0"
eslint-plugin-react-hooks: "npm:^4.6.2"
eslint-plugin-react-refresh: "npm:^0.4.7"
postcss: "npm:^8.4.39"
postcss-pxtorem: "npm:^6.1.0"
react: "npm:^18.3.1"
react-dom: "npm:^18.3.1"
react-iconfont-cli: "npm:^2.0.2"
react-router-dom: "npm:^6.24.1"
tailwind-merge: "npm:^2.4.0"
typescript: "npm:^5.2.2"
vconsole: "npm:^3.15.1"
vite: "npm:^5.3.1"
vite-plugin-compression: "npm:^0.5.1"
zustand: "npm:^4.5.4"
languageName: unknown
linkType: soft
"to-fast-properties@npm:^2.0.0": "to-fast-properties@npm:^2.0.0":
version: 2.0.0 version: 2.0.0
resolution: "to-fast-properties@npm:2.0.0" resolution: "to-fast-properties@npm:2.0.0"