@nocobase/client 0.7.6-alpha.2 → 0.8.0-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/es/acl/ACLShortcut.d.ts +2 -0
- package/es/acl/ACLShortcut.js +31 -2
- package/es/api-client/APIClient.d.ts +1 -0
- package/es/api-client/APIClient.js +6 -1
- package/es/application/Application.d.ts +3 -1
- package/es/application/Application.js +131 -39
- package/es/block-provider/BlockProvider.js +12 -1
- package/es/block-provider/CalendarBlockProvider.d.ts +1 -0
- package/es/block-provider/CalendarBlockProvider.js +6 -3
- package/es/block-provider/TableSelectorProvider.js +21 -6
- package/es/block-provider/hooks/index.d.ts +6 -0
- package/es/block-provider/hooks/index.js +485 -115
- package/es/collection-manager/CollectionManagerProvider.js +26 -45
- package/es/collection-manager/CollectionManagerShortcut.d.ts +2 -0
- package/es/collection-manager/CollectionManagerShortcut.js +38 -3
- package/es/collection-manager/Configuration/AddFieldAction.d.ts +5 -1
- package/es/collection-manager/Configuration/AddFieldAction.js +44 -13
- package/es/collection-manager/Configuration/EditFieldAction.d.ts +1 -0
- package/es/collection-manager/Configuration/EditFieldAction.js +24 -11
- package/es/collection-manager/Configuration/index.d.ts +2 -0
- package/es/collection-manager/Configuration/index.js +2 -0
- package/es/collection-manager/Configuration/schemas/collectionFields.js +2 -2
- package/es/collection-manager/index.d.ts +1 -0
- package/es/collection-manager/index.js +2 -1
- package/es/collection-manager/interfaces/index.d.ts +1 -0
- package/es/collection-manager/interfaces/index.js +1 -0
- package/es/collection-manager/interfaces/json.d.ts +2 -0
- package/es/collection-manager/interfaces/json.js +48 -0
- package/es/collection-manager/interfaces/m2o.js +3 -3
- package/es/collection-manager/interfaces/o2m.js +5 -6
- package/es/collection-manager/interfaces/o2o.js +5 -5
- package/es/collection-manager/interfaces/properties/index.d.ts +14 -0
- package/es/collection-manager/interfaces/properties/index.js +23 -0
- package/es/collection-manager/interfaces/sequence.js +13 -9
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/locale/en_US.d.ts +14 -1
- package/es/locale/en_US.js +15 -2
- package/es/locale/ja_JP.d.ts +2 -1
- package/es/locale/ja_JP.js +2 -1
- package/es/locale/ru_RU.d.ts +2 -1
- package/es/locale/ru_RU.js +2 -1
- package/es/locale/tr_TR.d.ts +1 -1
- package/es/locale/tr_TR.js +1 -1
- package/es/locale/zh_CN.d.ts +40 -1
- package/es/locale/zh_CN.js +41 -2
- package/es/plugin-manager/PluginManager.js +35 -23
- package/es/pm/PluginManagerLink.d.ts +2 -0
- package/es/pm/PluginManagerLink.js +111 -0
- package/es/pm/index.d.ts +4 -0
- package/es/pm/index.js +422 -0
- package/es/route-switch/antd/admin-layout/index.js +1 -1
- package/es/schema-component/antd/action/Action.Designer.js +35 -12
- package/es/schema-component/antd/action/Action.Modal.js +4 -2
- package/es/schema-component/antd/action/Action.js +3 -3
- package/es/schema-component/antd/action/context.d.ts +2 -0
- package/es/schema-component/antd/action/hooks.d.ts +1 -0
- package/es/schema-component/antd/calendar/Calendar.Designer.js +19 -6
- package/es/schema-component/antd/calendar/Calendar.js +23 -2
- package/es/schema-component/antd/calendar/Title.js +18 -3
- package/es/schema-component/antd/calendar/components/Header.d.ts +10 -0
- package/es/schema-component/antd/calendar/components/Header.js +43 -0
- package/es/schema-component/antd/calendar/style.less +53 -9
- package/es/schema-component/antd/calendar/types.d.ts +6 -0
- package/es/schema-component/antd/calendar/utils.d.ts +2 -0
- package/es/schema-component/antd/calendar/utils.js +7 -0
- package/es/schema-component/antd/checkbox/Checkbox.js +13 -4
- package/es/schema-component/antd/formula-input/FormulaInput.js +28 -37
- package/es/schema-component/antd/input/Input.d.ts +1 -0
- package/es/schema-component/antd/input/Input.js +2 -0
- package/es/schema-component/antd/input/Json.d.ts +6 -0
- package/es/schema-component/antd/input/Json.js +41 -0
- package/es/schema-component/antd/input/ReadPretty.d.ts +3 -0
- package/es/schema-component/antd/input/ReadPretty.js +15 -0
- package/es/schema-component/antd/input/index.d.ts +1 -0
- package/es/schema-component/antd/input/index.js +2 -1
- package/es/schema-component/antd/markdown/Markdown.Void.js +5 -2
- package/es/schema-component/antd/radio/Radio.js +2 -1
- package/es/schema-component/antd/select/ReadPretty.js +2 -1
- package/es/schema-component/antd/table-v2/TableSelectorDesigner.js +16 -2
- package/es/schema-component/antd/upload/Upload.js +2 -1
- package/es/schema-component/antd/upload/shared.js +5 -6
- package/es/schema-component/antd/upload/type.d.ts +2 -0
- package/es/schema-initializer/buttons/BulkEditFormItemInitializers.d.ts +1 -0
- package/es/schema-initializer/buttons/BulkEditFormItemInitializers.js +50 -0
- package/es/schema-initializer/buttons/CreateFormBulkEditBlockInitializers.d.ts +1 -0
- package/es/schema-initializer/buttons/CreateFormBulkEditBlockInitializers.js +35 -0
- package/es/schema-initializer/buttons/FormActionInitializers.d.ts +132 -0
- package/es/schema-initializer/buttons/FormActionInitializers.js +118 -0
- package/es/schema-initializer/buttons/TabPaneInitializers.d.ts +1 -0
- package/es/schema-initializer/buttons/TabPaneInitializers.js +13 -0
- package/es/schema-initializer/buttons/TableActionInitializers.d.ts +56 -2
- package/es/schema-initializer/buttons/TableActionInitializers.js +45 -0
- package/es/schema-initializer/buttons/index.d.ts +2 -0
- package/es/schema-initializer/buttons/index.js +2 -0
- package/es/schema-initializer/components/BulkEditField.d.ts +7 -0
- package/es/schema-initializer/components/BulkEditField.js +187 -0
- package/es/schema-initializer/components/index.d.ts +1 -0
- package/es/schema-initializer/components/index.js +2 -1
- package/es/schema-initializer/items/BlockInitializer.js +8 -8
- package/es/schema-initializer/items/BulkEditSubmitActionInitializer.d.ts +1 -0
- package/es/schema-initializer/items/BulkEditSubmitActionInitializer.js +24 -0
- package/es/schema-initializer/items/CreateFormBulkEditBlockInitializer.d.ts +1 -0
- package/es/schema-initializer/items/CreateFormBulkEditBlockInitializer.js +103 -0
- package/es/schema-initializer/items/CustomizeBulkEditActionInitializer.d.ts +1 -0
- package/es/schema-initializer/items/CustomizeBulkEditActionInitializer.js +61 -0
- package/es/schema-initializer/items/index.d.ts +3 -0
- package/es/schema-initializer/items/index.js +3 -0
- package/es/schema-initializer/utils.d.ts +1 -0
- package/es/schema-initializer/utils.js +67 -12
- package/es/schema-settings/SchemaSettings.d.ts +6 -0
- package/es/schema-settings/SchemaSettings.js +4 -1
- package/es/schema-templates/BlockTemplatePage.d.ts +1 -0
- package/es/schema-templates/BlockTemplatePage.js +7 -0
- package/es/schema-templates/SchemaTemplateShortcut.js +1 -1
- package/es/system-settings/SystemSettingsShortcut.d.ts +2 -0
- package/es/system-settings/SystemSettingsShortcut.js +134 -5
- package/lib/acl/ACLShortcut.d.ts +2 -0
- package/lib/acl/ACLShortcut.js +41 -4
- package/lib/api-client/APIClient.d.ts +1 -0
- package/lib/api-client/APIClient.js +6 -1
- package/lib/application/Application.d.ts +3 -1
- package/lib/application/Application.js +139 -39
- package/lib/block-provider/BlockProvider.js +11 -0
- package/lib/block-provider/CalendarBlockProvider.d.ts +1 -0
- package/lib/block-provider/CalendarBlockProvider.js +6 -3
- package/lib/block-provider/TableSelectorProvider.js +21 -6
- package/lib/block-provider/hooks/index.d.ts +6 -0
- package/lib/block-provider/hooks/index.js +496 -115
- package/lib/collection-manager/CollectionManagerProvider.js +28 -47
- package/lib/collection-manager/CollectionManagerShortcut.d.ts +2 -0
- package/lib/collection-manager/CollectionManagerShortcut.js +47 -4
- package/lib/collection-manager/Configuration/AddFieldAction.d.ts +5 -1
- package/lib/collection-manager/Configuration/AddFieldAction.js +48 -12
- package/lib/collection-manager/Configuration/EditFieldAction.d.ts +1 -0
- package/lib/collection-manager/Configuration/EditFieldAction.js +26 -10
- package/lib/collection-manager/Configuration/index.d.ts +2 -0
- package/lib/collection-manager/Configuration/index.js +26 -0
- package/lib/collection-manager/Configuration/schemas/collectionFields.js +2 -2
- package/lib/collection-manager/index.d.ts +1 -0
- package/lib/collection-manager/index.js +14 -0
- package/lib/collection-manager/interfaces/index.d.ts +1 -0
- package/lib/collection-manager/interfaces/index.js +13 -0
- package/lib/collection-manager/interfaces/json.d.ts +2 -0
- package/lib/collection-manager/interfaces/json.js +58 -0
- package/lib/collection-manager/interfaces/m2o.js +2 -2
- package/lib/collection-manager/interfaces/o2m.js +4 -5
- package/lib/collection-manager/interfaces/o2o.js +4 -4
- package/lib/collection-manager/interfaces/properties/index.d.ts +14 -0
- package/lib/collection-manager/interfaces/properties/index.js +25 -1
- package/lib/collection-manager/interfaces/sequence.js +13 -9
- package/lib/index.d.ts +1 -0
- package/lib/index.js +13 -0
- package/lib/locale/en_US.d.ts +14 -1
- package/lib/locale/en_US.js +15 -2
- package/lib/locale/ja_JP.d.ts +2 -1
- package/lib/locale/ja_JP.js +2 -1
- package/lib/locale/ru_RU.d.ts +2 -1
- package/lib/locale/ru_RU.js +2 -1
- package/lib/locale/tr_TR.d.ts +1 -1
- package/lib/locale/tr_TR.js +1 -1
- package/lib/locale/zh_CN.d.ts +40 -1
- package/lib/locale/zh_CN.js +41 -2
- package/lib/plugin-manager/PluginManager.js +33 -21
- package/lib/pm/PluginManagerLink.d.ts +2 -0
- package/lib/pm/PluginManagerLink.js +138 -0
- package/lib/pm/index.d.ts +4 -0
- package/lib/pm/index.js +474 -0
- package/lib/route-switch/antd/admin-layout/index.js +1 -1
- package/lib/schema-component/antd/action/Action.Designer.js +35 -12
- package/lib/schema-component/antd/action/Action.Modal.js +4 -2
- package/lib/schema-component/antd/action/Action.js +3 -3
- package/lib/schema-component/antd/action/context.d.ts +2 -0
- package/lib/schema-component/antd/action/hooks.d.ts +1 -0
- package/lib/schema-component/antd/calendar/Calendar.Designer.js +19 -6
- package/lib/schema-component/antd/calendar/Calendar.js +24 -2
- package/lib/schema-component/antd/calendar/Title.js +18 -2
- package/lib/schema-component/antd/calendar/components/Header.d.ts +10 -0
- package/lib/schema-component/antd/calendar/components/Header.js +57 -0
- package/lib/schema-component/antd/calendar/style.less +53 -9
- package/lib/schema-component/antd/calendar/types.d.ts +6 -0
- package/lib/schema-component/antd/calendar/utils.d.ts +2 -0
- package/lib/schema-component/antd/calendar/utils.js +18 -2
- package/lib/schema-component/antd/checkbox/Checkbox.js +13 -4
- package/lib/schema-component/antd/formula-input/FormulaInput.js +28 -37
- package/lib/schema-component/antd/input/Input.d.ts +1 -0
- package/lib/schema-component/antd/input/Input.js +3 -0
- package/lib/schema-component/antd/input/Json.d.ts +6 -0
- package/lib/schema-component/antd/input/Json.js +53 -0
- package/lib/schema-component/antd/input/ReadPretty.d.ts +3 -0
- package/lib/schema-component/antd/input/ReadPretty.js +16 -0
- package/lib/schema-component/antd/input/index.d.ts +1 -0
- package/lib/schema-component/antd/input/index.js +13 -0
- package/lib/schema-component/antd/markdown/Markdown.Void.js +8 -2
- package/lib/schema-component/antd/radio/Radio.js +2 -1
- package/lib/schema-component/antd/select/ReadPretty.js +2 -1
- package/lib/schema-component/antd/table-v2/TableSelectorDesigner.js +17 -2
- package/lib/schema-component/antd/upload/Upload.js +2 -1
- package/lib/schema-component/antd/upload/shared.js +4 -5
- package/lib/schema-component/antd/upload/type.d.ts +2 -0
- package/lib/schema-initializer/buttons/BulkEditFormItemInitializers.d.ts +1 -0
- package/lib/schema-initializer/buttons/BulkEditFormItemInitializers.js +66 -0
- package/lib/schema-initializer/buttons/CreateFormBulkEditBlockInitializers.d.ts +1 -0
- package/lib/schema-initializer/buttons/CreateFormBulkEditBlockInitializers.js +50 -0
- package/lib/schema-initializer/buttons/FormActionInitializers.d.ts +132 -0
- package/lib/schema-initializer/buttons/FormActionInitializers.js +121 -2
- package/lib/schema-initializer/buttons/TabPaneInitializers.d.ts +1 -0
- package/lib/schema-initializer/buttons/TabPaneInitializers.js +18 -2
- package/lib/schema-initializer/buttons/TableActionInitializers.d.ts +56 -2
- package/lib/schema-initializer/buttons/TableActionInitializers.js +45 -0
- package/lib/schema-initializer/buttons/index.d.ts +2 -0
- package/lib/schema-initializer/buttons/index.js +26 -0
- package/lib/schema-initializer/components/BulkEditField.d.ts +7 -0
- package/lib/schema-initializer/components/BulkEditField.js +210 -0
- package/lib/schema-initializer/components/index.d.ts +1 -0
- package/lib/schema-initializer/components/index.js +13 -0
- package/lib/schema-initializer/items/BlockInitializer.js +8 -7
- package/lib/schema-initializer/items/BulkEditSubmitActionInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/BulkEditSubmitActionInitializer.js +37 -0
- package/lib/schema-initializer/items/CreateFormBulkEditBlockInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/CreateFormBulkEditBlockInitializer.js +121 -0
- package/lib/schema-initializer/items/CustomizeBulkEditActionInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/CustomizeBulkEditActionInitializer.js +74 -0
- package/lib/schema-initializer/items/index.d.ts +3 -0
- package/lib/schema-initializer/items/index.js +39 -0
- package/lib/schema-initializer/utils.d.ts +1 -0
- package/lib/schema-initializer/utils.js +71 -13
- package/lib/schema-settings/SchemaSettings.d.ts +6 -0
- package/lib/schema-settings/SchemaSettings.js +3 -0
- package/lib/schema-templates/BlockTemplatePage.d.ts +1 -0
- package/lib/schema-templates/BlockTemplatePage.js +12 -2
- package/lib/schema-templates/SchemaTemplateShortcut.js +1 -1
- package/lib/system-settings/SystemSettingsShortcut.d.ts +2 -0
- package/lib/system-settings/SystemSettingsShortcut.js +145 -7
- package/package.json +5 -4
|
@@ -94,6 +94,29 @@ export var relationshipType = {
|
|
|
94
94
|
value: 'belongsToMany'
|
|
95
95
|
}]
|
|
96
96
|
};
|
|
97
|
+
export var constraintsProps = {
|
|
98
|
+
onDelete: {
|
|
99
|
+
type: 'string',
|
|
100
|
+
title: '{{t("ON DELETE")}}',
|
|
101
|
+
required: true,
|
|
102
|
+
default: 'SET NULL',
|
|
103
|
+
'x-decorator': 'FormItem',
|
|
104
|
+
'x-component': 'Select',
|
|
105
|
+
enum: [{
|
|
106
|
+
label: "{{t('SET NULL')}}",
|
|
107
|
+
value: 'SET NULL'
|
|
108
|
+
}, {
|
|
109
|
+
label: "{{t('RESTRICT')}}",
|
|
110
|
+
value: 'RESTRICT'
|
|
111
|
+
}, {
|
|
112
|
+
label: "{{t('CASCADE')}}",
|
|
113
|
+
value: 'CASCADE'
|
|
114
|
+
}, {
|
|
115
|
+
label: "{{t('NO ACTION')}}",
|
|
116
|
+
value: 'NO ACTION'
|
|
117
|
+
}]
|
|
118
|
+
}
|
|
119
|
+
};
|
|
97
120
|
export var reverseFieldProperties = {
|
|
98
121
|
reverse: {
|
|
99
122
|
type: 'void',
|
|
@@ -151,27 +151,31 @@ var RuleTypes = {
|
|
|
151
151
|
}, _defineProperty(_cycle, 'x-component', function xComponent(_ref4) {
|
|
152
152
|
var value = _ref4.value,
|
|
153
153
|
_onChange = _ref4.onChange;
|
|
154
|
+
|
|
155
|
+
var _useTranslation3 = useTranslation(),
|
|
156
|
+
t = _useTranslation3.t;
|
|
157
|
+
|
|
154
158
|
var shortValues = [{
|
|
155
|
-
label: '
|
|
159
|
+
label: 'No reset',
|
|
156
160
|
value: 0
|
|
157
161
|
}, {
|
|
158
|
-
label: '
|
|
162
|
+
label: 'Daily',
|
|
159
163
|
value: 1,
|
|
160
164
|
cron: '0 0 * * *'
|
|
161
165
|
}, {
|
|
162
|
-
label: '
|
|
166
|
+
label: 'Every Monday',
|
|
163
167
|
value: 2,
|
|
164
168
|
cron: '0 0 * * 1'
|
|
165
169
|
}, {
|
|
166
|
-
label: '
|
|
170
|
+
label: 'Monthly',
|
|
167
171
|
value: 3,
|
|
168
172
|
cron: '0 0 1 * *'
|
|
169
173
|
}, {
|
|
170
|
-
label: '
|
|
174
|
+
label: 'Yearly',
|
|
171
175
|
value: 4,
|
|
172
176
|
cron: '0 0 1 1 *'
|
|
173
177
|
}, {
|
|
174
|
-
label: '
|
|
178
|
+
label: 'Customize',
|
|
175
179
|
value: 5,
|
|
176
180
|
cron: '* * * * *'
|
|
177
181
|
}];
|
|
@@ -187,7 +191,7 @@ var RuleTypes = {
|
|
|
187
191
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
188
192
|
key: item.value,
|
|
189
193
|
value: item.value
|
|
190
|
-
}, item.label);
|
|
194
|
+
}, t(item.label));
|
|
191
195
|
})), option.value === 5 ? /*#__PURE__*/React.createElement(Cron, {
|
|
192
196
|
value: value,
|
|
193
197
|
setValue: _onChange,
|
|
@@ -210,8 +214,8 @@ var RuleTypes = {
|
|
|
210
214
|
};
|
|
211
215
|
|
|
212
216
|
function RuleConfigForm() {
|
|
213
|
-
var
|
|
214
|
-
t =
|
|
217
|
+
var _useTranslation4 = useTranslation(),
|
|
218
|
+
t = _useTranslation4.t;
|
|
215
219
|
|
|
216
220
|
var compile = useCompile();
|
|
217
221
|
var schemaOptions = useContext(SchemaOptionsContext);
|
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
package/es/locale/en_US.d.ts
CHANGED
|
@@ -413,9 +413,10 @@ declare const _default: {
|
|
|
413
413
|
"Use the built-in static file server": string;
|
|
414
414
|
"Local storage": string;
|
|
415
415
|
"Aliyun OSS": string;
|
|
416
|
+
"Tencent COS": string;
|
|
416
417
|
"Amazon S3": string;
|
|
417
418
|
Workflow: string;
|
|
418
|
-
"Execution
|
|
419
|
+
"Execution history": string;
|
|
419
420
|
"Trigger type": string;
|
|
420
421
|
Description: string;
|
|
421
422
|
Status: string;
|
|
@@ -556,5 +557,17 @@ declare const _default: {
|
|
|
556
557
|
Print: string;
|
|
557
558
|
'Single select and radio fields can be used as the grouping field': string;
|
|
558
559
|
'Sign up successfully, and automatically jump to the sign in page': string;
|
|
560
|
+
"After successful bulk update": string;
|
|
561
|
+
All: string;
|
|
562
|
+
"Update selected data?": string;
|
|
563
|
+
"Update all data?": string;
|
|
564
|
+
"Bulk edit": string;
|
|
565
|
+
"Data will be updated": string;
|
|
566
|
+
Selected: string;
|
|
567
|
+
"Remains the same": string;
|
|
568
|
+
"Changed to": string;
|
|
569
|
+
Clear: string;
|
|
570
|
+
"Add attach": string;
|
|
571
|
+
"Please select the records to be updated": string;
|
|
559
572
|
};
|
|
560
573
|
export default _default;
|
package/es/locale/en_US.js
CHANGED
|
@@ -413,9 +413,10 @@ export default {
|
|
|
413
413
|
"Use the built-in static file server": "Use the built-in static file server",
|
|
414
414
|
"Local storage": "Local storage",
|
|
415
415
|
"Aliyun OSS": "Aliyun OSS",
|
|
416
|
+
"Tencent COS": "Tencent COS",
|
|
416
417
|
"Amazon S3": "Amazon S3",
|
|
417
418
|
"Workflow": "Workflow",
|
|
418
|
-
"Execution
|
|
419
|
+
"Execution history": "Execution history",
|
|
419
420
|
"Trigger type": "Trigger type",
|
|
420
421
|
"Description": "Description",
|
|
421
422
|
"Status": "Status",
|
|
@@ -555,5 +556,17 @@ export default {
|
|
|
555
556
|
"View all plugins": "View all plugins",
|
|
556
557
|
"Print": "Print",
|
|
557
558
|
'Single select and radio fields can be used as the grouping field': 'Single select and radio fields can be used as the grouping field',
|
|
558
|
-
'Sign up successfully, and automatically jump to the sign in page': 'Sign up successfully, and automatically jump to the sign in page'
|
|
559
|
+
'Sign up successfully, and automatically jump to the sign in page': 'Sign up successfully, and automatically jump to the sign in page',
|
|
560
|
+
"After successful bulk update": "After successful bulk update",
|
|
561
|
+
"All": "All",
|
|
562
|
+
"Update selected data?": "Update selected data?",
|
|
563
|
+
"Update all data?": "Update all data?",
|
|
564
|
+
"Bulk edit": "Bulk edit",
|
|
565
|
+
"Data will be updated": "Data will be updated",
|
|
566
|
+
"Selected": "Selected",
|
|
567
|
+
"Remains the same": "Remains the same",
|
|
568
|
+
"Changed to": "Changed to",
|
|
569
|
+
"Clear": "Clear",
|
|
570
|
+
"Add attach": "Add attach",
|
|
571
|
+
"Please select the records to be updated": "Please select the records to be updated"
|
|
559
572
|
};
|
package/es/locale/ja_JP.d.ts
CHANGED
|
@@ -413,9 +413,10 @@ declare const _default: {
|
|
|
413
413
|
"Use the built-in static file server": string;
|
|
414
414
|
"Local storage": string;
|
|
415
415
|
"Aliyun OSS": string;
|
|
416
|
+
"Tencent COS": string;
|
|
416
417
|
"Amazon S3": string;
|
|
417
418
|
Workflow: string;
|
|
418
|
-
"Execution
|
|
419
|
+
"Execution history": string;
|
|
419
420
|
"Trigger type": string;
|
|
420
421
|
Description: string;
|
|
421
422
|
Status: string;
|
package/es/locale/ja_JP.js
CHANGED
|
@@ -413,9 +413,10 @@ export default {
|
|
|
413
413
|
"Use the built-in static file server": "組み込みの静的ファイル サービスを使用する",
|
|
414
414
|
"Local storage": "ローカルストレージ",
|
|
415
415
|
"Aliyun OSS": "Aliyun OSS",
|
|
416
|
+
"Tencent COS": "Tencent COS",
|
|
416
417
|
"Amazon S3": "Amazon S3",
|
|
417
418
|
"Workflow": "ワークフロー",
|
|
418
|
-
"Execution
|
|
419
|
+
"Execution history": "実行履歴",
|
|
419
420
|
"Trigger type": "トリガータイプ",
|
|
420
421
|
"Description": "説明",
|
|
421
422
|
"Status": "状態",
|
package/es/locale/ru_RU.d.ts
CHANGED
|
@@ -413,9 +413,10 @@ declare const _default: {
|
|
|
413
413
|
"Use the built-in static file server": string;
|
|
414
414
|
"Local storage": string;
|
|
415
415
|
"Aliyun OSS": string;
|
|
416
|
+
"Tencent COS": string;
|
|
416
417
|
"Amazon S3": string;
|
|
417
418
|
Workflow: string;
|
|
418
|
-
"Execution
|
|
419
|
+
"Execution history": string;
|
|
419
420
|
"Trigger type": string;
|
|
420
421
|
Description: string;
|
|
421
422
|
Status: string;
|
package/es/locale/ru_RU.js
CHANGED
|
@@ -413,9 +413,10 @@ export default {
|
|
|
413
413
|
"Use the built-in static file server": "Использовать встроенный статический файл-сервер",
|
|
414
414
|
"Local storage": "Локальное хранилище",
|
|
415
415
|
"Aliyun OSS": "Aliyun OSS",
|
|
416
|
+
"Tencent COS": "Tencent COS",
|
|
416
417
|
"Amazon S3": "Amazon S3",
|
|
417
418
|
"Workflow": "Workflow",
|
|
418
|
-
"Execution
|
|
419
|
+
"Execution history": "История запусков",
|
|
419
420
|
"Trigger type": "Тип триггера",
|
|
420
421
|
"Description": "Описание",
|
|
421
422
|
"Status": "Статус",
|
package/es/locale/tr_TR.d.ts
CHANGED
package/es/locale/tr_TR.js
CHANGED
|
@@ -415,7 +415,7 @@ export default {
|
|
|
415
415
|
"Aliyun OSS": "Aliyun OSS",
|
|
416
416
|
"Amazon S3": "Amazon S3",
|
|
417
417
|
"Workflow": "İş Akışı",
|
|
418
|
-
"Execution
|
|
418
|
+
"Execution history": "Yürütme Geçmişi",
|
|
419
419
|
"Trigger type": "Tetikleme türü",
|
|
420
420
|
"Description": "Açıklama",
|
|
421
421
|
"Status": "Durum",
|
package/es/locale/zh_CN.d.ts
CHANGED
|
@@ -140,6 +140,11 @@ declare const _default: {
|
|
|
140
140
|
"Start from": string;
|
|
141
141
|
"Starts from {{value}}": string;
|
|
142
142
|
"Reset cycle": string;
|
|
143
|
+
"No reset": string;
|
|
144
|
+
Daily: string;
|
|
145
|
+
"Every Monday": string;
|
|
146
|
+
Monthly: string;
|
|
147
|
+
Yearly: string;
|
|
143
148
|
Operations: string;
|
|
144
149
|
Choices: string;
|
|
145
150
|
Checkbox: string;
|
|
@@ -226,6 +231,7 @@ declare const _default: {
|
|
|
226
231
|
"Edit button": string;
|
|
227
232
|
Hide: string;
|
|
228
233
|
"Enable actions": string;
|
|
234
|
+
Import: string;
|
|
229
235
|
Export: string;
|
|
230
236
|
Customize: string;
|
|
231
237
|
Function: string;
|
|
@@ -302,12 +308,14 @@ declare const _default: {
|
|
|
302
308
|
"Allow uploading multiple files": string;
|
|
303
309
|
"Configure calendar": string;
|
|
304
310
|
"Title field": string;
|
|
311
|
+
"Show lunar": string;
|
|
305
312
|
"Start date field": string;
|
|
306
313
|
"End date field": string;
|
|
307
314
|
Navigate: string;
|
|
308
315
|
Title: string;
|
|
309
316
|
"Select view": string;
|
|
310
317
|
Reset: string;
|
|
318
|
+
"Importable fields": string;
|
|
311
319
|
"Exportable fields": string;
|
|
312
320
|
"Saved successfully": string;
|
|
313
321
|
Nickname: string;
|
|
@@ -474,11 +482,12 @@ declare const _default: {
|
|
|
474
482
|
'Local storage': string;
|
|
475
483
|
'Aliyun OSS': string;
|
|
476
484
|
'Amazon S3': string;
|
|
485
|
+
'Tencent COS': string;
|
|
477
486
|
Region: string;
|
|
478
487
|
Bucket: string;
|
|
479
488
|
Path: string;
|
|
480
489
|
Workflow: string;
|
|
481
|
-
'Execution
|
|
490
|
+
'Execution history': string;
|
|
482
491
|
'Trigger type': string;
|
|
483
492
|
Description: string;
|
|
484
493
|
Status: string;
|
|
@@ -486,8 +495,10 @@ declare const _default: {
|
|
|
486
495
|
Off: string;
|
|
487
496
|
Version: string;
|
|
488
497
|
'Copy to new version': string;
|
|
498
|
+
Loading: string;
|
|
489
499
|
'Load failed': string;
|
|
490
500
|
Trigger: string;
|
|
501
|
+
'Triggered at': string;
|
|
491
502
|
'Collection event': string;
|
|
492
503
|
'Trigger on': string;
|
|
493
504
|
'After record added': string;
|
|
@@ -534,9 +545,12 @@ declare const _default: {
|
|
|
534
545
|
Comparison: string;
|
|
535
546
|
'Arithmetic calculation': string;
|
|
536
547
|
'String operation': string;
|
|
548
|
+
'Executed at': string;
|
|
549
|
+
Queueing: string;
|
|
537
550
|
'On going': string;
|
|
538
551
|
Succeeded: string;
|
|
539
552
|
Failed: string;
|
|
553
|
+
Pending: string;
|
|
540
554
|
Canceled: string;
|
|
541
555
|
'This node contains branches, deleting will also be preformed to them, are you sure?': string;
|
|
542
556
|
Control: string;
|
|
@@ -625,9 +639,34 @@ declare const _default: {
|
|
|
625
639
|
"Enabled languages": string;
|
|
626
640
|
"View all plugins": string;
|
|
627
641
|
Print: string;
|
|
642
|
+
Done: string;
|
|
628
643
|
'Sign up successfully, and automatically jump to the sign in page': string;
|
|
644
|
+
'File manager': string;
|
|
645
|
+
ACL: string;
|
|
646
|
+
'Collection manager': string;
|
|
647
|
+
'Plugin manager': string;
|
|
648
|
+
Local: string;
|
|
649
|
+
'Built-in': string;
|
|
650
|
+
Marketplace: string;
|
|
651
|
+
'Coming soon...': string;
|
|
652
|
+
'Settings center': string;
|
|
653
|
+
Bookmark: string;
|
|
654
|
+
'Manage all settings': string;
|
|
629
655
|
'Create inverse field in the target collection': string;
|
|
630
656
|
'Inverse field name': string;
|
|
631
657
|
'Inverse field display name': string;
|
|
658
|
+
"Bulk update": string;
|
|
659
|
+
"After successful bulk update": string;
|
|
660
|
+
"Bulk edit": string;
|
|
661
|
+
"Data will be updated": string;
|
|
662
|
+
Selected: string;
|
|
663
|
+
All: string;
|
|
664
|
+
"Update selected data?": string;
|
|
665
|
+
"Update all data?": string;
|
|
666
|
+
"Remains the same": string;
|
|
667
|
+
"Changed to": string;
|
|
668
|
+
Clear: string;
|
|
669
|
+
"Add attach": string;
|
|
670
|
+
"Please select the records to be updated": string;
|
|
632
671
|
};
|
|
633
672
|
export default _default;
|
package/es/locale/zh_CN.js
CHANGED
|
@@ -140,6 +140,11 @@ export default {
|
|
|
140
140
|
"Start from": "起始于",
|
|
141
141
|
"Starts from {{value}}": "从 {{value}} 开始",
|
|
142
142
|
"Reset cycle": "重置周期",
|
|
143
|
+
"No reset": "不重置",
|
|
144
|
+
"Daily": "每天",
|
|
145
|
+
"Every Monday": "每周一",
|
|
146
|
+
"Monthly": "每月",
|
|
147
|
+
"Yearly": "每年",
|
|
143
148
|
"Operations": "操作",
|
|
144
149
|
"Choices": "选择类型",
|
|
145
150
|
"Checkbox": "勾选",
|
|
@@ -226,6 +231,7 @@ export default {
|
|
|
226
231
|
"Edit button": "编辑按钮",
|
|
227
232
|
"Hide": "隐藏",
|
|
228
233
|
"Enable actions": "启用操作",
|
|
234
|
+
"Import": "导入",
|
|
229
235
|
"Export": "导出",
|
|
230
236
|
"Customize": "自定义",
|
|
231
237
|
"Function": "Function",
|
|
@@ -302,12 +308,14 @@ export default {
|
|
|
302
308
|
"Allow uploading multiple files": "允许上传多个文件",
|
|
303
309
|
"Configure calendar": "配置日历",
|
|
304
310
|
"Title field": "标题字段",
|
|
311
|
+
"Show lunar": "展示农历",
|
|
305
312
|
"Start date field": "开始日期字段",
|
|
306
313
|
"End date field": "结束日期字段",
|
|
307
314
|
"Navigate": "分页",
|
|
308
315
|
"Title": "标题",
|
|
309
316
|
"Select view": "切换视图",
|
|
310
317
|
"Reset": "重置",
|
|
318
|
+
"Importable fields": "可导入字段",
|
|
311
319
|
"Exportable fields": "可导出字段",
|
|
312
320
|
"Saved successfully": "保存成功",
|
|
313
321
|
"Nickname": "昵称",
|
|
@@ -474,12 +482,13 @@ export default {
|
|
|
474
482
|
'Local storage': '本地存储',
|
|
475
483
|
'Aliyun OSS': '阿里云 OSS',
|
|
476
484
|
'Amazon S3': '亚马逊 S3',
|
|
485
|
+
'Tencent COS': '腾讯云 COS',
|
|
477
486
|
'Region': '区域',
|
|
478
487
|
'Bucket': '存储桶',
|
|
479
488
|
'Path': '路径(相对)',
|
|
480
489
|
// plugins/workflow
|
|
481
490
|
'Workflow': '工作流',
|
|
482
|
-
'Execution
|
|
491
|
+
'Execution history': '执行历史',
|
|
483
492
|
'Trigger type': '触发方式',
|
|
484
493
|
'Description': '描述',
|
|
485
494
|
'Status': '状态',
|
|
@@ -487,8 +496,10 @@ export default {
|
|
|
487
496
|
'Off': '停用',
|
|
488
497
|
'Version': '版本',
|
|
489
498
|
'Copy to new version': '复制到新版本',
|
|
499
|
+
'Loading': '加载中',
|
|
490
500
|
'Load failed': '加载失败',
|
|
491
501
|
'Trigger': '触发器',
|
|
502
|
+
'Triggered at': '触发时间',
|
|
492
503
|
'Collection event': '数据表事件',
|
|
493
504
|
'Trigger on': '触发时机',
|
|
494
505
|
'After record added': '新增数据后',
|
|
@@ -535,9 +546,12 @@ export default {
|
|
|
535
546
|
'Comparison': '值比较',
|
|
536
547
|
'Arithmetic calculation': '算术运算',
|
|
537
548
|
'String operation': '字符串',
|
|
549
|
+
'Executed at': '执行于',
|
|
550
|
+
'Queueing': '队列中',
|
|
538
551
|
'On going': '进行中',
|
|
539
552
|
'Succeeded': '成功',
|
|
540
553
|
'Failed': '失败',
|
|
554
|
+
'Pending': '等待处理',
|
|
541
555
|
'Canceled': '已取消',
|
|
542
556
|
'This node contains branches, deleting will also be preformed to them, are you sure?': '节点包含分支,将同时删除其所有分支下的子节点,确定继续?',
|
|
543
557
|
'Control': '流程控制',
|
|
@@ -627,8 +641,33 @@ export default {
|
|
|
627
641
|
"Enabled languages": "启用的语言",
|
|
628
642
|
"View all plugins": "查看所有插件",
|
|
629
643
|
"Print": "打印",
|
|
644
|
+
"Done": "完成",
|
|
630
645
|
'Sign up successfully, and automatically jump to the sign in page': '注册成功,即将跳转到登录页面',
|
|
646
|
+
'File manager': '文件管理器',
|
|
647
|
+
'ACL': '访问控制',
|
|
648
|
+
'Collection manager': '数据表管理',
|
|
649
|
+
'Plugin manager': '插件管理器',
|
|
650
|
+
'Local': '本地',
|
|
651
|
+
'Built-in': '内置',
|
|
652
|
+
'Marketplace': '插件市场',
|
|
653
|
+
'Coming soon...': '敬请期待...',
|
|
654
|
+
'Settings center': '配置中心',
|
|
655
|
+
'Bookmark': '书签',
|
|
656
|
+
'Manage all settings': '管理所有配置',
|
|
631
657
|
'Create inverse field in the target collection': '在目标数据表里创建反向关系字段',
|
|
632
658
|
'Inverse field name': '反向关系字段标识',
|
|
633
|
-
'Inverse field display name': '反向关系字段名称'
|
|
659
|
+
'Inverse field display name': '反向关系字段名称',
|
|
660
|
+
"Bulk update": "批量更新",
|
|
661
|
+
"After successful bulk update": "批量成功更新后",
|
|
662
|
+
"Bulk edit": "批量编辑",
|
|
663
|
+
"Data will be updated": "更新的数据",
|
|
664
|
+
"Selected": "选中",
|
|
665
|
+
"All": "所有",
|
|
666
|
+
"Update selected data?": "更新选中的数据吗?",
|
|
667
|
+
"Update all data?": "更新全部数据吗?",
|
|
668
|
+
"Remains the same": "不更新",
|
|
669
|
+
"Changed to": "修改为",
|
|
670
|
+
"Clear": "清空",
|
|
671
|
+
"Add attach": "增加关联",
|
|
672
|
+
"Please select the records to be updated": "请选择要更新的记录"
|
|
634
673
|
};
|
|
@@ -28,14 +28,14 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
28
28
|
|
|
29
29
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
30
30
|
|
|
31
|
-
import {
|
|
31
|
+
import { SettingOutlined } from '@ant-design/icons';
|
|
32
32
|
import { css } from '@emotion/css';
|
|
33
|
-
import { ConfigProvider, Menu,
|
|
33
|
+
import { ConfigProvider, Menu, Tooltip } from 'antd';
|
|
34
34
|
import cls from 'classnames';
|
|
35
35
|
import { get } from 'lodash';
|
|
36
36
|
import React, { createContext, useContext } from 'react';
|
|
37
37
|
import { useTranslation } from 'react-i18next';
|
|
38
|
-
import {
|
|
38
|
+
import { useHistory } from 'react-router-dom';
|
|
39
39
|
import { PluginManagerContext } from './context';
|
|
40
40
|
export var usePrefixCls = function usePrefixCls(tag, props) {
|
|
41
41
|
var _useContext = useContext(ConfigProvider.ConfigContext),
|
|
@@ -89,6 +89,7 @@ PluginManager.Toolbar = function (props) {
|
|
|
89
89
|
var _useTranslation = useTranslation(),
|
|
90
90
|
t = _useTranslation.t;
|
|
91
91
|
|
|
92
|
+
var history = useHistory();
|
|
92
93
|
return /*#__PURE__*/React.createElement("div", {
|
|
93
94
|
style: {
|
|
94
95
|
display: 'inline-block'
|
|
@@ -109,7 +110,7 @@ PluginManager.Toolbar = function (props) {
|
|
|
109
110
|
}), unpinned.length > 0 && /*#__PURE__*/React.createElement(Menu.SubMenu, {
|
|
110
111
|
popupClassName: 'pm-sub-menu',
|
|
111
112
|
key: 'more',
|
|
112
|
-
title: /*#__PURE__*/React.createElement(
|
|
113
|
+
title: /*#__PURE__*/React.createElement(SettingOutlined, null)
|
|
113
114
|
}, unpinned.map(function (item, index) {
|
|
114
115
|
var Action = get(components, item.component);
|
|
115
116
|
return Action && /*#__PURE__*/React.createElement(ToolbarItemContext.Provider, {
|
|
@@ -120,9 +121,11 @@ PluginManager.Toolbar = function (props) {
|
|
|
120
121
|
key: 'divider'
|
|
121
122
|
}), /*#__PURE__*/React.createElement(Menu.Item, {
|
|
122
123
|
key: 'plugins',
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
onClick: function onClick() {
|
|
125
|
+
history.push('/admin/settings');
|
|
126
|
+
},
|
|
127
|
+
icon: /*#__PURE__*/React.createElement(SettingOutlined, null)
|
|
128
|
+
}, t('Settings center')))));
|
|
126
129
|
};
|
|
127
130
|
|
|
128
131
|
PluginManager.Toolbar.Item = function (props) {
|
|
@@ -142,12 +145,15 @@ PluginManager.Toolbar.Item = function (props) {
|
|
|
142
145
|
className: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size: 12px;\n color: #999;\n "])))
|
|
143
146
|
}, subtitle);
|
|
144
147
|
var titleComponent = /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, title), subtitleComponent);
|
|
145
|
-
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
148
|
+
return title ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
146
149
|
title: titleComponent
|
|
147
150
|
}, /*#__PURE__*/React.createElement(Menu.Item, _objectSpread(_objectSpread({}, others), {}, {
|
|
148
151
|
className: className,
|
|
149
152
|
eventKey: item.component
|
|
150
|
-
}), icon))
|
|
153
|
+
}), icon)) : /*#__PURE__*/React.createElement(Menu.Item, _objectSpread(_objectSpread({}, others), {}, {
|
|
154
|
+
className: className,
|
|
155
|
+
eventKey: item.component
|
|
156
|
+
}), icon);
|
|
151
157
|
}
|
|
152
158
|
|
|
153
159
|
return /*#__PURE__*/React.createElement(Menu.Item, _objectSpread(_objectSpread({}, others), {}, {
|
|
@@ -158,20 +164,26 @@ PluginManager.Toolbar.Item = function (props) {
|
|
|
158
164
|
};
|
|
159
165
|
|
|
160
166
|
export var RemotePluginManagerToolbar = function RemotePluginManagerToolbar() {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}
|
|
173
|
-
|
|
167
|
+
// const api = useAPIClient();
|
|
168
|
+
// const { data, loading } = useRequest({
|
|
169
|
+
// resource: 'plugins',
|
|
170
|
+
// action: 'getPinned',
|
|
171
|
+
// });
|
|
172
|
+
// if (loading) {
|
|
173
|
+
// return <Spin />;
|
|
174
|
+
// }
|
|
175
|
+
var items = [{
|
|
176
|
+
component: 'DesignableSwitch',
|
|
177
|
+
pin: true
|
|
178
|
+
}, {
|
|
179
|
+
component: 'PluginManagerLink',
|
|
180
|
+
pin: true
|
|
181
|
+
}, {
|
|
182
|
+
component: 'SettingsCenterDropdown',
|
|
183
|
+
pin: true
|
|
184
|
+
} // ...data?.data,
|
|
185
|
+
];
|
|
174
186
|
return /*#__PURE__*/React.createElement(PluginManager.Toolbar, {
|
|
175
|
-
items:
|
|
187
|
+
items: items
|
|
176
188
|
});
|
|
177
189
|
};
|