diff --git a/www/js/config.js b/www/js/config.js index 166c63d8e92d863bd5f96caefb911acffe21a5d1..7b80d11dc2cbcfae6612e34b19e6e95f6ac59a95 100644 --- a/www/js/config.js +++ b/www/js/config.js @@ -12,38 +12,78 @@ angular.module("cesium.config", []) "cacheTimeMs": 300000, "fallbackLanguage": "en", "rememberMe": true, - "timeout": 300000, + "showUDHistory": true, + "timeout": 40000, "timeWarningExpireMembership": 5184000, "timeWarningExpire": 7776000, + "keepAuthIdle": 600, "useLocalStorage": true, "useRelative": false, - "expertMode": true, + "expertMode": false, "decimalCount": 2, + "httpsMode": false, "shareBaseUrl": "https://g1.duniter.fr", "helptip": { - "enable": false, + "enable": true, "installDocUrl": { "fr-FR": "https://duniter.org/fr/wiki/duniter/installer/", - "en": "https://github.com/duniter/duniter/blob/master/doc/install-a-node.md" + "en": "https://duniter.org/en/wiki/duniter/install/" } }, + "license": { + "en": "license/license_g1-en", + "fr-FR": "license/license_g1-fr-FR", + "es-ES": "license/license_g1-es-ES" + }, "node": { - "host": "g1-test.duniter.org", + "host": "g1.duniter.org", "port": 443 }, "fallbackNodes": [ { - "host": "g1-test.cgeek.fr", + "host": "g1.nordstrom.duniter.org", + "port": 443 + }, + { + "host": "g1.cgeek.fr", + "port": 443 + }, + { + "host": "g1.monnaielibreoccitanie.org", + "port": 443 + }, + { + "host": "g1.le-sou.org", + "port": 443 + }, + { + "host": "g1.duniter.fr", "port": 443 } ], + "developers": [ + { + "name": "Benoit Lavenier", + "pubkey": "38MEAZN68Pz1DTvT3tqgxx4yQP6snJCQhPqEFxbDk4aE" + } + ], "plugins": { "es": { "enable": true, "askEnable": true, "useRemoteStorage": true, - "host": "g1-test.data.duniter.fr", + "host": "g1.data.duniter.fr", "port": 443, + "fallbackNodes": [ + { + "host": "g1.data.le-sou.org", + "port": 443 + }, + { + "host": "g1.data.duniter.fr", + "port": 443 + } + ], "notifications": { "txSent": true, "txReceived": true, @@ -54,7 +94,7 @@ angular.module("cesium.config", []) } }, "version": "1.4.12", - "build": "2019-12-19T14:53:37.759Z", + "build": "2019-12-23T16:20:00.370Z", "newIssueUrl": "https://git.duniter.org/clients/cesium-grp/cesium/issues/new" }) diff --git a/www/js/services/wot-services.js b/www/js/services/wot-services.js index 36de50d02197a075c13f6630fa26323d0410c85a..f3bc1e3e008af25e7399a661d5fcbbcd5cfe1db7 100644 --- a/www/js/services/wot-services.js +++ b/www/js/services/wot-services.js @@ -1190,7 +1190,7 @@ angular.module('cesium.wot.services', ['ngApi', 'cesium.bma.services', 'cesium.c api.registerEvent('data', 'search'); // Listen if node changed - BMA.api.node.on.restart($rootScope, cleanCache, this); + BMA.api.node.on.stop($rootScope, cleanCache, this); return { id: id, diff --git a/www/plugins/es/js/services/wot-services.js b/www/plugins/es/js/services/wot-services.js index 567aab083208ff17ebb916313dda019e61d5aeea..5a82bbdbb56aa08120523f52f6d91057054e8cd7 100644 --- a/www/plugins/es/js/services/wot-services.js +++ b/www/plugins/es/js/services/wot-services.js @@ -74,8 +74,16 @@ angular.module('cesium.es.wot.services', ['ngResource', 'cesium.es.http.services return result; }); + }, + + cleanCache = function() { + console.debug('[ES] [wot] Clean cache...'); + csCache.clear(cachePrefix); }; + // Listen if node changed + esHttp.api.node.on.stop($rootScope, cleanCache, this); + return { memberships: loadMemberships };