@steedos/standard-ui 2.5.3-beta.2 → 2.5.3-beta.5
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.
|
@@ -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.5",
|
|
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": "c6817f6816ad44017068d161cf69605e18ff5270"
|
|
16
16
|
}
|