Skip to content

Commit

Permalink
lnote-1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
shinhwagk committed Feb 28, 2024
1 parent b16c223 commit 1ad96b7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "lnote",
"displayName": "lnote",
"description": "A simple note-taking extension.",
"version": "1.1.3",
"version": "1.1.4",
"icon": "icon.png",
"publisher": "shinhwagk",
"preview": true,
Expand Down
18 changes: 9 additions & 9 deletions web/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -552,19 +552,19 @@ function processNotes() {
for (const n of gs.notes) {
gs.allNotes.set(n.id, n)
n.als.forEach(n => gs.allArrayLabels.add(n));
for (const label of n.als) {
const [g] = label.split(jointMark);
if (gs.allGroupLabels.has(g)) {
gs.allGroupLabels.get(g)?.add(label);
} else {
gs.allGroupLabels.set(g, new Set([label]));
}
}
}

gs.allArrayLabels = new Set([...gs.allArrayLabels].sort())

for (const label of gs.allArrayLabels) {
const [g] = label.split(jointMark);
if (gs.allGroupLabels.has(g)) {
gs.allGroupLabels.get(g)?.add(label);
} else {
gs.allGroupLabels.set(g, new Set([label]));
}
}


// child 哪些不在father中的
// const intersections = (array1:string[], array2:string[]) => array1.filter((e) => array2.indexOf(e) !== -1);

Expand Down

0 comments on commit 1ad96b7

Please sign in to comment.