{
  "$schema": "homarr-custom-widget-v2",
  "name": "JellyGlance downloads",
  "description": "Active and stalled queue counts.",
  "iconUrl": "https://jellyglance.com/project-logo.png",
  "url": "http://jellyglance:3000/api/widgets/downloads",
  "authType": "apiKeyHeader",
  "headerName": "x-api-token",
  "method": "GET",
  "displayType": "customJsx",
  "displayConfig": {
    "type": "customJsx",
    "template": "<Stack gap=\"sm\" p=\"xs\">\n  <Group justify=\"space-between\" align=\"center\">\n    <Group gap=\"xs\">\n      <Avatar src=\"https://jellyglance.com/project-logo.png\" size={24} radius=\"xl\" />\n      <Stack gap={0}>\n        <Text fw={800} size=\"sm\">Downloads</Text>\n        \n      </Stack>\n    </Group>\n    <Badge variant=\"light\" color={data.stalled ? \"red\" : \"teal\"}>{data.stalled ? String(data.stalled) + \" stalled\" : \"Clear\"}</Badge>\n  </Group>\n  <Grid gutter=\"xs\">\n    <Grid.Col span={4}><Card withBorder radius=\"md\" p=\"xs\"><Text size=\"xs\" c=\"blue\">Active</Text><Text fw={800} size=\"lg\">{data.active}</Text></Card></Grid.Col>\n    <Grid.Col span={4}><Card withBorder radius=\"md\" p=\"xs\"><Text size=\"xs\" c=\"red\">Stalled</Text><Text fw={800} size=\"lg\">{data.stalled}</Text></Card></Grid.Col>\n    <Grid.Col span={4}><Card withBorder radius=\"md\" p=\"xs\"><Text size=\"xs\" c=\"dimmed\">Total</Text><Text fw={800} size=\"lg\">{data.total}</Text></Card></Grid.Col>\n  </Grid>\n</Stack>"
  }
}
