diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6d8ed83..9c66784 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -130,18 +130,18 @@ jobs: - uses: actions/setup-node@v3.6.0 - run: npx -y -p gh-pages@3.0.0 gh-pages -u "github-actions-bot " -d build - github_pages_storybook: - runs-on: ubuntu-latest - needs: - - create_github_release - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v3.6.0 - - uses: bahmutov/npm-install@v1 - - run: yarn build-keycloak-theme # Only for the assets in public - - run: yarn build-storybook - - run: git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${{github.repository}}.git - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - run: npx -y -p gh-pages@3.0.0 gh-pages -u "github-actions-bot " -d storybook-static --dest storybook --add +# github_pages_storybook: +# runs-on: ubuntu-latest +# needs: +# - create_github_release +# steps: +# - uses: actions/checkout@v2 +# - uses: actions/setup-node@v3.6.0 +# - uses: bahmutov/npm-install@v1 +# - run: yarn build-keycloak-theme # Only for the assets in public +# - run: yarn build-storybook +# - run: git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${{github.repository}}.git +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# - run: npx -y -p gh-pages@3.0.0 gh-pages -u "github-actions-bot " -d storybook-static --dest storybook --add diff --git a/src/keycloak-theme/Template.stories.tsx b/src/keycloak-theme/Template.stories.tsx deleted file mode 100644 index d8660ed..0000000 --- a/src/keycloak-theme/Template.stories.tsx +++ /dev/null @@ -1,32 +0,0 @@ -import type {ComponentMeta} from '@storybook/react'; -import KcApp from './KcApp'; -import {template} from '../../.storybook/util' - -const bind = template('my-extra-page-1.ftl'); - -export default { - title: 'Theme/Template', - component: KcApp, - parameters: { - layout: 'fullscreen', - }, -} as ComponentMeta; - - -export const Default = bind({}) -export const InFrench = bind({locale: {currentLanguageTag: 'fr'}}) -export const RealmDisplayNameIsHtml = bind({ - realm: { - displayNameHtml: 'my realm' - } -}) - -export const NoInternationalization = bind({ - realm: { - internationalizationEnabled: false, - } -}) - -export const WithGlobalError = bind({ - message: {type: "error", summary: "This is an error"} -}) diff --git a/src/keycloak-theme/pages/Error.stories.tsx b/src/keycloak-theme/pages/Error.stories.tsx deleted file mode 100644 index 768a6d1..0000000 --- a/src/keycloak-theme/pages/Error.stories.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import {ComponentMeta} from '@storybook/react'; -import KcApp from '../KcApp'; -import {template} from '../../../.storybook/util' - -const bind = template('error.ftl'); - -export default { - kind: 'Page', - title: 'Theme/Pages/Notification/Error', - component: KcApp, - parameters: { - layout: 'fullscreen', - }, -} as ComponentMeta; - -export const Default = bind({message: {type: 'error', summary: 'Something went wrong'}}) diff --git a/src/keycloak-theme/pages/Error.tsx b/src/keycloak-theme/pages/Error.tsx deleted file mode 100644 index b28ff06..0000000 --- a/src/keycloak-theme/pages/Error.tsx +++ /dev/null @@ -1,34 +0,0 @@ -// copied and adapted from https://github.com/InseeFrLab/keycloakify/blob/main/src/lib/pages/Error.tsx -import React from "react"; -import type { PageProps } from "keycloakify" -import type { KcContext } from "../kcContext"; -import type { I18n } from "../i18n"; - - -export default function Error(props: PageProps, I18n>) { - const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props; - - const { message, client } = kcContext; - - const { msg } = i18n; - - return ( -