mirror of
https://github.com/goauthentik/authentik
synced 2026-05-08 16:13:02 +02:00
* web: Clean up locale. * web: Clean ambiguous imports. * web: Clean up entrypoint imports. * web: Format imports. * web: Normalize extensions. * web: Tidy order. * web: Remove TS aliases.
34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
import { globalAK } from "#common/global";
|
|
import { applyDocumentTheme } from "#common/theme";
|
|
|
|
import { AKElement } from "#elements/Base";
|
|
import { BrandingContextController } from "#elements/controllers/BrandContextController";
|
|
import { ConfigContextController } from "#elements/controllers/ConfigContextController";
|
|
import { ModalOrchestrationController } from "#elements/controllers/ModalOrchestrationController";
|
|
|
|
import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
|
|
|
/**
|
|
* The base interface element for the application.
|
|
*/
|
|
export abstract class Interface extends AKElement {
|
|
static styles = [PFBase];
|
|
|
|
constructor() {
|
|
super();
|
|
|
|
const { config, brand } = globalAK();
|
|
|
|
applyDocumentTheme(brand.uiTheme);
|
|
|
|
this.addController(new ConfigContextController(this, config));
|
|
this.addController(new BrandingContextController(this, brand));
|
|
this.addController(new ModalOrchestrationController());
|
|
}
|
|
|
|
public connectedCallback(): void {
|
|
super.connectedCallback();
|
|
this.dataset.akInterfaceRoot = this.tagName.toLowerCase();
|
|
}
|
|
}
|