--- // If you want to fetch data from GitHub or Forgejo, uncomment the lines containing the GitHub/Forgejo. // Since echarts does not support different color for different data sources, // we will use only local data for now. //import { fetchDataForAllYears } from "../../plugins/heatmapdata/github"; //import { fetchForgejoData } from "../../plugins/heatmapdata/forgejo"; import { generateLocalData } from "../../plugins/heatmapdata/local"; interface Props { GithubUserName?: string; ForgejoInfo?: { instance: string; username: string; }[]; } const { GithubUserName, ForgejoInfo } = Astro.props; //const GithubData = GithubUserName ? await fetchDataForAllYears(GithubUserName) : null; //const ForgejoData = ForgejoInfo ? (await Promise.all(ForgejoInfo.map(info => fetchForgejoData(info.instance, info.username)))) : null; const LocalData = await generateLocalData(); const allData = [ // { // type: "heatmap", // coordinateSystem: 'calendar', // data: GithubData // // }, // { // type: "heatmap", // coordinateSystem: 'calendar', // data: ForgejoData // }, { type: "heatmap", coordinateSystem: 'calendar', data: LocalData } ] ---