forked from cerc-io/snowballtools-base
Nabarun Gogoi
ef0eac8293
* Create web3 modal provider with SIWE * Add auth router to handle SIWE authentication * Use axios instance to make request * Add button for SIWE authentication * Add changes to access session in web-app GQL requests * Add auth check in GQL context and load/create user * Use authenticated user from context * Redirect to sign in page if unauthenticated and logout button * Change sign-in route to login * Get project domain from config file * Set user ethAddress column as unique * Use formatted user name * Get session secret and origin url from config file * Add unique constraint for eth address * Get secure and samesite from origin url * Get wallet connect id and backend url from env file * Format user email in member tab panel * Add backend config isProduction to set trust proxy * Use only one server url config * Add tool tip for displaying email * Add trustProxy and domain in server.session config * Add SERVER_GQL_PATH constant in frontend --------- Co-authored-by: neeraj <neeraj.rtly@gmail.com>
84 lines
2.2 KiB
JSON
84 lines
2.2 KiB
JSON
{
|
|
"name": "frontend",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"dependencies": {
|
|
"@material-tailwind/react": "^2.1.7",
|
|
"@tanstack/react-query": "^5.22.2",
|
|
"@testing-library/jest-dom": "^5.17.0",
|
|
"@testing-library/react": "^13.4.0",
|
|
"@testing-library/user-event": "^13.5.0",
|
|
"@types/jest": "^27.5.2",
|
|
"@types/node": "^16.18.68",
|
|
"@types/react": "^18.2.42",
|
|
"@types/react-dom": "^18.2.17",
|
|
"@web3modal/siwe": "^4.0.5",
|
|
"@web3modal/wagmi": "^4.0.5",
|
|
"assert": "^2.1.0",
|
|
"axios": "^1.6.7",
|
|
"date-fns": "^3.0.1",
|
|
"downshift": "^8.2.3",
|
|
"eslint-config-react-app": "^7.0.1",
|
|
"gql-client": "^1.0.0",
|
|
"luxon": "^3.4.4",
|
|
"octokit": "^3.1.2",
|
|
"react": "^18.2.0",
|
|
"react-code-blocks": "^0.1.6",
|
|
"react-day-picker": "^8.9.1",
|
|
"react-dom": "^18.2.0",
|
|
"react-dropdown": "^1.11.0",
|
|
"react-hook-form": "^7.49.0",
|
|
"react-hot-toast": "^2.4.1",
|
|
"react-oauth-popup": "^1.0.5",
|
|
"react-router-dom": "^6.20.1",
|
|
"react-scripts": "5.0.1",
|
|
"react-timer-hook": "^3.0.7",
|
|
"siwe": "^2.1.4",
|
|
"typescript": "^4.9.5",
|
|
"usehooks-ts": "^2.10.0",
|
|
"vertical-stepper-nav": "^1.0.2",
|
|
"viem": "^2.7.11",
|
|
"wagmi": "^2.5.7",
|
|
"web-vitals": "^2.1.4"
|
|
},
|
|
"scripts": {
|
|
"start": "react-scripts start",
|
|
"build": "react-scripts build",
|
|
"test": "react-scripts test",
|
|
"eject": "react-scripts eject",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check .",
|
|
"lint": "eslint ."
|
|
},
|
|
"eslintConfig": {
|
|
"extends": [
|
|
"react-app",
|
|
"react-app/jest"
|
|
]
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
"@types/luxon": "^3.3.7",
|
|
"@typescript-eslint/eslint-plugin": "^6.13.2",
|
|
"@typescript-eslint/parser": "^6.13.2",
|
|
"eslint": "^8.55.0",
|
|
"eslint-config-prettier": "^9.1.0",
|
|
"eslint-plugin-prettier": "^5.0.1",
|
|
"eslint-plugin-react": "^7.33.2",
|
|
"prettier": "^3.1.0",
|
|
"tailwindcss": "^3.3.6"
|
|
}
|
|
}
|