From 4834a3a6aa75deb394f8b6e4406ccd132c7e9846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Fri, 24 May 2024 18:09:41 +0200 Subject: [PATCH 1/9] Upgrade to 0.3.2 to fix file upload --- manifest.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.toml b/manifest.toml index 4b57c35..fb36486 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,7 +7,7 @@ name = "Dont-code Services" description.en = "Install services and databases needed to support Dont-code platform" description.fr = "Installe les services et base de données nécessaires pour utiliser la plateforme Dont-code" -version = "0.3.1~ynh5" +version = "0.3.2~ynh1" maintainers = ["Dont-code Team"] @@ -57,8 +57,8 @@ ram.runtime = "400M" [resources] [resources.sources.main] - url = "https://github.com/dont-code/release/releases/download/v0.3.1/dont-code-release-runners.zip" - sha256 = "b69361f5383c904e30d551efd7a64cc155459af6a25e32fd5ca41633bcfb3658" + url = "https://github.com/dont-code/release/releases/download/v0.3.2/dont-code-release-runners.zip" + sha256 = "fed7cc192154518762a1316dac8b3eb89694db90f384495b8f78bfb8b91514aa" in_subdir = false autoupdate.strategy = "latest_github_release" autoupdate.asset = "dont-code-release-runners.zip" From 46aa25da6148ff7339f319f81cf6b6d66d11a950 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Fri, 24 May 2024 16:09:47 +0000 Subject: [PATCH 2/9] Auto-update READMEs --- ALL_README.md | 1 + README.md | 2 +- README_es.md | 65 +++++++++++++++++++++++++++++++++++++++++++++++ README_eu.md | 2 +- README_fr.md | 2 +- README_gl.md | 2 +- README_zh_Hans.md | 4 +-- 7 files changed, 72 insertions(+), 6 deletions(-) create mode 100644 README_es.md diff --git a/ALL_README.md b/ALL_README.md index a01b345..152f2e7 100644 --- a/ALL_README.md +++ b/ALL_README.md @@ -1,6 +1,7 @@ # All available README files by language - [Read the README in English](README.md) +- [Lea el README en español](README_es.md) - [Irakurri README euskaraz](README_eu.md) - [Lire le README en français](README_fr.md) - [Le o README en galego](README_gl.md) diff --git a/README.md b/README.md index d302211..74b0344 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ This Yunohost app installs the server part (services + mongo database) needed to - As well any documents or images uploaded by users will be backed up -**Shipped version:** 0.3.1~ynh5 +**Shipped version:** 0.3.2~ynh1 **Demo:** diff --git a/README_es.md b/README_es.md new file mode 100644 index 0000000..051a90a --- /dev/null +++ b/README_es.md @@ -0,0 +1,65 @@ + + +# Dont-code Services para Yunohost + +[![Nivel de integración](https://dash.yunohost.org/integration/dont-code.svg)](https://dash.yunohost.org/appci/app/dont-code) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/dont-code.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/dont-code.maintain.svg) + +[![Instalar Dont-code Services con Yunhost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=dont-code) + +*[Leer este README en otros idiomas.](./ALL_README.md)* + +> *Este paquete le permite instalarDont-code Services rapidamente y simplement en un servidor YunoHost.* +> *Si no tiene YunoHost, visita [the guide](https://yunohost.org/install) para aprender como instalarla.* + +## Descripción general + +Dont-code is a low-code / no-code platform letting user create their own applications based on complete feature sets developed by IT. +You can find more information here: https://dont-code.net + +This Yunohost app installs the server part (services + mongo database) needed to run the dont-code applications. + +### Features + +- Thanks to the Powerful [Builders](https://dont-code.net/ide-ui) and [Previewers](https://dont-code.net/ide-ui), a user can directly design its application and immediately see the result +- One only needs to describe its application by filling sentences prepared by the platform. +- By default it provides support for images, currency, text, numbers, countries, links. +- Multiple plugins allow you to list, edit, make reports, call services, save to database, save in browser, and so on... +- Plugins can be developed by any IT team +- Projects and all user's data are backuped up as part of the Yunohost backup process +- As well any documents or images uploaded by users will be backed up + + +**Versión actual:** 0.3.2~ynh1 + +**Demo:** + +## Capturas + +![Captura de Dont-code Services](./doc/screenshots/previewer.gif) +![Captura de Dont-code Services](./doc/screenshots/ide.gif) + +## Documentaciones y recursos + +- Sitio web oficial: +- Documentación usuario oficial: +- Documentación administrador oficial: +- Repositorio del código fuente oficial de la aplicación : +- Catálogo YunoHost: +- Reportar un error: + +## Información para desarrolladores + +Por favor enviar sus correcciones a la [`branch testing`](https://github.com/YunoHost-Apps/dont-code_ynh/tree/testing + +Para probar la rama `testing`, sigue asÍ: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/dont-code_ynh/tree/testing --debug +o +sudo yunohost app upgrade dont-code -u https://github.com/YunoHost-Apps/dont-code_ynh/tree/testing --debug +``` + +**Mas informaciones sobre el empaquetado de aplicaciones:** diff --git a/README_eu.md b/README_eu.md index 5c5e4de..7be3c27 100644 --- a/README_eu.md +++ b/README_eu.md @@ -32,7 +32,7 @@ This Yunohost app installs the server part (services + mongo database) needed to - As well any documents or images uploaded by users will be backed up -**Paketatutako bertsioa:** 0.3.1~ynh5 +**Paketatutako bertsioa:** 0.3.2~ynh1 **Demoa:** diff --git a/README_fr.md b/README_fr.md index 68ade82..2bad82a 100644 --- a/README_fr.md +++ b/README_fr.md @@ -32,7 +32,7 @@ This Yunohost app installs the server part (services + mongo database) needed to - As well any documents or images uploaded by users will be backed up -**Version incluse :** 0.3.1~ynh5 +**Version incluse :** 0.3.2~ynh1 **Démo :** diff --git a/README_gl.md b/README_gl.md index 8bf3ae4..2f94fb5 100644 --- a/README_gl.md +++ b/README_gl.md @@ -32,7 +32,7 @@ This Yunohost app installs the server part (services + mongo database) needed to - As well any documents or images uploaded by users will be backed up -**Versión proporcionada:** 0.3.1~ynh5 +**Versión proporcionada:** 0.3.2~ynh1 **Demo:** diff --git a/README_zh_Hans.md b/README_zh_Hans.md index d63738f..d7ec0bd 100644 --- a/README_zh_Hans.md +++ b/README_zh_Hans.md @@ -3,7 +3,7 @@ 请勿手动编辑。 --> -# YunoHost 的 Dont-code Services +# YunoHost 上的 Dont-code Services [![集成程度](https://dash.yunohost.org/integration/dont-code.svg)](https://dash.yunohost.org/appci/app/dont-code) ![工作状态](https://ci-apps.yunohost.org/ci/badges/dont-code.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/dont-code.maintain.svg) @@ -32,7 +32,7 @@ This Yunohost app installs the server part (services + mongo database) needed to - As well any documents or images uploaded by users will be backed up -**分发版本:** 0.3.1~ynh5 +**分发版本:** 0.3.2~ynh1 **演示:** From d17d8f6ea31b7dcd2c1805d28344a7db528b5486 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Fri, 24 May 2024 16:14:12 +0000 Subject: [PATCH 3/9] Auto-update READMEs --- ALL_README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ALL_README.md b/ALL_README.md index 8938aae..152f2e7 100644 --- a/ALL_README.md +++ b/ALL_README.md @@ -1,7 +1,7 @@ # All available README files by language - [Read the README in English](README.md) -- [Lee el README en español](README_es.md) +- [Lea el README en español](README_es.md) - [Irakurri README euskaraz](README_eu.md) - [Lire le README en français](README_fr.md) - [Le o README en galego](README_gl.md) From 3d8795f7be4b4af2a3e8982aabaea5d2286e84f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Sat, 25 May 2024 11:26:44 +0200 Subject: [PATCH 4/9] Fixed cors header not set for data --- conf/nginx.conf | 13 +++++++++++++ manifest.toml | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index f3fb881..c0cc56e 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -8,6 +8,7 @@ location __PATH__/ { # Handling preflight requests if ($request_method = OPTIONS) { more_set_headers 'Access-Control-Allow-Methods: *' 'Access-Control-Allow-Headers: *'; + return 200; } # Path to source @@ -37,6 +38,10 @@ location __PATH__/ { } location __PATH__/project { + if ($request_method = OPTIONS) { + more_set_headers 'Access-Control-Allow-Methods: *' 'Access-Control-Allow-Headers: *'; + return 200; + } proxy_pass http://localhost:__PORT_PROJECT__/project; proxy_set_header Host $host; proxy_read_timeout 86400s; @@ -44,6 +49,10 @@ location __PATH__/ { } location __PATH__/data { + if ($request_method = OPTIONS) { + more_set_headers 'Access-Control-Allow-Methods: *' 'Access-Control-Allow-Headers: *'; + return 200; + } proxy_pass http://localhost:__PORT_DATA__/data; proxy_set_header Host $host; proxy_read_timeout 86400s; @@ -51,6 +60,10 @@ location __PATH__/ { } location __PATH__/documents { + if ($request_method = OPTIONS) { + more_set_headers 'Access-Control-Allow-Methods: *' 'Access-Control-Allow-Headers: *'; + return 200; + } proxy_pass http://localhost:__PORT_DATA__/documents; proxy_set_header Host $host; proxy_read_timeout 86400s; diff --git a/manifest.toml b/manifest.toml index fb36486..8fa4b9e 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,7 +7,7 @@ name = "Dont-code Services" description.en = "Install services and databases needed to support Dont-code platform" description.fr = "Installe les services et base de données nécessaires pour utiliser la plateforme Dont-code" -version = "0.3.2~ynh1" +version = "0.3.2~ynh2" maintainers = ["Dont-code Team"] From e29d3da6507e8ce339d2c98a01a5a184aeb46a5d Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sat, 25 May 2024 09:26:51 +0000 Subject: [PATCH 5/9] Auto-update READMEs --- README.md | 2 +- README_es.md | 2 +- README_eu.md | 2 +- README_fr.md | 2 +- README_gl.md | 2 +- README_zh_Hans.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 74b0344..9c46fee 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ This Yunohost app installs the server part (services + mongo database) needed to - As well any documents or images uploaded by users will be backed up -**Shipped version:** 0.3.2~ynh1 +**Shipped version:** 0.3.2~ynh2 **Demo:** diff --git a/README_es.md b/README_es.md index 051a90a..48c03d2 100644 --- a/README_es.md +++ b/README_es.md @@ -32,7 +32,7 @@ This Yunohost app installs the server part (services + mongo database) needed to - As well any documents or images uploaded by users will be backed up -**Versión actual:** 0.3.2~ynh1 +**Versión actual:** 0.3.2~ynh2 **Demo:** diff --git a/README_eu.md b/README_eu.md index 7be3c27..6d98f23 100644 --- a/README_eu.md +++ b/README_eu.md @@ -32,7 +32,7 @@ This Yunohost app installs the server part (services + mongo database) needed to - As well any documents or images uploaded by users will be backed up -**Paketatutako bertsioa:** 0.3.2~ynh1 +**Paketatutako bertsioa:** 0.3.2~ynh2 **Demoa:** diff --git a/README_fr.md b/README_fr.md index 2bad82a..52b753a 100644 --- a/README_fr.md +++ b/README_fr.md @@ -32,7 +32,7 @@ This Yunohost app installs the server part (services + mongo database) needed to - As well any documents or images uploaded by users will be backed up -**Version incluse :** 0.3.2~ynh1 +**Version incluse :** 0.3.2~ynh2 **Démo :** diff --git a/README_gl.md b/README_gl.md index 2f94fb5..1ed1121 100644 --- a/README_gl.md +++ b/README_gl.md @@ -32,7 +32,7 @@ This Yunohost app installs the server part (services + mongo database) needed to - As well any documents or images uploaded by users will be backed up -**Versión proporcionada:** 0.3.2~ynh1 +**Versión proporcionada:** 0.3.2~ynh2 **Demo:** diff --git a/README_zh_Hans.md b/README_zh_Hans.md index d7ec0bd..b28fcd7 100644 --- a/README_zh_Hans.md +++ b/README_zh_Hans.md @@ -32,7 +32,7 @@ This Yunohost app installs the server part (services + mongo database) needed to - As well any documents or images uploaded by users will be backed up -**分发版本:** 0.3.2~ynh1 +**分发版本:** 0.3.2~ynh2 **演示:** From 364dad9ce297c04355fc82e1d258d8241d91fadf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Sat, 25 May 2024 11:31:17 +0200 Subject: [PATCH 6/9] Require 11.1.9 as per lint error --- manifest.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index 8fa4b9e..84e7fe1 100644 --- a/manifest.toml +++ b/manifest.toml @@ -20,7 +20,7 @@ userdoc = "https://dont-code.net/news.html" code = "https://github.com/dont-code" [integration] -yunohost = ">= 11.0.0" +yunohost = ">= 11.1.9" architectures = "all" multi_instance = true ldap = false From cdd76db2ec6ab27f5e2e879527c6b4a743c23e12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Sat, 25 May 2024 12:03:28 +0200 Subject: [PATCH 7/9] Corrected list of mongo packages --- scripts/ynh_mongo_db__2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/ynh_mongo_db__2 b/scripts/ynh_mongo_db__2 index 3005e88..48f83dd 100644 --- a/scripts/ynh_mongo_db__2 +++ b/scripts/ynh_mongo_db__2 @@ -314,6 +314,7 @@ ynh_install_mongo() { ynh_print_info --message="Installing MongoDB Community Edition ..." local mongo_debian_release=$(ynh_get_debian_release) + local mongo_packages="mongodb-org-server mongodb-database-tools mongodb-org-shell" if [[ $(cat /proc/cpuinfo) != *"avx"* && "$mongo_version" != "4.4" ]]; then #Sadly mongo 4.4 is the only version not requiring avx instruction set, so we will install it @@ -321,7 +322,7 @@ ynh_install_mongo() { mongo_version="4.4" fi - ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian $mongo_debian_release/mongodb-org/$mongo_version main" --package="mongodb-org" --key="https://www.mongodb.org/static/pgp/server-$mongo_version.asc" + ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian $mongo_debian_release/mongodb-org/$mongo_version main" --package="$mongo_packages" --key="https://www.mongodb.org/static/pgp/server-$mongo_version.asc" mongodb_servicename=mongod # Make sure MongoDB is started and enabled From 4f763eef59147cb401fc115e1de5293403ee6a69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Sat, 25 May 2024 12:34:11 +0200 Subject: [PATCH 8/9] Back to mongodb-org otherwise no mongo shell --- scripts/ynh_mongo_db__2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/ynh_mongo_db__2 b/scripts/ynh_mongo_db__2 index 48f83dd..eabd74e 100644 --- a/scripts/ynh_mongo_db__2 +++ b/scripts/ynh_mongo_db__2 @@ -322,6 +322,12 @@ ynh_install_mongo() { mongo_version="4.4" fi + if [[ "$mongo_version" == "4.4" ]]; then + ynh_print_warn --message="Switching to buster package install for Mongo 4.4." + mongo_debian_release=buster + mongo_packages="mongodb-org-server mongodb-database-tools mongodb-mongosh-shared-openssl11" + fi + ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian $mongo_debian_release/mongodb-org/$mongo_version main" --package="$mongo_packages" --key="https://www.mongodb.org/static/pgp/server-$mongo_version.asc" mongodb_servicename=mongod From b331c69b5a84644bd285eef689950caae06ae4e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Sat, 25 May 2024 12:49:15 +0200 Subject: [PATCH 9/9] Mongodb-org --- scripts/ynh_mongo_db__2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ynh_mongo_db__2 b/scripts/ynh_mongo_db__2 index eabd74e..5b13477 100644 --- a/scripts/ynh_mongo_db__2 +++ b/scripts/ynh_mongo_db__2 @@ -314,7 +314,7 @@ ynh_install_mongo() { ynh_print_info --message="Installing MongoDB Community Edition ..." local mongo_debian_release=$(ynh_get_debian_release) - local mongo_packages="mongodb-org-server mongodb-database-tools mongodb-org-shell" + local mongo_packages="mongodb-org" if [[ $(cat /proc/cpuinfo) != *"avx"* && "$mongo_version" != "4.4" ]]; then #Sadly mongo 4.4 is the only version not requiring avx instruction set, so we will install it