From 5fbe1c2bb53ae55b56b0c6a52efa72d80eea7855 Mon Sep 17 00:00:00 2001 From: lapineige Date: Sun, 25 Feb 2024 13:34:05 +0000 Subject: [PATCH] v0.8.1 --- tools/app_generator/templates/ADMIN.j2 | 3 + tools/app_generator/templates/DESCRIPTION.j2 | 1 + tools/app_generator/templates/DISCLAIMER.j2 | 1 + tools/app_generator/templates/POST_INSTALL.j2 | 7 + tools/app_generator/templates/POST_UPGRADE.j2 | 1 + tools/app_generator/templates/PRE_INSTALL.j2 | 1 + tools/app_generator/templates/PRE_UPGRADE.j2 | 1 + tools/app_generator/templates/backup.j2 | 3 +- tools/app_generator/templates/change_url.j2 | 1 + tools/app_generator/templates/index.html | 132 ++++++++++++++---- tools/app_generator/templates/install.j2 | 1 + tools/app_generator/templates/remove.j2 | 1 + tools/app_generator/templates/restore.j2 | 1 + tools/app_generator/templates/tests.j2 | 82 +++++++++++ tools/app_generator/templates/upgrade.j2 | 1 + 15 files changed, 208 insertions(+), 29 deletions(-) create mode 100644 tools/app_generator/templates/ADMIN.j2 create mode 100644 tools/app_generator/templates/DESCRIPTION.j2 create mode 100644 tools/app_generator/templates/DISCLAIMER.j2 create mode 100644 tools/app_generator/templates/POST_INSTALL.j2 create mode 100644 tools/app_generator/templates/POST_UPGRADE.j2 create mode 100644 tools/app_generator/templates/PRE_INSTALL.j2 create mode 100644 tools/app_generator/templates/PRE_UPGRADE.j2 create mode 100644 tools/app_generator/templates/tests.j2 diff --git a/tools/app_generator/templates/ADMIN.j2 b/tools/app_generator/templates/ADMIN.j2 new file mode 100644 index 00000000..c9b52253 --- /dev/null +++ b/tools/app_generator/templates/ADMIN.j2 @@ -0,0 +1,3 @@ +This is a dummy admin doc for this app + +The app install dir is `__INSTALL_DIR__` diff --git a/tools/app_generator/templates/DESCRIPTION.j2 b/tools/app_generator/templates/DESCRIPTION.j2 new file mode 100644 index 00000000..3f2e57a7 --- /dev/null +++ b/tools/app_generator/templates/DESCRIPTION.j2 @@ -0,0 +1 @@ +This is a dummy description of this app features diff --git a/tools/app_generator/templates/DISCLAIMER.j2 b/tools/app_generator/templates/DISCLAIMER.j2 new file mode 100644 index 00000000..a46cd0bb --- /dev/null +++ b/tools/app_generator/templates/DISCLAIMER.j2 @@ -0,0 +1 @@ +This is a dummy disclaimer that will be added to the README.MD of your app. diff --git a/tools/app_generator/templates/POST_INSTALL.j2 b/tools/app_generator/templates/POST_INSTALL.j2 new file mode 100644 index 00000000..f42358dc --- /dev/null +++ b/tools/app_generator/templates/POST_INSTALL.j2 @@ -0,0 +1,7 @@ +This is a dummy disclaimer to display after the install + +The app url is + +The app install dir is `__INSTALL_DIR__` + +The app id is `__ID__` diff --git a/tools/app_generator/templates/POST_UPGRADE.j2 b/tools/app_generator/templates/POST_UPGRADE.j2 new file mode 100644 index 00000000..a58e2ae4 --- /dev/null +++ b/tools/app_generator/templates/POST_UPGRADE.j2 @@ -0,0 +1 @@ +This is a dummy disclaimer to display after upgrades diff --git a/tools/app_generator/templates/PRE_INSTALL.j2 b/tools/app_generator/templates/PRE_INSTALL.j2 new file mode 100644 index 00000000..eb3ab3a9 --- /dev/null +++ b/tools/app_generator/templates/PRE_INSTALL.j2 @@ -0,0 +1 @@ +This is a dummy disclaimer to display prior to the install diff --git a/tools/app_generator/templates/PRE_UPGRADE.j2 b/tools/app_generator/templates/PRE_UPGRADE.j2 new file mode 100644 index 00000000..780fc15b --- /dev/null +++ b/tools/app_generator/templates/PRE_UPGRADE.j2 @@ -0,0 +1 @@ +This is a dummy disclaimer to display prior to any upgrade diff --git a/tools/app_generator/templates/backup.j2 b/tools/app_generator/templates/backup.j2 index db3c8be8..0a5f28ba 100644 --- a/tools/app_generator/templates/backup.j2 +++ b/tools/app_generator/templates/backup.j2 @@ -1,5 +1,6 @@ #!/bin/bash -#### App file generated with YoloGen, the YunoHost app generator, version {{ data.GENERATOR_VERSION }}. +#### App file generated with YoloGen, the YunoHost app generator, version {{ data['GENERATOR_VERSION'] }}. + {% if data.generator_mode == 'tutorial' -%} # This is the tutorial version of the app. # It contains extra commands to explain what should be done in case you want to adjust some part of the script. # Once you are done, you may remove them. diff --git a/tools/app_generator/templates/change_url.j2 b/tools/app_generator/templates/change_url.j2 index bfd0a14c..fe196d8f 100644 --- a/tools/app_generator/templates/change_url.j2 +++ b/tools/app_generator/templates/change_url.j2 @@ -1,4 +1,5 @@ #!/bin/bash +### App file generated with YoloGen, the Yunohost app generator, version {{ data['GENERATOR_VERSION'] }}. {% if data.generator_mode == 'tutorial' -%} # This is the tutorial version of the app. diff --git a/tools/app_generator/templates/index.html b/tools/app_generator/templates/index.html index 10a14486..b2a4c392 100644 --- a/tools/app_generator/templates/index.html +++ b/tools/app_generator/templates/index.html @@ -30,9 +30,11 @@ YunoHost app generator {% endblock %} + {% block content %}

Formulaire de génération d'une application Yunohost

+

Version: {{ generator_info['GENERATOR_VERSION'] }}

{{ main_form.hidden_tag() }} @@ -42,11 +44,12 @@ YunoHost app generator {{ form_field(main_form.generator_mode) }} +
-
-

1/8 - Informations générales

+
+

1/9 - Informations générales

-
+