web: use absolute imports with path rewrite instead of relative imports (#3149)
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
import "@goauthentik/web/elements/EmptyState";
|
||||
|
||||
import { TemplateResult, html } from "lit";
|
||||
import { until } from "lit/directives/until.js";
|
||||
|
||||
import "../EmptyState";
|
||||
|
||||
export const SLUG_REGEX = "[-a-zA-Z0-9_]+";
|
||||
export const ID_REGEX = "\\d+";
|
||||
export const UUID_REGEX = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}";
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { TemplateResult } from "lit";
|
||||
import { ROUTE_SEPARATOR } from "@goauthentik/web/constants";
|
||||
import { Route } from "@goauthentik/web/elements/router/Route";
|
||||
|
||||
import { ROUTE_SEPARATOR } from "../../constants";
|
||||
import { Route } from "./Route";
|
||||
import { TemplateResult } from "lit";
|
||||
|
||||
export class RouteMatch {
|
||||
route: Route;
|
||||
|
||||
@ -1,12 +1,13 @@
|
||||
import { ROUTE_SEPARATOR } from "@goauthentik/web/constants";
|
||||
import "@goauthentik/web/elements/router/Router404";
|
||||
|
||||
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 { ROUTE_SEPARATOR } from "../../constants";
|
||||
import { Route } from "./Route";
|
||||
import { RouteMatch } from "./RouteMatch";
|
||||
import "./Router404";
|
||||
|
||||
// Poliyfill for hashchange.newURL,
|
||||
// https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onhashchange
|
||||
|
||||
Reference in New Issue
Block a user