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

add simple frontend as a how to and test harness #162

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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
Loading