1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
53ecce1eca chore: Minor API changes
All checks were successful
Remote Deploy / deploy (push) Successful in 6s
2026-02-07 16:36:34 +01:00
3430b1c2b1 feat: Include text color in colored stuff 2026-02-07 16:35:29 +01:00

View File

@@ -179,9 +179,15 @@ function parseLessonCell(cell) {
if (!text || cleanupRegex.test(text) || !cell.fill?.fgColor) return null;
const backgroundColor = cell.fill.fgColor.argb === undefined ? undefined : `#${cell.fill.fgColor.argb}`;
const foregroundColor = backgroundColor === undefined ? undefined : (
cell.font?.color?.argb === undefined ? undefined : `#${cell.font.color.argb}`
);
return {
text,
backgroundColor: cell.fill.fgColor.argb === undefined ? undefined : `#${cell.fill.fgColor.argb}`,
backgroundColor,
foregroundColor,
willBeSpecified: cell.fill.fgColor.argb === "FFFFFF00" ? true : undefined,
};
} catch {
@@ -298,4 +304,4 @@ function formatNowTime() {
);
}
// parseV3("db/current.xlsx")
parseV3("db/current.xlsx")