Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
codaisa committed Jan 25, 2024
1 parent 493636a commit 1a4c53e
Show file tree
Hide file tree
Showing 115 changed files with 19,986 additions and 19,524 deletions.
2 changes: 1 addition & 1 deletion .env_example
Original file line number Diff line number Diff line change
@@ -1 +1 @@
REACT_APP_API_URL=http://localhost:3000/
REACT_APP_API_URL=http://localhost:3000/
4 changes: 2 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules/
dist/
node_modules/
dist/
env.d.ts
64 changes: 32 additions & 32 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
{
"extends": [
"import",
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:import/recommended",
"plugin:jsx-a11y/recommended",
"plugin:@typescript-eslint/recommended",
"eslint-config-prettier"
],
"settings": {
"import/resolver": {
"typescript": {},
"alias": {
"map": [["@", "./src"]]
}
}
},
"rules": {
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": true,
"argsIgnorePattern": "^_"
}
],
"react/react-in-jsx-scope": "off"
}
}
{
"extends": [
"import",
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:import/recommended",
"plugin:jsx-a11y/recommended",
"plugin:@typescript-eslint/recommended",
"eslint-config-prettier"
],
"settings": {
"import/resolver": {
"typescript": {},
"alias": {
"map": [["@", "./src"]]
}
}
},
"rules": {
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": true,
"argsIgnorePattern": "^_"
}
],
"react/react-in-jsx-scope": "off"
}
}
80 changes: 40 additions & 40 deletions .github/workflows/nepal.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
name: Nepal - Deploy

on:
push:
branches:
- main
- nepal

jobs:
build:
name: Deploy to Nepal server
runs-on: ubuntu-latest
env:
VITE_API_URL: https://coachdigital.org/np/api/
VITE_COUNTRY: np
VITE_MAX_REGION_LEVEL: 2
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v3

- name: 🛠️ Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: 🛠️ Install dependencies
run: npm install

- name: 🚀 Build
run: npm run build

- name: 🕵🏻 Copy file via ssh key
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
source: 'dist'
target: '/usr/share/nginx/html/np/admin'
strip_components: 1
name: Nepal - Deploy

on:
push:
branches:
- main
- nepal

jobs:
build:
name: Deploy to Nepal server
runs-on: ubuntu-latest
env:
VITE_API_URL: https://coachdigital.org/np/api/
VITE_COUNTRY: np
VITE_MAX_REGION_LEVEL: 2
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v3

- name: 🛠️ Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: 🛠️ Install dependencies
run: npm install

- name: 🚀 Build
run: npm run build

- name: 🕵🏻 Copy file via ssh key
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
source: 'dist'
target: '/usr/share/nginx/html/np/admin'
strip_components: 1
76 changes: 38 additions & 38 deletions .github/workflows/sierra-leone.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
name: Sierra Leone - deploy

on:
push:
branches:
- main

jobs:
build:
name: Deploy to Sierra leone server
runs-on: ubuntu-latest
env:
VITE_API_URL: https://coachdigital.org/sl/api/
VITE_COUNTRY: sl
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v3

- name: 🛠️ Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: 🛠️ Install dependencies
run: npm install

- name: 🚀 Build
run: npm run build

- name: 🕵🏻 Copy file via ssh key
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
source: 'dist'
target: '/usr/share/nginx/html/sl/admin'
strip_components: 1
name: Sierra Leone - deploy

on:
push:
branches:
- main

jobs:
build:
name: Deploy to Sierra leone server
runs-on: ubuntu-latest
env:
VITE_API_URL: https://coachdigital.org/sl/api/
VITE_COUNTRY: sl
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v3

- name: 🛠️ Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: 🛠️ Install dependencies
run: npm install

- name: 🚀 Build
run: npm run build

- name: 🕵🏻 Copy file via ssh key
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
source: 'dist'
target: '/usr/share/nginx/html/sl/admin'
strip_components: 1
52 changes: 26 additions & 26 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# Enviroment variables
.env
# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# Enviroment variables
.env
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules/
node_modules/
dist/
18 changes: 9 additions & 9 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"trailingComma": "all",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"printWidth": 120,
"bracketSpacing": true,
"endOfLine": "lf"
}
{
"trailingComma": "all",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"printWidth": 120,
"bracketSpacing": true,
"endOfLine": "lf"
}
40 changes: 20 additions & 20 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
MIT License

Copyright (c) 2023 The World Bank Group

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
MIT License

Copyright (c) 2023 The World Bank Group

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
42 changes: 21 additions & 21 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
MIT License

Copyright (c) 2024 International Bank for Reconstruction and Development

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
MIT License
Copyright (c) 2024 International Bank for Reconstruction and Development
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 1a4c53e

Please sign in to comment.