${t`Error: unsupported stage settings: ${stage.component}`}
`; + } + } + + renderSourceSettings(source: UserSetting): TemplateResult { + switch (source.component) { + case "ak-user-settings-source-oauth": + return html`${t`Error: unsupported source settings: ${source.component}`}
`; + } + } + + render(): TemplateResult { + return html`${t`Connected.`}
+ `; + } + return html`${t`Not connected.`}
+ + ${t`Connect`} + `; + }), + )}`; + } +} diff --git a/web/src/user/user-settings/settings/SourceSettingsPlex.ts b/web/src/user/user-settings/settings/SourceSettingsPlex.ts new file mode 100644 index 000000000..cd015b6a2 --- /dev/null +++ b/web/src/user/user-settings/settings/SourceSettingsPlex.ts @@ -0,0 +1,46 @@ +import { customElement, html, property, TemplateResult } from "lit-element"; +import { BaseUserSettings } from "./BaseUserSettings"; +import { SourcesApi } from "@goauthentik/api"; +import { until } from "lit-html/directives/until"; +import { DEFAULT_CONFIG } from "../../../api/Config"; +import { t } from "@lingui/macro"; + +@customElement("ak-user-settings-source-plex") +export class SourceSettingsPlex extends BaseUserSettings { + @property() + title!: string; + + render(): TemplateResult { + return html`${t`Connected.`}
+ `; + } + return html`${t`Not connected.`}
`; + }), + )}`; + } +} diff --git a/web/src/user/user-settings/settings/UserSettingsAuthenticatorDuo.ts b/web/src/user/user-settings/settings/UserSettingsAuthenticatorDuo.ts new file mode 100644 index 000000000..86f34c66b --- /dev/null +++ b/web/src/user/user-settings/settings/UserSettingsAuthenticatorDuo.ts @@ -0,0 +1,79 @@ +import { AuthenticatorsApi } from "@goauthentik/api"; +import { t } from "@lingui/macro"; +import { customElement, html, TemplateResult } from "lit-element"; +import { until } from "lit-html/directives/until"; +import { DEFAULT_CONFIG } from "../../../api/Config"; +import { BaseUserSettings } from "./BaseUserSettings"; +import { EVENT_REFRESH } from "../../../constants"; + +@customElement("ak-user-settings-authenticator-duo") +export class UserSettingsAuthenticatorDuo extends BaseUserSettings { + renderEnabled(): TemplateResult { + return html`+ ${t`Status: Enabled`} + +
++ ${t`Status: Disabled`} + +
++ ${t`Status: Enabled`} + +
++ ${t`Status: Disabled`} + +
++ ${t`Status: Enabled`} + +
++ ${t`Status: Disabled`} + +
+