add badges and fix clan tags, and readme issue

This commit is contained in:
creations 2025-04-19 13:37:37 -04:00
parent 7816210a2c
commit bf66b301ae
Signed by: creations
GPG key ID: 8F553AA4320FC711
9 changed files with 129 additions and 10 deletions

View file

@ -1,5 +1,5 @@
import { getImageColors } from "@/helpers/colors";
import { lanyardConfig } from "@config/environment";
import { badgeApi, lanyardConfig } from "@config/environment";
import { renderEjsTemplate } from "@helpers/ejs";
import { getLanyardData, handleReadMe } from "@helpers/lanyard";
@ -64,6 +64,7 @@ async function handler(request: ExtendedRequest): Promise<Response> {
allowSnow: presence.kv.snow === "true",
allowRain: presence.kv.rain === "true",
colors: colors?.colors ?? {},
badgeApi: badgeApi,
};
return await renderEjsTemplate("index", ejsTemplateData);

View file

@ -1,5 +1,5 @@
import { getImageColors } from "@/helpers/colors";
import { lanyardConfig } from "@config/environment";
import { badgeApi, lanyardConfig } from "@config/environment";
import { renderEjsTemplate } from "@helpers/ejs";
import { getLanyardData, handleReadMe } from "@helpers/lanyard";
@ -63,6 +63,7 @@ async function handler(): Promise<Response> {
allowSnow: presence.kv.snow === "true",
allowRain: presence.kv.rain === "true",
colors: colors?.colors ?? {},
badgeApi: badgeApi,
};
return await renderEjsTemplate("index", ejsTemplateData);