@nocobase/plugin-client 0.9.2-alpha.2 → 0.9.2-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/lib/cron.js +1 -1
- package/lib/locale/en-US.json +2 -1
- package/lib/locale/pt-BR.json +2 -1
- package/lib/locale/zh-CN.json +2 -1
- 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
|
@@ -161,9 +161,10 @@
|
|
|
161
161
|
"Association fields filter": "Association fields filter",
|
|
162
162
|
"PK & FK fields": "PK & FK fields",
|
|
163
163
|
"Association fields": "Association fields",
|
|
164
|
-
"
|
|
164
|
+
"Choices fields": "Choices 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
|
@@ -146,9 +146,10 @@
|
|
|
146
146
|
"Association fields filter": "Filtro de campos de associação",
|
|
147
147
|
"PK & FK fields": "Campos PK & FK",
|
|
148
148
|
"Association fields": "Campos de associação",
|
|
149
|
-
"
|
|
149
|
+
"Choices fields": "Campos de opções",
|
|
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
|
@@ -161,9 +161,10 @@
|
|
|
161
161
|
"Association fields filter": "关系筛选",
|
|
162
162
|
"PK & FK fields": "主外键字段",
|
|
163
163
|
"Association fields": "关系字段",
|
|
164
|
-
"
|
|
164
|
+
"Choices fields": "选项字段",
|
|
165
165
|
"System fields": "系统字段",
|
|
166
166
|
"General fields": "普通字段",
|
|
167
|
+
"Inherited fields": "继承字段",
|
|
167
168
|
"Parent collection fields": "父表字段",
|
|
168
169
|
"Basic": "基本类型",
|
|
169
170
|
"Single line text": "单行文本",
|
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.4",
|
|
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.4"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@nocobase/test": "0.9.2-alpha.
|
|
10
|
+
"@nocobase/test": "0.9.2-alpha.4"
|
|
11
11
|
},
|
|
12
|
-
"gitHead": "
|
|
12
|
+
"gitHead": "96cb023f353a4fb099dea074c575be65ebab813f"
|
|
13
13
|
}
|