@nocobase/client 0.7.6-alpha.2 → 0.8.0-alpha.10
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 +48 -13
- package/es/collection-manager/Configuration/CollectionFieldsTable.d.ts +15 -0
- package/es/collection-manager/Configuration/CollectionFieldsTable.js +73 -0
- package/es/collection-manager/Configuration/CollectionFieldsTableArray.d.ts +8 -0
- package/es/collection-manager/Configuration/CollectionFieldsTableArray.js +250 -0
- package/es/collection-manager/Configuration/ConfigurationTable.js +6 -2
- 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 +3 -0
- package/es/collection-manager/Configuration/index.js +3 -0
- package/es/collection-manager/Configuration/schemas/collectionFields.js +4 -4
- package/es/collection-manager/Configuration/schemas/collections.js +1 -1
- 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 +24 -1
- 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 +24 -1
- package/es/locale/en_US.js +25 -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 +50 -1
- package/es/locale/zh_CN.js +51 -2
- package/es/plugin-manager/PluginManager.js +35 -23
- package/es/pm/PluginManagerLink.d.ts +2 -0
- package/es/pm/PluginManagerLink.js +112 -0
- package/es/pm/index.d.ts +6 -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 +137 -23
- package/es/schema-component/antd/calendar/DeleteEvent.d.ts +3 -0
- package/es/schema-component/antd/calendar/DeleteEvent.js +147 -0
- 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/index.js +2 -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/select/Select.js +25 -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/CalendarFormActionInitializers.d.ts +143 -0
- package/es/schema-initializer/buttons/CalendarFormActionInitializers.js +146 -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/RecordBlockInitializers.js +2 -1
- 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 +3 -0
- package/es/schema-initializer/buttons/index.js +3 -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/DeleteEventActionInitializer.d.ts +1 -0
- package/es/schema-initializer/items/DeleteEventActionInitializer.js +27 -0
- package/es/schema-initializer/items/RecordReadPrettyFormBlockInitializer.js +7 -7
- package/es/schema-initializer/items/index.d.ts +4 -0
- package/es/schema-initializer/items/index.js +4 -0
- package/es/schema-initializer/utils.d.ts +1 -0
- package/es/schema-initializer/utils.js +74 -15
- 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 +52 -12
- package/lib/collection-manager/Configuration/CollectionFieldsTable.d.ts +15 -0
- package/lib/collection-manager/Configuration/CollectionFieldsTable.js +92 -0
- package/lib/collection-manager/Configuration/CollectionFieldsTableArray.d.ts +8 -0
- package/lib/collection-manager/Configuration/CollectionFieldsTableArray.js +273 -0
- package/lib/collection-manager/Configuration/ConfigurationTable.js +7 -2
- 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 +3 -0
- package/lib/collection-manager/Configuration/index.js +39 -0
- package/lib/collection-manager/Configuration/schemas/collectionFields.js +4 -4
- package/lib/collection-manager/Configuration/schemas/collections.js +1 -1
- 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 +26 -2
- 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 +24 -1
- package/lib/locale/en_US.js +25 -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 +50 -1
- package/lib/locale/zh_CN.js +51 -2
- package/lib/plugin-manager/PluginManager.js +33 -21
- package/lib/pm/PluginManagerLink.d.ts +2 -0
- package/lib/pm/PluginManagerLink.js +139 -0
- package/lib/pm/index.d.ts +6 -0
- package/lib/pm/index.js +476 -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 +139 -23
- package/lib/schema-component/antd/calendar/DeleteEvent.d.ts +3 -0
- package/lib/schema-component/antd/calendar/DeleteEvent.js +173 -0
- 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/index.js +5 -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/select/Select.js +25 -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/CalendarFormActionInitializers.d.ts +143 -0
- package/lib/schema-initializer/buttons/CalendarFormActionInitializers.js +153 -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/RecordBlockInitializers.js +2 -1
- 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 +3 -0
- package/lib/schema-initializer/buttons/index.js +39 -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/DeleteEventActionInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/DeleteEventActionInitializer.js +40 -0
- package/lib/schema-initializer/items/RecordReadPrettyFormBlockInitializer.js +1 -1
- package/lib/schema-initializer/items/index.d.ts +4 -0
- package/lib/schema-initializer/items/index.js +52 -0
- package/lib/schema-initializer/utils.d.ts +1 -0
- package/lib/schema-initializer/utils.js +78 -16
- 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 +6 -4
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.SystemSettingsShortcut = void 0;
|
|
8
|
+
exports.SystemSettingsShortcut2 = exports.SystemSettingsShortcut = exports.SystemSettingsPane = void 0;
|
|
9
9
|
|
|
10
10
|
var _icons = require("@ant-design/icons");
|
|
11
11
|
|
|
@@ -13,12 +13,16 @@ var _react = require("@formily/react");
|
|
|
13
13
|
|
|
14
14
|
var _shared = require("@formily/shared");
|
|
15
15
|
|
|
16
|
+
var _antd = require("antd");
|
|
17
|
+
|
|
16
18
|
var _cloneDeep = _interopRequireDefault(require("lodash/cloneDeep"));
|
|
17
19
|
|
|
18
20
|
var _react2 = _interopRequireWildcard(require("react"));
|
|
19
21
|
|
|
20
22
|
var _reactI18next = require("react-i18next");
|
|
21
23
|
|
|
24
|
+
var _reactRouterDom = require("react-router-dom");
|
|
25
|
+
|
|
22
26
|
var _ = require(".");
|
|
23
27
|
|
|
24
28
|
var _2 = require("..");
|
|
@@ -109,6 +113,10 @@ var useSaveSystemSettingsValues = function useSaveSystemSettingsValues() {
|
|
|
109
113
|
data = _useSystemSettings.data;
|
|
110
114
|
|
|
111
115
|
var api = (0, _2.useAPIClient)();
|
|
116
|
+
|
|
117
|
+
var _useTranslation = (0, _reactI18next.useTranslation)(),
|
|
118
|
+
t = _useTranslation.t;
|
|
119
|
+
|
|
112
120
|
return {
|
|
113
121
|
run: function run() {
|
|
114
122
|
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
@@ -135,6 +143,8 @@ var useSaveSystemSettingsValues = function useSaveSystemSettingsValues() {
|
|
|
135
143
|
});
|
|
136
144
|
|
|
137
145
|
case 6:
|
|
146
|
+
_antd.message.success(t('Saved successfully'));
|
|
147
|
+
|
|
138
148
|
lang = ((_values$enabledLangua = values.enabledLanguages) === null || _values$enabledLangua === void 0 ? void 0 : _values$enabledLangua[0]) || 'en-US';
|
|
139
149
|
|
|
140
150
|
if (values.enabledLanguages.length < 2 && api.auth.getLocale() !== lang) {
|
|
@@ -144,7 +154,7 @@ var useSaveSystemSettingsValues = function useSaveSystemSettingsValues() {
|
|
|
144
154
|
setVisible(false);
|
|
145
155
|
}
|
|
146
156
|
|
|
147
|
-
case
|
|
157
|
+
case 9:
|
|
148
158
|
case "end":
|
|
149
159
|
return _context2.stop();
|
|
150
160
|
}
|
|
@@ -228,13 +238,103 @@ var schema = {
|
|
|
228
238
|
type: 'void',
|
|
229
239
|
'x-component': 'Action.Drawer.Footer',
|
|
230
240
|
properties: {
|
|
241
|
+
submit: {
|
|
242
|
+
title: 'Submit',
|
|
243
|
+
'x-component': 'Action',
|
|
244
|
+
'x-component-props': {
|
|
245
|
+
type: 'primary',
|
|
246
|
+
htmlType: 'submit',
|
|
247
|
+
useAction: '{{ useSaveSystemSettingsValues }}'
|
|
248
|
+
}
|
|
249
|
+
},
|
|
231
250
|
cancel: {
|
|
232
251
|
title: 'Cancel',
|
|
233
252
|
'x-component': 'Action',
|
|
234
253
|
'x-component-props': {
|
|
235
254
|
useAction: '{{ useCloseAction }}'
|
|
236
255
|
}
|
|
237
|
-
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
})
|
|
261
|
+
};
|
|
262
|
+
var schema2 = {
|
|
263
|
+
type: 'object',
|
|
264
|
+
properties: _defineProperty({}, (0, _shared.uid)(), {
|
|
265
|
+
'x-decorator': 'Form',
|
|
266
|
+
'x-decorator-props': {
|
|
267
|
+
useValues: '{{ useSystemSettingsValues }}'
|
|
268
|
+
},
|
|
269
|
+
'x-component': 'div',
|
|
270
|
+
type: 'void',
|
|
271
|
+
title: '{{t("System settings")}}',
|
|
272
|
+
properties: {
|
|
273
|
+
title: {
|
|
274
|
+
type: 'string',
|
|
275
|
+
title: "{{t('System title')}}",
|
|
276
|
+
'x-decorator': 'FormItem',
|
|
277
|
+
'x-component': 'Input',
|
|
278
|
+
required: true
|
|
279
|
+
},
|
|
280
|
+
logo: {
|
|
281
|
+
type: 'string',
|
|
282
|
+
title: "{{t('Logo')}}",
|
|
283
|
+
'x-decorator': 'FormItem',
|
|
284
|
+
'x-component': 'Upload.Attachment',
|
|
285
|
+
'x-component-props': {
|
|
286
|
+
action: 'attachments:upload',
|
|
287
|
+
multiple: false // accept: 'jpg,png'
|
|
288
|
+
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
enabledLanguages: {
|
|
292
|
+
type: 'array',
|
|
293
|
+
title: '{{t("Enabled languages")}}',
|
|
294
|
+
'x-component': 'Select',
|
|
295
|
+
'x-component-props': {
|
|
296
|
+
mode: 'multiple'
|
|
297
|
+
},
|
|
298
|
+
'x-decorator': 'FormItem',
|
|
299
|
+
enum: langs,
|
|
300
|
+
'x-reactions': function xReactions(field) {
|
|
301
|
+
field.dataSource = langs.map(function (item) {
|
|
302
|
+
var _field$value2;
|
|
303
|
+
|
|
304
|
+
var label = item.label;
|
|
305
|
+
|
|
306
|
+
if (((_field$value2 = field.value) === null || _field$value2 === void 0 ? void 0 : _field$value2[0]) === item.value) {
|
|
307
|
+
label += "(".concat(_2.i18n.t('Default'), ")");
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
return {
|
|
311
|
+
label: label,
|
|
312
|
+
value: item.value
|
|
313
|
+
};
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
allowSignUp: {
|
|
318
|
+
type: 'boolean',
|
|
319
|
+
default: true,
|
|
320
|
+
'x-content': '{{t("Allow sign up")}}',
|
|
321
|
+
'x-component': 'Checkbox',
|
|
322
|
+
'x-decorator': 'FormItem'
|
|
323
|
+
},
|
|
324
|
+
smsAuthEnabled: {
|
|
325
|
+
type: 'boolean',
|
|
326
|
+
default: false,
|
|
327
|
+
'x-content': '{{t("Enable SMS authentication")}}',
|
|
328
|
+
'x-component': 'Checkbox',
|
|
329
|
+
'x-decorator': 'FormItem'
|
|
330
|
+
},
|
|
331
|
+
footer1: {
|
|
332
|
+
type: 'void',
|
|
333
|
+
'x-component': 'ActionBar',
|
|
334
|
+
'x-component-props': {
|
|
335
|
+
layout: 'one-column'
|
|
336
|
+
},
|
|
337
|
+
properties: {
|
|
238
338
|
submit: {
|
|
239
339
|
title: 'Submit',
|
|
240
340
|
'x-component': 'Action',
|
|
@@ -243,21 +343,59 @@ var schema = {
|
|
|
243
343
|
htmlType: 'submit',
|
|
244
344
|
useAction: '{{ useSaveSystemSettingsValues }}'
|
|
245
345
|
}
|
|
246
|
-
}
|
|
346
|
+
} // cancel: {
|
|
347
|
+
// title: 'Cancel',
|
|
348
|
+
// 'x-component': 'Action',
|
|
349
|
+
// 'x-component-props': {
|
|
350
|
+
// useAction: '{{ useCloseAction }}',
|
|
351
|
+
// },
|
|
352
|
+
// },
|
|
353
|
+
|
|
247
354
|
}
|
|
248
355
|
}
|
|
249
356
|
}
|
|
250
357
|
})
|
|
251
358
|
};
|
|
252
359
|
|
|
360
|
+
var SystemSettingsPane = function SystemSettingsPane() {
|
|
361
|
+
return /*#__PURE__*/_react2.default.createElement(_antd.Card, {
|
|
362
|
+
bordered: false
|
|
363
|
+
}, /*#__PURE__*/_react2.default.createElement(_schemaComponent.SchemaComponent, {
|
|
364
|
+
scope: {
|
|
365
|
+
useSaveSystemSettingsValues: useSaveSystemSettingsValues,
|
|
366
|
+
useSystemSettingsValues: useSystemSettingsValues,
|
|
367
|
+
useCloseAction: useCloseAction
|
|
368
|
+
},
|
|
369
|
+
schema: schema2
|
|
370
|
+
}));
|
|
371
|
+
};
|
|
372
|
+
|
|
373
|
+
exports.SystemSettingsPane = SystemSettingsPane;
|
|
374
|
+
|
|
253
375
|
var SystemSettingsShortcut = function SystemSettingsShortcut() {
|
|
376
|
+
var _useTranslation2 = (0, _reactI18next.useTranslation)(),
|
|
377
|
+
t = _useTranslation2.t;
|
|
378
|
+
|
|
379
|
+
var history = (0, _reactRouterDom.useHistory)();
|
|
380
|
+
return /*#__PURE__*/_react2.default.createElement(_2.PluginManager.Toolbar.Item, {
|
|
381
|
+
icon: /*#__PURE__*/_react2.default.createElement(_icons.SettingOutlined, null),
|
|
382
|
+
title: t('System settings'),
|
|
383
|
+
onClick: function onClick() {
|
|
384
|
+
history.push('/admin/settings/system-settings/system-settings');
|
|
385
|
+
}
|
|
386
|
+
});
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
exports.SystemSettingsShortcut = SystemSettingsShortcut;
|
|
390
|
+
|
|
391
|
+
var SystemSettingsShortcut2 = function SystemSettingsShortcut2() {
|
|
254
392
|
var _useState = (0, _react2.useState)(false),
|
|
255
393
|
_useState2 = _slicedToArray(_useState, 2),
|
|
256
394
|
visible = _useState2[0],
|
|
257
395
|
setVisible = _useState2[1];
|
|
258
396
|
|
|
259
|
-
var
|
|
260
|
-
t =
|
|
397
|
+
var _useTranslation3 = (0, _reactI18next.useTranslation)(),
|
|
398
|
+
t = _useTranslation3.t;
|
|
261
399
|
|
|
262
400
|
return /*#__PURE__*/_react2.default.createElement(_schemaComponent.ActionContext.Provider, {
|
|
263
401
|
value: {
|
|
@@ -281,4 +419,4 @@ var SystemSettingsShortcut = function SystemSettingsShortcut() {
|
|
|
281
419
|
}));
|
|
282
420
|
};
|
|
283
421
|
|
|
284
|
-
exports.
|
|
422
|
+
exports.SystemSettingsShortcut2 = SystemSettingsShortcut2;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0-alpha.10",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"licenses": [
|
|
6
6
|
{
|
|
@@ -19,12 +19,13 @@
|
|
|
19
19
|
"@formily/antd": "2.0.20",
|
|
20
20
|
"@formily/core": "2.0.20",
|
|
21
21
|
"@formily/react": "2.0.20",
|
|
22
|
-
"@nocobase/sdk": "0.
|
|
23
|
-
"@nocobase/utils": "0.
|
|
22
|
+
"@nocobase/sdk": "0.8.0-alpha.10",
|
|
23
|
+
"@nocobase/utils": "0.8.0-alpha.10",
|
|
24
24
|
"ahooks": "^3.0.5",
|
|
25
25
|
"antd": "~4.19.5",
|
|
26
26
|
"axios": "^0.26.1",
|
|
27
27
|
"classnames": "^2.3.1",
|
|
28
|
+
"cron-parser": "^4.6.0",
|
|
28
29
|
"cronstrue": "^2.11.0",
|
|
29
30
|
"file-saver": "^2.0.5",
|
|
30
31
|
"i18next": "^21.6.0",
|
|
@@ -43,6 +44,7 @@
|
|
|
43
44
|
"react-quill": "^1.3.5",
|
|
44
45
|
"react-router-dom": "^5.2.0",
|
|
45
46
|
"react-to-print": "^2.14.7",
|
|
47
|
+
"solarlunar-es": "^1.0.9",
|
|
46
48
|
"use-deep-compare-effect": "^1.8.1"
|
|
47
49
|
},
|
|
48
50
|
"peerDependencies": {
|
|
@@ -57,5 +59,5 @@
|
|
|
57
59
|
"@types/marked": "^4.0.1",
|
|
58
60
|
"axios-mock-adapter": "^1.20.0"
|
|
59
61
|
},
|
|
60
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "a9723cdeadc764eba634b5815685177679025c83"
|
|
61
63
|
}
|