web: use absolute imports with path rewrite instead of relative imports (#3149)

This commit is contained in:
Jens L
2022-06-25 17:44:17 +02:00
committed by GitHub
parent 340faf5341
commit a8c04f96d2
242 changed files with 1614 additions and 1567 deletions

View File

@ -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;