@nocobase/plugin-client 0.9.2-alpha.1 → 0.9.2-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/lib/cron.js +1 -1
- package/lib/locale/en-US.json +1 -0
- package/lib/locale/pt-BR.json +1 -0
- package/lib/locale/zh-CN.json +1 -0
- package/lib/resource.js +1 -1
- package/lib/server.js +2 -2
- package/package.json +4 -4
package/lib/cron.js
CHANGED
package/lib/locale/en-US.json
CHANGED
|
@@ -164,6 +164,7 @@
|
|
|
164
164
|
"Optional fields": "Optional fields",
|
|
165
165
|
"System fields": "System fields",
|
|
166
166
|
"General fields": "General fields",
|
|
167
|
+
"Inherited fields": "Inherited fields",
|
|
167
168
|
"Parent collection fields": "Parent collection fields",
|
|
168
169
|
"Basic": "Basic",
|
|
169
170
|
"Single line text": "Single line text",
|
package/lib/locale/pt-BR.json
CHANGED
|
@@ -149,6 +149,7 @@
|
|
|
149
149
|
"Optional fields": "Campos opcionais",
|
|
150
150
|
"System fields": "Campos do sistema",
|
|
151
151
|
"General fields": "Campos gerais",
|
|
152
|
+
"Inherited fields": "Campos herdados",
|
|
152
153
|
"Parent collection fields": "Campos da coleção pai",
|
|
153
154
|
"Basic": "Básico",
|
|
154
155
|
"Single line text": "Texto de linha única",
|
package/lib/locale/zh-CN.json
CHANGED
package/lib/resource.js
CHANGED
|
@@ -38,7 +38,7 @@ const arr2obj = items => {
|
|
|
38
38
|
return obj;
|
|
39
39
|
};
|
|
40
40
|
const getResource = (packageName, lang) => {
|
|
41
|
-
|
|
41
|
+
const resources = [];
|
|
42
42
|
const prefixes = ['src', 'lib'];
|
|
43
43
|
const localeKeys = ['locale', 'client/locale', 'server/locale'];
|
|
44
44
|
for (var _i = 0, _prefixes = prefixes; _i < _prefixes.length; _i++) {
|
package/lib/server.js
CHANGED
|
@@ -72,7 +72,7 @@ function _getReadMe() {
|
|
|
72
72
|
_getReadMe = _asyncToGenerator(function* (name, locale) {
|
|
73
73
|
const packageName = _server().PluginManager.getPackageName(name);
|
|
74
74
|
const dir = (0, _path().resolve)(process.cwd(), 'node_modules', packageName);
|
|
75
|
-
|
|
75
|
+
const files = [(0, _path().resolve)(dir, `README.${locale}.md`), (0, _path().resolve)(dir, `README.md`)];
|
|
76
76
|
const file = files.find(file => {
|
|
77
77
|
return _fs().default.existsSync(file);
|
|
78
78
|
});
|
|
@@ -87,7 +87,7 @@ function _getTabs() {
|
|
|
87
87
|
_getTabs = _asyncToGenerator(function* (name, locale) {
|
|
88
88
|
const packageName = _server().PluginManager.getPackageName(name);
|
|
89
89
|
const dir = (0, _path().resolve)(process.cwd(), 'node_modules', packageName);
|
|
90
|
-
|
|
90
|
+
const file = (0, _path().resolve)(dir, 'docs', locale, 'tabs.json');
|
|
91
91
|
if (!_fs().default.existsSync(file)) {
|
|
92
92
|
// TODO: compatible README, remove it in all plugin has tabs.json
|
|
93
93
|
return [{
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-client",
|
|
3
|
-
"version": "0.9.2-alpha.
|
|
3
|
+
"version": "0.9.2-alpha.3",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@nocobase/server": "0.9.2-alpha.
|
|
7
|
+
"@nocobase/server": "0.9.2-alpha.3"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@nocobase/test": "0.9.2-alpha.
|
|
10
|
+
"@nocobase/test": "0.9.2-alpha.3"
|
|
11
11
|
},
|
|
12
|
-
"gitHead": "
|
|
12
|
+
"gitHead": "b6b5f9372202d942c97d2d90a4197e060db05124"
|
|
13
13
|
}
|