diff options
author | alyx <alyx@aleteoryx.me> | 2022-06-02 20:58:28 +0000 |
---|---|---|
committer | Aleteoryx <alyx@aleteoryx.me> | 2022-06-02 20:58:28 +0000 |
commit | 8f6fa73cb955b9955abc9c9847f1b44cac541794 (patch) | |
tree | 3f586c5c319b03bfbaab88042fcf152d4fbc389d /grapher | |
parent | 128614a1fa9eaafed8b732775fbaf926e468b577 (diff) | |
download | RRCUtils-8f6fa73cb955b9955abc9c9847f1b44cac541794.tar.gz RRCUtils-8f6fa73cb955b9955abc9c9847f1b44cac541794.tar.bz2 RRCUtils-8f6fa73cb955b9955abc9c9847f1b44cac541794.zip |
Rebranded!
Diffstat (limited to 'grapher')
-rw-r--r-- | grapher/index.html | 6 | ||||
-rw-r--r-- | grapher/script.js | 16 |
2 files changed, 11 insertions, 11 deletions
diff --git a/grapher/index.html b/grapher/index.html index 3c88bad..aa275d2 100644 --- a/grapher/index.html +++ b/grapher/index.html @@ -3,10 +3,10 @@ <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> - <meta name="description" content="A simple utility to help you make CV2 graphs, out-of-game."> + <meta name="description" content="A simple utility to help you make RRC graphs, out-of-game."> <meta name="author" content="recnet/winrg"> <link rel="manifest" href="/pwathings/manifest.json" /> - <title>CV2 Node Graph Generator</title> + <title>RRC Node Graph Generator</title> <link crossorigin href="/oi.css" rel="stylesheet" type="text/css"> <link crossorigin href="style.css" rel="stylesheet" type="text/css" /> <link crossorigin href="/lib/chips.css" rel="stylesheet" type="text/css" /> @@ -17,7 +17,7 @@ <link crossorigin href="/oi.css" rel="preload" as="style"/> <link crossorigin href="/lib/chips.css" rel="preload" as="style"/> <link crossorigin href="style.css" rel="preload" as="style"/> - <link crossorigin href="/circuitsv2.json" rel="preload" as="fetch"/> + <link crossorigin href="/circuits.json" rel="preload" as="fetch"/> <link crossorigin href="https://raw.githubusercontent.com/tyleo-rec/CircuitsV2Resources/master/misc/circuitsv2.json" rel="preload" as="fetch"/> <script crossorigin src="/lib/util.js"></script> diff --git a/grapher/script.js b/grapher/script.js index 67fcfa3..3e3a155 100644 --- a/grapher/script.js +++ b/grapher/script.js @@ -34,7 +34,7 @@ Serialization format: */ -var v2data; +var rrcdata; var graph; var searcher; const rootel = document.documentElement; @@ -137,7 +137,7 @@ function delConnections(el) { function newChip(GUID) { const types = {}; - const typeParams = v2data.Nodes[GUID].NodeDescs[0].ReadonlyTypeParams; + const typeParams = rrcdata.Nodes[GUID].NodeDescs[0].ReadonlyTypeParams; for (const desc of Object.keys(typeParams)) types[desc] = [ `${desc}: ${typeParams[desc]}`, @@ -146,7 +146,7 @@ function newChip(GUID) { const ne = newEl('div', 'chipbox'); const chipcontainer = newEl('div', 'selUI'); - chipcontainer.append(generateChipHTML(v2data.Nodes[GUID].NodeDescs)); + chipcontainer.append(generateChipHTML(rrcdata.Nodes[GUID].NodeDescs)); ne.append(chipcontainer); graph.append(ne); @@ -159,7 +159,7 @@ function newChip(GUID) { el: ne, typeInfo: types, currentOverrides: {}, - nd: v2data.Nodes[GUID].NodeDescs, + nd: rrcdata.Nodes[GUID].NodeDescs, GUID: GUID, }; @@ -287,17 +287,17 @@ async function getPermalink() { }).then(m => m.text()) console.log(ret); linkerp.innerText = "Success! Permalinked at:" - linker.href = `https://cv2.aleteoryx.me/grapher/pl#${ret}` - linker.innerText = `https://cv2.aleteoryx.me/grapher/pl#${ret}` + linker.href = `https://circuits.aleteoryx.me/grapher/pl#${ret}` + linker.innerText = `https://circuits.aleteoryx.me/grapher/pl#${ret}` } window.onload = async function() { graph = document.getElementById("graph"); searcher = document.getElementById("searcher"); - v2data = await fetch(/*"https://raw.githubusercontent.com/tyleo-rec/CircuitsV2Resources/master/misc/circuitsv2.json"/*/"/circuitsv2.json") + rrcdata = await fetch(/*"https://raw.githubusercontent.com/tyleo-rec/CircuitsV2Resources/master/misc/circuitsv2.json"/*/"/circuits.json") .then(res => res.json()); - allTypes.push(...ListAllTypes(v2data.Nodes).sort((a,b) => (a.toLowerCase() > b.toLowerCase()) ? 1 : -1)); + allTypes.push(...ListAllTypes(rrcdata.Nodes).sort((a,b) => (a.toLowerCase() > b.toLowerCase()) ? 1 : -1)); window.onmessage = function({data}) { clean = false |