Jobs + Events Pages
- Added Jobs/Events pages, need to set up with backend once complete - Added missing icons and fixed incorrect icons - Made AppMenu icons highlight when selected - Removed Settings from AppMenu - Fixed undefined data in People
This commit is contained in:
@@ -29,6 +29,13 @@ class People extends Shadow {
|
||||
h1("People")
|
||||
.color("var(--quillred)")
|
||||
.textAlign("center")
|
||||
.marginBottom(0.25, em)
|
||||
h3(global.currentNetwork.name)
|
||||
.color("var(--quillred)")
|
||||
.textAlign("center")
|
||||
.margin(0)
|
||||
.marginBottom(0.5, em)
|
||||
.fontFamily("Bona")
|
||||
|
||||
if (this.people == "") {
|
||||
LoadingCircle()
|
||||
@@ -45,7 +52,7 @@ class People extends Shadow {
|
||||
.background("var(--bone)")
|
||||
|
||||
VStack(() => {
|
||||
h3(this.people[i].firstName + " " + this.people[i].lastName)
|
||||
h3(this.people[i].first_name + " " + this.people[i].last_name)
|
||||
.color("var(--brown)")
|
||||
.fontSize(1.2, em)
|
||||
.fontWeight("bold")
|
||||
@@ -81,13 +88,13 @@ class People extends Shadow {
|
||||
}
|
||||
|
||||
convertDate(rawDate) {
|
||||
const date = rawDate.split("-", 1)[0]; // "01.31.2026
|
||||
const [mm, dd, yyyy] = date.split(".").map(Number);
|
||||
const parsed = new Date(rawDate);
|
||||
|
||||
const months = [
|
||||
"January", "February", "March", "April", "May", "June",
|
||||
"July", "August", "September", "October", "November", "December"
|
||||
];
|
||||
if (isNaN(parsed.getTime())) return rawDate;
|
||||
|
||||
const month = parsed.toLocaleString("en-US", { month: "long", timeZone: "UTC" });
|
||||
const day = parsed.getUTCDate();
|
||||
const year = parsed.getUTCFullYear();
|
||||
|
||||
const ordinal = (n) => {
|
||||
const mod100 = n % 100;
|
||||
@@ -100,7 +107,7 @@ class People extends Shadow {
|
||||
}
|
||||
};
|
||||
|
||||
return `${months[mm - 1]} ${ordinal(dd)}, ${yyyy}`;
|
||||
return `${month} ${ordinal(day)}, ${year}`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user