Skip to content

Commit

Permalink
Merge pull request #31 from aimementoring/feature/donate-with-nextjs
Browse files Browse the repository at this point in the history
Feature/donate with nextjs
  • Loading branch information
Cristian Campos authored Nov 25, 2019
2 parents 624be18 + c90903c commit 76e24fa
Show file tree
Hide file tree
Showing 406 changed files with 21,703 additions and 16,326 deletions.
59 changes: 59 additions & 0 deletions .copy.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
REACT_APP_AIRTABLE_API_KEY=keyQwkepkcSrWl1du
REACT_APP_AIRTABLE_UNIVERSITIES=app0cOinHqPnUCxv8

# REACT_APP_AIRTABLE_PROGRAM_BASE=appYBHhHUO92wVVmQ

REACT_APP_AIRTABLE_PROGRAM_BASE=appOb3djYNsRoz5sM
REACT_APP_AIRTABLE_STAFF_RECRUITMENT_BASE=appMULeuYX8iG3MwF
# REACT_APP_AIRTABLE_STAFF_RECRUITMENT_BASE=appiTNzrkMrckYbqk


REACT_APP_BUGSNAG_API_KEY=86d2b4e39996207965121833a890370d
# REACT_APP_CRAFT_API=https://aimeweb-backend.herokuapp.com/
# REACT_APP_CRAFT_API=http://192.168.33.10
REACT_APP_CRAFT_API=https://aimeweb-backend-staging.herokuapp.com/
HOST=127.0.0.1
AUTH0_RECRUITMENT_CLIENT_ID=[obtain_from_auth_0]
AUTH0_STAFF_CLIENT_ID=[obtain_from_auth_0]
AUTH0_DOMAIN=aimementoring-staging.auth0.com
REACT_APP_FILE_UPLOADER_API_KEY=AnpTaG2AITvSuOfoenIpKz
REACT_APP_BUGSNAG_KEY=a7e1073d7f3c8f5381afb5e8e68487ac
REACT_APP_HOST_ENV=development
REACT_APP_MENTOR_EOI_BASE_KEY=appfv6xbNhSMnOq1n
REACT_APP_PRO_IP_KEY=gXmk7M683Y6UBip

# PORTAL API DEV
REACT_APP_PORTAL_API=http://localhost:5001
# REACT_APP_PORTAL_API=https://aime-portal-api-staging.herokuapp.com


# APPAREL DEV OLD
# REACT_APP_SHOPIFY_ACCESS_TOKEN=535c29960e9fcb6390af679dc893ccec
# REACT_APP_SHOPIFY_URL=aimeapparel.myshopify.com

# APPAREL DEV
REACT_APP_SHOPIFY_ACCESS_TOKEN=a93e26c66798a13c9c9b4560784c26f2
REACT_APP_SHOPIFY_URL=aime-apparel-development.myshopify.com

# APPAREL PROD
# REACT_APP_SHOPIFY_ACCESS_TOKEN=560dd7f8110349a17d6e96c46d02a0ce
# REACT_APP_SHOPIFY_URL=aimementoring.myshopify.com


# CDN FOR IMAGES DEVELOPMENT
# REACT_APP_CDN_ROOT=https://dbhff1axysj9i.cloudfront.net

# CDN FOR IMAGES PROD
REACT_APP_CDN_ROOT=https://d2ylaz7bdw65jx.cloudfront.net

# REACT_APP_SONGBOOK_API_URL=https://aime-songbook-staging.herokuapp.com/graphql

REACT_APP_RAISELY_USERNAME=[email protected]
REACT_APP_RAISELY_PASSWORD=Lgw4)zvb
REACT_APP_RAISELY_ORGANISATIONUUID=7eafc9b2-404f-11e7-bc97-06facaa3db7b

REACT_APP_ASSETS_URL=https://aime-website.s3.amazonaws.com

REACT_APP_DONATE_USERNAME=[email protected]
REACT_APP_DONATE_PASSWORD=Lgw4)zvb
REACT_APP_DONATE_ORGANISATION_UUID=7eafc9b2-404f-11e7-bc97-06facaa3db7b
37 changes: 0 additions & 37 deletions .env.dev.example

This file was deleted.

70 changes: 36 additions & 34 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,44 +1,46 @@
REACT_APP_CDN=https://d2ylaz7bdw65jx.cloudfront.net
REACT_APP_STOREFRONT_ACCESS_TOKEN=560dd7f8110349a17d6e96c46d02a0ce
REACT_APP_AIRTABLE_API_KEY=keyQwkepkcSrWl1du
REACT_APP_AIRTABLE_UNIVERSITIES=app0cOinHqPnUCxv8
REACT_APP_AIRTABLE_PROGRAM_BASE=appYBHhHUO92wVVmQ
REACT_APP_AIRTABLE_STAFF_RECRUITMENT_BASE=appiTNzrkMrckYbqk
REACT_APP_BUGSNAG_API_KEY=aaaaaaaaaaa
# REACT_APP_CRAFT_API=https://aimeweb-backend.herokuapp.com/
# REACT_APP_CRAFT_API=http://192.168.33.10
PORT=3011
REACT_APP_ASSETS_URL=https://dbhff1axysj9i.cloudfront.net
REACT_APP_CRAFT_API=https://aimeweb-backend-staging.herokuapp.com/
HOST=127.0.0.1
AUTH0_RECRUITMENT_CLIENT_ID=[obtain_from_auth_0]
AUTH0_STAFF_CLIENT_ID=[obtain_from_auth_0]
AUTH0_DOMAIN=aimementoring-staging.auth0.com
REACT_APP_FILE_UPLOADER_API_KEY=AnpTaG2AITvSuOfoenIpKz
REACT_APP_BUGSNAG_KEY=a7e1073d7f3c8f5381afb5e8e68487ac
REACT_APP_HOST_ENV=development
REACT_APP_MENTOR_EOI_BASE_KEY=appfv6xbNhSMnOq1n
REACT_APP_PRO_IP_KEY=gXmk7M683Y6UBip
# PORTAL API DEV
REACT_APP_PORTAL_API=http://localhost:5001
# PORTAL API PROD
# REACT_APP_PORTAL_API=https://aime-portal-api.herokuapp.com
# APPAREL DEV
REACT_APP_SHOPIFY_ACCESS_TOKEN=a93e26c66798a13c9c9b4560784c26f2
REACT_APP_SHOPIFY_URL=aime-apparel-development.myshopify.com
# APPAREL PROD
# REACT_APP_SHOPIFY_ACCESS_TOKEN=560dd7f8110349a17d6e96c46d02a0ce
# REACT_APP_SHOPIFY_URL=aimementoring.myshopify.com
# CDN FOR IMAGES DEVELOPMENT
# REACT_APP_CDN_ROOT=https://dbhff1axysj9i.cloudfront.net
# CDN FOR IMAGES PROD
REACT_APP_CDN_ROOT=https://d2ylaz7bdw65jx.cloudfront.net
REACT_APP_PORTAL_API=https://aime-portal-api-staging.herokuapp.com
REACT_APP_THEME=purple
REACT_APP_INTERCOM_APP_ID=g36n1wzq

# -----------------------
# DONATE ----------------
# -----------------------
REACT_APP_DONATE_USERNAME=[email protected]
REACT_APP_DONATE_PASSWORD=Lgw4)zvb
REACT_APP_DONATE_ORGANISATION_UUID=7eafc9b2-404f-11e7-bc97-06facaa3db7b

# -----------------------
# AWS -------------------
# -----------------------
AWS_ACCESS_KEY_ID=AKIAWFCM2CEJYRNPCNUG
AWS_SECRET_ACCESS_KEY=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
AWS_DEFAULT_REGION=ap-southeast-2
REACT_APP_RAISELY_USERNAME=[email protected]
REACT_APP_RAISELY_PASSWORD=Lgw4)zvb
REACT_APP_RAISELY_ORGANISATIONUUID=7eafc9b2-404f-11e7-bc97-06facaa3db7b
# CONTENTFUL API KEY

# -----------------------
# AIRTABLE --------------
# -----------------------
REACT_APP_AIRTABLE_STAFF_RECRUITMENT_BASE=appiTNzrkMrckYbqk
REACT_APP_AIRTABLE_API_KEY=keyQwkepkcSrWl1du
REACT_APP_PITCH_YOURSELF_TO_AIME_ID=rec8N1DIykET8T9SF

# -----------------------
# CONTENTFUL API KEY ----
# -----------------------
REACT_APP_CONTENTFUL_SPACE_ID=iz0aikshgysc
REACT_APP_CONTENTFUL_CONTENT_TYPE=redirectEntries
REACT_APP_CONTENTFUL_ENTRY_KEY=3tMx2AccortPX9N15uGGgb
REACT_APP_CONTENTFUL_API_KEY=0cacfc910d0c5d6bce2c6cfedfa03bc050a1f2bddd42fa4e1a09fedf0c4959d3
REACT_APP_CONTENTFUL_API_KEY=0cacfc910d0c5d6bce2c6cfedfa03bc050a1f2bddd42fa4e1a09fedf0c4959d3

# -----------------------
# RAISELY API KEY -------
# -----------------------
REACT_APP_RAISELY_USERNAME=[email protected]
REACT_APP_RAISELY_PASSWORD=Lgw4)zvb
REACT_APP_RAISELY_ORGANISATIONUUID=7eafc9b2-404f-11e7-bc97-06facaa3db7b

36 changes: 0 additions & 36 deletions .env.production.example

This file was deleted.

37 changes: 0 additions & 37 deletions .env.staging.example

This file was deleted.

3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/node_modules
/build
/.next
27 changes: 27 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"env": {
"browser": true,
"es6": true
},
"extends": ["airbnb", "eslint:recommended", "plugin:react/recommended"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"React": "writable"
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["react"],
"rules": {
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": [0],
"react/jsx-props-no-spreading": [0],
"indent": ["error", 2]
}
}
101 changes: 101 additions & 0 deletions .gimbalrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
# Specify audits to run. Also include any plugins (like axe)
audits:
- axe
- size
- lighthouse
- heap-snapshot
- unused-source

configs:
comment:
# Only show failures in GitHub PR comments.
# Useful to pinpoint why a build has failed
onlyFailures: true

# Heap snapshot settings
heap-snapshot:
threshold:
Documents: 11
Frames: 5
JSHeapTotalSize: 13356000
JSHeapUsedSize: 10068000
Nodes: 800
RecalcStyleCount: 15
LayoutCount: 15

# Lighthouse settings
lighthouse:
skipAudits:
- uses-http2
- redirects-http
- uses-long-cache-ttl
- uses-text-compression
outputHtml: ./gimbal-artifacts/lighthouse.html
threshold:
accessibility: 95
"best-practices": 95
performance: 95
pwa: 95
seo: 95

# File and directory size settings
size:
- path: ./build/precache-*.js
maxSize: 10 KB
- path: ./build/static/js/[0-9]*.chunk.js
maxSize: 1 MB
- path: ./build/static/js/*.chunk.js
maxSize: 1 MB
- path: ./build/static/js/runtime*.js
maxSize: 10 KB
- path: ./build/index.html
maxSize: 10 KB
- path: ./build/favicon.ico
maxSize: 10 KB
- path: ./build/
maxSize: 18 MB

# Unused source settings
unused-source:
threshold:
- path: "**/*(private).*.chunk.css"
maxSize: 60%
- path: "**/!(private).*.chunk.css"
maxSize: 60%
- path: "**/*([0-9]).*.chunk.js"
maxSize: 90%
- path: "**/!([0-9]|main).*.chunk.js"
maxSize: 45%
- path: "**/(main).*.chunk.js"
maxSize: 50%

# Locations of reports. Useful for storing artifacts in CI
outputs:
# Only show failures in CLI
cli:
onlyFailures: true
html: ./gimbal-artifacts/results.html
json: ./gimbal-artifacts/results.json
markdown: ./gimbal-artifacts/results.md

# Plugins
plugins:
# Compare metrics to last-saved values
- plugin: "@modus/gimbal-plugin-last-value"
saveOnlyOnSuccess: false

# Save reports to a database. Needed for gimbal-plugin-last-value
- plugin: "@modus/gimbal-plugin-sqlite"
lastValue: true

# Axe a11y audits
- plugin: "@modus/gimbal-plugin-axe"
thresholds:
aria-allowed-attr: critical
color-contrast: serious
landmark-one-main: moderate
landmark-complementary-is-top-level: moderate
meta-viewport: critical
region: moderate
page-has-heading-one: moderate
scrollable-region-focusable: moderate
Loading

0 comments on commit 76e24fa

Please sign in to comment.