web: remove more until (#5057)
* more cleanup Signed-off-by: Jens Langhammer <jens@goauthentik.io> * don't dynamically import duo form Signed-off-by: Jens Langhammer <jens@goauthentik.io> * migrate more Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix import Signed-off-by: Jens Langhammer <jens@goauthentik.io> * properly send evens when tab isn't switched Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix loop on tabs Signed-off-by: Jens Langhammer <jens@goauthentik.io> * migrate more Signed-off-by: Jens Langhammer <jens@goauthentik.io> * don't bubble tab events Signed-off-by: Jens Langhammer <jens@goauthentik.io> * remove most other uses of until() Signed-off-by: Jens Langhammer <jens@goauthentik.io> * cleanup user settings Signed-off-by: Jens Langhammer <jens@goauthentik.io> * only use stale for issues Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
		| @ -1,3 +1,4 @@ | ||||
| import { AdminInterface } from "@goauthentik/admin/AdminInterface"; | ||||
| import "@goauthentik/admin/admin-overview/TopApplicationsTable"; | ||||
| import "@goauthentik/admin/admin-overview/cards/AdminStatusCard"; | ||||
| import "@goauthentik/admin/admin-overview/cards/RecentEventsCard"; | ||||
| @ -8,8 +9,7 @@ import "@goauthentik/admin/admin-overview/charts/AdminLoginAuthorizeChart"; | ||||
| import "@goauthentik/admin/admin-overview/charts/OutpostStatusChart"; | ||||
| import "@goauthentik/admin/admin-overview/charts/SyncStatusChart"; | ||||
| import { VERSION } from "@goauthentik/common/constants"; | ||||
| import { me } from "@goauthentik/common/users"; | ||||
| import { AKElement } from "@goauthentik/elements/Base"; | ||||
| import { AKElement, rootInterface } from "@goauthentik/elements/Base"; | ||||
| import "@goauthentik/elements/PageHeader"; | ||||
| import "@goauthentik/elements/cards/AggregatePromiseCard"; | ||||
| import { paramURL } from "@goauthentik/elements/router/RouterOutlet"; | ||||
| @ -17,15 +17,13 @@ import { paramURL } from "@goauthentik/elements/router/RouterOutlet"; | ||||
| import { t } from "@lingui/macro"; | ||||
|  | ||||
| import { CSSResult, TemplateResult, css, html } from "lit"; | ||||
| import { customElement, state } from "lit/decorators.js"; | ||||
| import { customElement } from "lit/decorators.js"; | ||||
|  | ||||
| import PFContent from "@patternfly/patternfly/components/Content/content.css"; | ||||
| import PFList from "@patternfly/patternfly/components/List/list.css"; | ||||
| import PFPage from "@patternfly/patternfly/components/Page/page.css"; | ||||
| import PFGrid from "@patternfly/patternfly/layouts/Grid/grid.css"; | ||||
|  | ||||
| import { SessionUser } from "@goauthentik/api"; | ||||
|  | ||||
| export function versionFamily(): string { | ||||
|     const parts = VERSION.split("."); | ||||
|     parts.pop(); | ||||
| @ -58,17 +56,11 @@ export class AdminOverviewPage extends AKElement { | ||||
|         ]; | ||||
|     } | ||||
|  | ||||
|     @state() | ||||
|     user?: SessionUser; | ||||
|  | ||||
|     async firstUpdated(): Promise<void> { | ||||
|         this.user = await me(); | ||||
|     } | ||||
|  | ||||
|     render(): TemplateResult { | ||||
|         let name = this.user?.user.username; | ||||
|         if (this.user?.user.name) { | ||||
|             name = this.user.user.name; | ||||
|         const user = rootInterface<AdminInterface>()?.user; | ||||
|         let name = user?.user.username; | ||||
|         if (user?.user.name) { | ||||
|             name = user.user.name; | ||||
|         } | ||||
|         return html`<ak-page-header icon="" header="" description=${t`General system status`}> | ||||
|                 <span slot="header"> ${t`Welcome, ${name}.`} </span> | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens L
					Jens L