Files
sunscope/assets/js/events/cosmic-calendar.js
T
fraxle 96799e2afa 3.2.3
Update and separate the yearly cosmic events.
Set to display the next 4 rather than the next x months
2026-07-07 14:04:35 +01:00

33 lines
1.4 KiB
JavaScript

// ------------------------------------------------------------------------
// cosmic-calendar.js - Hardcoded cosmic events (meteor showers, eclipses,
// planetary oppositions/conjunctions) used by getActiveEvents.
//
// The per-year data now lives in ./calendar/<year>.js — each of those files
// exports a `cosmic` array (banner events) and an `almanac` array (the
// "What's Coming" panel). This module just concatenates the cosmic arrays
// in chronological order.
//
// Each entry: { id, start: 'YYYY-MM-DD', end: 'YYYY-MM-DD',
// peak: 'YYYY-MM-DD' (optional), ...eventProps }
// Active if today falls within [start, end] (inclusive).
// Night-only events (meteor showers, eclipses) are marked nightOnly: true
// so the cell icons only appear in night-time rows.
//
// To add a new year: create ./calendar/<year>.js (copy an existing one),
// then import it below and add its `cosmic` spread to COSMIC_CALENDAR.
// ------------------------------------------------------------------------
import { cosmic as cosmic2026 } from './calendar/2026.js';
import { cosmic as cosmic2027 } from './calendar/2027.js';
import { cosmic as cosmic2028 } from './calendar/2028.js';
import { cosmic as cosmic2029 } from './calendar/2029.js';
import { cosmic as cosmic2030 } from './calendar/2030.js';
export const COSMIC_CALENDAR = [
...cosmic2026,
...cosmic2027,
...cosmic2028,
...cosmic2029,
...cosmic2030,
];