Skip to content
Closed
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
10 changes: 5 additions & 5 deletions .github/actions/linkcheck/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ runs:
using: composite
steps:

- name: Get Node.js and PNPM versions
- name: Get Node.js and npm versions
id: tooling-versions
shell: bash
run: |
echo "node=$(cat pom.xml | grep '<version.node>' | cut -d '>' -f 2 | cut -d '<' -f 1 | cut -c 2-)" >> $GITHUB_OUTPUT
echo "pnpm=$(cat pom.xml | grep '<version.pnpm>' | cut -d '>' -f 2 | cut -d '<' -f 1 | cut -c 1-)" >> $GITHUB_OUTPUT
echo "npm=$(cat pom.xml | grep '<version.npm>' | cut -d '>' -f 2 | cut -d '<' -f 1 | cut -c 1-)" >> $GITHUB_OUTPUT
working-directory: ${{ inputs.directory }}

# Downloading Node.js often fails due to network issues, therefore we cache the artifacts downloaded by the frontend plugin.
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
id: cache-binaries
name: Cache Node.js and PNPM binaries
name: Cache Node.js and npm binaries
with:
path: |
~/.m2/repository/com/github/eirslett/node
~/.m2/repository/com/github/eirslett/pnpm
key: ${{ runner.os }}-frontend-plugin-artifacts-${{ steps.tooling-versions.outputs.node }}-${{ steps.tooling-versions.outputs.pnpm }}
~/.m2/repository/com/github/eirslett/npm
key: ${{ runner.os }}-frontend-plugin-artifacts-${{ steps.tooling-versions.outputs.node }}-${{ steps.tooling-versions.outputs.npm }}

- name: Build with Maven
env:
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<version.frontend-maven-plugin>1.15.0</version.frontend-maven-plugin>
<version.node>v22.18.0</version.node>
<version.pnpm>10.14.0</version.pnpm>
<version.npm>10.9.2</version.npm>
<version.maven-resources-plugin>3.2.0</version.maven-resources-plugin>
<version.maven-compiler-plugin>3.8.1</version.maven-compiler-plugin>
<version.maven-jar-plugin>3.1.2</version.maven-jar-plugin>
Expand Down Expand Up @@ -111,7 +111,7 @@
</goals>
<configuration>
<nodeVersion>${version.node}</nodeVersion>
<pnpmVersion>${version.npm}</pnpmVersion>
<npmVersion>${version.npm}</npmVersion>
</configuration>
</execution>
<execution>
Expand Down
23 changes: 23 additions & 0 deletions quicktheme/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'
import { defineConfig, globalIgnores } from 'eslint/config'

export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
js.configs.recommended,
tseslint.configs.recommended,
reactHooks.configs.flat.recommended,
reactRefresh.configs.vite,
],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
},
])
18 changes: 18 additions & 0 deletions quicktheme/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="color-scheme" content="dark" />
<link rel="icon" type="image/svg+xml" href="vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex" />
<title>Quick Theme - Keycloak</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script id="environment">
{}
</script>
</body>
</html>
45 changes: 45 additions & 0 deletions quicktheme/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "@edewit/quicktheme",
"version": "0.0.2",
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/edewit/standalone-quicktheme.git"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"files": [
"dist"
],
"scripts": {
"dev": "vite",
"build": "vite build",
"lint": "eslint .",
"preview": "vite preview"
},
"dependencies": {
"@keycloak/keycloak-admin-ui": "26.6.0",
"@patternfly/patternfly": "^5.4.2",
"@patternfly/react-core": "^5.4.14",
"i18next": "^25.7.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-i18next": "^16.5.1",
"react-router-dom": "^6.30.2"
},
"devDependencies": {
"@eslint/js": "^9.39.1",
"@types/node": "^24.10.1",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"@vitejs/plugin-react": "^5.1.1",
"eslint": "^9.39.1",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.4.24",
"globals": "^16.5.0",
"typescript": "~5.9.3",
"typescript-eslint": "^8.48.0",
"vite": "^7.3.1"
}
}
2 changes: 2 additions & 0 deletions quicktheme/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ignoredBuiltDependencies:
- esbuild
55 changes: 55 additions & 0 deletions quicktheme/public/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
144 changes: 144 additions & 0 deletions quicktheme/public/login/keycloak.v2/css/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
:root {
--keycloak-logo-url: url('../img/keycloak-logo-text.svg');
--keycloak-bg-logo-url: url("../img/keycloak-bg-darken.svg");
--keycloak-logo-height: 63px;
--keycloak-logo-width: 300px;
--keycloak-card-top-color: var(--pf-v5-global--palette--blue-400);
}

.pf-v5-c-login__container {
grid-template-columns: 34rem;
grid-template-areas: "header"
"main"
}

.pf-v5-c-login__main-header {
border-top: 4px solid var(--keycloak-card-top-color);
}

/* Info section - top margin + bottom padding */
.pf-v5-c-login__main-footer-band:first-child {
margin-block-start: var(--pf-v5-global--spacer--lg);
}

.pf-v5-c-login__main-footer-band:last-child {
padding-bottom: 0;
}
/* Info section */

.login-pf body {
background: var(--keycloak-bg-logo-url) no-repeat center center fixed;
background-size: cover;
height: 100%;
}

div.kc-logo-text {
background-image: var(--keycloak-logo-url);
height: var(--keycloak-logo-height);
width: var(--keycloak-logo-width);
background-repeat: no-repeat;
background-size: contain;
background-position: center;
margin: 0 auto;
}

div.kc-logo-text span {
display: none;
}

.kc-login-tooltip {
position: relative;
display: inline-block;
}

.kc-login-tooltip .kc-tooltip-text{
top:-3px;
left:160%;
background-color: black;
visibility: hidden;
color: #fff;

min-width:130px;
text-align: center;
border-radius: 2px;
box-shadow:0 1px 8px rgba(0,0,0,0.6);
padding: 5px;

position: absolute;
opacity:0;
transition:opacity 0.5s;
}

/* Show tooltip */
.kc-login-tooltip:hover .kc-tooltip-text {
visibility: visible;
opacity:0.7;
}

/* Arrow for tooltip */
.kc-login-tooltip .kc-tooltip-text::after {
content: " ";
position: absolute;
top: 15px;
right: 100%;
margin-top: -5px;
border-width: 5px;
border-style: solid;
border-color: transparent black transparent transparent;
}

#kc-recovery-codes-list {
columns: 2;
}

#certificate_subjectDN {
overflow-wrap: break-word
}

#kc-verify-email-form {
margin-top: 24px;
margin-bottom: 24px;
}

#kc-header-wrapper {
font-size: 29px;
text-transform: uppercase;
letter-spacing: 3px;
line-height: 1.2em;
white-space: normal;
color: var(--pf-v5-global--Color--light-100) !important;
text-align: center;
}

#kc-code pre code {
word-break: break-all;
}

hr {
margin-top: var(--pf-v5-global--spacer--sm);
margin-bottom: var(--pf-v5-global--spacer--md);
}

#kc-social-providers svg:not(.google) {
filter: invert(47%) sepia(88%) saturate(7486%) hue-rotate(199deg) brightness(91%) contrast(101%);
}

#kc-social-providers svg {
height: var(--pf-v5-global--FontSize--xl);
}

@media (prefers-color-scheme: dark) {
#kc-social-providers svg:not(.google) {
filter: invert(54%) sepia(96%) saturate(2028%) hue-rotate(174deg) brightness(99%) contrast(97%);
}
}

@media (min-width: 768px) {
div.pf-v5-c-login__main-header {
grid-template-columns: 70% 30%;
}
}

#kc-form-webauthn {
gap: 0.875rem;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading