fe7f23238c
* core: initial migration to /if Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * core: move jsi18n to api Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * tests: fix static URLs in tests Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * web: add new html files to rollup Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * web: fix rollup config and nginx config Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * core: add Impersonation support to user API Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * web: add banner for impersonation Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * tests: fix test_user function for new User API Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * flows: add background to API Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * web: set background from flow API Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * core: make root view login_required for redirect Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * flows: redirect to root-redirect instead of if-admin direct Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * api: add header to prevent Authorization Basic prompt in browser Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * web: redirect to root when user/me request fails Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
28 lines
981 B
TypeScript
28 lines
981 B
TypeScript
import { customElement, CSSResult, html, LitElement, property, TemplateResult } from "lit-element";
|
|
import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
|
import PFFlex from "@patternfly/patternfly/layouts/Flex/flex.css";
|
|
import PFBanner from "@patternfly/patternfly/components/Banner/banner.css";
|
|
import AKGlobal from "../authentik.css";
|
|
|
|
@customElement("ak-banner")
|
|
export class Banner extends LitElement {
|
|
|
|
@property()
|
|
level = "pf-m-warning";
|
|
|
|
static get styles(): CSSResult[] {
|
|
return [PFBase, PFBanner, PFFlex, AKGlobal];
|
|
}
|
|
|
|
render(): TemplateResult {
|
|
return html`<div class="pf-c-banner ${this.level} pf-m-sticky">
|
|
<div class="pf-l-flex pf-m-justify-content-center pf-m-justify-content-space-between-on-lg pf-m-nowrap" style="height: 100%;">
|
|
<div class="pf-u-display-none pf-u-display-block-on-lg">
|
|
<slot></slot>
|
|
</div>
|
|
</div>
|
|
</div>`;
|
|
}
|
|
|
|
}
|