@nocobase/plugin-api-doc 2.1.0-alpha.1 → 2.1.0-alpha.10
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/LICENSE +201 -661
- package/README.md +79 -10
- package/dist/client/2d5e29625554fa70.js +21 -0
- package/dist/client/7d8878653f21a53a.js +10 -0
- package/dist/client/index.js +1 -1
- package/dist/externalVersion.js +6 -6
- package/package.json +3 -3
- package/dist/client/17d36a5c457cfa91.js +0 -21
- package/dist/client/e7d6e4c0ab22d331.js +0 -10
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
"use strict";(self.webpackChunk_nocobase_plugin_api_doc=self.webpackChunk_nocobase_plugin_api_doc||[]).push([["982"],{555:function(A,e,t){t.r(e);var i=t(342),n=t(59),c=t(155),l=t.n(c),a=t(716),I=t.n(a);t(89);var M=t(252);function h(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,i=Array(e);t<e;t++)i[t]=A[t];return i}function d(){var A,e,t=(A=["\n display: flex;\n align-items: center;\n gap: 8px;\n max-width: 1460px;\n width: 100%;\n padding: 16px 20px;\n "],e||(e=A.slice(0)),Object.freeze(Object.defineProperties(A,{raw:{value:Object.freeze(e)}})));return d=function(){return t},t}var g="API_DOC:DESTINATION_URL_KEY",r=function(){return localStorage.getItem(g)};e.default=function(){var A,e=(0,i.useAPIClient)(),t=(0,i.useCurrentAppInfo)();console.log("appInfo",t);var a=(0,M.Bd)().t,R=(0,c.useRef)(),v=(0,i.useRequest)({url:"swagger:getUrls"}).data,G=function(A){if(!A.headers.Authorization){var i;Object.assign(A.headers,e.getHeaders()),(null==t||null==(i=t.data)?void 0:i.name)&&(A.headers["X-App"]=t.data.name),A.headers.Authorization="Bearer ".concat(e.auth.getToken())}return A},u=function(A){if(Array.isArray(A))return A}(A=(0,c.useState)(r()))||function(A){var e,t,i=null==A?null:"u">typeof Symbol&&A[Symbol.iterator]||A["@@iterator"];if(null!=i){var n=[],c=!0,l=!1;try{for(i=i.call(A);!(c=(e=i.next()).done)&&(n.push(e.value),2!==n.length);c=!0);}catch(A){l=!0,t=A}finally{try{c||null==i.return||i.return()}finally{if(l)throw t}}return n}}(A)||function(A){if(A){if("string"==typeof A)return h(A,2);var e=Object.prototype.toString.call(A).slice(8,-1);if("Object"===e&&A.constructor&&(e=A.constructor.name),"Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return h(A,2)}}(A)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=u[0],w=u[1];return((0,c.useEffect)(function(){o&&localStorage.setItem(g,o)},[o]),(0,c.useEffect)(function(){var A;(null==v||null==(A=v.data)?void 0:A.length)&&(o&&v.data.find(function(A){return A.url===r()})||w(v.data[0].url))},[o,v]),(0,c.useEffect)(function(){I()({requestInterceptor:G,url:o,domNode:R.current})},[o]),o)?l().createElement(n.Space,{direction:"vertical",style:{width:"100%",height:"100%",overflowY:"auto"}},l().createElement("div",{style:{display:"flex",justifyContent:"center",width:"100%"}},l().createElement("div",{className:(0,i.css)(d())},l().createElement(n.Typography.Text,{style:{whiteSpace:"nowrap"},strong:!0},a("Select a definition")),l().createElement(n.Select,{showSearch:!0,value:o,options:null==v?void 0:v.data,style:{width:"100%"},fieldNames:{label:"name",value:"url"},onChange:w}))),l().createElement("div",{ref:R})):l().createElement(n.Spin,null)}},712:function(A){A.exports="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUk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NjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PvCS01IAAABMSURBVHjaYmR4/5+BFPBfAMFm/MBgx8RAGWCn1AAmSg34Q6kBDKMGMDCwICeMIemF/5QawEipAWwUhwEjMDvbAWlWkvVBwu8vQIABAEwBCph8U6c0AAAAAElFTkSuQmCC"},234:function(A){A.exports='data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M13.418 7.859a.695.695 0 0 1 .978 0 .68.68 0 0 1 0 .969l-3.908 3.83a.697.697 0 0 1-.979 0l-3.908-3.83a.68.68 0 0 1 0-.969.695.695 0 0 1 .978 0L10 11l3.418-3.141z"/></svg>'},779:function(A){A.exports='data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="8" viewBox="3 7 10 8"><path fill="%2341474E" fill-rule="evenodd" d="M6.333 15 3 11.667l1.333-1.334 2 2L11.667 7 13 8.333z"/></svg>'},153:function(A){A.exports='data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="15" aria-hidden="true"><path fill="%23fff" fill-rule="evenodd" d="M4 12h4v1H4v-1zm5-6H4v1h5V6zm2 3V7l-3 3 3 3v-2h5V9h-5zM6.5 8H4v1h2.5V8zM4 11h2.5v-1H4v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H3c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V5H3v9h10v-2zM4 4h8c0-.55-.45-1-1-1h-1c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H5c-.55 0-1 .45-1 1z"/></svg>'},294:function(A){A.exports='data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>'}}]);
|
package/dist/client/index.js
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react-i18next"),require("
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react-i18next"),require("react"),require("antd"),require("@nocobase/client"),require("@ant-design/icons"),require("antd-style")):"function"==typeof define&&define.amd?define("@nocobase/plugin-api-doc",["react-i18next","react","antd","@nocobase/client","@ant-design/icons","antd-style"],t):"object"==typeof exports?exports["@nocobase/plugin-api-doc"]=t(require("react-i18next"),require("react"),require("antd"),require("@nocobase/client"),require("@ant-design/icons"),require("antd-style")):e["@nocobase/plugin-api-doc"]=t(e["react-i18next"],e.react,e.antd,e["@nocobase/client"],e["@ant-design/icons"],e["antd-style"])}(self,function(e,t,n,r,o,i){return function(){var u,c,a,l={252:function(e,t,n){"use strict";n.d(t,{Bd:function(){return i},CU:function(){return o}}),n(342);var r=n(953),o="api-doc";function i(){return(0,r.useTranslation)(o)}},631:function(e){e.exports=function(e,t){return"u">typeof __deoptimization_sideEffect__&&__deoptimization_sideEffect__(e,t),t}},375:function(e){"use strict";e.exports=o},342:function(e){"use strict";e.exports=r},59:function(e){"use strict";e.exports=n},235:function(e){"use strict";e.exports=i},155:function(e){"use strict";e.exports=t},953:function(t){"use strict";t.exports=e}},s={};function f(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,exports:{}};return l[e].call(n.exports,n,n.exports,f),n.exports}f.m=l,f.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(t,{a:t}),t},f.d=function(e,t){for(var n in t)f.o(t,n)&&!f.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},f.f={},f.e=function(e){return Promise.all(Object.keys(f.f).reduce(function(t,n){return f.f[n](e,t),t},[]))},f.u=function(e){return""+({645:"2d5e29625554fa70",982:"7d8878653f21a53a"})[e]+".js"},f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),f.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},p={},f.l=function(e,t,n,r){if(p[e])return void p[e].push(t);if(void 0!==n)for(var o,i,u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var a=u[c];if(a.getAttribute("src")==e||a.getAttribute("data-rspack")=="@nocobase/plugin-api-doc:"+n){o=a;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,f.nc&&o.setAttribute("nonce",f.nc),o.setAttribute("data-rspack","@nocobase/plugin-api-doc:"+n),o.src=e),p[e]=[t];var l=function(t,n){o.onerror=o.onload=null,clearTimeout(s);var r=p[e];if(delete p[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(n)}),t)return t(n)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),i&&document.head.appendChild(o)},f.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.nc=void 0,f.g.importScripts&&(d=f.g.location+"");var p,d,b=f.g.document;if(!d&&b&&(b.currentScript&&"SCRIPT"===b.currentScript.tagName.toUpperCase()&&(d=b.currentScript.src),!d)){var y=b.getElementsByTagName("script");if(y.length)for(var h=y.length-1;h>-1&&(!d||!/^http(s?):/.test(d));)d=y[h--].src}if(!d)throw Error("Automatic publicPath is not supported in this browser");f.p=d.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),f.b=document.baseURI||self.location.href,u={889:0},f.f.j=function(e,t){var n=f.o(u,e)?u[e]:void 0;if(0!==n)if(n)t.push(n[2]);else{var r=new Promise(function(t,r){n=u[e]=[t,r]});t.push(n[2]=r);var o=f.p+f.u(e),i=Error();f.l(o,function(t){if(f.o(u,e)&&(0!==(n=u[e])&&(u[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",i.name="ChunkLoadError",i.type=r,i.request=o,n[1](i)}},"chunk-"+e,e)}},c=function(e,t){var n,r,o=t[0],i=t[1],c=t[2],a=0;if(o.some(function(e){return 0!==u[e]})){for(n in i)f.o(i,n)&&(f.m[n]=i[n]);c&&c(f)}for(e&&e(t);a<o.length;a++)r=o[a],f.o(u,r)&&u[r]&&u[r][0](),u[r]=0},(a=self.webpackChunk_nocobase_plugin_api_doc=self.webpackChunk_nocobase_plugin_api_doc||[]).forEach(c.bind(null,0)),a.push=c.bind(null,a.push.bind(a));var v={};return!function(){"use strict";var e=window.__webpack_public_path__||"/";"/"!==e.charAt(e.length-1)&&(e+="/"),f.p=e+"static/plugins/@nocobase/plugin-api-doc/dist/client/"}(),!function(){"use strict";f.r(v),f.d(v,{PluginAPIDocClient:function(){return w},useStyles:function(){return g}});var e=f(375),t=f(342),n=f(59),r=f(235),o=f(155),i=f.n(o),u=f(252),c=f(631);function a(e,t,n,r,o,i,u){try{var c=e[i](u),a=c.value}catch(e){n(e);return}c.done?t(a):Promise.resolve(a).then(r,o)}function l(e,t,n){return(l=b()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&p(o,n.prototype),o}).apply(null,arguments)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t="function"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return l(e,arguments,s(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),p(n,e)})(e)}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}function y(){var e,t,n=(e=["\n position: relative;\n background: ",";\n padding: ","px;\n .open-tab {\n position: absolute;\n right: 0;\n top: 0;\n }\n "],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return y=function(){return n},n}var h="/api-documentation",m=(0,o.lazy)(function(){return c("imported_1qf4hs9_component",Promise.all([f.e("645"),f.e("982")]).then(f.bind(f,555)))}),g=(0,r.createStyles)(function(e){var t=e.css,n=e.token;return t(y(),n.colorBgContainer,n.paddingMD)}),_=function(){var t=g().styles;return i().createElement("div",{className:t},i().createElement("div",{className:"open-tab"},i().createElement(n.Tooltip,{title:"Preview"},i().createElement("a",{href:h,target:"_blank",rel:"noreferrer"},i().createElement(n.Button,{size:"small",icon:i().createElement(e.RightOutlined,null)})))),i().createElement(m,null))},w=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function n(){var e,t;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return e=n,t=arguments,e=s(e),function(e,t){var n;if(t&&("object"==((n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,b()?Reflect.construct(e,t||[],s(this).constructor):e.apply(this,t))}return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&p(n,e),t=[{key:"load",value:function(){var e;return(e=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),c=Object.defineProperty;return c(u,"next",{value:a(0)}),c(u,"throw",{value:a(1)}),c(u,"return",{value:a(2)}),"function"==typeof Symbol&&c(u,Symbol.iterator,{value:function(){return this}}),u;function a(c){return function(a){var l=[c,a];if(n)throw TypeError("Generator is already executing.");for(;u&&(u=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}(this,function(e){return this.app.pluginSettingsManager.add(u.CU,{title:'{{t("API documentation", { ns: "'.concat(u.CU,'" })}}'),icon:"BookOutlined",Component:_,aclSnippet:"pm.api-doc.documentation"}),this.app.router.add("api-documentation",{path:h,Component:m}),[2]})},function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function u(e){a(i,r,o,u,c,"next",e)}function c(e){a(i,r,o,u,c,"throw",e)}u(void 0)})}).call(this)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(n.prototype,t),n}(d(t.Plugin));v.default=w}(),v}()});
|
package/dist/externalVersion.js
CHANGED
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "2.1.0-alpha.
|
|
12
|
-
"@nocobase/sdk": "2.1.0-alpha.
|
|
11
|
+
"@nocobase/client": "2.1.0-alpha.10",
|
|
12
|
+
"@nocobase/sdk": "2.1.0-alpha.10",
|
|
13
13
|
"antd": "5.24.2",
|
|
14
14
|
"react": "18.2.0",
|
|
15
15
|
"@ant-design/icons": "5.6.1",
|
|
16
16
|
"antd-style": "3.7.1",
|
|
17
17
|
"react-i18next": "11.18.6",
|
|
18
|
-
"@nocobase/actions": "2.1.0-alpha.
|
|
19
|
-
"@nocobase/server": "2.1.0-alpha.
|
|
20
|
-
"@nocobase/utils": "2.1.0-alpha.
|
|
21
|
-
"@nocobase/database": "2.1.0-alpha.
|
|
18
|
+
"@nocobase/actions": "2.1.0-alpha.10",
|
|
19
|
+
"@nocobase/server": "2.1.0-alpha.10",
|
|
20
|
+
"@nocobase/utils": "2.1.0-alpha.10",
|
|
21
|
+
"@nocobase/database": "2.1.0-alpha.10"
|
|
22
22
|
};
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-api-doc",
|
|
3
|
-
"version": "2.1.0-alpha.
|
|
3
|
+
"version": "2.1.0-alpha.10",
|
|
4
4
|
"displayName": "API documentation",
|
|
5
5
|
"displayName.ru-RU": "Документация API",
|
|
6
6
|
"displayName.zh-CN": "API 文档",
|
|
7
7
|
"description": "An OpenAPI documentation generator for NocoBase HTTP API.",
|
|
8
8
|
"description.ru-RU": "Генератор документации OpenAPI для HTTP API системы NocoBase.",
|
|
9
9
|
"description.zh-CN": "NocoBase HTTP API 的 OpenAPI 文档生成器。",
|
|
10
|
-
"license": "
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
11
|
"main": "./dist/server/index.js",
|
|
12
12
|
"homepage": "https://docs.nocobase.com/handbook/api-doc",
|
|
13
13
|
"homepage.ru-RU": "https://docs-ru.nocobase.com/handbook/api-doc",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
27
27
|
"directory": "packages/plugins/api-doc"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "ce790d46c0a5768ca9618c7d0d77ab8300de75c8"
|
|
30
30
|
}
|