-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature]: 微页面、选项卡元数据支持hidden属性 #6248
- Loading branch information
Showing
3 changed files
with
26 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/* | ||
* @Author: [email protected] | ||
* @Date: 2022-03-28 17:09:20 | ||
* @LastEditors: baozhoutao@steedos.com | ||
* @LastEditTime: 2023-05-30 15:53:12 | ||
* @LastEditors: 孙浩林 sunhaolin@steedos.com | ||
* @LastEditTime: 2024-01-20 17:08:08 | ||
* @Description: | ||
*/ | ||
const objectql = require('@steedos/objectql'); | ||
|
@@ -12,7 +12,12 @@ const _ = require('underscore'); | |
async function getAll(){ | ||
const schema = objectql.getSteedosSchema(); | ||
const configs = await register.registerPage.getAll(schema.broker) | ||
const dataList = _.pluck(configs, 'metadata'); | ||
const dataList = []; | ||
for (const config of configs) { | ||
if (config.metadata && !config.metadata.hidden) { | ||
dataList.push(config.metadata); | ||
} | ||
} | ||
|
||
_.each(dataList, function(item){ | ||
if(!item._id){ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/* | ||
* @Author: [email protected] | ||
* @Date: 2022-08-05 14:17:44 | ||
* @LastEditors: baozhoutao@steedos.com | ||
* @LastEditTime: 2023-05-30 15:07:13 | ||
* @LastEditors: 孙浩林 sunhaolin@steedos.com | ||
* @LastEditTime: 2024-01-20 17:08:17 | ||
* @Description: | ||
*/ | ||
const objectql = require('@steedos/objectql'); | ||
|
@@ -12,7 +12,12 @@ const _ = require('underscore'); | |
async function getAll(){ | ||
const schema = objectql.getSteedosSchema(); | ||
const configs = await register.registerTab.getAll(schema.broker) | ||
const dataList = _.pluck(configs, 'metadata'); | ||
const dataList = []; | ||
for (const config of configs) { | ||
if (config.metadata && !config.metadata.hidden) { | ||
dataList.push(config.metadata); | ||
} | ||
} | ||
|
||
_.each(dataList, function(item){ | ||
if(!item._id){ | ||
|