diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-03-04 09:24:18 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-03-04 09:24:18 +0200 |
commit | 42e81fb145ee9b8c120b6f1edb07f466e242c36f (patch) | |
tree | 2f7d12504edfc1fcff2c2bc8784fc971caccef76 /src/js/arching-kaos-tools.js | |
parent | 5161a266155f9c5602f1d70bbbd7a82007a0ab3b (diff) | |
download | arching-kaos-web-ui-42e81fb145ee9b8c120b6f1edb07f466e242c36f.tar.gz arching-kaos-web-ui-42e81fb145ee9b8c120b6f1edb07f466e242c36f.tar.bz2 arching-kaos-web-ui-42e81fb145ee9b8c120b6f1edb07f466e242c36f.zip |
Following the changes to the API
Diffstat (limited to 'src/js/arching-kaos-tools.js')
-rw-r--r-- | src/js/arching-kaos-tools.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/js/arching-kaos-tools.js b/src/js/arching-kaos-tools.js index fc1fe23..904f21f 100644 --- a/src/js/arching-kaos-tools.js +++ b/src/js/arching-kaos-tools.js @@ -18,7 +18,7 @@ function renderStellarAddressPlaceholder(stellarAddress){ return divs; } -function akidRender(json, stellarAddress){ +function nodeInfoRender(json, stellarAddress){ var divs = renderStellarAddressPlaceholder(stellarAddress); for( key in Object.keys(json) ){ if ( typeof(json[Object.keys(json)[key]]) === "string" ) { @@ -30,13 +30,13 @@ function akidRender(json, stellarAddress){ } } else if ( typeof(json[Object.keys(json)[key]]) === "Object"||"Array" ) { - akidRender(json[Object.keys(json)[key]], stellarAddress); + nodeInfoRender(json[Object.keys(json)[key]], stellarAddress); } } } -function akidRenderAndProceed(json, stellarAddress){ - akidRender(json, stellarAddress); +function nodeInfoRenderAndProceed(json, stellarAddress){ + nodeInfoRender(json, stellarAddress); participants[stellarAddress]=json; if ( stellarParticipantsScanned === 0 ) { archingKaosLog('END'); @@ -147,10 +147,10 @@ function getNicknameAssossiatedWithGPG(gpgIPFSHash){ } } -function getConfiguration(akidIPNSLink,stellarAddress){ +function getConfiguration(nodeInfoIPNSLink,stellarAddress){ progressPlaceholder.max++; archingKaosLog("Parsing the configuration...") - archingKaosFetchJSON(getIPNSURL(akidIPNSLink), akidRenderAndProceed, stellarAddress) + archingKaosFetchJSON(getIPNSURL(nodeInfoIPNSLink), nodeInfoRenderAndProceed, stellarAddress) } function zseek(zchainIPNSLink,stellarAddress,j){ @@ -255,10 +255,10 @@ function getNicknameAssossiatedWithGPG(gpgIPFSHash){ return gpgIPFSHash; } -function getConfiguration(akidIPNSLink,stellarAddress){ +function getConfiguration(nodeInfoIPNSLink,stellarAddress){ progressPlaceholder.max++; archingKaosLog("Parsing the configuration...") - archingKaosFetchJSON(getIPNSURL(akidIPNSLink), akidRenderAndProceed, stellarAddress) + archingKaosFetchJSON(getIPNSURL(nodeInfoIPNSLink), nodeInfoRenderAndProceed, stellarAddress) } function zseek(zchainIPNSLink,stellarAddress,j){ @@ -496,7 +496,7 @@ function checkIfChainAndProceed(json){ async function ringlocalbell(){ archingKaosLog("Ringing local bell..."); - var url=activeSettings.localAPI+'/v0/akid'; + var url=activeSettings.localAPI+'/v0/node_info'; archingKaosFetchJSON(url, checkIfChainAndProceed); archingKaosLog("Ringing local bell... Done!"); } |