Add initial JSON data files and implement core page components for game functionality

This commit is contained in:
bobbert committed 2026-03-17 21:49:44 +00:00
1 parent 81847a9188
commit ca27f8d6ed
54 files changed
+2424 -250

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
class GroupModel {
constructor(payload) {
this.Gid = payload.Gid;
this.GroupName = payload.GroupName;
this.BusinessOrSchoolName = payload.BusinessOrSchoolName;
this.GameType = payload.GameType;
this.AdminJoinCode = payload.AdminJoinCode;
this.CreatedByUid = payload.CreatedByUid;
this.MaxMemberSubgroups = payload.MaxMemberSubgroups;
this.TeamsEnabled = Boolean(payload.TeamsEnabled);
this.ApprovedAdmins = payload.ApprovedAdmins || [];
this.CreatedAt = payload.CreatedAt;
}
toJSON() {
return {
Gid: this.Gid,
GroupName: this.GroupName,
BusinessOrSchoolName: this.BusinessOrSchoolName,
GameType: this.GameType,
AdminJoinCode: this.AdminJoinCode,
CreatedByUid: this.CreatedByUid,
MaxMemberSubgroups: this.MaxMemberSubgroups,
TeamsEnabled: this.TeamsEnabled,
ApprovedAdmins: this.ApprovedAdmins,
CreatedAt: this.CreatedAt,
};
}
}
export default GroupModel;