Skip to content

Commit

Permalink
upgrade to version 25.0.4 (#585)
Browse files Browse the repository at this point in the history
* upgrade to version 25.0.4

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* changed folder name

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
  • Loading branch information
edewit authored Aug 30, 2024
1 parent 80f6196 commit 8037903
Show file tree
Hide file tree
Showing 25 changed files with 587 additions and 801 deletions.
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.

File renamed without changes.
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.

0 comments on commit 8037903

Please sign in to comment.