mirror of
https://github.com/tcsenpai/obsidiangarden_netlify.git
synced 2025-06-06 20:55:21 +00:00
Fix merge conflicts
This commit is contained in:
commit
949e07318a
@ -77,8 +77,8 @@ function getPermalinkMeta(note, key) {
|
|||||||
if (note.data.hide) {
|
if (note.data.hide) {
|
||||||
hide = note.data.hide;
|
hide = note.data.hide;
|
||||||
}
|
}
|
||||||
if (frontMatter.data.pinned) {
|
if (note.data.pinned) {
|
||||||
pinned = frontMatter.data.pinned;
|
pinned = note.data.pinned;
|
||||||
}
|
}
|
||||||
if (note.data["dg-path"]) {
|
if (note.data["dg-path"]) {
|
||||||
folders = note.data["dg-path"].split("/");
|
folders = note.data["dg-path"].split("/");
|
||||||
|
@ -57,6 +57,7 @@ function getGraph(data) {
|
|||||||
neighbors: new Set(),
|
neighbors: new Set(),
|
||||||
backLinks: new Set(),
|
backLinks: new Set(),
|
||||||
noteIcon: v.data.noteIcon || process.env.NOTE_ICON_DEFAULT,
|
noteIcon: v.data.noteIcon || process.env.NOTE_ICON_DEFAULT,
|
||||||
|
hide: v.data.hideInGraph || false,
|
||||||
};
|
};
|
||||||
stemURLs[fpath] = v.url;
|
stemURLs[fpath] = v.url;
|
||||||
if (
|
if (
|
||||||
|
@ -12,7 +12,9 @@
|
|||||||
const keys = Object.values(existing).map((n) => n.neighbors).flat();
|
const keys = Object.values(existing).map((n) => n.neighbors).flat();
|
||||||
const n_remaining = Object.keys(remaining).reduce((acc, key) => {
|
const n_remaining = Object.keys(remaining).reduce((acc, key) => {
|
||||||
if (keys.indexOf(key) != -1) {
|
if (keys.indexOf(key) != -1) {
|
||||||
existing[key] = remaining[key];
|
if (!remaining[key].hide) {
|
||||||
|
existing[key] = remaining[key];
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
acc[key] = remaining[key];
|
acc[key] = remaining[key];
|
||||||
}
|
}
|
||||||
@ -164,9 +166,10 @@
|
|||||||
window.fullGraph = null;
|
window.fullGraph = null;
|
||||||
function renderFullGraph() {
|
function renderFullGraph() {
|
||||||
if (!window.fullGraph) {
|
if (!window.fullGraph) {
|
||||||
|
const hiddens = Object.values(window.graphData.nodes).filter((n) => n.hide).map((n) => n.id);
|
||||||
const graphData = {
|
const graphData = {
|
||||||
links: JSON.parse(JSON.stringify(window.graphData.links)),
|
links: JSON.parse(JSON.stringify(window.graphData.links)).filter((l) => hiddens.indexOf(l.source) == -1 && hiddens.indexOf(l.target) == -1),
|
||||||
nodes: [...Object.values(window.graphData.nodes)]
|
nodes: [...Object.values(window.graphData.nodes).filter((n) => !n.hide)]
|
||||||
}
|
}
|
||||||
|
|
||||||
let g = document.createElement('div');
|
let g = document.createElement('div');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user