Skip to content

Commit 3b90a31

Browse files
Merge pull request #115 from victorsalaun/issue/#107
add documentation link
2 parents 9047e0a + 4a02524 commit 3b90a31

File tree

5 files changed

+42
-28
lines changed

5 files changed

+42
-28
lines changed

src/app/hesperides/hesperides.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -110,18 +110,21 @@ hesperidesModule.run(function (editableOptions, editableThemes, $rootScope, $htt
110110

111111
$rootScope.setHesperidesConfiguration = function () {
112112

113-
if (hesperidesConfiguration == undefined) {
113+
if (hesperidesConfiguration === undefined) {
114114
console.warn("[Hesperides] Config file not found or empty, applying default configuration");
115115
hesperidesConfiguration = {};
116116
}
117117

118-
if (hesperidesConfiguration.nexusMode == undefined) {
118+
if (hesperidesConfiguration.documentationLink === undefined) {
119+
hesperidesConfiguration.documentationLink = "https://voyages-sncf-technologies.github.io/hesperides-gui/";
120+
}
121+
if (hesperidesConfiguration.nexusMode === undefined) {
119122
hesperidesConfiguration.nexusMode = false;
120123
}
121-
if (hesperidesConfiguration.localChangesTTL == undefined) {
124+
if (hesperidesConfiguration.localChangesTTL === undefined) {
122125
hesperidesConfiguration.localChangesTTL = 50;
123126
}
124-
if (hesperidesConfiguration.feedbackRoomName == undefined) {
127+
if (hesperidesConfiguration.feedbackRoomName === undefined) {
125128
hesperidesConfiguration.feedbackRoomName = "";
126129
}
127130
}

src/app/i18n/label_en.json

+13-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"hesperides.date" : "{{ timestamp | date : 'MMMM d yyyy h:mm a' }}",
3-
"welcome.apps.title" : "Preferred applications",
2+
"hesperides.date": "{{ timestamp | date : 'MMMM d yyyy h:mm a' }}",
3+
"welcome.apps.title": "Preferred applications",
44
"menu.template.title": "Regroup templates",
55
"menu.techno.title": "By techno",
66
"menu.techno.create": "Create a working copy",
@@ -12,11 +12,12 @@
1212
"menu.platform.title": "For applications",
1313
"menu.platform.create": "Create a platform",
1414
"menu.platform.createFrom": "Create a platform from...",
15-
"menu.language.fr.aria" : "View the website in french",
16-
"menu.language.en.aria" : "View the website in english",
17-
"menu.help.title": "Help",
18-
"menu.help.swagger": "Swagger",
15+
"menu.language.fr.aria": "View the website in french",
16+
"menu.language.en.aria": "View the website in english",
1917
"menu.help.about": "About",
18+
"menu.help.documentation": "Documentation",
19+
"menu.help.swagger": "Swagger",
20+
"menu.help.title": "Help",
2021
"event.nocomment": "No comment",
2122
"template.event.created": "The template has been created",
2223
"template.event.updated": "The template has been updated",
@@ -239,8 +240,8 @@
239240
"file.modal.title": "Preview of",
240241
"file.modal.error": "This file is in error state, click to see what is going on.",
241242
"file.modal.content": "File content",
242-
"file.error" : "Error !",
243-
"file.loading.message" : "Waiting the file to load ...",
243+
"file.error": "Error !",
244+
"file.loading.message": "Waiting the file to load ...",
244245
"event.modal.title": "History of",
245246
"event.modal.title.noHistory": "History is empty",
246247
"event.modal.filtering.findInEvents": "Filter events",
@@ -249,10 +250,10 @@
249250
"event.modal.filtering.user.placeholder": "Filter by username",
250251
"event.modal.filtering.myevents": "My events",
251252
"event.modal.diff": "Show the diff",
252-
"about.title":"About the release",
253-
"about.version.backend":"Backend version:",
254-
"about.version.api":"API version:",
255-
"about.version.front":"Front version:",
253+
"about.title": "About the release",
254+
"about.version.backend": "Backend version:",
255+
"about.version.api": "API version:",
256+
"about.version.front": "Front version:",
256257
"settings.title": "User settings",
257258
"settings.introduction": "This screen helps you to personalize Hesperides (by web browser)",
258259
"settings.display": "Displaying the logic platforme's components",

src/app/i18n/label_fr.json

+13-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"hesperides.date" : "{{ timestamp | date : 'd MMMM yyyy HH:mm' }}",
3-
"welcome.apps.title" : "Applications préférées",
2+
"hesperides.date": "{{ timestamp | date : 'd MMMM yyyy HH:mm' }}",
3+
"welcome.apps.title": "Applications préférées",
44
"menu.template.title": "Regrouper des templates",
55
"menu.techno.title": "En techno",
66
"menu.techno.create": "Créer une working copy",
@@ -12,11 +12,12 @@
1212
"menu.platform.title": "Pour des applications",
1313
"menu.platform.create": "Créer une plateforme",
1414
"menu.platform.createFrom": "Créer une plateforme à partir de...",
15-
"menu.language.fr.aria" : "Visualiser le site en français",
16-
"menu.language.en.aria" : "Visualiser le site en anglais",
17-
"menu.help.title": "Aide",
18-
"menu.help.swagger": "Swagger",
15+
"menu.language.fr.aria": "Visualiser le site en français",
16+
"menu.language.en.aria": "Visualiser le site en anglais",
1917
"menu.help.about": "A propos",
18+
"menu.help.documentation": "Documentation",
19+
"menu.help.swagger": "Swagger",
20+
"menu.help.title": "Aide",
2021
"event.nocomment": "Pas de commentaire",
2122
"template.event.created": "Le template a bien été créé",
2223
"template.event.updated": "Le template a été mis à jour",
@@ -239,8 +240,8 @@
239240
"file.modal.title": "Prévisualisation de",
240241
"file.modal.error": "Ce fichier est en erreur, cliquer pour voir pourquoi.",
241242
"file.modal.content": "Contenu du fichier",
242-
"file.error" : "Erreur !",
243-
"file.loading.message" : "En attente de chargement...",
243+
"file.error": "Erreur !",
244+
"file.loading.message": "En attente de chargement...",
244245
"event.modal.title": "Historique de",
245246
"event.modal.title.noHistory": "Aucun historique à afficher",
246247
"event.modal.filtering.findInEvents": "Filtrer l'historique",
@@ -249,10 +250,10 @@
249250
"event.modal.filtering.user.placeholder": "Filtrer par nom de user",
250251
"event.modal.filtering.myevents": "Mon historique",
251252
"event.modal.diff": "Voir la diff",
252-
"about.title":"A propos de la release",
253-
"about.version.backend":"Version du backend :",
254-
"about.version.api":"Version de l'API :",
255-
"about.version.front":"Version du front :",
253+
"about.title": "A propos de la release",
254+
"about.version.backend": "Version du backend :",
255+
"about.version.api": "Version de l'API :",
256+
"about.version.front": "Version du front :",
256257
"settings.title": "Préférences de l'utilisateur",
257258
"settings.introduction": "Cet écran vous permet de personnaliser certains comportements d'hesperides (à setter par navigateur)",
258259
"settings.display": "Affichage des composants logiques d'une plateforme",

src/app/menu/menu.html

+5
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@
158158
{{ 'menu.help.swagger' | translate}}
159159
</md-button>
160160
</md-menu-item>
161+
<md-menu-item>
162+
<md-button id="menu_help-documentation-menu" ng-click="display_hesperides_documentation()">
163+
{{ 'menu.help.documentation' | translate}}
164+
</md-button>
165+
</md-menu-item>
161166
<md-menu-item>
162167
<md-button id="menu_help-about-menu" ng-click="display_hesperides_informations()">
163168
{{ 'menu.help.about' | translate}}

src/app/menu/menu.js

+4
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,10 @@ menuModule.controller('MenuHelpCtrl', ['$scope', '$mdDialog', '$hesperidesHttp',
374374
});
375375
};
376376

377+
$scope.display_hesperides_documentation = function() {
378+
window.open(hesperidesConfiguration.documentationLink);
379+
};
380+
377381
$scope.display_hesperides_informations = function(){
378382

379383
$scope.front_version = '${project.version}';

0 commit comments

Comments
 (0)