-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update server dependencies * UnderConstruction component for placeholder situations * add react-table dependency * NewManifestBtn component * add 'Getting Started' card to homepage
- Loading branch information
1 parent
f10ca1a
commit c3b05c1
Showing
14 changed files
with
186 additions
and
37 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from 'react'; | ||
import { Button } from 'react-bootstrap'; | ||
import { useNavigate } from 'react-router-dom'; | ||
|
||
interface NewManifestBtnProps { | ||
siteId?: string; | ||
} | ||
|
||
export function NewManifestBtn({ siteId }: NewManifestBtnProps) { | ||
const navigate = useNavigate(); | ||
|
||
// By default, don't create a new manifest as a specific site. | ||
let newManifestURL = '/manifest/new'; | ||
if (siteId) { | ||
newManifestURL = `/site/${siteId}/manifest/new`; | ||
} | ||
|
||
return ( | ||
<Button variant={'success'} onClick={() => navigate(newManifestURL)}> | ||
New Manifest | ||
</Button> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { HtCard } from 'components/Ht'; | ||
import React from 'react'; | ||
import { Card, Col, Container, Row } from 'react-bootstrap'; | ||
import { useTitle } from 'hooks'; | ||
import underConstruction from '/under-construction.png'; | ||
import { Link } from 'react-router-dom'; | ||
|
||
/** | ||
* Static page that talks about Haztrak's licensing, maybe versioning in future | ||
* @constructor | ||
* @example "<About/>" | ||
*/ | ||
export function UnderConstruction() { | ||
useTitle('Under Construction'); | ||
return ( | ||
<Container fluid className="text-lg-center py-4"> | ||
<Card bg={'warning'}> | ||
<HtCard.Body> | ||
<Card.Title> | ||
<h1 className="fw-bold">Under Construction!</h1> | ||
</Card.Title> | ||
<Col> | ||
<Row> | ||
<Col className="d-flex justify-content-center"> | ||
<div className="rounded-circle bg-light p-5"> | ||
<img | ||
src={underConstruction} | ||
alt="under construction sign" | ||
width={200} | ||
height={'auto'} | ||
/> | ||
</div> | ||
</Col> | ||
</Row> | ||
<Row> | ||
<h5 className="d-flex justify-content-center"> | ||
Looks like you've found something we haven't completed yet. | ||
</h5> | ||
<h5 className="d-flex justify-content-center">Don't worry, we're working on it.</h5> | ||
<p> | ||
If you'd like to show your interest for this feature,{' '} | ||
<Link to={'https://github.com/USEPA/haztrak/issues'} target="_blank"> | ||
let us know on our issue tracker | ||
</Link>{' '} | ||
by commenting on an existing issue or opening a new one. | ||
</p> | ||
</Row> | ||
</Col> | ||
</HtCard.Body> | ||
</Card> | ||
</Container> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { UnderConstruction } from 'features/comingSoon/UnderConstruction'; | ||
|
||
export { UnderConstruction }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
asgiref==3.6.0 | ||
Django==4.2 | ||
Django==4.2.1 | ||
django-celery-results==2.5.0 | ||
django-cors-headers==3.14.0 | ||
django-extensions==3.2.1 | ||
django-celery-beat==2.5.0 | ||
djangorestframework==3.14.0 | ||
gunicorn==20.1.0 | ||
emanifest==3.0.3 | ||
psycopg[binary]==3.1.8 | ||
psycopg[binary]==3.1.9 | ||
pytz==2023.3 | ||
requests-toolbelt==0.10.1 | ||
sqlparse==0.4.3 | ||
sqlparse==0.4.4 | ||
tzdata==2023.3 | ||
whitenoise==6.4.0 | ||
celery==5.2.7 | ||
redis==4.5.4 | ||
drf-spectacular==0.26.1 | ||
drf-spectacular==0.26.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
pytest-mock==3.10.0 | ||
pre-commit==3.2.0 | ||
pytest==7.2.2 | ||
pre-commit==3.3.1 | ||
pytest==7.3.1 | ||
pytest-django==4.5.2 | ||
responses==0.23.1 | ||
ruff==0.0.259 | ||
black==23.1.0 | ||
ruff==0.0.265 | ||
black==23.3.0 | ||
-r requirements.txt |