Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/save prediction #87

Closed
wants to merge 94 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
5e50776
split mougeojson into uploadable files
JavaRip Nov 12, 2022
1e1f435
add decompressed mou map files to gitignore
JavaRip Nov 12, 2022
49b64bb
add script to decompress mou geojson
JavaRip Nov 12, 2022
6d75dfb
Merge branch 'portsoc:master' into main
JavaRip Mar 7, 2024
f5f34b9
put old function into firebase
JavaRip Mar 7, 2024
d4fb99e
vite react typescript front end
JavaRip Mar 20, 2024
a4f55e4
nav to pages
JavaRip Mar 27, 2024
af76255
remove react svg & add ia logo
JavaRip Apr 1, 2024
124dc1f
rebuild model5 with dropdown json
JavaRip Apr 1, 2024
e486fcf
region page prototype
JavaRip Apr 1, 2024
d7f9203
add toolbar
JavaRip Apr 1, 2024
e52c5bc
add appbar
JavaRip Apr 1, 2024
d7f4678
add app bar
JavaRip Apr 1, 2024
24fa573
adjust language buttons
JavaRip Apr 1, 2024
c24dea1
draft landing page
JavaRip Apr 1, 2024
363179e
navigate from landing ot briefing page
JavaRip Apr 1, 2024
00c84d3
fix styling
JavaRip Apr 1, 2024
d1fffff
staining guide wip
JavaRip Apr 1, 2024
2c98559
staining wip
JavaRip Apr 1, 2024
6c030b5
depth wip
JavaRip Apr 2, 2024
c3e7afa
input depth
JavaRip Apr 2, 2024
110b497
save data for review page
JavaRip Apr 3, 2024
fe40fcd
draft review page
JavaRip Apr 3, 2024
d6d7e50
results WIP
JavaRip Apr 4, 2024
cefddee
Create CNAME
JavaRip Apr 10, 2024
8eb5223
Delete CNAME
JavaRip Apr 10, 2024
6ca9f81
Create CNAME
JavaRip Apr 10, 2024
d3dfffe
Delete CNAME
JavaRip Apr 10, 2024
05e2885
Create CNAME
JavaRip Apr 10, 2024
04e37bd
Update CNAME
JavaRip Apr 10, 2024
8038f36
new estimator wip
JavaRip Apr 16, 2024
7bf132f
refactor estimator
JavaRip Apr 16, 2024
ccb6209
error fixes
JavaRip Apr 16, 2024
889193e
placeholder multi language proof of concept
JavaRip Apr 16, 2024
b79edd9
add bengali warning messages
JavaRip Apr 17, 2024
5cee198
add bengali language support
JavaRip Apr 18, 2024
e7b7e22
add form validation to region
JavaRip Apr 18, 2024
7fdea7f
change Object values return
JavaRip Apr 18, 2024
0f60414
fix unbuildable component
JavaRip Apr 24, 2024
6e95e6f
Merge pull request #1 from JavaRip/feature/react-ui
JavaRip Apr 26, 2024
d440242
preview release build
JavaRip Apr 26, 2024
a131782
replace docs dir
JavaRip Apr 26, 2024
63c736a
fix build root dir
JavaRip Apr 26, 2024
218ed45
fix base path in config
JavaRip Apr 26, 2024
8d7f104
build config change
JavaRip Apr 26, 2024
c7695da
Create CNAME
JavaRip Apr 26, 2024
7e96c67
remove base url for use with domain name
JavaRip Apr 26, 2024
b76e93f
add new build with changes
JavaRip Apr 26, 2024
f38fa07
Create CNAME
JavaRip Apr 26, 2024
6d965f3
translations wip
JavaRip May 30, 2024
568bc1e
add privacy policy
JavaRip May 30, 2024
617979f
update estimate texts
JavaRip May 30, 2024
3fab876
Merge pull request #2 from JavaRip/feature/translations
JavaRip May 30, 2024
5442dcd
Merge pull request #3 from JavaRip/main
JavaRip May 30, 2024
d231700
remove erroneous file
JavaRip May 30, 2024
b5d04b0
update release
JavaRip May 30, 2024
570067d
add & use predictor storage class
JavaRip Jun 13, 2024
63d5ad2
further implement storage class
JavaRip Jun 13, 2024
9d6dae8
add semi colon rule and fix linter
JavaRip Jun 13, 2024
c962855
Merge pull request #4 from JavaRip/feature/data-persistence-tidyup
JavaRip Jun 13, 2024
b14709b
fix includ in tsconfig to exclude js
JavaRip Jun 13, 2024
5c1b8e2
add translations
JavaRip Jun 14, 2024
e526f7b
change labels of region selector
JavaRip Jun 14, 2024
e42b1f0
add dropdown region translations
JavaRip Jun 16, 2024
8a0f328
change npm ci to npm i
JavaRip Jun 16, 2024
48f9588
add font to node modules
JavaRip Jun 16, 2024
b6a0d19
revert npm ci
JavaRip Jun 16, 2024
389b996
Merge pull request #5 from JavaRip/feature/region-translations
JavaRip Jun 16, 2024
175da45
Merge branch 'alpha-release' into main
JavaRip Jun 16, 2024
88e1bee
update vite config
JavaRip Jun 16, 2024
3b925ab
update base path
JavaRip Jun 16, 2024
f4ceec4
update build
JavaRip Jun 16, 2024
9d5e58d
update path in build
JavaRip Jun 16, 2024
e104f64
update base path
JavaRip Jun 16, 2024
4ea7979
update base path
JavaRip Jun 16, 2024
d73cddf
update build
JavaRip Jun 16, 2024
8817265
update source path to iarsenic.com
JavaRip Jun 16, 2024
820504a
fix base path :palm:
JavaRip Jun 16, 2024
fcc71e5
update build
JavaRip Jun 16, 2024
cece4a7
rename dist to docs
JavaRip Jun 16, 2024
81aa0c1
round unit conversions
JavaRip Jun 18, 2024
e34cd4b
add flooding model & additional tweaks
JavaRip Jun 18, 2024
85eda3e
add warning box on briefing
JavaRip Jun 18, 2024
6737b7b
Merge pull request #7 from JavaRip/feature/add-flooding
JavaRip Jun 18, 2024
7c56e91
refactor filestructure
JavaRip Jun 18, 2024
fa11ad5
add route to save prediction data
JavaRip Jun 19, 2024
53d8f01
get region from geolocation
JavaRip Jun 20, 2024
eddacd9
optimise loading regions
JavaRip Jun 25, 2024
769084f
provide user feedback when loading geodata
JavaRip Jun 26, 2024
78f2139
remove build from git
JavaRip Jun 26, 2024
6621cee
remove cached static files
JavaRip Jun 26, 2024
945b027
change static to directory
JavaRip Jun 26, 2024
7107d72
Merge pull request #8 from JavaRip/feature/geolocate-region
JavaRip Jun 26, 2024
2922b1e
add id and save user session in firestore
JavaRip Jun 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ preprocessing/data-import/r-data-csv/*.csv
preprocessing/data-import/consolidatedCsv.csv
data/data++
tmp
preprocessing/geodata/maps/dist/mou/*.geojson
firebase-functions/geodata/
firebase-functions/static/
9 changes: 9 additions & 0 deletions app/.env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# local deployment
# firebase emulators:start

# VITE_APP_BASE_PATH="/iarsenic-staging/us-central1/default" # staging
# VITE_APP_BASE_PATH="/iarsenic/us-central1/default" # production

# firebase deploy

# VITE_APP_BASE_PATH="/default" # staging & production
20 changes: 20 additions & 0 deletions app/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
'semi': ['error', 'always'], // Require semicolons
},
}

26 changes: 26 additions & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Logs
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?

.env
30 changes: 30 additions & 0 deletions app/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

- Configure the top-level `parserOptions` property like this:

```js
export default {
// other rules...
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
}
```

- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
13 changes: 13 additions & 0 deletions app/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="logo.png"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>iArsenic</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading
Loading