feat: support alternative logos like png

closes #442
This commit is contained in:
Mathias Schopmans
2024-03-26 09:22:03 +01:00
parent 969306c794
commit d254ec1af6
6 changed files with 20 additions and 9 deletions

View File

@@ -3,6 +3,7 @@ import config from "./config";
import { format } from "@/lib/format";
import { Flag, Item, Quadrant, Ring } from "@/lib/types";
import { assetUrl } from "@/lib/utils";
export function getLabel(key: keyof typeof config.labels) {
return config.labels[key] || "";
@@ -20,6 +21,10 @@ export function getAppName() {
return getLabel("title");
}
export function getLogoUrl() {
return assetUrl("/" + config.logoFile);
}
export function getChartConfig() {
return config.chart;
}