@steedos/service-package-registry 2.5.15-beta.2 → 2.5.15-beta.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.
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "page",
|
|
3
|
+
"body": [
|
|
4
|
+
{
|
|
5
|
+
"type": "steedos-object-listview",
|
|
6
|
+
"label": "列表视图",
|
|
7
|
+
"objectApiName": "${objectName}",
|
|
8
|
+
"listName": "all",
|
|
9
|
+
"showHeader": true,
|
|
10
|
+
"className": "sm:border sm:rounded sm:border-gray-300 mb-4",
|
|
11
|
+
"id": "u:70d5861033de",
|
|
12
|
+
"crud": {
|
|
13
|
+
"columnsCount": 4,
|
|
14
|
+
"id": "u:553974f9435b",
|
|
15
|
+
"mode": "cards",
|
|
16
|
+
"footerToolbar": [],
|
|
17
|
+
"switchPerPage": false,
|
|
18
|
+
"bulkActions": [],
|
|
19
|
+
"card": {
|
|
20
|
+
"header": {
|
|
21
|
+
"avatarText": "${label|split:/|last|substring:0:2|upperCase}",
|
|
22
|
+
"avatarTextBackground": [
|
|
23
|
+
"#FFB900",
|
|
24
|
+
"#D83B01",
|
|
25
|
+
"#B50E0E",
|
|
26
|
+
"#E81123",
|
|
27
|
+
"#B4009E",
|
|
28
|
+
"#5C2D91",
|
|
29
|
+
"#0078D7",
|
|
30
|
+
"#00B4FF",
|
|
31
|
+
"#008272"
|
|
32
|
+
],
|
|
33
|
+
"className": "bg-white",
|
|
34
|
+
"title": "${label}@${version}",
|
|
35
|
+
"subTitle": "$description",
|
|
36
|
+
"description": "<span class=\"bg-${status === 'enable' ? 'green': 'gray'}-300 border rounded-full px-2 py-0.5 mt-2 inline-block\">$_display.status</span> ${static && '<span>静态(不支持卸载、升级)</span>'}"
|
|
37
|
+
},
|
|
38
|
+
"actions": [
|
|
39
|
+
{
|
|
40
|
+
"label": "启用",
|
|
41
|
+
"disabledOn": "${status === 'enable'}",
|
|
42
|
+
"onEvent": {
|
|
43
|
+
"click": {
|
|
44
|
+
"actions": [
|
|
45
|
+
{
|
|
46
|
+
"actionType": "custom",
|
|
47
|
+
"script": "let todo = event.data.uiSchema.actions.enable.todo;\nlet objectName = event.data.objectName;\nlet _id = event.data._id;\n\nif (todo) {\n (new Function(\"(\" + todo + \")(\" + \"'\" + objectName + \"'\" + \",'\" + _id + \"')\"))();\n}\n"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"id": "u:553d77aa3872"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"label": "停用",
|
|
56
|
+
"disabledOn": "${status !== 'enable'}",
|
|
57
|
+
"onEvent": {
|
|
58
|
+
"click": {
|
|
59
|
+
"actions": [
|
|
60
|
+
{
|
|
61
|
+
"actionType": "custom",
|
|
62
|
+
"script": "let todo = event.data.uiSchema.actions.disable.todo;\nlet objectName = event.data.objectName;\nlet _id = event.data._id;\n\nif (todo) {\n (new Function(\"(\" + todo + \")(\" + \"'\" + objectName + \"'\" + \",'\" + _id + \"')\"))();\n}\n"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"id": "u:7e1db04924da"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"type": "card",
|
|
71
|
+
"id": "u:2bb7748ac402"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"regions": [
|
|
77
|
+
"body"
|
|
78
|
+
],
|
|
79
|
+
"data": {
|
|
80
|
+
"objectName": "steedos_packages",
|
|
81
|
+
"context": {
|
|
82
|
+
"rootUrl": "http://127.0.0.1:5800",
|
|
83
|
+
"tenantId": "64a4d6dd7fe9acaf8c330a37",
|
|
84
|
+
"userId": "683e09cd-8482-4034-bd29-5a30643e6c0f",
|
|
85
|
+
"authToken": "2906ff4353c25cfe291352f899ba3446aa5577f3de7ad60e1aa500c60dee7ca6fb446412f1c9693775b4cc"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"id": "u:2775cd701d6a",
|
|
89
|
+
"name": "page_test__c_list",
|
|
90
|
+
"bodyClassName": "p-0",
|
|
91
|
+
"css": {
|
|
92
|
+
".antd-Wrapper.steedos-object-table > .antd-Service": {
|
|
93
|
+
"flex-grow": "1"
|
|
94
|
+
},
|
|
95
|
+
".antd-Service.steedos-object-table .antd-Crud .antd-Cards": {
|
|
96
|
+
"height": "100%"
|
|
97
|
+
},
|
|
98
|
+
".antd-Service.steedos-object-table .antd-Crud .antd-Cards .antd-Cards-toolbar": {
|
|
99
|
+
"padding-top": "0.5rem",
|
|
100
|
+
"padding-bottom": "0.5rem",
|
|
101
|
+
"padding-left": "1rem",
|
|
102
|
+
"padding-right": "1rem",
|
|
103
|
+
"--tw-bg-opacity": "1",
|
|
104
|
+
"background-color": "rgb(243 244 246 / var(--tw-bg-opacity))",
|
|
105
|
+
"--tw-border-opacity": "1",
|
|
106
|
+
"border-color": "rgb(209 213 219 / var(--tw-border-opacity))",
|
|
107
|
+
"border-style": "solid",
|
|
108
|
+
"border-bottom-width": "1px"
|
|
109
|
+
},
|
|
110
|
+
".antd-Service.steedos-object-table .antd-Crud .antd-Cards .antd-Cards-body": {
|
|
111
|
+
"margin": "0.25rem"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-package-registry",
|
|
3
|
-
"version": "2.5.15-beta.
|
|
3
|
+
"version": "2.5.15-beta.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "package.service.js",
|
|
6
6
|
"scripts": {
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"author": "",
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@steedos/auth": "2.5.15-beta.
|
|
13
|
-
"@steedos/core": "2.5.15-beta.
|
|
14
|
-
"@steedos/metadata-core": "2.5.15-beta.
|
|
15
|
-
"@steedos/objectql": "2.5.15-beta.
|
|
16
|
-
"@steedos/service-package-loader": "2.5.15-beta.
|
|
12
|
+
"@steedos/auth": "2.5.15-beta.4",
|
|
13
|
+
"@steedos/core": "2.5.15-beta.4",
|
|
14
|
+
"@steedos/metadata-core": "2.5.15-beta.4",
|
|
15
|
+
"@steedos/objectql": "2.5.15-beta.4",
|
|
16
|
+
"@steedos/service-package-loader": "2.5.15-beta.4",
|
|
17
17
|
"fs-extra": "8.1.0",
|
|
18
18
|
"i18next": "20.3.2",
|
|
19
19
|
"json-stringify-safe": "5.0.1",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "b1b100489dfd0d18bbf07322b2da7142cfb92db9"
|
|
35
35
|
}
|