@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
package/dist/core.js
CHANGED
@@ -1,17 +1,4 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
-
};
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
|
3
|
+
const tslib_1 = require("tslib");
|
4
|
+
tslib_1.__exportStar(require("./fk-upload.module"), exports);
|
@@ -1,15 +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
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
-
};
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
3
|
exports.FkDownloadTaskEntity = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
13
5
|
const typeorm_1 = require("typeorm");
|
14
6
|
let FkDownloadTaskEntity = class FkDownloadTaskEntity {
|
15
7
|
filename;
|
@@ -25,78 +17,78 @@ let FkDownloadTaskEntity = class FkDownloadTaskEntity {
|
|
25
17
|
fileMd5;
|
26
18
|
topicId;
|
27
19
|
};
|
28
|
-
__decorate([
|
20
|
+
tslib_1.__decorate([
|
29
21
|
(0, typeorm_1.PrimaryColumn)(),
|
30
|
-
__metadata("design:type", String)
|
22
|
+
tslib_1.__metadata("design:type", String)
|
31
23
|
], FkDownloadTaskEntity.prototype, "filename", void 0);
|
32
|
-
__decorate([
|
24
|
+
tslib_1.__decorate([
|
33
25
|
(0, typeorm_1.Column)({
|
34
26
|
default: 0
|
35
27
|
}),
|
36
|
-
__metadata("design:type", Number)
|
28
|
+
tslib_1.__metadata("design:type", Number)
|
37
29
|
], FkDownloadTaskEntity.prototype, "status", void 0);
|
38
|
-
__decorate([
|
30
|
+
tslib_1.__decorate([
|
39
31
|
(0, typeorm_1.Column)({
|
40
32
|
default: 0
|
41
33
|
}),
|
42
|
-
__metadata("design:type", Number)
|
34
|
+
tslib_1.__metadata("design:type", Number)
|
43
35
|
], FkDownloadTaskEntity.prototype, "totalSize", void 0);
|
44
|
-
__decorate([
|
36
|
+
tslib_1.__decorate([
|
45
37
|
(0, typeorm_1.Column)({
|
46
38
|
default: 0
|
47
39
|
}),
|
48
|
-
__metadata("design:type", Number)
|
40
|
+
tslib_1.__metadata("design:type", Number)
|
49
41
|
], FkDownloadTaskEntity.prototype, "size", void 0);
|
50
|
-
__decorate([
|
42
|
+
tslib_1.__decorate([
|
51
43
|
(0, typeorm_1.Column)({
|
52
44
|
length: 320
|
53
45
|
}),
|
54
|
-
__metadata("design:type", String)
|
46
|
+
tslib_1.__metadata("design:type", String)
|
55
47
|
], FkDownloadTaskEntity.prototype, "url", void 0);
|
56
|
-
__decorate([
|
48
|
+
tslib_1.__decorate([
|
57
49
|
(0, typeorm_1.Column)(),
|
58
|
-
__metadata("design:type", String)
|
50
|
+
tslib_1.__metadata("design:type", String)
|
59
51
|
], FkDownloadTaskEntity.prototype, "path", void 0);
|
60
|
-
__decorate([
|
52
|
+
tslib_1.__decorate([
|
61
53
|
(0, typeorm_1.Column)({
|
62
54
|
default: 0
|
63
55
|
}),
|
64
|
-
__metadata("design:type", Number)
|
56
|
+
tslib_1.__metadata("design:type", Number)
|
65
57
|
], FkDownloadTaskEntity.prototype, "uploadSize", void 0);
|
66
|
-
__decorate([
|
58
|
+
tslib_1.__decorate([
|
67
59
|
(0, typeorm_1.Column)({
|
68
60
|
default: '',
|
69
61
|
length: 320
|
70
62
|
}),
|
71
|
-
__metadata("design:type", String)
|
63
|
+
tslib_1.__metadata("design:type", String)
|
72
64
|
], FkDownloadTaskEntity.prototype, "uploadUrl", void 0);
|
73
|
-
__decorate([
|
65
|
+
tslib_1.__decorate([
|
74
66
|
(0, typeorm_1.Column)({
|
75
67
|
default: 0
|
76
68
|
}),
|
77
|
-
__metadata("design:type", Number)
|
69
|
+
tslib_1.__metadata("design:type", Number)
|
78
70
|
], FkDownloadTaskEntity.prototype, "uploadStatus", void 0);
|
79
|
-
__decorate([
|
71
|
+
tslib_1.__decorate([
|
80
72
|
(0, typeorm_1.Column)({
|
81
73
|
default: 0
|
82
74
|
}),
|
83
|
-
__metadata("design:type", Number)
|
75
|
+
tslib_1.__metadata("design:type", Number)
|
84
76
|
], FkDownloadTaskEntity.prototype, "loginId", void 0);
|
85
|
-
__decorate([
|
77
|
+
tslib_1.__decorate([
|
86
78
|
(0, typeorm_1.Column)({
|
87
79
|
name: 'file_md5',
|
88
80
|
default: ``
|
89
81
|
}),
|
90
|
-
__metadata("design:type", String)
|
82
|
+
tslib_1.__metadata("design:type", String)
|
91
83
|
], FkDownloadTaskEntity.prototype, "fileMd5", void 0);
|
92
|
-
__decorate([
|
84
|
+
tslib_1.__decorate([
|
93
85
|
(0, typeorm_1.Column)({
|
94
86
|
name: 'topic_id',
|
95
87
|
default: 0
|
96
88
|
}),
|
97
|
-
__metadata("design:type", Number)
|
89
|
+
tslib_1.__metadata("design:type", Number)
|
98
90
|
], FkDownloadTaskEntity.prototype, "topicId", void 0);
|
99
|
-
FkDownloadTaskEntity = __decorate([
|
91
|
+
FkDownloadTaskEntity = tslib_1.__decorate([
|
100
92
|
(0, typeorm_1.Entity)({
|
101
93
|
name: 'nger_fk_download_task'
|
102
94
|
})
|
@@ -1,15 +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
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
-
};
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
3
|
exports.FkLoginCookieEntity = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
13
5
|
const typeorm_1 = require("typeorm");
|
14
6
|
let FkLoginCookieEntity = class FkLoginCookieEntity {
|
15
7
|
fkLoginCookieId;
|
@@ -18,35 +10,35 @@ let FkLoginCookieEntity = class FkLoginCookieEntity {
|
|
18
10
|
value;
|
19
11
|
domain;
|
20
12
|
};
|
21
|
-
__decorate([
|
13
|
+
tslib_1.__decorate([
|
22
14
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
23
15
|
name: 'fk_login_cookie_id'
|
24
16
|
}),
|
25
|
-
__metadata("design:type", Number)
|
17
|
+
tslib_1.__metadata("design:type", Number)
|
26
18
|
], FkLoginCookieEntity.prototype, "fkLoginCookieId", void 0);
|
27
|
-
__decorate([
|
19
|
+
tslib_1.__decorate([
|
28
20
|
(0, typeorm_1.Column)({
|
29
21
|
name: 'fk_login_id'
|
30
22
|
}),
|
31
|
-
__metadata("design:type", Number)
|
23
|
+
tslib_1.__metadata("design:type", Number)
|
32
24
|
], FkLoginCookieEntity.prototype, "fkLoginId", void 0);
|
33
|
-
__decorate([
|
25
|
+
tslib_1.__decorate([
|
34
26
|
(0, typeorm_1.Column)(),
|
35
|
-
__metadata("design:type", String)
|
27
|
+
tslib_1.__metadata("design:type", String)
|
36
28
|
], FkLoginCookieEntity.prototype, "key", void 0);
|
37
|
-
__decorate([
|
29
|
+
tslib_1.__decorate([
|
38
30
|
(0, typeorm_1.Column)({
|
39
31
|
default: ''
|
40
32
|
}),
|
41
|
-
__metadata("design:type", String)
|
33
|
+
tslib_1.__metadata("design:type", String)
|
42
34
|
], FkLoginCookieEntity.prototype, "value", void 0);
|
43
|
-
__decorate([
|
35
|
+
tslib_1.__decorate([
|
44
36
|
(0, typeorm_1.Column)({
|
45
37
|
default: ``
|
46
38
|
}),
|
47
|
-
__metadata("design:type", String)
|
39
|
+
tslib_1.__metadata("design:type", String)
|
48
40
|
], FkLoginCookieEntity.prototype, "domain", void 0);
|
49
|
-
FkLoginCookieEntity = __decorate([
|
41
|
+
FkLoginCookieEntity = tslib_1.__decorate([
|
50
42
|
(0, typeorm_1.Entity)({
|
51
43
|
name: 'nger_fk_login_cookie'
|
52
44
|
})
|
@@ -1,15 +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
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
-
};
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
3
|
exports.FkLoginEntity = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
13
5
|
const typeorm_1 = require("typeorm");
|
14
6
|
let FkLoginEntity = class FkLoginEntity {
|
15
7
|
fkLoginId;
|
@@ -23,64 +15,64 @@ let FkLoginEntity = class FkLoginEntity {
|
|
23
15
|
w7Username;
|
24
16
|
status;
|
25
17
|
};
|
26
|
-
__decorate([
|
18
|
+
tslib_1.__decorate([
|
27
19
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
28
20
|
name: 'fk_login_id'
|
29
21
|
}),
|
30
|
-
__metadata("design:type", Number)
|
22
|
+
tslib_1.__metadata("design:type", Number)
|
31
23
|
], FkLoginEntity.prototype, "fkLoginId", void 0);
|
32
|
-
__decorate([
|
24
|
+
tslib_1.__decorate([
|
33
25
|
(0, typeorm_1.Column)(),
|
34
|
-
__metadata("design:type", String)
|
26
|
+
tslib_1.__metadata("design:type", String)
|
35
27
|
], FkLoginEntity.prototype, "username", void 0);
|
36
|
-
__decorate([
|
28
|
+
tslib_1.__decorate([
|
37
29
|
(0, typeorm_1.Column)({
|
38
30
|
default: ``
|
39
31
|
}),
|
40
|
-
__metadata("design:type", String)
|
32
|
+
tslib_1.__metadata("design:type", String)
|
41
33
|
], FkLoginEntity.prototype, "pass", void 0);
|
42
|
-
__decorate([
|
34
|
+
tslib_1.__decorate([
|
43
35
|
(0, typeorm_1.Column)(),
|
44
|
-
__metadata("design:type", String)
|
36
|
+
tslib_1.__metadata("design:type", String)
|
45
37
|
], FkLoginEntity.prototype, "password", void 0);
|
46
|
-
__decorate([
|
38
|
+
tslib_1.__decorate([
|
47
39
|
(0, typeorm_1.Column)({
|
48
40
|
default: ``
|
49
41
|
}),
|
50
|
-
__metadata("design:type", String)
|
42
|
+
tslib_1.__metadata("design:type", String)
|
51
43
|
], FkLoginEntity.prototype, "token", void 0);
|
52
|
-
__decorate([
|
44
|
+
tslib_1.__decorate([
|
53
45
|
(0, typeorm_1.Column)({ name: 'aid', default: 0 }),
|
54
|
-
__metadata("design:type", Number)
|
46
|
+
tslib_1.__metadata("design:type", Number)
|
55
47
|
], FkLoginEntity.prototype, "aid", void 0);
|
56
|
-
__decorate([
|
48
|
+
tslib_1.__decorate([
|
57
49
|
(0, typeorm_1.Column)({
|
58
50
|
name: 'upload_group_id',
|
59
51
|
default: 0
|
60
52
|
}),
|
61
|
-
__metadata("design:type", Number)
|
53
|
+
tslib_1.__metadata("design:type", Number)
|
62
54
|
], FkLoginEntity.prototype, "uploadGroupId", void 0);
|
63
|
-
__decorate([
|
55
|
+
tslib_1.__decorate([
|
64
56
|
(0, typeorm_1.Column)({
|
65
57
|
default: 1024,
|
66
58
|
name: 'file_size_limit'
|
67
59
|
}),
|
68
|
-
__metadata("design:type", Number)
|
60
|
+
tslib_1.__metadata("design:type", Number)
|
69
61
|
], FkLoginEntity.prototype, "fileSizeLimit", void 0);
|
70
|
-
__decorate([
|
62
|
+
tslib_1.__decorate([
|
71
63
|
(0, typeorm_1.Column)({
|
72
64
|
name: 'w7_username',
|
73
65
|
default: ''
|
74
66
|
}),
|
75
|
-
__metadata("design:type", String)
|
67
|
+
tslib_1.__metadata("design:type", String)
|
76
68
|
], FkLoginEntity.prototype, "w7Username", void 0);
|
77
|
-
__decorate([
|
69
|
+
tslib_1.__decorate([
|
78
70
|
(0, typeorm_1.Column)({
|
79
71
|
default: 0
|
80
72
|
}),
|
81
|
-
__metadata("design:type", Number)
|
73
|
+
tslib_1.__metadata("design:type", Number)
|
82
74
|
], FkLoginEntity.prototype, "status", void 0);
|
83
|
-
FkLoginEntity = __decorate([
|
75
|
+
FkLoginEntity = tslib_1.__decorate([
|
84
76
|
(0, typeorm_1.Entity)({
|
85
77
|
name: 'nger_fk_login'
|
86
78
|
})
|
package/dist/entities/index.js
CHANGED
@@ -1,19 +1,6 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
-
};
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
|
18
|
-
__exportStar(require("./fk-login.entity"), exports);
|
19
|
-
__exportStar(require("./fk-
|
3
|
+
const tslib_1 = require("tslib");
|
4
|
+
tslib_1.__exportStar(require("./fk-login-cookie.entity"), exports);
|
5
|
+
tslib_1.__exportStar(require("./fk-login.entity"), exports);
|
6
|
+
tslib_1.__exportStar(require("./fk-download-task.entity"), exports);
|
package/dist/fk-upload.module.js
CHANGED
@@ -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.FkUploadModule = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
10
5
|
const core_1 = require("@nger/core");
|
11
6
|
const typeorm_1 = require("@nger/typeorm");
|
12
7
|
const entities_1 = require("./entities");
|
@@ -29,7 +24,7 @@ const fk_service_1 = require("./templates/tasks/fk.service");
|
|
29
24
|
const player_1 = require("./templates/player");
|
30
25
|
let FkUploadModule = class FkUploadModule {
|
31
26
|
};
|
32
|
-
FkUploadModule = __decorate([
|
27
|
+
FkUploadModule = tslib_1.__decorate([
|
33
28
|
(0, core_1.Module)({
|
34
29
|
providers: [
|
35
30
|
urlSafeBase64Decode_1.UrlSafeBase64,
|
package/dist/login.controller.js
CHANGED
@@ -1,24 +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 __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.LoginController = 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 axios_1 = __importDefault(require("axios"));
|
7
|
+
const axios_1 = tslib_1.__importDefault(require("axios"));
|
22
8
|
const typeorm_1 = require("@nger/typeorm");
|
23
9
|
const entities_1 = require("./entities");
|
24
10
|
let LoginController = class LoginController {
|
@@ -187,25 +173,25 @@ let LoginController = class LoginController {
|
|
187
173
|
}).join('&');
|
188
174
|
}
|
189
175
|
};
|
190
|
-
__decorate([
|
176
|
+
tslib_1.__decorate([
|
191
177
|
(0, http_1.Get)('login'),
|
192
|
-
__param(0, (0, http_1.Query)('loginId')),
|
193
|
-
__param(1, (0, core_1.Inject)(http_1.CONTEXT)),
|
194
|
-
__metadata("design:type", Function),
|
195
|
-
__metadata("design:paramtypes", [String, Object]),
|
196
|
-
__metadata("design:returntype", Promise)
|
178
|
+
tslib_1.__param(0, (0, http_1.Query)('loginId')),
|
179
|
+
tslib_1.__param(1, (0, core_1.Inject)(http_1.CONTEXT)),
|
180
|
+
tslib_1.__metadata("design:type", Function),
|
181
|
+
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
182
|
+
tslib_1.__metadata("design:returntype", Promise)
|
197
183
|
], LoginController.prototype, "login", null);
|
198
|
-
__decorate([
|
184
|
+
tslib_1.__decorate([
|
199
185
|
(0, http_1.Get)('relogin'),
|
200
|
-
__param(0, (0, http_1.Query)('token')),
|
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", [String, String, Object]),
|
205
|
-
__metadata("design:returntype", Promise)
|
186
|
+
tslib_1.__param(0, (0, http_1.Query)('token')),
|
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", [String, String, Object]),
|
191
|
+
tslib_1.__metadata("design:returntype", Promise)
|
206
192
|
], LoginController.prototype, "relogin", null);
|
207
|
-
LoginController = __decorate([
|
193
|
+
LoginController = tslib_1.__decorate([
|
208
194
|
(0, core_1.Controller)('@nger/fk-upload'),
|
209
|
-
__metadata("design:paramtypes", [typeorm_1.Db])
|
195
|
+
tslib_1.__metadata("design:paramtypes", [typeorm_1.Db])
|
210
196
|
], LoginController);
|
211
197
|
exports.LoginController = LoginController;
|
package/dist/main.js
CHANGED
@@ -1,16 +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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
9
3
|
exports.AppModule = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
10
5
|
require("reflect-metadata");
|
11
6
|
require('dotenv').config();
|
12
7
|
const core_1 = require("@nger/core");
|
13
|
-
const core_2 = require("@nger/core");
|
14
8
|
const fk_upload_module_1 = require("./fk-upload.module");
|
15
9
|
const http_1 = require("@nger/http");
|
16
10
|
const typeorm_1 = require("@nger/typeorm");
|
@@ -23,8 +17,8 @@ const schedule_1 = require("@nger/schedule");
|
|
23
17
|
const w7_1 = require("@nger/w7");
|
24
18
|
let AppModule = class AppModule {
|
25
19
|
};
|
26
|
-
AppModule = __decorate([
|
27
|
-
(0,
|
20
|
+
AppModule = tslib_1.__decorate([
|
21
|
+
(0, core_1.Module)({
|
28
22
|
providers: [{
|
29
23
|
provide: core_1.APP_ROOT,
|
30
24
|
useValue: process.cwd()
|
@@ -53,5 +47,8 @@ process.on('uncaughtException', (err) => {
|
|
53
47
|
console.log(err.message);
|
54
48
|
});
|
55
49
|
process.on('unhandledRejection', (reason, promisen) => {
|
56
|
-
promisen.catch((e) =>
|
50
|
+
promisen.catch((e) => {
|
51
|
+
console.log(e.message);
|
52
|
+
console.log(e.stack);
|
53
|
+
});
|
57
54
|
});
|
@@ -1,25 +1,11 @@
|
|
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.AddFkLoginController = 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
|
-
const react_1 = __importDefault(require("react"));
|
8
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
23
9
|
const entities_1 = require("../entities");
|
24
10
|
const component_1 = require("./component");
|
25
11
|
const utils_1 = require("@nger/utils");
|
@@ -66,46 +52,46 @@ let AddFkLoginController = class AddFkLoginController {
|
|
66
52
|
react_1.default.createElement("div", { className: "card-body" },
|
67
53
|
react_1.default.createElement("form", { action: '', method: 'post', encType: 'application/x-www-form-urlencoded' },
|
68
54
|
react_1.default.createElement("div", { className: "form-group" },
|
69
|
-
react_1.default.createElement("label", { htmlFor: "username" }, "
|
55
|
+
react_1.default.createElement("label", { htmlFor: "username" }, "\u7528\u6237\u540D"),
|
70
56
|
react_1.default.createElement("input", { id: "username", name: "username", onChange: e => { }, className: "form-control", type: "text", value: fkLogin.username })),
|
71
57
|
react_1.default.createElement("div", { className: "form-group" },
|
72
|
-
react_1.default.createElement("label", { htmlFor: "password" }, "
|
58
|
+
react_1.default.createElement("label", { htmlFor: "password" }, "\u5BC6\u7801"),
|
73
59
|
react_1.default.createElement("input", { id: "password", name: "pass", onChange: e => { }, className: "form-control", type: "text", value: fkLogin.pass })),
|
74
60
|
react_1.default.createElement("div", { className: "form-group" },
|
75
|
-
react_1.default.createElement("label", { htmlFor: "w7Username" }, "
|
61
|
+
react_1.default.createElement("label", { htmlFor: "w7Username" }, "\u5FAE\u64CE\u7528\u6237"),
|
76
62
|
react_1.default.createElement("input", { id: "w7Username", name: "w7Username", onChange: e => { }, className: "form-control", type: "text", value: fkLogin.w7Username })),
|
77
63
|
react_1.default.createElement("div", { className: "for-group" },
|
78
|
-
react_1.default.createElement("button", { type: "submit", className: 'btn btn-primary' }, "
|
79
|
-
react_1.default.createElement("button", { type: "reset", className: 'btn' }, "
|
80
|
-
react_1.default.createElement("a", { className: "btn btn-link", href: "/@nger/fk-upload/help" }, "
|
64
|
+
react_1.default.createElement("button", { type: "submit", className: 'btn btn-primary' }, "\u6DFB\u52A0"),
|
65
|
+
react_1.default.createElement("button", { type: "reset", className: 'btn' }, "\u91CD\u7F6E"),
|
66
|
+
react_1.default.createElement("a", { className: "btn btn-link", href: "/@nger/fk-upload/help" }, "\u9996\u9875"))))));
|
81
67
|
}
|
82
68
|
};
|
83
|
-
__decorate([
|
69
|
+
tslib_1.__decorate([
|
84
70
|
(0, http_1.Post)('add-fk-login'),
|
85
|
-
__param(0, (0, http_1.Query)('loginId')),
|
86
|
-
__param(1, (0, http_1.Body)()),
|
87
|
-
__param(2, (0, core_1.Inject)(http_1.CONTEXT)),
|
88
|
-
__metadata("design:type", Function),
|
89
|
-
__metadata("design:paramtypes", [String, Object, Object]),
|
90
|
-
__metadata("design:returntype", Promise)
|
71
|
+
tslib_1.__param(0, (0, http_1.Query)('loginId')),
|
72
|
+
tslib_1.__param(1, (0, http_1.Body)()),
|
73
|
+
tslib_1.__param(2, (0, core_1.Inject)(http_1.CONTEXT)),
|
74
|
+
tslib_1.__metadata("design:type", Function),
|
75
|
+
tslib_1.__metadata("design:paramtypes", [String, Object, Object]),
|
76
|
+
tslib_1.__metadata("design:returntype", Promise)
|
91
77
|
], AddFkLoginController.prototype, "postAddFkLogin", null);
|
92
|
-
__decorate([
|
78
|
+
tslib_1.__decorate([
|
93
79
|
(0, http_1.Get)('del-fk-login'),
|
94
|
-
__param(0, (0, http_1.Query)('loginId')),
|
95
|
-
__param(1, (0, core_1.Inject)(http_1.CONTEXT)),
|
96
|
-
__metadata("design:type", Function),
|
97
|
-
__metadata("design:paramtypes", [String, Object]),
|
98
|
-
__metadata("design:returntype", Promise)
|
80
|
+
tslib_1.__param(0, (0, http_1.Query)('loginId')),
|
81
|
+
tslib_1.__param(1, (0, core_1.Inject)(http_1.CONTEXT)),
|
82
|
+
tslib_1.__metadata("design:type", Function),
|
83
|
+
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
84
|
+
tslib_1.__metadata("design:returntype", Promise)
|
99
85
|
], AddFkLoginController.prototype, "delFkLogin", null);
|
100
|
-
__decorate([
|
86
|
+
tslib_1.__decorate([
|
101
87
|
(0, http_1.Get)(`add-fk-login`),
|
102
|
-
__param(0, (0, http_1.Query)(`loginId`)),
|
103
|
-
__metadata("design:type", Function),
|
104
|
-
__metadata("design:paramtypes", [String]),
|
105
|
-
__metadata("design:returntype", Promise)
|
88
|
+
tslib_1.__param(0, (0, http_1.Query)(`loginId`)),
|
89
|
+
tslib_1.__metadata("design:type", Function),
|
90
|
+
tslib_1.__metadata("design:paramtypes", [String]),
|
91
|
+
tslib_1.__metadata("design:returntype", Promise)
|
106
92
|
], AddFkLoginController.prototype, "addFkLogin", null);
|
107
|
-
AddFkLoginController = __decorate([
|
93
|
+
AddFkLoginController = tslib_1.__decorate([
|
108
94
|
(0, core_1.Controller)('@nger/fk-upload'),
|
109
|
-
__metadata("design:paramtypes", [typeorm_1.Db, utils_1.CryptoService])
|
95
|
+
tslib_1.__metadata("design:paramtypes", [typeorm_1.Db, utils_1.CryptoService])
|
110
96
|
], AddFkLoginController);
|
111
97
|
exports.AddFkLoginController = AddFkLoginController;
|