- First visit logs in as a new guest through Keycloak without a form; the session, including an offline refresh token, is kept in local storage - Account menu on the home page: guests can log in or sign up, users can log out (which starts a new guest session) - The WebSocket client in core authenticates with the access token after connecting, reports "connected" once the server accepts it, and re-sends renewed tokens on the open connection - Game page shows player names; guests appear as "Guest 4F2A" - Auth channels, AuthUser and player names in UserConnectionInfo move to core and the backend uses them from there - Mobile keeps using userKey login for now
45 lines
1.2 KiB
JSON
45 lines
1.2 KiB
JSON
{
|
|
"name": "@mancala/frontend",
|
|
"version": "0.4.7",
|
|
"description": "Mancala Game Frontend",
|
|
"scripts": {
|
|
"dev": "parcel src/index.html",
|
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
"build": "parcel build src/index.html",
|
|
"start": "parcel",
|
|
"clean": "rm -rf dist/*"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "ISC",
|
|
"dependencies": {
|
|
"@mancala/core": "link:../../packages/core",
|
|
"@szhsin/react-menu": "^3.1.2",
|
|
"@types/": "szhsin/react-menu",
|
|
"@types/eventemitter2": "^4.1.0",
|
|
"@types/styled-jsx": "^3.4.4",
|
|
"@types/uuid": "^8.3.4",
|
|
"eventemitter2": "^6.4.7",
|
|
"i18next": "^23.11.5",
|
|
"mancala.js": "link:../../packages/mancala.js",
|
|
"notyf": "^3.10.0",
|
|
"oidc-client-ts": "3.5.0",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"react-i18next": "^14.1.2",
|
|
"react-router-dom": "6",
|
|
"styled-jsx": "^5.0.2",
|
|
"sweetalert": "^2.1.2",
|
|
"uuid": "^11.0.3"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.18.6",
|
|
"@parcel/transformer-svg-react": "^2.6.2",
|
|
"@types/react": "^17.0.11",
|
|
"@types/react-dom": "^17.0.8",
|
|
"parcel": "^2.6.2",
|
|
"process": "^0.11.10",
|
|
"typescript": "^4.7.4"
|
|
}
|
|
}
|