aboutsummaryrefslogtreecommitdiff
path: root/src/js/url-generators.js
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-11-11 04:31:53 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-11-11 04:31:53 +0200
commit8c8ae9cce8c0f992fe6701a203a55870772808d8 (patch)
treed8b157f5ac42995f1dbd6b5ae5bd1ed65a5df748 /src/js/url-generators.js
parent6218656716dafccbdd8fb905d027471dfaf046db (diff)
downloadarching-kaos-web-ui-8c8ae9cce8c0f992fe6701a203a55870772808d8.tar.gz
arching-kaos-web-ui-8c8ae9cce8c0f992fe6701a203a55870772808d8.tar.bz2
arching-kaos-web-ui-8c8ae9cce8c0f992fe6701a203a55870772808d8.zip
Added Radio
Diffstat (limited to 'src/js/url-generators.js')
-rw-r--r--src/js/url-generators.js24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/js/url-generators.js b/src/js/url-generators.js
index c950f1e..6158b6f 100644
--- a/src/js/url-generators.js
+++ b/src/js/url-generators.js
@@ -1,3 +1,10 @@
+/* Arching Kaos URL Generators
+ *
+ * Kaotisk Hund - 2024
+ *
+ * @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL v3.0
+ *
+ */
/*
* URL generators
*
@@ -9,28 +16,29 @@
*/
function getIPNSURL(ipnsKey){
- return activeSettings.ipfsGatewayAddress[activeSettings.ipfsSelectedGatewayAddress]+'ipns/'+ipnsKey;
+ return activeSettings.ipfs.gateway.list[activeSettings.ipfs.gateway.active]+'ipns/'+ipnsKey;
}
function getIPFSURL(ipfsHash){
- return activeSettings.ipfsGatewayAddress[activeSettings.ipfsSelectedGatewayAddress]+'ipfs/'+ipfsHash;
+ return activeSettings.ipfs.gateway.list[activeSettings.ipfs.gateway.active]+'ipfs/'+ipfsHash;
}
function getHoldersOfActiveAssetURL(){
- return activeSettings.horizonAddresses[activeSettings.horizonSelectedAddress]+
+ return activeSettings.stellar.horizon.list[activeSettings.stellar.horizon.active]+
'accounts?asset='+
- activeSettings.stellarAssetsForScanning[activeSettings.stellarDefaultAsset].code+
+ activeSettings.stellar.asset.list[activeSettings.stellar.asset.active].code+
':'+
- activeSettings.stellarAssetsForScanning[activeSettings.stellarDefaultAsset].issuer+
+ activeSettings.stellar.asset.list[activeSettings.stellar.asset.active].issuer+
'&limit=200';
}
function getTrustlinesURL(code=null, issuer=null){
- var code = (code === null)? activeSettings.stellarAssetsForScanning[activeSettings.stellarDefaultAsset].code : code;
- var issuer = (issuer === null) ? activeSettings.stellarAssetsForScanning[activeSettings.stellarDefaultAsset].issuer : issuer;
- return activeSettings.horizonAddresses[activeSettings.horizonSelectedAddress]+
+ var code = (code === null)? activeSettings.stellar.asset.list[activeSettings.stellar.asset.active].code : code;
+ var issuer = (issuer === null) ? activeSettings.stellar.asset.list[activeSettings.stellar.asset.active].issuer : issuer;
+ return activeSettings.stellar.horizon.list[activeSettings.stellar.horizon.active]+
'assets?asset_code='+code+
'&asset_issuer='+issuer;
}
// vim: tabstop=4 shiftwidth=4 expandtab softtabstop=4
+// @license-end