Rename KcApp to KcPage
This commit is contained in:
@ -1,18 +1,18 @@
|
||||
import React from "react";
|
||||
import type { Meta, StoryObj } from "@storybook/react";
|
||||
import { createPageStory } from "../PageStory";
|
||||
import { createKcPageStory } from "../KcPageStory";
|
||||
|
||||
const { PageStory } = createPageStory({ pageId: "account.ftl" });
|
||||
const { KcPageStory } = createKcPageStory({ pageId: "account.ftl" });
|
||||
|
||||
const meta = {
|
||||
title: "account/account.ftl",
|
||||
component: PageStory
|
||||
} satisfies Meta<typeof PageStory>;
|
||||
component: KcPageStory
|
||||
} satisfies Meta<typeof KcPageStory>;
|
||||
|
||||
export default meta;
|
||||
|
||||
type Story = StoryObj<typeof meta>;
|
||||
|
||||
export const Default: Story = {
|
||||
render: () => <PageStory />
|
||||
render: () => <KcPageStory />
|
||||
};
|
||||
|
@ -1,25 +1,25 @@
|
||||
import React from "react";
|
||||
import type { Meta, StoryObj } from "@storybook/react";
|
||||
import { createPageStory } from "../PageStory";
|
||||
import { createKcPageStory } from "../KcPageStory";
|
||||
|
||||
const { PageStory } = createPageStory({ pageId: "federatedIdentity.ftl" });
|
||||
const { KcPageStory } = createKcPageStory({ pageId: "federatedIdentity.ftl" });
|
||||
|
||||
const meta = {
|
||||
title: "account/federatedIdentity.ftl",
|
||||
component: PageStory
|
||||
} satisfies Meta<typeof PageStory>;
|
||||
component: KcPageStory
|
||||
} satisfies Meta<typeof KcPageStory>;
|
||||
|
||||
export default meta;
|
||||
|
||||
type Story = StoryObj<typeof meta>;
|
||||
|
||||
export const Default: Story = {
|
||||
render: () => <PageStory />
|
||||
render: () => <KcPageStory />
|
||||
};
|
||||
|
||||
export const NotConnected: Story = {
|
||||
render: () => (
|
||||
<PageStory
|
||||
<KcPageStory
|
||||
kcContext={{
|
||||
pageId: "federatedIdentity.ftl",
|
||||
federatedIdentity: {
|
||||
|
@ -1,15 +1,15 @@
|
||||
import React from "react";
|
||||
import type { Meta, StoryObj } from "@storybook/react";
|
||||
import { createPageStory } from "../PageStory";
|
||||
import { createKcPageStory } from "../KcPageStory";
|
||||
|
||||
const { PageStory } = createPageStory({
|
||||
const { KcPageStory } = createKcPageStory({
|
||||
pageId: "log.ftl"
|
||||
});
|
||||
|
||||
const meta = {
|
||||
title: "account/log.ftl",
|
||||
component: PageStory
|
||||
} satisfies Meta<typeof PageStory>;
|
||||
component: KcPageStory
|
||||
} satisfies Meta<typeof KcPageStory>;
|
||||
|
||||
export default meta;
|
||||
|
||||
@ -17,7 +17,7 @@ type Story = StoryObj<typeof meta>;
|
||||
|
||||
export const Default: Story = {
|
||||
render: () => (
|
||||
<PageStory
|
||||
<KcPageStory
|
||||
kcContext={{
|
||||
log: {
|
||||
events: [
|
||||
|
@ -1,25 +1,25 @@
|
||||
import React from "react";
|
||||
import type { Meta, StoryObj } from "@storybook/react";
|
||||
import { createPageStory } from "../PageStory";
|
||||
import { createKcPageStory } from "../KcPageStory";
|
||||
|
||||
const { PageStory } = createPageStory({ pageId: "password.ftl" });
|
||||
const { KcPageStory } = createKcPageStory({ pageId: "password.ftl" });
|
||||
|
||||
const meta = {
|
||||
title: "account/password.ftl",
|
||||
component: PageStory
|
||||
} satisfies Meta<typeof PageStory>;
|
||||
component: KcPageStory
|
||||
} satisfies Meta<typeof KcPageStory>;
|
||||
|
||||
export default meta;
|
||||
|
||||
type Story = StoryObj<typeof meta>;
|
||||
|
||||
export const Default: Story = {
|
||||
render: () => <PageStory />
|
||||
render: () => <KcPageStory />
|
||||
};
|
||||
|
||||
export const WithMessage: Story = {
|
||||
render: () => (
|
||||
<PageStory
|
||||
<KcPageStory
|
||||
kcContext={{
|
||||
message: { type: "success", summary: "This is a test message" }
|
||||
}}
|
||||
|
@ -1,13 +1,13 @@
|
||||
import React from "react";
|
||||
import type { Meta, StoryObj } from "@storybook/react";
|
||||
import { createPageStory } from "../PageStory";
|
||||
import { createKcPageStory } from "../KcPageStory";
|
||||
|
||||
const { PageStory } = createPageStory({ pageId: "sessions.ftl" });
|
||||
const { KcPageStory } = createKcPageStory({ pageId: "sessions.ftl" });
|
||||
|
||||
const meta = {
|
||||
title: "account/sessions.ftl",
|
||||
component: PageStory
|
||||
} satisfies Meta<typeof PageStory>;
|
||||
component: KcPageStory
|
||||
} satisfies Meta<typeof KcPageStory>;
|
||||
|
||||
export default meta;
|
||||
|
||||
@ -15,7 +15,7 @@ type Story = StoryObj<typeof meta>;
|
||||
|
||||
export const Default: Story = {
|
||||
render: () => (
|
||||
<PageStory
|
||||
<KcPageStory
|
||||
kcContext={{
|
||||
sessions: {
|
||||
sessions: [
|
||||
@ -45,7 +45,7 @@ export const Default: Story = {
|
||||
|
||||
export const WithError: Story = {
|
||||
render: () => (
|
||||
<PageStory
|
||||
<KcPageStory
|
||||
kcContext={{
|
||||
url: { passwordUrl: "/auth/realms/keycloakify/account/password" },
|
||||
stateChecker: "xQ7EOgFrLi4EvnJ8dbXKhwFGWk_bkOp0X89mhilt1os",
|
||||
|
@ -1,13 +1,13 @@
|
||||
import React from "react";
|
||||
import type { Meta, StoryObj } from "@storybook/react";
|
||||
import { createPageStory } from "../PageStory";
|
||||
import { createKcPageStory } from "../KcPageStory";
|
||||
|
||||
const { PageStory } = createPageStory({ pageId: "totp.ftl" });
|
||||
const { KcPageStory } = createKcPageStory({ pageId: "totp.ftl" });
|
||||
|
||||
const meta = {
|
||||
title: "account/totp.ftl",
|
||||
component: PageStory
|
||||
} satisfies Meta<typeof PageStory>;
|
||||
component: KcPageStory
|
||||
} satisfies Meta<typeof KcPageStory>;
|
||||
|
||||
export default meta;
|
||||
|
||||
@ -15,7 +15,7 @@ type Story = StoryObj<typeof meta>;
|
||||
|
||||
export const Default: Story = {
|
||||
render: () => (
|
||||
<PageStory
|
||||
<KcPageStory
|
||||
kcContext={{
|
||||
totp: {
|
||||
enabled: false,
|
||||
@ -51,7 +51,7 @@ export const Default: Story = {
|
||||
|
||||
export const WithTotpEnabled: Story = {
|
||||
render: () => (
|
||||
<PageStory
|
||||
<KcPageStory
|
||||
kcContext={{
|
||||
totp: {
|
||||
enabled: true,
|
||||
@ -98,7 +98,7 @@ export const WithTotpEnabled: Story = {
|
||||
|
||||
export const WithManualMode: Story = {
|
||||
render: () => (
|
||||
<PageStory
|
||||
<KcPageStory
|
||||
kcContext={{
|
||||
mode: "manual",
|
||||
totp: {
|
||||
@ -136,7 +136,7 @@ export const WithManualMode: Story = {
|
||||
|
||||
export const MoreThanOneTotpProviders: Story = {
|
||||
render: () => (
|
||||
<PageStory
|
||||
<KcPageStory
|
||||
kcContext={{
|
||||
totp: {
|
||||
enabled: true,
|
||||
|
Reference in New Issue
Block a user