Skip to content

Commit

Permalink
To delete
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Jan 6, 2025
1 parent 0882589 commit 3c93ab7
Show file tree
Hide file tree
Showing 11 changed files with 2,602 additions and 4 deletions.
2,494 changes: 2,494 additions & 0 deletions .keycloakify/realm-kc-26.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"type": "module",
"scripts": {
"postinstall": "keycloakify sync-extensions",
"dev": "vite",
"build": "tsc && vite build",
"build-keycloak-theme": "npm run build && keycloakify build",
Expand All @@ -19,7 +20,8 @@
"dependencies": {
"keycloakify": "^11.8.5",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"@keycloakify/email-native": "~260007.0.0"
},
"devDependencies": {
"@eslint/js": "^9.15.0",
Expand Down
69 changes: 69 additions & 0 deletions src/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# This file is managed by Keycloakify, do not edit it manually.

# === Owned files start ===
# email/html/email-test.ftl
# email/html/email-verification.ftl
# === Owned files end =====

# === @keycloakify/email-native v260007.0.0 ===
/email/html/event-user_disabled_by_temporary_lockout.ftl
/email/theme.properties
/email/messages/messages_cs.properties
/email/html/executeActions.ftl
/email/html/password-reset.ftl
/email/html/event-update_totp.ftl
/email/html/identity-provider-link.ftl
/email/html/event-user_disabled_by_permanent_lockout.ftl
/email/text/email-verification-with-code.ftl
/email/messages/messages_ar.properties
/email/messages/messages_en.properties
/email/html/org-invite.ftl
/email/messages/messages_es.properties
/email/messages/messages_da.properties
/email/messages/messages_ca.properties
/email/messages/messages_de.properties
/email/messages/messages_hu.properties
/email/messages/messages_el.properties
/email/messages/messages_it.properties
/email/html/template.ftl
/email/messages/messages_fa.properties
/email/messages/messages_fr.properties
/email/messages/messages_lt.properties
/email/messages/messages_fi.properties
/email/messages/messages_ka.properties
/email/messages/messages_nl.properties
/email/messages/messages_no.properties
/email/messages/messages_uk.properties
/email/messages/messages_ja.properties
/email/messages/messages_tr.properties
/email/messages/messages_pl.properties
/email/messages/messages_sv.properties
/email/messages/messages_pt.properties
/email/messages/messages_pt_BR.properties
/email/messages/messages_sk.properties
/email/messages/messages_th.properties
/email/messages/messages_ru.properties
/email/messages/messages_zh_CN.properties
/email/text/email-update-confirmation.ftl
/email/messages/messages_zh_TW.properties
/email/text/email-test.ftl
/email/text/event-login_error.ftl
/email/text/event-user_disabled_by_temporary_lockout.ftl
/email/text/identity-provider-link.ftl
/email/text/event-remove_credential.ftl
/email/text/org-invite.ftl
/email/text/event-remove_totp.ftl
/email/text/event-user_disabled_by_permanent_lockout.ftl
/email/text/event-update_totp.ftl
/email/text/event-update_password.ftl
/email/text/executeActions.ftl
/email/text/email-verification.ftl
/email/text/password-reset.ftl
/email/text/event-update_credential.ftl
/email/html/email-verification-with-code.ftl
/email/html/email-update-confirmation.ftl
/email/html/event-remove_totp.ftl
/email/html/event-remove_credential.ftl
/email/html/event-update_credential.ftl
/email/html/event-login_error.ftl
/email/html/event-update_password.ftl
12 changes: 12 additions & 0 deletions src/email/html/email-test.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<#--
This file has been claimed for ownership from @keycloakify/email-native version 260007.0.0.
To relinquish ownership and restore this file to its original content, run the following command:
$ npx keycloakify own --path 'email/html/email-test.ftl' --revert
-->

<#import "template.ftl" as layout>
<@layout.emailLayout>
Hello World! ${xKeycloakify.themeName}
${kcSanitize(msg("emailTestBodyHtml",realmName))?no_esc}
</@layout.emailLayout>
12 changes: 12 additions & 0 deletions src/email/html/email-verification.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<#--
This file has been claimed for ownership from @keycloakify/email-native version 260007.0.0.
To relinquish ownership and restore this file to its original content, run the following command:
$ npx keycloakify own --path 'email/html/email-verification.ftl' --revert
-->

<#import "template.ftl" as layout>
<@layout.emailLayout>
Hello World!
${kcSanitize(msg("emailVerificationBodyHtml",link, linkExpiration, realmName, linkExpirationFormatter(linkExpiration)))?no_esc}
</@layout.emailLayout>
1 change: 1 addition & 0 deletions src/email/messages/messages_en_override.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
emailVerificationBodyHtml=<p>Someone has created a {2} account !!! with this email address. If this was you, click the link below to verify your email address</p><p><a href="{0}">Link to e-mail address verification</a></p><p>This link will expire within {3}.</p><p>If you didn''t create this account, just ignore this message.</p>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
emailTestBodyHtml=<p>This is a test message Chocolate</p>
1 change: 1 addition & 0 deletions src/email/messages/messages_en_override_vanilla.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
emailTestBodyHtml=<p>This is a test message Vanilla</p>
6 changes: 3 additions & 3 deletions src/kc.gen.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is auto-generated by the `update-kc-gen` command. Do not edit it manually.
// Hash: 09b09a6c36072d5cf2f8484ab3dc720d28ec8c126df1bafb0b2214a0139848c7
// Hash: 59eaeff8c4902ee5d3fd0f19654438aff68c1816bcfff44c0d6b7640a713c636

/* eslint-disable */

Expand All @@ -9,9 +9,9 @@

import { lazy, Suspense, type ReactNode } from "react";

export type ThemeName = "keycloakify-starter";
export type ThemeName = "vanilla" | "chocolate";

export const themeNames: ThemeName[] = ["keycloakify-starter"];
export const themeNames: ThemeName[] = ["vanilla", "chocolate"];

export type KcEnvName = never;

Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default defineConfig({
plugins: [
react(),
keycloakify({
themeName: ["vanilla", "chocolate"],
accountThemeImplementation: "none"
})
]
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1329,6 +1329,11 @@
"@jridgewell/resolve-uri" "^3.1.0"
"@jridgewell/sourcemap-codec" "^1.4.14"

"@keycloakify/email-native@~260007.0.0":
version "260007.0.0"
resolved "https://registry.yarnpkg.com/@keycloakify/email-native/-/email-native-260007.0.0.tgz#8ee9a889ca022fa13f2d13f166f3c1fa565dc37c"
integrity sha512-hFUiOwwpc84eXPAct44G/pTBkYnDQF1jIObME+ZUrb7XidmFJ/TdH9q49LKpd9sIivSyOEJa1qLtrggP+c+BJw==

"@ndelangen/get-tarball@^3.0.7":
version "3.0.9"
resolved "https://registry.yarnpkg.com/@ndelangen/get-tarball/-/get-tarball-3.0.9.tgz#727ff4454e65f34707e742a59e5e6b1f525d8964"
Expand Down

0 comments on commit 3c93ab7

Please sign in to comment.