web: cleanup old FlowDiagram colours

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2022-09-21 20:16:37 +02:00
parent 241e36b2a6
commit 7932b390dc
2 changed files with 3 additions and 10 deletions

View File

@ -1,7 +1,3 @@
import {
FONT_COLOUR_DARK_MODE,
FONT_COLOUR_LIGHT_MODE,
} from "@goauthentik/admin/flows/FlowDiagram";
import { EVENT_REFRESH } from "@goauthentik/common/constants";
import { AKElement } from "@goauthentik/elements/Base";
import { Chart, ChartConfiguration, ChartData, ChartOptions, Plugin, Tick } from "chart.js";
@ -21,6 +17,9 @@ Chart.register(LineController, BarController, DoughnutController);
Chart.register(ArcElement, BarElement);
Chart.register(TimeScale, LinearScale);
export const FONT_COLOUR_DARK_MODE = "#fafafa";
export const FONT_COLOUR_LIGHT_MODE = "#151515";
export abstract class AKChart<T> extends AKElement {
abstract apiRequest(): Promise<T>;
abstract getChartData(data: T): ChartData;