@fecommunity/reactpress-cli 0.1.0 → 0.2.0
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/bin/reactpress.js +246 -0
- package/lib/api-dev-runner.js +6 -0
- package/lib/api-dev.js +84 -0
- package/lib/bootstrap.js +109 -0
- package/lib/build.js +23 -0
- package/lib/dev.js +109 -0
- package/lib/docker.js +156 -0
- package/lib/http.js +80 -0
- package/lib/lifecycle.js +138 -0
- package/lib/paths.js +75 -0
- package/lib/pm2.js +31 -0
- package/lib/process.js +45 -0
- package/lib/publish.js +947 -0
- package/lib/root.js +31 -0
- package/lib/spawn.js +85 -0
- package/lib/status.js +54 -0
- package/package.json +32 -52
- package/ui/banner.js +16 -0
- package/ui/interactive.js +158 -0
- package/ui/theme.js +25 -0
- package/toolkit/dist/api/Article.d.ts +0 -123
- package/toolkit/dist/api/Article.js +0 -188
- package/toolkit/dist/api/Auth.d.ts +0 -32
- package/toolkit/dist/api/Auth.js +0 -58
- package/toolkit/dist/api/Category.d.ts +0 -51
- package/toolkit/dist/api/Category.js +0 -84
- package/toolkit/dist/api/Comment.d.ts +0 -60
- package/toolkit/dist/api/Comment.js +0 -97
- package/toolkit/dist/api/File.d.ts +0 -42
- package/toolkit/dist/api/File.js +0 -71
- package/toolkit/dist/api/HttpClient.d.ts +0 -41
- package/toolkit/dist/api/HttpClient.js +0 -96
- package/toolkit/dist/api/Knowledge.d.ts +0 -78
- package/toolkit/dist/api/Knowledge.js +0 -123
- package/toolkit/dist/api/Page.d.ts +0 -60
- package/toolkit/dist/api/Page.js +0 -97
- package/toolkit/dist/api/Search.d.ts +0 -32
- package/toolkit/dist/api/Search.js +0 -58
- package/toolkit/dist/api/Setting.d.ts +0 -24
- package/toolkit/dist/api/Setting.js +0 -45
- package/toolkit/dist/api/Smtp.d.ts +0 -33
- package/toolkit/dist/api/Smtp.js +0 -58
- package/toolkit/dist/api/Tag.d.ts +0 -60
- package/toolkit/dist/api/Tag.js +0 -97
- package/toolkit/dist/api/User.d.ts +0 -43
- package/toolkit/dist/api/User.js +0 -72
- package/toolkit/dist/api/View.d.ts +0 -51
- package/toolkit/dist/api/View.js +0 -84
- package/toolkit/dist/api/index.d.ts +0 -13
- package/toolkit/dist/api/index.js +0 -30
- package/toolkit/dist/api/instance.d.ts +0 -47
- package/toolkit/dist/api/instance.js +0 -71
- package/toolkit/dist/config/env.d.ts +0 -1
- package/toolkit/dist/config/env.js +0 -89
- package/toolkit/dist/config/global.d.ts +0 -34
- package/toolkit/dist/config/global.js +0 -382
- package/toolkit/dist/config/i18n.d.ts +0 -4
- package/toolkit/dist/config/i18n.js +0 -43
- package/toolkit/dist/config/index.d.ts +0 -15
- package/toolkit/dist/config/index.js +0 -25
- package/toolkit/dist/index.d.ts +0 -11
- package/toolkit/dist/index.js +0 -38
- package/toolkit/dist/locales/en.json +0 -97
- package/toolkit/dist/locales/zh.json +0 -97
- package/toolkit/dist/types/index.d.ts +0 -245
- package/toolkit/dist/types/index.js +0 -12
- package/toolkit/dist/utils/index.d.ts +0 -33
- package/toolkit/dist/utils/index.js +0 -59
- package/toolkit/package.json +0 -19
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ISmtpControllerCreateData } from '../types';
|
|
2
|
-
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
|
-
export declare class Smtp<SecurityDataType = unknown> {
|
|
4
|
-
http: HttpClient<SecurityDataType>;
|
|
5
|
-
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
-
/**
|
|
7
|
-
* No description
|
|
8
|
-
*
|
|
9
|
-
* @tags Smtp
|
|
10
|
-
* @name SmtpControllerCreate
|
|
11
|
-
* @request POST:/smtp
|
|
12
|
-
* @response `200` `ISmtpControllerCreateData` 发送邮件
|
|
13
|
-
*/
|
|
14
|
-
create: (params?: RequestParams) => Promise<ISmtpControllerCreateData>;
|
|
15
|
-
/**
|
|
16
|
-
* No description
|
|
17
|
-
*
|
|
18
|
-
* @tags Smtp
|
|
19
|
-
* @name SmtpControllerFindAll
|
|
20
|
-
* @request GET:/smtp
|
|
21
|
-
* @response `200` `ISmtpControllerFindAllData`
|
|
22
|
-
*/
|
|
23
|
-
findAll: (params?: RequestParams) => Promise<any>;
|
|
24
|
-
/**
|
|
25
|
-
* No description
|
|
26
|
-
*
|
|
27
|
-
* @tags Smtp
|
|
28
|
-
* @name SmtpControllerDeleteById
|
|
29
|
-
* @request DELETE:/smtp/{id}
|
|
30
|
-
* @response `200` `ISmtpControllerDeleteByIdData`
|
|
31
|
-
*/
|
|
32
|
-
deleteById: (id: string, params?: RequestParams) => Promise<any>;
|
|
33
|
-
}
|
package/toolkit/dist/api/Smtp.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/*
|
|
5
|
-
* ---------------------------------------------------------------
|
|
6
|
-
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
7
|
-
* ## ##
|
|
8
|
-
* ## AUTHOR: acacode ##
|
|
9
|
-
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
10
|
-
* ---------------------------------------------------------------
|
|
11
|
-
*/
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.Smtp = void 0;
|
|
14
|
-
class Smtp {
|
|
15
|
-
constructor(http) {
|
|
16
|
-
/**
|
|
17
|
-
* No description
|
|
18
|
-
*
|
|
19
|
-
* @tags Smtp
|
|
20
|
-
* @name SmtpControllerCreate
|
|
21
|
-
* @request POST:/smtp
|
|
22
|
-
* @response `200` `ISmtpControllerCreateData` 发送邮件
|
|
23
|
-
*/
|
|
24
|
-
this.create = (params = {}) => this.http.request({
|
|
25
|
-
path: `/smtp`,
|
|
26
|
-
method: 'POST',
|
|
27
|
-
...params,
|
|
28
|
-
});
|
|
29
|
-
/**
|
|
30
|
-
* No description
|
|
31
|
-
*
|
|
32
|
-
* @tags Smtp
|
|
33
|
-
* @name SmtpControllerFindAll
|
|
34
|
-
* @request GET:/smtp
|
|
35
|
-
* @response `200` `ISmtpControllerFindAllData`
|
|
36
|
-
*/
|
|
37
|
-
this.findAll = (params = {}) => this.http.request({
|
|
38
|
-
path: `/smtp`,
|
|
39
|
-
method: 'GET',
|
|
40
|
-
...params,
|
|
41
|
-
});
|
|
42
|
-
/**
|
|
43
|
-
* No description
|
|
44
|
-
*
|
|
45
|
-
* @tags Smtp
|
|
46
|
-
* @name SmtpControllerDeleteById
|
|
47
|
-
* @request DELETE:/smtp/{id}
|
|
48
|
-
* @response `200` `ISmtpControllerDeleteByIdData`
|
|
49
|
-
*/
|
|
50
|
-
this.deleteById = (id, params = {}) => this.http.request({
|
|
51
|
-
path: `/smtp/${id}`,
|
|
52
|
-
method: 'DELETE',
|
|
53
|
-
...params,
|
|
54
|
-
});
|
|
55
|
-
this.http = http;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
exports.Smtp = Smtp;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { ITagControllerCreateData } from '../types';
|
|
2
|
-
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
|
-
export declare class Tag<SecurityDataType = unknown> {
|
|
4
|
-
http: HttpClient<SecurityDataType>;
|
|
5
|
-
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
-
/**
|
|
7
|
-
* No description
|
|
8
|
-
*
|
|
9
|
-
* @tags Tag
|
|
10
|
-
* @name TagControllerCreate
|
|
11
|
-
* @request POST:/tag
|
|
12
|
-
* @response `200` `ITagControllerCreateData` 创建标签
|
|
13
|
-
*/
|
|
14
|
-
create: (params?: RequestParams) => Promise<ITagControllerCreateData>;
|
|
15
|
-
/**
|
|
16
|
-
* No description
|
|
17
|
-
*
|
|
18
|
-
* @tags Tag
|
|
19
|
-
* @name TagControllerFindAll
|
|
20
|
-
* @request GET:/tag
|
|
21
|
-
* @response `200` `ITagControllerFindAllData`
|
|
22
|
-
*/
|
|
23
|
-
findAll: (params?: RequestParams) => Promise<any>;
|
|
24
|
-
/**
|
|
25
|
-
* No description
|
|
26
|
-
*
|
|
27
|
-
* @tags Tag
|
|
28
|
-
* @name TagControllerFindById
|
|
29
|
-
* @request GET:/tag/{id}
|
|
30
|
-
* @response `200` `ITagControllerFindByIdData`
|
|
31
|
-
*/
|
|
32
|
-
findById: (id: string, params?: RequestParams) => Promise<any>;
|
|
33
|
-
/**
|
|
34
|
-
* No description
|
|
35
|
-
*
|
|
36
|
-
* @tags Tag
|
|
37
|
-
* @name TagControllerUpdateById
|
|
38
|
-
* @request PATCH:/tag/{id}
|
|
39
|
-
* @response `200` `ITagControllerUpdateByIdData`
|
|
40
|
-
*/
|
|
41
|
-
updateById: (id: string, params?: RequestParams) => Promise<any>;
|
|
42
|
-
/**
|
|
43
|
-
* No description
|
|
44
|
-
*
|
|
45
|
-
* @tags Tag
|
|
46
|
-
* @name TagControllerDeleteById
|
|
47
|
-
* @request DELETE:/tag/{id}
|
|
48
|
-
* @response `200` `ITagControllerDeleteByIdData`
|
|
49
|
-
*/
|
|
50
|
-
deleteById: (id: string, params?: RequestParams) => Promise<any>;
|
|
51
|
-
/**
|
|
52
|
-
* No description
|
|
53
|
-
*
|
|
54
|
-
* @tags Tag
|
|
55
|
-
* @name TagControllerGetArticleById
|
|
56
|
-
* @request GET:/tag/{id}/article
|
|
57
|
-
* @response `200` `ITagControllerGetArticleByIdData`
|
|
58
|
-
*/
|
|
59
|
-
getArticleById: (id: string, params?: RequestParams) => Promise<any>;
|
|
60
|
-
}
|
package/toolkit/dist/api/Tag.js
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/*
|
|
5
|
-
* ---------------------------------------------------------------
|
|
6
|
-
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
7
|
-
* ## ##
|
|
8
|
-
* ## AUTHOR: acacode ##
|
|
9
|
-
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
10
|
-
* ---------------------------------------------------------------
|
|
11
|
-
*/
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.Tag = void 0;
|
|
14
|
-
class Tag {
|
|
15
|
-
constructor(http) {
|
|
16
|
-
/**
|
|
17
|
-
* No description
|
|
18
|
-
*
|
|
19
|
-
* @tags Tag
|
|
20
|
-
* @name TagControllerCreate
|
|
21
|
-
* @request POST:/tag
|
|
22
|
-
* @response `200` `ITagControllerCreateData` 创建标签
|
|
23
|
-
*/
|
|
24
|
-
this.create = (params = {}) => this.http.request({
|
|
25
|
-
path: `/tag`,
|
|
26
|
-
method: 'POST',
|
|
27
|
-
...params,
|
|
28
|
-
});
|
|
29
|
-
/**
|
|
30
|
-
* No description
|
|
31
|
-
*
|
|
32
|
-
* @tags Tag
|
|
33
|
-
* @name TagControllerFindAll
|
|
34
|
-
* @request GET:/tag
|
|
35
|
-
* @response `200` `ITagControllerFindAllData`
|
|
36
|
-
*/
|
|
37
|
-
this.findAll = (params = {}) => this.http.request({
|
|
38
|
-
path: `/tag`,
|
|
39
|
-
method: 'GET',
|
|
40
|
-
...params,
|
|
41
|
-
});
|
|
42
|
-
/**
|
|
43
|
-
* No description
|
|
44
|
-
*
|
|
45
|
-
* @tags Tag
|
|
46
|
-
* @name TagControllerFindById
|
|
47
|
-
* @request GET:/tag/{id}
|
|
48
|
-
* @response `200` `ITagControllerFindByIdData`
|
|
49
|
-
*/
|
|
50
|
-
this.findById = (id, params = {}) => this.http.request({
|
|
51
|
-
path: `/tag/${id}`,
|
|
52
|
-
method: 'GET',
|
|
53
|
-
...params,
|
|
54
|
-
});
|
|
55
|
-
/**
|
|
56
|
-
* No description
|
|
57
|
-
*
|
|
58
|
-
* @tags Tag
|
|
59
|
-
* @name TagControllerUpdateById
|
|
60
|
-
* @request PATCH:/tag/{id}
|
|
61
|
-
* @response `200` `ITagControllerUpdateByIdData`
|
|
62
|
-
*/
|
|
63
|
-
this.updateById = (id, params = {}) => this.http.request({
|
|
64
|
-
path: `/tag/${id}`,
|
|
65
|
-
method: 'PATCH',
|
|
66
|
-
...params,
|
|
67
|
-
});
|
|
68
|
-
/**
|
|
69
|
-
* No description
|
|
70
|
-
*
|
|
71
|
-
* @tags Tag
|
|
72
|
-
* @name TagControllerDeleteById
|
|
73
|
-
* @request DELETE:/tag/{id}
|
|
74
|
-
* @response `200` `ITagControllerDeleteByIdData`
|
|
75
|
-
*/
|
|
76
|
-
this.deleteById = (id, params = {}) => this.http.request({
|
|
77
|
-
path: `/tag/${id}`,
|
|
78
|
-
method: 'DELETE',
|
|
79
|
-
...params,
|
|
80
|
-
});
|
|
81
|
-
/**
|
|
82
|
-
* No description
|
|
83
|
-
*
|
|
84
|
-
* @tags Tag
|
|
85
|
-
* @name TagControllerGetArticleById
|
|
86
|
-
* @request GET:/tag/{id}/article
|
|
87
|
-
* @response `200` `ITagControllerGetArticleByIdData`
|
|
88
|
-
*/
|
|
89
|
-
this.getArticleById = (id, params = {}) => this.http.request({
|
|
90
|
-
path: `/tag/${id}/article`,
|
|
91
|
-
method: 'GET',
|
|
92
|
-
...params,
|
|
93
|
-
});
|
|
94
|
-
this.http = http;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
exports.Tag = Tag;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { IUserControllerFindAllData, IUserControllerRegisterData, IUserControllerUpdateData, IUserControllerUpdatePasswordData } from '../types';
|
|
2
|
-
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
|
-
export declare class User<SecurityDataType = unknown> {
|
|
4
|
-
http: HttpClient<SecurityDataType>;
|
|
5
|
-
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
-
/**
|
|
7
|
-
* No description
|
|
8
|
-
*
|
|
9
|
-
* @tags User
|
|
10
|
-
* @name UserControllerFindAll
|
|
11
|
-
* @request GET:/user
|
|
12
|
-
* @response `200` `IUserControllerFindAllData` 获取用户列表
|
|
13
|
-
* @response `403` `void` 无权获取用户列表
|
|
14
|
-
*/
|
|
15
|
-
findAll: (params?: RequestParams) => Promise<IUserControllerFindAllData>;
|
|
16
|
-
/**
|
|
17
|
-
* No description
|
|
18
|
-
*
|
|
19
|
-
* @tags User
|
|
20
|
-
* @name UserControllerRegister
|
|
21
|
-
* @request POST:/user/register
|
|
22
|
-
* @response `201` `IUserControllerRegisterData` 创建用户
|
|
23
|
-
*/
|
|
24
|
-
register: (params?: RequestParams) => Promise<IUserControllerRegisterData>;
|
|
25
|
-
/**
|
|
26
|
-
* No description
|
|
27
|
-
*
|
|
28
|
-
* @tags User
|
|
29
|
-
* @name UserControllerUpdate
|
|
30
|
-
* @request POST:/user/update
|
|
31
|
-
* @response `200` `IUserControllerUpdateData` 更新用户成功
|
|
32
|
-
*/
|
|
33
|
-
update: (params?: RequestParams) => Promise<IUserControllerUpdateData>;
|
|
34
|
-
/**
|
|
35
|
-
* No description
|
|
36
|
-
*
|
|
37
|
-
* @tags User
|
|
38
|
-
* @name UserControllerUpdatePassword
|
|
39
|
-
* @request POST:/user/password
|
|
40
|
-
* @response `201` `IUserControllerUpdatePasswordData` 更新密码成功
|
|
41
|
-
*/
|
|
42
|
-
updatePassword: (params?: RequestParams) => Promise<IUserControllerUpdatePasswordData>;
|
|
43
|
-
}
|
package/toolkit/dist/api/User.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/*
|
|
5
|
-
* ---------------------------------------------------------------
|
|
6
|
-
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
7
|
-
* ## ##
|
|
8
|
-
* ## AUTHOR: acacode ##
|
|
9
|
-
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
10
|
-
* ---------------------------------------------------------------
|
|
11
|
-
*/
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.User = void 0;
|
|
14
|
-
class User {
|
|
15
|
-
constructor(http) {
|
|
16
|
-
/**
|
|
17
|
-
* No description
|
|
18
|
-
*
|
|
19
|
-
* @tags User
|
|
20
|
-
* @name UserControllerFindAll
|
|
21
|
-
* @request GET:/user
|
|
22
|
-
* @response `200` `IUserControllerFindAllData` 获取用户列表
|
|
23
|
-
* @response `403` `void` 无权获取用户列表
|
|
24
|
-
*/
|
|
25
|
-
this.findAll = (params = {}) => this.http.request({
|
|
26
|
-
path: `/user`,
|
|
27
|
-
method: 'GET',
|
|
28
|
-
...params,
|
|
29
|
-
});
|
|
30
|
-
/**
|
|
31
|
-
* No description
|
|
32
|
-
*
|
|
33
|
-
* @tags User
|
|
34
|
-
* @name UserControllerRegister
|
|
35
|
-
* @request POST:/user/register
|
|
36
|
-
* @response `201` `IUserControllerRegisterData` 创建用户
|
|
37
|
-
*/
|
|
38
|
-
this.register = (params = {}) => this.http.request({
|
|
39
|
-
path: `/user/register`,
|
|
40
|
-
method: 'POST',
|
|
41
|
-
...params,
|
|
42
|
-
});
|
|
43
|
-
/**
|
|
44
|
-
* No description
|
|
45
|
-
*
|
|
46
|
-
* @tags User
|
|
47
|
-
* @name UserControllerUpdate
|
|
48
|
-
* @request POST:/user/update
|
|
49
|
-
* @response `200` `IUserControllerUpdateData` 更新用户成功
|
|
50
|
-
*/
|
|
51
|
-
this.update = (params = {}) => this.http.request({
|
|
52
|
-
path: `/user/update`,
|
|
53
|
-
method: 'POST',
|
|
54
|
-
...params,
|
|
55
|
-
});
|
|
56
|
-
/**
|
|
57
|
-
* No description
|
|
58
|
-
*
|
|
59
|
-
* @tags User
|
|
60
|
-
* @name UserControllerUpdatePassword
|
|
61
|
-
* @request POST:/user/password
|
|
62
|
-
* @response `201` `IUserControllerUpdatePasswordData` 更新密码成功
|
|
63
|
-
*/
|
|
64
|
-
this.updatePassword = (params = {}) => this.http.request({
|
|
65
|
-
path: `/user/password`,
|
|
66
|
-
method: 'POST',
|
|
67
|
-
...params,
|
|
68
|
-
});
|
|
69
|
-
this.http = http;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
exports.User = User;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { IViewControllerCreateData } from '../types';
|
|
2
|
-
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
|
-
export declare class View<SecurityDataType = unknown> {
|
|
4
|
-
http: HttpClient<SecurityDataType>;
|
|
5
|
-
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
-
/**
|
|
7
|
-
* No description
|
|
8
|
-
*
|
|
9
|
-
* @tags View
|
|
10
|
-
* @name ViewControllerCreate
|
|
11
|
-
* @request POST:/view
|
|
12
|
-
* @response `200` `IViewControllerCreateData` 访问记录添加成功
|
|
13
|
-
*/
|
|
14
|
-
create: (params?: RequestParams) => Promise<IViewControllerCreateData>;
|
|
15
|
-
/**
|
|
16
|
-
* No description
|
|
17
|
-
*
|
|
18
|
-
* @tags View
|
|
19
|
-
* @name ViewControllerFindAll
|
|
20
|
-
* @request GET:/view
|
|
21
|
-
* @response `200` `IViewControllerFindAllData`
|
|
22
|
-
*/
|
|
23
|
-
findAll: (params?: RequestParams) => Promise<any>;
|
|
24
|
-
/**
|
|
25
|
-
* No description
|
|
26
|
-
*
|
|
27
|
-
* @tags View
|
|
28
|
-
* @name ViewControllerFindByUrl
|
|
29
|
-
* @request GET:/view/url
|
|
30
|
-
* @response `200` `IViewControllerFindByUrlData`
|
|
31
|
-
*/
|
|
32
|
-
findByUrl: (params?: RequestParams) => Promise<any>;
|
|
33
|
-
/**
|
|
34
|
-
* No description
|
|
35
|
-
*
|
|
36
|
-
* @tags View
|
|
37
|
-
* @name ViewControllerFindById
|
|
38
|
-
* @request GET:/view/{id}
|
|
39
|
-
* @response `200` `IViewControllerFindByIdData`
|
|
40
|
-
*/
|
|
41
|
-
findById: (id: string, params?: RequestParams) => Promise<any>;
|
|
42
|
-
/**
|
|
43
|
-
* No description
|
|
44
|
-
*
|
|
45
|
-
* @tags View
|
|
46
|
-
* @name ViewControllerDeleteById
|
|
47
|
-
* @request DELETE:/view/{id}
|
|
48
|
-
* @response `200` `IViewControllerDeleteByIdData`
|
|
49
|
-
*/
|
|
50
|
-
deleteById: (id: string, params?: RequestParams) => Promise<any>;
|
|
51
|
-
}
|
package/toolkit/dist/api/View.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/*
|
|
5
|
-
* ---------------------------------------------------------------
|
|
6
|
-
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
7
|
-
* ## ##
|
|
8
|
-
* ## AUTHOR: acacode ##
|
|
9
|
-
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
10
|
-
* ---------------------------------------------------------------
|
|
11
|
-
*/
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.View = void 0;
|
|
14
|
-
class View {
|
|
15
|
-
constructor(http) {
|
|
16
|
-
/**
|
|
17
|
-
* No description
|
|
18
|
-
*
|
|
19
|
-
* @tags View
|
|
20
|
-
* @name ViewControllerCreate
|
|
21
|
-
* @request POST:/view
|
|
22
|
-
* @response `200` `IViewControllerCreateData` 访问记录添加成功
|
|
23
|
-
*/
|
|
24
|
-
this.create = (params = {}) => this.http.request({
|
|
25
|
-
path: `/view`,
|
|
26
|
-
method: 'POST',
|
|
27
|
-
...params,
|
|
28
|
-
});
|
|
29
|
-
/**
|
|
30
|
-
* No description
|
|
31
|
-
*
|
|
32
|
-
* @tags View
|
|
33
|
-
* @name ViewControllerFindAll
|
|
34
|
-
* @request GET:/view
|
|
35
|
-
* @response `200` `IViewControllerFindAllData`
|
|
36
|
-
*/
|
|
37
|
-
this.findAll = (params = {}) => this.http.request({
|
|
38
|
-
path: `/view`,
|
|
39
|
-
method: 'GET',
|
|
40
|
-
...params,
|
|
41
|
-
});
|
|
42
|
-
/**
|
|
43
|
-
* No description
|
|
44
|
-
*
|
|
45
|
-
* @tags View
|
|
46
|
-
* @name ViewControllerFindByUrl
|
|
47
|
-
* @request GET:/view/url
|
|
48
|
-
* @response `200` `IViewControllerFindByUrlData`
|
|
49
|
-
*/
|
|
50
|
-
this.findByUrl = (params = {}) => this.http.request({
|
|
51
|
-
path: `/view/url`,
|
|
52
|
-
method: 'GET',
|
|
53
|
-
...params,
|
|
54
|
-
});
|
|
55
|
-
/**
|
|
56
|
-
* No description
|
|
57
|
-
*
|
|
58
|
-
* @tags View
|
|
59
|
-
* @name ViewControllerFindById
|
|
60
|
-
* @request GET:/view/{id}
|
|
61
|
-
* @response `200` `IViewControllerFindByIdData`
|
|
62
|
-
*/
|
|
63
|
-
this.findById = (id, params = {}) => this.http.request({
|
|
64
|
-
path: `/view/${id}`,
|
|
65
|
-
method: 'GET',
|
|
66
|
-
...params,
|
|
67
|
-
});
|
|
68
|
-
/**
|
|
69
|
-
* No description
|
|
70
|
-
*
|
|
71
|
-
* @tags View
|
|
72
|
-
* @name ViewControllerDeleteById
|
|
73
|
-
* @request DELETE:/view/{id}
|
|
74
|
-
* @response `200` `IViewControllerDeleteByIdData`
|
|
75
|
-
*/
|
|
76
|
-
this.deleteById = (id, params = {}) => this.http.request({
|
|
77
|
-
path: `/view/${id}`,
|
|
78
|
-
method: 'DELETE',
|
|
79
|
-
...params,
|
|
80
|
-
});
|
|
81
|
-
this.http = http;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
exports.View = View;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export { Article } from './Article';
|
|
2
|
-
export { Auth } from './Auth';
|
|
3
|
-
export { Category } from './Category';
|
|
4
|
-
export { Comment } from './Comment';
|
|
5
|
-
export { File } from './File';
|
|
6
|
-
export { Knowledge } from './Knowledge';
|
|
7
|
-
export { Page } from './Page';
|
|
8
|
-
export { Search } from './Search';
|
|
9
|
-
export { Setting } from './Setting';
|
|
10
|
-
export { Smtp } from './Smtp';
|
|
11
|
-
export { Tag } from './Tag';
|
|
12
|
-
export { User } from './User';
|
|
13
|
-
export { View } from './View';
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Auto-generated API module index
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.View = exports.User = exports.Tag = exports.Smtp = exports.Setting = exports.Search = exports.Page = exports.Knowledge = exports.File = exports.Comment = exports.Category = exports.Auth = exports.Article = void 0;
|
|
5
|
-
var Article_1 = require("./Article");
|
|
6
|
-
Object.defineProperty(exports, "Article", { enumerable: true, get: function () { return Article_1.Article; } });
|
|
7
|
-
var Auth_1 = require("./Auth");
|
|
8
|
-
Object.defineProperty(exports, "Auth", { enumerable: true, get: function () { return Auth_1.Auth; } });
|
|
9
|
-
var Category_1 = require("./Category");
|
|
10
|
-
Object.defineProperty(exports, "Category", { enumerable: true, get: function () { return Category_1.Category; } });
|
|
11
|
-
var Comment_1 = require("./Comment");
|
|
12
|
-
Object.defineProperty(exports, "Comment", { enumerable: true, get: function () { return Comment_1.Comment; } });
|
|
13
|
-
var File_1 = require("./File");
|
|
14
|
-
Object.defineProperty(exports, "File", { enumerable: true, get: function () { return File_1.File; } });
|
|
15
|
-
var Knowledge_1 = require("./Knowledge");
|
|
16
|
-
Object.defineProperty(exports, "Knowledge", { enumerable: true, get: function () { return Knowledge_1.Knowledge; } });
|
|
17
|
-
var Page_1 = require("./Page");
|
|
18
|
-
Object.defineProperty(exports, "Page", { enumerable: true, get: function () { return Page_1.Page; } });
|
|
19
|
-
var Search_1 = require("./Search");
|
|
20
|
-
Object.defineProperty(exports, "Search", { enumerable: true, get: function () { return Search_1.Search; } });
|
|
21
|
-
var Setting_1 = require("./Setting");
|
|
22
|
-
Object.defineProperty(exports, "Setting", { enumerable: true, get: function () { return Setting_1.Setting; } });
|
|
23
|
-
var Smtp_1 = require("./Smtp");
|
|
24
|
-
Object.defineProperty(exports, "Smtp", { enumerable: true, get: function () { return Smtp_1.Smtp; } });
|
|
25
|
-
var Tag_1 = require("./Tag");
|
|
26
|
-
Object.defineProperty(exports, "Tag", { enumerable: true, get: function () { return Tag_1.Tag; } });
|
|
27
|
-
var User_1 = require("./User");
|
|
28
|
-
Object.defineProperty(exports, "User", { enumerable: true, get: function () { return User_1.User; } });
|
|
29
|
-
var View_1 = require("./View");
|
|
30
|
-
Object.defineProperty(exports, "View", { enumerable: true, get: function () { return View_1.View; } });
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from './HttpClient';
|
|
2
|
-
import { Article } from './Article';
|
|
3
|
-
import { Auth } from './Auth';
|
|
4
|
-
import { Category } from './Category';
|
|
5
|
-
import { Comment } from './Comment';
|
|
6
|
-
import { File } from './File';
|
|
7
|
-
import { Knowledge } from './Knowledge';
|
|
8
|
-
import { Page } from './Page';
|
|
9
|
-
import { Search } from './Search';
|
|
10
|
-
import { Setting } from './Setting';
|
|
11
|
-
import { Smtp } from './Smtp';
|
|
12
|
-
import { Tag } from './Tag';
|
|
13
|
-
import { User } from './User';
|
|
14
|
-
import { View } from './View';
|
|
15
|
-
export declare const http: HttpClient<unknown>;
|
|
16
|
-
export declare const api: {
|
|
17
|
-
article: Article<unknown>;
|
|
18
|
-
auth: Auth<unknown>;
|
|
19
|
-
category: Category<unknown>;
|
|
20
|
-
comment: Comment<unknown>;
|
|
21
|
-
file: File<unknown>;
|
|
22
|
-
knowledge: Knowledge<unknown>;
|
|
23
|
-
page: Page<unknown>;
|
|
24
|
-
search: Search<unknown>;
|
|
25
|
-
setting: Setting<unknown>;
|
|
26
|
-
smtp: Smtp<unknown>;
|
|
27
|
-
tag: Tag<unknown>;
|
|
28
|
-
user: User<unknown>;
|
|
29
|
-
view: View<unknown>;
|
|
30
|
-
};
|
|
31
|
-
export declare function createApiInstance(config: any): {
|
|
32
|
-
article: Article<unknown>;
|
|
33
|
-
auth: Auth<unknown>;
|
|
34
|
-
category: Category<unknown>;
|
|
35
|
-
comment: Comment<unknown>;
|
|
36
|
-
file: File<unknown>;
|
|
37
|
-
knowledge: Knowledge<unknown>;
|
|
38
|
-
page: Page<unknown>;
|
|
39
|
-
search: Search<unknown>;
|
|
40
|
-
setting: Setting<unknown>;
|
|
41
|
-
smtp: Smtp<unknown>;
|
|
42
|
-
tag: Tag<unknown>;
|
|
43
|
-
user: User<unknown>;
|
|
44
|
-
view: View<unknown>;
|
|
45
|
-
};
|
|
46
|
-
export default api;
|
|
47
|
-
export { Article, Auth, Category, Comment, File, Knowledge, Page, Search, Setting, Smtp, Tag, User, View, };
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.View = exports.User = exports.Tag = exports.Smtp = exports.Setting = exports.Search = exports.Page = exports.Knowledge = exports.File = exports.Comment = exports.Category = exports.Auth = exports.Article = exports.createApiInstance = exports.api = exports.http = void 0;
|
|
4
|
-
const HttpClient_1 = require("./HttpClient");
|
|
5
|
-
// Auto-generated API instance
|
|
6
|
-
const Article_1 = require("./Article");
|
|
7
|
-
Object.defineProperty(exports, "Article", { enumerable: true, get: function () { return Article_1.Article; } });
|
|
8
|
-
const Auth_1 = require("./Auth");
|
|
9
|
-
Object.defineProperty(exports, "Auth", { enumerable: true, get: function () { return Auth_1.Auth; } });
|
|
10
|
-
const Category_1 = require("./Category");
|
|
11
|
-
Object.defineProperty(exports, "Category", { enumerable: true, get: function () { return Category_1.Category; } });
|
|
12
|
-
const Comment_1 = require("./Comment");
|
|
13
|
-
Object.defineProperty(exports, "Comment", { enumerable: true, get: function () { return Comment_1.Comment; } });
|
|
14
|
-
const File_1 = require("./File");
|
|
15
|
-
Object.defineProperty(exports, "File", { enumerable: true, get: function () { return File_1.File; } });
|
|
16
|
-
const Knowledge_1 = require("./Knowledge");
|
|
17
|
-
Object.defineProperty(exports, "Knowledge", { enumerable: true, get: function () { return Knowledge_1.Knowledge; } });
|
|
18
|
-
const Page_1 = require("./Page");
|
|
19
|
-
Object.defineProperty(exports, "Page", { enumerable: true, get: function () { return Page_1.Page; } });
|
|
20
|
-
const Search_1 = require("./Search");
|
|
21
|
-
Object.defineProperty(exports, "Search", { enumerable: true, get: function () { return Search_1.Search; } });
|
|
22
|
-
const Setting_1 = require("./Setting");
|
|
23
|
-
Object.defineProperty(exports, "Setting", { enumerable: true, get: function () { return Setting_1.Setting; } });
|
|
24
|
-
const Smtp_1 = require("./Smtp");
|
|
25
|
-
Object.defineProperty(exports, "Smtp", { enumerable: true, get: function () { return Smtp_1.Smtp; } });
|
|
26
|
-
const Tag_1 = require("./Tag");
|
|
27
|
-
Object.defineProperty(exports, "Tag", { enumerable: true, get: function () { return Tag_1.Tag; } });
|
|
28
|
-
const User_1 = require("./User");
|
|
29
|
-
Object.defineProperty(exports, "User", { enumerable: true, get: function () { return User_1.User; } });
|
|
30
|
-
const View_1 = require("./View");
|
|
31
|
-
Object.defineProperty(exports, "View", { enumerable: true, get: function () { return View_1.View; } });
|
|
32
|
-
// Create default HTTP client
|
|
33
|
-
exports.http = new HttpClient_1.HttpClient();
|
|
34
|
-
// Create API instance with all modules
|
|
35
|
-
exports.api = {
|
|
36
|
-
article: new Article_1.Article(exports.http),
|
|
37
|
-
auth: new Auth_1.Auth(exports.http),
|
|
38
|
-
category: new Category_1.Category(exports.http),
|
|
39
|
-
comment: new Comment_1.Comment(exports.http),
|
|
40
|
-
file: new File_1.File(exports.http),
|
|
41
|
-
knowledge: new Knowledge_1.Knowledge(exports.http),
|
|
42
|
-
page: new Page_1.Page(exports.http),
|
|
43
|
-
search: new Search_1.Search(exports.http),
|
|
44
|
-
setting: new Setting_1.Setting(exports.http),
|
|
45
|
-
smtp: new Smtp_1.Smtp(exports.http),
|
|
46
|
-
tag: new Tag_1.Tag(exports.http),
|
|
47
|
-
user: new User_1.User(exports.http),
|
|
48
|
-
view: new View_1.View(exports.http),
|
|
49
|
-
};
|
|
50
|
-
// Create custom API instance function
|
|
51
|
-
function createApiInstance(config) {
|
|
52
|
-
const customHttp = new HttpClient_1.HttpClient(config);
|
|
53
|
-
return {
|
|
54
|
-
article: new Article_1.Article(customHttp),
|
|
55
|
-
auth: new Auth_1.Auth(customHttp),
|
|
56
|
-
category: new Category_1.Category(customHttp),
|
|
57
|
-
comment: new Comment_1.Comment(customHttp),
|
|
58
|
-
file: new File_1.File(customHttp),
|
|
59
|
-
knowledge: new Knowledge_1.Knowledge(customHttp),
|
|
60
|
-
page: new Page_1.Page(customHttp),
|
|
61
|
-
search: new Search_1.Search(customHttp),
|
|
62
|
-
setting: new Setting_1.Setting(customHttp),
|
|
63
|
-
smtp: new Smtp_1.Smtp(customHttp),
|
|
64
|
-
tag: new Tag_1.Tag(customHttp),
|
|
65
|
-
user: new User_1.User(customHttp),
|
|
66
|
-
view: new View_1.View(customHttp),
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
exports.createApiInstance = createApiInstance;
|
|
70
|
-
// Export default API instance
|
|
71
|
-
exports.default = exports.api;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const file: string, config: Record<string, string>;
|