Port native season calendar and harden menu input QA (by Codex)
This commit is contained in:
1 parent
79bf38aa78
commit
de8b53fce2
19 files changed
+582
-14
No files matched your search
@@ -0,0 +1,21 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
#pragma once
|
||||
#include "modern/ui/catalog.hpp"
|
||||
|
||||
namespace bmh::modern_ui {
|
||||
struct CalendarDay {
|
||||
std::string iso;
|
||||
int year, month, day, weekday;
|
||||
};
|
||||
struct CalendarFixture {
|
||||
int day, round;
|
||||
std::string home, away;
|
||||
};
|
||||
// Presentation fixtures only. No scheduler, RNG, session or match is called.
|
||||
std::vector<CalendarDay> calendar_days(const std::string &start);
|
||||
Json demo_calendar(const Catalog &, const std::string &date);
|
||||
bool valid_demo_calendar(const Json &, const Catalog &);
|
||||
std::string edit_demo_calendar(Json &, const Json &, const Catalog &);
|
||||
std::vector<CalendarFixture> calendar_fixtures(const Json &, const Catalog &,
|
||||
const std::string &managed_club);
|
||||
} // namespace bmh::modern_ui
|
||||
Reference in new issue
Block a user