-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
7,235 additions
and
5,828 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from "react"; | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
import { createKcPageStory } from "../KcPageStory"; | ||
|
||
const { KcPageStory } = createKcPageStory({ pageId: "code.ftl" }); | ||
|
||
const meta = { | ||
title: "login/code.ftl", | ||
component: KcPageStory | ||
} satisfies Meta<typeof KcPageStory>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = { | ||
render: () => <KcPageStory /> | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from "react"; | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
import { createKcPageStory } from "../KcPageStory"; | ||
|
||
const { KcPageStory } = createKcPageStory({ pageId: "delete-account-confirm.ftl" }); | ||
|
||
const meta = { | ||
title: "login/delete-account-confirm.ftl", | ||
component: KcPageStory | ||
} satisfies Meta<typeof KcPageStory>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = { | ||
render: () => <KcPageStory /> | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from "react"; | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
import { createKcPageStory } from "../KcPageStory"; | ||
|
||
const { KcPageStory } = createKcPageStory({ pageId: "delete-credential.ftl" }); | ||
|
||
const meta = { | ||
title: "login/delete-credential.ftl", | ||
component: KcPageStory | ||
} satisfies Meta<typeof KcPageStory>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = { | ||
render: () => <KcPageStory /> | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from "react"; | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
import { createKcPageStory } from "../KcPageStory"; | ||
|
||
const { KcPageStory } = createKcPageStory({ pageId: "error.ftl" }); | ||
|
||
const meta = { | ||
title: "login/error.ftl", | ||
component: KcPageStory | ||
} satisfies Meta<typeof KcPageStory>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = { | ||
render: () => <KcPageStory /> | ||
}; | ||
|
||
export const WithAnotherMessage: Story = { | ||
render: () => ( | ||
<KcPageStory | ||
kcContext={{ | ||
message: { summary: "With another error message" } | ||
}} | ||
/> | ||
) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from "react"; | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
import { createKcPageStory } from "../KcPageStory"; | ||
|
||
const { KcPageStory } = createKcPageStory({ pageId: "frontchannel-logout.ftl" }); | ||
|
||
const meta = { | ||
title: "login/frontchannel-logout.ftl", | ||
component: KcPageStory | ||
} satisfies Meta<typeof KcPageStory>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = { | ||
render: () => <KcPageStory /> | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from "react"; | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
import { createKcPageStory } from "../KcPageStory"; | ||
|
||
const { KcPageStory } = createKcPageStory({ pageId: "idp-review-user-profile.ftl" }); | ||
|
||
const meta = { | ||
title: "login/idp-review-user-profile.ftl", | ||
component: KcPageStory | ||
} satisfies Meta<typeof KcPageStory>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = { | ||
render: () => <KcPageStory /> | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import React from "react"; | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
import { createKcPageStory } from "../KcPageStory"; | ||
|
||
const { KcPageStory } = createKcPageStory({ pageId: "info.ftl" }); | ||
|
||
const meta = { | ||
title: "login/info.ftl", | ||
component: KcPageStory | ||
} satisfies Meta<typeof KcPageStory>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = { | ||
render: () => ( | ||
<KcPageStory | ||
kcContext={{ | ||
message: { | ||
summary: "Server info message" | ||
} | ||
}} | ||
/> | ||
) | ||
}; | ||
|
||
export const WithLinkBack: Story = { | ||
render: () => ( | ||
<KcPageStory | ||
kcContext={{ | ||
message: { | ||
summary: "Server message" | ||
}, | ||
actionUri: undefined | ||
}} | ||
/> | ||
) | ||
}; | ||
|
||
export const WithRequiredActions: Story = { | ||
render: () => ( | ||
<KcPageStory | ||
kcContext={{ | ||
message: { | ||
summary: "Required actions: " | ||
}, | ||
requiredActions: ["CONFIGURE_TOTP", "UPDATE_PROFILE", "VERIFY_EMAIL", "CUSTOM_ACTION"], | ||
"x-keycloakify": { | ||
messages: { | ||
"requiredAction.CUSTOM_ACTION": "Custom action" | ||
} | ||
} | ||
}} | ||
/> | ||
) | ||
}; |
Oops, something went wrong.