Skip to content

Commit

Permalink
added frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
austinorr committed Jan 30, 2024
1 parent d33cd91 commit 42572e8
Show file tree
Hide file tree
Showing 79 changed files with 15,327 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nereid/nereid/data/default_data/state/region/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -338,3 +338,12 @@ project_reference_data:
short_name: dwFC
concentration_unit: MPN/_100mL
load_unit: mpn
project_spatial_data:
design_storm:
name: 85_percentile_design_storm_depth
url: "https://ocgis.com/arcpub/rest/services/Environmental_Resources/Hydrologic_Response_Unit/FeatureServer/3/query?where=1%3D1&outFields=*&returnGeometry=true&f=geojson"
field: RainfallZo
ref_data_key:
name: ref_data_key_rainzone
url: "https://ocgis.com/arcpub/rest/services/Environmental_Resources/Hydrologic_Response_Unit/FeatureServer/7/query?where=1%3D1&outFields=*&returnGeometry=true&f=geojson"
field: MODEL_BASIN
6 changes: 6 additions & 0 deletions nereid/nereid/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ async def redoc_html() -> HTMLResponse:
async def check_config(context=Depends(get_valid_context)):
return context

app.mount(
"/app",
StaticFiles(directory=str(static_path / "frontend/dist"), html=True),
name="app",
)

@app.get("/ping")
@app.get("/")
async def ping(): # pragma: no cover
Expand Down
3 changes: 3 additions & 0 deletions nereid/nereid/static/frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
!lib
!dist

Large diffs are not rendered by default.

707 changes: 707 additions & 0 deletions nereid/nereid/static/frontend/dist/assets/index-m-Qkl2xL.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions nereid/nereid/static/frontend/dist/assets/vendor-QiQdsv75.js

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions nereid/nereid/static/frontend/dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://unpkg.com/tabulator-tables@4.9.3/dist/css/tabulator.min.css"
rel="stylesheet"
/>
<script
type="text/javascript"
src="https://oss.sheetjs.com/sheetjs/xlsx.full.min.js"
></script>

<title>Nereid UI</title>
<script type="module" crossorigin src="/app/assets/index-m-Qkl2xL.js"></script>
<link rel="modulepreload" crossorigin href="/app/assets/vendor-QiQdsv75.js">
<link rel="stylesheet" crossorigin href="/app/assets/index-DmpQbGXd.css">
</head>
<body></body>
</html>
Loading

0 comments on commit 42572e8

Please sign in to comment.