Compare commits

..

No commits in common. "f9cb798dd8b80a21806a2515cf5e4946132e5d3a" and "dc3fd61bd3de7aff0d4778dd94d7269c931f3b0d" have entirely different histories.

8 changed files with 16 additions and 38 deletions

8
.gitignore vendored
View File

@ -35,11 +35,3 @@ out/
### VS Code ###
.vscode/
### React (prod build) static files ###
backend/src/main/resources/static/asset-manifest.json
backend/src/main/resources/static/favicon.ico
backend/src/main/resources/static/index.html
backend/src/main/resources/static/manifest.json
backend/src/main/resources/static/robots.txt
backend/src/main/resources/static/static/*

View File

@ -1,20 +0,0 @@
package djmil.cordacheckers;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import jakarta.servlet.http.HttpServletRequest;
@Controller
public class ReactAppController {
// This controller simply redirects all UI related routes
// to index.html, allowing react and react-router to work its magic
@GetMapping(value = { "/", "/games/*","/about","/leaderboard" })
@PutMapping("/error")
public String getIndex(HttpServletRequest inRequest) {
return "/index.html";
}
}

View File

@ -8,6 +8,4 @@ corda.root.login=admin
corda.root.passw=admin
corda.client.maxPollAttempts=30
server.port=8081
#logging.level.org.springframework.web=DEBUG
server.port=8081

View File

@ -13,9 +13,6 @@
"react-scripts": "^5.0.1",
"web-vitals": "^3.5.0"
},
"optionalDependencies": {
"fsevents": "^2.x.x"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
@ -25,7 +22,8 @@
"proxy": "http://localhost:8081",
"eslintConfig": {
"extends": [
"react-app"
"react-app",
"react-app/jest"
]
},
"browserslist": {

View File

@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Corda Chechers</title>
<title>React App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>

BIN
webapp/public/logo192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

BIN
webapp/public/logo512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

View File

@ -1,11 +1,21 @@
{
"short_name": "Checkers",
"name": "Corda Checkers",
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",