aboutsummaryrefslogtreecommitdiff
path: root/src/js/url-generators.js
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-11-13 20:25:55 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-11-13 20:25:55 +0200
commit819fb9ca5082175f4afc595766e75dd2f045395b (patch)
treeed5bbfc6babf3fc4aa5035e9280914a6439d3f2f /src/js/url-generators.js
parent22bdc082a3fb26144f861732a971e091718a215f (diff)
downloadarching-kaos-web-ui-origin/HEAD.tar.gz
arching-kaos-web-ui-origin/HEAD.tar.bz2
arching-kaos-web-ui-origin/HEAD.zip
Style update, refactoring with generator usage, bugfixesHEADorigin/masterorigin/HEADmaster
Diffstat (limited to 'src/js/url-generators.js')
-rw-r--r--src/js/url-generators.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/js/url-generators.js b/src/js/url-generators.js
index 6158b6f..d0739dc 100644
--- a/src/js/url-generators.js
+++ b/src/js/url-generators.js
@@ -9,33 +9,33 @@
* URL generators
*
* This file contains functions that generate URL
- * based on the activeSettings.
+ * based on the settings.
*
* Apparently, we need `arching-kaos-web-ui-settings` to be loaded first
*
*/
function getIPNSURL(ipnsKey){
- return activeSettings.ipfs.gateway.list[activeSettings.ipfs.gateway.active]+'ipns/'+ipnsKey;
+ return settings.ipfs.gateway.list[settings.ipfs.gateway.active]+'ipns/'+ipnsKey;
}
function getIPFSURL(ipfsHash){
- return activeSettings.ipfs.gateway.list[activeSettings.ipfs.gateway.active]+'ipfs/'+ipfsHash;
+ return settings.ipfs.gateway.list[settings.ipfs.gateway.active]+'ipfs/'+ipfsHash;
}
function getHoldersOfActiveAssetURL(){
- return activeSettings.stellar.horizon.list[activeSettings.stellar.horizon.active]+
+ return settings.stellar.horizon.list[settings.stellar.horizon.active]+
'accounts?asset='+
- activeSettings.stellar.asset.list[activeSettings.stellar.asset.active].code+
+ settings.stellar.asset.list[settings.stellar.asset.active].code+
':'+
- activeSettings.stellar.asset.list[activeSettings.stellar.asset.active].issuer+
+ settings.stellar.asset.list[settings.stellar.asset.active].issuer+
'&limit=200';
}
function getTrustlinesURL(code=null, issuer=null){
- 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]+
+ var code = (code === null)? settings.stellar.asset.list[settings.stellar.asset.active].code : code;
+ var issuer = (issuer === null) ? settings.stellar.asset.list[settings.stellar.asset.active].issuer : issuer;
+ return settings.stellar.horizon.list[settings.stellar.horizon.active]+
'assets?asset_code='+code+
'&asset_issuer='+issuer;
}