feat(dnfs): 双下划线标题节点默认隐藏,卡片和 minimap 同步过滤
This commit is contained in:
1 parent
749fcd4cf7
commit
1e4409f8b1
1 file changed
+3
-1
@@ -1047,6 +1047,7 @@ function renderCards(list) {
|
|||||||
recommend_list.replaceChildren();
|
recommend_list.replaceChildren();
|
||||||
for (let i in list) {
|
for (let i in list) {
|
||||||
let item = list[i]
|
let item = list[i]
|
||||||
|
if (item.title && typeof item.title === 'string' && item.title.indexOf('__') === 0) continue;
|
||||||
console.log(item)
|
console.log(item)
|
||||||
let card = document.createElement('div');
|
let card = document.createElement('div');
|
||||||
card.className = "card";
|
card.className = "card";
|
||||||
@@ -1230,8 +1231,9 @@ function loadMap(children_json) {
|
|||||||
}
|
}
|
||||||
for (let i in children_json) {
|
for (let i in children_json) {
|
||||||
let item = children_json[i];
|
let item = children_json[i];
|
||||||
let tag = document.createElement("div");
|
|
||||||
let title = item.title;
|
let title = item.title;
|
||||||
|
if (title && typeof title === 'string' && title.indexOf('__') === 0) continue;
|
||||||
|
let tag = document.createElement("div");
|
||||||
tag.className = "tag";
|
tag.className = "tag";
|
||||||
tag.textContent = title;
|
tag.textContent = title;
|
||||||
tag.addEventListener("click", () => {
|
tag.addEventListener("click", () => {
|
||||||
|
|||||||
Reference in new issue
Block a user