Add the quiet calendar capsule
This commit is contained in:
@@ -179,12 +179,37 @@ Singleton {
|
||||
}
|
||||
|
||||
function applyFixture(name: string): void {
|
||||
if (name !== "daybook")
|
||||
if (name !== "daybook" && name !== "upcoming" && name !== "outside-window")
|
||||
return;
|
||||
|
||||
root.watchWanted = false;
|
||||
root.fixtureMode = true;
|
||||
root.fixtureNow = Math.floor(new Date(2026, 7, 17, 11, 6).getTime() / 1000);
|
||||
|
||||
if (name === "upcoming" || name === "outside-window") {
|
||||
const offset = name === "upcoming" ? 12 * 60 : 20 * 60;
|
||||
root.sources = [{ id: "fixture-work", name: "Fixture Work", color: "#82aaff" }];
|
||||
root.events = [
|
||||
{
|
||||
id: "fixture-work:timed:1", sourceId: "fixture-work", uid: "fixture-timed",
|
||||
summary: "Fixture appointment", start: root.fixtureNow + offset,
|
||||
end: root.fixtureNow + offset + 30 * 60, allDay: false,
|
||||
location: "", joinUrl: ""
|
||||
},
|
||||
{
|
||||
id: "fixture-work:all-day:1", sourceId: "fixture-work", uid: "fixture-all-day",
|
||||
summary: "Fixture all day", start: Math.floor(new Date(2026, 7, 17).getTime() / 1000),
|
||||
end: Math.floor(new Date(2026, 7, 18).getTime() / 1000), allDay: true,
|
||||
location: "", joinUrl: ""
|
||||
}
|
||||
];
|
||||
root.errors = [];
|
||||
root.generatedAt = root.fixtureNow;
|
||||
root.phase = "ready";
|
||||
root.selectIsoDate("2026-08-17");
|
||||
return;
|
||||
}
|
||||
|
||||
root.sources = [
|
||||
{ id: "fixture-work", name: "Fixture Work", color: "#82aaff" },
|
||||
{ id: "fixture-cloud", name: "Fixture Cloud", color: "#c3e88d" },
|
||||
|
||||
Reference in New Issue
Block a user