@nocobase/plugin-api-doc 0.20.0-alpha.16 → 0.20.0-alpha.17
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/client/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Plugin } from '@nocobase/client';
|
|
2
2
|
export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<import("antd-style").SerializedStyles>;
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class PluginAPIDocClient extends Plugin {
|
|
4
4
|
load(): Promise<void>;
|
|
5
5
|
}
|
|
6
|
-
export default
|
|
6
|
+
export default PluginAPIDocClient;
|
package/dist/client/index.js
CHANGED
|
@@ -148,4 +148,4 @@ new Remarkable().use(linkify)
|
|
|
148
148
|
max-width: 1460px;
|
|
149
149
|
width: 100%;
|
|
150
150
|
padding: 16px 20px;
|
|
151
|
-
`,children:[en.jsx(Qo.Typography.Text,{style:{whiteSpace:"nowrap"},strong:!0,children:Dp("Select a definition")}),en.jsx(Qo.Select,{showSearch:!0,value:_,options:Wa==null?void 0:Wa.data,style:{width:"100%"},fieldNames:{label:"name",value:"url"},onChange:C})]})}),en.jsx("div",{ref:Lp})]}):en.jsx(Qo.Spin,{})}},Symbol.toStringTag,{value:"Module"}));mn.
|
|
151
|
+
`,children:[en.jsx(Qo.Typography.Text,{style:{whiteSpace:"nowrap"},strong:!0,children:Dp("Select a definition")}),en.jsx(Qo.Select,{showSearch:!0,value:_,options:Wa==null?void 0:Wa.data,style:{width:"100%"},fieldNames:{label:"name",value:"url"},onChange:C})]})}),en.jsx("div",{ref:Lp})]}):en.jsx(Qo.Spin,{})}},Symbol.toStringTag,{value:"Module"}));mn.PluginAPIDocClient=H1,mn.default=H1,mn.useStyles=J1,Object.defineProperties(mn,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/externalVersion.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
"@nocobase/client": "0.20.0-alpha.
|
|
3
|
-
"@nocobase/sdk": "0.20.0-alpha.
|
|
2
|
+
"@nocobase/client": "0.20.0-alpha.17",
|
|
3
|
+
"@nocobase/sdk": "0.20.0-alpha.17",
|
|
4
4
|
"antd": "5.12.8",
|
|
5
5
|
"react": "18.2.0",
|
|
6
6
|
"@ant-design/icons": "5.2.6",
|
|
7
7
|
"antd-style": "3.4.5",
|
|
8
8
|
"react-i18next": "11.18.6",
|
|
9
|
-
"@nocobase/actions": "0.20.0-alpha.
|
|
10
|
-
"@nocobase/server": "0.20.0-alpha.
|
|
11
|
-
"@nocobase/utils": "0.20.0-alpha.
|
|
12
|
-
"@nocobase/database": "0.20.0-alpha.
|
|
9
|
+
"@nocobase/actions": "0.20.0-alpha.17",
|
|
10
|
+
"@nocobase/server": "0.20.0-alpha.17",
|
|
11
|
+
"@nocobase/utils": "0.20.0-alpha.17",
|
|
12
|
+
"@nocobase/database": "0.20.0-alpha.17"
|
|
13
13
|
};
|
package/dist/server/server.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Plugin } from '@nocobase/server';
|
|
2
2
|
import { SwaggerManager } from './swagger';
|
|
3
|
-
export
|
|
3
|
+
export declare class PluginAPIDocServer extends Plugin {
|
|
4
4
|
swagger: SwaggerManager;
|
|
5
5
|
constructor(app: any, options: any);
|
|
6
6
|
beforeLoad(): Promise<void>;
|
|
7
7
|
load(): Promise<void>;
|
|
8
8
|
}
|
|
9
|
+
export default PluginAPIDocServer;
|
package/dist/server/server.js
CHANGED
|
@@ -17,12 +17,13 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
var server_exports = {};
|
|
19
19
|
__export(server_exports, {
|
|
20
|
-
|
|
20
|
+
PluginAPIDocServer: () => PluginAPIDocServer,
|
|
21
|
+
default: () => server_default
|
|
21
22
|
});
|
|
22
23
|
module.exports = __toCommonJS(server_exports);
|
|
23
24
|
var import_server = require("@nocobase/server");
|
|
24
25
|
var import_swagger = require("./swagger");
|
|
25
|
-
class
|
|
26
|
+
class PluginAPIDocServer extends import_server.Plugin {
|
|
26
27
|
swagger;
|
|
27
28
|
constructor(app, options) {
|
|
28
29
|
super(app, options);
|
|
@@ -31,7 +32,7 @@ class APIDoc extends import_server.Plugin {
|
|
|
31
32
|
async beforeLoad() {
|
|
32
33
|
}
|
|
33
34
|
async load() {
|
|
34
|
-
this.app.
|
|
35
|
+
this.app.resourcer.define({
|
|
35
36
|
name: "swagger",
|
|
36
37
|
type: "single",
|
|
37
38
|
actions: {
|
|
@@ -66,3 +67,8 @@ class APIDoc extends import_server.Plugin {
|
|
|
66
67
|
});
|
|
67
68
|
}
|
|
68
69
|
}
|
|
70
|
+
var server_default = PluginAPIDocServer;
|
|
71
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
72
|
+
0 && (module.exports = {
|
|
73
|
+
PluginAPIDocServer
|
|
74
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-api-doc",
|
|
3
|
-
"version": "0.20.0-alpha.
|
|
3
|
+
"version": "0.20.0-alpha.17",
|
|
4
4
|
"displayName": "API documentation",
|
|
5
5
|
"displayName.zh-CN": "API 文档",
|
|
6
6
|
"description": "An OpenAPI documentation generator for NocoBase HTTP API.",
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
24
24
|
"directory": "packages/plugins/api-doc"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "a2460c222bc0b8a3bcb783b5c856499d756efa82"
|
|
27
27
|
}
|