volare18467257: add a no-background option first in the list, and let the card scale, since it didn't fit one screen. - Background now starts with "No background": the paper alone on nothing, a transparent PNG with no margin (the margin slider is hidden for it), swatched as a chequerboard. Named in all five languages. The default stays teal. - The card on the page is sized to the room under the toolbar (B.fit: width up to 760, no taller than the window, never below 160), on resize and when the toolbar or status line changes height. The bitmap copied or saved is unchanged. Run: bun test packages/day-card in wsl-run, 16 of 16 green; scripts/check exit 0. A Playwright harness (not committed) with a stub bridge in Chromium and WebKit: at 1000x600 the card is 403px wide and ends at 568 of 600, with no page scroll; at 1000x900 it is 650 wide, ends at 867; picking No background gives a 880x1130 bitmap (no margin) and hides the margin slider, no page errors. Broken by hand: with backgrounds.js from main the new test is red. Not tried: magpie's own window on Windows/Linux; the transparent PNG pasted into an app.
20 lines
870 B
JSON
20 lines
870 B
JSON
{
|
|
"name": "@magpie-community/page-day-card",
|
|
"version": "0.2.2",
|
|
"description": "A page in magpie's window that draws a day of your AI usage as a card: tokens, cost, each agent and its models, your streak and your average day. Copy it as a picture or save it as a PNG",
|
|
"files": ["page", "README.md"],
|
|
"keywords": ["magpie", "magpie-page", "usage", "tokens", "cost", "card"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/day-card" },
|
|
"engines": { "magpie": ">=0.1.3427" },
|
|
"magpie": {
|
|
"page": {
|
|
"title": "Day card",
|
|
"titles": { "zh": "每日用量卡", "zh-TW": "每日用量卡", "ja": "1日の使用量カード", "de": "Tageskarte" },
|
|
"file": "page/index.html",
|
|
"icon": "page/icon.svg"
|
|
},
|
|
"permissions": ["usage:day"]
|
|
}
|
|
}
|