修复任务管理创建视图 placeholder,更新 npm 包

This commit is contained in:
whyour 2023-09-15 21:27:53 +08:00
parent 0511a4af0d
commit 042d7d3b8e
13 changed files with 101 additions and 103 deletions

View File

@ -1,5 +1,5 @@
import { Request, Response } from 'express'; import { Request, Response } from 'express';
import { pick } from 'lodash'; import pick from 'lodash/pick';
let pickedEnv: Record<string, string>; let pickedEnv: Record<string, string>;

2
back/index.d.ts vendored
View File

@ -3,3 +3,5 @@ declare namespace Express {
platform: 'desktop' | 'mobile'; platform: 'desktop' | 'mobile';
} }
} }
declare module 'pstree.remy';

View File

@ -1,6 +1,6 @@
import { Container } from 'typedi'; import { Container } from 'typedi';
import SystemService from '../services/system'; import SystemService from '../services/system';
import ScheduleService from '../services/schedule'; import ScheduleService, { ScheduleTaskType } from '../services/schedule';
import SubscriptionService from '../services/subscription'; import SubscriptionService from '../services/subscription';
import config from '../config'; import config from '../config';
import { fileExist } from '../config/util'; import { fileExist } from '../config/util';
@ -22,7 +22,7 @@ export default async () => {
id: NaN, id: NaN,
name: '生成token', name: '生成token',
command: tokenCommand, command: tokenCommand,
}; } as ScheduleTaskType;
await scheduleService.cancelIntervalTask(cron); await scheduleService.cancelIntervalTask(cron);
scheduleService.createIntervalTask(cron, { scheduleService.createIntervalTask(cron, {
days: 28, days: 28,

View File

@ -12,7 +12,7 @@ import dayjs from 'dayjs';
import taskLimit from '../shared/pLimit'; import taskLimit from '../shared/pLimit';
import { spawn } from 'cross-spawn'; import { spawn } from 'cross-spawn';
interface ScheduleTaskType { export interface ScheduleTaskType {
id: number; id: number;
command: string; command: string;
name?: string; name?: string;

View File

@ -28,7 +28,7 @@ import taskLimit from '../shared/pLimit';
import tar from 'tar'; import tar from 'tar';
import path from 'path'; import path from 'path';
import fs from 'fs'; import fs from 'fs';
import { sum } from 'lodash'; import sum from 'lodash/sum';
@Service() @Service()
export default class SystemService { export default class SystemService {
@ -84,7 +84,7 @@ export default class SystemService {
}); });
if (info.logRemoveFrequency) { if (info.logRemoveFrequency) {
const cron = { const cron = {
id: result.id, id: result.id || NaN,
name: '删除日志', name: '删除日志',
command: `ql rmlog ${info.logRemoveFrequency}`, command: `ql rmlog ${info.logRemoveFrequency}`,
}; };

View File

@ -1,6 +1,5 @@
{ {
"watch": ["back", ".env"], "watch": ["back", ".env"],
"ext": "js,ts,json", "ext": "js,ts,json",
"ignore": ["src/**/*.spec.ts"], "exec": "ts-node -P tsconfig.back.json ./back/app.ts"
"exec": "ts-node --transpile-only ./back/app.ts"
} }

View File

@ -4,8 +4,8 @@
"start": "concurrently -n w: npm:start:*", "start": "concurrently -n w: npm:start:*",
"start:front": "max dev", "start:front": "max dev",
"start:back": "nodemon", "start:back": "nodemon",
"start:public": "ts-node --transpile-only ./back/public.ts", "start:public": "ts-node -P tsconfig.back.json ./back/public.ts",
"start:rpc": "ts-node --transpile-only ./back/schedule/index.ts", "start:rpc": "ts-node -P tsconfig.back.json ./back/schedule/index.ts",
"build:front": "max build", "build:front": "max build",
"build:back": "tsc -p tsconfig.back.json", "build:back": "tsc -p tsconfig.back.json",
"panel": "npm run build:back && node static/build/app.js", "panel": "npm run build:back && node static/build/app.js",
@ -69,11 +69,11 @@
"dotenv": "^16.0.0", "dotenv": "^16.0.0",
"express": "^4.17.3", "express": "^4.17.3",
"express-jwt": "^6.1.1", "express-jwt": "^6.1.1",
"express-rate-limit": "^6.7.0", "express-rate-limit": "^7.0.0",
"express-urlrewrite": "^1.4.0", "express-urlrewrite": "^1.4.0",
"form-data": "^4.0.0", "form-data": "^4.0.0",
"got": "^11.8.2", "got": "^11.8.2",
"hpagent": "^0.1.2", "hpagent": "^1.2.0",
"http-proxy-middleware": "^2.0.6", "http-proxy-middleware": "^2.0.6",
"iconv-lite": "^0.6.3", "iconv-lite": "^0.6.3",
"js-yaml": "^4.1.0", "js-yaml": "^4.1.0",
@ -162,7 +162,7 @@
"ts-proto": "^1.146.0", "ts-proto": "^1.146.0",
"tslib": "^2.4.0", "tslib": "^2.4.0",
"tsx": "^3.12.3", "tsx": "^3.12.3",
"typescript": "4.8.4", "typescript": "5.2.2",
"vh-check": "^2.0.5", "vh-check": "^2.0.5",
"virtualizedtableforantd4": "1.3.0", "virtualizedtableforantd4": "1.3.0",
"webpack": "^5.70.0", "webpack": "^5.70.0",

View File

@ -44,8 +44,8 @@ dependencies:
specifier: ^6.1.1 specifier: ^6.1.1
version: 6.1.2 version: 6.1.2
express-rate-limit: express-rate-limit:
specifier: ^6.7.0 specifier: ^7.0.0
version: 6.7.0(express@4.18.2) version: 7.0.0(express@4.18.2)
express-urlrewrite: express-urlrewrite:
specifier: ^1.4.0 specifier: ^1.4.0
version: 1.4.0 version: 1.4.0
@ -56,8 +56,8 @@ dependencies:
specifier: ^11.8.2 specifier: ^11.8.2
version: 11.8.6 version: 11.8.6
hpagent: hpagent:
specifier: ^0.1.2 specifier: ^1.2.0
version: 0.1.2 version: 1.2.0
http-proxy-middleware: http-proxy-middleware:
specifier: ^2.0.6 specifier: ^2.0.6
version: 2.0.6(@types/express@4.17.17) version: 2.0.6(@types/express@4.17.17)
@ -224,7 +224,7 @@ devDependencies:
version: 4.21.9(@babel/runtime@7.22.3)(@codemirror/autocomplete@6.9.0)(@codemirror/language@6.9.0)(@codemirror/lint@6.4.0)(@codemirror/search@6.5.1)(@codemirror/state@6.2.1)(@codemirror/theme-one-dark@6.1.2)(@codemirror/view@6.16.0)(codemirror@6.0.1)(react-dom@18.2.0)(react@18.2.0) version: 4.21.9(@babel/runtime@7.22.3)(@codemirror/autocomplete@6.9.0)(@codemirror/language@6.9.0)(@codemirror/lint@6.4.0)(@codemirror/search@6.5.1)(@codemirror/state@6.2.1)(@codemirror/theme-one-dark@6.1.2)(@codemirror/view@6.16.0)(codemirror@6.0.1)(react-dom@18.2.0)(react@18.2.0)
'@umijs/max': '@umijs/max':
specifier: ^4.0.72 specifier: ^4.0.72
version: 4.0.72(@types/node@17.0.45)(@types/react-dom@18.2.4)(@types/react@18.2.8)(prettier@2.8.8)(react-dom@18.2.0)(react@18.2.0)(sockjs-client@1.6.1)(typescript@4.8.4)(webpack@5.85.1) version: 4.0.72(@types/node@17.0.45)(@types/react-dom@18.2.4)(@types/react@18.2.8)(prettier@2.8.8)(react-dom@18.2.0)(react@18.2.0)(sockjs-client@1.6.1)(typescript@5.2.2)(webpack@5.85.1)
'@umijs/ssr-darkreader': '@umijs/ssr-darkreader':
specifier: ^4.9.45 specifier: ^4.9.45
version: 4.9.45 version: 4.9.45
@ -308,7 +308,7 @@ devDependencies:
version: 1.6.1 version: 1.6.1
ts-node: ts-node:
specifier: ^10.6.0 specifier: ^10.6.0
version: 10.9.1(@types/node@17.0.45)(typescript@4.8.4) version: 10.9.1(@types/node@17.0.45)(typescript@5.2.2)
ts-proto: ts-proto:
specifier: ^1.146.0 specifier: ^1.146.0
version: 1.148.2 version: 1.148.2
@ -319,8 +319,8 @@ devDependencies:
specifier: ^3.12.3 specifier: ^3.12.3
version: 3.12.7 version: 3.12.7
typescript: typescript:
specifier: 4.8.4 specifier: 5.2.2
version: 4.8.4 version: 5.2.2
vh-check: vh-check:
specifier: ^2.0.5 specifier: ^2.0.5
version: 2.0.5 version: 2.0.5
@ -5117,7 +5117,7 @@ packages:
'@types/yargs-parser': 21.0.0 '@types/yargs-parser': 21.0.0
dev: true dev: true
/@typescript-eslint/eslint-plugin@5.48.1(@typescript-eslint/parser@5.48.1)(eslint@8.35.0)(typescript@4.8.4): /@typescript-eslint/eslint-plugin@5.48.1(@typescript-eslint/parser@5.48.1)(eslint@8.35.0)(typescript@5.2.2):
resolution: {integrity: sha512-9nY5K1Rp2ppmpb9s9S2aBiF3xo5uExCehMDmYmmFqqyxgenbHJ3qbarcLt4ITgaD6r/2ypdlcFRdcuVPnks+fQ==} resolution: {integrity: sha512-9nY5K1Rp2ppmpb9s9S2aBiF3xo5uExCehMDmYmmFqqyxgenbHJ3qbarcLt4ITgaD6r/2ypdlcFRdcuVPnks+fQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies: peerDependencies:
@ -5130,23 +5130,23 @@ packages:
typescript: typescript:
optional: true optional: true
dependencies: dependencies:
'@typescript-eslint/parser': 5.48.1(eslint@8.35.0)(typescript@4.8.4) '@typescript-eslint/parser': 5.48.1(eslint@8.35.0)(typescript@5.2.2)
'@typescript-eslint/scope-manager': 5.48.1 '@typescript-eslint/scope-manager': 5.48.1
'@typescript-eslint/type-utils': 5.48.1(eslint@8.35.0)(typescript@4.8.4) '@typescript-eslint/type-utils': 5.48.1(eslint@8.35.0)(typescript@5.2.2)
'@typescript-eslint/utils': 5.48.1(eslint@8.35.0)(typescript@4.8.4) '@typescript-eslint/utils': 5.48.1(eslint@8.35.0)(typescript@5.2.2)
debug: 4.3.4 debug: 4.3.4
eslint: 8.35.0 eslint: 8.35.0
ignore: 5.2.4 ignore: 5.2.4
natural-compare-lite: 1.4.0 natural-compare-lite: 1.4.0
regexpp: 3.2.0 regexpp: 3.2.0
semver: 7.5.1 semver: 7.5.1
tsutils: 3.21.0(typescript@4.8.4) tsutils: 3.21.0(typescript@5.2.2)
typescript: 4.8.4 typescript: 5.2.2
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
dev: true dev: true
/@typescript-eslint/parser@5.48.1(eslint@8.35.0)(typescript@4.8.4): /@typescript-eslint/parser@5.48.1(eslint@8.35.0)(typescript@5.2.2):
resolution: {integrity: sha512-4yg+FJR/V1M9Xoq56SF9Iygqm+r5LMXvheo6DQ7/yUWynQ4YfCRnsKuRgqH4EQ5Ya76rVwlEpw4Xu+TgWQUcdA==} resolution: {integrity: sha512-4yg+FJR/V1M9Xoq56SF9Iygqm+r5LMXvheo6DQ7/yUWynQ4YfCRnsKuRgqH4EQ5Ya76rVwlEpw4Xu+TgWQUcdA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies: peerDependencies:
@ -5160,10 +5160,10 @@ packages:
dependencies: dependencies:
'@typescript-eslint/scope-manager': 5.48.1 '@typescript-eslint/scope-manager': 5.48.1
'@typescript-eslint/types': 5.48.1 '@typescript-eslint/types': 5.48.1
'@typescript-eslint/typescript-estree': 5.48.1(typescript@4.8.4) '@typescript-eslint/typescript-estree': 5.48.1(typescript@5.2.2)
debug: 4.3.4 debug: 4.3.4
eslint: 8.35.0 eslint: 8.35.0
typescript: 4.8.4 typescript: 5.2.2
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
dev: true dev: true
@ -5184,7 +5184,7 @@ packages:
'@typescript-eslint/visitor-keys': 5.59.9 '@typescript-eslint/visitor-keys': 5.59.9
dev: true dev: true
/@typescript-eslint/type-utils@5.48.1(eslint@8.35.0)(typescript@4.8.4): /@typescript-eslint/type-utils@5.48.1(eslint@8.35.0)(typescript@5.2.2):
resolution: {integrity: sha512-Hyr8HU8Alcuva1ppmqSYtM/Gp0q4JOp1F+/JH5D1IZm/bUBrV0edoewQZiEc1r6I8L4JL21broddxK8HAcZiqQ==} resolution: {integrity: sha512-Hyr8HU8Alcuva1ppmqSYtM/Gp0q4JOp1F+/JH5D1IZm/bUBrV0edoewQZiEc1r6I8L4JL21broddxK8HAcZiqQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies: peerDependencies:
@ -5196,12 +5196,12 @@ packages:
typescript: typescript:
optional: true optional: true
dependencies: dependencies:
'@typescript-eslint/typescript-estree': 5.48.1(typescript@4.8.4) '@typescript-eslint/typescript-estree': 5.48.1(typescript@5.2.2)
'@typescript-eslint/utils': 5.48.1(eslint@8.35.0)(typescript@4.8.4) '@typescript-eslint/utils': 5.48.1(eslint@8.35.0)(typescript@5.2.2)
debug: 4.3.4 debug: 4.3.4
eslint: 8.35.0 eslint: 8.35.0
tsutils: 3.21.0(typescript@4.8.4) tsutils: 3.21.0(typescript@5.2.2)
typescript: 4.8.4 typescript: 5.2.2
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
dev: true dev: true
@ -5216,7 +5216,7 @@ packages:
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dev: true dev: true
/@typescript-eslint/typescript-estree@5.48.1(typescript@4.8.4): /@typescript-eslint/typescript-estree@5.48.1(typescript@5.2.2):
resolution: {integrity: sha512-Hut+Osk5FYr+sgFh8J/FHjqX6HFcDzTlWLrFqGoK5kVUN3VBHF/QzZmAsIXCQ8T/W9nQNBTqalxi1P3LSqWnRA==} resolution: {integrity: sha512-Hut+Osk5FYr+sgFh8J/FHjqX6HFcDzTlWLrFqGoK5kVUN3VBHF/QzZmAsIXCQ8T/W9nQNBTqalxi1P3LSqWnRA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies: peerDependencies:
@ -5231,13 +5231,13 @@ packages:
globby: 11.1.0 globby: 11.1.0
is-glob: 4.0.3 is-glob: 4.0.3
semver: 7.5.1 semver: 7.5.1
tsutils: 3.21.0(typescript@4.8.4) tsutils: 3.21.0(typescript@5.2.2)
typescript: 4.8.4 typescript: 5.2.2
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
dev: true dev: true
/@typescript-eslint/typescript-estree@5.59.9(typescript@4.8.4): /@typescript-eslint/typescript-estree@5.59.9(typescript@5.2.2):
resolution: {integrity: sha512-pmM0/VQ7kUhd1QyIxgS+aRvMgw+ZljB3eDb+jYyp6d2bC0mQWLzUDF+DLwCTkQ3tlNyVsvZRXjFyV0LkU/aXjA==} resolution: {integrity: sha512-pmM0/VQ7kUhd1QyIxgS+aRvMgw+ZljB3eDb+jYyp6d2bC0mQWLzUDF+DLwCTkQ3tlNyVsvZRXjFyV0LkU/aXjA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies: peerDependencies:
@ -5252,13 +5252,13 @@ packages:
globby: 11.1.0 globby: 11.1.0
is-glob: 4.0.3 is-glob: 4.0.3
semver: 7.5.1 semver: 7.5.1
tsutils: 3.21.0(typescript@4.8.4) tsutils: 3.21.0(typescript@5.2.2)
typescript: 4.8.4 typescript: 5.2.2
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
dev: true dev: true
/@typescript-eslint/utils@5.48.1(eslint@8.35.0)(typescript@4.8.4): /@typescript-eslint/utils@5.48.1(eslint@8.35.0)(typescript@5.2.2):
resolution: {integrity: sha512-SmQuSrCGUOdmGMwivW14Z0Lj8dxG1mOFZ7soeJ0TQZEJcs3n5Ndgkg0A4bcMFzBELqLJ6GTHnEU+iIoaD6hFGA==} resolution: {integrity: sha512-SmQuSrCGUOdmGMwivW14Z0Lj8dxG1mOFZ7soeJ0TQZEJcs3n5Ndgkg0A4bcMFzBELqLJ6GTHnEU+iIoaD6hFGA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies: peerDependencies:
@ -5271,7 +5271,7 @@ packages:
'@types/semver': 7.5.0 '@types/semver': 7.5.0
'@typescript-eslint/scope-manager': 5.48.1 '@typescript-eslint/scope-manager': 5.48.1
'@typescript-eslint/types': 5.48.1 '@typescript-eslint/types': 5.48.1
'@typescript-eslint/typescript-estree': 5.48.1(typescript@4.8.4) '@typescript-eslint/typescript-estree': 5.48.1(typescript@5.2.2)
eslint: 8.35.0 eslint: 8.35.0
eslint-scope: 5.1.1 eslint-scope: 5.1.1
eslint-utils: 3.0.0(eslint@8.35.0) eslint-utils: 3.0.0(eslint@8.35.0)
@ -5281,7 +5281,7 @@ packages:
- typescript - typescript
dev: true dev: true
/@typescript-eslint/utils@5.59.9(eslint@8.35.0)(typescript@4.8.4): /@typescript-eslint/utils@5.59.9(eslint@8.35.0)(typescript@5.2.2):
resolution: {integrity: sha512-1PuMYsju/38I5Ggblaeb98TOoUvjhRvLpLa1DoTOFaLWqaXl/1iQ1eGurTXgBY58NUdtfTXKP5xBq7q9NDaLKg==} resolution: {integrity: sha512-1PuMYsju/38I5Ggblaeb98TOoUvjhRvLpLa1DoTOFaLWqaXl/1iQ1eGurTXgBY58NUdtfTXKP5xBq7q9NDaLKg==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies: peerDependencies:
@ -5295,7 +5295,7 @@ packages:
'@types/semver': 7.5.0 '@types/semver': 7.5.0
'@typescript-eslint/scope-manager': 5.59.9 '@typescript-eslint/scope-manager': 5.59.9
'@typescript-eslint/types': 5.59.9 '@typescript-eslint/types': 5.59.9
'@typescript-eslint/typescript-estree': 5.59.9(typescript@4.8.4) '@typescript-eslint/typescript-estree': 5.59.9(typescript@5.2.2)
eslint: 8.35.0 eslint: 8.35.0
eslint-scope: 5.1.1 eslint-scope: 5.1.1
semver: 7.5.1 semver: 7.5.1
@ -5486,7 +5486,7 @@ packages:
- terser - terser
dev: true dev: true
/@umijs/bundler-webpack@4.0.72(sockjs-client@1.6.1)(typescript@4.8.4)(webpack@5.85.1): /@umijs/bundler-webpack@4.0.72(sockjs-client@1.6.1)(typescript@5.2.2)(webpack@5.85.1):
resolution: {integrity: sha512-0oTvna4AdMoSvRWeF0E8u8/aKASwll226DkLKvjYDs5FE9nhbxIHevsoSRX7TnlEDPNfV/a3kVRnRG1dR2oJnQ==} resolution: {integrity: sha512-0oTvna4AdMoSvRWeF0E8u8/aKASwll226DkLKvjYDs5FE9nhbxIHevsoSRX7TnlEDPNfV/a3kVRnRG1dR2oJnQ==}
hasBin: true hasBin: true
dependencies: dependencies:
@ -5503,7 +5503,7 @@ packages:
cors: 2.8.5 cors: 2.8.5
css-loader: 6.7.1(webpack@5.85.1) css-loader: 6.7.1(webpack@5.85.1)
es5-imcompatible-versions: 0.1.83 es5-imcompatible-versions: 0.1.83
fork-ts-checker-webpack-plugin: 8.0.0(typescript@4.8.4)(webpack@5.85.1) fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.2.2)(webpack@5.85.1)
jest-worker: 29.4.3 jest-worker: 29.4.3
lightningcss: 1.19.0 lightningcss: 1.19.0
node-libs-browser: 2.2.1 node-libs-browser: 2.2.1
@ -5648,16 +5648,16 @@ packages:
query-string: 6.14.1 query-string: 6.14.1
dev: true dev: true
/@umijs/lint@4.0.72(eslint@8.35.0)(stylelint@14.8.2)(typescript@4.8.4): /@umijs/lint@4.0.72(eslint@8.35.0)(stylelint@14.8.2)(typescript@5.2.2):
resolution: {integrity: sha512-kH3L81Rex+jj5WeyJjR2G6yI1/0KFpr91ZtXeMy9Iyd4G7mEUJl3Fl/9iUEwZ2sgUa7kEJ+28H43eER5W4A6bg==} resolution: {integrity: sha512-kH3L81Rex+jj5WeyJjR2G6yI1/0KFpr91ZtXeMy9Iyd4G7mEUJl3Fl/9iUEwZ2sgUa7kEJ+28H43eER5W4A6bg==}
dependencies: dependencies:
'@babel/core': 7.21.0 '@babel/core': 7.21.0
'@babel/eslint-parser': 7.19.1(@babel/core@7.21.0)(eslint@8.35.0) '@babel/eslint-parser': 7.19.1(@babel/core@7.21.0)(eslint@8.35.0)
'@stylelint/postcss-css-in-js': 0.38.0(postcss-syntax@0.36.2)(postcss@8.4.24) '@stylelint/postcss-css-in-js': 0.38.0(postcss-syntax@0.36.2)(postcss@8.4.24)
'@typescript-eslint/eslint-plugin': 5.48.1(@typescript-eslint/parser@5.48.1)(eslint@8.35.0)(typescript@4.8.4) '@typescript-eslint/eslint-plugin': 5.48.1(@typescript-eslint/parser@5.48.1)(eslint@8.35.0)(typescript@5.2.2)
'@typescript-eslint/parser': 5.48.1(eslint@8.35.0)(typescript@4.8.4) '@typescript-eslint/parser': 5.48.1(eslint@8.35.0)(typescript@5.2.2)
'@umijs/babel-preset-umi': 4.0.72 '@umijs/babel-preset-umi': 4.0.72
eslint-plugin-jest: 27.2.1(@typescript-eslint/eslint-plugin@5.48.1)(eslint@8.35.0)(typescript@4.8.4) eslint-plugin-jest: 27.2.1(@typescript-eslint/eslint-plugin@5.48.1)(eslint@8.35.0)(typescript@5.2.2)
eslint-plugin-react: 7.32.2(eslint@8.35.0) eslint-plugin-react: 7.32.2(eslint@8.35.0)
eslint-plugin-react-hooks: 4.6.0(eslint@8.35.0) eslint-plugin-react-hooks: 4.6.0(eslint@8.35.0)
postcss: 8.4.24 postcss: 8.4.24
@ -5677,16 +5677,16 @@ packages:
- typescript - typescript
dev: true dev: true
/@umijs/max@4.0.72(@types/node@17.0.45)(@types/react-dom@18.2.4)(@types/react@18.2.8)(prettier@2.8.8)(react-dom@18.2.0)(react@18.2.0)(sockjs-client@1.6.1)(typescript@4.8.4)(webpack@5.85.1): /@umijs/max@4.0.72(@types/node@17.0.45)(@types/react-dom@18.2.4)(@types/react@18.2.8)(prettier@2.8.8)(react-dom@18.2.0)(react@18.2.0)(sockjs-client@1.6.1)(typescript@5.2.2)(webpack@5.85.1):
resolution: {integrity: sha512-5e5BwaSBCdGWlj0PZ2I73+WLLe/8AibgDt2OtXc86YujRkhSKGY740pYgqy2PAszV8MjDMg8Sqs+gZG13C5z8w==} resolution: {integrity: sha512-5e5BwaSBCdGWlj0PZ2I73+WLLe/8AibgDt2OtXc86YujRkhSKGY740pYgqy2PAszV8MjDMg8Sqs+gZG13C5z8w==}
hasBin: true hasBin: true
dependencies: dependencies:
'@umijs/lint': 4.0.72(eslint@8.35.0)(stylelint@14.8.2)(typescript@4.8.4) '@umijs/lint': 4.0.72(eslint@8.35.0)(stylelint@14.8.2)(typescript@5.2.2)
'@umijs/plugins': 4.0.72(@types/react-dom@18.2.4)(@types/react@18.2.8)(antd@4.24.10)(react-dom@18.2.0)(react@18.2.0) '@umijs/plugins': 4.0.72(@types/react-dom@18.2.4)(@types/react@18.2.8)(antd@4.24.10)(react-dom@18.2.0)(react@18.2.0)
antd: 4.24.10(react-dom@18.2.0)(react@18.2.0) antd: 4.24.10(react-dom@18.2.0)(react@18.2.0)
eslint: 8.35.0 eslint: 8.35.0
stylelint: 14.8.2 stylelint: 14.8.2
umi: 4.0.72(@types/node@17.0.45)(@types/react@18.2.8)(eslint@8.35.0)(prettier@2.8.8)(react-dom@18.2.0)(react@18.2.0)(sockjs-client@1.6.1)(stylelint@14.8.2)(typescript@4.8.4)(webpack@5.85.1) umi: 4.0.72(@types/node@17.0.45)(@types/react@18.2.8)(eslint@8.35.0)(prettier@2.8.8)(react-dom@18.2.0)(react@18.2.0)(sockjs-client@1.6.1)(stylelint@14.8.2)(typescript@5.2.2)(webpack@5.85.1)
transitivePeerDependencies: transitivePeerDependencies:
- '@babel/core' - '@babel/core'
- '@reduxjs/toolkit' - '@reduxjs/toolkit'
@ -5794,7 +5794,7 @@ packages:
- supports-color - supports-color
dev: true dev: true
/@umijs/preset-umi@4.0.72(@types/node@17.0.45)(@types/react@18.2.8)(sockjs-client@1.6.1)(typescript@4.8.4)(webpack@5.85.1): /@umijs/preset-umi@4.0.72(@types/node@17.0.45)(@types/react@18.2.8)(sockjs-client@1.6.1)(typescript@5.2.2)(webpack@5.85.1):
resolution: {integrity: sha512-DDRzPCyP2K667YrOHrexAPcEacTdA9/TBn73erwreZpi+c4qhFZ2eYQo27SAGAhfZlYDYthL8JAfbgfhYmLo1A==} resolution: {integrity: sha512-DDRzPCyP2K667YrOHrexAPcEacTdA9/TBn73erwreZpi+c4qhFZ2eYQo27SAGAhfZlYDYthL8JAfbgfhYmLo1A==}
dependencies: dependencies:
'@iconify/utils': 2.1.1 '@iconify/utils': 2.1.1
@ -5804,7 +5804,7 @@ packages:
'@umijs/bundler-esbuild': 4.0.72 '@umijs/bundler-esbuild': 4.0.72
'@umijs/bundler-utils': 4.0.72 '@umijs/bundler-utils': 4.0.72
'@umijs/bundler-vite': 4.0.72(@types/node@17.0.45) '@umijs/bundler-vite': 4.0.72(@types/node@17.0.45)
'@umijs/bundler-webpack': 4.0.72(sockjs-client@1.6.1)(typescript@4.8.4)(webpack@5.85.1) '@umijs/bundler-webpack': 4.0.72(sockjs-client@1.6.1)(typescript@5.2.2)(webpack@5.85.1)
'@umijs/core': 4.0.72 '@umijs/core': 4.0.72
'@umijs/did-you-know': 1.0.3 '@umijs/did-you-know': 1.0.3
'@umijs/es-module-parser': 0.0.7 '@umijs/es-module-parser': 0.0.7
@ -8437,7 +8437,7 @@ packages:
source-map: 0.6.1 source-map: 0.6.1
dev: true dev: true
/eslint-plugin-jest@27.2.1(@typescript-eslint/eslint-plugin@5.48.1)(eslint@8.35.0)(typescript@4.8.4): /eslint-plugin-jest@27.2.1(@typescript-eslint/eslint-plugin@5.48.1)(eslint@8.35.0)(typescript@5.2.2):
resolution: {integrity: sha512-l067Uxx7ZT8cO9NJuf+eJHvt6bqJyz2Z29wykyEdz/OtmcELQl2MQGQLX8J94O1cSJWAwUSEvCjwjA7KEK3Hmg==} resolution: {integrity: sha512-l067Uxx7ZT8cO9NJuf+eJHvt6bqJyz2Z29wykyEdz/OtmcELQl2MQGQLX8J94O1cSJWAwUSEvCjwjA7KEK3Hmg==}
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
peerDependencies: peerDependencies:
@ -8452,8 +8452,8 @@ packages:
jest: jest:
optional: true optional: true
dependencies: dependencies:
'@typescript-eslint/eslint-plugin': 5.48.1(@typescript-eslint/parser@5.48.1)(eslint@8.35.0)(typescript@4.8.4) '@typescript-eslint/eslint-plugin': 5.48.1(@typescript-eslint/parser@5.48.1)(eslint@8.35.0)(typescript@5.2.2)
'@typescript-eslint/utils': 5.59.9(eslint@8.35.0)(typescript@4.8.4) '@typescript-eslint/utils': 5.59.9(eslint@8.35.0)(typescript@5.2.2)
eslint: 8.35.0 eslint: 8.35.0
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
@ -8724,9 +8724,9 @@ packages:
lodash: 4.17.21 lodash: 4.17.21
dev: false dev: false
/express-rate-limit@6.7.0(express@4.18.2): /express-rate-limit@7.0.0(express@4.18.2):
resolution: {integrity: sha512-vhwIdRoqcYB/72TK3tRZI+0ttS8Ytrk24GfmsxDXK9o9IhHNO5bXRiXQSExPQ4GbaE5tvIS7j1SGrxsuWs+sGA==} resolution: {integrity: sha512-zKMQ9meikj7j3ILeVvHIaBejAYljgDBtGuCfbzNS2d0VCW4s68ONdtEhBJnOGW/Ty1wGeNXgC4m/C1bBUIX0LA==}
engines: {node: '>= 12.9.0'} engines: {node: '>= 16'}
peerDependencies: peerDependencies:
express: ^4 || ^5 express: ^4 || ^5
dependencies: dependencies:
@ -8986,7 +8986,7 @@ packages:
is-callable: 1.2.7 is-callable: 1.2.7
dev: true dev: true
/fork-ts-checker-webpack-plugin@8.0.0(typescript@4.8.4)(webpack@5.85.1): /fork-ts-checker-webpack-plugin@8.0.0(typescript@5.2.2)(webpack@5.85.1):
resolution: {integrity: sha512-mX3qW3idpueT2klaQXBzrIM/pHw+T0B/V9KHEvNrqijTq9NFnMZU6oreVxDYcf33P8a5cW+67PjodNHthGnNVg==} resolution: {integrity: sha512-mX3qW3idpueT2klaQXBzrIM/pHw+T0B/V9KHEvNrqijTq9NFnMZU6oreVxDYcf33P8a5cW+67PjodNHthGnNVg==}
engines: {node: '>=12.13.0', yarn: '>=1.0.0'} engines: {node: '>=12.13.0', yarn: '>=1.0.0'}
peerDependencies: peerDependencies:
@ -9008,7 +9008,7 @@ packages:
schema-utils: 3.1.2 schema-utils: 3.1.2
semver: 7.5.1 semver: 7.5.1
tapable: 2.2.1 tapable: 2.2.1
typescript: 4.8.4 typescript: 5.2.2
webpack: 5.85.1 webpack: 5.85.1
dev: true dev: true
@ -9468,8 +9468,9 @@ packages:
wbuf: 1.7.3 wbuf: 1.7.3
dev: true dev: true
/hpagent@0.1.2: /hpagent@1.2.0:
resolution: {integrity: sha512-ePqFXHtSQWAFXYmj+JtOTHr84iNrII4/QRlAAPPE+zqnKy4xJo7Ie1Y4kC7AdB+LxLxSTTzBMASsEcy0q8YyvQ==} resolution: {integrity: sha512-A91dYTeIB6NoXG+PxTQpCCDDnfHsW9kc06Lvpu1TEe9gnd6ZFeiBoRO9JvzEv6xK7EX97/dUE8g/vBMTqTS3CA==}
engines: {node: '>=14'}
dev: false dev: false
/htm@3.1.1: /htm@3.1.1:
@ -12412,7 +12413,7 @@ packages:
engines: {node: '>= 0.8.0'} engines: {node: '>= 0.8.0'}
dev: true dev: true
/prettier-plugin-organize-imports@3.2.2(prettier@2.8.8)(typescript@4.8.4): /prettier-plugin-organize-imports@3.2.2(prettier@2.8.8)(typescript@5.2.2):
resolution: {integrity: sha512-e97lE6odGSiHonHJMTYC0q0iLXQyw0u5z/PJpvP/3vRy6/Zi9kLBwFAbEGjDzIowpjQv8b+J04PDamoUSQbzGA==} resolution: {integrity: sha512-e97lE6odGSiHonHJMTYC0q0iLXQyw0u5z/PJpvP/3vRy6/Zi9kLBwFAbEGjDzIowpjQv8b+J04PDamoUSQbzGA==}
peerDependencies: peerDependencies:
'@volar/vue-language-plugin-pug': ^1.0.4 '@volar/vue-language-plugin-pug': ^1.0.4
@ -12426,7 +12427,7 @@ packages:
optional: true optional: true
dependencies: dependencies:
prettier: 2.8.8 prettier: 2.8.8
typescript: 4.8.4 typescript: 5.2.2
dev: true dev: true
/prettier-plugin-packagejson@2.4.3(prettier@2.8.8): /prettier-plugin-packagejson@2.4.3(prettier@2.8.8):
@ -15338,7 +15339,7 @@ packages:
resolution: {integrity: sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw==} resolution: {integrity: sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw==}
dev: false dev: false
/ts-node@10.9.1(@types/node@17.0.45)(typescript@4.8.4): /ts-node@10.9.1(@types/node@17.0.45)(typescript@5.2.2):
resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==}
hasBin: true hasBin: true
peerDependencies: peerDependencies:
@ -15364,7 +15365,7 @@ packages:
create-require: 1.1.1 create-require: 1.1.1
diff: 4.0.2 diff: 4.0.2
make-error: 1.3.6 make-error: 1.3.6
typescript: 4.8.4 typescript: 5.2.2
v8-compile-cache-lib: 3.0.1 v8-compile-cache-lib: 3.0.1
yn: 3.1.1 yn: 3.1.1
dev: true dev: true
@ -15406,14 +15407,14 @@ packages:
resolution: {integrity: sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==} resolution: {integrity: sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==}
dev: true dev: true
/tsutils@3.21.0(typescript@4.8.4): /tsutils@3.21.0(typescript@5.2.2):
resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==}
engines: {node: '>= 6'} engines: {node: '>= 6'}
peerDependencies: peerDependencies:
typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta' typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta'
dependencies: dependencies:
tslib: 1.14.1 tslib: 1.14.1
typescript: 4.8.4 typescript: 5.2.2
dev: true dev: true
/tsx@3.12.7: /tsx@3.12.7:
@ -15523,28 +15524,28 @@ packages:
resolution: {integrity: sha512-v3UJF8xm68BBj6AF4oQML3ikrfK2c9EmZUyLOfShpJuItAqVBHWP/KtpGinkSsIiP6EZyyb6Z3NXyW9dgS9X1w==} resolution: {integrity: sha512-v3UJF8xm68BBj6AF4oQML3ikrfK2c9EmZUyLOfShpJuItAqVBHWP/KtpGinkSsIiP6EZyyb6Z3NXyW9dgS9X1w==}
dev: false dev: false
/typescript@4.8.4: /typescript@5.2.2:
resolution: {integrity: sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==} resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==}
engines: {node: '>=4.2.0'} engines: {node: '>=14.17'}
hasBin: true hasBin: true
dev: true dev: true
/umi@4.0.72(@types/node@17.0.45)(@types/react@18.2.8)(eslint@8.35.0)(prettier@2.8.8)(react-dom@18.2.0)(react@18.2.0)(sockjs-client@1.6.1)(stylelint@14.8.2)(typescript@4.8.4)(webpack@5.85.1): /umi@4.0.72(@types/node@17.0.45)(@types/react@18.2.8)(eslint@8.35.0)(prettier@2.8.8)(react-dom@18.2.0)(react@18.2.0)(sockjs-client@1.6.1)(stylelint@14.8.2)(typescript@5.2.2)(webpack@5.85.1):
resolution: {integrity: sha512-VXXwhHtZAApRR02c2F+uDv84m/Bf5g56pMKrArtIUFsrWM8hqS3f7whzgpdjzh0H8EFjpXwan0kJrkXFr6dAPg==} resolution: {integrity: sha512-VXXwhHtZAApRR02c2F+uDv84m/Bf5g56pMKrArtIUFsrWM8hqS3f7whzgpdjzh0H8EFjpXwan0kJrkXFr6dAPg==}
engines: {node: '>=14'} engines: {node: '>=14'}
hasBin: true hasBin: true
dependencies: dependencies:
'@babel/runtime': 7.21.0 '@babel/runtime': 7.21.0
'@umijs/bundler-utils': 4.0.72 '@umijs/bundler-utils': 4.0.72
'@umijs/bundler-webpack': 4.0.72(sockjs-client@1.6.1)(typescript@4.8.4)(webpack@5.85.1) '@umijs/bundler-webpack': 4.0.72(sockjs-client@1.6.1)(typescript@5.2.2)(webpack@5.85.1)
'@umijs/core': 4.0.72 '@umijs/core': 4.0.72
'@umijs/lint': 4.0.72(eslint@8.35.0)(stylelint@14.8.2)(typescript@4.8.4) '@umijs/lint': 4.0.72(eslint@8.35.0)(stylelint@14.8.2)(typescript@5.2.2)
'@umijs/preset-umi': 4.0.72(@types/node@17.0.45)(@types/react@18.2.8)(sockjs-client@1.6.1)(typescript@4.8.4)(webpack@5.85.1) '@umijs/preset-umi': 4.0.72(@types/node@17.0.45)(@types/react@18.2.8)(sockjs-client@1.6.1)(typescript@5.2.2)(webpack@5.85.1)
'@umijs/renderer-react': 4.0.72(react-dom@18.2.0)(react@18.2.0) '@umijs/renderer-react': 4.0.72(react-dom@18.2.0)(react@18.2.0)
'@umijs/server': 4.0.72 '@umijs/server': 4.0.72
'@umijs/test': 4.0.72 '@umijs/test': 4.0.72
'@umijs/utils': 4.0.72 '@umijs/utils': 4.0.72
prettier-plugin-organize-imports: 3.2.2(prettier@2.8.8)(typescript@4.8.4) prettier-plugin-organize-imports: 3.2.2(prettier@2.8.8)(typescript@5.2.2)
prettier-plugin-packagejson: 2.4.3(prettier@2.8.8) prettier-plugin-packagejson: 2.4.3(prettier@2.8.8)
transitivePeerDependencies: transitivePeerDependencies:
- '@babel/core' - '@babel/core'

View File

@ -115,7 +115,7 @@ const ViewCreateModal = ({
const OperationElement = ({ name }: { name: number }) => { const OperationElement = ({ name }: { name: number }) => {
const property = form.getFieldValue(['filters', name, 'property']); const property = form.getFieldValue(['filters', name, 'property']);
return ( return (
<Select style={{ width: 120 }}> <Select style={{ width: 120 }} placeholder={intl.get('请选择操作符')}>
{OPERATIONS.filter((x) => {OPERATIONS.filter((x) =>
STATUS_MAP[property as 'status' | 'sub_id'] ? x.type === 'select' : x, STATUS_MAP[property as 'status' | 'sub_id'] ? x.type === 'select' : x,
).map((x) => ( ).map((x) => (
@ -140,7 +140,7 @@ const ViewCreateModal = ({
}; };
const typeElement = ( const typeElement = (
<Select style={{ width: 80 }} placeholder={intl.get('请选择操作符')}> <Select style={{ width: 80 }}>
{SORTTYPES.map((x) => ( {SORTTYPES.map((x) => (
<Select.Option key={x.name} value={x.value}> <Select.Option key={x.name} value={x.value}>
{x.name} {x.name}
@ -261,7 +261,9 @@ const ViewCreateModal = ({
<Form.Item <Form.Item
{...restField} {...restField}
name={[name, 'operation']} name={[name, 'operation']}
rules={[{ required: true, message: intl.get('请选择操作符') }]} rules={[
{ required: true, message: intl.get('请选择操作符') },
]}
> >
<OperationElement name={name} /> <OperationElement name={name} />
</Form.Item> </Form.Item>

View File

@ -10,10 +10,12 @@ const { Link } = Typography;
enum TVersion { enum TVersion {
'develop' = '开发版', 'develop' = '开发版',
'master' = '正式版', 'master' = '正式版',
'debian' = '正式版' 'debian' = '正式版',
} }
const About = ({ systemInfo }: { systemInfo: SharedContext['systemInfo'] }) => { const About = ({ systemInfo }: { systemInfo: SharedContext['systemInfo'] }) => {
const version = TVersion[systemInfo.branch] || '正式版';
return ( return (
<div className={styles.container}> <div className={styles.container}>
<img <img
@ -30,7 +32,7 @@ const About = ({ systemInfo }: { systemInfo: SharedContext['systemInfo'] }) => {
</span> </span>
<Descriptions> <Descriptions>
<Descriptions.Item label={intl.get('版本')} span={3}> <Descriptions.Item label={intl.get('版本')} span={3}>
{intl.get(TVersion[systemInfo.branch])} v{systemInfo.version} {intl.get(version)} v{systemInfo.version}
</Descriptions.Item> </Descriptions.Item>
<Descriptions.Item label={intl.get('更新时间')} span={3}> <Descriptions.Item label={intl.get('更新时间')} span={3}>
{dayjs(systemInfo.publishTime * 1000).format('YYYY-MM-DD HH:mm')} {dayjs(systemInfo.publishTime * 1000).format('YYYY-MM-DD HH:mm')}

View File

@ -1,19 +1,17 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "es2017", "target": "es2017",
"lib": ["es2021", "esnext.asynciterable", "DOM"], "lib": ["ESNext"],
"typeRoots": [ "typeRoots": ["./node_modules/celebrate/lib", "./node_modules/@types"],
"./node_modules/@types",
"./src/types",
"./node_modules/celebrate/lib/index.d.ts"
],
"paths": { "paths": {
"@/*": ["./back/*"], "@/*": ["./back/*"]
}, },
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"moduleResolution": "node", "moduleResolution": "node",
"module": "commonjs", "module": "commonjs",
"pretty": true, "pretty": true,
@ -24,5 +22,6 @@
"esModuleInterop": true "esModuleInterop": true
}, },
"include": ["./back/**/*"], "include": ["./back/**/*"],
"exclude": ["node_modules", "tests"] "exclude": ["node_modules"],
"files": ["./back/index.d.ts"]
} }

View File

@ -1,8 +1,8 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "es2017", "target": "ESNext",
"module": "commonjs", "module": "ES2015",
"moduleResolution": "node", "moduleResolution": "Bundler",
"importHelpers": true, "importHelpers": true,
"jsx": "react-jsx", "jsx": "react-jsx",
"esModuleInterop": true, "esModuleInterop": true,
@ -14,11 +14,6 @@
"@@/*": ["src/.umi/*"] "@@/*": ["src/.umi/*"]
}, },
"lib": ["dom", "es2021", "esnext.asynciterable"], "lib": ["dom", "es2021", "esnext.asynciterable"],
"typeRoots": [
"./node_modules/@types",
"./back/types",
"./node_modules/celebrate/lib/index.d.ts"
],
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,

2
typings.d.ts vendored
View File

@ -9,8 +9,6 @@ declare module '*.svg' {
export default url; export default url;
} }
declare module 'pstree.remy';
interface Window { interface Window {
__ENV__QlBaseUrl: string; __ENV__QlBaseUrl: string;
__ENV__DeployEnv: string; __ENV__DeployEnv: string;