@steedos/standard-ui 2.5.3-beta.2 → 2.5.3-beta.20
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/objectTranslations/apps.en/apps.en.objectTranslation.yml +4 -4
- package/main/default/objectTranslations/tabs.en/tabs.en.objectTranslation.yml +1 -1
- package/main/default/objects/apps.object.yml +3 -2
- package/main/default/triggers/tabs_metadata.trigger.js +10 -2
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
name: apps
|
|
2
|
-
label:
|
|
2
|
+
label: Apps
|
|
3
3
|
description:
|
|
4
4
|
fields:
|
|
5
5
|
name:
|
|
@@ -7,7 +7,7 @@ fields:
|
|
|
7
7
|
help:
|
|
8
8
|
description:
|
|
9
9
|
code:
|
|
10
|
-
label: API Name
|
|
10
|
+
label: API Name
|
|
11
11
|
help:
|
|
12
12
|
description:
|
|
13
13
|
icon_slds:
|
|
@@ -47,11 +47,11 @@ fields:
|
|
|
47
47
|
help:
|
|
48
48
|
description:
|
|
49
49
|
is_creator:
|
|
50
|
-
label: Show this app
|
|
50
|
+
label: Show this app on Desktop
|
|
51
51
|
help:
|
|
52
52
|
description:
|
|
53
53
|
mobile:
|
|
54
|
-
label: Show this app
|
|
54
|
+
label: Show this app on Mobile
|
|
55
55
|
help:
|
|
56
56
|
description:
|
|
57
57
|
members:
|
|
@@ -12,6 +12,7 @@ fields:
|
|
|
12
12
|
inlineHelpText: ''
|
|
13
13
|
required: true
|
|
14
14
|
searchable: true
|
|
15
|
+
filterable: true
|
|
15
16
|
index: true
|
|
16
17
|
code:
|
|
17
18
|
label: API Name
|
|
@@ -97,7 +98,7 @@ fields:
|
|
|
97
98
|
function () {
|
|
98
99
|
return Steedos.getObjectsOptions()
|
|
99
100
|
}
|
|
100
|
-
filterable: true
|
|
101
|
+
# filterable: true
|
|
101
102
|
mobile_objects:
|
|
102
103
|
label: Mobile Menus(Invalid)
|
|
103
104
|
type: lookup
|
|
@@ -107,7 +108,7 @@ fields:
|
|
|
107
108
|
function () {
|
|
108
109
|
return Steedos.getObjectsOptions()
|
|
109
110
|
}
|
|
110
|
-
filterable: true
|
|
111
|
+
# filterable: true
|
|
111
112
|
is_creator:
|
|
112
113
|
type: boolean
|
|
113
114
|
label: Show this app for Desktop
|
|
@@ -1,9 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: baozhoutao@steedos.com
|
|
3
|
+
* @Date: 2022-08-05 14:17:44
|
|
4
|
+
* @LastEditors: baozhoutao@steedos.com
|
|
5
|
+
* @LastEditTime: 2023-05-30 15:07:13
|
|
6
|
+
* @Description:
|
|
7
|
+
*/
|
|
1
8
|
const objectql = require('@steedos/objectql');
|
|
9
|
+
const register = require('@steedos/metadata-registrar');
|
|
2
10
|
const auth = require('@steedos/auth');
|
|
3
11
|
const _ = require('underscore');
|
|
4
12
|
async function getAll(){
|
|
5
13
|
const schema = objectql.getSteedosSchema();
|
|
6
|
-
const configs = await
|
|
14
|
+
const configs = await register.registerTab.getAll(schema.broker)
|
|
7
15
|
const dataList = _.pluck(configs, 'metadata');
|
|
8
16
|
|
|
9
17
|
_.each(dataList, function(item){
|
|
@@ -16,7 +24,7 @@ async function getAll(){
|
|
|
16
24
|
|
|
17
25
|
async function get(apiName){
|
|
18
26
|
const schema =objectql.getSteedosSchema();
|
|
19
|
-
const config = await
|
|
27
|
+
const config = await register.registerTab.get(schema.broker, apiName)
|
|
20
28
|
return config ? config.metadata : null;
|
|
21
29
|
}
|
|
22
30
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-ui",
|
|
3
|
-
"version": "2.5.3-beta.
|
|
3
|
+
"version": "2.5.3-beta.20",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
"description": "steedos package",
|
|
13
13
|
"repository": {},
|
|
14
14
|
"license": "MIT",
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "32606d2d07b6e53a4d6c8ba079e6356f5a2dbb75"
|
|
16
16
|
}
|