@nocobase/plugin-client 0.14.0-alpha.2 → 0.14.0-alpha.3
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/externalVersion.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
"@nocobase/client": "0.14.0-alpha.
|
|
3
|
-
"@nocobase/utils": "0.14.0-alpha.
|
|
4
|
-
"@nocobase/server": "0.14.0-alpha.
|
|
5
|
-
"@nocobase/database": "0.14.0-alpha.
|
|
2
|
+
"@nocobase/client": "0.14.0-alpha.3",
|
|
3
|
+
"@nocobase/utils": "0.14.0-alpha.3",
|
|
4
|
+
"@nocobase/server": "0.14.0-alpha.3",
|
|
5
|
+
"@nocobase/database": "0.14.0-alpha.3"
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"cronstrue","title":"cRonstrue","version":"2.27.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":"2023-09-
|
|
1
|
+
{"name":"cronstrue","title":"cRonstrue","version":"2.27.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":"2023-09-13T10:39:45.315Z"}
|
package/dist/server/server.js
CHANGED
|
@@ -93,7 +93,6 @@ class ClientPlugin extends import_server.Plugin {
|
|
|
93
93
|
});
|
|
94
94
|
this.app.acl.allow("app", "getLang");
|
|
95
95
|
this.app.acl.allow("app", "getInfo");
|
|
96
|
-
this.app.acl.allow("app", "getPlugins");
|
|
97
96
|
this.app.acl.allow("plugins", "*", "public");
|
|
98
97
|
this.app.acl.registerSnippet({
|
|
99
98
|
name: "app",
|
|
@@ -139,28 +138,6 @@ class ClientPlugin extends import_server.Plugin {
|
|
|
139
138
|
};
|
|
140
139
|
await next();
|
|
141
140
|
},
|
|
142
|
-
async getPlugins(ctx, next) {
|
|
143
|
-
const pm = ctx.db.getRepository("applicationPlugins");
|
|
144
|
-
const PLUGIN_CLIENT_ENTRY_FILE = "dist/client/index.js";
|
|
145
|
-
const items = await pm.find({
|
|
146
|
-
filter: {
|
|
147
|
-
enabled: true
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
ctx.body = items.map((item) => {
|
|
151
|
-
try {
|
|
152
|
-
const packageName = import_server.PluginManager.getPackageName(item.name);
|
|
153
|
-
return {
|
|
154
|
-
...item.toJSON(),
|
|
155
|
-
packageName,
|
|
156
|
-
url: (0, import_server.getExposeUrl)(packageName, PLUGIN_CLIENT_ENTRY_FILE)
|
|
157
|
-
};
|
|
158
|
-
} catch {
|
|
159
|
-
return false;
|
|
160
|
-
}
|
|
161
|
-
}).filter(Boolean);
|
|
162
|
-
await next();
|
|
163
|
-
},
|
|
164
141
|
async clearCache(ctx, next) {
|
|
165
142
|
await ctx.cache.reset();
|
|
166
143
|
await next();
|
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": "0.14.0-alpha.
|
|
7
|
+
"version": "0.14.0-alpha.3",
|
|
8
8
|
"main": "./dist/server/index.js",
|
|
9
9
|
"license": "AGPL-3.0",
|
|
10
10
|
"devDependencies": {
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"@nocobase/test": "0.x",
|
|
21
21
|
"@nocobase/utils": "0.x"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "535a8c83d37e488a52bd1ad3c75726101081177c"
|
|
24
24
|
}
|