@nger/fk-upload 1.0.38 → 1.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.js +2 -15
- package/dist/entities/fk-download-task.entity.js +26 -34
- package/dist/entities/fk-login-cookie.entity.js +12 -20
- package/dist/entities/fk-login.entity.js +22 -30
- package/dist/entities/index.js +4 -17
- package/dist/fk-upload.module.js +2 -7
- package/dist/login.controller.js +17 -31
- package/dist/main.js +7 -10
- package/dist/templates/add-fk-login.js +28 -42
- package/dist/templates/add-task.js +26 -32
- package/dist/templates/code.js +8 -22
- package/dist/templates/component.js +7 -9
- package/dist/templates/error.js +8 -22
- package/dist/templates/help.js +13 -24
- package/dist/templates/player.js +7 -18
- package/dist/templates/setting.js +18 -32
- package/dist/templates/task-manage.js +19 -33
- package/dist/templates/tasks/download-task.js +14 -5
- package/dist/templates/tasks/effect-task.js +1 -1
- package/dist/templates/tasks/fk.service.js +6 -16
- package/dist/templates/tasks/task.service.js +17 -17
- package/dist/templates/upload-task.js +10 -24
- package/dist/templates/upload.js +31 -45
- package/dist/templates/verify.js +18 -32
- package/dist/urlSafeBase64Decode.js +2 -7
- package/docs.md +1 -0
- package/package.json +8 -6
- package/pnpm-lock.yaml +43 -1
@@ -1,21 +1,10 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
-
};
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
-
};
|
14
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
3
|
exports.TaskService = void 0;
|
16
|
-
const
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
const cids_1 = tslib_1.__importDefault(require("cids"));
|
17
6
|
const fs_extra_1 = require("fs-extra");
|
18
|
-
const multihashing_async_1 = __importDefault(require("multihashing-async"));
|
7
|
+
const multihashing_async_1 = tslib_1.__importDefault(require("multihashing-async"));
|
19
8
|
const core_1 = require("@nger/core");
|
20
9
|
const path_1 = require("path");
|
21
10
|
const actions_1 = require("./actions");
|
@@ -54,7 +43,18 @@ let TaskService = class TaskService {
|
|
54
43
|
const _url = new URL(url);
|
55
44
|
const filePath = _url.pathname;
|
56
45
|
let ext = (0, path_1.extname)(filePath);
|
57
|
-
|
46
|
+
if (ext.length < 5) {
|
47
|
+
filename += ext === '.' ? '.mp4' : ext;
|
48
|
+
}
|
49
|
+
else if (filename.indexOf('.jpg')) {
|
50
|
+
filename += '.jpg';
|
51
|
+
}
|
52
|
+
else if (filename.indexOf('.png')) {
|
53
|
+
filename += '.png';
|
54
|
+
}
|
55
|
+
else if (filename.indexOf('.mp4')) {
|
56
|
+
filename += '.mp4';
|
57
|
+
}
|
58
58
|
const root = this.injector.get(core_1.APP_ROOT);
|
59
59
|
(0, fs_extra_1.ensureDirSync)((0, path_1.join)(root, 'attachments/fk-upload'));
|
60
60
|
const path = (0, path_1.join)(root, 'attachments/fk-upload', filename);
|
@@ -71,8 +71,8 @@ let TaskService = class TaskService {
|
|
71
71
|
return task;
|
72
72
|
}
|
73
73
|
};
|
74
|
-
TaskService = __decorate([
|
74
|
+
TaskService = tslib_1.__decorate([
|
75
75
|
(0, core_1.Injectable)(),
|
76
|
-
__metadata("design:paramtypes", [core_1.Injector])
|
76
|
+
tslib_1.__metadata("design:paramtypes", [core_1.Injector])
|
77
77
|
], TaskService);
|
78
78
|
exports.TaskService = TaskService;
|
@@ -1,27 +1,13 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
-
};
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
13
|
-
};
|
14
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
15
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
16
|
-
};
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
18
3
|
exports.UploadTaskController = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
19
5
|
const core_1 = require("@nger/core");
|
20
6
|
const http_1 = require("@nger/http");
|
21
7
|
const typeorm_1 = require("@nger/typeorm");
|
22
8
|
const entities_1 = require("../entities");
|
23
|
-
const form_data_1 = __importDefault(require("form-data"));
|
24
|
-
const axios_1 = __importDefault(require("axios"));
|
9
|
+
const form_data_1 = tslib_1.__importDefault(require("form-data"));
|
10
|
+
const axios_1 = tslib_1.__importDefault(require("axios"));
|
25
11
|
const fs_1 = require("fs");
|
26
12
|
const path_1 = require("path");
|
27
13
|
let UploadTaskController = class UploadTaskController {
|
@@ -120,16 +106,16 @@ let UploadTaskController = class UploadTaskController {
|
|
120
106
|
}
|
121
107
|
}
|
122
108
|
};
|
123
|
-
__decorate([
|
109
|
+
tslib_1.__decorate([
|
124
110
|
(0, http_1.Get)('upload-task'),
|
125
|
-
__param(0, (0, http_1.Query)('filename')),
|
126
|
-
__metadata("design:type", Function),
|
127
|
-
__metadata("design:paramtypes", [String]),
|
128
|
-
__metadata("design:returntype", Promise)
|
111
|
+
tslib_1.__param(0, (0, http_1.Query)('filename')),
|
112
|
+
tslib_1.__metadata("design:type", Function),
|
113
|
+
tslib_1.__metadata("design:paramtypes", [String]),
|
114
|
+
tslib_1.__metadata("design:returntype", Promise)
|
129
115
|
], UploadTaskController.prototype, "uploadTask", null);
|
130
|
-
UploadTaskController = __decorate([
|
116
|
+
UploadTaskController = tslib_1.__decorate([
|
131
117
|
(0, core_1.Controller)(`@nger/fk-upload`),
|
132
|
-
__metadata("design:paramtypes", [typeorm_1.Db])
|
118
|
+
tslib_1.__metadata("design:paramtypes", [typeorm_1.Db])
|
133
119
|
], UploadTaskController);
|
134
120
|
exports.UploadTaskController = UploadTaskController;
|
135
121
|
function decode(base64Str) {
|
package/dist/templates/upload.js
CHANGED
@@ -1,33 +1,19 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
-
};
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
13
|
-
};
|
14
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
15
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
16
|
-
};
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
18
3
|
exports.UploadController = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
19
5
|
const core_1 = require("@nger/core");
|
20
6
|
const http_1 = require("@nger/http");
|
21
|
-
const react_1 = __importDefault(require("react"));
|
22
|
-
const form_data_1 = __importDefault(require("form-data"));
|
23
|
-
const axios_1 = __importDefault(require("axios"));
|
7
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
8
|
+
const form_data_1 = tslib_1.__importDefault(require("form-data"));
|
9
|
+
const axios_1 = tslib_1.__importDefault(require("axios"));
|
24
10
|
const typeorm_1 = require("@nger/typeorm");
|
25
11
|
const entities_1 = require("../entities");
|
26
12
|
const fs_1 = require("fs");
|
27
13
|
const path_1 = require("path");
|
28
14
|
const url_1 = require("url");
|
29
15
|
const fs_extra_1 = require("fs-extra");
|
30
|
-
const request_1 = __importDefault(require("request"));
|
16
|
+
const request_1 = tslib_1.__importDefault(require("request"));
|
31
17
|
const component_1 = require("./component");
|
32
18
|
let UploadController = class UploadController {
|
33
19
|
db;
|
@@ -42,7 +28,7 @@ let UploadController = class UploadController {
|
|
42
28
|
react_1.default.createElement("div", null,
|
43
29
|
react_1.default.createElement("input", { className: 'form-control', type: "file", name: "file" })),
|
44
30
|
react_1.default.createElement("div", { style: { marginTop: "20px" } },
|
45
|
-
react_1.default.createElement("button", { className: "btn btn-primary", type: "submit" }, "
|
31
|
+
react_1.default.createElement("button", { className: "btn btn-primary", type: "submit" }, "\u63D0\u4EA4"))))));
|
46
32
|
}
|
47
33
|
async postUpload(file, loginId, ctx) {
|
48
34
|
const loginEntity = await this.db.manager.findOne(entities_1.FkLoginEntity, { where: { fkLoginId: Number(loginId) } });
|
@@ -189,40 +175,40 @@ let UploadController = class UploadController {
|
|
189
175
|
return `https://${token.url}/${token.visitType}/${token.app}/upload?cmd=${token.cmd}&token=${token.token}`;
|
190
176
|
}
|
191
177
|
};
|
192
|
-
__decorate([
|
178
|
+
tslib_1.__decorate([
|
193
179
|
(0, http_1.Get)('upload'),
|
194
|
-
__metadata("design:type", Function),
|
195
|
-
__metadata("design:paramtypes", []),
|
196
|
-
__metadata("design:returntype", void 0)
|
180
|
+
tslib_1.__metadata("design:type", Function),
|
181
|
+
tslib_1.__metadata("design:paramtypes", []),
|
182
|
+
tslib_1.__metadata("design:returntype", void 0)
|
197
183
|
], UploadController.prototype, "upload", null);
|
198
|
-
__decorate([
|
184
|
+
tslib_1.__decorate([
|
199
185
|
(0, http_1.Post)('upload'),
|
200
|
-
__param(0, (0, http_1.File)('file')),
|
201
|
-
__param(1, (0, http_1.Query)('loginId')),
|
202
|
-
__param(2, (0, core_1.Inject)(http_1.CONTEXT)),
|
203
|
-
__metadata("design:type", Function),
|
204
|
-
__metadata("design:paramtypes", [Object, String, Object]),
|
205
|
-
__metadata("design:returntype", Promise)
|
186
|
+
tslib_1.__param(0, (0, http_1.File)('file')),
|
187
|
+
tslib_1.__param(1, (0, http_1.Query)('loginId')),
|
188
|
+
tslib_1.__param(2, (0, core_1.Inject)(http_1.CONTEXT)),
|
189
|
+
tslib_1.__metadata("design:type", Function),
|
190
|
+
tslib_1.__metadata("design:paramtypes", [Object, String, Object]),
|
191
|
+
tslib_1.__metadata("design:returntype", Promise)
|
206
192
|
], UploadController.prototype, "postUpload", null);
|
207
|
-
__decorate([
|
193
|
+
tslib_1.__decorate([
|
208
194
|
(0, http_1.Get)('preview'),
|
209
|
-
__param(0, (0, http_1.Query)(`src`)),
|
210
|
-
__metadata("design:type", Function),
|
211
|
-
__metadata("design:paramtypes", [String]),
|
212
|
-
__metadata("design:returntype", void 0)
|
195
|
+
tslib_1.__param(0, (0, http_1.Query)(`src`)),
|
196
|
+
tslib_1.__metadata("design:type", Function),
|
197
|
+
tslib_1.__metadata("design:paramtypes", [String]),
|
198
|
+
tslib_1.__metadata("design:returntype", void 0)
|
213
199
|
], UploadController.prototype, "preview", null);
|
214
|
-
__decorate([
|
200
|
+
tslib_1.__decorate([
|
215
201
|
(0, http_1.Get)('upload_cloud'),
|
216
|
-
__param(0, (0, http_1.Query)('loginId')),
|
217
|
-
__param(1, (0, http_1.Query)('cloudUrl')),
|
218
|
-
__param(2, (0, core_1.Inject)(http_1.CONTEXT)),
|
219
|
-
__metadata("design:type", Function),
|
220
|
-
__metadata("design:paramtypes", [String, String, Object]),
|
221
|
-
__metadata("design:returntype", Promise)
|
202
|
+
tslib_1.__param(0, (0, http_1.Query)('loginId')),
|
203
|
+
tslib_1.__param(1, (0, http_1.Query)('cloudUrl')),
|
204
|
+
tslib_1.__param(2, (0, core_1.Inject)(http_1.CONTEXT)),
|
205
|
+
tslib_1.__metadata("design:type", Function),
|
206
|
+
tslib_1.__metadata("design:paramtypes", [String, String, Object]),
|
207
|
+
tslib_1.__metadata("design:returntype", Promise)
|
222
208
|
], UploadController.prototype, "uploadCloud", null);
|
223
|
-
UploadController = __decorate([
|
209
|
+
UploadController = tslib_1.__decorate([
|
224
210
|
(0, core_1.Controller)('@nger/fk-upload'),
|
225
|
-
__metadata("design:paramtypes", [typeorm_1.Db])
|
211
|
+
tslib_1.__metadata("design:paramtypes", [typeorm_1.Db])
|
226
212
|
], UploadController);
|
227
213
|
exports.UploadController = UploadController;
|
228
214
|
function decode(base64Str) {
|
package/dist/templates/verify.js
CHANGED
@@ -1,22 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
-
};
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
13
|
-
};
|
14
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
15
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
16
|
-
};
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
18
3
|
exports.VerifyController = void 0;
|
19
|
-
const
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
const axios_1 = tslib_1.__importDefault(require("axios"));
|
20
6
|
const core_1 = require("@nger/core");
|
21
7
|
const http_1 = require("@nger/http");
|
22
8
|
let VerifyController = class VerifyController {
|
@@ -48,28 +34,28 @@ let VerifyController = class VerifyController {
|
|
48
34
|
});
|
49
35
|
}
|
50
36
|
};
|
51
|
-
__decorate([
|
37
|
+
tslib_1.__decorate([
|
52
38
|
(0, http_1.Get)('monitor'),
|
53
|
-
__param(0, (0, http_1.Query)('monitorId')),
|
54
|
-
__metadata("design:type", Function),
|
55
|
-
__metadata("design:paramtypes", [String]),
|
56
|
-
__metadata("design:returntype", void 0)
|
39
|
+
tslib_1.__param(0, (0, http_1.Query)('monitorId')),
|
40
|
+
tslib_1.__metadata("design:type", Function),
|
41
|
+
tslib_1.__metadata("design:paramtypes", [String]),
|
42
|
+
tslib_1.__metadata("design:returntype", void 0)
|
57
43
|
], VerifyController.prototype, "monitor", null);
|
58
|
-
__decorate([
|
44
|
+
tslib_1.__decorate([
|
59
45
|
(0, http_1.Post)('get'),
|
60
|
-
__param(0, (0, http_1.Body)()),
|
61
|
-
__metadata("design:type", Function),
|
62
|
-
__metadata("design:paramtypes", [Object]),
|
63
|
-
__metadata("design:returntype", void 0)
|
46
|
+
tslib_1.__param(0, (0, http_1.Body)()),
|
47
|
+
tslib_1.__metadata("design:type", Function),
|
48
|
+
tslib_1.__metadata("design:paramtypes", [Object]),
|
49
|
+
tslib_1.__metadata("design:returntype", void 0)
|
64
50
|
], VerifyController.prototype, "get", null);
|
65
|
-
__decorate([
|
51
|
+
tslib_1.__decorate([
|
66
52
|
(0, http_1.Post)('validate'),
|
67
|
-
__param(0, (0, http_1.Body)()),
|
68
|
-
__metadata("design:type", Function),
|
69
|
-
__metadata("design:paramtypes", [Object]),
|
70
|
-
__metadata("design:returntype", void 0)
|
53
|
+
tslib_1.__param(0, (0, http_1.Body)()),
|
54
|
+
tslib_1.__metadata("design:type", Function),
|
55
|
+
tslib_1.__metadata("design:paramtypes", [Object]),
|
56
|
+
tslib_1.__metadata("design:returntype", void 0)
|
71
57
|
], VerifyController.prototype, "validate", null);
|
72
|
-
VerifyController = __decorate([
|
58
|
+
VerifyController = tslib_1.__decorate([
|
73
59
|
(0, core_1.Controller)(`verify`)
|
74
60
|
], VerifyController);
|
75
61
|
exports.VerifyController = VerifyController;
|
@@ -1,12 +1,7 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
9
3
|
exports.UrlSafeBase64 = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
10
5
|
const core_1 = require("@nger/core");
|
11
6
|
let UrlSafeBase64 = class UrlSafeBase64 {
|
12
7
|
decode(base64Str) {
|
@@ -31,7 +26,7 @@ let UrlSafeBase64 = class UrlSafeBase64 {
|
|
31
26
|
return h.join('');
|
32
27
|
}
|
33
28
|
};
|
34
|
-
UrlSafeBase64 = __decorate([
|
29
|
+
UrlSafeBase64 = tslib_1.__decorate([
|
35
30
|
(0, core_1.Injectable)()
|
36
31
|
], UrlSafeBase64);
|
37
32
|
exports.UrlSafeBase64 = UrlSafeBase64;
|
package/docs.md
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nger/fk-upload",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.41",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/core.js",
|
6
6
|
"types": "dist/core.d.ts",
|
@@ -10,16 +10,17 @@
|
|
10
10
|
"author": "",
|
11
11
|
"license": "ISC",
|
12
12
|
"dependencies": {
|
13
|
-
"@nger/core": "^1.0.0",
|
14
13
|
"@nger/api": "^1.0.0",
|
14
|
+
"@nger/core": "^1.0.0",
|
15
15
|
"@nger/http": "^4.0.0",
|
16
|
-
"@nger/typeorm": "^1.0.0",
|
17
|
-
"@nger/redis": "^1.0.0",
|
18
16
|
"@nger/rabbitmq": "^1.0.0",
|
19
|
-
"@nger/
|
17
|
+
"@nger/redis": "^1.0.0",
|
20
18
|
"@nger/schedule": "^1.0.0",
|
19
|
+
"@nger/typeorm": "^1.0.0",
|
21
20
|
"@nger/w7": "^1.0.0",
|
21
|
+
"@nger/ws": "^1.0.0",
|
22
22
|
"@types/download": "^8.0.1",
|
23
|
+
"@types/react": "^18.0.5",
|
23
24
|
"@types/request": "^2.48.8",
|
24
25
|
"axios": "^0.26.1",
|
25
26
|
"cids": "^1.1.9",
|
@@ -28,10 +29,11 @@
|
|
28
29
|
"fs-extra": "^10.1.0",
|
29
30
|
"md5-file": "^5.0.0",
|
30
31
|
"multihashing-async": "^2.1.4",
|
32
|
+
"react": "^18.0.0",
|
31
33
|
"request": "^2.88.2"
|
32
34
|
},
|
33
35
|
"scripts": {
|
34
|
-
"tsc": "tsc
|
36
|
+
"tsc": "tsc",
|
35
37
|
"tsc:build": "tsc"
|
36
38
|
},
|
37
39
|
"readme": "## admin\n\n## account\n\n## test url -- \n\n## \n\nhttp://kaifa2.jidujiaowang.com/web/index.php?c=site&a=entry&eid=8&version_id=0\nadmin888\n12345678"
|
package/pnpm-lock.yaml
CHANGED
@@ -11,6 +11,7 @@ specifiers:
|
|
11
11
|
'@nger/w7': workspace:^1.0.0
|
12
12
|
'@nger/ws': workspace:^1.0.0
|
13
13
|
'@types/download': ^8.0.1
|
14
|
+
'@types/react': ^18.0.5
|
14
15
|
'@types/request': ^2.48.8
|
15
16
|
axios: ^0.26.1
|
16
17
|
cids: ^1.1.9
|
@@ -19,6 +20,7 @@ specifiers:
|
|
19
20
|
fs-extra: ^10.1.0
|
20
21
|
md5-file: ^5.0.0
|
21
22
|
multihashing-async: ^2.1.4
|
23
|
+
react: ^18.0.0
|
22
24
|
request: ^2.88.2
|
23
25
|
|
24
26
|
dependencies:
|
@@ -28,10 +30,11 @@ dependencies:
|
|
28
30
|
'@nger/rabbitmq': link:../rabbitmq
|
29
31
|
'@nger/redis': link:../redis
|
30
32
|
'@nger/schedule': link:../schedule
|
31
|
-
'@nger/typeorm': link:../
|
33
|
+
'@nger/typeorm': link:../package
|
32
34
|
'@nger/w7': link:../w7
|
33
35
|
'@nger/ws': link:../ws
|
34
36
|
'@types/download': 8.0.1
|
37
|
+
'@types/react': 18.0.8
|
35
38
|
'@types/request': 2.48.8
|
36
39
|
axios: 0.26.1
|
37
40
|
cids: 1.1.9
|
@@ -40,6 +43,7 @@ dependencies:
|
|
40
43
|
fs-extra: 10.1.0
|
41
44
|
md5-file: 5.0.0
|
42
45
|
multihashing-async: 2.1.4
|
46
|
+
react: 18.1.0
|
43
47
|
request: 2.88.2
|
44
48
|
|
45
49
|
packages:
|
@@ -81,6 +85,18 @@ packages:
|
|
81
85
|
resolution: {integrity: sha512-oNBIZjIqyHYP8VCNAV9uEytXVeXG2oR0w9lgAXro20eugRQfY002qr3CUl6BAe+Yf/z3CRjPdz27Pu6WWtuSRw==}
|
82
86
|
dev: false
|
83
87
|
|
88
|
+
/@types/prop-types/15.7.5:
|
89
|
+
resolution: {integrity: sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==}
|
90
|
+
dev: false
|
91
|
+
|
92
|
+
/@types/react/18.0.8:
|
93
|
+
resolution: {integrity: sha512-+j2hk9BzCOrrOSJASi5XiOyBbERk9jG5O73Ya4M0env5Ixi6vUNli4qy994AINcEF+1IEHISYFfIT4zwr++LKw==}
|
94
|
+
dependencies:
|
95
|
+
'@types/prop-types': 15.7.5
|
96
|
+
'@types/scheduler': 0.16.2
|
97
|
+
csstype: 3.0.11
|
98
|
+
dev: false
|
99
|
+
|
84
100
|
/@types/request/2.48.8:
|
85
101
|
resolution: {integrity: sha512-whjk1EDJPcAR2kYHRbFl/lKeeKYTi05A15K9bnLInCVroNDCtXce57xKdI0/rQaA3K+6q0eFyUBPmqfSndUZdQ==}
|
86
102
|
dependencies:
|
@@ -90,6 +106,10 @@ packages:
|
|
90
106
|
form-data: 2.5.1
|
91
107
|
dev: false
|
92
108
|
|
109
|
+
/@types/scheduler/0.16.2:
|
110
|
+
resolution: {integrity: sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==}
|
111
|
+
dev: false
|
112
|
+
|
93
113
|
/@types/tough-cookie/4.0.2:
|
94
114
|
resolution: {integrity: sha512-Q5vtl1W5ue16D+nIaW8JWebSSraJVlK+EthKn7e7UcD4KWsaSJ8BqGPXNaPghgtcn/fhvrN17Tv8ksUsQpiplw==}
|
95
115
|
dev: false
|
@@ -243,6 +263,10 @@ packages:
|
|
243
263
|
resolution: {integrity: sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=}
|
244
264
|
dev: false
|
245
265
|
|
266
|
+
/csstype/3.0.11:
|
267
|
+
resolution: {integrity: sha512-sa6P2wJ+CAbgyy4KFssIb/JNMLxFvKF1pCYCSXS8ZMuqZnMsrxqI2E5sPyoTpxoPU/gVZMzr2zjOfg8GIZOMsw==}
|
268
|
+
dev: false
|
269
|
+
|
246
270
|
/dashdash/1.14.1:
|
247
271
|
resolution: {integrity: sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=}
|
248
272
|
engines: {node: '>=0.10'}
|
@@ -654,6 +678,10 @@ packages:
|
|
654
678
|
resolution: {integrity: sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==}
|
655
679
|
dev: false
|
656
680
|
|
681
|
+
/js-tokens/4.0.0:
|
682
|
+
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
|
683
|
+
dev: false
|
684
|
+
|
657
685
|
/jsbn/0.1.1:
|
658
686
|
resolution: {integrity: sha1-peZUwuWi3rXyAdls77yoDA7y9RM=}
|
659
687
|
dev: false
|
@@ -698,6 +726,13 @@ packages:
|
|
698
726
|
json-buffer: 3.0.0
|
699
727
|
dev: false
|
700
728
|
|
729
|
+
/loose-envify/1.4.0:
|
730
|
+
resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==}
|
731
|
+
hasBin: true
|
732
|
+
dependencies:
|
733
|
+
js-tokens: 4.0.0
|
734
|
+
dev: false
|
735
|
+
|
701
736
|
/lowercase-keys/1.0.0:
|
702
737
|
resolution: {integrity: sha1-TjNms55/VFfjXxMkvfb4jQv8cwY=}
|
703
738
|
engines: {node: '>=0.10.0'}
|
@@ -919,6 +954,13 @@ packages:
|
|
919
954
|
strict-uri-encode: 1.1.0
|
920
955
|
dev: false
|
921
956
|
|
957
|
+
/react/18.1.0:
|
958
|
+
resolution: {integrity: sha512-4oL8ivCz5ZEPyclFQXaNksK3adutVS8l2xzZU0cqEFrE9Sb7fC0EFK5uEk74wIreL1DERyjvsU915j1pcT2uEQ==}
|
959
|
+
engines: {node: '>=0.10.0'}
|
960
|
+
dependencies:
|
961
|
+
loose-envify: 1.4.0
|
962
|
+
dev: false
|
963
|
+
|
922
964
|
/readable-stream/2.3.7:
|
923
965
|
resolution: {integrity: sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==}
|
924
966
|
dependencies:
|