From a545716798bc1e15ab83d5ab9a95525ae3ef6cd7 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Fri, 13 Mar 2020 12:05:26 +0100 Subject: [PATCH] Add (inoperative) Demo option to the Options tab --- resources/js/langs/locales.js | 8 ++++++++ resources/js/views/settings/Options.vue | 2 ++ resources/lang/en/settings.php | 4 ++++ resources/lang/fr/settings.php | 7 ++++++- 4 files changed, 20 insertions(+), 1 deletion(-) diff --git a/resources/js/langs/locales.js b/resources/js/langs/locales.js index bf0f5b17..6ece5c07 100644 --- a/resources/js/langs/locales.js +++ b/resources/js/langs/locales.js @@ -91,6 +91,10 @@ export default { "show_token_as_dot": { "label": "Show generated tokens as dot", "help": "Replace generated token caracters with *** to ensure confidentiality. Do not affect the copy/paste feature." + }, + "is_demo_app": { + "label": "Set the app as a demo", + "help": "If set to Yes, the app content (including the registered user) will be reset every hours. Use the 'demo' user and 'demo' password to connect to the app in demo mode." } } }, @@ -354,6 +358,10 @@ export default { "show_token_as_dot": { "label": "Masquer les codes générés", "help": "Remplace les caractères des codes générés par des *** pour garantir leur confidentialité. N'affecte pas la fonction copier/coller qui reste utilisable." + }, + "is_demo_app": { + "label": "Activer le mode Démo", + "help": "Le mode Démo remet à zéro le contenu de l'application (y compris l'utilisateur enregistré) toutes les heures. Utilisez le compte 'demo' et le mot de passe 'demo' pour vous y connecter." } } }, diff --git a/resources/js/views/settings/Options.vue b/resources/js/views/settings/Options.vue index be0ed5a4..ce2440ef 100644 --- a/resources/js/views/settings/Options.vue +++ b/resources/js/views/settings/Options.vue @@ -7,6 +7,7 @@
@@ -23,6 +24,7 @@ form: new Form({ lang: this.$root.$i18n.locale, showTokenAsDot: Boolean(Number(appSettings.showTokenAsDot)), + isDemoApp: Boolean(Number(appSettings.isDemoApp)), }), options: [ { text: this.$t('languages.en'), value: 'en' }, diff --git a/resources/lang/en/settings.php b/resources/lang/en/settings.php index 9abfaddb..686fb24f 100644 --- a/resources/lang/en/settings.php +++ b/resources/lang/en/settings.php @@ -31,6 +31,10 @@ 'label' => 'Show generated tokens as dot', 'help' => 'Replace generated token caracters with *** to ensure confidentiality. Do not affect the copy/paste feature.' ], + 'is_demo_app' => [ + 'label' => 'Set the app as a demo', + 'help' => 'If set to Yes, the app content (including the registered user) will be reset every hours. Use the \'demo\' user and \'demo\' password to connect to the app in demo mode.' + ], ], diff --git a/resources/lang/fr/settings.php b/resources/lang/fr/settings.php index 47aedd5b..568ee005 100644 --- a/resources/lang/fr/settings.php +++ b/resources/lang/fr/settings.php @@ -30,7 +30,12 @@ 'show_token_as_dot' => [ 'label' => 'Masquer les codes générés', 'help' => 'Remplace les caractères des codes générés par des *** pour garantir leur confidentialité. N\'affecte pas la fonction copier/coller qui reste utilisable.' - ] + ], + 'is_demo_app' => [ + 'label' => 'Activer le mode Démo', + 'help' => 'Le mode Démo remet à zéro le contenu de l\'application (y compris l\'utilisateur enregistré) toutes les heures. Utilisez le compte \'demo\' et le mot de passe \'demo\' pour vous y connecter.' + ], + ],