From 8c8ae9cce8c0f992fe6701a203a55870772808d8 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 11 Nov 2024 04:31:53 +0200 Subject: Added Radio --- src/js/url-generators.js | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'src/js/url-generators.js') 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 -- cgit v1.2.3