Port statistics and the news tablet to the Modern UI (by Codex)

This commit is contained in:
Codex committed 2026-10-25 20:10:57 +01:00
1 parent 349c416f3a
commit a45217c362
32 files changed
+2493 -23

No files matched your search

+4
View File
@@ -29,6 +29,9 @@ public:
virtual Json read_almanac(const Json &) const {
return {{"ok", false}, {"error", "almanac_unavailable"}};
}
virtual Json read_statistics(const Json &) const {
return {{"ok", false}, {"error", "statistics_unavailable"}};
}
};
class DemoSource final : public DataSource {
public:
@@ -36,6 +39,7 @@ public:
Snapshot snapshot() const override;
ActionResult apply(const Action &) override;
Json read_almanac(const Json &) const override;
Json read_statistics(const Json &) const override;
void save(const fs::path &, const Json &desktop);
Json load(const fs::path &);
bool dirty() const { return state_ != saved_; }