@steedos/service-package-registry 2.5.17-beta.1 → 2.5.17-beta.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/main/default/manager/loader.js +2 -2
- package/main/default/objects/steedos_packages/listviews/all.listview.yml +1 -18
- package/main/default/objects/steedos_packages/listviews/custom.listview.yml +0 -17
- package/main/default/objects/steedos_packages/listviews/system.listview.yml +0 -17
- package/main/default/pages/steedos_package_detail.page.amis.json +6 -5
- package/main/default/pages/steedos_packages_list.page.amis.json +23 -15
- package/package.json +7 -7
|
@@ -13,8 +13,8 @@ const metaDataCore = require('@steedos/metadata-core');
|
|
|
13
13
|
|
|
14
14
|
const getPackageYmlData = (packagePath)=>{
|
|
15
15
|
let packageYmlData = {};
|
|
16
|
-
if(fs.existsSync(path.join(packagePath, '
|
|
17
|
-
packageYmlData = metaDataCore.loadFile(path.join(packagePath, '
|
|
16
|
+
if(fs.existsSync(path.join(packagePath, 'package.service.yml'))){
|
|
17
|
+
packageYmlData = metaDataCore.loadFile(path.join(packagePath, 'package.service.yml'));
|
|
18
18
|
}
|
|
19
19
|
if(fs.existsSync(path.join(packagePath, 'README.md'))){
|
|
20
20
|
packageYmlData.readme = metaDataCore.loadFile(path.join(packagePath, 'README.md'));
|
|
@@ -14,21 +14,4 @@ label: 所有软件包
|
|
|
14
14
|
scrolling_mode: standard
|
|
15
15
|
shared: true
|
|
16
16
|
show_count: false
|
|
17
|
-
type: grid
|
|
18
|
-
adaptor: |
|
|
19
|
-
if(payload.data.rows.length){
|
|
20
|
-
payload.data.rows.forEach(function(row){
|
|
21
|
-
if(row.icon){
|
|
22
|
-
if(!/^http(s?):\/\//.test(row.icon)){
|
|
23
|
-
var iconCategory = "standard";
|
|
24
|
-
var iconName = row.icon;
|
|
25
|
-
var tags = row.icon.split(".");
|
|
26
|
-
if(tags.length > 1){
|
|
27
|
-
iconCategory = tags[0];
|
|
28
|
-
iconName = tags[1];
|
|
29
|
-
}
|
|
30
|
-
row.icon = "https://unpkg.steedos.cn/@salesforce-ux/design-system@2.22.0/assets/icons/" + iconCategory + "/" + iconName + "_120.png";
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
}
|
|
17
|
+
type: grid
|
|
@@ -6,20 +6,3 @@ shared: true
|
|
|
6
6
|
show_count: false
|
|
7
7
|
type: grid
|
|
8
8
|
filters: [["static","!=", true]]
|
|
9
|
-
adaptor: |
|
|
10
|
-
if(payload.data.rows.length){
|
|
11
|
-
payload.data.rows.forEach(function(row){
|
|
12
|
-
if(row.icon){
|
|
13
|
-
if(!/^http(s?):\/\//.test(row.icon)){
|
|
14
|
-
var iconCategory = "standard";
|
|
15
|
-
var iconName = row.icon;
|
|
16
|
-
var tags = row.icon.split(".");
|
|
17
|
-
if(tags.length > 1){
|
|
18
|
-
iconCategory = tags[0];
|
|
19
|
-
iconName = tags[1];
|
|
20
|
-
}
|
|
21
|
-
row.icon = "https://unpkg.steedos.cn/@salesforce-ux/design-system@2.22.0/assets/icons/" + iconCategory + "/" + iconName + "_120.png";
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}
|
|
@@ -6,20 +6,3 @@ shared: true
|
|
|
6
6
|
show_count: false
|
|
7
7
|
type: grid
|
|
8
8
|
filters: [["static","=", true]]
|
|
9
|
-
adaptor: |
|
|
10
|
-
if(payload.data.rows.length){
|
|
11
|
-
payload.data.rows.forEach(function(row){
|
|
12
|
-
if(row.icon){
|
|
13
|
-
if(!/^http(s?):\/\//.test(row.icon)){
|
|
14
|
-
var iconCategory = "standard";
|
|
15
|
-
var iconName = row.icon;
|
|
16
|
-
var tags = row.icon.split(".");
|
|
17
|
-
if(tags.length > 1){
|
|
18
|
-
iconCategory = tags[0];
|
|
19
|
-
iconName = tags[1];
|
|
20
|
-
}
|
|
21
|
-
row.icon = "https://unpkg.steedos.cn/@salesforce-ux/design-system@2.22.0/assets/icons/" + iconCategory + "/" + iconName + "_120.png";
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
"objectApiName": "${objectName}",
|
|
11
11
|
"recordId": "${recordId}",
|
|
12
12
|
"id": "u:9d9bc707bfd2",
|
|
13
|
-
"schemaFilter": "config.body[0].body[0].columns[0].body[0].columns[1].body[0].tpl='\\${name}'; config.body[0].body[0].columns[0].body[0].columns[0].body[1]={type: 'container', hiddenOn: '\\${!
|
|
13
|
+
"schemaFilter": "config.body[0].body[0].columns[0].body[0].columns[1].body[0].tpl='\\${name}'; config.body[0].body[0].columns[0].body[0].columns[0].body[1]={type: 'container', hiddenOn: '\\${!record}', body: [{className: 'w-9 h-9 rounded', type:'steedos-icon',name: '\\${record.icon || \"default\"}', colorVariant:'base', hiddenOn: '\\${!record}', height:'2.25rem', width:'2.25rem'}]};config.body[0].body[0].columns[0].body[0].columns[1].body[1] = Object.assign({}, config.body[0].body[0].columns[0].body[0].columns[1].body[1], {type: 'tag', label: '\\${record.version}', displayMode: 'status', color: '\\${record.status == \"enable\" ? \"active\" : record.status == \"starting\" ? \"processing\" : \"inactive\"}',className: 'package-status p-0', style: {background: 'transparent'}}); "
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"type": "tabs",
|
|
17
17
|
"className": "sm:mt-3 bg-white sm:rounded sm:border border-gray-300 p-4",
|
|
18
18
|
"tabs": [
|
|
19
19
|
{
|
|
20
|
-
"title": "
|
|
20
|
+
"title": "简介",
|
|
21
21
|
"body": [
|
|
22
22
|
{
|
|
23
23
|
"type": "markdown",
|
|
@@ -52,7 +52,8 @@
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
]
|
|
55
|
+
],
|
|
56
|
+
"className": "p-0"
|
|
56
57
|
},
|
|
57
58
|
{
|
|
58
59
|
"title": "详细信息",
|
|
@@ -71,7 +72,7 @@
|
|
|
71
72
|
]
|
|
72
73
|
}
|
|
73
74
|
],
|
|
74
|
-
"className": "
|
|
75
|
+
"className": "p-0",
|
|
75
76
|
"id": "u:5d4e7e3f6ecc"
|
|
76
77
|
}
|
|
77
78
|
],
|
|
@@ -97,13 +98,13 @@
|
|
|
97
98
|
"className": "object-detail-page"
|
|
98
99
|
}
|
|
99
100
|
],
|
|
100
|
-
"id": "u:81b404eac916",
|
|
101
101
|
"regions": [
|
|
102
102
|
"body"
|
|
103
103
|
],
|
|
104
104
|
"data": {
|
|
105
105
|
"context": {}
|
|
106
106
|
},
|
|
107
|
+
"id": "u:81b404eac916",
|
|
107
108
|
"bodyClassName": "p-0",
|
|
108
109
|
"css": {
|
|
109
110
|
".antd-Tag--prev": {
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"showHeader": true,
|
|
10
10
|
"className": "sm:border sm:rounded sm:border-gray-300 mb-4",
|
|
11
11
|
"id": "u:70d5861033de",
|
|
12
|
+
"crudMode": "cards",
|
|
12
13
|
"crud": {
|
|
13
14
|
"columnsCount": 4,
|
|
14
15
|
"id": "u:553974f9435b",
|
|
@@ -21,23 +22,18 @@
|
|
|
21
22
|
"actionType": "link",
|
|
22
23
|
"link": "/app/admin/steedos_packages/view/${_id}"
|
|
23
24
|
},
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"className": "bg-white",
|
|
32
|
-
"title": "${label}",
|
|
33
|
-
"subTitle": "${description}",
|
|
34
|
-
"subTitlePlaceholder": "--",
|
|
35
|
-
"description": "<span class=\"bg-${status === 'enable' ? 'green': 'gray'}-300 border rounded-full px-2 py-0.5 mt-2 inline-block\">$_display.status</span><span class='text-gray-600 px-2 py-0.5 mt-2 inline-block float-right'>${version}</span>"
|
|
36
|
-
},
|
|
25
|
+
"useCardLabel": false,
|
|
26
|
+
"body": [
|
|
27
|
+
{
|
|
28
|
+
"type": "tpl",
|
|
29
|
+
"tpl": "<div class='antd-Card-heading bg-white'><span class='antd-Card-avtar pull-left thumb-md m-r slds-icon slds-icon_container slds-icon-${iconCategory}-${iconName}'><img class='antd-Card-img'src='${icon}' /></span><div class='antd-Card-meta'><div class='antd-Card-title'><span class='antd-TplField'><span>${label}</span></span></div><div class='antd-Card-subTitle'><span class='antd-TplField'><span>${description}</span></span></div><div class='antd-Card-desc'><span class='antd-TplField'><span><span class='bg-green-300 rounded-full px-2 py-0.5 mt-2 inline-block'>${_display.status}</span><span class='text-gray-600 px-2 py-0.5 mt-2 inline-block float-right'>${version}</span></span></span></div></div></div>"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
37
32
|
"actions": [
|
|
38
33
|
{
|
|
39
34
|
"label": "${uiSchema.actions.enable.label}",
|
|
40
35
|
"disabledOn": "${status === 'enable'}",
|
|
36
|
+
"className": "mr-4",
|
|
41
37
|
"onEvent": {
|
|
42
38
|
"click": {
|
|
43
39
|
"actions": [
|
|
@@ -63,13 +59,15 @@
|
|
|
63
59
|
]
|
|
64
60
|
}
|
|
65
61
|
},
|
|
66
|
-
"id": "u:7e1db04924da"
|
|
62
|
+
"id": "u:7e1db04924da",
|
|
63
|
+
"className": "mr-4"
|
|
67
64
|
}
|
|
68
65
|
],
|
|
69
66
|
"type": "card",
|
|
70
67
|
"id": "u:2bb7748ac402"
|
|
71
68
|
}
|
|
72
|
-
}
|
|
69
|
+
},
|
|
70
|
+
"adaptor": "if (payload.data.rows.length) {\n var unpkgUrl = window.Builder && window.Builder.settings.unpkgUrl || \"\";\n payload.data.rows.forEach(function (row) {\n if (!row.icon) {\n row.icon = \"standard.default\";\n }\n if (row.icon) {\n if (!/^http(s?):\\/\\//.test(row.icon)) {\n var iconCategory = \"standard\";\n var iconName = row.icon;\n var tags = row.icon.split(\".\");\n if (tags.length > 1) {\n iconCategory = tags[0];\n iconName = tags[1];\n }\n row.iconCategory = iconCategory;\n row.iconName = iconName;\n row.icon = unpkgUrl + \"/@salesforce-ux/design-system@2.22.0/assets/icons/\" + iconCategory + \"/\" + iconName.replace(\"-\", \"_\") + \"_120.png\";\n }\n }\n });\n}\nreturn payload;"
|
|
73
71
|
}
|
|
74
72
|
],
|
|
75
73
|
"regions": [
|
|
@@ -131,6 +129,16 @@
|
|
|
131
129
|
"-webkit-line-clamp": "1",
|
|
132
130
|
"max-height": "calc(var(--fontSizeBase) * var(--lineHeightBase) * 1)",
|
|
133
131
|
"min-height": "calc(var(--fontSizeBase) * var(--lineHeightBase) * 1)"
|
|
132
|
+
},
|
|
133
|
+
".steedos-object-table.steedos-crud-mode-cards .antd-Crud .antd-Cards .antd-Cards-body .antd-Card .antd-Card-body": {
|
|
134
|
+
"padding-left": "0px",
|
|
135
|
+
"padding-right": "0px",
|
|
136
|
+
"padding-top": "0px",
|
|
137
|
+
"margin-top": "0px",
|
|
138
|
+
"padding-bottom": "0px"
|
|
139
|
+
},
|
|
140
|
+
".steedos-object-table.steedos-crud-mode-cards .antd-Crud .antd-Cards .antd-Cards-body .antd-Card": {
|
|
141
|
+
"padding-top": "2px"
|
|
134
142
|
}
|
|
135
143
|
}
|
|
136
144
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-package-registry",
|
|
3
|
-
"version": "2.5.17-beta.
|
|
3
|
+
"version": "2.5.17-beta.10",
|
|
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.17-beta.
|
|
13
|
-
"@steedos/core": "2.5.17-beta.
|
|
14
|
-
"@steedos/metadata-core": "2.5.17-beta.
|
|
15
|
-
"@steedos/objectql": "2.5.17-beta.
|
|
16
|
-
"@steedos/service-package-loader": "2.5.17-beta.
|
|
12
|
+
"@steedos/auth": "2.5.17-beta.10",
|
|
13
|
+
"@steedos/core": "2.5.17-beta.10",
|
|
14
|
+
"@steedos/metadata-core": "2.5.17-beta.10",
|
|
15
|
+
"@steedos/objectql": "2.5.17-beta.10",
|
|
16
|
+
"@steedos/service-package-loader": "2.5.17-beta.10",
|
|
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": "d4a1c8b4938c6b7853b4890902ec7b9ea60a1a70"
|
|
35
35
|
}
|