web: re-cleanup imports not being absolute
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
60266b3345
commit
11334cf638
|
@ -1,3 +1,5 @@
|
||||||
|
import { config } from "@goauthentik/web/api/Config";
|
||||||
|
import { me } from "@goauthentik/web/api/Users";
|
||||||
import { SentryIgnoredError } from "@goauthentik/web/common/errors";
|
import { SentryIgnoredError } from "@goauthentik/web/common/errors";
|
||||||
import { VERSION } from "@goauthentik/web/constants";
|
import { VERSION } from "@goauthentik/web/constants";
|
||||||
import * as Sentry from "@sentry/browser";
|
import * as Sentry from "@sentry/browser";
|
||||||
|
@ -5,9 +7,6 @@ import { Integrations } from "@sentry/tracing";
|
||||||
|
|
||||||
import { Config, ResponseError } from "@goauthentik/api";
|
import { Config, ResponseError } from "@goauthentik/api";
|
||||||
|
|
||||||
import { config } from "./Config";
|
|
||||||
import { me } from "./Users";
|
|
||||||
|
|
||||||
export const TAG_SENTRY_COMPONENT = "authentik.component";
|
export const TAG_SENTRY_COMPONENT = "authentik.component";
|
||||||
export const TAG_SENTRY_CAPABILITIES = "authentik.capabilities";
|
export const TAG_SENTRY_CAPABILITIES = "authentik.capabilities";
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
|
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
||||||
import { activateLocale } from "@goauthentik/web/interfaces/locale";
|
import { activateLocale } from "@goauthentik/web/interfaces/locale";
|
||||||
|
|
||||||
import { CoreApi, ResponseError, SessionUser } from "@goauthentik/api";
|
import { CoreApi, ResponseError, SessionUser } from "@goauthentik/api";
|
||||||
|
|
||||||
import { DEFAULT_CONFIG } from "./Config";
|
|
||||||
|
|
||||||
let globalMePromise: Promise<SessionUser> | undefined;
|
let globalMePromise: Promise<SessionUser> | undefined;
|
||||||
|
|
||||||
export function refreshMe(): Promise<SessionUser> {
|
export function refreshMe(): Promise<SessionUser> {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
import { PFSize } from "@goauthentik/web/elements/Spinner";
|
||||||
|
|
||||||
import { CSSResult, LitElement, TemplateResult, html } from "lit";
|
import { CSSResult, LitElement, TemplateResult, html } from "lit";
|
||||||
import { customElement, property } from "lit/decorators.js";
|
import { customElement, property } from "lit/decorators.js";
|
||||||
|
|
||||||
|
@ -6,8 +8,6 @@ import PFEmptyState from "@patternfly/patternfly/components/EmptyState/empty-sta
|
||||||
import PFTitle from "@patternfly/patternfly/components/Title/title.css";
|
import PFTitle from "@patternfly/patternfly/components/Title/title.css";
|
||||||
import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
||||||
|
|
||||||
import { PFSize } from "./Spinner";
|
|
||||||
|
|
||||||
@customElement("ak-empty-state")
|
@customElement("ak-empty-state")
|
||||||
export class EmptyState extends LitElement {
|
export class EmptyState extends LitElement {
|
||||||
@property({ type: String })
|
@property({ type: String })
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import { CURRENT_CLASS, EVENT_REFRESH, ROUTE_SEPARATOR } from "@goauthentik/web/constants";
|
import { CURRENT_CLASS, EVENT_REFRESH, ROUTE_SEPARATOR } from "@goauthentik/web/constants";
|
||||||
|
import { getURLParams, updateURLParams } from "@goauthentik/web/elements/router/RouteMatch";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
|
@ -10,8 +11,6 @@ import AKGlobal from "@goauthentik/web/authentik.css";
|
||||||
import PFTabs from "@patternfly/patternfly/components/Tabs/tabs.css";
|
import PFTabs from "@patternfly/patternfly/components/Tabs/tabs.css";
|
||||||
import PFGlobal from "@patternfly/patternfly/patternfly-base.css";
|
import PFGlobal from "@patternfly/patternfly/patternfly-base.css";
|
||||||
|
|
||||||
import { getURLParams, updateURLParams } from "./router/RouteMatch";
|
|
||||||
|
|
||||||
@customElement("ak-tabs")
|
@customElement("ak-tabs")
|
||||||
export class Tabs extends LitElement {
|
export class Tabs extends LitElement {
|
||||||
@property()
|
@property()
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import { EVENT_REFRESH } from "@goauthentik/web/constants";
|
import { EVENT_REFRESH } from "@goauthentik/web/constants";
|
||||||
|
import { setURLParams } from "@goauthentik/web/elements/router/RouteMatch";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
|
@ -9,8 +10,6 @@ import AKGlobal from "@goauthentik/web/authentik.css";
|
||||||
import PFTreeView from "@patternfly/patternfly/components/TreeView/tree-view.css";
|
import PFTreeView from "@patternfly/patternfly/components/TreeView/tree-view.css";
|
||||||
import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
||||||
|
|
||||||
import { setURLParams } from "./router/RouteMatch";
|
|
||||||
|
|
||||||
export interface TreeViewItem {
|
export interface TreeViewItem {
|
||||||
id?: string;
|
id?: string;
|
||||||
label: string;
|
label: string;
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
|
import { SpinnerButton } from "@goauthentik/web/elements/buttons/SpinnerButton";
|
||||||
import { MessageLevel } from "@goauthentik/web/elements/messages/Message";
|
import { MessageLevel } from "@goauthentik/web/elements/messages/Message";
|
||||||
import { showMessage } from "@goauthentik/web/elements/messages/MessageContainer";
|
import { showMessage } from "@goauthentik/web/elements/messages/MessageContainer";
|
||||||
|
|
||||||
import { customElement, property } from "lit/decorators.js";
|
import { customElement, property } from "lit/decorators.js";
|
||||||
|
|
||||||
import { SpinnerButton } from "./SpinnerButton";
|
|
||||||
|
|
||||||
@customElement("ak-action-button")
|
@customElement("ak-action-button")
|
||||||
export class ActionButton extends SpinnerButton {
|
export class ActionButton extends SpinnerButton {
|
||||||
@property({ attribute: false })
|
@property({ attribute: false })
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
||||||
import { ERROR_CLASS, SECONDARY_CLASS, SUCCESS_CLASS } from "@goauthentik/web/constants";
|
import { ERROR_CLASS, SECONDARY_CLASS, SUCCESS_CLASS } from "@goauthentik/web/constants";
|
||||||
import { PFSize } from "@goauthentik/web/elements/Spinner";
|
import { PFSize } from "@goauthentik/web/elements/Spinner";
|
||||||
|
import { ActionButton } from "@goauthentik/web/elements/buttons/ActionButton";
|
||||||
import { MessageLevel } from "@goauthentik/web/elements/messages/Message";
|
import { MessageLevel } from "@goauthentik/web/elements/messages/Message";
|
||||||
import { showMessage } from "@goauthentik/web/elements/messages/MessageContainer";
|
import { showMessage } from "@goauthentik/web/elements/messages/MessageContainer";
|
||||||
|
|
||||||
|
@ -9,8 +10,6 @@ import { customElement, property } from "lit/decorators.js";
|
||||||
|
|
||||||
import { CoreApi, ResponseError } from "@goauthentik/api";
|
import { CoreApi, ResponseError } from "@goauthentik/api";
|
||||||
|
|
||||||
import { ActionButton } from "./ActionButton";
|
|
||||||
|
|
||||||
@customElement("ak-token-copy-button")
|
@customElement("ak-token-copy-button")
|
||||||
export class TokenCopyButton extends ActionButton {
|
export class TokenCopyButton extends ActionButton {
|
||||||
@property()
|
@property()
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
import { PFSize } from "@goauthentik/web/elements/Spinner";
|
import { PFSize } from "@goauthentik/web/elements/Spinner";
|
||||||
import "@goauthentik/web/elements/Spinner";
|
import "@goauthentik/web/elements/Spinner";
|
||||||
|
import { AggregateCard } from "@goauthentik/web/elements/cards/AggregateCard";
|
||||||
|
|
||||||
import { TemplateResult, html } from "lit";
|
import { TemplateResult, html } from "lit";
|
||||||
import { customElement, property } from "lit/decorators.js";
|
import { customElement, property } from "lit/decorators.js";
|
||||||
import { until } from "lit/directives/until.js";
|
import { until } from "lit/directives/until.js";
|
||||||
|
|
||||||
import { AggregateCard } from "./AggregateCard";
|
|
||||||
|
|
||||||
@customElement("ak-aggregate-card-promise")
|
@customElement("ak-aggregate-card-promise")
|
||||||
export class AggregatePromiseCard extends AggregateCard {
|
export class AggregatePromiseCard extends AggregateCard {
|
||||||
@property({ attribute: false })
|
@property({ attribute: false })
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
||||||
|
import { AKChart } from "@goauthentik/web/elements/charts/Chart";
|
||||||
import { ChartData } from "chart.js";
|
import { ChartData } from "chart.js";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
@ -7,8 +8,6 @@ import { customElement } from "lit/decorators.js";
|
||||||
|
|
||||||
import { AdminApi, LoginMetrics } from "@goauthentik/api";
|
import { AdminApi, LoginMetrics } from "@goauthentik/api";
|
||||||
|
|
||||||
import { AKChart } from "./Chart";
|
|
||||||
|
|
||||||
@customElement("ak-charts-admin-login")
|
@customElement("ak-charts-admin-login")
|
||||||
export class AdminLoginsChart extends AKChart<LoginMetrics> {
|
export class AdminLoginsChart extends AKChart<LoginMetrics> {
|
||||||
apiRequest(): Promise<LoginMetrics> {
|
apiRequest(): Promise<LoginMetrics> {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
||||||
|
import { AKChart } from "@goauthentik/web/elements/charts/Chart";
|
||||||
import { ChartData, Tick } from "chart.js";
|
import { ChartData, Tick } from "chart.js";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
@ -7,8 +8,6 @@ import { customElement, property } from "lit/decorators.js";
|
||||||
|
|
||||||
import { Coordinate, EventActions, EventsApi } from "@goauthentik/api";
|
import { Coordinate, EventActions, EventsApi } from "@goauthentik/api";
|
||||||
|
|
||||||
import { AKChart } from "./Chart";
|
|
||||||
|
|
||||||
@customElement("ak-charts-admin-model-per-day")
|
@customElement("ak-charts-admin-model-per-day")
|
||||||
export class AdminModelPerDay extends AKChart<Coordinate[]> {
|
export class AdminModelPerDay extends AKChart<Coordinate[]> {
|
||||||
@property()
|
@property()
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
||||||
|
import { AKChart } from "@goauthentik/web/elements/charts/Chart";
|
||||||
import { ChartData } from "chart.js";
|
import { ChartData } from "chart.js";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
@ -7,8 +8,6 @@ import { customElement, property } from "lit/decorators.js";
|
||||||
|
|
||||||
import { Coordinate, CoreApi } from "@goauthentik/api";
|
import { Coordinate, CoreApi } from "@goauthentik/api";
|
||||||
|
|
||||||
import { AKChart } from "./Chart";
|
|
||||||
|
|
||||||
@customElement("ak-charts-application-authorize")
|
@customElement("ak-charts-application-authorize")
|
||||||
export class ApplicationAuthorizeChart extends AKChart<Coordinate[]> {
|
export class ApplicationAuthorizeChart extends AKChart<Coordinate[]> {
|
||||||
@property()
|
@property()
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
||||||
|
import { AKChart } from "@goauthentik/web/elements/charts/Chart";
|
||||||
import { ChartData } from "chart.js";
|
import { ChartData } from "chart.js";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
@ -7,8 +8,6 @@ import { customElement, property } from "lit/decorators.js";
|
||||||
|
|
||||||
import { CoreApi, UserMetrics } from "@goauthentik/api";
|
import { CoreApi, UserMetrics } from "@goauthentik/api";
|
||||||
|
|
||||||
import { AKChart } from "./Chart";
|
|
||||||
|
|
||||||
@customElement("ak-charts-user")
|
@customElement("ak-charts-user")
|
||||||
export class UserChart extends AKChart<UserMetrics> {
|
export class UserChart extends AKChart<UserMetrics> {
|
||||||
@property({ type: Number })
|
@property({ type: Number })
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
import { Chip } from "@goauthentik/web/elements/chips/Chip";
|
||||||
|
|
||||||
import { CSSResult, LitElement, TemplateResult, css, html } from "lit";
|
import { CSSResult, LitElement, TemplateResult, css, html } from "lit";
|
||||||
import { customElement } from "lit/decorators.js";
|
import { customElement } from "lit/decorators.js";
|
||||||
|
|
||||||
|
@ -7,8 +9,6 @@ import PFChip from "@patternfly/patternfly/components/Chip/chip.css";
|
||||||
import PFChipGroup from "@patternfly/patternfly/components/ChipGroup/chip-group.css";
|
import PFChipGroup from "@patternfly/patternfly/components/ChipGroup/chip-group.css";
|
||||||
import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
||||||
|
|
||||||
import { Chip } from "./Chip";
|
|
||||||
|
|
||||||
@customElement("ak-chip-group")
|
@customElement("ak-chip-group")
|
||||||
export class ChipGroup extends LitElement {
|
export class ChipGroup extends LitElement {
|
||||||
static get styles(): CSSResult[] {
|
static get styles(): CSSResult[] {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import { SearchSelect } from "@goauthentik/web/SearchSelect";
|
import { SearchSelect } from "@goauthentik/web/SearchSelect";
|
||||||
import { EVENT_REFRESH } from "@goauthentik/web/constants";
|
import { EVENT_REFRESH } from "@goauthentik/web/constants";
|
||||||
|
import { HorizontalFormElement } from "@goauthentik/web/elements/forms/HorizontalFormElement";
|
||||||
import { MessageLevel } from "@goauthentik/web/elements/messages/Message";
|
import { MessageLevel } from "@goauthentik/web/elements/messages/Message";
|
||||||
import { showMessage } from "@goauthentik/web/elements/messages/MessageContainer";
|
import { showMessage } from "@goauthentik/web/elements/messages/MessageContainer";
|
||||||
import { camelToSnake, convertToSlug } from "@goauthentik/web/utils";
|
import { camelToSnake, convertToSlug } from "@goauthentik/web/utils";
|
||||||
|
@ -21,8 +22,6 @@ import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
||||||
|
|
||||||
import { ResponseError, ValidationError } from "@goauthentik/api";
|
import { ResponseError, ValidationError } from "@goauthentik/api";
|
||||||
|
|
||||||
import { HorizontalFormElement } from "./HorizontalFormElement";
|
|
||||||
|
|
||||||
export class APIError extends Error {
|
export class APIError extends Error {
|
||||||
constructor(public response: ValidationError) {
|
constructor(public response: ValidationError) {
|
||||||
super();
|
super();
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { FormGroup } from "@goauthentik/web/elements/forms/FormGroup";
|
||||||
import { convertToSlug } from "@goauthentik/web/utils";
|
import { convertToSlug } from "@goauthentik/web/utils";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
@ -11,8 +12,6 @@ import PFForm from "@patternfly/patternfly/components/Form/form.css";
|
||||||
import PFFormControl from "@patternfly/patternfly/components/FormControl/form-control.css";
|
import PFFormControl from "@patternfly/patternfly/components/FormControl/form-control.css";
|
||||||
import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
||||||
|
|
||||||
import { FormGroup } from "./FormGroup";
|
|
||||||
|
|
||||||
@customElement("ak-form-element-horizontal")
|
@customElement("ak-form-element-horizontal")
|
||||||
export class HorizontalFormElement extends LitElement {
|
export class HorizontalFormElement extends LitElement {
|
||||||
static get styles(): CSSResult[] {
|
static get styles(): CSSResult[] {
|
||||||
|
|
|
@ -2,14 +2,13 @@ import { EVENT_REFRESH } from "@goauthentik/web/constants";
|
||||||
import "@goauthentik/web/elements/LoadingOverlay";
|
import "@goauthentik/web/elements/LoadingOverlay";
|
||||||
import { ModalButton } from "@goauthentik/web/elements/buttons/ModalButton";
|
import { ModalButton } from "@goauthentik/web/elements/buttons/ModalButton";
|
||||||
import "@goauthentik/web/elements/buttons/SpinnerButton";
|
import "@goauthentik/web/elements/buttons/SpinnerButton";
|
||||||
|
import { Form } from "@goauthentik/web/elements/forms/Form";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
import { TemplateResult, html } from "lit";
|
import { TemplateResult, html } from "lit";
|
||||||
import { customElement, property } from "lit/decorators.js";
|
import { customElement, property } from "lit/decorators.js";
|
||||||
|
|
||||||
import { Form } from "./Form";
|
|
||||||
|
|
||||||
@customElement("ak-forms-modal")
|
@customElement("ak-forms-modal")
|
||||||
export class ModalForm extends ModalButton {
|
export class ModalForm extends ModalButton {
|
||||||
@property({ type: Boolean })
|
@property({ type: Boolean })
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
import { EVENT_REFRESH } from "@goauthentik/web/constants";
|
import { EVENT_REFRESH } from "@goauthentik/web/constants";
|
||||||
|
import { Form } from "@goauthentik/web/elements/forms/Form";
|
||||||
|
|
||||||
import { TemplateResult } from "lit";
|
import { TemplateResult } from "lit";
|
||||||
import { property } from "lit/decorators.js";
|
import { property } from "lit/decorators.js";
|
||||||
|
|
||||||
import { Form } from "./Form";
|
|
||||||
|
|
||||||
export abstract class ModelForm<T, PKT extends string | number> extends Form<T> {
|
export abstract class ModelForm<T, PKT extends string | number> extends Form<T> {
|
||||||
abstract loadInstance(pk: PKT): Promise<T>;
|
abstract loadInstance(pk: PKT): Promise<T>;
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
|
import { Form } from "@goauthentik/web/elements/forms/Form";
|
||||||
|
|
||||||
import { TemplateResult, html } from "lit";
|
import { TemplateResult, html } from "lit";
|
||||||
import { customElement, property } from "lit/decorators.js";
|
import { customElement, property } from "lit/decorators.js";
|
||||||
|
|
||||||
import { Form } from "./Form";
|
|
||||||
|
|
||||||
@customElement("ak-proxy-form")
|
@customElement("ak-proxy-form")
|
||||||
export class ProxyForm extends Form<unknown> {
|
export class ProxyForm extends Form<unknown> {
|
||||||
@property()
|
@property()
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
import { ROUTE_SEPARATOR } from "@goauthentik/web/constants";
|
import { ROUTE_SEPARATOR } from "@goauthentik/web/constants";
|
||||||
|
import { Route } from "@goauthentik/web/elements/router/Route";
|
||||||
|
import { RouteMatch } from "@goauthentik/web/elements/router/RouteMatch";
|
||||||
import "@goauthentik/web/elements/router/Router404";
|
import "@goauthentik/web/elements/router/Router404";
|
||||||
|
|
||||||
import { CSSResult, LitElement, TemplateResult, css, html } from "lit";
|
import { CSSResult, LitElement, TemplateResult, css, html } from "lit";
|
||||||
|
@ -6,9 +8,6 @@ import { customElement, property } from "lit/decorators.js";
|
||||||
|
|
||||||
import AKGlobal from "@goauthentik/web/authentik.css";
|
import AKGlobal from "@goauthentik/web/authentik.css";
|
||||||
|
|
||||||
import { Route } from "./Route";
|
|
||||||
import { RouteMatch } from "./RouteMatch";
|
|
||||||
|
|
||||||
// Poliyfill for hashchange.newURL,
|
// Poliyfill for hashchange.newURL,
|
||||||
// https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onhashchange
|
// https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onhashchange
|
||||||
window.addEventListener("load", () => {
|
window.addEventListener("load", () => {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import { PFSize } from "@goauthentik/web/elements/Spinner";
|
import { PFSize } from "@goauthentik/web/elements/Spinner";
|
||||||
import { MODAL_BUTTON_STYLES } from "@goauthentik/web/elements/buttons/ModalButton";
|
import { MODAL_BUTTON_STYLES } from "@goauthentik/web/elements/buttons/ModalButton";
|
||||||
|
import { Table } from "@goauthentik/web/elements/table/Table";
|
||||||
|
|
||||||
import { CSSResult, LitElement } from "lit";
|
import { CSSResult, LitElement } from "lit";
|
||||||
import { TemplateResult, html } from "lit";
|
import { TemplateResult, html } from "lit";
|
||||||
|
@ -13,8 +14,6 @@ import PFPage from "@patternfly/patternfly/components/Page/page.css";
|
||||||
import PFBullseye from "@patternfly/patternfly/layouts/Bullseye/bullseye.css";
|
import PFBullseye from "@patternfly/patternfly/layouts/Bullseye/bullseye.css";
|
||||||
import PFStack from "@patternfly/patternfly/layouts/Stack/stack.css";
|
import PFStack from "@patternfly/patternfly/layouts/Stack/stack.css";
|
||||||
|
|
||||||
import { Table } from "./Table";
|
|
||||||
|
|
||||||
export abstract class TableModal<T> extends Table<T> {
|
export abstract class TableModal<T> extends Table<T> {
|
||||||
@property()
|
@property()
|
||||||
size: PFSize = PFSize.Large;
|
size: PFSize = PFSize.Large;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import "@goauthentik/web/elements/../elements/PageHeader";
|
import "@goauthentik/web/elements/../elements/PageHeader";
|
||||||
import { updateURLParams } from "@goauthentik/web/elements/router/RouteMatch";
|
import { updateURLParams } from "@goauthentik/web/elements/router/RouteMatch";
|
||||||
|
import { Table } from "@goauthentik/web/elements/table/Table";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
|
@ -11,8 +12,6 @@ import PFContent from "@patternfly/patternfly/components/Content/content.css";
|
||||||
import PFPage from "@patternfly/patternfly/components/Page/page.css";
|
import PFPage from "@patternfly/patternfly/components/Page/page.css";
|
||||||
import PFSidebar from "@patternfly/patternfly/components/Sidebar/sidebar.css";
|
import PFSidebar from "@patternfly/patternfly/components/Sidebar/sidebar.css";
|
||||||
|
|
||||||
import { Table } from "./Table";
|
|
||||||
|
|
||||||
export abstract class TablePage<T> extends Table<T> {
|
export abstract class TablePage<T> extends Table<T> {
|
||||||
abstract pageTitle(): string;
|
abstract pageTitle(): string;
|
||||||
abstract pageDescription(): string | undefined;
|
abstract pageDescription(): string | undefined;
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
|
import { EVENT_REFRESH } from "@goauthentik/web/constants";
|
||||||
|
import { WizardAction } from "@goauthentik/web/elements/wizard/Wizard";
|
||||||
|
import { WizardPage } from "@goauthentik/web/elements/wizard/WizardPage";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
import { CSSResult, TemplateResult, html } from "lit";
|
import { CSSResult, TemplateResult, html } from "lit";
|
||||||
import { customElement, property } from "lit/decorators.js";
|
import { customElement, property } from "lit/decorators.js";
|
||||||
|
|
||||||
import AKGlobal from "../../authentik.css";
|
import AKGlobal from "@goauthentik/web/authentik.css";
|
||||||
import PFEmptyState from "@patternfly/patternfly/components/EmptyState/empty-state.css";
|
import PFEmptyState from "@patternfly/patternfly/components/EmptyState/empty-state.css";
|
||||||
import PFProgressStepper from "@patternfly/patternfly/components/ProgressStepper/progress-stepper.css";
|
import PFProgressStepper from "@patternfly/patternfly/components/ProgressStepper/progress-stepper.css";
|
||||||
import PFTitle from "@patternfly/patternfly/components/Title/title.css";
|
import PFTitle from "@patternfly/patternfly/components/Title/title.css";
|
||||||
|
@ -12,10 +16,6 @@ import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
||||||
|
|
||||||
import { ResponseError } from "@goauthentik/api";
|
import { ResponseError } from "@goauthentik/api";
|
||||||
|
|
||||||
import { EVENT_REFRESH } from "../../constants";
|
|
||||||
import { WizardAction } from "./Wizard";
|
|
||||||
import { WizardPage } from "./WizardPage";
|
|
||||||
|
|
||||||
export enum ActionState {
|
export enum ActionState {
|
||||||
pending = "pending",
|
pending = "pending",
|
||||||
running = "running",
|
running = "running",
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
import { Form } from "@goauthentik/web/elements/forms/Form";
|
import { Form } from "@goauthentik/web/elements/forms/Form";
|
||||||
|
import { WizardPage } from "@goauthentik/web/elements/wizard/WizardPage";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
import { customElement } from "lit/decorators.js";
|
import { customElement } from "lit/decorators.js";
|
||||||
|
|
||||||
import { WizardPage } from "./WizardPage";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This Wizard page is used for proxy forms with the older-style
|
* This Wizard page is used for proxy forms with the older-style
|
||||||
* wizards
|
* wizards
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
|
import { Form, KeyUnknown } from "@goauthentik/web/elements/forms/Form";
|
||||||
|
import { WizardPage } from "@goauthentik/web/elements/wizard/WizardPage";
|
||||||
|
|
||||||
import { CSSResult, TemplateResult, html } from "lit";
|
import { CSSResult, TemplateResult, html } from "lit";
|
||||||
import { customElement, property } from "lit/decorators.js";
|
import { customElement, property } from "lit/decorators.js";
|
||||||
|
|
||||||
import AKGlobal from "../../authentik.css";
|
import AKGlobal from "@goauthentik/web/authentik.css";
|
||||||
import PFAlert from "@patternfly/patternfly/components/Alert/alert.css";
|
import PFAlert from "@patternfly/patternfly/components/Alert/alert.css";
|
||||||
import PFButton from "@patternfly/patternfly/components/Button/button.css";
|
import PFButton from "@patternfly/patternfly/components/Button/button.css";
|
||||||
import PFCard from "@patternfly/patternfly/components/Card/card.css";
|
import PFCard from "@patternfly/patternfly/components/Card/card.css";
|
||||||
|
@ -10,9 +13,6 @@ import PFFormControl from "@patternfly/patternfly/components/FormControl/form-co
|
||||||
import PFInputGroup from "@patternfly/patternfly/components/InputGroup/input-group.css";
|
import PFInputGroup from "@patternfly/patternfly/components/InputGroup/input-group.css";
|
||||||
import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
||||||
|
|
||||||
import { Form, KeyUnknown } from "../forms/Form";
|
|
||||||
import { WizardPage } from "./WizardPage";
|
|
||||||
|
|
||||||
@customElement("ak-wizard-form")
|
@customElement("ak-wizard-form")
|
||||||
export class WizardForm extends Form<KeyUnknown> {
|
export class WizardForm extends Form<KeyUnknown> {
|
||||||
viewportCheck = false;
|
viewportCheck = false;
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
|
import { Wizard } from "@goauthentik/web/elements/wizard/Wizard";
|
||||||
|
|
||||||
import { CSSResult, LitElement, PropertyDeclaration, TemplateResult, html } from "lit";
|
import { CSSResult, LitElement, PropertyDeclaration, TemplateResult, html } from "lit";
|
||||||
import { customElement, property } from "lit/decorators.js";
|
import { customElement, property } from "lit/decorators.js";
|
||||||
|
|
||||||
import AKGlobal from "../../authentik.css";
|
import AKGlobal from "@goauthentik/web/authentik.css";
|
||||||
import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
||||||
|
|
||||||
import { Wizard } from "./Wizard";
|
|
||||||
|
|
||||||
@customElement("ak-wizard-page")
|
@customElement("ak-wizard-page")
|
||||||
export class WizardPage extends LitElement {
|
export class WizardPage extends LitElement {
|
||||||
static get styles(): CSSResult[] {
|
static get styles(): CSSResult[] {
|
||||||
|
|
|
@ -12,6 +12,7 @@ import "@goauthentik/web/flows/stages/access_denied/AccessDeniedStage";
|
||||||
import "@goauthentik/web/flows/stages/authenticator_validate/AuthenticatorValidateStage";
|
import "@goauthentik/web/flows/stages/authenticator_validate/AuthenticatorValidateStage";
|
||||||
import "@goauthentik/web/flows/stages/authenticator_webauthn/WebAuthnAuthenticatorRegisterStage";
|
import "@goauthentik/web/flows/stages/authenticator_webauthn/WebAuthnAuthenticatorRegisterStage";
|
||||||
import "@goauthentik/web/flows/stages/autosubmit/AutosubmitStage";
|
import "@goauthentik/web/flows/stages/autosubmit/AutosubmitStage";
|
||||||
|
import { StageHost } from "@goauthentik/web/flows/stages/base";
|
||||||
import "@goauthentik/web/flows/stages/captcha/CaptchaStage";
|
import "@goauthentik/web/flows/stages/captcha/CaptchaStage";
|
||||||
import "@goauthentik/web/flows/stages/identification/IdentificationStage";
|
import "@goauthentik/web/flows/stages/identification/IdentificationStage";
|
||||||
import "@goauthentik/web/flows/stages/password/PasswordStage";
|
import "@goauthentik/web/flows/stages/password/PasswordStage";
|
||||||
|
@ -45,8 +46,6 @@ import {
|
||||||
ShellChallenge,
|
ShellChallenge,
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
import { StageHost } from "./stages/base";
|
|
||||||
|
|
||||||
@customElement("ak-flow-executor")
|
@customElement("ak-flow-executor")
|
||||||
export class FlowExecutor extends LitElement implements StageHost {
|
export class FlowExecutor extends LitElement implements StageHost {
|
||||||
flowSlug?: string;
|
flowSlug?: string;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
import { BaseStage } from "@goauthentik/web/flows/stages/base";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
import { CSSResult, TemplateResult, html } from "lit";
|
import { CSSResult, TemplateResult, html } from "lit";
|
||||||
|
@ -13,8 +15,6 @@ import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
||||||
|
|
||||||
import { FlowChallengeResponseRequest, RedirectChallenge } from "@goauthentik/api";
|
import { FlowChallengeResponseRequest, RedirectChallenge } from "@goauthentik/api";
|
||||||
|
|
||||||
import { BaseStage } from "./base";
|
|
||||||
|
|
||||||
@customElement("ak-stage-redirect")
|
@customElement("ak-stage-redirect")
|
||||||
export class RedirectStage extends BaseStage<RedirectChallenge, FlowChallengeResponseRequest> {
|
export class RedirectStage extends BaseStage<RedirectChallenge, FlowChallengeResponseRequest> {
|
||||||
static get styles(): CSSResult[] {
|
static get styles(): CSSResult[] {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import "@goauthentik/web/elements/EmptyState";
|
import "@goauthentik/web/elements/EmptyState";
|
||||||
import "@goauthentik/web/elements/forms/FormElement";
|
import "@goauthentik/web/elements/forms/FormElement";
|
||||||
import "@goauthentik/web/flows/FormStatic";
|
import "@goauthentik/web/flows/FormStatic";
|
||||||
|
import { AuthenticatorValidateStage } from "@goauthentik/web/flows/stages/authenticator_validate/AuthenticatorValidateStage";
|
||||||
import { BaseStage } from "@goauthentik/web/flows/stages/base";
|
import { BaseStage } from "@goauthentik/web/flows/stages/base";
|
||||||
import { PasswordManagerPrefill } from "@goauthentik/web/flows/stages/identification/IdentificationStage";
|
import { PasswordManagerPrefill } from "@goauthentik/web/flows/stages/identification/IdentificationStage";
|
||||||
|
|
||||||
|
@ -25,8 +26,6 @@ import {
|
||||||
DeviceClassesEnum,
|
DeviceClassesEnum,
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
import { AuthenticatorValidateStage } from "./AuthenticatorValidateStage";
|
|
||||||
|
|
||||||
@customElement("ak-stage-authenticator-validate-code")
|
@customElement("ak-stage-authenticator-validate-code")
|
||||||
export class AuthenticatorValidateStageWebCode extends BaseStage<
|
export class AuthenticatorValidateStageWebCode extends BaseStage<
|
||||||
AuthenticatorValidationChallenge,
|
AuthenticatorValidationChallenge,
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import "@goauthentik/web/elements/EmptyState";
|
import "@goauthentik/web/elements/EmptyState";
|
||||||
import "@goauthentik/web/elements/forms/FormElement";
|
import "@goauthentik/web/elements/forms/FormElement";
|
||||||
import "@goauthentik/web/flows/FormStatic";
|
import "@goauthentik/web/flows/FormStatic";
|
||||||
|
import { AuthenticatorValidateStage } from "@goauthentik/web/flows/stages/authenticator_validate/AuthenticatorValidateStage";
|
||||||
import { BaseStage } from "@goauthentik/web/flows/stages/base";
|
import { BaseStage } from "@goauthentik/web/flows/stages/base";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
@ -23,8 +24,6 @@ import {
|
||||||
DeviceChallenge,
|
DeviceChallenge,
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
import { AuthenticatorValidateStage } from "./AuthenticatorValidateStage";
|
|
||||||
|
|
||||||
@customElement("ak-stage-authenticator-validate-duo")
|
@customElement("ak-stage-authenticator-validate-duo")
|
||||||
export class AuthenticatorValidateStageWebDuo extends BaseStage<
|
export class AuthenticatorValidateStageWebDuo extends BaseStage<
|
||||||
AuthenticatorValidationChallenge,
|
AuthenticatorValidationChallenge,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { AuthenticatorValidateStage } from "@goauthentik/web/flows/stages/authenticator_validate/AuthenticatorValidateStage";
|
||||||
import {
|
import {
|
||||||
transformAssertionForServer,
|
transformAssertionForServer,
|
||||||
transformCredentialRequestOptions,
|
transformCredentialRequestOptions,
|
||||||
|
@ -25,8 +26,6 @@ import {
|
||||||
DeviceChallenge,
|
DeviceChallenge,
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
import { AuthenticatorValidateStage } from "./AuthenticatorValidateStage";
|
|
||||||
|
|
||||||
@customElement("ak-stage-authenticator-validate-webauthn")
|
@customElement("ak-stage-authenticator-validate-webauthn")
|
||||||
export class AuthenticatorValidateStageWebAuthn extends BaseStage<
|
export class AuthenticatorValidateStageWebAuthn extends BaseStage<
|
||||||
AuthenticatorValidationChallenge,
|
AuthenticatorValidationChallenge,
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
import { PFSize } from "@goauthentik/web/elements/Spinner";
|
import { PFSize } from "@goauthentik/web/elements/Spinner";
|
||||||
|
import {
|
||||||
|
Assertion,
|
||||||
|
transformCredentialCreateOptions,
|
||||||
|
transformNewAssertionForServer,
|
||||||
|
} from "@goauthentik/web/flows/stages/authenticator_webauthn/utils";
|
||||||
import { BaseStage } from "@goauthentik/web/flows/stages/base";
|
import { BaseStage } from "@goauthentik/web/flows/stages/base";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
@ -19,12 +24,6 @@ import {
|
||||||
AuthenticatorWebAuthnChallengeResponseRequest,
|
AuthenticatorWebAuthnChallengeResponseRequest,
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
import {
|
|
||||||
Assertion,
|
|
||||||
transformCredentialCreateOptions,
|
|
||||||
transformNewAssertionForServer,
|
|
||||||
} from "./utils";
|
|
||||||
|
|
||||||
export interface WebAuthnAuthenticatorRegisterChallengeResponse {
|
export interface WebAuthnAuthenticatorRegisterChallengeResponse {
|
||||||
response: Assertion;
|
response: Assertion;
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ export const LOCALES: {
|
||||||
label: t`English`,
|
label: t`English`,
|
||||||
locale: async () => {
|
locale: async () => {
|
||||||
return {
|
return {
|
||||||
locale: (await import("../locales/en")).messages,
|
locale: (await import("@goauthentik/web/locales/en")).messages,
|
||||||
plurals: (await import("make-plural/plurals")).en,
|
plurals: (await import("make-plural/plurals")).en,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -32,7 +32,7 @@ export const LOCALES: {
|
||||||
label: t`Debug`,
|
label: t`Debug`,
|
||||||
locale: async () => {
|
locale: async () => {
|
||||||
return {
|
return {
|
||||||
locale: (await import("../locales/pseudo-LOCALE")).messages,
|
locale: (await import("@goauthentik/web/locales/pseudo-LOCALE")).messages,
|
||||||
plurals: (await import("make-plural/plurals")).en,
|
plurals: (await import("make-plural/plurals")).en,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -42,7 +42,7 @@ export const LOCALES: {
|
||||||
label: t`French`,
|
label: t`French`,
|
||||||
locale: async () => {
|
locale: async () => {
|
||||||
return {
|
return {
|
||||||
locale: (await import("../locales/fr_FR")).messages,
|
locale: (await import("@goauthentik/web/locales/fr_FR")).messages,
|
||||||
plurals: (await import("make-plural/plurals")).fr,
|
plurals: (await import("make-plural/plurals")).fr,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -52,7 +52,7 @@ export const LOCALES: {
|
||||||
label: t`Turkish`,
|
label: t`Turkish`,
|
||||||
locale: async () => {
|
locale: async () => {
|
||||||
return {
|
return {
|
||||||
locale: (await import("../locales/tr")).messages,
|
locale: (await import("@goauthentik/web/locales/tr")).messages,
|
||||||
plurals: (await import("make-plural/plurals")).tr,
|
plurals: (await import("make-plural/plurals")).tr,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -62,7 +62,7 @@ export const LOCALES: {
|
||||||
label: t`Spanish`,
|
label: t`Spanish`,
|
||||||
locale: async () => {
|
locale: async () => {
|
||||||
return {
|
return {
|
||||||
locale: (await import("../locales/es")).messages,
|
locale: (await import("@goauthentik/web/locales/es")).messages,
|
||||||
plurals: (await import("make-plural/plurals")).es,
|
plurals: (await import("make-plural/plurals")).es,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -72,7 +72,7 @@ export const LOCALES: {
|
||||||
label: t`Polish`,
|
label: t`Polish`,
|
||||||
locale: async () => {
|
locale: async () => {
|
||||||
return {
|
return {
|
||||||
locale: (await import("../locales/pl")).messages,
|
locale: (await import("@goauthentik/web/locales/pl")).messages,
|
||||||
plurals: (await import("make-plural/plurals")).pl,
|
plurals: (await import("make-plural/plurals")).pl,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -82,7 +82,7 @@ export const LOCALES: {
|
||||||
label: t`Taiwanese Mandarin`,
|
label: t`Taiwanese Mandarin`,
|
||||||
locale: async () => {
|
locale: async () => {
|
||||||
return {
|
return {
|
||||||
locale: (await import("../locales/zh_TW")).messages,
|
locale: (await import("@goauthentik/web/locales/zh_TW")).messages,
|
||||||
plurals: (await import("make-plural/plurals")).zh,
|
plurals: (await import("make-plural/plurals")).zh,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -92,7 +92,7 @@ export const LOCALES: {
|
||||||
label: t`Chinese (simplified)`,
|
label: t`Chinese (simplified)`,
|
||||||
locale: async () => {
|
locale: async () => {
|
||||||
return {
|
return {
|
||||||
locale: (await import("../locales/zh-Hans")).messages,
|
locale: (await import("@goauthentik/web/locales/zh-Hans")).messages,
|
||||||
plurals: (await import("make-plural/plurals")).zh,
|
plurals: (await import("make-plural/plurals")).zh,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -102,7 +102,7 @@ export const LOCALES: {
|
||||||
label: t`Chinese (traditional)`,
|
label: t`Chinese (traditional)`,
|
||||||
locale: async () => {
|
locale: async () => {
|
||||||
return {
|
return {
|
||||||
locale: (await import("../locales/zh-Hant")).messages,
|
locale: (await import("@goauthentik/web/locales/zh-Hant")).messages,
|
||||||
plurals: (await import("make-plural/plurals")).zh,
|
plurals: (await import("make-plural/plurals")).zh,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -112,7 +112,7 @@ export const LOCALES: {
|
||||||
label: t`German`,
|
label: t`German`,
|
||||||
locale: async () => {
|
locale: async () => {
|
||||||
return {
|
return {
|
||||||
locale: (await import("../locales/de")).messages,
|
locale: (await import("@goauthentik/web/locales/de")).messages,
|
||||||
plurals: (await import("make-plural/plurals")).de,
|
plurals: (await import("make-plural/plurals")).de,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
||||||
|
import {
|
||||||
|
AdminStatus,
|
||||||
|
AdminStatusCard,
|
||||||
|
} from "@goauthentik/web/pages/admin-overview/cards/AdminStatusCard";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
|
@ -7,8 +11,6 @@ import { customElement } from "lit/decorators.js";
|
||||||
|
|
||||||
import { AdminApi, OutpostsApi, System } from "@goauthentik/api";
|
import { AdminApi, OutpostsApi, System } from "@goauthentik/api";
|
||||||
|
|
||||||
import { AdminStatus, AdminStatusCard } from "./AdminStatusCard";
|
|
||||||
|
|
||||||
@customElement("ak-admin-status-system")
|
@customElement("ak-admin-status-system")
|
||||||
export class SystemStatusCard extends AdminStatusCard<System> {
|
export class SystemStatusCard extends AdminStatusCard<System> {
|
||||||
now?: Date;
|
now?: Date;
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
||||||
|
import {
|
||||||
|
AdminStatus,
|
||||||
|
AdminStatusCard,
|
||||||
|
} from "@goauthentik/web/pages/admin-overview/cards/AdminStatusCard";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
|
@ -7,8 +11,6 @@ import { customElement } from "lit/decorators.js";
|
||||||
|
|
||||||
import { AdminApi, Version } from "@goauthentik/api";
|
import { AdminApi, Version } from "@goauthentik/api";
|
||||||
|
|
||||||
import { AdminStatus, AdminStatusCard } from "./AdminStatusCard";
|
|
||||||
|
|
||||||
@customElement("ak-admin-status-version")
|
@customElement("ak-admin-status-version")
|
||||||
export class VersionStatusCard extends AdminStatusCard<Version> {
|
export class VersionStatusCard extends AdminStatusCard<Version> {
|
||||||
getPrimaryValue(): Promise<Version> {
|
getPrimaryValue(): Promise<Version> {
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
||||||
|
import {
|
||||||
|
AdminStatus,
|
||||||
|
AdminStatusCard,
|
||||||
|
} from "@goauthentik/web/pages/admin-overview/cards/AdminStatusCard";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
|
@ -7,8 +11,6 @@ import { customElement } from "lit/decorators.js";
|
||||||
|
|
||||||
import { AdminApi } from "@goauthentik/api";
|
import { AdminApi } from "@goauthentik/api";
|
||||||
|
|
||||||
import { AdminStatus, AdminStatusCard } from "./AdminStatusCard";
|
|
||||||
|
|
||||||
@customElement("ak-admin-status-card-workers")
|
@customElement("ak-admin-status-card-workers")
|
||||||
export class WorkersStatusCard extends AdminStatusCard<number> {
|
export class WorkersStatusCard extends AdminStatusCard<number> {
|
||||||
getPrimaryValue(): Promise<number> {
|
getPrimaryValue(): Promise<number> {
|
||||||
|
|
|
@ -1,28 +1,28 @@
|
||||||
|
import "@goauthentik/web/elements/wizard/Wizard";
|
||||||
|
import "@goauthentik/web/pages/applications/wizard/InitialApplicationWizardPage";
|
||||||
|
import "@goauthentik/web/pages/applications/wizard/TypeApplicationWizardPage";
|
||||||
|
import "@goauthentik/web/pages/applications/wizard/ldap/TypeLDAPApplicationWizardPage";
|
||||||
|
import "@goauthentik/web/pages/applications/wizard/link/TypeLinkApplicationWizardPage";
|
||||||
|
import "@goauthentik/web/pages/applications/wizard/oauth/TypeOAuthAPIApplicationWizardPage";
|
||||||
|
import "@goauthentik/web/pages/applications/wizard/oauth/TypeOAuthApplicationWizardPage";
|
||||||
|
import "@goauthentik/web/pages/applications/wizard/oauth/TypeOAuthCodeApplicationWizardPage";
|
||||||
|
import "@goauthentik/web/pages/applications/wizard/oauth/TypeOAuthImplicitApplicationWizardPage";
|
||||||
|
import "@goauthentik/web/pages/applications/wizard/proxy/TypeProxyApplicationWizardPage";
|
||||||
|
import "@goauthentik/web/pages/applications/wizard/saml/TypeSAMLApplicationWizardPage";
|
||||||
|
import "@goauthentik/web/pages/applications/wizard/saml/TypeSAMLConfigApplicationWizardPage";
|
||||||
|
import "@goauthentik/web/pages/applications/wizard/saml/TypeSAMLImportApplicationWizardPage";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
||||||
import { CSSResult, LitElement, TemplateResult, html } from "lit";
|
import { CSSResult, LitElement, TemplateResult, html } from "lit";
|
||||||
import { property } from "lit/decorators.js";
|
import { property } from "lit/decorators.js";
|
||||||
|
|
||||||
import AKGlobal from "../../../authentik.css";
|
import AKGlobal from "@goauthentik/web/authentik.css";
|
||||||
import PFButton from "@patternfly/patternfly/components/Button/button.css";
|
import PFButton from "@patternfly/patternfly/components/Button/button.css";
|
||||||
import PFRadio from "@patternfly/patternfly/components/Radio/radio.css";
|
import PFRadio from "@patternfly/patternfly/components/Radio/radio.css";
|
||||||
import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
||||||
|
|
||||||
import "../../../elements/wizard/Wizard";
|
|
||||||
import "./InitialApplicationWizardPage";
|
|
||||||
import "./TypeApplicationWizardPage";
|
|
||||||
import "./ldap/TypeLDAPApplicationWizardPage";
|
|
||||||
import "./link/TypeLinkApplicationWizardPage";
|
|
||||||
import "./oauth/TypeOAuthAPIApplicationWizardPage";
|
|
||||||
import "./oauth/TypeOAuthApplicationWizardPage";
|
|
||||||
import "./oauth/TypeOAuthCodeApplicationWizardPage";
|
|
||||||
import "./oauth/TypeOAuthImplicitApplicationWizardPage";
|
|
||||||
import "./proxy/TypeProxyApplicationWizardPage";
|
|
||||||
import "./saml/TypeSAMLApplicationWizardPage";
|
|
||||||
import "./saml/TypeSAMLConfigApplicationWizardPage";
|
|
||||||
import "./saml/TypeSAMLImportApplicationWizardPage";
|
|
||||||
|
|
||||||
@customElement("ak-application-wizard")
|
@customElement("ak-application-wizard")
|
||||||
export class ApplicationWizard extends LitElement {
|
export class ApplicationWizard extends LitElement {
|
||||||
static get styles(): CSSResult[] {
|
static get styles(): CSSResult[] {
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
||||||
|
import { KeyUnknown } from "@goauthentik/web/elements/forms/Form";
|
||||||
|
import "@goauthentik/web/elements/forms/FormGroup";
|
||||||
|
import "@goauthentik/web/elements/forms/HorizontalFormElement";
|
||||||
|
import { WizardFormPage } from "@goauthentik/web/elements/wizard/WizardFormPage";
|
||||||
|
import { convertToSlug } from "@goauthentik/web/utils";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
||||||
|
@ -5,13 +12,6 @@ import { TemplateResult, html } from "lit";
|
||||||
|
|
||||||
import { ApplicationRequest, CoreApi, Provider } from "@goauthentik/api";
|
import { ApplicationRequest, CoreApi, Provider } from "@goauthentik/api";
|
||||||
|
|
||||||
import { DEFAULT_CONFIG } from "../../../api/Config";
|
|
||||||
import { KeyUnknown } from "../../../elements/forms/Form";
|
|
||||||
import "../../../elements/forms/FormGroup";
|
|
||||||
import "../../../elements/forms/HorizontalFormElement";
|
|
||||||
import { WizardFormPage } from "../../../elements/wizard/WizardFormPage";
|
|
||||||
import { convertToSlug } from "../../../utils";
|
|
||||||
|
|
||||||
@customElement("ak-application-wizard-initial")
|
@customElement("ak-application-wizard-initial")
|
||||||
export class InitialApplicationWizardPage extends WizardFormPage {
|
export class InitialApplicationWizardPage extends WizardFormPage {
|
||||||
sidebarLabel = () => t`Application details`;
|
sidebarLabel = () => t`Application details`;
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
|
import { WizardPage } from "@goauthentik/web/elements/wizard/WizardPage";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
||||||
import { CSSResult, TemplateResult, html } from "lit";
|
import { CSSResult, TemplateResult, html } from "lit";
|
||||||
|
|
||||||
import AKGlobal from "../../../authentik.css";
|
import AKGlobal from "@goauthentik/web/authentik.css";
|
||||||
import PFButton from "@patternfly/patternfly/components/Button/button.css";
|
import PFButton from "@patternfly/patternfly/components/Button/button.css";
|
||||||
import PFForm from "@patternfly/patternfly/components/Form/form.css";
|
import PFForm from "@patternfly/patternfly/components/Form/form.css";
|
||||||
import PFRadio from "@patternfly/patternfly/components/Radio/radio.css";
|
import PFRadio from "@patternfly/patternfly/components/Radio/radio.css";
|
||||||
|
@ -11,8 +13,6 @@ import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
||||||
|
|
||||||
import { TypeCreate } from "@goauthentik/api";
|
import { TypeCreate } from "@goauthentik/api";
|
||||||
|
|
||||||
import { WizardPage } from "../../../elements/wizard/WizardPage";
|
|
||||||
|
|
||||||
@customElement("ak-application-wizard-type")
|
@customElement("ak-application-wizard-type")
|
||||||
export class TypeApplicationWizardPage extends WizardPage {
|
export class TypeApplicationWizardPage extends WizardPage {
|
||||||
applicationTypes: TypeCreate[] = [
|
applicationTypes: TypeCreate[] = [
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
||||||
|
import { KeyUnknown } from "@goauthentik/web/elements/forms/Form";
|
||||||
|
import "@goauthentik/web/elements/forms/HorizontalFormElement";
|
||||||
|
import { WizardFormPage } from "@goauthentik/web/elements/wizard/WizardFormPage";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
||||||
|
@ -12,11 +17,6 @@ import {
|
||||||
UserServiceAccountResponse,
|
UserServiceAccountResponse,
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
import { DEFAULT_CONFIG } from "../../../../api/Config";
|
|
||||||
import { KeyUnknown } from "../../../../elements/forms/Form";
|
|
||||||
import "../../../../elements/forms/HorizontalFormElement";
|
|
||||||
import { WizardFormPage } from "../../../../elements/wizard/WizardFormPage";
|
|
||||||
|
|
||||||
@customElement("ak-application-wizard-type-ldap")
|
@customElement("ak-application-wizard-type-ldap")
|
||||||
export class TypeLDAPApplicationWizardPage extends WizardFormPage {
|
export class TypeLDAPApplicationWizardPage extends WizardFormPage {
|
||||||
sidebarLabel = () => t`LDAP details`;
|
sidebarLabel = () => t`LDAP details`;
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
|
import { KeyUnknown } from "@goauthentik/web/elements/forms/Form";
|
||||||
|
import "@goauthentik/web/elements/forms/HorizontalFormElement";
|
||||||
|
import { WizardFormPage } from "@goauthentik/web/elements/wizard/WizardFormPage";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
||||||
import { TemplateResult, html } from "lit";
|
import { TemplateResult, html } from "lit";
|
||||||
|
|
||||||
import { KeyUnknown } from "../../../../elements/forms/Form";
|
|
||||||
import "../../../../elements/forms/HorizontalFormElement";
|
|
||||||
import { WizardFormPage } from "../../../../elements/wizard/WizardFormPage";
|
|
||||||
|
|
||||||
@customElement("ak-application-wizard-type-link")
|
@customElement("ak-application-wizard-type-link")
|
||||||
export class TypeLinkApplicationWizardPage extends WizardFormPage {
|
export class TypeLinkApplicationWizardPage extends WizardFormPage {
|
||||||
sidebarLabel = () => t`Application Link`;
|
sidebarLabel = () => t`Application Link`;
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
|
import "@goauthentik/web/elements/forms/HorizontalFormElement";
|
||||||
|
import { WizardPage } from "@goauthentik/web/elements/wizard/WizardPage";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
||||||
import { CSSResult, TemplateResult, html } from "lit";
|
import { CSSResult, TemplateResult, html } from "lit";
|
||||||
|
|
||||||
import AKGlobal from "../../../../authentik.css";
|
import AKGlobal from "@goauthentik/web/authentik.css";
|
||||||
import PFButton from "@patternfly/patternfly/components/Button/button.css";
|
import PFButton from "@patternfly/patternfly/components/Button/button.css";
|
||||||
import PFForm from "@patternfly/patternfly/components/Form/form.css";
|
import PFForm from "@patternfly/patternfly/components/Form/form.css";
|
||||||
import PFRadio from "@patternfly/patternfly/components/Radio/radio.css";
|
import PFRadio from "@patternfly/patternfly/components/Radio/radio.css";
|
||||||
import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
||||||
|
|
||||||
import "../../../../elements/forms/HorizontalFormElement";
|
|
||||||
import { WizardPage } from "../../../../elements/wizard/WizardPage";
|
|
||||||
|
|
||||||
@customElement("ak-application-wizard-type-oauth-api")
|
@customElement("ak-application-wizard-type-oauth-api")
|
||||||
export class TypeOAuthAPIApplicationWizardPage extends WizardPage {
|
export class TypeOAuthAPIApplicationWizardPage extends WizardPage {
|
||||||
static get styles(): CSSResult[] {
|
static get styles(): CSSResult[] {
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
|
import "@goauthentik/web/elements/forms/HorizontalFormElement";
|
||||||
|
import { WizardPage } from "@goauthentik/web/elements/wizard/WizardPage";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
||||||
import { CSSResult, TemplateResult, html } from "lit";
|
import { CSSResult, TemplateResult, html } from "lit";
|
||||||
|
|
||||||
import AKGlobal from "../../../../authentik.css";
|
import AKGlobal from "@goauthentik/web/authentik.css";
|
||||||
import PFButton from "@patternfly/patternfly/components/Button/button.css";
|
import PFButton from "@patternfly/patternfly/components/Button/button.css";
|
||||||
import PFForm from "@patternfly/patternfly/components/Form/form.css";
|
import PFForm from "@patternfly/patternfly/components/Form/form.css";
|
||||||
import PFRadio from "@patternfly/patternfly/components/Radio/radio.css";
|
import PFRadio from "@patternfly/patternfly/components/Radio/radio.css";
|
||||||
|
@ -11,9 +14,6 @@ import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
||||||
|
|
||||||
import { TypeCreate } from "@goauthentik/api";
|
import { TypeCreate } from "@goauthentik/api";
|
||||||
|
|
||||||
import "../../../../elements/forms/HorizontalFormElement";
|
|
||||||
import { WizardPage } from "../../../../elements/wizard/WizardPage";
|
|
||||||
|
|
||||||
@customElement("ak-application-wizard-type-oauth")
|
@customElement("ak-application-wizard-type-oauth")
|
||||||
export class TypeOAuthApplicationWizardPage extends WizardPage {
|
export class TypeOAuthApplicationWizardPage extends WizardPage {
|
||||||
applicationTypes: TypeCreate[] = [
|
applicationTypes: TypeCreate[] = [
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
||||||
|
import { KeyUnknown } from "@goauthentik/web/elements/forms/Form";
|
||||||
|
import "@goauthentik/web/elements/forms/HorizontalFormElement";
|
||||||
|
import { WizardFormPage } from "@goauthentik/web/elements/wizard/WizardFormPage";
|
||||||
|
import "@goauthentik/web/elements/wizard/WizardFormPage";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
||||||
|
@ -13,12 +19,6 @@ import {
|
||||||
ProvidersApi,
|
ProvidersApi,
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
import { DEFAULT_CONFIG } from "../../../../api/Config";
|
|
||||||
import { KeyUnknown } from "../../../../elements/forms/Form";
|
|
||||||
import "../../../../elements/forms/HorizontalFormElement";
|
|
||||||
import { WizardFormPage } from "../../../../elements/wizard/WizardFormPage";
|
|
||||||
import "../../../../elements/wizard/WizardFormPage";
|
|
||||||
|
|
||||||
@customElement("ak-application-wizard-type-oauth-code")
|
@customElement("ak-application-wizard-type-oauth-code")
|
||||||
export class TypeOAuthCodeApplicationWizardPage extends WizardFormPage {
|
export class TypeOAuthCodeApplicationWizardPage extends WizardFormPage {
|
||||||
sidebarLabel = () => t`Method details`;
|
sidebarLabel = () => t`Method details`;
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
|
import "@goauthentik/web/elements/forms/HorizontalFormElement";
|
||||||
|
import { WizardFormPage } from "@goauthentik/web/elements/wizard/WizardFormPage";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
||||||
import { TemplateResult, html } from "lit";
|
import { TemplateResult, html } from "lit";
|
||||||
|
|
||||||
import "../../../../elements/forms/HorizontalFormElement";
|
|
||||||
import { WizardFormPage } from "../../../../elements/wizard/WizardFormPage";
|
|
||||||
|
|
||||||
@customElement("ak-application-wizard-type-oauth-implicit")
|
@customElement("ak-application-wizard-type-oauth-implicit")
|
||||||
export class TypeOAuthImplicitApplicationWizardPage extends WizardFormPage {
|
export class TypeOAuthImplicitApplicationWizardPage extends WizardFormPage {
|
||||||
sidebarLabel = () => t`Method details`;
|
sidebarLabel = () => t`Method details`;
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
||||||
|
import { KeyUnknown } from "@goauthentik/web/elements/forms/Form";
|
||||||
|
import "@goauthentik/web/elements/forms/HorizontalFormElement";
|
||||||
|
import { WizardFormPage } from "@goauthentik/web/elements/wizard/WizardFormPage";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
||||||
|
@ -10,11 +15,6 @@ import {
|
||||||
ProxyProviderRequest,
|
ProxyProviderRequest,
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
import { DEFAULT_CONFIG } from "../../../../api/Config";
|
|
||||||
import { KeyUnknown } from "../../../../elements/forms/Form";
|
|
||||||
import "../../../../elements/forms/HorizontalFormElement";
|
|
||||||
import { WizardFormPage } from "../../../../elements/wizard/WizardFormPage";
|
|
||||||
|
|
||||||
@customElement("ak-application-wizard-type-proxy")
|
@customElement("ak-application-wizard-type-proxy")
|
||||||
export class TypeProxyApplicationWizardPage extends WizardFormPage {
|
export class TypeProxyApplicationWizardPage extends WizardFormPage {
|
||||||
sidebarLabel = () => t`Proxy details`;
|
sidebarLabel = () => t`Proxy details`;
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
|
import "@goauthentik/web/elements/forms/HorizontalFormElement";
|
||||||
|
import { WizardPage } from "@goauthentik/web/elements/wizard/WizardPage";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
||||||
import { CSSResult, TemplateResult, html } from "lit";
|
import { CSSResult, TemplateResult, html } from "lit";
|
||||||
|
|
||||||
import AKGlobal from "../../../../authentik.css";
|
import AKGlobal from "@goauthentik/web/authentik.css";
|
||||||
import PFButton from "@patternfly/patternfly/components/Button/button.css";
|
import PFButton from "@patternfly/patternfly/components/Button/button.css";
|
||||||
import PFForm from "@patternfly/patternfly/components/Form/form.css";
|
import PFForm from "@patternfly/patternfly/components/Form/form.css";
|
||||||
import PFRadio from "@patternfly/patternfly/components/Radio/radio.css";
|
import PFRadio from "@patternfly/patternfly/components/Radio/radio.css";
|
||||||
|
@ -11,9 +14,6 @@ import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
||||||
|
|
||||||
import { TypeCreate } from "@goauthentik/api";
|
import { TypeCreate } from "@goauthentik/api";
|
||||||
|
|
||||||
import "../../../../elements/forms/HorizontalFormElement";
|
|
||||||
import { WizardPage } from "../../../../elements/wizard/WizardPage";
|
|
||||||
|
|
||||||
@customElement("ak-application-wizard-type-saml")
|
@customElement("ak-application-wizard-type-saml")
|
||||||
export class TypeOAuthApplicationWizardPage extends WizardPage {
|
export class TypeOAuthApplicationWizardPage extends WizardPage {
|
||||||
applicationTypes: TypeCreate[] = [
|
applicationTypes: TypeCreate[] = [
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
||||||
|
import { KeyUnknown } from "@goauthentik/web/elements/forms/Form";
|
||||||
|
import "@goauthentik/web/elements/forms/HorizontalFormElement";
|
||||||
|
import { WizardFormPage } from "@goauthentik/web/elements/wizard/WizardFormPage";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
||||||
|
@ -5,11 +10,6 @@ import { TemplateResult, html } from "lit";
|
||||||
|
|
||||||
import { FlowDesignationEnum, FlowsApi, ProvidersApi, SAMLProviderRequest } from "@goauthentik/api";
|
import { FlowDesignationEnum, FlowsApi, ProvidersApi, SAMLProviderRequest } from "@goauthentik/api";
|
||||||
|
|
||||||
import { DEFAULT_CONFIG } from "../../../../api/Config";
|
|
||||||
import { KeyUnknown } from "../../../../elements/forms/Form";
|
|
||||||
import "../../../../elements/forms/HorizontalFormElement";
|
|
||||||
import { WizardFormPage } from "../../../../elements/wizard/WizardFormPage";
|
|
||||||
|
|
||||||
@customElement("ak-application-wizard-type-saml-config")
|
@customElement("ak-application-wizard-type-saml-config")
|
||||||
export class TypeSAMLApplicationWizardPage extends WizardFormPage {
|
export class TypeSAMLApplicationWizardPage extends WizardFormPage {
|
||||||
sidebarLabel = () => t`SAML details`;
|
sidebarLabel = () => t`SAML details`;
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
||||||
|
import { KeyUnknown } from "@goauthentik/web/elements/forms/Form";
|
||||||
|
import "@goauthentik/web/elements/forms/HorizontalFormElement";
|
||||||
|
import { WizardFormPage } from "@goauthentik/web/elements/wizard/WizardFormPage";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
import { customElement } from "@lit/reactive-element/decorators/custom-element.js";
|
||||||
|
@ -10,11 +15,6 @@ import {
|
||||||
ProvidersSamlImportMetadataCreateRequest,
|
ProvidersSamlImportMetadataCreateRequest,
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
import { DEFAULT_CONFIG } from "../../../../api/Config";
|
|
||||||
import { KeyUnknown } from "../../../../elements/forms/Form";
|
|
||||||
import "../../../../elements/forms/HorizontalFormElement";
|
|
||||||
import { WizardFormPage } from "../../../../elements/wizard/WizardFormPage";
|
|
||||||
|
|
||||||
@customElement("ak-application-wizard-type-saml-import")
|
@customElement("ak-application-wizard-type-saml-import")
|
||||||
export class TypeSAMLImportApplicationWizardPage extends WizardFormPage {
|
export class TypeSAMLImportApplicationWizardPage extends WizardFormPage {
|
||||||
sidebarLabel = () => t`Import SAML metadata`;
|
sidebarLabel = () => t`Import SAML metadata`;
|
||||||
|
|
|
@ -2,6 +2,7 @@ import { DeniedActionEnum } from "@goauthentik/api/dist/models/DeniedActionEnum.
|
||||||
import { DEFAULT_CONFIG, config } from "@goauthentik/web/api/Config";
|
import { DEFAULT_CONFIG, config } from "@goauthentik/web/api/Config";
|
||||||
import "@goauthentik/web/elements/forms/HorizontalFormElement";
|
import "@goauthentik/web/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/web/elements/forms/ModelForm";
|
import { ModelForm } from "@goauthentik/web/elements/forms/ModelForm";
|
||||||
|
import { DesignationToLabel, LayoutToLabel } from "@goauthentik/web/pages/flows/utils";
|
||||||
import { first } from "@goauthentik/web/utils";
|
import { first } from "@goauthentik/web/utils";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
@ -20,8 +21,6 @@ import {
|
||||||
PolicyEngineMode,
|
PolicyEngineMode,
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
import { DesignationToLabel, LayoutToLabel } from "./utils";
|
|
||||||
|
|
||||||
@customElement("ak-flow-form")
|
@customElement("ak-flow-form")
|
||||||
export class FlowForm extends ModelForm<Flow, string> {
|
export class FlowForm extends ModelForm<Flow, string> {
|
||||||
loadInstance(pk: string): Promise<Flow> {
|
loadInstance(pk: string): Promise<Flow> {
|
||||||
|
|
|
@ -9,6 +9,7 @@ import { TableColumn } from "@goauthentik/web/elements/table/Table";
|
||||||
import { TablePage } from "@goauthentik/web/elements/table/TablePage";
|
import { TablePage } from "@goauthentik/web/elements/table/TablePage";
|
||||||
import "@goauthentik/web/pages/flows/FlowForm";
|
import "@goauthentik/web/pages/flows/FlowForm";
|
||||||
import "@goauthentik/web/pages/flows/FlowImportForm";
|
import "@goauthentik/web/pages/flows/FlowImportForm";
|
||||||
|
import { DesignationToLabel } from "@goauthentik/web/pages/flows/utils";
|
||||||
import { groupBy } from "@goauthentik/web/utils";
|
import { groupBy } from "@goauthentik/web/utils";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
@ -18,8 +19,6 @@ import { customElement, property } from "lit/decorators.js";
|
||||||
|
|
||||||
import { Flow, FlowsApi } from "@goauthentik/api";
|
import { Flow, FlowsApi } from "@goauthentik/api";
|
||||||
|
|
||||||
import { DesignationToLabel } from "./utils";
|
|
||||||
|
|
||||||
@customElement("ak-flow-list")
|
@customElement("ak-flow-list")
|
||||||
export class FlowListPage extends TablePage<Flow> {
|
export class FlowListPage extends TablePage<Flow> {
|
||||||
searchEnabled(): boolean {
|
searchEnabled(): boolean {
|
||||||
|
|
|
@ -3,6 +3,25 @@ import "@goauthentik/web/elements/forms/ProxyForm";
|
||||||
import "@goauthentik/web/elements/wizard/FormWizardPage";
|
import "@goauthentik/web/elements/wizard/FormWizardPage";
|
||||||
import "@goauthentik/web/elements/wizard/Wizard";
|
import "@goauthentik/web/elements/wizard/Wizard";
|
||||||
import { WizardPage } from "@goauthentik/web/elements/wizard/WizardPage";
|
import { WizardPage } from "@goauthentik/web/elements/wizard/WizardPage";
|
||||||
|
import "@goauthentik/web/pages/stages/authenticator_duo/AuthenticatorDuoStageForm.ts";
|
||||||
|
import "@goauthentik/web/pages/stages/authenticator_sms/AuthenticatorSMSStageForm.ts";
|
||||||
|
import "@goauthentik/web/pages/stages/authenticator_static/AuthenticatorStaticStageForm.ts";
|
||||||
|
import "@goauthentik/web/pages/stages/authenticator_totp/AuthenticatorTOTPStageForm.ts";
|
||||||
|
import "@goauthentik/web/pages/stages/authenticator_validate/AuthenticatorValidateStageForm.ts";
|
||||||
|
import "@goauthentik/web/pages/stages/authenticator_webauthn/AuthenticateWebAuthnStageForm.ts";
|
||||||
|
import "@goauthentik/web/pages/stages/captcha/CaptchaStageForm.ts";
|
||||||
|
import "@goauthentik/web/pages/stages/consent/ConsentStageForm.ts";
|
||||||
|
import "@goauthentik/web/pages/stages/deny/DenyStageForm.ts";
|
||||||
|
import "@goauthentik/web/pages/stages/dummy/DummyStageForm.ts";
|
||||||
|
import "@goauthentik/web/pages/stages/email/EmailStageForm.ts";
|
||||||
|
import "@goauthentik/web/pages/stages/identification/IdentificationStageForm.ts";
|
||||||
|
import "@goauthentik/web/pages/stages/invitation/InvitationStageForm.ts";
|
||||||
|
import "@goauthentik/web/pages/stages/password/PasswordStageForm.ts";
|
||||||
|
import "@goauthentik/web/pages/stages/prompt/PromptStageForm.ts";
|
||||||
|
import "@goauthentik/web/pages/stages/user_delete/UserDeleteStageForm.ts";
|
||||||
|
import "@goauthentik/web/pages/stages/user_login/UserLoginStageForm.ts";
|
||||||
|
import "@goauthentik/web/pages/stages/user_logout/UserLogoutStageForm.ts";
|
||||||
|
import "@goauthentik/web/pages/stages/user_write/UserWriteStageForm.ts";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
|
@ -18,26 +37,6 @@ import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
||||||
|
|
||||||
import { StagesApi, TypeCreate } from "@goauthentik/api";
|
import { StagesApi, TypeCreate } from "@goauthentik/api";
|
||||||
|
|
||||||
import "./authenticator_duo/AuthenticatorDuoStageForm.ts";
|
|
||||||
import "./authenticator_sms/AuthenticatorSMSStageForm.ts";
|
|
||||||
import "./authenticator_static/AuthenticatorStaticStageForm.ts";
|
|
||||||
import "./authenticator_totp/AuthenticatorTOTPStageForm.ts";
|
|
||||||
import "./authenticator_validate/AuthenticatorValidateStageForm.ts";
|
|
||||||
import "./authenticator_webauthn/AuthenticateWebAuthnStageForm.ts";
|
|
||||||
import "./captcha/CaptchaStageForm.ts";
|
|
||||||
import "./consent/ConsentStageForm.ts";
|
|
||||||
import "./deny/DenyStageForm.ts";
|
|
||||||
import "./dummy/DummyStageForm.ts";
|
|
||||||
import "./email/EmailStageForm.ts";
|
|
||||||
import "./identification/IdentificationStageForm.ts";
|
|
||||||
import "./invitation/InvitationStageForm.ts";
|
|
||||||
import "./password/PasswordStageForm.ts";
|
|
||||||
import "./prompt/PromptStageForm.ts";
|
|
||||||
import "./user_delete/UserDeleteStageForm.ts";
|
|
||||||
import "./user_login/UserLoginStageForm.ts";
|
|
||||||
import "./user_logout/UserLogoutStageForm.ts";
|
|
||||||
import "./user_write/UserWriteStageForm.ts";
|
|
||||||
|
|
||||||
@customElement("ak-stage-wizard-initial")
|
@customElement("ak-stage-wizard-initial")
|
||||||
export class InitialStageWizardPage extends WizardPage {
|
export class InitialStageWizardPage extends WizardPage {
|
||||||
@property({ attribute: false })
|
@property({ attribute: false })
|
||||||
|
|
|
@ -2,6 +2,7 @@ import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
||||||
import "@goauthentik/web/elements/CodeMirror";
|
import "@goauthentik/web/elements/CodeMirror";
|
||||||
import "@goauthentik/web/elements/forms/HorizontalFormElement";
|
import "@goauthentik/web/elements/forms/HorizontalFormElement";
|
||||||
import { ModelForm } from "@goauthentik/web/elements/forms/ModelForm";
|
import { ModelForm } from "@goauthentik/web/elements/forms/ModelForm";
|
||||||
|
import "@goauthentik/web/pages/users/GroupSelectModal";
|
||||||
import { first } from "@goauthentik/web/utils";
|
import { first } from "@goauthentik/web/utils";
|
||||||
import YAML from "yaml";
|
import YAML from "yaml";
|
||||||
|
|
||||||
|
@ -14,8 +15,6 @@ import { until } from "lit/directives/until.js";
|
||||||
|
|
||||||
import { CoreApi, Group, User } from "@goauthentik/api";
|
import { CoreApi, Group, User } from "@goauthentik/api";
|
||||||
|
|
||||||
import "./GroupSelectModal";
|
|
||||||
|
|
||||||
@customElement("ak-user-form")
|
@customElement("ak-user-form")
|
||||||
export class UserForm extends ModelForm<User, number> {
|
export class UserForm extends ModelForm<User, number> {
|
||||||
static get styles(): CSSResult[] {
|
static get styles(): CSSResult[] {
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
|
import { ID_REGEX, Route, SLUG_REGEX, UUID_REGEX } from "@goauthentik/web/elements/router/Route";
|
||||||
import "@goauthentik/web/pages/admin-overview/AdminOverviewPage";
|
import "@goauthentik/web/pages/admin-overview/AdminOverviewPage";
|
||||||
|
|
||||||
import { html } from "lit";
|
import { html } from "lit";
|
||||||
|
|
||||||
import { ID_REGEX, Route, SLUG_REGEX, UUID_REGEX } from "./elements/router/Route";
|
|
||||||
|
|
||||||
export const ROUTES: Route[] = [
|
export const ROUTES: Route[] = [
|
||||||
// Prevent infinite Shell loops
|
// Prevent infinite Shell loops
|
||||||
new Route(new RegExp("^/$")).redirect("/administration/overview"),
|
new Route(new RegExp("^/$")).redirect("/administration/overview"),
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { html } from "lit";
|
import { Route } from "@goauthentik/web/elements/router/Route";
|
||||||
|
import "@goauthentik/web/user/LibraryPage";
|
||||||
|
|
||||||
import { Route } from "./elements/router/Route";
|
import { html } from "lit";
|
||||||
import "./user/LibraryPage";
|
|
||||||
|
|
||||||
export const ROUTES: Route[] = [
|
export const ROUTES: Route[] = [
|
||||||
// Prevent infinite Shell loops
|
// Prevent infinite Shell loops
|
||||||
|
|
|
@ -2,6 +2,7 @@ import { AKResponse } from "@goauthentik/web/api/Client";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
||||||
import { LayoutType, UIConfig, uiConfig } from "@goauthentik/web/common/config";
|
import { LayoutType, UIConfig, uiConfig } from "@goauthentik/web/common/config";
|
||||||
import { getURLParam, updateURLParams } from "@goauthentik/web/elements/router/RouteMatch";
|
import { getURLParam, updateURLParams } from "@goauthentik/web/elements/router/RouteMatch";
|
||||||
|
import "@goauthentik/web/user/LibraryApplication";
|
||||||
import { groupBy, loading } from "@goauthentik/web/utils";
|
import { groupBy, loading } from "@goauthentik/web/utils";
|
||||||
import Fuse from "fuse.js";
|
import Fuse from "fuse.js";
|
||||||
|
|
||||||
|
@ -22,8 +23,6 @@ import PFDisplay from "@patternfly/patternfly/utilities/Display/display.css";
|
||||||
|
|
||||||
import { Application, CoreApi } from "@goauthentik/api";
|
import { Application, CoreApi } from "@goauthentik/api";
|
||||||
|
|
||||||
import "./LibraryApplication";
|
|
||||||
|
|
||||||
@customElement("ak-library")
|
@customElement("ak-library")
|
||||||
export class LibraryPage extends LitElement {
|
export class LibraryPage extends LitElement {
|
||||||
@property({ attribute: false })
|
@property({ attribute: false })
|
||||||
|
|
|
@ -1,6 +1,14 @@
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
||||||
import { me } from "@goauthentik/web/api/Users";
|
import { me } from "@goauthentik/web/api/Users";
|
||||||
import { EVENT_REFRESH } from "@goauthentik/web/constants";
|
import { EVENT_REFRESH } from "@goauthentik/web/constants";
|
||||||
|
import "@goauthentik/web/elements/Tabs";
|
||||||
|
import "@goauthentik/web/elements/user/SessionList";
|
||||||
|
import "@goauthentik/web/elements/user/UserConsentList";
|
||||||
|
import "@goauthentik/web/user/user-settings/details/UserPassword";
|
||||||
|
import "@goauthentik/web/user/user-settings/details/UserSettingsFlowExecutor";
|
||||||
|
import "@goauthentik/web/user/user-settings/mfa/MFADevicesPage";
|
||||||
|
import "@goauthentik/web/user/user-settings/sources/SourceSettings";
|
||||||
|
import "@goauthentik/web/user/user-settings/tokens/UserTokenList";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
|
@ -25,15 +33,6 @@ import PFSizing from "@patternfly/patternfly/utilities/Sizing/sizing.css";
|
||||||
|
|
||||||
import { StagesApi, UserSetting } from "@goauthentik/api";
|
import { StagesApi, UserSetting } from "@goauthentik/api";
|
||||||
|
|
||||||
import "../../elements/Tabs";
|
|
||||||
import "../../elements/user/SessionList";
|
|
||||||
import "../../elements/user/UserConsentList";
|
|
||||||
import "./details/UserPassword";
|
|
||||||
import "./details/UserSettingsFlowExecutor";
|
|
||||||
import "./mfa/MFADevicesPage";
|
|
||||||
import "./sources/SourceSettings";
|
|
||||||
import "./tokens/UserTokenList";
|
|
||||||
|
|
||||||
@customElement("ak-user-settings")
|
@customElement("ak-user-settings")
|
||||||
export class UserSettingsPage extends LitElement {
|
export class UserSettingsPage extends LitElement {
|
||||||
static get styles(): CSSResult[] {
|
static get styles(): CSSResult[] {
|
||||||
|
|
|
@ -6,6 +6,7 @@ import "@goauthentik/web/elements/buttons/TokenCopyButton";
|
||||||
import "@goauthentik/web/elements/forms/DeleteBulkForm";
|
import "@goauthentik/web/elements/forms/DeleteBulkForm";
|
||||||
import "@goauthentik/web/elements/forms/ModalForm";
|
import "@goauthentik/web/elements/forms/ModalForm";
|
||||||
import { Table, TableColumn } from "@goauthentik/web/elements/table/Table";
|
import { Table, TableColumn } from "@goauthentik/web/elements/table/Table";
|
||||||
|
import "@goauthentik/web/user/user-settings/mfa/MFADeviceForm";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
|
@ -16,8 +17,6 @@ import { until } from "lit/directives/until.js";
|
||||||
|
|
||||||
import { AuthenticatorsApi, Device, UserSetting } from "@goauthentik/api";
|
import { AuthenticatorsApi, Device, UserSetting } from "@goauthentik/api";
|
||||||
|
|
||||||
import "./MFADeviceForm";
|
|
||||||
|
|
||||||
export function stageToAuthenticatorName(stage: UserSetting): string {
|
export function stageToAuthenticatorName(stage: UserSetting): string {
|
||||||
switch (stage.component) {
|
switch (stage.component) {
|
||||||
case "ak-user-settings-authenticator-duo":
|
case "ak-user-settings-authenticator-duo":
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
|
import { SentryIgnoredError } from "@goauthentik/web/common/errors";
|
||||||
import "@goauthentik/web/elements/EmptyState";
|
import "@goauthentik/web/elements/EmptyState";
|
||||||
|
|
||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
|
|
||||||
import { TemplateResult, html } from "lit";
|
import { TemplateResult, html } from "lit";
|
||||||
|
|
||||||
import { SentryIgnoredError } from "./common/errors";
|
|
||||||
|
|
||||||
export function getCookie(name: string): string {
|
export function getCookie(name: string): string {
|
||||||
let cookieValue = "";
|
let cookieValue = "";
|
||||||
if (document.cookie && document.cookie !== "") {
|
if (document.cookie && document.cookie !== "") {
|
||||||
|
|
Reference in New Issue