@nocobase/plugin-field-china-region 1.4.30 → 1.4.31
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 +3 -3
- package/dist/server/index.js +1 -0
- package/package.json +2 -2
package/dist/externalVersion.js
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"@formily/core": "2.3.0",
|
|
12
12
|
"@formily/react": "2.3.0",
|
|
13
|
-
"@nocobase/client": "1.4.
|
|
13
|
+
"@nocobase/client": "1.4.31",
|
|
14
14
|
"@formily/shared": "2.3.2",
|
|
15
|
-
"@nocobase/server": "1.4.
|
|
15
|
+
"@nocobase/server": "1.4.31",
|
|
16
16
|
"china-division": "2.7.0",
|
|
17
|
-
"@nocobase/database": "1.4.
|
|
17
|
+
"@nocobase/database": "1.4.31"
|
|
18
18
|
};
|
package/dist/server/index.js
CHANGED
|
@@ -48,6 +48,7 @@ class PluginFieldChinaRegionServer extends import_server.Plugin {
|
|
|
48
48
|
async load() {
|
|
49
49
|
await this.importCollections((0, import_path.resolve)(__dirname, "collections"));
|
|
50
50
|
this.app.acl.allow("chinaRegions", "list", "loggedIn");
|
|
51
|
+
this.app.acl.appendStrategyResource("chinaRegions");
|
|
51
52
|
this.app.resourceManager.use(async function blockChinaRegionList(ctx, next) {
|
|
52
53
|
const { resourceName, actionName } = ctx.action.params;
|
|
53
54
|
if (resourceName == "chinaRegions" && actionName !== "list") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-field-china-region",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.31",
|
|
4
4
|
"displayName": "Collection field: administrative divisions of China",
|
|
5
5
|
"displayName.zh-CN": "数据表字段:中国行政区划",
|
|
6
6
|
"description": "Provides data and field type for administrative divisions of China.",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@nocobase/server": "1.x",
|
|
23
23
|
"@nocobase/test": "1.x"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "931861310dfd8ab019906f8a3a73576922145e63",
|
|
26
26
|
"keywords": [
|
|
27
27
|
"Collection fields"
|
|
28
28
|
]
|