@nocobase/client 0.8.1-alpha.4 → 0.9.0-alpha.2
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/es/acl/ACLProvider.d.ts +16 -2
- package/es/acl/ACLProvider.js +271 -100
- package/es/acl/Configuration/ConfigureCenter.d.ts +2 -0
- package/es/acl/Configuration/ConfigureCenter.js +254 -0
- package/es/acl/Configuration/MenuConfigure.js +2 -2
- package/es/acl/Configuration/PermisionProvider.d.ts +4 -0
- package/es/acl/Configuration/PermisionProvider.js +132 -0
- package/es/acl/Configuration/RoleConfigure.js +98 -23
- package/es/acl/Configuration/RoleTable.d.ts +1 -1
- package/es/acl/Configuration/RoleTable.js +6 -3
- package/es/acl/Configuration/RolesResourcesActions.js +2 -2
- package/es/acl/Configuration/index.d.ts +1 -0
- package/es/acl/Configuration/index.js +2 -1
- package/es/acl/Configuration/schemas/roleCollections.js +41 -13
- package/es/acl/Configuration/schemas/roles.js +42 -2
- package/es/acl/Configuration/schemas/scopes.js +2 -0
- package/es/acl/index.d.ts +1 -0
- package/es/acl/index.js +2 -1
- package/es/acl/style.less +10 -0
- package/es/antd-config-provider/index.d.ts +3 -1
- package/es/antd-config-provider/index.js +25 -6
- package/es/antd-config-provider/loadConstrueLocale.d.ts +1 -0
- package/es/antd-config-provider/loadConstrueLocale.js +293 -0
- package/es/api-client/APIClient.js +5 -0
- package/es/block-provider/FormBlockProvider.js +5 -2
- package/es/block-provider/KanbanBlockProvider.js +3 -3
- package/es/block-provider/SharedFilterProvider.d.ts +1 -0
- package/es/block-provider/SharedFilterProvider.js +22 -6
- package/es/collection-manager/CollectionHistoryProvider.js +14 -2
- package/es/collection-manager/hooks/useCollection.d.ts +1 -0
- package/es/collection-manager/hooks/useCollection.js +10 -0
- package/es/collection-manager/interfaces/index.d.ts +0 -1
- package/es/collection-manager/interfaces/index.js +0 -1
- package/es/collection-manager/interfaces/o2m.js +1 -0
- package/es/collection-manager/interfaces/properties/operators.js +7 -0
- package/es/collection-manager/interfaces/subTable.js +1 -0
- package/es/collection-manager/templates/calendar.js +5 -0
- package/es/formula/Expression.d.ts +2 -0
- package/es/formula/Expression.js +296 -0
- package/es/formula/Result.d.ts +2 -0
- package/es/formula/Result.js +91 -0
- package/es/formula/index.d.ts +6 -0
- package/es/formula/index.js +8 -0
- package/es/i18n/i18n.js +7 -12
- package/es/index.d.ts +2 -1
- package/es/index.js +3 -2
- package/es/locale/en_US.d.ts +108 -28
- package/es/locale/en_US.js +108 -28
- package/es/locale/index.d.ts +201 -4
- package/es/locale/index.js +191 -58
- package/es/locale/ja_JP.d.ts +4 -0
- package/es/locale/ja_JP.js +4 -0
- package/es/locale/zh_CN.d.ts +11 -1
- package/es/locale/zh_CN.js +12 -2
- package/es/plugin-manager/PluginManager.js +19 -13
- package/es/pm/PluginManagerLink.js +38 -43
- package/es/pm/index.d.ts +1 -0
- package/es/pm/index.js +84 -35
- package/es/record-provider/index.d.ts +1 -0
- package/es/record-provider/index.js +7 -4
- package/es/route-switch/antd/admin-layout/index.d.ts +1 -0
- package/es/route-switch/antd/admin-layout/index.js +4 -6
- package/es/schema-component/antd/action/Action.js +19 -16
- package/es/schema-component/antd/association-filter/AssociationFilter.Item.js +24 -23
- package/es/schema-component/antd/cron/Cron.d.ts +0 -1
- package/es/schema-component/antd/cron/Cron.js +16 -19
- package/es/schema-component/antd/cron/locale/index.d.ts +37 -0
- package/es/schema-component/antd/cron/locale/index.js +6 -0
- package/es/schema-component/antd/filter/useFilterActionProps.js +17 -23
- package/es/schema-component/antd/form-item/FormItem.js +5 -4
- package/es/schema-component/antd/index.d.ts +1 -2
- package/es/schema-component/antd/index.js +1 -2
- package/es/schema-component/antd/page/FixedBlock.d.ts +1 -1
- package/es/schema-component/antd/page/FixedBlock.js +70 -21
- package/es/schema-component/antd/page/Page.js +15 -10
- package/es/schema-component/antd/remote-select/RemoteSelect.js +12 -2
- package/es/schema-component/antd/table/Table.Array.js +1 -1
- package/es/schema-component/antd/table-v2/Table.js +13 -6
- package/es/schema-component/antd/table-v2/TableBlockDesigner.js +24 -8
- package/es/schema-component/hooks/useDesignable.d.ts +1 -1
- package/es/schema-component/hooks/useDesignable.js +45 -16
- package/es/schema-component/hooks/useFieldTitle.js +3 -1
- package/es/schema-initializer/buttons/ReadPrettyFormActionInitializers.d.ts +3 -0
- package/es/schema-initializer/buttons/ReadPrettyFormActionInitializers.js +1 -0
- package/es/schema-initializer/buttons/TableActionColumnInitializers.js +1 -0
- package/es/schema-initializer/utils.js +6 -9
- package/es/schema-templates/BlockTemplate.js +2 -2
- package/es/schema-templates/SchemaTemplateManagerProvider.js +1 -1
- package/es/system-settings/SystemSettingsShortcut.js +1 -1
- package/lib/acl/ACLProvider.d.ts +16 -2
- package/lib/acl/ACLProvider.js +283 -102
- package/lib/acl/Configuration/ConfigureCenter.d.ts +2 -0
- package/lib/acl/Configuration/ConfigureCenter.js +278 -0
- package/lib/acl/Configuration/MenuConfigure.js +3 -3
- package/lib/acl/Configuration/PermisionProvider.d.ts +4 -0
- package/lib/acl/Configuration/PermisionProvider.js +156 -0
- package/lib/acl/Configuration/RoleConfigure.js +107 -23
- package/lib/acl/Configuration/RoleTable.d.ts +1 -1
- package/lib/acl/Configuration/RoleTable.js +8 -4
- package/lib/acl/Configuration/RolesResourcesActions.js +2 -2
- package/lib/acl/Configuration/index.d.ts +1 -0
- package/lib/acl/Configuration/index.js +15 -1
- package/lib/acl/Configuration/schemas/roleCollections.js +41 -13
- package/lib/acl/Configuration/schemas/roles.js +47 -2
- package/lib/acl/Configuration/schemas/scopes.js +2 -0
- package/lib/acl/index.d.ts +1 -0
- package/lib/acl/index.js +3 -1
- package/lib/acl/style.less +10 -0
- package/lib/antd-config-provider/index.d.ts +3 -1
- package/lib/antd-config-provider/index.js +40 -6
- package/lib/antd-config-provider/loadConstrueLocale.d.ts +1 -0
- package/lib/antd-config-provider/loadConstrueLocale.js +304 -0
- package/lib/api-client/APIClient.js +5 -0
- package/lib/block-provider/FormBlockProvider.js +9 -3
- package/lib/block-provider/KanbanBlockProvider.js +3 -3
- package/lib/block-provider/SharedFilterProvider.d.ts +1 -0
- package/lib/block-provider/SharedFilterProvider.js +26 -7
- package/lib/collection-manager/CollectionHistoryProvider.js +14 -1
- package/lib/collection-manager/hooks/useCollection.d.ts +1 -0
- package/lib/collection-manager/hooks/useCollection.js +10 -0
- package/lib/collection-manager/interfaces/index.d.ts +0 -1
- package/lib/collection-manager/interfaces/index.js +0 -13
- package/lib/collection-manager/interfaces/o2m.js +1 -0
- package/lib/collection-manager/interfaces/properties/operators.js +7 -0
- package/lib/collection-manager/interfaces/subTable.js +1 -0
- package/lib/collection-manager/templates/calendar.js +5 -0
- package/lib/formula/Expression.d.ts +2 -0
- package/lib/formula/Expression.js +319 -0
- package/lib/formula/Result.d.ts +2 -0
- package/lib/formula/Result.js +114 -0
- package/lib/formula/index.d.ts +6 -0
- package/lib/formula/index.js +22 -0
- package/lib/i18n/i18n.js +7 -14
- package/lib/index.d.ts +2 -1
- package/lib/index.js +26 -13
- package/lib/locale/en_US.d.ts +108 -28
- package/lib/locale/en_US.js +108 -28
- package/lib/locale/index.d.ts +201 -4
- package/lib/locale/index.js +197 -67
- package/lib/locale/ja_JP.d.ts +4 -0
- package/lib/locale/ja_JP.js +4 -0
- package/lib/locale/zh_CN.d.ts +11 -1
- package/lib/locale/zh_CN.js +12 -2
- package/lib/plugin-manager/PluginManager.js +20 -13
- package/lib/pm/PluginManagerLink.js +37 -43
- package/lib/pm/index.d.ts +1 -0
- package/lib/pm/index.js +90 -35
- package/lib/record-provider/index.d.ts +1 -0
- package/lib/record-provider/index.js +7 -4
- package/lib/route-switch/antd/admin-layout/index.d.ts +1 -0
- package/lib/route-switch/antd/admin-layout/index.js +5 -4
- package/lib/schema-component/antd/action/Action.js +19 -16
- package/lib/schema-component/antd/association-filter/AssociationFilter.Item.js +22 -21
- package/lib/schema-component/antd/cron/Cron.d.ts +0 -1
- package/lib/schema-component/antd/cron/Cron.js +19 -24
- package/lib/schema-component/antd/cron/locale/index.d.ts +37 -0
- package/lib/schema-component/antd/cron/locale/index.js +18 -0
- package/lib/schema-component/antd/filter/useFilterActionProps.js +16 -23
- package/lib/schema-component/antd/form-item/FormItem.js +6 -4
- package/lib/schema-component/antd/index.d.ts +1 -2
- package/lib/schema-component/antd/index.js +8 -21
- package/lib/schema-component/antd/page/FixedBlock.d.ts +1 -1
- package/lib/schema-component/antd/page/FixedBlock.js +71 -21
- package/lib/schema-component/antd/page/Page.js +14 -9
- package/lib/schema-component/antd/remote-select/RemoteSelect.js +18 -3
- package/lib/schema-component/antd/table/Table.Array.js +1 -1
- package/lib/schema-component/antd/table-v2/Table.js +14 -6
- package/lib/schema-component/antd/table-v2/TableBlockDesigner.js +25 -8
- package/lib/schema-component/hooks/useDesignable.d.ts +1 -1
- package/lib/schema-component/hooks/useDesignable.js +47 -18
- package/lib/schema-component/hooks/useFieldTitle.js +4 -1
- package/lib/schema-initializer/buttons/ReadPrettyFormActionInitializers.d.ts +3 -0
- package/lib/schema-initializer/buttons/ReadPrettyFormActionInitializers.js +1 -0
- package/lib/schema-initializer/buttons/TableActionColumnInitializers.js +1 -0
- package/lib/schema-initializer/utils.js +6 -9
- package/lib/schema-templates/BlockTemplate.js +2 -2
- package/lib/schema-templates/SchemaTemplateManagerProvider.js +1 -1
- package/lib/system-settings/SystemSettingsShortcut.js +1 -1
- package/package.json +6 -11
- package/es/collection-manager/interfaces/formula.d.ts +0 -2
- package/es/collection-manager/interfaces/formula.js +0 -74
- package/es/schema-component/antd/formula-input/Compute.d.ts +0 -3
- package/es/schema-component/antd/formula-input/Compute.js +0 -55
- package/es/schema-component/antd/formula-input/FormulaInput.d.ts +0 -3
- package/es/schema-component/antd/formula-input/FormulaInput.js +0 -167
- package/es/schema-component/antd/formula-input/index.d.ts +0 -1
- package/es/schema-component/antd/formula-input/index.js +0 -7
- package/lib/collection-manager/interfaces/formula.d.ts +0 -2
- package/lib/collection-manager/interfaces/formula.js +0 -83
- package/lib/schema-component/antd/formula-input/Compute.d.ts +0 -3
- package/lib/schema-component/antd/formula-input/Compute.js +0 -79
- package/lib/schema-component/antd/formula-input/FormulaInput.d.ts +0 -3
- package/lib/schema-component/antd/formula-input/FormulaInput.js +0 -191
- package/lib/schema-component/antd/formula-input/index.d.ts +0 -1
- package/lib/schema-component/antd/formula-input/index.js +0 -18
package/es/locale/index.d.ts
CHANGED
|
@@ -1,8 +1,205 @@
|
|
|
1
1
|
export declare type LocaleOptions = {
|
|
2
2
|
label: string;
|
|
3
|
-
moment: string;
|
|
4
|
-
antd: any;
|
|
5
|
-
resources?: any;
|
|
6
3
|
};
|
|
7
|
-
|
|
4
|
+
export { default as cron } from '../schema-component/antd/cron/locale';
|
|
5
|
+
declare const _default: {
|
|
6
|
+
'ar-EG': {
|
|
7
|
+
label: string;
|
|
8
|
+
};
|
|
9
|
+
'az-AZ': {
|
|
10
|
+
label: string;
|
|
11
|
+
};
|
|
12
|
+
'bg-BG': {
|
|
13
|
+
label: string;
|
|
14
|
+
};
|
|
15
|
+
'bn-BD': {
|
|
16
|
+
label: string;
|
|
17
|
+
};
|
|
18
|
+
'by-BY': {
|
|
19
|
+
label: string;
|
|
20
|
+
};
|
|
21
|
+
'ca-ES': {
|
|
22
|
+
label: string;
|
|
23
|
+
};
|
|
24
|
+
'cs-CZ': {
|
|
25
|
+
label: string;
|
|
26
|
+
};
|
|
27
|
+
'da-DK': {
|
|
28
|
+
label: string;
|
|
29
|
+
};
|
|
30
|
+
'de-DE': {
|
|
31
|
+
label: string;
|
|
32
|
+
};
|
|
33
|
+
'el-GR': {
|
|
34
|
+
label: string;
|
|
35
|
+
};
|
|
36
|
+
'en-GB': {
|
|
37
|
+
label: string;
|
|
38
|
+
};
|
|
39
|
+
'en-US': {
|
|
40
|
+
label: string;
|
|
41
|
+
};
|
|
42
|
+
'es-ES': {
|
|
43
|
+
label: string;
|
|
44
|
+
};
|
|
45
|
+
'et-EE': {
|
|
46
|
+
label: string;
|
|
47
|
+
};
|
|
48
|
+
'fa-IR': {
|
|
49
|
+
label: string;
|
|
50
|
+
};
|
|
51
|
+
'fi-FI': {
|
|
52
|
+
label: string;
|
|
53
|
+
};
|
|
54
|
+
'fr-BE': {
|
|
55
|
+
label: string;
|
|
56
|
+
};
|
|
57
|
+
'fr-CA': {
|
|
58
|
+
label: string;
|
|
59
|
+
};
|
|
60
|
+
'fr-FR': {
|
|
61
|
+
label: string;
|
|
62
|
+
};
|
|
63
|
+
'ga-IE': {
|
|
64
|
+
label: string;
|
|
65
|
+
};
|
|
66
|
+
'gl-ES': {
|
|
67
|
+
label: string;
|
|
68
|
+
};
|
|
69
|
+
'he-IL': {
|
|
70
|
+
label: string;
|
|
71
|
+
};
|
|
72
|
+
'hi-IN': {
|
|
73
|
+
label: string;
|
|
74
|
+
};
|
|
75
|
+
'hr-HR': {
|
|
76
|
+
label: string;
|
|
77
|
+
};
|
|
78
|
+
'hu-HU': {
|
|
79
|
+
label: string;
|
|
80
|
+
};
|
|
81
|
+
'hy-AM': {
|
|
82
|
+
label: string;
|
|
83
|
+
};
|
|
84
|
+
'id-ID': {
|
|
85
|
+
label: string;
|
|
86
|
+
};
|
|
87
|
+
'is-IS': {
|
|
88
|
+
label: string;
|
|
89
|
+
};
|
|
90
|
+
'it-IT': {
|
|
91
|
+
label: string;
|
|
92
|
+
};
|
|
93
|
+
'ja-JP': {
|
|
94
|
+
label: string;
|
|
95
|
+
};
|
|
96
|
+
'ka-GE': {
|
|
97
|
+
label: string;
|
|
98
|
+
};
|
|
99
|
+
'kk-KZ': {
|
|
100
|
+
label: string;
|
|
101
|
+
};
|
|
102
|
+
'km-KH': {
|
|
103
|
+
label: string;
|
|
104
|
+
};
|
|
105
|
+
'kn-IN': {
|
|
106
|
+
label: string;
|
|
107
|
+
};
|
|
108
|
+
'ko-KR': {
|
|
109
|
+
label: string;
|
|
110
|
+
};
|
|
111
|
+
'ku-IQ': {
|
|
112
|
+
label: string;
|
|
113
|
+
};
|
|
114
|
+
'lt-LT': {
|
|
115
|
+
label: string;
|
|
116
|
+
};
|
|
117
|
+
'lv-LV': {
|
|
118
|
+
label: string;
|
|
119
|
+
};
|
|
120
|
+
'mk-MK': {
|
|
121
|
+
label: string;
|
|
122
|
+
};
|
|
123
|
+
'ml-IN': {
|
|
124
|
+
label: string;
|
|
125
|
+
};
|
|
126
|
+
'mn-MN': {
|
|
127
|
+
label: string;
|
|
128
|
+
};
|
|
129
|
+
'ms-MY': {
|
|
130
|
+
label: string;
|
|
131
|
+
};
|
|
132
|
+
'nb-NO': {
|
|
133
|
+
label: string;
|
|
134
|
+
};
|
|
135
|
+
'ne-NP': {
|
|
136
|
+
label: string;
|
|
137
|
+
};
|
|
138
|
+
'nl-BE': {
|
|
139
|
+
label: string;
|
|
140
|
+
};
|
|
141
|
+
'nl-NL': {
|
|
142
|
+
label: string;
|
|
143
|
+
};
|
|
144
|
+
'pl-PL': {
|
|
145
|
+
label: string;
|
|
146
|
+
};
|
|
147
|
+
'pt-BR': {
|
|
148
|
+
label: string;
|
|
149
|
+
};
|
|
150
|
+
'pt-PT': {
|
|
151
|
+
label: string;
|
|
152
|
+
};
|
|
153
|
+
'ro-RO': {
|
|
154
|
+
label: string;
|
|
155
|
+
};
|
|
156
|
+
'ru-RU': {
|
|
157
|
+
label: string;
|
|
158
|
+
};
|
|
159
|
+
'si-LK': {
|
|
160
|
+
label: string;
|
|
161
|
+
};
|
|
162
|
+
'sk-SK': {
|
|
163
|
+
label: string;
|
|
164
|
+
};
|
|
165
|
+
'sl-SI': {
|
|
166
|
+
label: string;
|
|
167
|
+
};
|
|
168
|
+
'sr-RS': {
|
|
169
|
+
label: string;
|
|
170
|
+
};
|
|
171
|
+
'sv-SE': {
|
|
172
|
+
label: string;
|
|
173
|
+
};
|
|
174
|
+
'ta-IN': {
|
|
175
|
+
label: string;
|
|
176
|
+
};
|
|
177
|
+
'th-TH': {
|
|
178
|
+
label: string;
|
|
179
|
+
};
|
|
180
|
+
'tk-TK': {
|
|
181
|
+
label: string;
|
|
182
|
+
};
|
|
183
|
+
'tr-TR': {
|
|
184
|
+
label: string;
|
|
185
|
+
};
|
|
186
|
+
'uk-UA': {
|
|
187
|
+
label: string;
|
|
188
|
+
};
|
|
189
|
+
'ur-PK': {
|
|
190
|
+
label: string;
|
|
191
|
+
};
|
|
192
|
+
'vi-VN': {
|
|
193
|
+
label: string;
|
|
194
|
+
};
|
|
195
|
+
'zh-CN': {
|
|
196
|
+
label: string;
|
|
197
|
+
};
|
|
198
|
+
'zh-HK': {
|
|
199
|
+
label: string;
|
|
200
|
+
};
|
|
201
|
+
'zh-TW': {
|
|
202
|
+
label: string;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
8
205
|
export default _default;
|
package/es/locale/index.js
CHANGED
|
@@ -1,69 +1,202 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
-
|
|
5
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
-
|
|
7
|
-
import antdEnUS from 'antd/lib/locale/en_US';
|
|
8
|
-
import antdJaJP from 'antd/lib/locale/ja_JP';
|
|
9
|
-
import antdRuRU from 'antd/lib/locale/ru_RU';
|
|
10
|
-
import antdTrTR from 'antd/lib/locale/tr_TR';
|
|
11
|
-
import antdZhCN from 'antd/lib/locale/zh_CN';
|
|
12
|
-
import enUS from './en_US';
|
|
13
|
-
import jaJP from './ja_JP';
|
|
14
|
-
import ruRU from './ru_RU';
|
|
15
|
-
import trTR from './tr_TR';
|
|
16
|
-
import zhCN from './zh_CN';
|
|
1
|
+
export { default as cron } from '../schema-component/antd/cron/locale';
|
|
17
2
|
export default {
|
|
3
|
+
'ar-EG': {
|
|
4
|
+
label: 'العربية'
|
|
5
|
+
},
|
|
6
|
+
'az-AZ': {
|
|
7
|
+
label: 'Azərbaycan dili'
|
|
8
|
+
},
|
|
9
|
+
'bg-BG': {
|
|
10
|
+
label: 'Български'
|
|
11
|
+
},
|
|
12
|
+
'bn-BD': {
|
|
13
|
+
label: 'Bengali'
|
|
14
|
+
},
|
|
15
|
+
'by-BY': {
|
|
16
|
+
label: 'Беларускі'
|
|
17
|
+
},
|
|
18
|
+
'ca-ES': {
|
|
19
|
+
label: 'Сatalà/Espanya'
|
|
20
|
+
},
|
|
21
|
+
'cs-CZ': {
|
|
22
|
+
label: 'Česky'
|
|
23
|
+
},
|
|
24
|
+
'da-DK': {
|
|
25
|
+
label: 'Dansk'
|
|
26
|
+
},
|
|
27
|
+
'de-DE': {
|
|
28
|
+
label: 'Deutsch'
|
|
29
|
+
},
|
|
30
|
+
'el-GR': {
|
|
31
|
+
label: 'Ελληνικά'
|
|
32
|
+
},
|
|
33
|
+
'en-GB': {
|
|
34
|
+
label: 'English(GB)'
|
|
35
|
+
},
|
|
18
36
|
'en-US': {
|
|
19
|
-
label: 'English'
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
37
|
+
label: 'English'
|
|
38
|
+
},
|
|
39
|
+
'es-ES': {
|
|
40
|
+
label: 'Español'
|
|
41
|
+
},
|
|
42
|
+
'et-EE': {
|
|
43
|
+
label: 'Estonian (Eesti)'
|
|
44
|
+
},
|
|
45
|
+
'fa-IR': {
|
|
46
|
+
label: 'فارسی'
|
|
47
|
+
},
|
|
48
|
+
'fi-FI': {
|
|
49
|
+
label: 'Suomi'
|
|
50
|
+
},
|
|
51
|
+
'fr-BE': {
|
|
52
|
+
label: 'Français(BE)'
|
|
53
|
+
},
|
|
54
|
+
'fr-CA': {
|
|
55
|
+
label: 'Français(CA)'
|
|
56
|
+
},
|
|
57
|
+
'fr-FR': {
|
|
58
|
+
label: 'Français'
|
|
59
|
+
},
|
|
60
|
+
'ga-IE': {
|
|
61
|
+
label: 'Gaeilge'
|
|
62
|
+
},
|
|
63
|
+
'gl-ES': {
|
|
64
|
+
label: 'Galego'
|
|
65
|
+
},
|
|
66
|
+
'he-IL': {
|
|
67
|
+
label: 'עברית'
|
|
68
|
+
},
|
|
69
|
+
'hi-IN': {
|
|
70
|
+
label: 'हिन्दी'
|
|
71
|
+
},
|
|
72
|
+
'hr-HR': {
|
|
73
|
+
label: 'Hrvatski jezik'
|
|
74
|
+
},
|
|
75
|
+
'hu-HU': {
|
|
76
|
+
label: 'Magyar'
|
|
77
|
+
},
|
|
78
|
+
'hy-AM': {
|
|
79
|
+
label: 'Հայերեն'
|
|
80
|
+
},
|
|
81
|
+
'id-ID': {
|
|
82
|
+
label: 'Bahasa Indonesia'
|
|
83
|
+
},
|
|
84
|
+
'is-IS': {
|
|
85
|
+
label: 'Íslenska'
|
|
86
|
+
},
|
|
87
|
+
'it-IT': {
|
|
88
|
+
label: 'Italiano'
|
|
27
89
|
},
|
|
28
90
|
'ja-JP': {
|
|
29
|
-
label: '日本語'
|
|
30
|
-
// https://github.com/moment/moment/blob/develop/locale/ja.js
|
|
31
|
-
moment: 'ja',
|
|
32
|
-
// https://github.com/ant-design/ant-design/tree/master/components/locale/ja_JP
|
|
33
|
-
antd: antdJaJP,
|
|
34
|
-
resources: {
|
|
35
|
-
client: _objectSpread({}, jaJP)
|
|
36
|
-
}
|
|
91
|
+
label: '日本語'
|
|
37
92
|
},
|
|
38
|
-
'
|
|
39
|
-
label: '
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
93
|
+
'ka-GE': {
|
|
94
|
+
label: 'ქართული'
|
|
95
|
+
},
|
|
96
|
+
'kk-KZ': {
|
|
97
|
+
label: 'Қазақ тілі'
|
|
98
|
+
},
|
|
99
|
+
'km-KH': {
|
|
100
|
+
label: 'ភាសាខ្មែរ'
|
|
101
|
+
},
|
|
102
|
+
// 'kmr-IQ': { label: 'kmr_IQ' },
|
|
103
|
+
'kn-IN': {
|
|
104
|
+
label: 'ಕನ್ನಡ'
|
|
105
|
+
},
|
|
106
|
+
'ko-KR': {
|
|
107
|
+
label: '한국어'
|
|
108
|
+
},
|
|
109
|
+
'ku-IQ': {
|
|
110
|
+
label: 'کوردی'
|
|
111
|
+
},
|
|
112
|
+
'lt-LT': {
|
|
113
|
+
label: 'lietuvių'
|
|
114
|
+
},
|
|
115
|
+
'lv-LV': {
|
|
116
|
+
label: 'Latviešu valoda'
|
|
117
|
+
},
|
|
118
|
+
'mk-MK': {
|
|
119
|
+
label: 'македонски јазик'
|
|
120
|
+
},
|
|
121
|
+
'ml-IN': {
|
|
122
|
+
label: 'മലയാളം'
|
|
123
|
+
},
|
|
124
|
+
'mn-MN': {
|
|
125
|
+
label: 'Монгол хэл'
|
|
126
|
+
},
|
|
127
|
+
'ms-MY': {
|
|
128
|
+
label: 'بهاس ملايو'
|
|
129
|
+
},
|
|
130
|
+
'nb-NO': {
|
|
131
|
+
label: 'Norsk bokmål'
|
|
132
|
+
},
|
|
133
|
+
'ne-NP': {
|
|
134
|
+
label: 'नेपाली'
|
|
135
|
+
},
|
|
136
|
+
'nl-BE': {
|
|
137
|
+
label: 'Vlaams'
|
|
138
|
+
},
|
|
139
|
+
'nl-NL': {
|
|
140
|
+
label: 'Nederlands'
|
|
141
|
+
},
|
|
142
|
+
'pl-PL': {
|
|
143
|
+
label: 'Polski'
|
|
144
|
+
},
|
|
145
|
+
'pt-BR': {
|
|
146
|
+
label: 'Português brasileiro'
|
|
147
|
+
},
|
|
148
|
+
'pt-PT': {
|
|
149
|
+
label: 'Português'
|
|
150
|
+
},
|
|
151
|
+
'ro-RO': {
|
|
152
|
+
label: 'România'
|
|
48
153
|
},
|
|
49
154
|
'ru-RU': {
|
|
50
|
-
label: 'Русский'
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
155
|
+
label: 'Русский'
|
|
156
|
+
},
|
|
157
|
+
'si-LK': {
|
|
158
|
+
label: 'සිංහල'
|
|
159
|
+
},
|
|
160
|
+
'sk-SK': {
|
|
161
|
+
label: 'Slovenčina'
|
|
162
|
+
},
|
|
163
|
+
'sl-SI': {
|
|
164
|
+
label: 'Slovenščina'
|
|
165
|
+
},
|
|
166
|
+
'sr-RS': {
|
|
167
|
+
label: 'српски језик'
|
|
168
|
+
},
|
|
169
|
+
'sv-SE': {
|
|
170
|
+
label: 'Svenska'
|
|
171
|
+
},
|
|
172
|
+
'ta-IN': {
|
|
173
|
+
label: 'Tamil'
|
|
174
|
+
},
|
|
175
|
+
'th-TH': {
|
|
176
|
+
label: 'ภาษาไทย'
|
|
177
|
+
},
|
|
178
|
+
'tk-TK': {
|
|
179
|
+
label: 'Turkmen'
|
|
58
180
|
},
|
|
59
181
|
'tr-TR': {
|
|
60
|
-
label: 'Türkçe'
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
182
|
+
label: 'Türkçe'
|
|
183
|
+
},
|
|
184
|
+
'uk-UA': {
|
|
185
|
+
label: 'Українська'
|
|
186
|
+
},
|
|
187
|
+
'ur-PK': {
|
|
188
|
+
label: 'Oʻzbekcha'
|
|
189
|
+
},
|
|
190
|
+
'vi-VN': {
|
|
191
|
+
label: 'Tiếng Việt'
|
|
192
|
+
},
|
|
193
|
+
'zh-CN': {
|
|
194
|
+
label: '简体中文'
|
|
195
|
+
},
|
|
196
|
+
'zh-HK': {
|
|
197
|
+
label: '繁體中文(香港)'
|
|
198
|
+
},
|
|
199
|
+
'zh-TW': {
|
|
200
|
+
label: '繁體中文(台湾)'
|
|
68
201
|
}
|
|
69
202
|
};
|
package/es/locale/ja_JP.d.ts
CHANGED
|
@@ -402,6 +402,10 @@ declare const _default: {
|
|
|
402
402
|
"General permissions": string;
|
|
403
403
|
"Global action permissions": string;
|
|
404
404
|
"General action permissions": string;
|
|
405
|
+
"Plugin settings permissions": string;
|
|
406
|
+
'Allow to desgin pages': string;
|
|
407
|
+
"Allow to manage plugins": string;
|
|
408
|
+
"Allow to configure plugins": string;
|
|
405
409
|
"Action display name": string;
|
|
406
410
|
Allow: string;
|
|
407
411
|
"Data scope": string;
|
package/es/locale/ja_JP.js
CHANGED
|
@@ -402,6 +402,10 @@ export default {
|
|
|
402
402
|
"General permissions": "一般設定",
|
|
403
403
|
"Global action permissions": "グローバル操作権限",
|
|
404
404
|
"General action permissions": "一般操作権限",
|
|
405
|
+
"Plugin settings permissions": "中央権限の設定",
|
|
406
|
+
'Allow to desgin pages': "インタフェース構成の許可",
|
|
407
|
+
"Allow to manage plugins": "管理プラグインの許可",
|
|
408
|
+
"Allow to configure plugins": "管理構成センターの許可",
|
|
405
409
|
"Action display name": "操作名",
|
|
406
410
|
"Allow": "許可する",
|
|
407
411
|
"Data scope": "レコードスコープ",
|
package/es/locale/zh_CN.d.ts
CHANGED
|
@@ -426,6 +426,7 @@ declare const _default: {
|
|
|
426
426
|
exists: string;
|
|
427
427
|
'not exists': string;
|
|
428
428
|
'is current logged-in user': string;
|
|
429
|
+
'is not current logged-in user': string;
|
|
429
430
|
'=': string;
|
|
430
431
|
'\u2260': string;
|
|
431
432
|
'>': string;
|
|
@@ -469,6 +470,13 @@ declare const _default: {
|
|
|
469
470
|
'General permissions': string;
|
|
470
471
|
'Global action permissions': string;
|
|
471
472
|
'General action permissions': string;
|
|
473
|
+
"Plugin settings permissions": string;
|
|
474
|
+
'Allow to desgin pages': string;
|
|
475
|
+
"Allow to manage plugins": string;
|
|
476
|
+
"Allow to configure plugins": string;
|
|
477
|
+
'Allows to configure interface': string;
|
|
478
|
+
'Allows to install, activate, disable plugins': string;
|
|
479
|
+
'Allows to configure plugins': string;
|
|
472
480
|
'Action display name': string;
|
|
473
481
|
Allow: string;
|
|
474
482
|
'Data scope': string;
|
|
@@ -559,7 +567,7 @@ declare const _default: {
|
|
|
559
567
|
'Built-in': string;
|
|
560
568
|
Marketplace: string;
|
|
561
569
|
'Coming soon...': string;
|
|
562
|
-
'
|
|
570
|
+
'All plugin settings': string;
|
|
563
571
|
Bookmark: string;
|
|
564
572
|
'Manage all settings': string;
|
|
565
573
|
'Create inverse field in the target collection': string;
|
|
@@ -583,5 +591,7 @@ declare const _default: {
|
|
|
583
591
|
"Search and select collection": string;
|
|
584
592
|
'Please fill in the iframe URL': string;
|
|
585
593
|
'Fix block': string;
|
|
594
|
+
'Plugin name': string;
|
|
595
|
+
'Plugin tab name': string;
|
|
586
596
|
};
|
|
587
597
|
export default _default;
|
package/es/locale/zh_CN.js
CHANGED
|
@@ -426,6 +426,7 @@ export default {
|
|
|
426
426
|
'exists': '存在',
|
|
427
427
|
'not exists': '不存在',
|
|
428
428
|
'is current logged-in user': '为当前登录用户',
|
|
429
|
+
'is not current logged-in user': '不为当前登录用户',
|
|
429
430
|
'=': '=',
|
|
430
431
|
'≠': '≠',
|
|
431
432
|
'>': '>',
|
|
@@ -469,6 +470,13 @@ export default {
|
|
|
469
470
|
'General permissions': '通用配置',
|
|
470
471
|
'Global action permissions': '全局操作权限',
|
|
471
472
|
'General action permissions': '通用操作权限',
|
|
473
|
+
"Plugin settings permissions": "插件配置权限",
|
|
474
|
+
'Allow to desgin pages': "允许界面配置",
|
|
475
|
+
"Allow to manage plugins": "允许管理插件",
|
|
476
|
+
"Allow to configure plugins": "允许管理配置中心",
|
|
477
|
+
'Allows to configure interface': '允许配置界面',
|
|
478
|
+
'Allows to install, activate, disable plugins': '允许安装、激活、禁用插件',
|
|
479
|
+
'Allows to configure plugins': '允许配置插件',
|
|
472
480
|
'Action display name': '操作名称',
|
|
473
481
|
'Allow': '允许',
|
|
474
482
|
'Data scope': '数据范围',
|
|
@@ -560,7 +568,7 @@ export default {
|
|
|
560
568
|
'Built-in': '内置',
|
|
561
569
|
'Marketplace': '插件市场',
|
|
562
570
|
'Coming soon...': '敬请期待...',
|
|
563
|
-
'
|
|
571
|
+
'All plugin settings': '所有插件配置',
|
|
564
572
|
'Bookmark': '书签',
|
|
565
573
|
'Manage all settings': '管理所有配置',
|
|
566
574
|
'Create inverse field in the target collection': '在目标数据表里创建反向关系字段',
|
|
@@ -583,5 +591,7 @@ export default {
|
|
|
583
591
|
"Inner": "里面",
|
|
584
592
|
"Search and select collection": "搜索并选择数据表",
|
|
585
593
|
'Please fill in the iframe URL': '请填写嵌入的地址',
|
|
586
|
-
'Fix block': '固定区块'
|
|
594
|
+
'Fix block': '固定区块',
|
|
595
|
+
'Plugin name': '插件',
|
|
596
|
+
'Plugin tab name': '插件标签页'
|
|
587
597
|
};
|
|
@@ -36,6 +36,7 @@ import { get } from 'lodash';
|
|
|
36
36
|
import React, { createContext, useContext } from 'react';
|
|
37
37
|
import { useTranslation } from 'react-i18next';
|
|
38
38
|
import { useHistory } from 'react-router-dom';
|
|
39
|
+
import { useACLRoleContext } from '../acl/ACLProvider';
|
|
39
40
|
import { PluginManagerContext } from './context';
|
|
40
41
|
export var usePrefixCls = function usePrefixCls(tag, props) {
|
|
41
42
|
var _useContext = useContext(ConfigProvider.ConfigContext),
|
|
@@ -125,7 +126,7 @@ PluginManager.Toolbar = function (props) {
|
|
|
125
126
|
history.push('/admin/settings');
|
|
126
127
|
},
|
|
127
128
|
icon: /*#__PURE__*/React.createElement(SettingOutlined, null)
|
|
128
|
-
}, t('
|
|
129
|
+
}, t('All plugin settings')))));
|
|
129
130
|
};
|
|
130
131
|
|
|
131
132
|
PluginManager.Toolbar.Item = function (props) {
|
|
@@ -164,26 +165,31 @@ PluginManager.Toolbar.Item = function (props) {
|
|
|
164
165
|
};
|
|
165
166
|
|
|
166
167
|
export var RemotePluginManagerToolbar = function RemotePluginManagerToolbar() {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
168
|
+
var _useACLRoleContext = useACLRoleContext(),
|
|
169
|
+
allowAll = _useACLRoleContext.allowAll,
|
|
170
|
+
snippets = _useACLRoleContext.snippets;
|
|
171
|
+
|
|
172
|
+
var getSnippetsAllow = function getSnippetsAllow(aclKey) {
|
|
173
|
+
return allowAll || (snippets === null || snippets === void 0 ? void 0 : snippets.includes(aclKey));
|
|
174
|
+
};
|
|
175
|
+
|
|
175
176
|
var items = [{
|
|
176
177
|
component: 'DesignableSwitch',
|
|
177
|
-
pin: true
|
|
178
|
+
pin: true,
|
|
179
|
+
isAllow: getSnippetsAllow('ui.*')
|
|
178
180
|
}, {
|
|
179
181
|
component: 'PluginManagerLink',
|
|
180
|
-
pin: true
|
|
182
|
+
pin: true,
|
|
183
|
+
isAllow: getSnippetsAllow('pm')
|
|
181
184
|
}, {
|
|
182
185
|
component: 'SettingsCenterDropdown',
|
|
183
|
-
pin: true
|
|
186
|
+
pin: true,
|
|
187
|
+
isAllow: getSnippetsAllow('pm.*')
|
|
184
188
|
} // ...data?.data,
|
|
185
189
|
];
|
|
186
190
|
return /*#__PURE__*/React.createElement(PluginManager.Toolbar, {
|
|
187
|
-
items: items
|
|
191
|
+
items: items.filter(function (v) {
|
|
192
|
+
return v.isAllow;
|
|
193
|
+
})
|
|
188
194
|
});
|
|
189
195
|
};
|