mirror of
https://github.com/falsycat/ar.falsy.cat.git
synced 2024-09-03 04:34:52 +00:00
Merge
This commit is contained in:
commit
771ebd8031
@ -1,5 +1,4 @@
|
|||||||
async function drawGraph(
|
async function drawGraph(
|
||||||
url,
|
|
||||||
baseUrl,
|
baseUrl,
|
||||||
pathColors,
|
pathColors,
|
||||||
depth,
|
depth,
|
||||||
@ -10,7 +9,7 @@ async function drawGraph(
|
|||||||
const container = document.getElementById('graph-container')
|
const container = document.getElementById('graph-container')
|
||||||
|
|
||||||
const { index, links, content } = await fetchData
|
const { index, links, content } = await fetchData
|
||||||
const curPage = url.replace(baseUrl, '')
|
const curPage = window.location.href.replace(baseUrl, "").replace(/\/$/g, "")
|
||||||
|
|
||||||
const parseIdsFromLinks = (links) => [
|
const parseIdsFromLinks = (links) => [
|
||||||
...new Set(links.flatMap((link) => [link.source, link.target])),
|
...new Set(links.flatMap((link) => [link.source, link.target])),
|
||||||
|
Loading…
Reference in New Issue
Block a user