[EXPAND] [[messages]] messageTitle = "QB Update for GT 2.8 (#681)" messageBody = """ [QB] [DETAILS] details = ["Fixes many Quest Book issues", "Updates QB with changes in GT 2.8"] [DETAILS] """ [[messages]] messageTitle = "Buildscript Refactor (#681)" messageBody = """ [INTERNAL] [DETAILS] details = ["**Important: Buildscript has changed from `npx gulp...` or `gulp...` to `npm run gulp...`**!", "Moves to Node 16 Package Management + Typescript Strict Mode", "New Port QB, Check QB and Fix QB Tasks"] [DETAILS] """ [EXPAND] Co-authored-by: Integer Limit <103940576+IntegerLimit@users.noreply.github.com> Co-authored-by: Ghzdude <44148655+ghzdude@users.noreply.github.com> Co-authored-by: SparkedTheorem <162088357+SparkedTheorem@users.noreply.github.com>
26 lines
712 B
TypeScript
26 lines
712 B
TypeScript
import { categories } from "./definitions.ts";
|
|
import {
|
|
Category,
|
|
ChangelogMessage,
|
|
SubCategory,
|
|
} from "#types/changelogTypes.ts";
|
|
|
|
export function categoriesSetup(): void {
|
|
// Initialize Category Lists
|
|
categories.forEach((categoryKey) => {
|
|
initializeCategorySection(categoryKey);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Initializes the categorySection field of the categoryKey.
|
|
* @param category The Category to initialize the categorySection of.
|
|
*/
|
|
function initializeCategorySection(category: Category): void {
|
|
const categorySection = new Map<SubCategory, ChangelogMessage[]>();
|
|
category.subCategories.forEach((subCategory) => {
|
|
categorySection.set(subCategory, []);
|
|
});
|
|
category.changelogSection = categorySection;
|
|
}
|