feat: Adds minimal home page, change license to cc-by-nc-sa license in prep for public availablility.
Some checks failed
CI / Linux Tests (push) Failing after 5m41s

This commit is contained in:
2026-02-08 10:14:19 -05:00
parent 2aaa408712
commit d957cc1c19
8 changed files with 617 additions and 16 deletions

View File

@@ -188,7 +188,9 @@ extension Room {
self.coolingTotal = coolingTotal
self.coolingSensible = coolingSensible
self.registerCount = registerCount
self.delegatedToName = delegatedToName
// Treat empty strings as nil, as they are often empty
// when left blank in a CSV file.
self.delegatedToName = delegatedToName == "" ? nil : delegatedToName
}
}

View File

@@ -8,6 +8,7 @@ extension SiteRoute {
///
/// The routes return html.
public enum View: Equatable, Sendable {
case home
case login(LoginRoute)
case signup(SignupRoute)
case project(ProjectRoute)
@@ -20,6 +21,9 @@ extension SiteRoute {
Path { "test" }
Method.get
}
Route(.case(Self.home)) {
Method.get
}
Route(.case(Self.login)) {
SiteRoute.View.LoginRoute.router
}