web: use absolute imports with path rewrite instead of relative imports (#3149)
This commit is contained in:
@ -1,10 +1,32 @@
|
||||
import { DEFAULT_CONFIG, tenant } from "@goauthentik/web/api/Config";
|
||||
import { configureSentry } from "@goauthentik/web/api/Sentry";
|
||||
import { me } from "@goauthentik/web/api/Users";
|
||||
import { UserDisplay, uiConfig } from "@goauthentik/web/common/config";
|
||||
import { WebsocketClient } from "@goauthentik/web/common/ws";
|
||||
import {
|
||||
EVENT_API_DRAWER_TOGGLE,
|
||||
EVENT_NOTIFICATION_DRAWER_TOGGLE,
|
||||
EVENT_WS_MESSAGE,
|
||||
} from "@goauthentik/web/constants";
|
||||
import "@goauthentik/web/elements/messages/MessageContainer";
|
||||
import "@goauthentik/web/elements/messages/MessageContainer";
|
||||
import "@goauthentik/web/elements/notifications/NotificationDrawer";
|
||||
import { getURLParam, updateURLParams } from "@goauthentik/web/elements/router/RouteMatch";
|
||||
import "@goauthentik/web/elements/router/RouterOutlet";
|
||||
import "@goauthentik/web/elements/sidebar/Sidebar";
|
||||
import { DefaultTenant } from "@goauthentik/web/elements/sidebar/SidebarBrand";
|
||||
import "@goauthentik/web/elements/sidebar/SidebarItem";
|
||||
import "@goauthentik/web/interfaces/locale";
|
||||
import { ROUTES } from "@goauthentik/web/routesUser";
|
||||
import { first } from "@goauthentik/web/utils";
|
||||
|
||||
import { t } from "@lingui/macro";
|
||||
|
||||
import { CSSResult, LitElement, TemplateResult, css, html } from "lit";
|
||||
import { customElement, property } from "lit/decorators.js";
|
||||
import { until } from "lit/directives/until.js";
|
||||
|
||||
import AKGlobal from "../authentik.css";
|
||||
import AKGlobal from "@goauthentik/web/authentik.css";
|
||||
import PFAvatar from "@patternfly/patternfly/components/Avatar/avatar.css";
|
||||
import PFBrand from "@patternfly/patternfly/components/Brand/brand.css";
|
||||
import PFButton from "@patternfly/patternfly/components/Button/button.css";
|
||||
@ -17,28 +39,6 @@ import PFDisplay from "@patternfly/patternfly/utilities/Display/display.css";
|
||||
|
||||
import { CurrentTenant, EventsApi } from "@goauthentik/api";
|
||||
|
||||
import { DEFAULT_CONFIG, tenant } from "../api/Config";
|
||||
import { configureSentry } from "../api/Sentry";
|
||||
import { me } from "../api/Users";
|
||||
import { UserDisplay, uiConfig } from "../common/config";
|
||||
import { WebsocketClient } from "../common/ws";
|
||||
import {
|
||||
EVENT_API_DRAWER_TOGGLE,
|
||||
EVENT_NOTIFICATION_DRAWER_TOGGLE,
|
||||
EVENT_WS_MESSAGE,
|
||||
} from "../constants";
|
||||
import "../elements/messages/MessageContainer";
|
||||
import "../elements/messages/MessageContainer";
|
||||
import "../elements/notifications/NotificationDrawer";
|
||||
import { getURLParam, updateURLParams } from "../elements/router/RouteMatch";
|
||||
import "../elements/router/RouterOutlet";
|
||||
import "../elements/sidebar/Sidebar";
|
||||
import { DefaultTenant } from "../elements/sidebar/SidebarBrand";
|
||||
import "../elements/sidebar/SidebarItem";
|
||||
import { ROUTES } from "../routesUser";
|
||||
import { first } from "../utils";
|
||||
import "./locale";
|
||||
|
||||
@customElement("ak-interface-user")
|
||||
export class UserInterface extends LitElement {
|
||||
@property({ type: Boolean })
|
||||
|
||||
Reference in New Issue
Block a user