Skip to content

Commit 3142e1a

Browse files
committed
implement remaining views
1 parent 1c1ccd8 commit 3142e1a

70 files changed

Lines changed: 4348 additions & 502 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,4 @@ jspm_packages
5858

5959
# build output of `jsx-email`
6060
/.rendered
61+
.cursor

.storybook/preview.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import type { Preview } from '@storybook/react-vite'
2+
import React from 'react'
23
import '@helpwave/hightide/style/globals.css'
4+
import '../src/index.css'
5+
import { ThemeProvider, LocaleProvider } from '@helpwave/hightide'
36

4-
if (typeof window !== 'undefined' && typeof process === 'undefined') {
5-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
6-
(window as any).process = { env: {} }
7+
if (typeof window !== 'undefined' && typeof (globalThis as { process?: { env: Record<string, string> } }).process === 'undefined') {
8+
(globalThis as { process: { env: Record<string, string> } }).process = { env: {} }
79
}
810

911
const hideLanguageSwitcherCss = `
@@ -42,7 +44,15 @@ const preview: Preview = {
4244
document.head.appendChild(style)
4345
}
4446
}
45-
return Story()
47+
return React.createElement(
48+
ThemeProvider,
49+
{},
50+
React.createElement(
51+
LocaleProvider,
52+
{ locale: 'en-US' },
53+
React.createElement(Story)
54+
)
55+
)
4656
}
4757
]
4858
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<#import "template.ftl" as layout>
2+
<@layout.main>
3+
<h1>${msg("emailUpdateConfirmationTitle")}</h1>
4+
<p>${msg("emailUpdateConfirmationBody1", realm.displayName, newEmail)}</p>
5+
<p>
6+
<a href="${link}" class="button">${msg("doClickHere")}</a>
7+
</p>
8+
<p>${msg("emailUpdateConfirmationBody2")}</p>
9+
</@layout.main>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<#import "template.ftl" as layout>
2+
<@layout.main>
3+
<h1>${msg("emailVerificationTitle")}</h1>
4+
<p>${msg("emailVerificationBody1", realm.displayName)}</p>
5+
<p><strong>${msg("emailVerificationCode")}: ${code}</strong></p>
6+
<p>${msg("emailVerificationBody2")}</p>
7+
</@layout.main>

email/html/email-verification.ftl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<#import "template.ftl" as layout>
2+
<@layout.main>
3+
<h1>${msg("emailVerificationTitle")}</h1>
4+
<p>${msg("emailVerificationBody1", realm.displayName)}</p>
5+
<p>
6+
<a href="${link}" class="button">${msg("doClickHere")}</a>
7+
</p>
8+
<p>${msg("emailVerificationBody2")}</p>
9+
<p>${msg("emailVerificationBody3")}</p>
10+
</@layout.main>

email/html/event-login_error.ftl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<#import "template.ftl" as layout>
2+
<@layout.main>
3+
<h1>${msg("eventLoginErrorTitle")}</h1>
4+
<p>${msg("eventLoginErrorBody1", realm.displayName)}</p>
5+
<p class="text-error">${msg("eventLoginErrorBody2")}</p>
6+
<#if ipAddress??>
7+
<p>${msg("eventLoginErrorBody3", ipAddress)}</p>
8+
</#if>
9+
</@layout.main>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<#import "template.ftl" as layout>
2+
<@layout.main>
3+
<h1>${msg("eventUpdatePasswordTitle")}</h1>
4+
<p>${msg("eventUpdatePasswordBody1", realm.displayName)}</p>
5+
<p>${msg("eventUpdatePasswordBody2")}</p>
6+
<#if ipAddress??>
7+
<p>${msg("eventUpdatePasswordBody3", ipAddress)}</p>
8+
</#if>
9+
</@layout.main>

email/html/executeActions.ftl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<#import "template.ftl" as layout>
2+
<@layout.main>
3+
<h1>${msg("executeActionsTitle")}</h1>
4+
<p>${msg("executeActionsBody1", realm.displayName)}</p>
5+
<#if requiredActions??>
6+
<ul>
7+
<#list requiredActions as action>
8+
<li>${msg("requiredAction.${action}")}</li>
9+
</#list>
10+
</ul>
11+
</#if>
12+
<p>
13+
<a href="${link}" class="button">${msg("doClickHere")}</a>
14+
</p>
15+
<p>${msg("executeActionsBody2")}</p>
16+
</@layout.main>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<#import "template.ftl" as layout>
2+
<@layout.main>
3+
<h1>${msg("identityProviderLinkTitle")}</h1>
4+
<p>${msg("identityProviderLinkBody1", realm.displayName, identityProviderAlias)}</p>
5+
<p>
6+
<a href="${link}" class="button">${msg("doClickHere")}</a>
7+
</p>
8+
<p>${msg("identityProviderLinkBody2")}</p>
9+
</@layout.main>

email/html/org-invite.ftl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<#import "template.ftl" as layout>
2+
<@layout.main>
3+
<h1>${msg("orgInviteTitle")}</h1>
4+
<p>${msg("orgInviteBody1", realm.displayName, orgName)}</p>
5+
<p>
6+
<a href="${link}" class="button">${msg("doClickHere")}</a>
7+
</p>
8+
<p>${msg("orgInviteBody2")}</p>
9+
</@layout.main>

0 commit comments

Comments
 (0)