Skip to content

Commit

Permalink
Merge pull request #85 from dataforgoodfr/deployment-prod
Browse files Browse the repository at this point in the history
Deployment prod
  • Loading branch information
gmguarino authored Oct 11, 2024
2 parents 8828cb7 + a003ff6 commit 7baa5af
Show file tree
Hide file tree
Showing 177 changed files with 37,852 additions and 1,530 deletions.
7 changes: 3 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# !STARTERCONF Duplicate this to .env.local
# !STARTERCONF Duplicate this to .env

# DEVELOPMENT TOOLS
# Ideally, don't add them to production deployment envs
# !STARTERCONF Change to true if you want to log data
NEXT_PUBLIC_SHOW_LOGGER="true"

NEXT_PUBLIC_PINKBOMBS_DATA_URL="https://pinkbombsfkynigjl-pinkbombs-data.functions.fnc.fr-par.scw.cloud/api/v1/secure/graphs"
#NEXT_PUBLIC_PINKBOMBS_DATA_URL="https://pinkbombsfkynigjl-pinkbombs-data.functions.fnc.fr-par.scw.cloud:8080/"
NEXT_PUBLIC_PINKBOMBS_DATA_API_KEY="pinkbombs"
export PINKBOMBS_DATA_URL=https://pinkbombsfkynigjl-pinkbombs-data.functions.fnc.fr-par.scw.cloud/api/v1/secure
export PINKBOMBS_DATA_API_KEY=pinkbombs
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module.exports = {
"no-console": "warn",
"@typescript-eslint/explicit-module-boundary-types": "off",
"react/no-unescaped-entities": "off",
"@next/next/no-sync-scripts": "off",

"react/display-name": "off",
"react/jsx-curly-brace-presence": [
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ yarn-error.log*
CHANGELOG.md

pnpm-lock.yaml

dashboard
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ yarn dev

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. You can start editing the page by modifying `src/pages/index.tsx`.

### 4. Change defaults
### 4. Build and test

There are some things you need to change including title, urls, favicons, etc.
Run the followed command:

Find all comments with !STARTERCONF, then follow the guide.

Don't forget to change the package name in package.json
- Build the project: `yarn build`
- Launch linter: `yarn lint:strict`
- Launch Typecheck: `yarn typecheck`
- Launch Prettier: `yarn format:check`
- Launch Jest: `yarn test`

### 5. Commit Message Convention

Expand Down
52 changes: 52 additions & 0 deletions messages/en/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"components": {
"summary": {
"title": "page"
},
"edito": {
"link": "See more"
},
"shareLink": {
"blank": "new tab",
"twitter": "Twitter",
"linkedin": "Linkedin",
"website": "Website",
"email": "Email",
"newsletter": "Newsletter",
"instagram": "Instagram"
},
"chart": {
"loading": "Loading data.."
},
"calculator": {
"intro": "Here are the impacts of the salmon industry around the world since you opened this web page.",
"seconds": "seconds",
"second": "second"
},
"join": {
"main": {
"title": "Be the change.",
"intro": "Don't want to be part of this ecological and social disaster? Good news, solutions exist!",
"content": "<p><strong>Governments, businesses, and citizens can work together to be part of these solutions.</strong></p><ul><li><strong>Governments</strong> an regulate to abandon intensive farming of carnivorous fish - such as salmon and tuna - and to stop overfishing worldwide.</li> <li><strong>Businesses</strong> must commit to increasing plant-based options and developing low-trophic level aquaculture, such as algae and shellfish.</li><li> <strong>Individually,</strong> let's make the simple choice to exclude industrial salmon from our plates, in order to collectively accelerate the revolution towards a more plant-based food system that meets health, sustainability, and social justice imperatives.</li></ul>",
"act": "To reverse the trend and stop the disaster, urgent action is needed. We have levers for action!",
"link": "I act"
},
"alternatives": {
"title": "Food choices and their impact",
"intro": "What we choose to eat, sell, and produce has different impacts on the planet, people, and animals.",
"content": "<p>France, <strong>the largest European consumer</strong> and among the top 4 largest consumers of salmon in the world, bears a particular responsibility in shaping these choices.</p>",
"pdf": "https://raw.githubusercontent.com/dataforgoodfr/12_pinkbombs/main/download/Table_food_choices_simplified_en.pdf",
"data": "https://raw.githubusercontent.com/dataforgoodfr/12_pinkbombs/main/download/csv/foodchoices_text_7.csv.zip",
"artifact": "foodchoices_text_7.csv.zip",
"image": "https://raw.githubusercontent.com/dataforgoodfr/12_pinkbombs/main/download/graphs_image/foodchoices_7.png"
}
},
"metaChart": {
"source": "Main source",
"methodology": "Methodology",
"image": "Image",
"data": "Data",
"document": "PDF"
}
}
}
23 changes: 23 additions & 0 deletions messages/en/layout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"layout": {
"top": "Back to top",
"nav": {
"title": "main",
"story": "Story",
"dashboard": "Dashboard",
"act": "To act",
"about": "About"
},
"footer": {
"allRight": "All rights reserved",
"and": "and",
"donation": "Donate",
"legalNotice": "Legal notices"
}
},
"siteConfig": {
"title": "Pinkbombs",
"description": "Analyzing the impact of Salmon on the Environment, Ecosystem, Health and Communities.",
"url": "https://pinkbombs-app.vercel.app"
}
}
135 changes: 135 additions & 0 deletions messages/en/pages/about.json

Large diffs are not rendered by default.

51 changes: 51 additions & 0 deletions messages/en/pages/act.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"act": {
"meta": {
"title": "To act"
},
"title": "Good news: defusing the Pinkbombs is just a click away",
"company": {
"title": "I call on the responsible companies",
"content": "by sharing a pre-written information post that identifies them on Linkedin.",
"link": "Post on Linkedin",
"target": "https://www.linkedin.com/sharing/share-offsite/?url=https://pinkbombs.org/&text=Hey%20%40pure-salmon%2C%20en%20tant%20qu%27acteur%20majeur%20de%20l%27industrie%20du%20saumon%2C%20vous%20avez%20le%20pouvoir%20de%20changer%20vos%20pratiques%20et%20vous%20orienter%20vers%20proc%C3%A9d%C3%A9s%20plus%20%C3%A9thiques%20et%20respectueux%20de%20l%27environnement%20comme%20du%20saumon%20lui-m%C3%AAme.%0ASi%20vous%20voulez%20d%C3%A9couvrir%20la%20r%C3%A9alit%C3%A9%20de%20l%27industrie%20du%20saumon%2C%20allez%20visiter%20notre%20site%20%3A"
},
"territory": {
"title": "I say no to the salmon factory project on my territory",
"content": "The onshore salmon factory project called “Pure Salmon”, an initiative of the Singaporean investment fund 8F Asset Management, is under discussion near Bordeaux. Thanks to petitions signed by citizens, it was notably rejected in Pas-de-Calais and Brittany. Let's keep going!",
"link": "Sign the petition",
"target": "https://www.wesign.it/fr/environnement/non-a-lelevage-intensif-de-saumons-au-verdon-sur-mer"
},
"seastemik": {
"title": "I support Seastemik",
"content": "Seastemik is an association poum created in 2023 with the objective of accelerating our transition to a healthy Ocean. It raises awareness of the impacts of a food system that exploits the Ocean, supports citizen mobilizations, calls on politicians to get involved and supports the iodine revolution of companies by proposing positive solutions.<br />Every action counts! Join the wave of change and help Seastemik change the tide, for a <em>truly</em> living Ocean:",
"ctas": [
{
"label": "Donate on HelloAsso",
"target": "https://www.helloasso.com/associations/seastemik/formulaires/1"
},
{
"label": "Subscribe to the newsletter",
"target": "https://seastemik.org/newsletter"
},
{
"label": "Follow Seastemik",
"target": "https://seastemik.org/"
}
]
},
"eat": {
"title": "I leave salmon off my plate",
"content": "Ready to set out to leave salmon in the oceans and rivers? <br />What objective seems achievable to you? Leave it in our intention box to help the community grow!",
"link": "I'm participating",
"target": "https://forms.gle/5kNG7BDeZBQmq6vY9",
"image": "/images/act/no-eat-salmon.jpeg"
},
"report": {
"title": "Educate yourself and share to act better",
"content": "Reading and sharing Seastemik's report on the salmon industry helps deconstruct the distorted popular perception of salmon consumption. Enjoy reading!",
"link": "Read our report",
"target": "https://seastemik.org/publications"
}
}
}
Loading

0 comments on commit 7baa5af

Please sign in to comment.