diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64bc86a..a88ef0f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,11 +50,15 @@ jobs: uses: actions/checkout@v4 - name: Prepare install.zip run: | + mkdir -p ./install/georiviere-public + cp .env.dist ./install/georiviere-public/.env + cp -r translations ./install/georiviere-public + cp -r src/customization ./install/georiviere-public + cp -r public/medias ./install/georiviere-public + cp ./install/docker-compose.yml ./install/georiviere-public + cp ./install/Dockerfile ./install/georiviere-public cd install - mkdir georiviere-public - cp -r * ./georiviere-public 2>/dev/null || : - cp .env.dist ./georiviere-public - zip -r ../install.zip georiviere-public/ + zip -r ../install.zip ./georiviere-public - name: Attach zip archive as release binary uses: skx/github-action-publish-binaries@master diff --git a/.gitignore b/.gitignore index 20d28f2..5398c59 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,4 @@ install/.env # typescript *.tsbuildinfo next-env.d.ts +/install/georiviere-public/ diff --git a/README.md b/README.md index 9ee85e4..2882952 100644 --- a/README.md +++ b/README.md @@ -21,15 +21,14 @@ Follow those instructions in order to install the application on your server : ```bash unzip install.zip cd georiviere-public -cp .env.dist .env ``` -2. Modify .env as needed and [change your customization](#customization) +2. Modify .env as needed and [change your customization](#customization) (take care it may be hidden by your file browser.) 3. Build your image ```bash docker compose build ``` -*Note : Whenever you need to change your translation or the .env. You have to rebuild the image.* +*Note : Whenever you need to change your translation. You have to rebuild the image.* 4. Launch the service : ```bash diff --git a/install/.env.dist b/install/.env.dist deleted file mode 100644 index c80c687..0000000 --- a/install/.env.dist +++ /dev/null @@ -1,2 +0,0 @@ -NEXT_PUBLIC_API_HOST="http(s)://" -NEXT_PUBLIC_PORTAL= diff --git a/install/customization/settings.json b/install/customization/settings.json deleted file mode 100644 index 858f124..0000000 --- a/install/customization/settings.json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "header": { - "logo": { - "src": "/medias/logo.svg" - } - }, - "footer": { - "partners": [ - { - "src": "https://randonature.parc-haut-jura.fr/medias/logos/logo_pnrhj_dark.png", - "label": "Parc naturel régional du Haut-Jura", - "url": "http://parc-haut-jura.fr/" - }, - { - "src": "https://randonature.parc-haut-jura.fr/medias/logos/logo_gtj_dark.png", - "label": "Grandes traversées du Haut-Jura", - "url": "https://www.gtj.asso.fr/" - }, - { - "src": "https://randonature.parc-haut-jura.fr/medias/logos/logo_region_aura_dark.png", - "label": "La Région Auvergne-Rhône-Alpes", - "url": "https://www.montagnes-du-jura.fr/" - } - ], - "informations": [ - { - "name": "Parc naturel régional du Haut-Jura", - "location": [ - [ - "29 Le Village", - "39310 LAJOUX" - ] - ], - "phone": [ - "03 84 34 12 30" - ], - "email": [ - "parc@parc-haut-jura.fr" - ] - } - ], - "links": [ - { - "label": "Mentions légales xxxx", - "url": "/page/mentions-legales" - }, - { - "label": "Georivière", - "url": "https://georiviere.fr/" - } - ], - "socialNetworks": [ - { - "label": "Facebook", - "url": "https://www.facebook.com/PNRHJ/", - "icon": "/medias/facebook.svg" - }, - { - "label": "YouTube", - "url": "https://www.youtube.com/channel/UC5UbalFTYO8BlYRa9qbZmaQ/", - "icon": "/medias/youtube.svg" - } - ] - }, - "homepage": { - "welcomeBanner": { - "images": [ - { - "url": "/medias/home.jpg" - } - ], - "shouldDisplayText": true - }, - "introduction": { - "title": "Découvez la démarche", - "images": [ - { - "url": "/medias/illustration.jpg" - } - ], - "content": "

sagittis sodales neque. Aenean porttitor nunc vitae nisi fermentum tincidunt. Duis at tellus sed risus rhoncus maximus et ut erat. Vestibulum eu tempus odio, ac commodo justo. Cras eget sem ac elit aliquam scelerisque. Nulla id turpis metus. Fusce vel risus lacinia, lobortis ipsum ut, gravida felis. Donec at sollicitudin mi. Fusce ut nibh at libero feugiat faucibus. Sed maximus justo a tellus consectetur, eget accumsan libero ultrices. Vivamus sagittis faucibus pretium. Donec dui tortor, condimentum eu finibus at, feugiat lacinia lorem.

Sed tristique libero quis posuere luctus. Cras et efficitur nisl. Ut porta, ligula at auctor auctor, arcu sem tempor urna, vel convallis dui dolor quis neque. Fusce id rutrum lectus. Suspendisse potenti. Cras sodales semper bibendum. Praesent et viverra nulla. Nunc viverra ut sapien id ultricies. Fusce mollis venenatis metus, id imperdiet diam congue nec. Mauris suscipit suscipit velit, nec maximus est convallis eleifend. Phasellus a elit velit. Proin maximus, enim et gravida imperdiet, nunc enim elementum est, ut consectetur erat diam vel felis. Quisque feugiat nisl malesuada, fringilla sem non, consectetur nisi.

" - }, - "suggestions": [ - { - "type": "static", - "title": "Connaissances", - "subtitle": "Parcourez les données et actions liées au cours d'eau sur le territoire", - "content": [ - { - "label": "Cours d'eau", - "description": "Naviguez sur la carte pour voir les informations détaillées sur les cours d'eau du territoire", - "images": [ - { - "thumbnail": "/medias/placeholder0.jpg" - } - ], - "href": "/map?layers=8,10,12,14" - }, - { - "label": "Connaissances", - "description": "Visualisez l'ensemble des observations réalisées conjointement par le parc et les contributeurs", - "images": [ - { - "thumbnail": "/medias/placeholder0.jpg" - } - ], - "href": "/map?layers=8,10,11,12,14" - }, - { - "label": "Actions", - "description": "Découvez les travaux du parc dans le cadre de la gestion du territoire aquatique (animation à venir, travaux, chantiers participatifs, etc.)", - "images": [ - { - "thumbnail": "/medias/placeholder0.jpg" - } - ], - "href": "/map?layers=8,10,12,14" - }, - { - "label": "Zones sensibles", - "description": "Explorez les zones de protection du biotope et de la biodiversité", - "images": [ - { - "thumbnail": "/medias/placeholder0.jpg" - } - ], - "href": "/map?layers=8,10,12,13,14" - } - ] - }, - { - "type": "observation", - "title": "Contributions", - "subtitle": "Citoyen, contribuez à la connaissance des rivières aux côtés des agents du parc" - }, - { - "type": "action", - "title": "Dernières contributions" - } - ] - } -} diff --git a/install/medias/apple-touch-icon.png b/install/medias/apple-touch-icon.png deleted file mode 100644 index d0ece52..0000000 Binary files a/install/medias/apple-touch-icon.png and /dev/null differ diff --git a/install/medias/facebook.svg b/install/medias/facebook.svg deleted file mode 100644 index 1917cd1..0000000 --- a/install/medias/facebook.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/install/medias/favicon-16x16.png b/install/medias/favicon-16x16.png deleted file mode 100644 index 878dc7e..0000000 Binary files a/install/medias/favicon-16x16.png and /dev/null differ diff --git a/install/medias/favicon.png b/install/medias/favicon.png deleted file mode 100644 index e4cc521..0000000 Binary files a/install/medias/favicon.png and /dev/null differ diff --git a/install/medias/home.jpg b/install/medias/home.jpg deleted file mode 100644 index b1ca580..0000000 Binary files a/install/medias/home.jpg and /dev/null differ diff --git a/install/medias/illustration.jpg b/install/medias/illustration.jpg deleted file mode 100644 index 76a3117..0000000 Binary files a/install/medias/illustration.jpg and /dev/null differ diff --git a/install/medias/logo.svg b/install/medias/logo.svg deleted file mode 100644 index 3ad9b92..0000000 --- a/install/medias/logo.svg +++ /dev/null @@ -1,18 +0,0 @@ - - - - \ No newline at end of file diff --git a/install/medias/placeholder.jpg b/install/medias/placeholder.jpg deleted file mode 100644 index f2f58a8..0000000 Binary files a/install/medias/placeholder.jpg and /dev/null differ diff --git a/install/medias/placeholder0.jpg b/install/medias/placeholder0.jpg deleted file mode 100644 index 04e337e..0000000 Binary files a/install/medias/placeholder0.jpg and /dev/null differ diff --git a/install/medias/placeholder1.jpg b/install/medias/placeholder1.jpg deleted file mode 100644 index 65024e1..0000000 Binary files a/install/medias/placeholder1.jpg and /dev/null differ diff --git a/install/medias/placeholder2.jpg b/install/medias/placeholder2.jpg deleted file mode 100644 index 96cb18f..0000000 Binary files a/install/medias/placeholder2.jpg and /dev/null differ diff --git a/install/medias/placeholder3.jpg b/install/medias/placeholder3.jpg deleted file mode 100644 index d8f4a19..0000000 Binary files a/install/medias/placeholder3.jpg and /dev/null differ diff --git a/install/medias/youtube.svg b/install/medias/youtube.svg deleted file mode 100644 index c13ae09..0000000 --- a/install/medias/youtube.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/install/translations/fr.json b/install/translations/fr.json deleted file mode 100644 index ab2c878..0000000 --- a/install/translations/fr.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "details": { - "closePage": "Fermer la fiche", - "descent": "Dénivelé", - "length": "Longueur", - "flow": "Écoulement", - "km": "km", - "kilometers": "kilomètres", - "m": "m", - "meters": "mètres" - }, - "home": { - "title": "Sentinelle des rivières : j'observe, je protège", - "punchline": "Citoyen, contribuez à la connaissance des rivières aux côtés des agents du Parc" - }, - "mapMenu": { - "search": "Rechercher", - "observation": "Ajouter une observation", - "details": "Fiche", - "map": "Carte" - }, - "observation": { - "cancel": "Annuler votre observation", - "loading": "Chargement de données vers le serveur", - "coordinatesHelptext": "Indiquez la position de l'observation sur la carte", - "submit": "Soumettre votre observation", - "title": "Observation", - "labelButton": "Ajouter une observation", - "photoLabel": "Photo", - "quality": { - "label": "Qualité", - "description": "Apportez des observations sur les propriétés des cours d'eau (pollution, température, développement algal, etc.)", - "shortDescription": "Apportez des observations sur les propriétés des cours d'eau" - }, - "fauna-flora": { - "label": "Faune et Flore", - "description": "Recensez les espèces de notre territoire", - "shortDescription": "Recensez les espèces de notre territoire" - }, - "quantity": { - "label": "Quantité", - "description": "Aidez-nous à répertorier les volumes des rivières (crue, débordement, assèchement, etc.)", - "shortDescription": "Répertorier les volumes des rivières" - }, - "damages": { - "label": "Dégâts potentiels", - "description": "Avertissez-nous pour tout incident sur la berge ou sur le lit d'un cours d'eau (embâque, érosion, etc.)", - "shortDescription": "Rapportez un incident sur la berge ou sur le lit d'un cours d'eau" - }, - "landscape": { - "label": "Éléments paysagers", - "description": "Lorem ipsum dolor site amet", - "shortDescription": "Lorem ipsum dolor site amet" - }, - "validation": { - "title": "Merci de votre contibution", - "content": "Votre contribution a bien été soumise. Elle sera publiée après vérifications." - }, - "error": { - "title": "Une erreur est survenue", - "required": "Ce champ est requis" - }, - "gdpr": "Texte RGPD consectetur adipiscing elit. In vitae elit a lorem tempus consequat. Mauris ultrices non risus vitae facilisis. Sed iaculis augue mi, sit amet hendrerit nunc vestibulum non. Nulla facilisi. Fusce placerat lectus non dui lacinia, in pellentesque eros bibendum." - }, - "map": { - "title": "Carte", - "label": "Filtrer sur la carte", - "loading": "Chargement de la carte", - "centerOnMap": "Centrer sur la carte", - "resetView": "Réinitialiser la position de la carte", - "geolocate": "Voir ma position", - "deleteFilterText": "Supprimer le filtre textuel" - }, - "searchBox": { - "label": "Recherchez votre rivière", - "navigate": "Naviguez directement sur la carte" - }, - "site": { - "title": "GeoRivière", - "description": "Gérez et suivez vos cours d'eau", - "externalLink": "Lien externe", - "followUs": "Suivez-nous sur", - "ourPage": "Notre page", - "notFound": "Page non trouvée", - "notFound-content": "Cette page n'existe pas ou plus.", - "menu": "Menu", - "openMenu": "Ouvrir le menu", - "prev": "Précédent", - "next": "Suivant" - }, - "theme": { - "toggle": "Thème {theme}", - "light": "clair", - "dark": "sombre" - } -} \ No newline at end of file diff --git a/translations/fr.json b/translations/fr.json index ab2c878..fa58182 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -93,4 +93,4 @@ "light": "clair", "dark": "sombre" } -} \ No newline at end of file +}