lot of new functionalities

This commit is contained in:
Arnaud Delcasse
2025-10-14 18:11:13 +02:00
parent a6f70a6e85
commit d992a7984f
164 changed files with 15113 additions and 9442 deletions

View File

@@ -14,7 +14,15 @@ func ReadConfig() (*viper.Viper, error) {
"public_dir": "template/default/public",
},
"server": map[string]any{
"listen": "0.0.0.0:9000",
"listen": "0.0.0.0:9000", // DEPRECATED
"web": map[string]any{
"enabled": true,
"listen": "0.0.0.0:8080",
},
"mcp": map[string]any{
"enabled": false,
"listen": "0.0.0.0:8081",
},
},
"identification": map[string]any{
"sessions": map[string]any{
@@ -113,10 +121,15 @@ func ReadConfig() (*viper.Viper, error) {
},
},
"journeys": map[string]any{
"enabled": true,
"enabled": true,
"search_view": "tabs",
},
"solidarity_transport": map[string]any{
"enabled": true,
"pagination": map[string]any{
"trips_items_per_page": 10,
"drivers_items_per_page": 10,
},
"drivers": map[string]any{
"documents_types": []string{"membership_form", "driving_licence", "identity_proof", "other"},
"validated_profile": map[string]any{
@@ -150,9 +163,24 @@ func ReadConfig() (*viper.Viper, error) {
},
},
},
"booking_motivations": []map[string]string{
{"value": "Administratif", "label": "Administratif (trajet garanti)"},
{"value": "Commerce", "label": "Commerce"},
{"value": "Courses", "label": "Courses"},
{"value": "Insertion", "label": "Insertion (trajet garanti)"},
{"value": "Loisirs", "label": "Loisirs"},
{"value": "Visite à un proche", "label": "Visite à un proche"},
{"value": "Santé", "label": "Santé (trajet garanti)"},
{"value": "", "label": "Autre "},
},
"guaranteed_trip_motivations": []string{"Santé", "Insertion", "Administratif"},
},
"organized_carpool": map[string]any{
"enabled": true,
"pagination": map[string]any{
"trips_items_per_page": 10,
"drivers_items_per_page": 10,
},
"drivers": map[string]any{
"documents_types": []string{"membership_form", "driving_licence", "identity_proof", "other"},
"validated_profile": map[string]any{
@@ -163,6 +191,18 @@ func ReadConfig() (*viper.Viper, error) {
},
},
},
"booking_motivations": []map[string]string{
{"value": "Administratif", "label": "Administratif"},
{"value": "Commerce", "label": "Commerce"},
{"value": "Courses", "label": "Courses"},
{"value": "Insertion", "label": "Insertion"},
{"value": "Loisirs", "label": "Loisirs"},
{"value": "Travail", "label": "Travail"},
{"value": "Formation", "label": "Formation"},
{"value": "Visite à un proche", "label": "Visite à un proche"},
{"value": "Santé", "label": "Santé"},
{"value": "", "label": "Autre "},
},
},
"vehicles": map[string]any{
"enabled": true,
@@ -170,6 +210,10 @@ func ReadConfig() (*viper.Viper, error) {
"vehicles_management": map[string]any{
"enabled": true,
},
"fleets": map[string]any{
"vehicle_types": []string{"Voiture", "Voiture sans permis", "Scooter", "Trotinette", "Vélo électrique"},
"vehicle_optional_fields": []map[string]any{},
},
"agenda": map[string]any{
"enabled": true,
},
@@ -178,6 +222,7 @@ func ReadConfig() (*viper.Viper, error) {
},
"support": map[string]any{
"enabled": true,
"email": "support@mobicoop.fr",
},
},
"geo": map[string]any{
@@ -208,6 +253,10 @@ func ReadConfig() (*viper.Viper, error) {
"communes": "https://etalab-datasets.geo.data.gouv.fr/contours-administratifs/latest/geojson/communes-50m.geojson",
},
},
"filters": map[string]any{
"enabled": false,
"geographies": []map[string]string{},
},
},
}
v := viper.New()