diff --git a/package.json b/package.json index 308498bf6ab1a..f8c0ae26b734f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "crawlab-ui", - "version": "0.6.0-25", + "version": "0.6.0-26", "private": false, "author": { "name": "Marvin Zhang", @@ -37,6 +37,7 @@ "scripts": { "serve": "vite --debug", "serve:local": "vite serve --port=8081 --mode local", + "serve:dist": "serve dist", "gen:index": "node ./scripts/gen-index.js", "gen:svg": "node ./scripts/gen-svg.js", "gen:dts": "node ./scripts/gen-dts.js", @@ -130,6 +131,7 @@ "node-sass": "^8.0.0", "rd": "^2.0.1", "sass": "^1.56.1", + "serve": "^14.1.2", "ts-morph": "^12.0.0", "typescript": "^4.6.4", "vite": "^3.2.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 56afc612b5fce..72026eb26c366 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -60,6 +60,7 @@ specifiers: point-cluster: ^3.1.8 rd: ^2.0.1 sass: ^1.56.1 + serve: ^14.1.2 showdown: ^1.9.1 simplemde: ^1.11.2 ts-morph: ^12.0.0 @@ -149,6 +150,7 @@ devDependencies: node-sass: registry.npmmirror.com/node-sass/8.0.0 rd: registry.npmmirror.com/rd/2.0.1 sass: registry.npmmirror.com/sass/1.56.1 + serve: registry.npmmirror.com/serve/14.1.2 ts-morph: registry.npmmirror.com/ts-morph/12.2.0 typescript: registry.npmmirror.com/typescript/4.9.3 vite: registry.npmmirror.com/vite/3.2.4_ajklay5k626t46b6fyghkbup3i @@ -3816,6 +3818,12 @@ packages: version: 4.2.2 dev: true + registry.npmmirror.com/@zeit/schemas/2.21.0: + resolution: {integrity: sha512-/J4WBTpWtQ4itN1rb3ao8LfClmVcmz2pO6oYb7Qd4h7VSqUhIbJIvrykz9Ew1WMg6eFWsKdsMHc5uPbFxqlCpg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@zeit/schemas/-/schemas-2.21.0.tgz} + name: '@zeit/schemas' + version: 2.21.0 + dev: true + registry.npmmirror.com/abbrev/1.1.1: resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/abbrev/-/abbrev-1.1.1.tgz} name: abbrev @@ -3987,6 +3995,17 @@ packages: uri-js: registry.npmmirror.com/uri-js/4.4.1 dev: true + registry.npmmirror.com/ajv/8.11.0: + resolution: {integrity: sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/ajv/-/ajv-8.11.0.tgz} + name: ajv + version: 8.11.0 + dependencies: + fast-deep-equal: registry.npmmirror.com/fast-deep-equal/3.1.3 + json-schema-traverse: registry.npmmirror.com/json-schema-traverse/1.0.0 + require-from-string: registry.npmmirror.com/require-from-string/2.0.2 + uri-js: registry.npmmirror.com/uri-js/4.4.1 + dev: true + registry.npmmirror.com/ajv/8.11.2: resolution: {integrity: sha512-E4bfmKAhGiSTvMfL1Myyycaub+cUEU2/IvpylXkUu7CHBkBj1f/ikdzbD7YQ6FKUbixDxeYvB/xY4fvyroDlQg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/ajv/-/ajv-8.11.2.tgz} name: ajv @@ -4004,6 +4023,14 @@ packages: version: 1.0.2 dev: true + registry.npmmirror.com/ansi-align/3.0.1: + resolution: {integrity: sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/ansi-align/-/ansi-align-3.0.1.tgz} + name: ansi-align + version: 3.0.1 + dependencies: + string-width: registry.npmmirror.com/string-width/4.2.3 + dev: true + registry.npmmirror.com/ansi-colors/3.2.4: resolution: {integrity: sha512-hHUXGagefjN2iRrID63xckIvotOXOojhQKWIPUZ4mNUZ9nLZW+7FMNoE1lOkEhNWYsx/7ysGIuJYCiMAA9FnrA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/ansi-colors/-/ansi-colors-3.2.4.tgz} name: ansi-colors @@ -4054,6 +4081,13 @@ packages: version: 5.0.1 engines: {node: '>=8'} + registry.npmmirror.com/ansi-regex/6.0.1: + resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/ansi-regex/-/ansi-regex-6.0.1.tgz} + name: ansi-regex + version: 6.0.1 + engines: {node: '>=12'} + dev: true + registry.npmmirror.com/ansi-styles/2.2.1: resolution: {integrity: sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/ansi-styles/-/ansi-styles-2.2.1.tgz} name: ansi-styles @@ -4085,6 +4119,13 @@ packages: engines: {node: '>=10'} dev: true + registry.npmmirror.com/ansi-styles/6.2.1: + resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/ansi-styles/-/ansi-styles-6.2.1.tgz} + name: ansi-styles + version: 6.2.1 + engines: {node: '>=12'} + dev: true + registry.npmmirror.com/any-promise/1.3.0: resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/any-promise/-/any-promise-1.3.0.tgz} name: any-promise @@ -4163,6 +4204,12 @@ packages: readable-stream: registry.npmmirror.com/readable-stream/3.6.0 dev: true + registry.npmmirror.com/arg/5.0.2: + resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/arg/-/arg-5.0.2.tgz} + name: arg + version: 5.0.2 + dev: true + registry.npmmirror.com/argparse/1.0.10: resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/argparse/-/argparse-1.0.10.tgz} name: argparse @@ -4781,6 +4828,22 @@ packages: version: 1.0.0 dev: true + registry.npmmirror.com/boxen/7.0.0: + resolution: {integrity: sha512-j//dBVuyacJbvW+tvZ9HuH03fZ46QcaKvvhZickZqtB271DxJ7SNRSNxrV/dZX0085m7hISRZWbzWlJvx/rHSg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/boxen/-/boxen-7.0.0.tgz} + name: boxen + version: 7.0.0 + engines: {node: '>=14.16'} + dependencies: + ansi-align: registry.npmmirror.com/ansi-align/3.0.1 + camelcase: registry.npmmirror.com/camelcase/7.0.0 + chalk: registry.npmmirror.com/chalk/5.0.1 + cli-boxes: registry.npmmirror.com/cli-boxes/3.0.0 + string-width: registry.npmmirror.com/string-width/5.1.2 + type-fest: registry.npmmirror.com/type-fest/2.19.0 + widest-line: registry.npmmirror.com/widest-line/4.0.1 + wrap-ansi: registry.npmmirror.com/wrap-ansi/8.0.1 + dev: true + registry.npmmirror.com/brace-expansion/1.1.11: resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz} name: brace-expansion @@ -5218,6 +5281,13 @@ packages: engines: {node: '>=10'} dev: true + registry.npmmirror.com/camelcase/7.0.0: + resolution: {integrity: sha512-JToIvOmz6nhGsUhAYScbo2d6Py5wojjNfoxoc2mEVLUdJ70gJK2gnd+ABY1Tc3sVMyK7QDPtN0T/XdlCQWITyQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/camelcase/-/camelcase-7.0.0.tgz} + name: camelcase + version: 7.0.0 + engines: {node: '>=14.16'} + dev: true + registry.npmmirror.com/caniuse-api/3.0.0: resolution: {integrity: sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/caniuse-api/-/caniuse-api-3.0.0.tgz} name: caniuse-api @@ -5248,6 +5318,15 @@ packages: version: 0.12.0 dev: true + registry.npmmirror.com/chalk-template/0.4.0: + resolution: {integrity: sha512-/ghrgmhfY8RaSdeo43hNXxpoHAtxdbskUHjPpfqUWGttFgycUhYPGx3YZBCnUCvOa7Doivn1IZec3DEGFoMgLg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/chalk-template/-/chalk-template-0.4.0.tgz} + name: chalk-template + version: 0.4.0 + engines: {node: '>=12'} + dependencies: + chalk: registry.npmmirror.com/chalk/4.1.2 + dev: true + registry.npmmirror.com/chalk/1.1.3: resolution: {integrity: sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/chalk/-/chalk-1.1.3.tgz} name: chalk @@ -5291,6 +5370,13 @@ packages: supports-color: registry.npmmirror.com/supports-color/7.2.0 dev: true + registry.npmmirror.com/chalk/5.0.1: + resolution: {integrity: sha512-Fo07WOYGqMfCWHOzSXOt2CxDbC6skS/jO9ynEcmpANMoPrD+W1r1K6Vx7iNm+AQmETU1Xr2t+n8nzkV9t6xh3w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/chalk/-/chalk-5.0.1.tgz} + name: chalk + version: 5.0.1 + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + dev: true + registry.npmmirror.com/char-regex/1.0.2: resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/char-regex/-/char-regex-1.0.2.tgz} name: char-regex @@ -5456,6 +5542,13 @@ packages: engines: {node: '>=6'} dev: true + registry.npmmirror.com/cli-boxes/3.0.0: + resolution: {integrity: sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/cli-boxes/-/cli-boxes-3.0.0.tgz} + name: cli-boxes + version: 3.0.0 + engines: {node: '>=10'} + dev: true + registry.npmmirror.com/cli-cursor/2.1.0: resolution: {integrity: sha512-8lgKz8LmCRYZZQDpRyT2m5rKJ08TnU4tR9FFFW2rxpxR1FzWi4PQ/NfyODchAatHaUgnSPVcx/R5w6NuTBzFiw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/cli-cursor/-/cli-cursor-2.1.0.tgz} name: cli-cursor @@ -5508,6 +5601,17 @@ packages: is-wsl: registry.npmmirror.com/is-wsl/2.2.0 dev: true + registry.npmmirror.com/clipboardy/3.0.0: + resolution: {integrity: sha512-Su+uU5sr1jkUy1sGRpLKjKrvEOVXgSgiSInwa/qeID6aJ07yh+5NWc3h2QfjHjBnfX4LhtFcuAWKUsJ3r+fjbg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/clipboardy/-/clipboardy-3.0.0.tgz} + name: clipboardy + version: 3.0.0 + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + arch: registry.npmmirror.com/arch/2.2.0 + execa: registry.npmmirror.com/execa/5.1.1 + is-wsl: registry.npmmirror.com/is-wsl/2.2.0 + dev: true + registry.npmmirror.com/cliui/5.0.0: resolution: {integrity: sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/cliui/-/cliui-5.0.0.tgz} name: cliui @@ -5744,7 +5848,6 @@ packages: vary: registry.npmmirror.com/vary/1.1.2 transitivePeerDependencies: - supports-color - dev: false registry.npmmirror.com/compression/1.7.4_supports-color@6.1.0: resolution: {integrity: sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/compression/-/compression-1.7.4.tgz} @@ -5988,6 +6091,13 @@ packages: version: 1.0.0 dev: true + registry.npmmirror.com/content-disposition/0.5.2: + resolution: {integrity: sha512-kRGRZw3bLlFISDBgwTSA1TMBFN6J6GWDeubmDE3AF+3+yXL8hTWv8r5rkLbqYXY4RjPk/EzHnClI3zQf1cFmHA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/content-disposition/-/content-disposition-0.5.2.tgz} + name: content-disposition + version: 0.5.2 + engines: {node: '>= 0.6'} + dev: true + registry.npmmirror.com/content-disposition/0.5.4: resolution: {integrity: sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/content-disposition/-/content-disposition-0.5.4.tgz} name: content-disposition @@ -6585,6 +6695,13 @@ packages: regexp.prototype.flags: registry.npmmirror.com/regexp.prototype.flags/1.4.3 dev: true + registry.npmmirror.com/deep-extend/0.6.0: + resolution: {integrity: sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/deep-extend/-/deep-extend-0.6.0.tgz} + name: deep-extend + version: 0.6.0 + engines: {node: '>=4.0.0'} + dev: true + registry.npmmirror.com/deep-is/0.1.4: resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/deep-is/-/deep-is-0.1.4.tgz} name: deep-is @@ -6944,6 +7061,12 @@ packages: stream-shift: registry.npmmirror.com/stream-shift/1.0.1 dev: true + registry.npmmirror.com/eastasianwidth/0.2.0: + resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz} + name: eastasianwidth + version: 0.2.0 + dev: true + registry.npmmirror.com/easy-stack/1.0.1: resolution: {integrity: sha512-wK2sCs4feiiJeFXn3zvY0p41mdU5VUgbgs1rNsc/y5ngFUijdWd+iIN8eoyuZHKB8xN6BL4PdWmzqFmxNg6V2w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/easy-stack/-/easy-stack-1.0.1.tgz} name: easy-stack @@ -7042,6 +7165,12 @@ packages: name: emoji-regex version: 8.0.0 + registry.npmmirror.com/emoji-regex/9.2.2: + resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/emoji-regex/-/emoji-regex-9.2.2.tgz} + name: emoji-regex + version: 9.2.2 + dev: true + registry.npmmirror.com/emojis-list/2.1.0: resolution: {integrity: sha512-knHEZMgs8BB+MInokmNTg/OyPlAddghe1YBgNwJBc5zsJi/uyIcXoSDsL/W9ymOsBoBGdPIHXYJ9+qKFwRwDng==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/emojis-list/-/emojis-list-2.1.0.tgz} name: emojis-list @@ -8297,6 +8426,14 @@ packages: version: 2.0.6 dev: true + registry.npmmirror.com/fast-url-parser/1.1.3: + resolution: {integrity: sha512-5jOCVXADYNuRkKFzNJ0dCCewsZiYo0dz8QNYljkOpFC6r2U4OBmKtvm/Tsuh4w1YYdDqDb31a8TVhBJ2OJKdqQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/fast-url-parser/-/fast-url-parser-1.1.3.tgz} + name: fast-url-parser + version: 1.1.3 + dependencies: + punycode: registry.npmmirror.com/punycode/1.4.1 + dev: true + registry.npmmirror.com/fastq/1.13.0: resolution: {integrity: sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/fastq/-/fastq-1.13.0.tgz} name: fastq @@ -9748,6 +9885,12 @@ packages: name: inherits version: 2.0.4 + registry.npmmirror.com/ini/1.3.8: + resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/ini/-/ini-1.3.8.tgz} + name: ini + version: 1.3.8 + dev: true + registry.npmmirror.com/internal-ip/4.3.0: resolution: {integrity: sha512-S1zBo1D6zcsyuC6PMmY5+55YMILQ9av8lotMx447Bq6SAgo/sDK6y6uUKmuYhW7eacnIhFfsPmCNYdDzsnnDCg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/internal-ip/-/internal-ip-4.3.0.tgz} name: internal-ip @@ -10161,6 +10304,13 @@ packages: isobject: registry.npmmirror.com/isobject/3.0.1 dev: true + registry.npmmirror.com/is-port-reachable/4.0.0: + resolution: {integrity: sha512-9UoipoxYmSk6Xy7QFgRv2HDyaysmgSG75TFQs6S+3pDM7ZhKTF/bskZV+0UlABHzKjNVhPjYCLfeZUEg1wXxig==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/is-port-reachable/-/is-port-reachable-4.0.0.tgz} + name: is-port-reachable + version: 4.0.0 + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dev: true + registry.npmmirror.com/is-regex/1.1.4: resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/is-regex/-/is-regex-1.1.4.tgz} name: is-regex @@ -11625,12 +11775,28 @@ packages: brorand: registry.npmmirror.com/brorand/1.1.0 dev: true + registry.npmmirror.com/mime-db/1.33.0: + resolution: {integrity: sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/mime-db/-/mime-db-1.33.0.tgz} + name: mime-db + version: 1.33.0 + engines: {node: '>= 0.6'} + dev: true + registry.npmmirror.com/mime-db/1.52.0: resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz} name: mime-db version: 1.52.0 engines: {node: '>= 0.6'} + registry.npmmirror.com/mime-types/2.1.18: + resolution: {integrity: sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/mime-types/-/mime-types-2.1.18.tgz} + name: mime-types + version: 2.1.18 + engines: {node: '>= 0.6'} + dependencies: + mime-db: registry.npmmirror.com/mime-db/1.33.0 + dev: true + registry.npmmirror.com/mime-types/2.1.35: resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz} name: mime-types @@ -12796,6 +12962,12 @@ packages: version: 0.1.7 dev: true + registry.npmmirror.com/path-to-regexp/2.2.1: + resolution: {integrity: sha512-gu9bD6Ta5bwGrrU8muHzVOBFFREpp2iRkVfhBJahwJ6p6Xw20SjT0MxLnwkjOibQmGSYhiUnf2FLe7k+jcFmGQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/path-to-regexp/-/path-to-regexp-2.2.1.tgz} + name: path-to-regexp + version: 2.2.1 + dev: true + registry.npmmirror.com/path-type/3.0.0: resolution: {integrity: sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/path-type/-/path-type-3.0.0.tgz} name: path-type @@ -13689,6 +13861,13 @@ packages: safe-buffer: registry.npmmirror.com/safe-buffer/5.2.1 dev: true + registry.npmmirror.com/range-parser/1.2.0: + resolution: {integrity: sha512-kA5WQoNVo4t9lNx2kQNFCxKeBl5IbbSNBl1M/tLkw9WCn+hxNBAW5Qh8gdhs63CJnhjJ2zQWFoqPJP2sK1AV5A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/range-parser/-/range-parser-1.2.0.tgz} + name: range-parser + version: 1.2.0 + engines: {node: '>= 0.6'} + dev: true + registry.npmmirror.com/range-parser/1.2.1: resolution: {integrity: sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/range-parser/-/range-parser-1.2.1.tgz} name: range-parser @@ -13708,6 +13887,18 @@ packages: unpipe: registry.npmmirror.com/unpipe/1.0.0 dev: true + registry.npmmirror.com/rc/1.2.8: + resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/rc/-/rc-1.2.8.tgz} + name: rc + version: 1.2.8 + hasBin: true + dependencies: + deep-extend: registry.npmmirror.com/deep-extend/0.6.0 + ini: registry.npmmirror.com/ini/1.3.8 + minimist: registry.npmmirror.com/minimist/1.2.7 + strip-json-comments: registry.npmmirror.com/strip-json-comments/2.0.1 + dev: true + registry.npmmirror.com/rd/2.0.1: resolution: {integrity: sha512-/XdKU4UazUZTXFmI0dpABt8jSXPWcEyaGdk340KdHnsEOdkTctlX23aAK7ChQDn39YGNlAJr1M5uvaKt4QnpNw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/rd/-/rd-2.0.1.tgz} name: rd @@ -13909,6 +14100,24 @@ packages: unicode-match-property-value-ecmascript: registry.npmmirror.com/unicode-match-property-value-ecmascript/2.1.0 dev: true + registry.npmmirror.com/registry-auth-token/3.3.2: + resolution: {integrity: sha512-JL39c60XlzCVgNrO+qq68FoNb56w/m7JYvGR2jT5iR1xBrUA3Mfx5Twk5rqTThPmQKMWydGmq8oFtDlxfrmxnQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/registry-auth-token/-/registry-auth-token-3.3.2.tgz} + name: registry-auth-token + version: 3.3.2 + dependencies: + rc: registry.npmmirror.com/rc/1.2.8 + safe-buffer: registry.npmmirror.com/safe-buffer/5.2.1 + dev: true + + registry.npmmirror.com/registry-url/3.1.0: + resolution: {integrity: sha512-ZbgR5aZEdf4UKZVBPYIgaglBmSF2Hi94s2PcIHhRGFjKYu+chjJdYfHn4rt3hB6eCKLJ8giVIIfgMa1ehDfZKA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/registry-url/-/registry-url-3.1.0.tgz} + name: registry-url + version: 3.1.0 + engines: {node: '>=0.10.0'} + dependencies: + rc: registry.npmmirror.com/rc/1.2.8 + dev: true + registry.npmmirror.com/regjsgen/0.5.2: resolution: {integrity: sha512-OFFT3MfrH90xIW8OOSyUrk6QHD5E9JOTeGodiJeBS3J6IwlgzJMNE/1bZklWz5oTg+9dCMyEetclvCVXOPoN3A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/regjsgen/-/regjsgen-0.5.2.tgz} name: regjsgen @@ -14423,6 +14632,21 @@ packages: randombytes: registry.npmmirror.com/randombytes/2.1.0 dev: true + registry.npmmirror.com/serve-handler/6.1.5: + resolution: {integrity: sha512-ijPFle6Hwe8zfmBxJdE+5fta53fdIY0lHISJvuikXB3VYFafRjMRpOffSPvCYsbKyBA7pvy9oYr/BT1O3EArlg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/serve-handler/-/serve-handler-6.1.5.tgz} + name: serve-handler + version: 6.1.5 + dependencies: + bytes: registry.npmmirror.com/bytes/3.0.0 + content-disposition: registry.npmmirror.com/content-disposition/0.5.2 + fast-url-parser: registry.npmmirror.com/fast-url-parser/1.1.3 + mime-types: registry.npmmirror.com/mime-types/2.1.18 + minimatch: registry.npmmirror.com/minimatch/3.1.2 + path-is-inside: registry.npmmirror.com/path-is-inside/1.0.2 + path-to-regexp: registry.npmmirror.com/path-to-regexp/2.2.1 + range-parser: registry.npmmirror.com/range-parser/1.2.0 + dev: true + registry.npmmirror.com/serve-index/1.9.1_supports-color@6.1.0: resolution: {integrity: sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/serve-index/-/serve-index-1.9.1.tgz} id: registry.npmmirror.com/serve-index/1.9.1 @@ -14470,6 +14694,28 @@ packages: - supports-color dev: true + registry.npmmirror.com/serve/14.1.2: + resolution: {integrity: sha512-luwVfJwbeE7dhCKeRU0vIBpt4bXdbAfzwsWJIQ5eqrIW2e+4nLWXbSlZ0WzelSFHQq+FlueOW6dr90jEewS9zw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/serve/-/serve-14.1.2.tgz} + name: serve + version: 14.1.2 + engines: {node: '>= 14'} + hasBin: true + dependencies: + '@zeit/schemas': registry.npmmirror.com/@zeit/schemas/2.21.0 + ajv: registry.npmmirror.com/ajv/8.11.0 + arg: registry.npmmirror.com/arg/5.0.2 + boxen: registry.npmmirror.com/boxen/7.0.0 + chalk: registry.npmmirror.com/chalk/5.0.1 + chalk-template: registry.npmmirror.com/chalk-template/0.4.0 + clipboardy: registry.npmmirror.com/clipboardy/3.0.0 + compression: registry.npmmirror.com/compression/1.7.4 + is-port-reachable: registry.npmmirror.com/is-port-reachable/4.0.0 + serve-handler: registry.npmmirror.com/serve-handler/6.1.5 + update-check: registry.npmmirror.com/update-check/1.5.4 + transitivePeerDependencies: + - supports-color + dev: true + registry.npmmirror.com/set-blocking/2.0.0: resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/set-blocking/-/set-blocking-2.0.0.tgz} name: set-blocking @@ -15116,6 +15362,17 @@ packages: is-fullwidth-code-point: registry.npmmirror.com/is-fullwidth-code-point/3.0.0 strip-ansi: registry.npmmirror.com/strip-ansi/6.0.1 + registry.npmmirror.com/string-width/5.1.2: + resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/string-width/-/string-width-5.1.2.tgz} + name: string-width + version: 5.1.2 + engines: {node: '>=12'} + dependencies: + eastasianwidth: registry.npmmirror.com/eastasianwidth/0.2.0 + emoji-regex: registry.npmmirror.com/emoji-regex/9.2.2 + strip-ansi: registry.npmmirror.com/strip-ansi/7.0.1 + dev: true + registry.npmmirror.com/string.prototype.trimend/1.0.6: resolution: {integrity: sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz} name: string.prototype.trimend @@ -15176,6 +15433,15 @@ packages: dependencies: ansi-regex: registry.npmmirror.com/ansi-regex/5.0.1 + registry.npmmirror.com/strip-ansi/7.0.1: + resolution: {integrity: sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/strip-ansi/-/strip-ansi-7.0.1.tgz} + name: strip-ansi + version: 7.0.1 + engines: {node: '>=12'} + dependencies: + ansi-regex: registry.npmmirror.com/ansi-regex/6.0.1 + dev: true + registry.npmmirror.com/strip-bom/4.0.0: resolution: {integrity: sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/strip-bom/-/strip-bom-4.0.0.tgz} name: strip-bom @@ -15212,6 +15478,13 @@ packages: min-indent: registry.npmmirror.com/min-indent/1.0.1 dev: true + registry.npmmirror.com/strip-json-comments/2.0.1: + resolution: {integrity: sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz} + name: strip-json-comments + version: 2.0.1 + engines: {node: '>=0.10.0'} + dev: true + registry.npmmirror.com/strip-json-comments/3.1.1: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz} name: strip-json-comments @@ -15778,6 +16051,13 @@ packages: engines: {node: '>=8'} dev: true + registry.npmmirror.com/type-fest/2.19.0: + resolution: {integrity: sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/type-fest/-/type-fest-2.19.0.tgz} + name: type-fest + version: 2.19.0 + engines: {node: '>=12.20'} + dev: true + registry.npmmirror.com/type-is/1.6.18: resolution: {integrity: sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/type-is/-/type-is-1.6.18.tgz} name: type-is @@ -15973,6 +16253,15 @@ packages: picocolors: registry.npmmirror.com/picocolors/1.0.0 dev: true + registry.npmmirror.com/update-check/1.5.4: + resolution: {integrity: sha512-5YHsflzHP4t1G+8WGPlvKbJEbAJGCgw+Em+dGR1KmBUbr1J36SJBqlHLjR7oob7sco5hWHGQVcr9B2poIVDDTQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/update-check/-/update-check-1.5.4.tgz} + name: update-check + version: 1.5.4 + dependencies: + registry-auth-token: registry.npmmirror.com/registry-auth-token/3.3.2 + registry-url: registry.npmmirror.com/registry-url/3.1.0 + dev: true + registry.npmmirror.com/upper-case/1.1.3: resolution: {integrity: sha512-WRbjgmYzgXkCV7zNVpy5YgrHgbBv126rMALQQMrmzOVC4GM2waQ9x7xtm8VU+1yF2kWyPzI9zbZ48n4vSxwfSA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/upper-case/-/upper-case-1.1.3.tgz} name: upper-case @@ -16819,6 +17108,15 @@ packages: dependencies: string-width: registry.npmmirror.com/string-width/4.2.3 + registry.npmmirror.com/widest-line/4.0.1: + resolution: {integrity: sha512-o0cyEG0e8GPzT4iGHphIOh0cJOV8fivsXxddQasHPHfoZf1ZexrfeA21w2NaEN1RHE+fXlfISmOE8R9N3u3Qig==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/widest-line/-/widest-line-4.0.1.tgz} + name: widest-line + version: 4.0.1 + engines: {node: '>=12'} + dependencies: + string-width: registry.npmmirror.com/string-width/5.1.2 + dev: true + registry.npmmirror.com/windows-release/5.0.1: resolution: {integrity: sha512-y1xFdFvdMiDXI3xiOhMbJwt1Y7dUxidha0CWPs1NgjZIjZANTcX7+7bMqNjuezhzb8s5JGEiBAbQjQQYYy7ulw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/windows-release/-/windows-release-5.0.1.tgz} name: windows-release @@ -16883,6 +17181,17 @@ packages: strip-ansi: registry.npmmirror.com/strip-ansi/6.0.1 dev: true + registry.npmmirror.com/wrap-ansi/8.0.1: + resolution: {integrity: sha512-QFF+ufAqhoYHvoHdajT/Po7KoXVBPXS2bgjIam5isfWJPfIOnQZ50JtUiVvCv/sjgacf3yRrt2ZKUZ/V4itN4g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-8.0.1.tgz} + name: wrap-ansi + version: 8.0.1 + engines: {node: '>=12'} + dependencies: + ansi-styles: registry.npmmirror.com/ansi-styles/6.2.1 + string-width: registry.npmmirror.com/string-width/5.1.2 + strip-ansi: registry.npmmirror.com/strip-ansi/7.0.1 + dev: true + registry.npmmirror.com/wrappy/1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/wrappy/-/wrappy-1.0.2.tgz} name: wrappy diff --git a/src/utils/request.ts b/src/utils/request.ts index 5584a5dfd3045..5b84d7edb7f44 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -1,5 +1,6 @@ export const getRequestBaseUrl = (): string => { - return process.env.VUE_APP_API_BASE_URL || 'http://localhost:8000'; + // @ts-ignore + return import.meta.env.VUE_APP_API_BASE_URL || 'http://localhost:8000'; }; export const getEmptyResponseWithListData = (): ResponseWithListData => {