@nocobase/plugin-api-doc 1.6.0-alpha.2 → 1.6.0-alpha.4
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.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("@nocobase/sdk"),require("@nocobase/client"),require("antd"),require("@ant-design/icons"),require("antd-style"),require("react")):"function"==typeof define&&define.amd?define("@nocobase/plugin-api-doc",["react-i18next","@nocobase/sdk","@nocobase/client","antd","@ant-design/icons","antd-style","react"],t):"object"==typeof exports?exports["@nocobase/plugin-api-doc"]=t(require("react-i18next"),require("@nocobase/sdk"),require("@nocobase/client"),require("antd"),require("@ant-design/icons"),require("antd-style"),require("react")):e["@nocobase/plugin-api-doc"]=t(e["react-i18next"],e["@nocobase/sdk"],e["@nocobase/client"],e.antd,e["@ant-design/icons"],e["antd-style"],e.react)}(self,function(e,t,n,r,o,i,u){return function(){var c,a,l,s,f,p={117:function(e,t,n){"use strict";n.d(t,{$G:function(){return i},A7:function(){return o}}),n(772);var r=n(238),o="api-doc";function i(){return(0,r.useTranslation)(o)}},581:function(e){e.exports=function(e,t){return"undefined"!=typeof __deoptimization_sideEffect__&&__deoptimization_sideEffect__(e,t),t}},482:function(e){"use strict";e.exports=o},772:function(e){"use strict";e.exports=n},308:function(e){"use strict";e.exports=t},721:function(e){"use strict";e.exports=r},202:function(e){"use strict";e.exports=i},156:function(e){"use strict";e.exports=u},238:function(t){"use strict";t.exports=e}},d={};function b(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={id:e,exports:{}};return p[e].call(n.exports,n,n.exports,b),n.exports}b.m=p,b.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(t,{a:t}),t},b.d=function(e,t){for(var n in t)b.o(t,n)&&!b.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},b.f={},b.e=function(e){return Promise.all(Object.keys(b.f).reduce(function(t,n){return b.f[n](e,t),t},[]))},b.u=function(e){return""+e+".
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react-i18next"),require("@nocobase/sdk"),require("@nocobase/client"),require("antd"),require("@ant-design/icons"),require("antd-style"),require("react")):"function"==typeof define&&define.amd?define("@nocobase/plugin-api-doc",["react-i18next","@nocobase/sdk","@nocobase/client","antd","@ant-design/icons","antd-style","react"],t):"object"==typeof exports?exports["@nocobase/plugin-api-doc"]=t(require("react-i18next"),require("@nocobase/sdk"),require("@nocobase/client"),require("antd"),require("@ant-design/icons"),require("antd-style"),require("react")):e["@nocobase/plugin-api-doc"]=t(e["react-i18next"],e["@nocobase/sdk"],e["@nocobase/client"],e.antd,e["@ant-design/icons"],e["antd-style"],e.react)}(self,function(e,t,n,r,o,i,u){return function(){var c,a,l,s,f,p={117:function(e,t,n){"use strict";n.d(t,{$G:function(){return i},A7:function(){return o}}),n(772);var r=n(238),o="api-doc";function i(){return(0,r.useTranslation)(o)}},581:function(e){e.exports=function(e,t){return"undefined"!=typeof __deoptimization_sideEffect__&&__deoptimization_sideEffect__(e,t),t}},482:function(e){"use strict";e.exports=o},772:function(e){"use strict";e.exports=n},308:function(e){"use strict";e.exports=t},721:function(e){"use strict";e.exports=r},202:function(e){"use strict";e.exports=i},156:function(e){"use strict";e.exports=u},238:function(t){"use strict";t.exports=e}},d={};function b(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={id:e,exports:{}};return p[e].call(n.exports,n,n.exports,b),n.exports}b.m=p,b.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(t,{a:t}),t},b.d=function(e,t){for(var n in t)b.o(t,n)&&!b.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},b.f={},b.e=function(e){return Promise.all(Object.keys(b.f).reduce(function(t,n){return b.f[n](e,t),t},[]))},b.u=function(e){return""+({737:"054ff5b72cfef1a4",814:"f27e2b7cda1707c6"})[e]+".js"},b.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c={},a="@nocobase/plugin-api-doc:",b.l=function(e,t,n,r){if(c[e]){c[e].push(t);return}if(void 0!==n){for(var o,i,u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var s=u[l];if(s.getAttribute("src")==e||s.getAttribute("data-webpack")==a+n){o=s;break}}}!o&&(i=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,b.nc&&o.setAttribute("nonce",b.nc),o.setAttribute("data-webpack",a+n),o.src=e),c[e]=[t];var f=function(t,n){o.onerror=o.onload=null,clearTimeout(p);var r=c[e];if(delete c[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(n)}),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=f.bind(null,o.onerror),o.onload=f.bind(null,o.onload),i&&document.head.appendChild(o)},b.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.nc=void 0,b.p="/static/plugins/@nocobase/plugin-api-doc/dist/client/",b.b=document.baseURI||self.location.href,l={909:0},b.f.j=function(e,t){var n=b.o(l,e)?l[e]:void 0;if(0!==n){if(n)t.push(n[2]);else{var r=new Promise(function(t,r){n=l[e]=[t,r]});t.push(n[2]=r);var o=b.p+b.u(e),i=Error();b.l(o,function(t){if(b.o(l,e)&&(0!==(n=l[e])&&(l[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)}}},s=function(e,t){var n=t[0],r=t[1],o=t[2],i,u,c=0;if(n.some(function(e){return 0!==l[e]})){for(i in r)b.o(r,i)&&(b.m[i]=r[i]);o&&o(b)}for(e&&e(t);c<n.length;c++)u=n[c],b.o(l,u)&&l[u]&&l[u][0](),l[u]=0},(f=self.webpackChunk_nocobase_plugin_api_doc=self.webpackChunk_nocobase_plugin_api_doc||[]).forEach(s.bind(null,0)),f.push=s.bind(null,f.push.bind(f));var y={};return!function(){"use strict";b.r(y),b.d(y,{PluginAPIDocClient:function(){return k},useStyles:function(){return _}});var e=b(482),t=b(772),n=b(721),r=b(202),o=b(156),i=b.n(o),u=b(117),c=b(581);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=v()?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,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)}}function f(e){return(f=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){var n;if(null===e||(n=e,-1===Function.toString.call(n).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,r)}function r(){return l(e,arguments,f(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),p(r,e)})(e)}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}function m(){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 m=function(){return n},n}var h="/api-documentation",g=(0,o.lazy)(function(){return c("imported_1qf4hs9_component",Promise.all([b.e("737"),b.e("814")]).then(b.bind(b,667)))}),_=(0,r.createStyles)(function(e){var t=e.css,n=e.token;return t(m(),n.colorBgContainer,n.paddingMD)}),x=function(){var t=_().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(g,null))},k=function(e){var t,n,r;function o(){var e,t,n;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),e=this,t=o,n=arguments,t=f(t),function(e,t){return t&&("object"===function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}(t)||"function"==typeof t)?t:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,v()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(o,e),t=o,n=[{key:"load",value:function(){var e,t=this;return(e=function(){return function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}(this,function(e){return t.app.pluginSettingsManager.add(u.A7,{title:'{{t("API documentation", { ns: "'.concat(u.A7,'" })}}'),icon:"BookOutlined",Component:x,aclSnippet:"pm.api-doc.documentation"}),t.app.router.add("api-documentation",{path:h,Component:g}),[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)})})()}}],s(t.prototype,n),o}(d(t.Plugin));y.default=k}(),y}()});
|
package/dist/externalVersion.js
CHANGED
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "1.6.0-alpha.
|
|
12
|
-
"@nocobase/sdk": "1.6.0-alpha.
|
|
11
|
+
"@nocobase/client": "1.6.0-alpha.4",
|
|
12
|
+
"@nocobase/sdk": "1.6.0-alpha.4",
|
|
13
13
|
"antd": "5.12.8",
|
|
14
14
|
"react": "18.2.0",
|
|
15
15
|
"@ant-design/icons": "5.2.6",
|
|
16
16
|
"antd-style": "3.7.1",
|
|
17
17
|
"react-i18next": "11.18.6",
|
|
18
|
-
"@nocobase/actions": "1.6.0-alpha.
|
|
19
|
-
"@nocobase/server": "1.6.0-alpha.
|
|
20
|
-
"@nocobase/utils": "1.6.0-alpha.
|
|
21
|
-
"@nocobase/database": "1.6.0-alpha.
|
|
18
|
+
"@nocobase/actions": "1.6.0-alpha.4",
|
|
19
|
+
"@nocobase/server": "1.6.0-alpha.4",
|
|
20
|
+
"@nocobase/utils": "1.6.0-alpha.4",
|
|
21
|
+
"@nocobase/database": "1.6.0-alpha.4"
|
|
22
22
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-api-doc",
|
|
3
|
-
"version": "1.6.0-alpha.
|
|
3
|
+
"version": "1.6.0-alpha.4",
|
|
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": "595d5236feda9258791dac76270494721813b7e1"
|
|
27
27
|
}
|
|
File without changes
|
|
File without changes
|