Skip to content

Commit

Permalink
Merge pull request #561 from Artsdatabanken/deploy-7wms-assistent
Browse files Browse the repository at this point in the history
Upgrade dependencies
  • Loading branch information
bjornreppen authored Dec 18, 2023
2 parents f8f3d7f + 84b7869 commit 0826815
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 35 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
mkdir build/static
ls -la wms-assistent/build/
cp -R wms-assistent/build/ build/static/
cp -R wms-assistent/build/static/* build/static/
tar czf $(basename $GITHUB_REPOSITORY).tar.gz -C build .
1 change: 0 additions & 1 deletion wms-assistent/.env

This file was deleted.

48 changes: 24 additions & 24 deletions wms-assistent/package-lock.json

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

11 changes: 5 additions & 6 deletions wms-assistent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@mui/icons-material": "^5.15.0",
"@mui/lab": "^5.0.0-alpha.156",
"@mui/material": "^5.15.0",
"eslint-config-prettier": "^7.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react-hooks": "^4.6.0",
Expand All @@ -19,17 +19,17 @@
"proj4": "^2.9.2",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-error-boundary": "^4.0.11",
"react-error-boundary": "^4.0.12",
"react-leaflet": "^4.2.1",
"react-router-dom": "^6.20.1",
"react-router-dom": "^6.21.0",
"react-scripts": "^5.0.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"deploy": "scp -r build/* grunnkart@hydra:~/okologiskegrunnkart/django/okologiskegrunnkart/static"
"deploy": "scp -r build/* grunnkart@hydra:~/forvaltningsportal/static"
},
"eslintConfig": {
"extends": [
Expand All @@ -41,6 +41,5 @@
"not dead",
"not ie <= 11",
"not op_mini all"
],
"homepage": "/static/"
]
}
5 changes: 1 addition & 4 deletions wms-assistent/src/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, {Suspense} from "react";
import homepage from "../package.json";
import TjenesteContainer from "./TjenesteContainer";
import CssBaseline from "@mui/material/CssBaseline";
import AuthenticationContextProvider from "./Kart/AuthenticationContextProvider";
Expand All @@ -8,8 +7,6 @@ import {
BrowserRouter,
} from "react-router-dom";

const basename = process.env.NODE_ENV === "development" ? undefined : homepage;

const logError = (error, info) => {
console.log(error, info)
// Do something with the error, e.g. log to an external API
Expand All @@ -24,7 +21,7 @@ function App() {
<Suspense fallback={<Loading />}>
<ErrorBoundary FallbackComponent={ErrorFallback} onError={logError}>
<AuthenticationContextProvider>
<BrowserRouter basename={basename}>
<BrowserRouter basename={"static"}>
<CssBaseline />
<div>
<TjenesteContainer />
Expand Down

0 comments on commit 0826815

Please sign in to comment.