Final touch

This commit is contained in:
Joseph Garrone 2024-02-13 02:05:45 +01:00
parent 8e1a34e8f0
commit 3ebb9ef9df
4 changed files with 12 additions and 16 deletions

View file

@ -8,11 +8,9 @@
<a href="https://starter.keycloakify.dev">Authenticated React SPA</a> <a href="https://starter.keycloakify.dev">Authenticated React SPA</a>
</p> </p>
> WARNING: This work in progress!
# Introduction # Introduction
This repo constitutes an easily reusable setup for a Keycloak theme project OR for a SPA React App that generates a This repo constitutes an easily reusable setup for a Keycloak theme project OR for a Vite SPA React App that generates a
Keycloak theme that goes along with it. Keycloak theme that goes along with it.
If you are only looking to create a Keycloak theme (and not a Keycloak theme and an App that share the same codebase) there are a lot of things that you can remove from this starter: [Please read this section of the README](#standalone-keycloak-theme). If you are only looking to create a Keycloak theme (and not a Keycloak theme and an App that share the same codebase) there are a lot of things that you can remove from this starter: [Please read this section of the README](#standalone-keycloak-theme).
@ -49,7 +47,7 @@ npx initialize-email-theme # For initializing your email theme
# Note that Keycloakify does not feature React integration for email yet. # Note that Keycloakify does not feature React integration for email yet.
npx download-builtin-keycloak-theme # For downloading the default theme (as a reference) npx download-builtin-keycloak-theme # For downloading the default theme (as a reference)
# Look for the files in build_keycloak/src/main/resources/theme/{base,keycloak} # Look for the files in dist_keycloak/src/main/resources/theme/{base,keycloak}
``` ```
# Theme variant # Theme variant
@ -201,8 +199,8 @@ jobs:
- run: npx keycloakify - run: npx keycloakify
env: env:
XDG_CACHE_HOME: "/home/runner/.cache/yarn" XDG_CACHE_HOME: "/home/runner/.cache/yarn"
- run: mv build_keycloak/target/retrocompat-*.jar retrocompat-keycloak-theme.jar - run: mv dist_keycloak/target/retrocompat-*.jar retrocompat-keycloak-theme.jar
- run: mv build_keycloak/target/*.jar keycloak-theme.jar - run: mv dist_keycloak/target/*.jar keycloak-theme.jar
- uses: softprops/action-gh-release@v1 - uses: softprops/action-gh-release@v1
with: with:
name: Release v\${{ needs.check_if_version_upgraded.outputs.to_version }} name: Release v\${{ needs.check_if_version_upgraded.outputs.to_version }}

View file

@ -26,8 +26,8 @@
"keywords": [], "keywords": [],
"dependencies": { "dependencies": {
"evt": "^2.5.7", "evt": "^2.5.7",
"keycloakify": "9.4.0-rc.17", "keycloakify": "^9.4.1",
"oidc-spa": "^4.0.0", "oidc-spa": "^4.2.1",
"powerhooks": "^1.0.8", "powerhooks": "^1.0.8",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",

View file

@ -11,7 +11,5 @@ export default defineConfig({
react(), react(),
commonjs(), commonjs(),
keycloakify() keycloakify()
], ]
assetsInclude: ["**/*.md"],
//base: '/foo/'
}) })

View file

@ -5886,10 +5886,10 @@ jwt-decode@^3.1.2:
resolved "https://registry.yarnpkg.com/jwt-decode/-/jwt-decode-3.1.2.tgz#3fb319f3675a2df0c2895c8f5e9fa4b67b04ed59" resolved "https://registry.yarnpkg.com/jwt-decode/-/jwt-decode-3.1.2.tgz#3fb319f3675a2df0c2895c8f5e9fa4b67b04ed59"
integrity sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A== integrity sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==
keycloakify@9.4.0-rc.17: keycloakify@^9.4.1:
version "9.4.0-rc.17" version "9.4.1"
resolved "https://registry.yarnpkg.com/keycloakify/-/keycloakify-9.4.0-rc.17.tgz#417e770b706cd5eb09992cf31a6f3448aa0126bf" resolved "https://registry.yarnpkg.com/keycloakify/-/keycloakify-9.4.1.tgz#b0dbe7789eebde0189b59db6fb042e339f082c79"
integrity sha512-7PHcYTXZlqR48gwm7CUXa10yk+5z8IktHhlwH4EPC1IM9jM/b3ndtQlG3jwACuPlfp5q36JzR30LT0AtjU5ENg== integrity sha512-UCngMYCunLTYn9llVvgHAcUp5rbzEiKEDMUsxsqaHYidqM1UtykV+WJ4ezT2R/Bja4RiG4J0zQXMJ1ks+mz6og==
dependencies: dependencies:
"@babel/generator" "^7.22.9" "@babel/generator" "^7.22.9"
"@babel/parser" "^7.22.7" "@babel/parser" "^7.22.7"
@ -6527,7 +6527,7 @@ oidc-client-ts@2.4.0:
crypto-js "^4.2.0" crypto-js "^4.2.0"
jwt-decode "^3.1.2" jwt-decode "^3.1.2"
oidc-spa@^4.0.0: oidc-spa@^4.2.1:
version "4.2.1" version "4.2.1"
resolved "https://registry.yarnpkg.com/oidc-spa/-/oidc-spa-4.2.1.tgz#1b33214fd4b657f7a09aae70058df76ce7275a8e" resolved "https://registry.yarnpkg.com/oidc-spa/-/oidc-spa-4.2.1.tgz#1b33214fd4b657f7a09aae70058df76ce7275a8e"
integrity sha512-2Vm3Ohrh+F6Xd+HfybBs20ahQmJf3w852G20hnOl80O7G8wQ2IBKuivVEU/gb2hg4O3X9h4uQr4fuhIMO0/dFA== integrity sha512-2Vm3Ohrh+F6Xd+HfybBs20ahQmJf3w852G20hnOl80O7G8wQ2IBKuivVEU/gb2hg4O3X9h4uQr4fuhIMO0/dFA==