diff --git a/doc/fr/development_tutorial-04-add_plugin.md b/doc/fr/development_tutorial-04-add_plugin.md index a1fb5c54650d239178cafee9639fb58b348b5b20..8ff0b5e3ce31e582e7b539dff447853f91b72b32 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 2b8e5985f91db12a79b0464326ec3709eab9dbec..1ec716fed206d777fdfdd7f3b2a7aa96726313aa 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 0cab57479bc07009d56d5613d68e06d4d1f1fe07..728bc1549862bad151b81a74c9359e2864006134 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 cfc0d177e463a9975dd38fe3ddff3bba430b7e19..8b94165cfc097714124d7edefc4f703d358ab9e5 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' ]) ;