mirror of
https://github.com/YunoHost-Apps/fittrackee_ynh.git
synced 2024-09-03 18:36:16 +02:00
Merge pull request #5 from YunoHost-Apps/config_panel.toml
Config panel.toml
This commit is contained in:
commit
82bcbb56eb
6 changed files with 58 additions and 12 deletions
|
@ -20,7 +20,7 @@ FitTrackee allows you to track your outdoor activities (workouts) from gpx files
|
||||||
No mobile app has been developed yet, but several existing mobile apps can store workouts data locally and export them into a gpx file.
|
No mobile app has been developed yet, but several existing mobile apps can store workouts data locally and export them into a gpx file.
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 0.7.14~ynh2
|
**Shipped version:** 0.7.14~ynh3
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
|
||||||
|
|
||||||
Traqueur d’activités extérieures auto-hébergé 🚴
|
Traqueur d’activités extérieures auto-hébergé 🚴
|
||||||
|
|
||||||
**Version incluse :** 0.7.14~ynh2
|
**Version incluse :** 0.7.14~ynh3
|
||||||
|
|
||||||
## Captures d’écran
|
## Captures d’écran
|
||||||
|
|
||||||
|
|
47
config_panel.toml
Normal file
47
config_panel.toml
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
|
||||||
|
## -----------------------------------------------------------------------------
|
||||||
|
## IMPORTANT: In accordance with YunoHost's spirit, please keep things simple and
|
||||||
|
## do not overwhelm the admin with tons of misunderstandable or advanced settings.
|
||||||
|
## -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
version = "1.0"
|
||||||
|
|
||||||
|
|
||||||
|
[main]
|
||||||
|
name.en = "Main configuration"
|
||||||
|
name.fr = "Configuration principale"
|
||||||
|
services = ["__APP__", "__APP___workers"]
|
||||||
|
|
||||||
|
|
||||||
|
[main.config]
|
||||||
|
name.en = "Configuration options"
|
||||||
|
name.fr = "Options de configuration"
|
||||||
|
|
||||||
|
[main.config.data_dir]
|
||||||
|
ask.en = "Change data directory"
|
||||||
|
ask.fr = "Changer le répertoire de données"
|
||||||
|
type = "path"
|
||||||
|
default = "/home/yunohost.app/__APP__/"
|
||||||
|
help.en = "Change the data directory where are stored all the uploaded .gpx files and the profile pictures"
|
||||||
|
help.fr = "Change le répertoire de données où sont stockés tous les fichiers .gpx téléversés et les photos de profil"
|
||||||
|
bind = "UPLOAD_FOLDER:/var/www/__APP__/.env"
|
||||||
|
|
||||||
|
[main.config.weather_provider]
|
||||||
|
ask.en = "Change weather provider"
|
||||||
|
ask.fr = "Changer le fournisseur météo"
|
||||||
|
type = "select"
|
||||||
|
choices = ["", "darksky", "visualcrossing"]
|
||||||
|
default = "visualcrossing"
|
||||||
|
help.en = "Change your weather provider by choosing one of the proposed ones"
|
||||||
|
help.fr = "Changer votre fournisseur météo en choisissant un de ceux qui vous sont proposés"
|
||||||
|
bind = "WEATHER_API_PROVIDER:/var/www/__APP__/.env"
|
||||||
|
|
||||||
|
[main.config.WEATHER_API_KEY]
|
||||||
|
ask.en = "Change weather api key"
|
||||||
|
ask.fr = "Changer la clé api pour la météo"
|
||||||
|
type = "string"
|
||||||
|
help.en = "Set the api key given by the chosen weather provider"
|
||||||
|
help.fr = "Insérer la clé api donnée par le fournisseur météo choisi"
|
||||||
|
bind = "WEATHER_API_KEY:/var/www/__APP__/.env"
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@ After the installation, you can create your first user in your browser.
|
||||||
|
|
||||||
Then, to change it as admin user, you have to go to cli:
|
Then, to change it as admin user, you have to go to cli:
|
||||||
|
|
||||||
```python
|
```
|
||||||
pushd $install_dir/
|
pushd $install_dir/
|
||||||
pipenv shell
|
pipenv shell
|
||||||
ftcli users update <user> --set-admin true
|
ftcli users update <user> --set-admin true
|
||||||
```
|
```
|
||||||
|
@ -11,4 +11,4 @@ pushd $install_dir/
|
||||||
|
|
||||||
`$install_dir` has to be changed with the actual FitTrackee installed directory. Most of the time it will be `/var/www/fittrackee/`.
|
`$install_dir` has to be changed with the actual FitTrackee installed directory. Most of the time it will be `/var/www/fittrackee/`.
|
||||||
|
|
||||||
<user> has to be changed with the actual username the account creation has been done.
|
`<user>` has to be changed with the actual username the account creation has been done.
|
||||||
|
|
|
@ -2,13 +2,12 @@ Après l’installation, vous pouvez créer un utilisateur via le navigateur.
|
||||||
|
|
||||||
Pour faire de cet utilisateur un administrateur, vous devez utiliser la ligne de commande :
|
Pour faire de cet utilisateur un administrateur, vous devez utiliser la ligne de commande :
|
||||||
|
|
||||||
```python
|
|
||||||
pushd $install_dir/
|
|
||||||
pipenv shell
|
|
||||||
ftcli users update <utilisateur> --set-admin true
|
|
||||||
```
|
```
|
||||||
|
pushd $install_dir/
|
||||||
|
pipenv shell
|
||||||
|
ftcli users update <user> --set-admin true
|
||||||
|
```
|
||||||
|
|
||||||
`$install_dir` doit être modifié en l’adresse du répertoire où FitTrackee est installé. La majorité du temps ce sera `/var/www/fittrackee/`.
|
`$install_dir` doit être modifié en l’adresse du répertoire où FitTrackee est installé. La majorité du temps ce sera `/var/www/fittrackee/`.
|
||||||
|
|
||||||
<utilisateur> doit être remplacé par le nom d’utilisateur du compte créé.
|
`<utilisateur>` doit être remplacé par le nom d’utilisateur du compte créé.
|
||||||
|
|
|
@ -5,7 +5,7 @@ name = "FitTrackee"
|
||||||
description.en = "Self-hosted outdoor activity tracker 🚴"
|
description.en = "Self-hosted outdoor activity tracker 🚴"
|
||||||
description.fr = "Traqueur d’activités extérieures auto-hébergé 🚴"
|
description.fr = "Traqueur d’activités extérieures auto-hébergé 🚴"
|
||||||
|
|
||||||
version = "0.7.14~ynh2"
|
version = "0.7.14~ynh3"
|
||||||
|
|
||||||
maintainers = ["Thovi98"]
|
maintainers = ["Thovi98"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue