web/flows: add more stories (#6444)
remove default example stories that were broken currently only the dark theme works due to the way storybook includes CSS files in the iframe Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
15
web/src/stories/interface.ts
Normal file
15
web/src/stories/interface.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import { Interface } from "@goauthentik/app/elements/Base";
|
||||
|
||||
import { customElement, property } from "lit/decorators.js";
|
||||
|
||||
import { UiThemeEnum } from "@goauthentik/api";
|
||||
|
||||
@customElement("ak-storybook-interface")
|
||||
export class StoryInterface extends Interface {
|
||||
@property()
|
||||
storyTheme: UiThemeEnum = UiThemeEnum.Dark;
|
||||
|
||||
async getTheme(): Promise<UiThemeEnum> {
|
||||
return this.storyTheme;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user