@steedos/service-core-objects 3.0.0-beta.13 → 3.0.0-beta.132
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/main/default/applications/.gitkeep +0 -0
- package/main/default/applications/admin.app.yml +179 -0
- package/main/default/client/{topic.client.js → css.client.js} +2 -1
- package/main/default/client/socket.client.js +118 -0
- package/main/default/objectTranslations/announcements.en/announcements.en.objectTranslation.yml +37 -0
- package/main/default/objectTranslations/announcements.zh-CN/announcements.zh-CN.objectTranslation.yml +37 -0
- package/main/default/objectTranslations/audit_records.en/audit_records.en.objectTranslation.yml +1 -1
- package/main/default/objectTranslations/base.en/base.en.objectTranslation.yml +6 -0
- package/main/default/objectTranslations/base.zh-CN/base.zh-CN.objectTranslation.yml +6 -0
- package/main/default/objectTranslations/cms_files.en/cms_files.en.objectTranslation.yml +7 -1
- package/main/default/objectTranslations/cms_files.zh-CN/cms_files.zh-CN.objectTranslation.yml +7 -1
- package/main/default/objectTranslations/company.en/company.en.objectTranslation.yml +6 -1
- package/main/default/objectTranslations/company.zh-CN/company.zh-CN.objectTranslation.yml +5 -0
- package/main/default/objectTranslations/datasources.zh-CN/datasources.zh-CN.objectTranslation.yml +1 -1
- package/main/default/objectTranslations/license.en/license.en.objectTranslation.yml +1 -1
- package/main/default/objectTranslations/logs.en/logs.en.objectTranslation.yml +1 -1
- package/main/default/objectTranslations/object_actions.en/object_actions.en.objectTranslation.yml +5 -0
- package/main/default/objectTranslations/object_actions.zh-CN/object_actions.zh-CN.objectTranslation.yml +6 -1
- package/main/default/objectTranslations/object_fields.en/object_fields.en.objectTranslation.yml +4 -8
- package/main/default/objectTranslations/object_fields.zh-CN/object_fields.zh-CN.objectTranslation.yml +4 -4
- package/main/default/objectTranslations/object_functions.en/object_functions.en.objectTranslation.yml +1 -5
- package/main/default/objectTranslations/object_functions.zh-CN/object_functions.zh-CN.objectTranslation.yml +2 -6
- package/main/default/objectTranslations/object_layouts.zh-CN/object_layouts.zh-CN.objectTranslation.yml +1 -1
- package/main/default/objectTranslations/object_listviews.en/object_listviews.en.objectTranslation.yml +3 -1
- package/main/default/objectTranslations/object_listviews.zh-CN/object_listviews.zh-CN.objectTranslation.yml +5 -3
- package/main/default/objectTranslations/object_triggers.en/object_triggers.en.objectTranslation.yml +9 -0
- package/main/default/objectTranslations/object_triggers.zh-CN/object_triggers.zh-CN.objectTranslation.yml +9 -0
- package/main/default/objectTranslations/object_validation_rules.en/object_validation_rules.en.objectTranslation.yml +3 -3
- package/main/default/objectTranslations/object_webhooks.en/object_webhooks.en.objectTranslation.yml +12 -6
- package/main/default/objectTranslations/object_webhooks.zh-CN/object_webhooks.zh-CN.objectTranslation.yml +12 -6
- package/main/default/objectTranslations/objects.en/objects.en.objectTranslation.yml +44 -19
- package/main/default/objectTranslations/objects.zh-CN/objects.zh-CN.objectTranslation.yml +59 -25
- package/main/default/objectTranslations/operation_logs.en/operation_logs.en.objectTranslation.yml +66 -0
- package/main/default/objectTranslations/operation_logs.zh-CN/operation_logs.zh-CN.objectTranslation.yml +66 -0
- package/main/default/objectTranslations/organizations.en/organizations.en.objectTranslation.yml +1 -1
- package/main/default/objectTranslations/process_delegation_rules.en/process_delegation_rules.en.objectTranslation.yml +1 -1
- package/main/default/objectTranslations/sessions.en/sessions.en.objectTranslation.yml +1 -1
- package/main/default/objectTranslations/settings.en/settings.en.objectTranslation.yml +10 -1
- package/main/default/objectTranslations/settings.zh-CN/settings.zh-CN.objectTranslation.yml +9 -0
- package/main/default/objectTranslations/space_users.en/space_users.en.objectTranslation.yml +18 -1
- package/main/default/objectTranslations/space_users.zh-CN/space_users.zh-CN.objectTranslation.yml +17 -1
- package/main/default/objects/_base/base.client.js +124 -124
- package/main/default/objects/_base/base.object.js +502 -320
- package/main/default/objects/_base/base.object.yml +8 -0
- package/main/default/objects/_base/base.recordFieldAudit.trigger.js +3 -0
- package/main/default/objects/announcements.object.yml +68 -0
- package/main/default/objects/api_keys/buttons/copy.button.yml +1 -1
- package/main/default/objects/apps/apps.object.yml +25 -69
- package/main/default/objects/apps/buttons/disable.button.js +9 -7
- package/main/default/objects/apps/buttons/enable.button.js +9 -7
- package/main/default/objects/audit_records.object.yml +2 -2
- package/main/default/objects/cms_files/buttons/download.button.yml +1 -1
- package/main/default/objects/cms_files/cms_files.object.yml +7 -6
- package/main/default/objects/company/buttons/updateOrgs.button.yml +3 -6
- package/main/default/objects/company/company.object.yml +1 -1
- package/main/default/objects/favorites.object.yml +65 -0
- package/main/default/objects/keyvalue/keyvalue.object.yml +1 -0
- package/main/default/objects/logs/logs.object.yml +2 -1
- package/main/default/objects/object_actions/buttons/showDesign.button.js +5 -1
- package/main/default/objects/object_actions/fields/is_system.field.yml +1 -1
- package/main/default/objects/object_fields/buttons/recomputeFormulaValues.button.js +6 -2
- package/main/default/objects/object_fields/buttons/recomputeSummaryValues.button.js +6 -2
- package/main/default/objects/object_fields/buttons/standard_new.button.js +1 -1
- package/main/default/objects/object_fields/fields/_name.field.yml +1 -0
- package/main/default/objects/object_fields/fields/auto_fill_mapping.$.to.field.yml +28 -13
- package/main/default/objects/object_fields/fields/description.field.yml +11 -2
- package/main/default/objects/object_fields/fields/name.field.yml +1 -0
- package/main/default/objects/object_fields/fields/options.field.yml +1 -0
- package/main/default/objects/object_fields/fields/required.field.yml +1 -1
- package/main/default/objects/object_fields/fields/summary_filters.$.field.field.yml +16 -9
- package/main/default/objects/object_fields/fields/summary_filters.$.operation.field.yml +26 -29
- package/main/default/objects/object_fields/listviews/all.listview.yml +3 -1
- package/main/default/objects/object_fields/listviews/customize.listview.yml +3 -1
- package/main/default/objects/object_functions/buttons/open_api.button.yml +1 -3
- package/main/default/objects/object_functions/fields/script.field.yml +3 -2
- package/main/default/objects/object_functions/listviews/all.listview.yml +0 -1
- package/main/default/objects/object_functions/listviews/customize.listview.yml +0 -1
- package/main/default/objects/object_functions/object_functions.object.yml +1 -1
- package/main/default/objects/object_listviews/buttons/customize.button.js +36 -30
- package/main/default/objects/object_listviews/buttons/showDesign.button.js +6 -6
- package/main/default/objects/object_listviews/fields/adaptor.field.yml +2 -2
- package/main/default/objects/object_listviews/fields/crudDataFilter.field.yml +10 -0
- package/main/default/objects/object_listviews/fields/enable_amis_schema.field.yml +1 -0
- package/main/default/objects/object_listviews/fields/extra_columns.field.yml +18 -0
- package/main/default/objects/object_listviews/fields/requestAdaptor.field.yml +2 -2
- package/main/default/objects/object_listviews/object_listviews.object.yml +1 -1
- package/main/default/objects/object_triggers/fields/handler.field.yml +3 -2
- package/main/default/objects/object_webhooks/fields/fields.field.yml +1 -1
- package/main/default/objects/object_webhooks/object_webhooks.object.yml +2 -1
- package/main/default/objects/objects/buttons/custom.button.js +6 -35
- package/main/default/objects/objects/buttons/custom.button.yml +81 -1
- package/main/default/objects/objects/buttons/delete_object.button.yml +5 -4
- package/main/default/objects/objects/buttons/design_fields_layout.button.js +5 -2
- package/main/default/objects/objects/buttons/design_fields_layout.button.yml +1 -1
- package/main/default/objects/objects/buttons/reset.button.yml +6 -5
- package/main/default/objects/objects/buttons/show_object.button.js +2 -29
- package/main/default/objects/objects/fields/compactLayouts.field.yml +2 -2
- package/main/default/objects/objects/fields/enable_audit.field.yml +5 -0
- package/main/default/objects/objects/fields/enable_chatter.field.yml +5 -4
- package/main/default/objects/objects/fields/enable_dataloader.field.yml +0 -1
- package/main/default/objects/objects/fields/enable_enhanced_lookup.field.yml +0 -4
- package/main/default/objects/objects/fields/enable_events.field.yml +2 -2
- package/main/default/objects/objects/fields/enable_files.field.yml +1 -1
- package/main/default/objects/objects/fields/enable_form_tabs.field.yml +1 -2
- package/main/default/objects/objects/fields/enable_inline_edit.field.yml +1 -1
- package/main/default/objects/objects/fields/enable_instances.field.yml +2 -2
- package/main/default/objects/objects/fields/enable_lock_detail.field.yml +0 -1
- package/main/default/objects/objects/fields/enable_notes.field.yml +2 -2
- package/main/default/objects/objects/fields/enable_tasks.field.yml +1 -1
- package/main/default/objects/objects/fields/enable_tree.field.yml +0 -1
- package/main/default/objects/objects/fields/field_groups.field.yml +1 -1
- package/main/default/objects/objects/fields/in_development.field.yml +0 -1
- package/main/default/objects/objects/fields/is_deleted.field.yml +1 -0
- package/main/default/objects/objects/fields/name.field.yml +1 -4
- package/main/default/objects/objects/fields/table_name.field.yml +0 -1
- package/main/default/objects/objects/listviews/all.listview.yml +4 -1
- package/main/default/objects/objects/listviews/customize.listview.yml +3 -1
- package/main/default/objects/objects/listviews/deleted.listview.yml +3 -1
- package/main/default/objects/objects/listviews/metadata.listview.yml +3 -1
- package/main/default/objects/objects/listviews/system.listview.yml +3 -1
- package/main/default/objects/objects/objects.object.yml +1 -1
- package/main/default/objects/permission_set/buttons/copy.button.yml +114 -0
- package/main/default/objects/permission_set/buttons/set_permission_tabs.button.yml +166 -0
- package/main/default/objects/{permission_set.object.yml → permission_set/permission_set.object.yml} +1 -5
- package/main/default/objects/queue_import.object.yml +16 -1
- package/main/default/objects/roles.object.yml +1 -5
- package/main/default/objects/sessions.object.yml +1 -1
- package/main/default/objects/space_users/buttons/clear_login_tokens.button.yml +4 -7
- package/main/default/objects/space_users/buttons/disable.button.yml +3 -7
- package/main/default/objects/space_users/buttons/enable.button.yml +3 -7
- package/main/default/objects/space_users/buttons/lockout.button.yml +3 -7
- package/main/default/objects/space_users/buttons/standard_edit.button.js +0 -1
- package/main/default/objects/space_users/buttons/unlock.button.yml +3 -7
- package/main/default/objects/space_users/fields/locale.field.yml +2 -1
- package/main/default/objects/space_users/fields/password_expired.field.yml +1 -1
- package/main/default/pages/about.page.amis.json +21 -4
- package/main/default/pages/ai_chatbots_detail.page.amis.json +393 -0
- package/main/default/pages/ai_chatbots_detail.page.yml +13 -0
- package/main/default/pages/apps_form.page.amis.json +334 -0
- package/main/default/pages/apps_form.page.yml +12 -0
- package/main/default/pages/cfs_files_record_preview.page.amis.json +4 -4
- package/main/default/pages/cms_files_preview.page.amis.json +25 -6
- package/main/default/pages/object_detail.page.amis.json +17 -11
- package/main/default/pages/object_fields_form.page.amis.json +1 -12
- package/main/default/pages/object_form.page.amis.json +1 -1
- package/main/default/pages/object_validation_rules_form.page.amis.json +38 -0
- package/main/default/pages/object_validation_rules_form.page.yml +13 -0
- package/main/default/pages/object_webhooks_form.page.amis.json +1 -1
- package/main/default/pages/organizations.page.amis.json +0 -4
- package/main/default/pages/space_users_list.page.amis.json +134 -19
- package/main/default/routes/amis_button_design.ejs +4 -1
- package/main/default/routes/amis_button_design.router.js +4 -3
- package/main/default/routes/importRecords.router.js +87 -0
- package/main/default/routes/notifications.router.js +113 -0
- package/main/default/routes/object_fields_design.ejs +23 -9
- package/main/default/routes/object_fields_design.router.js +5 -4
- package/main/default/services/app-design.service.js +2 -1
- package/main/default/services/notifications.service.js +190 -0
- package/main/default/services/spaces.service.js +1 -1
- package/main/default/services/users.service.js +6 -3
- package/main/default/tabs/admin_bull_dashboard.tab.yml +22 -0
- package/main/default/tabs/{admin_process_delegation_rules.tab.yml → admin_object_functions.tab.yml} +5 -8
- package/main/default/tabs/admin_swagger.tab.yml +22 -0
- package/main/default/translations/en.translation.yml +5 -4
- package/main/default/translations/zh-CN.translation.yml +3 -2
- package/main/default/triggers/objects_set_default_object_properties_trigger.trigger.yml +9 -6
- package/main/default/triggers/queue_import.trigger.js +16 -0
- package/main/default/triggers/space_users.trigger.js +3 -3
- package/package.json +4 -4
- package/package.service.js +3 -2
- package/public/platform.css +67 -0
- package/public/topic.css +17 -37
- package/main/default/objectTranslations/flow_positions.en/flow_positions.en.objectTranslation.yml +0 -19
- package/main/default/objectTranslations/flow_positions.zh-CN/flow_positions.zh-CN.objectTranslation.yml +0 -19
- package/main/default/objectTranslations/flow_roles.en/flow_roles.en.objectTranslation.yml +0 -11
- package/main/default/objectTranslations/flow_roles.zh-CN/flow_roles.zh-CN.objectTranslation.yml +0 -14
- package/main/default/objectTranslations/flows.en/flows.en.objectTranslation.yml +0 -317
- package/main/default/objectTranslations/flows.zh-CN/flows.zh-CN.objectTranslation.yml +0 -314
- package/main/default/objectTranslations/forms.en/forms.en.objectTranslation.yml +0 -191
- package/main/default/objectTranslations/forms.zh-CN/forms.zh-CN.objectTranslation.yml +0 -194
- package/main/default/objectTranslations/instances.en/instances.en.objectTranslation.yml +0 -155
- package/main/default/objectTranslations/instances.zh-CN/instances.zh-CN.objectTranslation.yml +0 -155
- package/main/default/objects/apps/buttons/amis_edit.button.yml +0 -39
- package/main/default/objects/apps/buttons/amis_new.button.yml +0 -43
- package/main/default/objects/flows/flows.object.yml +0 -1089
- package/main/default/objects/object_actions/buttons/customize.button.js +0 -33
- package/main/default/objects/object_actions/buttons/customize.button.yml +0 -3
- package/main/default/objects/object_functions/fields/is_rest.field.yml +0 -5
- package/main/default/objects/object_listviews/buttons/copy.button.js +0 -58
- package/main/default/objects/object_listviews/buttons/copy.button.yml +0 -3
- package/main/default/objects/object_listviews/buttons/customize.button.yml +0 -3
- package/main/default/objects/objects/buttons/design_field_layout.button.js +0 -28
- package/main/default/objects/objects/buttons/design_field_layout.button.yml +0 -5
- package/main/default/objects/process_definition.object.yml +0 -323
- package/main/default/objects/space_users/fields/zoom.field.yml +0 -16
|
File without changes
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
name: Setup
|
|
2
|
+
code: admin
|
|
3
|
+
description: 管理员设置公司、人员、权限等。
|
|
4
|
+
icon: ion-ios-people-outline
|
|
5
|
+
icon_slds: settings
|
|
6
|
+
is_creator: true
|
|
7
|
+
showSidebar: true
|
|
8
|
+
mobile: true
|
|
9
|
+
tab_groups:
|
|
10
|
+
- group_name: personal_settings
|
|
11
|
+
- group_name: company_settings
|
|
12
|
+
- group_name: apps
|
|
13
|
+
- group_name: object_settings
|
|
14
|
+
- group_name: user_interface
|
|
15
|
+
- group_name: statistical_analysis
|
|
16
|
+
default_open: false
|
|
17
|
+
- group_name: process_automation
|
|
18
|
+
default_open: false
|
|
19
|
+
- group_name: approval_workflow
|
|
20
|
+
default_open: false
|
|
21
|
+
- group_name: development
|
|
22
|
+
default_open: false
|
|
23
|
+
- group_name: advanced_settings
|
|
24
|
+
default_open: false
|
|
25
|
+
tab_items:
|
|
26
|
+
# admin_space_user_info:
|
|
27
|
+
# group: 个人设置
|
|
28
|
+
# index: 1
|
|
29
|
+
admin_personal_information:
|
|
30
|
+
group: personal_settings
|
|
31
|
+
index: 1
|
|
32
|
+
admin_space_info:
|
|
33
|
+
group: company_settings
|
|
34
|
+
index: 3
|
|
35
|
+
admin_company:
|
|
36
|
+
group: company_settings
|
|
37
|
+
index: 4
|
|
38
|
+
admin_organizations:
|
|
39
|
+
group: company_settings
|
|
40
|
+
index: 5
|
|
41
|
+
admin_space_users:
|
|
42
|
+
group: company_settings
|
|
43
|
+
index: 6
|
|
44
|
+
admin_permission_set:
|
|
45
|
+
group: company_settings
|
|
46
|
+
index: 7
|
|
47
|
+
admin_license:
|
|
48
|
+
group: company_settings
|
|
49
|
+
index: 9
|
|
50
|
+
admin_objects:
|
|
51
|
+
group: apps
|
|
52
|
+
index: 10
|
|
53
|
+
admin_pages:
|
|
54
|
+
group: apps
|
|
55
|
+
index: 11
|
|
56
|
+
admin_tabs:
|
|
57
|
+
group: apps
|
|
58
|
+
index: 12
|
|
59
|
+
admin_apps:
|
|
60
|
+
group: apps
|
|
61
|
+
index: 13
|
|
62
|
+
# admin_queue_import:
|
|
63
|
+
# group: apps
|
|
64
|
+
# index: 18
|
|
65
|
+
# admin_datasources:
|
|
66
|
+
# group: apps
|
|
67
|
+
# index: 20
|
|
68
|
+
admin_steedos_packages:
|
|
69
|
+
group: apps
|
|
70
|
+
index: 18
|
|
71
|
+
admin_ai_chatbots:
|
|
72
|
+
group: apps
|
|
73
|
+
index: 19
|
|
74
|
+
admin_developer:
|
|
75
|
+
group: development
|
|
76
|
+
index: 19.50
|
|
77
|
+
# admin_metadata:
|
|
78
|
+
# group: development
|
|
79
|
+
# index: 19.505
|
|
80
|
+
admin_process_definition:
|
|
81
|
+
group: process_automation
|
|
82
|
+
index: 20
|
|
83
|
+
admin_workflow_rule:
|
|
84
|
+
group: process_automation
|
|
85
|
+
index: 21
|
|
86
|
+
admin_action_field_updates:
|
|
87
|
+
group: process_automation
|
|
88
|
+
index: 23
|
|
89
|
+
admin_workflow_notifications:
|
|
90
|
+
group: process_automation
|
|
91
|
+
index: 24
|
|
92
|
+
admin_workflow_outbound_messages:
|
|
93
|
+
group: process_automation
|
|
94
|
+
index: 25
|
|
95
|
+
# admin_flows:
|
|
96
|
+
# group: approval_workflow
|
|
97
|
+
# index: 20
|
|
98
|
+
# admin_roles:
|
|
99
|
+
# group: approval_workflow
|
|
100
|
+
# index: 25
|
|
101
|
+
# admin_flow_roles:
|
|
102
|
+
# group: approval_workflow
|
|
103
|
+
# index: 26
|
|
104
|
+
# admin_flow_positions:
|
|
105
|
+
# group: approval_workflow
|
|
106
|
+
# index: 26.5
|
|
107
|
+
# admin_categories:
|
|
108
|
+
# group: approval_workflow
|
|
109
|
+
# index: 28
|
|
110
|
+
# admin_instance_number_rules:
|
|
111
|
+
# group: approval_workflow
|
|
112
|
+
# index: 29
|
|
113
|
+
# admin_space_user_signs:
|
|
114
|
+
# group: approval_workflow
|
|
115
|
+
# index: 30
|
|
116
|
+
# admin_instances_statistic:
|
|
117
|
+
# group: approval_workflow
|
|
118
|
+
# index: 31
|
|
119
|
+
# admin_webhooks:
|
|
120
|
+
# group: approval_workflow
|
|
121
|
+
# index: 32
|
|
122
|
+
# admin_object_workflows:
|
|
123
|
+
# group: approval_workflow
|
|
124
|
+
# index: 33
|
|
125
|
+
admin_sessions:
|
|
126
|
+
group: advanced_settings
|
|
127
|
+
index: 34
|
|
128
|
+
# admin_dashboard:
|
|
129
|
+
# group: 高级设置
|
|
130
|
+
# index: 35
|
|
131
|
+
admin_autonumber:
|
|
132
|
+
group: advanced_settings
|
|
133
|
+
index: 37
|
|
134
|
+
# admin_web_forms:
|
|
135
|
+
# group: 高级设置
|
|
136
|
+
# index: 38
|
|
137
|
+
# admin_holidays:
|
|
138
|
+
# group: advanced_settings
|
|
139
|
+
# index: 39
|
|
140
|
+
# admin_business_hours:
|
|
141
|
+
# group: advanced_settings
|
|
142
|
+
# index: 40
|
|
143
|
+
# admin_object_webhooks:
|
|
144
|
+
# group: 高级设置
|
|
145
|
+
# index: 41
|
|
146
|
+
admin_api_keys:
|
|
147
|
+
group: development
|
|
148
|
+
index: 41
|
|
149
|
+
admin_swagger:
|
|
150
|
+
group: development
|
|
151
|
+
index: 42
|
|
152
|
+
admin_developer_triggers:
|
|
153
|
+
group: development
|
|
154
|
+
index: 42.2
|
|
155
|
+
admin_object_functions:
|
|
156
|
+
group: development
|
|
157
|
+
index: 42.3
|
|
158
|
+
admin_object_webhooks:
|
|
159
|
+
group: development
|
|
160
|
+
index: 42.5
|
|
161
|
+
admin_bull_dashboard:
|
|
162
|
+
group: development
|
|
163
|
+
index: 43
|
|
164
|
+
admin_settings:
|
|
165
|
+
group: advanced_settings
|
|
166
|
+
index: 50
|
|
167
|
+
admin_logs:
|
|
168
|
+
group: advanced_settings
|
|
169
|
+
index: 52
|
|
170
|
+
admin_audit_records:
|
|
171
|
+
group: advanced_settings
|
|
172
|
+
index: 36
|
|
173
|
+
admin_operation_logs:
|
|
174
|
+
group: advanced_settings
|
|
175
|
+
index: 60
|
|
176
|
+
objects: []
|
|
177
|
+
sort: 999999
|
|
178
|
+
#url: /app/admin
|
|
179
|
+
visible: true
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
var today = new Date();
|
|
2
2
|
var v = today.getFullYear().toString() + (today.getMonth() + 1).toString().padStart(2, '0') + today.getDate().toString().padStart(2, '0');
|
|
3
3
|
|
|
4
|
-
loadCss(Steedos.absoluteUrl('/
|
|
4
|
+
loadCss(Steedos.absoluteUrl('/platform.css?v='+v));
|
|
5
|
+
// loadCss(Steedos.absoluteUrl('/topic.css?v='+v));
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2
|
+
const SocketCommands = {
|
|
3
|
+
subscribe: "subscribe",
|
|
4
|
+
unsubscribe:"unsubscribe"
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
const SocketEvents = {
|
|
8
|
+
metadataChange: 's:metadata:change',
|
|
9
|
+
notificationChange: 's:notification-change'
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const SocketRoomParts = {
|
|
13
|
+
space: 'space',
|
|
14
|
+
me: 'me',
|
|
15
|
+
notificationChange: 'notification-change'
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// 连接到服务器
|
|
19
|
+
const socket = window.io(Builder.settings.context.rootUrl, {
|
|
20
|
+
path: "/socket.io"
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// 监听连接事件
|
|
24
|
+
socket.on("connect", () => {});
|
|
25
|
+
|
|
26
|
+
socket.on("connection-init", ()=>{
|
|
27
|
+
console.log('emit', SocketCommands.subscribe, SocketRoomParts.space);
|
|
28
|
+
socket.emit(SocketCommands.subscribe, {
|
|
29
|
+
roomParts: SocketRoomParts.space
|
|
30
|
+
});
|
|
31
|
+
console.log('emit', SocketCommands.subscribe, SocketRoomParts.me);
|
|
32
|
+
socket.emit(SocketCommands.subscribe, {
|
|
33
|
+
roomParts: SocketRoomParts.me,
|
|
34
|
+
individual: true
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
console.log('emit', SocketCommands.subscribe, SocketRoomParts.notificationChange);
|
|
38
|
+
socket.emit(SocketCommands.subscribe, {
|
|
39
|
+
roomParts: SocketRoomParts.notificationChange,
|
|
40
|
+
individual: true
|
|
41
|
+
});
|
|
42
|
+
})
|
|
43
|
+
|
|
44
|
+
// 监听自定义事件(根据服务器提供的接口)
|
|
45
|
+
const debounceTimers = new Map();
|
|
46
|
+
|
|
47
|
+
socket.on(SocketEvents.metadataChange, (data) => {
|
|
48
|
+
// 生成唯一 key 的逻辑
|
|
49
|
+
const getKey = () => {
|
|
50
|
+
if (data.type === 'object_fields' || data.type === 'object_listviews') {
|
|
51
|
+
return `objects-${data.objectName}`;
|
|
52
|
+
}
|
|
53
|
+
return `${data.type}-${data.name}`;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
// 处理函数
|
|
57
|
+
const handleRequest = () => {
|
|
58
|
+
if (data.type === 'apps') {
|
|
59
|
+
window.$(`.btn-reload-global-header-${data.name}`).trigger('click');
|
|
60
|
+
window.$(`.btn-reload-app-menu-${data.name}`).trigger('click');
|
|
61
|
+
setTimeout(() => {
|
|
62
|
+
window.$(".btn-reload-app-dashboard").trigger('click');
|
|
63
|
+
}, 1000);
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
let objectName = '';
|
|
68
|
+
if(data.type === 'objects'){
|
|
69
|
+
objectName = data.name;
|
|
70
|
+
}else if(data.type === 'object_actions'){
|
|
71
|
+
objectName = data.objectName;
|
|
72
|
+
}else if(data.type === 'object_fields'){
|
|
73
|
+
objectName = data.objectName;
|
|
74
|
+
}else if(data.type === 'object_listviews'){
|
|
75
|
+
objectName = data.objectName;
|
|
76
|
+
}
|
|
77
|
+
const shouldReloadView = () => {
|
|
78
|
+
return window.location.pathname.endsWith(`/${objectName}`) || window.location.pathname.includes(`/${objectName}/view`);
|
|
79
|
+
};
|
|
80
|
+
window.getUISchema(objectName, true).then(() => {
|
|
81
|
+
if (shouldReloadView()) {
|
|
82
|
+
window.navigate(window.location.pathname, {
|
|
83
|
+
state: { reloadKey: Date.now() }
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
if (data.type === 'apps') {
|
|
90
|
+
// apps 类型不防抖,直接执行
|
|
91
|
+
handleRequest();
|
|
92
|
+
} else {
|
|
93
|
+
const key = getKey();
|
|
94
|
+
clearTimeout(debounceTimers.get(key)); // 清除之前的定时器
|
|
95
|
+
debounceTimers.set(key, setTimeout(handleRequest, 200)); // 设置新的定时器
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
socket.on(SocketEvents.notificationChange, (data)=>{
|
|
100
|
+
if(data.message){
|
|
101
|
+
window.SteedosUI.notification.info({
|
|
102
|
+
message: data.message.name,
|
|
103
|
+
description: data.message.body
|
|
104
|
+
})
|
|
105
|
+
}
|
|
106
|
+
window.$('.btn-reload-global-header-notifications').trigger('click');
|
|
107
|
+
})
|
|
108
|
+
|
|
109
|
+
socket.on("connect_error", (err) => {
|
|
110
|
+
console.log("连接错误:", err);
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
// 断开连接时
|
|
114
|
+
socket.on("disconnect", () => {
|
|
115
|
+
console.log("Disconnected from server");
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
window.socket = socket;
|
package/main/default/objectTranslations/announcements.en/announcements.en.objectTranslation.yml
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: announcements
|
|
2
|
+
label: Announcement
|
|
3
|
+
description:
|
|
4
|
+
fields:
|
|
5
|
+
name:
|
|
6
|
+
label: Title
|
|
7
|
+
help:
|
|
8
|
+
description:
|
|
9
|
+
body:
|
|
10
|
+
label: Main Body
|
|
11
|
+
help:
|
|
12
|
+
description:
|
|
13
|
+
members:
|
|
14
|
+
label: User Members
|
|
15
|
+
help:
|
|
16
|
+
description:
|
|
17
|
+
organizations:
|
|
18
|
+
label: Organization Members
|
|
19
|
+
help:
|
|
20
|
+
description:
|
|
21
|
+
created:
|
|
22
|
+
label: Creation Time
|
|
23
|
+
help:
|
|
24
|
+
description:
|
|
25
|
+
created_by:
|
|
26
|
+
label: Created by
|
|
27
|
+
help:
|
|
28
|
+
description:
|
|
29
|
+
modified_by:
|
|
30
|
+
label: Modified by
|
|
31
|
+
help:
|
|
32
|
+
description:
|
|
33
|
+
groups:
|
|
34
|
+
members: Members
|
|
35
|
+
listviews:
|
|
36
|
+
all:
|
|
37
|
+
label: All Announcements
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: announcements
|
|
2
|
+
label: 公告
|
|
3
|
+
description:
|
|
4
|
+
fields:
|
|
5
|
+
name:
|
|
6
|
+
label: 标题
|
|
7
|
+
help:
|
|
8
|
+
description:
|
|
9
|
+
body:
|
|
10
|
+
label: 正文
|
|
11
|
+
help:
|
|
12
|
+
description:
|
|
13
|
+
members:
|
|
14
|
+
label: 人员
|
|
15
|
+
help:
|
|
16
|
+
description:
|
|
17
|
+
organizations:
|
|
18
|
+
label: 部门
|
|
19
|
+
help:
|
|
20
|
+
description:
|
|
21
|
+
created:
|
|
22
|
+
label: 发布时间
|
|
23
|
+
help:
|
|
24
|
+
description:
|
|
25
|
+
created_by:
|
|
26
|
+
label: 发布人
|
|
27
|
+
help:
|
|
28
|
+
description:
|
|
29
|
+
modified_by:
|
|
30
|
+
label: 修改人
|
|
31
|
+
help:
|
|
32
|
+
description:
|
|
33
|
+
groups:
|
|
34
|
+
members: 发布对象
|
|
35
|
+
listviews:
|
|
36
|
+
all:
|
|
37
|
+
label: 所有公告
|
|
@@ -2,6 +2,10 @@ name: base
|
|
|
2
2
|
label:
|
|
3
3
|
description:
|
|
4
4
|
fields:
|
|
5
|
+
external_id:
|
|
6
|
+
label: External Id
|
|
7
|
+
help:
|
|
8
|
+
description:
|
|
5
9
|
owner:
|
|
6
10
|
label: Owner
|
|
7
11
|
help:
|
|
@@ -163,5 +167,7 @@ actions:
|
|
|
163
167
|
label: Export Excel
|
|
164
168
|
standard_print:
|
|
165
169
|
label: Print
|
|
170
|
+
standard_customize:
|
|
171
|
+
label: Customize
|
|
166
172
|
groups:
|
|
167
173
|
system_information: System Information
|
|
@@ -2,6 +2,10 @@ name: base
|
|
|
2
2
|
label: base
|
|
3
3
|
description:
|
|
4
4
|
fields:
|
|
5
|
+
external_id:
|
|
6
|
+
label: 外部ID
|
|
7
|
+
help:
|
|
8
|
+
description:
|
|
5
9
|
owner:
|
|
6
10
|
label: 所有者
|
|
7
11
|
help:
|
|
@@ -163,5 +167,7 @@ actions:
|
|
|
163
167
|
label: 导出
|
|
164
168
|
standard_print:
|
|
165
169
|
label: 打印
|
|
170
|
+
standard_customize:
|
|
171
|
+
label: 自定义
|
|
166
172
|
groups:
|
|
167
173
|
system_information: 系统信息
|
|
@@ -35,7 +35,7 @@ listviews:
|
|
|
35
35
|
label: all
|
|
36
36
|
actions:
|
|
37
37
|
standard_new:
|
|
38
|
-
label:
|
|
38
|
+
label: Upload
|
|
39
39
|
standard_open_view:
|
|
40
40
|
label: Open View
|
|
41
41
|
online_preview:
|
|
@@ -48,3 +48,9 @@ actions:
|
|
|
48
48
|
label: Download
|
|
49
49
|
new_version:
|
|
50
50
|
label: Upgrade
|
|
51
|
+
CustomLabels:
|
|
52
|
+
cms_files_upload_success: Uploaded successfully
|
|
53
|
+
cms_files_pagedetail_tab_preview: Preview
|
|
54
|
+
cms_files_pagedetail_tab_detail: Details
|
|
55
|
+
cms_files_pagedetail_tab_historical_versions: Historical Versions
|
|
56
|
+
cms_files_pagedetail_tab_chatter: Comments
|
package/main/default/objectTranslations/cms_files.zh-CN/cms_files.zh-CN.objectTranslation.yml
CHANGED
|
@@ -35,7 +35,7 @@ listviews:
|
|
|
35
35
|
label: 所有
|
|
36
36
|
actions:
|
|
37
37
|
standard_new:
|
|
38
|
-
label:
|
|
38
|
+
label: 上传
|
|
39
39
|
standard_open_view:
|
|
40
40
|
label: 查看
|
|
41
41
|
online_preview:
|
|
@@ -48,3 +48,9 @@ actions:
|
|
|
48
48
|
label: 下载
|
|
49
49
|
new_version:
|
|
50
50
|
label: 上传新版本
|
|
51
|
+
CustomLabels:
|
|
52
|
+
cms_files_upload_success: 上传成功
|
|
53
|
+
cms_files_pagedetail_tab_preview: 预览
|
|
54
|
+
cms_files_pagedetail_tab_detail: 详细
|
|
55
|
+
cms_files_pagedetail_tab_historical_versions: 历史版本
|
|
56
|
+
cms_files_pagedetail_tab_chatter: 评论
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
name: company
|
|
2
|
-
label:
|
|
2
|
+
label: Divisions
|
|
3
3
|
description:
|
|
4
4
|
fields:
|
|
5
5
|
name:
|
|
@@ -48,3 +48,8 @@ listviews:
|
|
|
48
48
|
actions:
|
|
49
49
|
updateOrgs:
|
|
50
50
|
label: Update The Whole Company
|
|
51
|
+
CustomLabels:
|
|
52
|
+
company_actions_updateOrgs_confirmText_prefix: Update the company「
|
|
53
|
+
company_actions_updateOrgs_confirmText_suffix: 」info?
|
|
54
|
+
company_actions_updateOrgs_success: The company has updated successfully
|
|
55
|
+
company_actions_updateOrgs_failed: The company failed to update. Please try again later
|
|
@@ -48,3 +48,8 @@ listviews:
|
|
|
48
48
|
actions:
|
|
49
49
|
updateOrgs:
|
|
50
50
|
label: 更新组织
|
|
51
|
+
CustomLabels:
|
|
52
|
+
company_actions_updateOrgs_confirmText_prefix: 更新「
|
|
53
|
+
company_actions_updateOrgs_confirmText_suffix: 」组织信息?
|
|
54
|
+
company_actions_updateOrgs_success: 更新组织信息成功
|
|
55
|
+
company_actions_updateOrgs_failed: 更新组织信息失败,请稍后再试
|
package/main/default/objectTranslations/object_actions.en/object_actions.en.objectTranslation.yml
CHANGED
|
@@ -66,11 +66,16 @@ fields:
|
|
|
66
66
|
label: Execute Script
|
|
67
67
|
help:
|
|
68
68
|
description:
|
|
69
|
+
is_system:
|
|
70
|
+
label: System
|
|
69
71
|
listviews:
|
|
70
72
|
all:
|
|
71
73
|
label: All
|
|
72
74
|
customize:
|
|
73
75
|
label: Customize
|
|
76
|
+
actions:
|
|
77
|
+
showDesign:
|
|
78
|
+
label: Show Design
|
|
74
79
|
CustomLabels:
|
|
75
80
|
_object_actions_none_todo: >-
|
|
76
81
|
The action instance is not configured, please configure it in the code.<a
|
|
@@ -16,7 +16,7 @@ fields:
|
|
|
16
16
|
description:
|
|
17
17
|
name:
|
|
18
18
|
label: API 名称
|
|
19
|
-
help: API
|
|
19
|
+
help: API 名称只能包含小写字母、数字
|
|
20
20
|
description:
|
|
21
21
|
is_enable:
|
|
22
22
|
label: 启用
|
|
@@ -63,11 +63,16 @@ fields:
|
|
|
63
63
|
label: 执行的脚本
|
|
64
64
|
help:
|
|
65
65
|
description:
|
|
66
|
+
is_system:
|
|
67
|
+
label: 系统
|
|
66
68
|
listviews:
|
|
67
69
|
all:
|
|
68
70
|
label: 所有
|
|
69
71
|
customize:
|
|
70
72
|
label: 自定义
|
|
73
|
+
actions:
|
|
74
|
+
showDesign:
|
|
75
|
+
label: 设计器
|
|
71
76
|
CustomLabels:
|
|
72
77
|
_object_actions_none_todo: >-
|
|
73
78
|
未配置操作按钮实例,请在代码中配置。<a target='_blank'
|
package/main/default/objectTranslations/object_fields.en/object_fields.en.objectTranslation.yml
CHANGED
|
@@ -16,11 +16,7 @@ fields:
|
|
|
16
16
|
description:
|
|
17
17
|
name:
|
|
18
18
|
label: API Name
|
|
19
|
-
help:
|
|
20
|
-
Can only contain lowercase letters and numbers, must start with a letter,
|
|
21
|
-
cannot end with an underscore character or contain two consecutive
|
|
22
|
-
underscore characters
|
|
23
|
-
description:
|
|
19
|
+
help:
|
|
24
20
|
type:
|
|
25
21
|
label: Type
|
|
26
22
|
help:
|
|
@@ -92,7 +88,7 @@ fields:
|
|
|
92
88
|
description:
|
|
93
89
|
coordinatesType:
|
|
94
90
|
label: Coordinates Type
|
|
95
|
-
help:
|
|
91
|
+
help: "Coordinate system type: The default Baidu coordinate is 'bd09'. When using Autonavi Maps, it should be set to 'gcj02'. Autonavi Maps does not support coordinate conversion"
|
|
96
92
|
description:
|
|
97
93
|
reference_to:
|
|
98
94
|
label: Reference to
|
|
@@ -344,11 +340,11 @@ fields:
|
|
|
344
340
|
help:
|
|
345
341
|
description:
|
|
346
342
|
searchable:
|
|
347
|
-
label: Enable
|
|
343
|
+
label: Enable quick search on the list page
|
|
348
344
|
help:
|
|
349
345
|
description:
|
|
350
346
|
filterable:
|
|
351
|
-
label:
|
|
347
|
+
label: Default Filter Field
|
|
352
348
|
help:
|
|
353
349
|
description:
|
|
354
350
|
show_as_qr:
|
|
@@ -4,8 +4,8 @@ description:
|
|
|
4
4
|
fields:
|
|
5
5
|
_name:
|
|
6
6
|
label: 字段名
|
|
7
|
-
help:
|
|
8
|
-
description:
|
|
7
|
+
help:
|
|
8
|
+
description: 数据库中的字段名,只能包含小写字母、数字
|
|
9
9
|
amis:
|
|
10
10
|
label: Amis 配置
|
|
11
11
|
help: 使用 amis 配置字段显示样式
|
|
@@ -35,7 +35,7 @@ fields:
|
|
|
35
35
|
description:
|
|
36
36
|
coordinatesType:
|
|
37
37
|
label: 坐标类型
|
|
38
|
-
help:
|
|
38
|
+
help: 坐标系类型,默认百度坐标'bd09',使用高德地图时应设置为'gcj02', 高德地图不支持坐标转换
|
|
39
39
|
description:
|
|
40
40
|
create:
|
|
41
41
|
label: 弹出选择时允许新建
|
|
@@ -241,7 +241,7 @@ fields:
|
|
|
241
241
|
description:
|
|
242
242
|
name:
|
|
243
243
|
label: API 名称
|
|
244
|
-
help: API
|
|
244
|
+
help: API 名称只能包含小写字母、数字
|
|
245
245
|
description:
|
|
246
246
|
object:
|
|
247
247
|
label: 所属对象
|
|
@@ -8,11 +8,7 @@ fields:
|
|
|
8
8
|
Can only contain lowercase letters and numbers, must start with a letter,
|
|
9
9
|
cannot end with an underscore character or contain two consecutive
|
|
10
10
|
underscore characters
|
|
11
|
-
description:
|
|
12
|
-
is_rest:
|
|
13
|
-
label: Enable API
|
|
14
|
-
help:
|
|
15
|
-
description: allow the use of api interface access:{POST/GET} /api/v1/:objectName/functions/:functionApiName
|
|
11
|
+
description: (POST/GET) /api/v6/functions/:objectName/:functionApiName
|
|
16
12
|
is_system:
|
|
17
13
|
label: System
|
|
18
14
|
help:
|
|
@@ -4,12 +4,8 @@ description:
|
|
|
4
4
|
fields:
|
|
5
5
|
_name:
|
|
6
6
|
label: API 名称
|
|
7
|
-
help: API
|
|
8
|
-
description:
|
|
9
|
-
is_rest:
|
|
10
|
-
label: 启用API
|
|
11
|
-
help:
|
|
12
|
-
description: 允许使用API接口访问:{POST/GET} /api/v1/:objectName/functions/:functionApiName
|
|
7
|
+
help: API 名称只能包含小写字母、数字
|
|
8
|
+
description: (POST/GET) /api/v6/functions/:objectName/:functionApiName
|
|
13
9
|
is_system:
|
|
14
10
|
label: 系统
|
|
15
11
|
help:
|
|
@@ -189,6 +189,9 @@ fields:
|
|
|
189
189
|
label: Adaptor
|
|
190
190
|
help: "Function signature: (payload, response, api)=>payload"
|
|
191
191
|
description:
|
|
192
|
+
extra_columns:
|
|
193
|
+
label: Extra Columns
|
|
194
|
+
description: Query only through the interface, not displayed in the list.
|
|
192
195
|
groups:
|
|
193
196
|
advanced: Advanced
|
|
194
197
|
share_rules: Share Rules
|
|
@@ -196,7 +199,6 @@ groups:
|
|
|
196
199
|
sort: Sort
|
|
197
200
|
filters: Filters
|
|
198
201
|
search_term: Search Term
|
|
199
|
-
data_interface: Data Interface
|
|
200
202
|
listviews:
|
|
201
203
|
all:
|
|
202
204
|
label: All List View
|