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,3 +1,4 @@
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
import { ChartData } from "chart.js";
import { t } from "@lingui/macro";
@ -6,7 +7,6 @@ import { customElement } from "lit/decorators.js";
import { AdminApi, LoginMetrics } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config";
import { AKChart } from "./Chart";
@customElement("ak-charts-admin-login")

View File

@ -1,3 +1,4 @@
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
import { ChartData, Tick } from "chart.js";
import { t } from "@lingui/macro";
@ -6,7 +7,6 @@ import { customElement, property } from "lit/decorators.js";
import { Coordinate, EventActions, EventsApi } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config";
import { AKChart } from "./Chart";
@customElement("ak-charts-admin-model-per-day")

View File

@ -1,3 +1,4 @@
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
import { ChartData } from "chart.js";
import { t } from "@lingui/macro";
@ -6,7 +7,6 @@ import { customElement, property } from "lit/decorators.js";
import { Coordinate, CoreApi } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config";
import { AKChart } from "./Chart";
@customElement("ak-charts-application-authorize")

View File

@ -1,3 +1,8 @@
import { EVENT_REFRESH } from "@goauthentik/web/constants";
import {
FONT_COLOUR_DARK_MODE,
FONT_COLOUR_LIGHT_MODE,
} from "@goauthentik/web/pages/flows/FlowDiagram";
import { Chart, ChartConfiguration, ChartData, ChartOptions, Plugin, Tick } from "chart.js";
import { Legend, Tooltip } from "chart.js";
import { BarController, DoughnutController, LineController } from "chart.js";
@ -10,9 +15,6 @@ import { t } from "@lingui/macro";
import { CSSResult, LitElement, TemplateResult, css, html } from "lit";
import { property } from "lit/decorators.js";
import { EVENT_REFRESH } from "../../constants";
import { FONT_COLOUR_DARK_MODE, FONT_COLOUR_LIGHT_MODE } from "../../pages/flows/FlowDiagram";
Chart.register(Legend, Tooltip);
Chart.register(LineController, BarController, DoughnutController);
Chart.register(ArcElement, BarElement);

View File

@ -1,3 +1,4 @@
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
import { ChartData } from "chart.js";
import { t } from "@lingui/macro";
@ -6,7 +7,6 @@ import { customElement, property } from "lit/decorators.js";
import { CoreApi, UserMetrics } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config";
import { AKChart } from "./Chart";
@customElement("ak-charts-user")