Skip to content

Commit

Permalink
Merge branch 'main' into ft/upgrade_next_to_15
Browse files Browse the repository at this point in the history
  • Loading branch information
koechkevin committed Nov 26, 2024
2 parents 48e7f42 + af76eed commit 786c674
Show file tree
Hide file tree
Showing 349 changed files with 45,434 additions and 2,038 deletions.
9 changes: 0 additions & 9 deletions .eslintrc.js

This file was deleted.

3 changes: 0 additions & 3 deletions .estlintignore

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/climatemappedafrica-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ jobs:
uses: docker/build-push-action@v3
with:
build-args: |
HURUMAP_API_URL=${{ secrets.CLIMATEMAPPEDAFRICA_HURUMAP_API_URL }}
MONGO_URL=${{ secrets.CLIMATEMAPPEDAFRICA_MONGO_URL }}
NEXT_PUBLIC_APP_URL=${{ env.NEXT_PUBLIC_APP_URL }}
PAYLOAD_SECRET=${{ secrets.CLIMATEMAPPEDAFRICA_PAYLOAD_SECRET }}
Expand Down
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,7 @@ ARG NEXT_TELEMETRY_DISABLED \
SENTRY_AUTH_TOKEN \
SENTRY_ENVIRONMENT \
SENTRY_ORG \
SENTRY_PROJECT \
# Custom (runtime)
HURUMAP_API_URL
SENTRY_PROJECT

# This is in app-builder instead of base-builder just incase app-deps adds deps
COPY --from=climatemappedafrica-deps /workspace/node_modules ./node_modules
Expand Down
39 changes: 0 additions & 39 deletions apps/charterafrica/.eslintignore

This file was deleted.

11 changes: 0 additions & 11 deletions apps/charterafrica/.eslintrc.js

This file was deleted.

38 changes: 38 additions & 0 deletions apps/charterafrica/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
const eslintConfig = require("eslint-config-commons-ui/next");

module.exports = [
{
ignores: [
"**/node_modules",
"**/.pnp",
"**/.pnp.js",
"**/.pnpm-debug.log",
"**/dist/",
"**/coverage",
"**/.next/",
"**/out/",
"**/build/",
"**/.DS_Store",
"**/*.pem",
"**/npm-debug.log*",
"**/yarn-debug.log*",
"**/yarn-error.log*",
"**/.vercel",
"**/.now",
"**/.turbo",
"**/test-results/",
"**/playwright-report/",
"**/public/",
],
},
...eslintConfig,
{
settings: {
"import/resolver": {
webpack: {
config: "./eslint.webpack.config.js",
},
},
},
},
];
1 change: 0 additions & 1 deletion apps/charterafrica/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
"monaco-editor": "catalog:",
"next": "catalog:",
"next-seo": "catalog:",
"nodemailer-sendgrid": "catalog:",
"payload": "catalog:",
"prop-types": "catalog:",
"qs": "catalog:",
Expand Down
1 change: 0 additions & 1 deletion apps/charterafrica/playwright.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/no-extraneous-dependencies */
const defaultConfig = require("playwright-config-commons-ui");

const { use, webServer } = defaultConfig;
Expand Down
14 changes: 7 additions & 7 deletions apps/charterafrica/public/infographic/run_time_config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
window.data_file = './data/data.json';
window.data_country_file = './data/countries.json';
const s = document.createElement('script');
const n = document.getElementsByTagName('script')[0];
s.async = 1;
s.src = './static/js/bundle.js';
n.parentNode.insertBefore(s, n);
window.data_file = "./data/data.json";
window.data_country_file = "./data/countries.json";
const s = document.createElement("script");
const n = document.getElementsByTagName("script")[0];
s.async = 1;
s.src = "./static/js/bundle.js";
n.parentNode.insertBefore(s, n);
Loading

0 comments on commit 786c674

Please sign in to comment.