From 6c7200c84ca0fec3859c7fc386244f9c0a119235 Mon Sep 17 00:00:00 2001 From: Limezy Date: Tue, 20 Feb 2024 22:58:52 +0700 Subject: [PATCH] Config panel --- config_panel.toml | 12 +++++++----- manifest.toml | 10 +++------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/config_panel.toml b/config_panel.toml index 7bd938d..49dae20 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -1,8 +1,10 @@ version = "1.0" [main] - [main.main] - [main.main.CREATION_COMPTE] - ask.en = "Création de comptes" - type = "select" - choices = ["true", "false"] +name = "Moncycle.app configuration" + [main.comptes] + name = "comptes" + [main.comptes.CREATION_COMPTE] + ask.en = "Enable account creation" + type = "boolean" + default = "true" bind = ":__INSTALL_DIR__/config.php" \ No newline at end of file diff --git a/manifest.toml b/manifest.toml index f168d0a..ed6360f 100644 --- a/manifest.toml +++ b/manifest.toml @@ -32,13 +32,6 @@ ram.runtime = "50M" [install.init_main_permission] type = "group" - [install.CREATION_COMPTE] - ask.en = "Can accounts be created ?" - ask.fr = "Laisser la création de nouveaux comptes ouverte ?" - type = "select" - choices = ["true", "false"] - default = "true" - [resources] [resources.sources.main] url = "https://github.com/jean-io/moncycle.app/archive/2eaf8d5765423276f2f16816fb62218f6b311555.zip" @@ -56,3 +49,6 @@ ram.runtime = "50M" [resources.database] type = "mysql" + + [main.main.CREATION_COMPTE] + CREATION_COMPTE="true"