@nocobase/plugin-client 1.5.0-beta.2 → 1.5.0-beta.21

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.
@@ -7,4 +7,4 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
 
10
- (function(e,n){typeof exports=="object"&&typeof module!="undefined"?n(exports,require("@nocobase/client")):typeof define=="function"&&define.amd?define(["exports","@nocobase/client"],n):(e=typeof globalThis!="undefined"?globalThis:e||self,n(e["@nocobase/plugin-client"]={},e["@nocobase/client"]))})(this,function(e,n){"use strict";var d=(e,n,t)=>new Promise((u,l)=>{var c=i=>{try{o(t.next(i))}catch(s){l(s)}},f=i=>{try{o(t.throw(i))}catch(s){l(s)}},o=i=>i.done?u(i.value):Promise.resolve(i.value).then(c,f);o((t=t.apply(e,n)).next())});class t extends n.Plugin{load(){return d(this,null,function*(){})}}e.default=t,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
10
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@nocobase/client")):"function"==typeof define&&define.amd?define("@nocobase/plugin-client",["@nocobase/client"],t):"object"==typeof exports?exports["@nocobase/plugin-client"]=t(require("@nocobase/client")):e["@nocobase/plugin-client"]=t(e["@nocobase/client"])}(self,function(e){return function(){"use strict";var t={772:function(t){t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var u=n[e]={exports:{}};return t[e](u,u.exports,r),u.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};r.r(o);var u=r(772);function i(e,t,n,r,o,u,i){try{var c=e[u](i),a=c.value}catch(e){n(e);return}c.done?t(a):Promise.resolve(a).then(r,o)}function c(e,t,n){return(c=s()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&l(o,n.prototype),o}).apply(null,arguments)}function a(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 l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t="function"==typeof Map?new Map:void 0;return(p=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 c(e,arguments,f(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l(r,e)})(e)}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}var b=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,s()?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&&l(e,t)}(o,e),t=o,n=[{key:"load",value:function(){var e;return(e=function(){return function(e,t){var n,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(u){return function(c){return function(u){if(n)throw TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}(this,function(e){return[2]})},function(){var t=this,n=arguments;return new Promise(function(r,o){var u=e.apply(t,n);function c(e){i(u,r,o,c,a,"next",e)}function a(e){i(u,r,o,c,a,"throw",e)}c(void 0)})})()}}],a(t.prototype,n),o}(p(u.Plugin));return o.default=b,o}()});
@@ -8,8 +8,8 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "1.5.0-beta.2",
12
- "@nocobase/utils": "1.5.0-beta.2",
13
- "@nocobase/server": "1.5.0-beta.2",
14
- "@nocobase/database": "1.5.0-beta.2"
11
+ "@nocobase/client": "1.5.0-beta.21",
12
+ "@nocobase/utils": "1.5.0-beta.21",
13
+ "@nocobase/server": "1.5.0-beta.21",
14
+ "@nocobase/database": "1.5.0-beta.21"
15
15
  };
@@ -785,7 +785,7 @@ module.exports = {
785
785
  "Quick duplicate": "Quick duplicate",
786
786
  "Duplicate and continue": "Duplicate and continue",
787
787
  "Please configure the duplicate fields": "Please configure the duplicate fields",
788
- Add: "Create",
788
+ Add: "Add",
789
789
  "Add new mode": "Add new mode",
790
790
  "Quick add": "Quick add",
791
791
  "Modal add": "Modal add",
@@ -317,10 +317,10 @@ module.exports = {
317
317
  "Relationship type": "\u5173\u7CFB\u7C7B\u578B",
318
318
  "Inverse relationship type": "\u53CD\u5411\u5173\u7CFB\u7C7B\u578B",
319
319
  "Source collection": "\u6E90\u6570\u636E\u8868",
320
- "Source key": "\u6E90\u6570\u636E\u8868\u5B57\u6BB5\u6807\u8BC6",
320
+ "Source key": "\u6E90\u6570\u636E\u8868\u6807\u8BC6\u5B57\u6BB5",
321
321
  "Target collection": "\u76EE\u6807\u6570\u636E\u8868",
322
322
  "Through collection": "\u4E2D\u95F4\u6570\u636E\u8868",
323
- "Target key": "\u76EE\u6807\u6570\u636E\u8868\u5B57\u6BB5\u6807\u8BC6",
323
+ "Target key": "\u76EE\u6807\u6570\u636E\u8868\u6807\u8BC6\u5B57\u6BB5",
324
324
  "Foreign key": "\u5916\u952E",
325
325
  "One to one": "\u4E00\u5BF9\u4E00",
326
326
  "One to many": "\u4E00\u5BF9\u591A",
@@ -378,7 +378,7 @@ module.exports = {
378
378
  Hide: "\u9690\u85CF",
379
379
  "Enable actions": "\u542F\u7528\u64CD\u4F5C",
380
380
  Import: "\u5BFC\u5165",
381
- Export: "\u5BFC\u51FA",
381
+ Export: "\u5BFC\u51FA\u8BB0\u5F55",
382
382
  Customize: "\u81EA\u5B9A\u4E49",
383
383
  Custom: "\u81EA\u5B9A\u4E49",
384
384
  Function: "Function",
@@ -749,7 +749,7 @@ module.exports = {
749
749
  "Plugin starting...": "\u63D2\u4EF6\u542F\u52A8\u4E2D...",
750
750
  "Plugin stopping...": "\u63D2\u4EF6\u505C\u6B62\u4E2D...",
751
751
  "Are you sure to delete this plugin?": "\u786E\u5B9A\u8981\u5220\u9664\u6B64\u63D2\u4EF6\u5417\uFF1F",
752
- "Are you sure to disable this plugin?": "\u786E\u5B9A\u8981\u7981\u7528\u6B64\u63D2\u4EF6\u5417?",
752
+ "Are you sure to disable this plugin?": "\u786E\u5B9A\u8981\u7981\u7528\u6B64\u63D2\u4EF6\u5417\uFF1F",
753
753
  "re-download file": "\u91CD\u65B0\u4E0B\u8F7D\u6587\u4EF6",
754
754
  "Not enabled": "\u672A\u542F\u7528",
755
755
  "Search plugin": "\u641C\u7D22\u63D2\u4EF6",
@@ -863,6 +863,10 @@ module.exports = {
863
863
  "Failed to load plugin": "\u63D2\u4EF6\u52A0\u8F7D\u5931\u8D25",
864
864
  "Allow add new, update and delete actions": "\u5141\u8BB8\u589E\u5220\u6539\u64CD\u4F5C",
865
865
  "Date display format": "\u65E5\u671F\u663E\u793A\u683C\u5F0F",
866
+ "Date range limit": "\u65E5\u671F\u9650\u5B9A\u8303\u56F4",
867
+ MinDate: "\u6700\u5C0F\u65E5\u671F",
868
+ MaxDate: "\u6700\u5927\u65E5\u671F",
869
+ "Please select time or variable": "\u8BF7\u9009\u62E9\u65F6\u95F4\u6216\u53D8\u91CF",
866
870
  "Filter out a single piece or a group of records as a template": "\u7B5B\u9009\u51FA\u4E00\u6761\u6216\u4E00\u7EC4\u6570\u636E\uFF0C\u4F5C\u4E3A\u6A21\u677F",
867
871
  "The title field is used to identify the template record": "\u7528\u4E8E\u8BC6\u522B\u6A21\u677F\u6570\u636E",
868
872
  "Template fields": "\u6A21\u677F\u5B57\u6BB5",
@@ -1040,5 +1044,9 @@ module.exports = {
1040
1044
  Plugin: "\u63D2\u4EF6",
1041
1045
  "Bulk enable": "\u6279\u91CF\u6FC0\u6D3B",
1042
1046
  "Search plugin...": "\u641C\u7D22\u63D2\u4EF6...",
1043
- "Package name": "\u5305\u540D"
1047
+ "Package name": "\u5305\u540D",
1048
+ Associate: "\u5173\u8054",
1049
+ "Please add or select record": "\u8BF7\u6DFB\u52A0\u6216\u9009\u62E9\u6570\u636E",
1050
+ "No data": "\u6682\u65E0\u6570\u636E",
1051
+ "Fields can only be used correctly if they are defined with an interface.": "\u53EA\u6709\u5B57\u6BB5\u8BBE\u7F6E\u4E86interface\u5B57\u6BB5\u624D\u80FD\u6B63\u5E38\u4F7F\u7528"
1044
1052
  };
@@ -1 +1 @@
1
- {"name":"cronstrue","title":"cRonstrue","version":"2.47.0","description":"Convert cron expressions into human readable descriptions","author":"Brady Holt","license":"MIT","bugs":{"url":"https://github.com/bradymholt/cronstrue/issues"},"homepage":"https://github.com/bradymholt/cronstrue","keywords":["cron","cronjob","crontab","schedule","parser","cron expression","cron description","pretty cron","cron for humans","cron translated","cron english","cron schedule","cron english","cron schedule"],"main":"dist/cronstrue.js","bin":{"cronstrue":"bin/cli.js"},"typings":"dist/cronstrue.d.ts","files":["dist/","locales/","i18n.js","i18n.d.ts"],"repository":{"type":"git","url":"git+https://github.com/bradymholt/cronstrue.git"},"publishConfig":{"access":"public"},"prettier":{"printWidth":120},"devDependencies":{"@types/chai":"^4.2.11","@types/mocha":"^8.0.0","chai":"^4.2.0","handlebars":"^4.7.6","marked":"^4.0.10","mocha":"^10.1.0","pixl-xml":"^1.0.13","prettier":"^2.1.1","terser-webpack-plugin":"^5.3.1","ts-loader":"^9.2.6","ts-node":"^10.5.0","typescript":"^4.6.2","webpack":"^5.69.1","webpack-cli":"^4.9.2","xml2js":"^0.5.0"},"scripts":{"start":"npm run build","build":"npx tsc -p ./src --emitDeclarationOnly","test":"npx mocha --reporter spec --require ts-node/register \"./test/**/*.ts\"","prepublishOnly":"rm -rf ./dist && ./node_modules/webpack-cli/bin/cli.js && git add -A"},"dependencies":{},"_lastModified":"2024-12-06T08:57:13.519Z"}
1
+ {"name":"cronstrue","title":"cRonstrue","version":"2.47.0","description":"Convert cron expressions into human readable descriptions","author":"Brady Holt","license":"MIT","bugs":{"url":"https://github.com/bradymholt/cronstrue/issues"},"homepage":"https://github.com/bradymholt/cronstrue","keywords":["cron","cronjob","crontab","schedule","parser","cron expression","cron description","pretty cron","cron for humans","cron translated","cron english","cron schedule","cron english","cron schedule"],"main":"dist/cronstrue.js","bin":{"cronstrue":"bin/cli.js"},"typings":"dist/cronstrue.d.ts","files":["dist/","locales/","i18n.js","i18n.d.ts"],"repository":{"type":"git","url":"git+https://github.com/bradymholt/cronstrue.git"},"publishConfig":{"access":"public"},"prettier":{"printWidth":120},"devDependencies":{"@types/chai":"^4.2.11","@types/mocha":"^8.0.0","chai":"^4.2.0","handlebars":"^4.7.6","marked":"^4.0.10","mocha":"^10.1.0","pixl-xml":"^1.0.13","prettier":"^2.1.1","terser-webpack-plugin":"^5.3.1","ts-loader":"^9.2.6","ts-node":"^10.5.0","typescript":"^4.6.2","webpack":"^5.69.1","webpack-cli":"^4.9.2","xml2js":"^0.5.0"},"scripts":{"start":"npm run build","build":"npx tsc -p ./src --emitDeclarationOnly","test":"npx mocha --reporter spec --require ts-node/register \"./test/**/*.ts\"","prepublishOnly":"rm -rf ./dist && ./node_modules/webpack-cli/bin/cli.js && git add -A"},"dependencies":{},"_lastModified":"2025-01-03T00:40:20.396Z"}
@@ -146,6 +146,7 @@ class PluginClientServer extends import_server.Plugin {
146
146
  }
147
147
  }
148
148
  });
149
+ this.app.auditManager.registerActions(["app:restart", "app:clearCache"]);
149
150
  }
150
151
  }
151
152
  var server_default = PluginClientServer;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "WEB 客户端",
5
5
  "description": "Provides a client interface for the NocoBase server",
6
6
  "description.zh-CN": "为 NocoBase 服务端提供客户端界面",
7
- "version": "1.5.0-beta.2",
7
+ "version": "1.5.0-beta.21",
8
8
  "main": "./dist/server/index.js",
9
9
  "license": "AGPL-3.0",
10
10
  "devDependencies": {
@@ -20,5 +20,5 @@
20
20
  "@nocobase/test": "1.x",
21
21
  "@nocobase/utils": "1.x"
22
22
  },
23
- "gitHead": "8a9c29fdac5c6295dcc7abf00c3fa81bd9e01a36"
23
+ "gitHead": "6a2c545d9e5e4f073592c810e704e6b0fe9aa096"
24
24
  }