From e094544d451701179ceba7b0914b247f1cb46376 Mon Sep 17 00:00:00 2001 From: blavenie <benoit.lavenier@e-is.pro> Date: Wed, 31 May 2017 09:54:21 +0200 Subject: [PATCH] [fix] hide chart on ubuntu build - fix #463 [fix] disable RML9 plugin by default [enh] complete RML9 tuto --- doc/fr/development_tutorial-04-add_plugin.md | 21 ++++++--- www/index.html | 2 +- www/js/config.js | 45 +++++++++++++------- www/js/plugins.js | 10 +++-- 4 files changed, 51 insertions(+), 27 deletions(-) diff --git a/doc/fr/development_tutorial-04-add_plugin.md b/doc/fr/development_tutorial-04-add_plugin.md index a1fb5c546..8ff0b5e3c 100644 --- a/doc/fr/development_tutorial-04-add_plugin.md +++ b/doc/fr/development_tutorial-04-add_plugin.md @@ -391,6 +391,8 @@ Voici les plus importants : __Objectif :__ Ce niveau a pour objectif de développer un fonctionnalité d'export des transactions d'un comptes, dans un fichier. +La encore, il s'agit d'une demande réelle (cf ticket #[445](#https://github.com/duniter/cesium/issues/445)). + ### Activation du plugin (en version `03`) Editez le fichier `www/index.html` pour activer cette fois le plugin en version 3 : @@ -410,18 +412,21 @@ La communauté AngularJS est très active : de nombreux plugins, de tous genres, Généralement, installer un nouveau plugin AngularJS est très simple. Il suffit d'executer la commande suivante pour que le téléchargement de la librairie soit fait : -```bower install <nom_du_plugin_AngularJS>```` +```bash + > bower install <nom_du_plugin_AngularJS> +``` Le chemin de la librairie installée doit ensuite être ajouté à la main, dans le fichier `www/index.html` : + ```html <script src="lib/ionic/js/angular/angular-file-saver.bundle.js"></script> ``` -### 5 min de coding ! +### Hop : 5 min de dev ! -Allez, une petite fonction facile à coder : le remplissage du fichier ! ;) +Allez, une petite fonction facile à coder : le remplissage du fichier d'export ! ;) -Editez maintenant le code du plugin (version `03`), et identifiez la méthode `onExportButtonClick()` : +Editez maintenant le plugin (en version `03`) et modifier la méthode `onExportButtonClick()` : ``` // [NEW] Manage click on the export button @@ -447,13 +452,15 @@ Editez maintenant le code du plugin (version `03`), et identifiez la méthode `o }); }; - ``` +Il suffit de remplir le tableau nommé `content` :) + -## Niveau XVI : +## Niveau XVI : Etendre un service -__Objectif :__ +__Objectif :__ Nous allons voir comment étendre le fonctionnement du code présent dans les services. + ### Activation du plugin (en version `04`) diff --git a/www/index.html b/www/index.html index 2b8e5985f..1ec716fed 100644 --- a/www/index.html +++ b/www/index.html @@ -172,7 +172,7 @@ <!--<script src="dist/dist_js/plugins/rml9/plugin.js"></script>--> <!--<script src="dist/dist_js/plugins/rml9/plugin-01-add_button.js"></script>--> <!--<script src="dist/dist_js/plugins/rml9/plugin-02-add_view.js"></script>--> - <script src="dist/dist_js/plugins/rml9/plugin-03-export_to_file.js"></script> + <!--<script src="dist/dist_js/plugins/rml9/plugin-03-export_to_file.js"></script>--> <!--endRemoveIf(no-plugin)--> diff --git a/www/js/config.js b/www/js/config.js index 0cab57479..728bc1549 100644 --- a/www/js/config.js +++ b/www/js/config.js @@ -10,33 +10,45 @@ angular.module("cesium.config", []) .constant("csConfig", { "cacheTimeMs": 60000, - "fallbackLanguage": "en", + "fallbackLanguage": "fr-FR", + "defaultLanguage": "fr-FR", "rememberMe": true, "showUDHistory": false, - "timeout": 10000, + "timeout": 6000, "timeWarningExpireMembership": 5184000, "timeWarningExpire": 7776000, "useLocalStorage": true, - "useRelative": false, - "initPhase": false, + "useRelative": true, "expertMode": true, "decimalCount": 2, - "httpsMode": false, "helptip": { "enable": false, - "installDocUrl": "https://github.com/duniter/duniter/blob/master/doc/install-a-node.md" + "installDocUrl": { + "fr-FR": "http://www.le-sou.org/devenir-noeud/", + "en": "https://github.com/duniter/duniter/blob/master/doc/install-a-node.md" + } }, - "node": { - "host": "g1.duniter.org", - "port": "443" + "license": { + "fr-FR": "license/license_g1-fr-FR.txt", + "en": "license/license_g1-en.txt" }, + "node": { + "host": "g1.duniter.fr", + "port": "443" + }, "plugins": { "es": { - "enable": true, + "enable": false, "askEnable": false, "host": "localhost", - "port": "9200", - "wsPort": "9400" + "port": 9200, + "wsPort": 9400, + "notifications": { + "txSent": true, + "txReceived": true, + "certSent": true, + "certReceived": true + } }, "graph": { "enable": true @@ -44,12 +56,13 @@ angular.module("cesium.config", []) "neo4j": { "enable": true }, - "rml9": { - "enable": true - } + // Activation du plugin RML9 + "rml9": { + "enable": true + } }, "version": "0.12.6", - "build": "2017-05-23T08:45:46.819Z", + "build": "2017-05-30T09:15:49.818Z", "newIssueUrl": "https://github.com/duniter/cesium/issues/new?labels=bug" }) diff --git a/www/js/plugins.js b/www/js/plugins.js index cfc0d177e..8b94165cf 100644 --- a/www/js/plugins.js +++ b/www/js/plugins.js @@ -3,8 +3,12 @@ angular.module('cesium.plugins', [ 'cesium.plugins.translations', 'cesium.plugins.templates', // Plugins - 'cesium.es.plugin', - 'cesium.graph.plugin', - 'cesium.rml9.plugin' + 'cesium.es.plugin' + + // removeIf(ubuntu) + ,'cesium.graph.plugin' + // endRemoveIf(ubuntu) + + //,'cesium.rml9.plugin' ]) ; -- GitLab