web: use absolute imports with path rewrite instead of relative imports (#3149)
This commit is contained in:
@ -1,14 +1,14 @@
|
||||
import "@goauthentik/web/elements/sidebar/SidebarBrand";
|
||||
import "@goauthentik/web/elements/sidebar/SidebarUser";
|
||||
|
||||
import { CSSResult, LitElement, TemplateResult, css, html } from "lit";
|
||||
import { customElement } from "lit/decorators.js";
|
||||
|
||||
import AKGlobal from "../../authentik.css";
|
||||
import AKGlobal from "@goauthentik/web/authentik.css";
|
||||
import PFNav from "@patternfly/patternfly/components/Nav/nav.css";
|
||||
import PFPage from "@patternfly/patternfly/components/Page/page.css";
|
||||
import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
||||
|
||||
import "./SidebarBrand";
|
||||
import "./SidebarUser";
|
||||
|
||||
@customElement("ak-sidebar")
|
||||
export class Sidebar extends LitElement {
|
||||
static get styles(): CSSResult[] {
|
||||
|
||||
@ -1,7 +1,12 @@
|
||||
import { tenant } from "@goauthentik/web/api/Config";
|
||||
import { configureSentry } from "@goauthentik/web/api/Sentry";
|
||||
import { EVENT_SIDEBAR_TOGGLE } from "@goauthentik/web/constants";
|
||||
import { first } from "@goauthentik/web/utils";
|
||||
|
||||
import { CSSResult, LitElement, TemplateResult, css, html } from "lit";
|
||||
import { customElement, 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 PFPage from "@patternfly/patternfly/components/Page/page.css";
|
||||
import PFGlobal from "@patternfly/patternfly/patternfly-base.css";
|
||||
@ -9,11 +14,6 @@ import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
||||
|
||||
import { CurrentTenant } from "@goauthentik/api";
|
||||
|
||||
import { tenant } from "../../api/Config";
|
||||
import { configureSentry } from "../../api/Sentry";
|
||||
import { EVENT_SIDEBAR_TOGGLE } from "../../constants";
|
||||
import { first } from "../../utils";
|
||||
|
||||
// If the viewport is wider than MIN_WIDTH, the sidebar
|
||||
// is shown besides the content, and not overlaid.
|
||||
export const MIN_WIDTH = 1200;
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
import { ROUTE_SEPARATOR } from "@goauthentik/web/constants";
|
||||
|
||||
import { CSSResult, LitElement, css } from "lit";
|
||||
import { TemplateResult, 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 PFNav from "@patternfly/patternfly/components/Nav/nav.css";
|
||||
import PFPage from "@patternfly/patternfly/components/Page/page.css";
|
||||
import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
||||
|
||||
import { ROUTE_SEPARATOR } from "../../constants";
|
||||
|
||||
@customElement("ak-sidebar-item")
|
||||
export class SidebarItem extends LitElement {
|
||||
static get styles(): CSSResult[] {
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
import { me } from "@goauthentik/web/api/Users";
|
||||
|
||||
import { CSSResult, LitElement, TemplateResult, css, html } from "lit";
|
||||
import { customElement } from "lit/decorators.js";
|
||||
import { ifDefined } from "lit/directives/if-defined.js";
|
||||
@ -7,8 +9,6 @@ import PFAvatar from "@patternfly/patternfly/components/Avatar/avatar.css";
|
||||
import PFNav from "@patternfly/patternfly/components/Nav/nav.css";
|
||||
import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
||||
|
||||
import { me } from "../../api/Users";
|
||||
|
||||
@customElement("ak-sidebar-user")
|
||||
export class SidebarUser extends LitElement {
|
||||
static get styles(): CSSResult[] {
|
||||
|
||||
Reference in New Issue
Block a user