Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade to version 25.0.4 #585

Merged
merged 2 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions extension/extend-account-console-node/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "vite-project",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"start-keycloak": "node ./start-server.js --account-dev"
},
"dependencies": {
"@keycloak/keycloak-account-ui": "^25.0.4",
"@keycloak/keycloak-ui-shared": "^25.0.4",
"@patternfly/react-core": "5.0.0",
"i18next": "^23.14.0",
"i18next-http-backend": "^2.6.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-i18next": "^14.1.3",
"react-router-dom": "^6.26.1"
},
"devDependencies": {
"@keycloak/keycloak-admin-client": "^25.0.4",
"@octokit/rest": "^20.1.1",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react-swc": "^3.7.0",
"gunzip-maybe": "^1.4.2",
"tar-fs": "^3.0.6",
"typescript": "^5.5.4",
"vite": "^5.4.1",
"vite-plugin-checker": "^0.6.4"
}
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
import { PropsWithChildren, MouseEvent as ReactMouseEvent, useState } from "react";
import { useTranslation } from "react-i18next";
import { useHref, useLinkClickHandler } from "react-router-dom";
import { environment } from "./environment";
import { routes } from "./routes";

type NavLinkProps = NavItemProps & {
Expand Down Expand Up @@ -59,7 +58,7 @@ export const PageNav = () => {
<NavLink
key={path}
path={path}
isActive={`${environment.baseUrl}${path}` === window.location.href || path === active}
isActive={path === window.location.pathname || path === active}
onClick={() => setActive(path)}
>
{t(path!.substring(path!.lastIndexOf("/") + 1, path!.length))}
Expand Down
4 changes: 4 additions & 0 deletions extension/extend-account-console-node/src/environment.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { AccountEnvironment } from "@keycloak/keycloak-account-ui";
import { getInjectedEnvironment } from "@keycloak/keycloak-ui-shared";

export const environment = getInjectedEnvironment<AccountEnvironment>();
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const i18n = createInstance({
escapeValue: false,
},
backend: {
loadPath: `${environment.authServerUrl}/resources/${environment.realm}/account/{{lng}}`,
loadPath: `${environment.serverBaseUrl}/resources/${environment.realm}/account/{{lng}}`,
parse: (data: string) => {
const messages = JSON.parse(data);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package org.keycloak.quickstart;

import org.jboss.arquillian.drone.api.annotation.Drone;
Expand Down
41 changes: 0 additions & 41 deletions extension/extend-admin-console-node/package.json

This file was deleted.

27 changes: 0 additions & 27 deletions extension/extend-admin-console-node/src/environment.ts

This file was deleted.

Loading