Skip to content

Commit ee95ba5

Browse files
update project deps and disable checkLoginIframe for localhost auth
1 parent 824bc90 commit ee95ba5

File tree

10 files changed

+67
-63
lines changed

10 files changed

+67
-63
lines changed

.env

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
VITE_APP_DOMAIN=http://localhost:3000
2-
VITE_APP_KEYCLOAK_URL=http://localhost:8090
3-
VITE_APP_BACKEND_URL=http://localhost:8080
2+
; VITE_APP_KEYCLOAK_URL=http://localhost:8090
3+
; VITE_APP_BACKEND_URL=http://localhost:8080
4+
5+
VITE_APP_KEYCLOAK_URL=https://auth.softeno.com
6+
VITE_APP_BACKEND_URL=https://api.softeno.com/spring-reactive-template

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ coverage
2424
*.sln
2525
*.sw?
2626

27+
# AI
28+
CLAUDE.md
29+
2730
src/graphql/*.ts
2831
src/graphql/*.js
2932

bun.lockb

3.22 KB
Binary file not shown.

package.json

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -15,74 +15,74 @@
1515
"generate:graphql": "graphql-codegen --config codegen.ts"
1616
},
1717
"dependencies": {
18-
"@apollo/client": "^3.11.8",
19-
"@hookform/resolvers": "^3.9.0",
20-
"@radix-ui/react-dialog": "^1.1.2",
21-
"@radix-ui/react-dropdown-menu": "^2.1.2",
22-
"@radix-ui/react-icons": "^1.3.0",
23-
"@radix-ui/react-label": "^2.1.0",
24-
"@radix-ui/react-navigation-menu": "^1.2.1",
25-
"@radix-ui/react-select": "^2.1.2",
26-
"@radix-ui/react-slot": "^1.1.0",
18+
"@apollo/client": "^3.13.9",
19+
"@hookform/resolvers": "^3.9.1",
20+
"@radix-ui/react-dialog": "^1.1.3",
21+
"@radix-ui/react-dropdown-menu": "^2.1.3",
22+
"@radix-ui/react-icons": "^1.3.2",
23+
"@radix-ui/react-label": "^2.1.1",
24+
"@radix-ui/react-navigation-menu": "^1.2.2",
25+
"@radix-ui/react-select": "^2.1.3",
26+
"@radix-ui/react-slot": "^1.1.1",
2727
"@react-keycloak/web": "^3.4.0",
28-
"@reduxjs/toolkit": "^2.2.8",
29-
"@tanstack/react-table": "^8.20.5",
30-
"class-variance-authority": "^0.7.0",
28+
"@reduxjs/toolkit": "^2.8.2",
29+
"@tanstack/react-table": "^8.20.6",
30+
"class-variance-authority": "^0.7.1",
3131
"clsx": "^2.1.1",
32-
"cmdk": "^1.0.0",
33-
"graphql": "^16.9.0",
32+
"cmdk": "^1.0.4",
33+
"graphql": "^16.10.0",
3434
"graphql-codegen": "^0.4.0",
35-
"i18next-browser-languagedetector": "^8.0.0",
36-
"keycloak-js": "^26.0.0",
37-
"lucide-react": "^0.451.0",
35+
"i18next-browser-languagedetector": "^8.0.2",
36+
"keycloak-js": "^26.2.0",
37+
"lucide-react": "^0.469.0",
3838
"react": "^18.3.1",
3939
"react-dom": "^18.3.1",
40-
"react-hook-form": "^7.53.0",
41-
"react-i18next": "^15.0.2",
42-
"react-redux": "^9.1.2",
43-
"react-router-dom": "^6.26.2",
40+
"react-hook-form": "^7.54.2",
41+
"react-i18next": "^15.1.3",
42+
"react-redux": "^9.2.0",
43+
"react-router-dom": "^6.28.1",
4444
"redux-persist": "^6.0.0",
45-
"tailwind-merge": "^2.5.3",
45+
"tailwind-merge": "^2.6.0",
4646
"tailwindcss-animate": "^1.0.7",
47-
"zod": "^3.23.8"
47+
"zod": "^3.24.1"
4848
},
4949
"devDependencies": {
50-
"@testing-library/jest-dom": "^6.5.0",
51-
"@testing-library/react": "^16.0.1",
50+
"@testing-library/jest-dom": "^6.6.3",
51+
"@testing-library/react": "^16.1.0",
5252
"@testing-library/user-event": "^14.5.2",
53-
"@types/jest": "^29.5.13",
54-
"@types/node": "^22.7.5",
55-
"@types/react": "^18.3.11",
53+
"@types/jest": "^29.5.14",
54+
"@types/node": "^22.10.2",
55+
"@types/react": "^18.3.13",
5656
"@types/react-dom": "^18.3.1",
5757
"@types/keycloak-js": "^3.4.1",
5858
"@types/react-i18next": "^8.1.0",
5959
"@types/react-router-dom": "^5.3.3",
6060
"@types/redux-persist": "^4.3.1",
61-
"@graphql-codegen/cli": "^5.0.3",
62-
"@graphql-codegen/client-preset": "^4.3.3",
63-
"@graphql-codegen/typescript-operations": "^4.2.3",
64-
"@graphql-codegen/typescript-react-apollo": "^4.3.2",
65-
"@typescript-eslint/eslint-plugin": "^7.18.0",
66-
"@typescript-eslint/parser": "^7.18.0",
67-
"@vitejs/plugin-react-swc": "^3.7.1",
68-
"@vitest/coverage-v8": "^2.1.2",
69-
"@vitest/ui": "^2.1.2",
61+
"@graphql-codegen/cli": "^5.0.7",
62+
"@graphql-codegen/client-preset": "^4.5.1",
63+
"@graphql-codegen/typescript-operations": "^4.3.1",
64+
"@graphql-codegen/typescript-react-apollo": "^4.3.3",
65+
"@typescript-eslint/eslint-plugin": "^8.18.2",
66+
"@typescript-eslint/parser": "^8.18.2",
67+
"@vitejs/plugin-react-swc": "^3.7.2",
68+
"@vitest/coverage-v8": "^2.1.8",
69+
"@vitest/ui": "^2.1.8",
7070
"autoprefixer": "^10.4.20",
71-
"eslint": "^9.12.0",
71+
"eslint": "^9.17.0",
7272
"eslint-config-prettier": "^9.1.0",
7373
"eslint-plugin-import": "^2.31.0",
7474
"eslint-plugin-prettier": "^5.2.1",
75-
"eslint-plugin-react-hooks": "^4.6.2",
76-
"eslint-plugin-react-refresh": "^0.4.12",
75+
"eslint-plugin-react-hooks": "^5.0.0",
76+
"eslint-plugin-react-refresh": "^0.4.16",
7777
"jsdom": "^25.0.1",
78-
"postcss": "^8.4.47",
79-
"prettier": "^3.3.3",
80-
"prettier-plugin-tailwindcss": "^0.6.8",
81-
"tailwindcss": "^3.4.13",
82-
"typescript": "^5.6.3",
83-
"vite": "^5.4.8",
84-
"vite-tsconfig-paths": "^5.0.1",
85-
"vitest": "^2.1.2",
86-
"msw": "^2.4.10"
78+
"postcss": "^8.4.49",
79+
"prettier": "^3.4.2",
80+
"prettier-plugin-tailwindcss": "^0.6.9",
81+
"tailwindcss": "^3.4.17",
82+
"typescript": "^5.7.2",
83+
"vite": "^5.4.11",
84+
"vite-tsconfig-paths": "^5.1.4",
85+
"vitest": "^2.1.8",
86+
"msw": "^2.7.0"
8787
}
8888
}

src/components/custom/coockie-consent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ export default function CookieConsent({ demo, onAcceptCallback, onDeclineCallbac
4747
}, 700)
4848
}
4949
}
50-
} catch (e) {
50+
} catch {
5151
// console.log("Error: ", e);
5252
}
53-
}, [])
53+
}, [demo])
5454

5555
return (
5656
<div

src/components/custom/multiple-selector.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,9 @@ const MultipleSelector = React.forwardRef<MultipleSelectorRef, MultipleSelectorP
424424
}}
425425
onFocus={(event) => {
426426
setOpen(true)
427-
triggerSearchOnFocus && onSearch?.(debouncedSearchTerm)
427+
if (triggerSearchOnFocus) {
428+
onSearch?.(debouncedSearchTerm)
429+
}
428430
inputProps?.onFocus?.(event)
429431
}}
430432
placeholder={hidePlaceholderWhenSelected && selected.length !== 0 ? '' : placeholder}

src/components/ui/command.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const Command = React.forwardRef<
2121
))
2222
Command.displayName = CommandPrimitive.displayName
2323

24-
interface CommandDialogProps extends DialogProps {}
24+
type CommandDialogProps = DialogProps
2525

2626
const CommandDialog = ({ children, ...props }: CommandDialogProps) => {
2727
return (

src/components/ui/input.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import * as React from "react"
22

33
import { cn } from "@/lib/utils"
44

5-
export interface InputProps
6-
extends React.InputHTMLAttributes<HTMLInputElement> {}
5+
export type InputProps = React.InputHTMLAttributes<HTMLInputElement>
76

87
const Input = React.forwardRef<HTMLInputElement, InputProps>(
98
({ className, type, ...props }, ref) => {

src/main.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ const onKeycloakEvent = (_event: AuthClientEvent, error?: AuthClientError): void
2222
}
2323
}
2424

25-
// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/ban-ts-comment
26-
// @ts-expect-error
2725
// eslint-disable-next-line @typescript-eslint/no-unused-vars
28-
const onKeycloakTokens = (tokens: AuthClientTokens): void => {
26+
const onKeycloakTokens = (_tokens: AuthClientTokens): void => {
2927
// handle keycloak token
3028
// console.info("Keycloak token: " + JSON.stringify(tokens))
3129
}
@@ -58,6 +56,7 @@ root.render(
5856
initOptions={{
5957
onLoad: 'check-sso',
6058
silentCheckSsoRedirectUri: import.meta.env.VITE_APP_DOMAIN + '/silent-check-sso.html',
59+
checkLoginIframe: false,
6160
}}
6261
>
6362
<React.StrictMode>

src/pages/users/Users.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ const toPayload = (data: Page): PayloadAction<{ page: number; pageSize: number;
3737
return { payload: { page: data.page, pageSize: data.pageSize, sort: data.sort, direction: data.direction }, type: '' }
3838
}
3939

40-
export type UsersProps = {
41-
// props goes here...
42-
}
40+
export type UsersProps = Record<string, never>
4341

4442
export const Users: React.FC<UsersProps> = (/* props: UsersProps */) => {
4543
const getSearchParams = (): UsersSearchParams => {

0 commit comments

Comments
 (0)