Skip to content

Commit

Permalink
Merge branch 'user-authenticate' of https://github.com/RENCI/APSViz-U…
Browse files Browse the repository at this point in the history
…I-V3 into issue-336-external-layers
  • Loading branch information
PhillipsOwen committed Jan 29, 2025
2 parents 7ceaa2e + ce7a6b7 commit 5d782d9
Show file tree
Hide file tree
Showing 23 changed files with 1,002 additions and 48 deletions.
81 changes: 71 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,21 @@
"@turf/flatten": "^7.1.0",
"axios": "^1.7.7",
"axios-retry": "^4.5.0",
"bcryptjs": "^2.4.3",
"core-js": "^3.38.1",
"cssify": "^0.8.0",
"d3": "^7.9.0",
"dayjs": "^1.11.13",
"dotenv": "^16.4.5",
"geostyler-sld-parser": "^6.1.2",
"html-to-image": "^1.11.11",
"isaac": "^0.0.5",
"leaflet": "^1.9.4",
"mapbox-gl": "^3.7.0",
"prop-types": "^15.8.1",
"react": "^18.3.1",
"react-beautiful-dnd": "^13.1.1",
"react-cookie": "^7.2.2",
"react-dom": "^18.3.1",
"react-draggable": "^4.4.6",
"react-leaflet": "^4.2.1",
Expand All @@ -88,6 +91,9 @@
"stream": "^0.0.3",
"ws": "^8.18.0"
},
"browser": {
"crypto": false
},
"overrides": {
"json5": "^2.2.2",
"lodash": "^4.17.11",
Expand Down
17 changes: 10 additions & 7 deletions src/app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Fragment } from 'react';
import { BrowserRouter, Route, Routes } from "react-router-dom";
import { Map } from '@components/map';
import { ObservationDialog } from "@components/dialog/observation-dialog";
import { ObservationDialog } from "@dialog/observation-dialog";
import { useLayers } from '@context';
import { Sidebar } from '@components/sidebar';
import { ControlPanel } from '@components/control-panel';
Expand All @@ -10,6 +10,7 @@ import { MapLegend, AdditionalMapLegend } from '@components/legend';
import { AlertUser } from '@components/alert-user';
import { Config } from '@components/config';
import { Acknowledgements } from "@components/acknowledgements";
import { Login, AddUser, AuthProvider, ProtectedRoute } from '@auth';

/**
* renders the main content
Expand Down Expand Up @@ -58,12 +59,14 @@ const Content = () => {
export const App = () => {
// render the application
return (
<Fragment>
<BrowserRouter>
<BrowserRouter>
<AuthProvider>
<Routes>
<Route path="/" element={ <Content/> } />
</Routes>
</BrowserRouter>
</Fragment>
<Route path="/" element={<ProtectedRoute><Content /></ProtectedRoute>}/>
<Route path="/login" element={<Login />} />
<Route path="/add-user" element={<AddUser />} />
</Routes>
</AuthProvider>
</BrowserRouter>
);
};
Loading

0 comments on commit 5d782d9

Please sign in to comment.