From 4191c52328700a381367e83fb70a5d35a00f6660 Mon Sep 17 00:00:00 2001 From: yetone Date: Fri, 13 Nov 2026 22:45:13 +0800 Subject: [PATCH] day-card 0.3.3: your own background picture can be removed, with a badge at its corner (netube99 on X) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A picture added in Background stayed for good. Its swatch now carries a small × badge at the top-right: shown on hover with a mouse (gated by hover: hover and pointer: fine), on keyboard focus (focus-within), and always where there is no hover (touch). The badge is its own button beside the swatch, not inside it. Removing the picture drops it from the saved plugin options (pick({ image: "" }), the 1.1s debounced options.set); a card drawn on it goes back to teal through norm, a picture not in use leaves the backdrop alone. The menu stays open (the click is stopped before the outside-click closer sees a detached target) and focus moves to the + button. No confirm dialog: adding it back is one pick away. Badge fades and grows from scale(.9) in 150ms on the strong ease-out; reduced motion keeps the fade only. Name in all five languages. Run on mote at 4f5d4138 + this change: - HOME=$(mktemp -d) bun test (whole repo): 8662 pass, 20 skip, 0 fail. - bun scripts/check.mjs: exit 0. - new bg-delete.gui.mjs (Chromium and WebKit, en/zh/zh-TW/ja/de, mouse and touch, 1200x800): 180 ok, all ok. Checks the badge's name, hidden without hover, shown on hover and on focus, at the corner, always shown on touch, menu open after, teal picked, focus on +, saved options without the picture, no page errors. Broken by hand: without the stopPropagation, "menu stays open" FAILs in every case; with :focus-visible on the wrapper in place of :focus-within, "badge shown on focus" FAILs. The script needs the badge, so it fails on the old page. Not tried: the live magpie window. Seen on the way: at a page width where the toolbar wraps (900px), the Background menu runs off the page's left edge, so the picture's swatch can't be reached; fixed in the next commit. --- packages/day-card/README.md | 4 +- packages/day-card/bg-delete.gui.mjs | 91 +++++++++++++++++++++++++++++ packages/day-card/day-card.test.mjs | 17 ++++++ packages/day-card/package.json | 2 +- packages/day-card/page/app.js | 27 ++++++++- packages/day-card/page/style.css | 9 ++- packages/day-card/page/view.js | 10 ++-- 7 files changed, 150 insertions(+), 10 deletions(-) create mode 100644 packages/day-card/bg-delete.gui.mjs diff --git a/packages/day-card/README.md b/packages/day-card/README.md index c27f14b..ab8f3a7 100644 --- a/packages/day-card/README.md +++ b/packages/day-card/README.md @@ -1,6 +1,6 @@ # @magpie-community/page-day-card -A page in [magpie](https://usemagpie.ai)'s window that prints a day of your AI usage (or a week, a month or all of it) as a receipt, a "Daily AI statement" on paper over a backdrop of your choice. It has the day's API-equivalent cost, your streak, requests, errors and the day against your average day before it, then each agent and its models with their logos and costs, and the day's tokens: input, output and the cache hit rate. Its foot credits [nowdex](https://nowdex.app), whose share card the receipt's design follows. **Background** picks what the paper lies on: nothing (the paper alone, a transparent PNG), teal, fifteen patterns (gingham, graph paper, kraft, cyanotype, seigaiha waves, xuan paper and more), four landscape photos, or a picture of your own (pick one, drop it on the page or paste it). A slider sets the margin around the paper; a photo also has blur and dim. The choice is kept in the plugin's options. **Copy image** puts the card on the clipboard; **Save PNG** saves it in Downloads. +A page in [magpie](https://usemagpie.ai)'s window that prints a day of your AI usage (or a week, a month or all of it) as a receipt, a "Daily AI statement" on paper over a backdrop of your choice. It has the day's API-equivalent cost, your streak, requests, errors and the day against your average day before it, then each agent and its models with their logos and costs, and the day's tokens: input, output and the cache hit rate. Its foot credits [nowdex](https://nowdex.app), whose share card the receipt's design follows. **Background** picks what the paper lies on: nothing (the paper alone, a transparent PNG), teal, fifteen patterns (gingham, graph paper, kraft, cyanotype, seigaiha waves, xuan paper and more), four landscape photos, or a picture of your own (pick one, drop it on the page or paste it; the × at its corner removes it). A slider sets the margin around the paper; a photo also has blur and dim. The choice is kept in the plugin's options. **Copy image** puts the card on the clipboard; **Save PNG** saves it in Downloads. Install it from magpie's **Plugins › Discover**, or with `magpie plugin add @magpie-community/page-day-card`. It then has a tab, **Day card** (titled in the window's language: 每日用量卡, 1日の使用量カード, Tageskarte), under Plugins in the sidebar, in the app and in `magpie web`. The switch at the left picks **Day**, **Week** (the seven days ending on the date shown), **Month** (the thirty) or **All** (every day with calls, up to today); a week's or a month's card has its period, the days that had calls and the cost of one such day in place of the streak against an average day. Pick an earlier day, or the date a week or month ends on, with the arrows (which step a whole week or month) or the date's menu. The card is shown as large as fits under the toolbar, so a whole day is on one screen; the picture you copy or save is full size. @@ -27,4 +27,4 @@ Like every plugin page, it runs in a sandboxed frame with no network (`connect-s bun test packages/day-card ``` -中文:在 magpie 窗口里加一个「每日用量卡」页面,把某一天(或最近 7 天、30 天、全部)的用量打印成一张小票(Daily AI Statement):当天按 API 价计的费用、连续使用天数、请求数、错误数、与此前日均的倍数,每个 Agent 及其模型(带图标和费用),以及输入、输出 token 和缓存命中率。小票底部注明设计灵感来自 [nowdex](https://nowdex.app)。「背景」可以换成 15 种图案、4 张风景照片或自己的图片(选择、拖入或粘贴),边距可调,照片还可调模糊和压暗。左上角的开关切换「日 / 周 / 月 / 全部」。可以「复制图片」到剪贴板,或「保存 PNG」到下载文件夹。只读取声明过的 `usage:day`,运行在无网络的沙盒 frame 里。 +中文:在 magpie 窗口里加一个「每日用量卡」页面,把某一天(或最近 7 天、30 天、全部)的用量打印成一张小票(Daily AI Statement):当天按 API 价计的费用、连续使用天数、请求数、错误数、与此前日均的倍数,每个 Agent 及其模型(带图标和费用),以及输入、输出 token 和缓存命中率。小票底部注明设计灵感来自 [nowdex](https://nowdex.app)。「背景」可以换成 15 种图案、4 张风景照片或自己的图片(选择、拖入或粘贴,角上的 × 可删除),边距可调,照片还可调模糊和压暗。左上角的开关切换「日 / 周 / 月 / 全部」。可以「复制图片」到剪贴板,或「保存 PNG」到下载文件夹。只读取声明过的 `usage:day`,运行在无网络的沙盒 frame 里。 diff --git a/packages/day-card/bg-delete.gui.mjs b/packages/day-card/bg-delete.gui.mjs new file mode 100644 index 0000000..93d96c4 --- /dev/null +++ b/packages/day-card/bg-delete.gui.mjs @@ -0,0 +1,91 @@ +// The Background menu's own picture can be removed (netube99 on X): a badge +// at the picture's top-right corner, shown on hover with a mouse, on focus +// from the keyboard, and always on a touch screen. Removing it drops the +// picture from the saved options and a card drawn on it goes back to teal, +// with the menu left open. Drives the real page in Chromium and WebKit, in +// every language, against a stub bridge. +// Run: NODE_PATH= node bg-delete.gui.mjs +import { readFileSync, existsSync } from "node:fs" +import { join } from "node:path" +import { createRequire } from "node:module" + +const require = createRequire(import.meta.url) +const { chromium, webkit } = require("playwright") +const page_dir = join(import.meta.dirname, "page") +// a picture of the reader's own: one of the page's thumbnails, as data: +const PIX = readFileSync(join(page_dir, "bg", "thumbs.js"), "utf8").match(/data:image\/jpeg;base64,[A-Za-z0-9+/=]+/)[0] +const bridge = (lang) => ` +window.__sets = []; +const saved = { bg: "custom", image: ${JSON.stringify(PIX)}, pad: 40, blur: 0, dim: 0 }; +window.magpie = { + ready: Promise.resolve({ lang: ${JSON.stringify(lang)}, dark: false }), + onTheme() {}, + read: async () => ({ date: "2026-11-09", today: "2026-11-09", calls: 1, errors: 0, input: 10, output: 10, cacheRead: 0, cacheWrite: 0, reasoning: 0, cost: 1, unpriced: 0, cacheUnknown: 0, agents: [], days: [{ date: "2026-11-09", calls: 1, tokens: 20, cost: 1 }], icons: {}, currency: "usd", rate: 7 }), + options: { get: async () => saved, set: async (o) => { window.__sets.push(o); } }, + image: { copy: async () => {}, save: async () => ({}) }, +};`; +const words = { en: "Remove your picture", zh: "删除这张图片", "zh-TW": "刪除這張圖片", ja: "この画像を削除", de: "Eigenes Bild entfernen" }; +await (async () => { + let bad = 0; + const ok = (c, m) => { console.log((c ? "ok " : "FAIL ") + m); if (!c) bad++; }; + for (const [name, type] of [["chromium", chromium], ["webkit", webkit]]) { + const browser = await type.launch(); + for (const lang of Object.keys(words)) for (const touch of [false, true]) { + const ctx = await browser.newContext({ viewport: { width: 1200, height: 800 }, hasTouch: touch, isMobile: touch && name === "chromium" }); + const p = await ctx.newPage(); + const errs = []; + p.on("pageerror", (e) => errs.push(String(e))); + await p.route("**/*", (r) => { + const u = new URL(r.request().url()); + if (u.pathname.endsWith("/_magpie/bridge.js")) return r.fulfill({ contentType: "text/javascript", body: bridge(lang) }); + const f = join(page_dir, u.pathname.replace(/^\/day\//, "")); + if (!existsSync(f)) return r.fulfill({ status: 404, body: "" }); + const ct = f.endsWith(".js") ? "text/javascript" : f.endsWith(".css") ? "text/css" : "text/html"; + r.fulfill({ contentType: ct, body: readFileSync(f) }); + }); + await p.goto("http://day.test/day/index.html"); + await p.click("#bg"); + await p.waitForSelector("#bg-del"); + const tag = `${name} ${lang} ${touch ? "touch" : "mouse"}`; + const del = p.locator("#bg-del"); + ok((await del.getAttribute("aria-label")) === words[lang], `${tag}: badge named ${words[lang]}`); + ok((await p.locator('.sw[data-bg="custom"]').getAttribute("aria-checked")) === "true", `${tag}: custom picked`); + const op = async () => Number(await del.evaluate((e) => getComputedStyle(e).opacity)); + if (!touch) { + await p.mouse.move(5, 5); + await p.waitForTimeout(300); + ok((await op()) === 0, `${tag}: badge hidden without hover`); + await p.hover('.sw[data-bg="custom"]', { timeout: 3000 }); + await p.waitForTimeout(300); + ok((await op()) === 1, `${tag}: badge shown on hover`); + // focus path: Tab onto the picture's swatch shows the badge + await p.mouse.move(5, 5); + await p.focus('.sw[data-bg="custom"]'); + await p.waitForTimeout(300); + ok((await op()) === 1, `${tag}: badge shown on focus`); + // badge sits at the swatch's top-right corner + const sb = await p.locator('.sw[data-bg="custom"]').boundingBox(); + const db = await del.boundingBox(); + ok(Math.abs(db.x + db.width - (sb.x + sb.width + 6)) < 1.5 && Math.abs(db.y - (sb.y - 6)) < 1.5, `${tag}: badge at the top-right corner`); + await p.hover('.sw[data-bg="custom"]'); + await p.click("#bg-del"); + } else { + await p.waitForTimeout(300); + ok((await op()) === 1, `${tag}: badge always shown without hover`); + await p.tap("#bg-del"); + } + await p.waitForFunction(() => !document.querySelector('.sw[data-bg="custom"]')); + ok(!(await p.locator("#bg-pop").evaluate((e) => e.hidden || e.classList.contains("closing"))), `${tag}: menu stays open`); + ok((await p.locator('.sw[data-bg="teal"]').getAttribute("aria-checked")) === "true", `${tag}: falls back to teal`); + if (!touch) ok(await p.evaluate(() => document.activeElement?.id === "bg-add"), `${tag}: focus on the add button`); + await p.waitForFunction(() => window.__sets.length > 0, null, { timeout: 4000 }); + const set = await p.evaluate(() => window.__sets.at(-1)); + ok(set.image === "" && set.bg === "teal" && set.pad === 40, `${tag}: saved options lose the picture (${JSON.stringify(set)})`); + ok(errs.length === 0, `${tag}: no page errors ${errs.join(";")}`); + await ctx.close(); + } + await browser.close(); + } + console.log(bad ? `${bad} failed` : "all ok"); + process.exit(bad ? 1 : 0); +})(); diff --git a/packages/day-card/day-card.test.mjs b/packages/day-card/day-card.test.mjs index c0225e7..c9f2d4f 100644 --- a/packages/day-card/day-card.test.mjs +++ b/packages/day-card/day-card.test.mjs @@ -311,6 +311,23 @@ test("a saved backdrop is made sound before it is drawn", () => { expect(B.meta("nope").id).toBe("teal") }) +test("a picture of the reader's own can be removed, and a card drawn on it goes back to teal (netube99 on X)", () => { + const mine = B.norm({ bg: "custom", image: "data:image/jpeg;base64,AAAA", pad: 40, blur: 6 }) + // app.js's dropPicture is pick({ image: "" }): the saved options lose the picture + expect(B.norm({ ...mine, image: "" })).toEqual({ bg: "teal", pad: 40, blur: 6, dim: 0, image: "" }) + // a picture not in use goes, and the backdrop picked stays + expect(B.norm({ ...mine, bg: "kraft", image: "" })).toMatchObject({ bg: "kraft", image: "" }) + const app = read("app.js") + expect(app).toContain('pick({ image: "" })') + // the badge is a button of its own, beside the picture's swatch, never in it + expect(app).toContain("own.append(b, del)") + const css = read("style.css") + // shown on hover only where there is hover, and on focus, and always where there isn't + expect(css).toContain("@media (hover: hover) and (pointer: fine) { .sw-own:hover .sw-del") + expect(css).toContain(".sw-own:focus-within .sw-del") + expect(css).toContain("@media not all and (hover: hover) and (pointer: fine) { .sw-del") +}) + test("the blur and dim sliders stay put while a slider is dragged (#957)", () => { // classList.toggle(name, undefined) flips the class, so a pattern's photo // must be false, not missing, or every input event hides or shows them diff --git a/packages/day-card/package.json b/packages/day-card/package.json index 249ff8f..1c82122 100644 --- a/packages/day-card/package.json +++ b/packages/day-card/package.json @@ -1,6 +1,6 @@ { "name": "@magpie-community/page-day-card", - "version": "0.3.2", + "version": "0.3.3", "description": "A page in magpie's window that draws a day, week, month or all 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", "NOTICE"], "keywords": ["magpie", "magpie-page", "usage", "tokens", "cost", "card"], diff --git a/packages/day-card/page/app.js b/packages/day-card/page/app.js index fa96307..34505dc 100644 --- a/packages/day-card/page/app.js +++ b/packages/day-card/page/app.js @@ -637,7 +637,19 @@ img.alt = ""; img.src = state.bg.image; b.append(img); - list.push(b); + // the reader's picture can go again: a badge at its corner, shown on + // hover or focus, and always where there is no hover (netube99 on X) + const own = document.createElement("span"); + own.className = "sw-own"; + const del = document.createElement("button"); + del.type = "button"; + del.className = "sw-del"; + del.id = "bg-del"; + del.innerHTML = ''; + del.setAttribute("aria-label", t.removeImage); + del.title = t.removeImage; + own.append(b, del); + list.push(own); } const add = document.createElement("button"); add.type = "button"; @@ -698,6 +710,13 @@ if (pop.hidden || pop.classList.contains("closing")) openPop(); else closePop(); }); grid.addEventListener("click", (e) => { + if (e.target.closest("#bg-del")) { + // the grid is drawn again under the click, so it isn't read as a + // click outside the menu + e.stopPropagation(); + dropPicture(); + return; + } const b = e.target.closest(".sw"); if (!b) return; if (b.id === "bg-add") $("file").click(); @@ -743,6 +762,12 @@ status(`${V.text(lang).imageFailed}: ${e?.message || e}`, true); } } + // the picture leaves the saved options; a card drawn on it goes back to + // the default backdrop (norm), and focus stays in the menu + function dropPicture() { + pick({ image: "" }); + buildGrid().then(() => $("bg-add")?.focus()); + } $("file").addEventListener("change", (e) => { usePicture(e.target.files?.[0]); e.target.value = ""; diff --git a/packages/day-card/page/style.css b/packages/day-card/page/style.css index 08255a8..edd9055 100644 --- a/packages/day-card/page/style.css +++ b/packages/day-card/page/style.css @@ -50,8 +50,15 @@ canvas { display: block; width: 100%; height: auto; margin: 0 auto; border-radiu .sw.add { display: grid; place-items: center; color: var(--muted); background: transparent; box-shadow: inset 0 0 0 1px var(--line); border: 1px dashed var(--line); } .sw.add svg { width: 18px; height: 18px; } @media (hover: hover) and (pointer: fine) { .sw:hover:not([aria-checked="true"]) { box-shadow: inset 0 0 0 1px var(--muted); } } +.sw-own { position: relative; width: 60px; height: 60px; } +.sw-del { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; padding: 0; display: grid; place-items: center; border-radius: 50%; color: var(--bg); background: var(--fg); border: 2px solid var(--bg); opacity: 0; transform: scale(.9); pointer-events: none; transition: opacity .15s cubic-bezier(.23, 1, .32, 1), transform .15s cubic-bezier(.23, 1, .32, 1); } +.sw-del svg { width: 10px; height: 10px; stroke-width: 2.2; } +.sw-own:focus-within .sw-del { opacity: 1; transform: none; pointer-events: auto; } +@media (hover: hover) and (pointer: fine) { .sw-own:hover .sw-del { opacity: 1; transform: none; pointer-events: auto; } } +@media not all and (hover: hover) and (pointer: fine) { .sw-del { opacity: 1; transform: none; pointer-events: auto; } } +.sw-del:hover:not(:disabled) { border-color: var(--bg); } .slider { display: grid; grid-template-columns: 5.5em 1fr; align-items: center; gap: 10px; padding: 0 2px; color: var(--muted); } .slider input { width: 100%; margin: 0; accent-color: var(--fg); } #bg-pop:not(.photo) .photo-only, #bg-pop.none .pad-only { display: none; } main.drop canvas { outline: 2px dashed var(--muted); outline-offset: 4px; } -@media (prefers-reduced-motion: reduce) { #bg-pop.closing, #bg-pop.opening { transform: none; } } +@media (prefers-reduced-motion: reduce) { #bg-pop.closing, #bg-pop.opening, .sw-del { transform: none; } } diff --git a/packages/day-card/page/view.js b/packages/day-card/page/view.js index 97eac39..9b360da 100644 --- a/packages/day-card/page/view.js +++ b/packages/day-card/page/view.js @@ -22,7 +22,7 @@ titleWeek: "WEEKLY AI STATEMENT", titleMonth: "MONTHLY AI STATEMENT", titleAll: "ALL-TIME AI STATEMENT", period: "PERIOD", activeDays: "ACTIVE DAYS", avgDay: "AVG ACTIVE DAY", noCallsSpan: "No calls in this period.", spanDay: "Day", spanWeek: "Week", spanMonth: "Month", spanAll: "All", spanLabel: "Period", earlier: "Earlier", later: "Later", allTime: "All time", updateSpan: "Week, month and all-time need a newer magpie. Update magpie, then open it again.", - background: "Background", padding: "Padding", blur: "Blur", dim: "Dim", upload: "Add your own picture", imageFailed: "Couldn't use that picture", keepFailed: "Couldn't keep the background", + background: "Background", padding: "Padding", blur: "Blur", dim: "Dim", upload: "Add your own picture", removeImage: "Remove your picture", imageFailed: "Couldn't use that picture", keepFailed: "Couldn't keep the background", "bg-none": "No background", "bg-teal": "Teal", "bg-gingham": "Gingham", "bg-grid": "Graph paper", "bg-kraft": "Kraft paper", "bg-cyan": "Cyanotype", "bg-dots": "Night dots", "bg-deck": "Deckchair stripes", "bg-linen": "Olive linen", "bg-seigaiha": "Seigaiha waves", "bg-xuan": "Xuan paper", "bg-zigzag": "Zigzag", "bg-terracotta": "Terracotta", "bg-lilac": "Lilac lines", "bg-velvet": "Green velvet", "bg-polka": "Apricot polka", "bg-alpine": "Alpine dawn", "bg-sea": "Misty shore", "bg-dunes": "Dunes", "bg-lake": "Forest lake", "bg-custom": "Your picture", }, zh: { @@ -41,7 +41,7 @@ titleWeek: "每周 AI 账单", titleMonth: "每月 AI 账单", titleAll: "累计 AI 账单", period: "区间", activeDays: "活跃天数", avgDay: "活跃日均", noCallsSpan: "这段时间没有调用。", spanDay: "日", spanWeek: "周", spanMonth: "月", spanAll: "全部", spanLabel: "统计区间", earlier: "更早", later: "更晚", allTime: "全部时间", updateSpan: "周、月和全部账单需要更新版本的 magpie。请更新 magpie 后再打开。", - background: "背景", padding: "边距", blur: "模糊", dim: "压暗", upload: "用自己的图片", imageFailed: "这张图片用不了", keepFailed: "背景没能保存", + background: "背景", padding: "边距", blur: "模糊", dim: "压暗", upload: "用自己的图片", removeImage: "删除这张图片", imageFailed: "这张图片用不了", keepFailed: "背景没能保存", "bg-none": "无背景", "bg-teal": "青绿", "bg-gingham": "野餐格", "bg-grid": "方格纸", "bg-kraft": "牛皮纸", "bg-cyan": "蓝晒", "bg-dots": "夜色网点", "bg-deck": "躺椅条纹", "bg-linen": "橄榄亚麻", "bg-seigaiha": "青海波", "bg-xuan": "宣纸", "bg-zigzag": "人字纹", "bg-terracotta": "赤陶", "bg-lilac": "雾紫细线", "bg-velvet": "墨绿丝绒", "bg-polka": "杏色波点", "bg-alpine": "雪山晨光", "bg-sea": "雾中海岸", "bg-dunes": "沙丘", "bg-lake": "林间湖", "bg-custom": "自己的图片", }, "zh-TW": { @@ -60,7 +60,7 @@ titleWeek: "每週 AI 帳單", titleMonth: "每月 AI 帳單", titleAll: "累計 AI 帳單", period: "區間", activeDays: "活躍天數", avgDay: "活躍日均", noCallsSpan: "這段時間沒有呼叫。", spanDay: "日", spanWeek: "週", spanMonth: "月", spanAll: "全部", spanLabel: "統計區間", earlier: "更早", later: "更晚", allTime: "全部時間", updateSpan: "週、月和全部帳單需要更新版本的 magpie。請更新 magpie 後再開啟。", - background: "背景", padding: "邊距", blur: "模糊", dim: "壓暗", upload: "用自己的圖片", imageFailed: "這張圖片用不了", keepFailed: "背景沒能儲存", + background: "背景", padding: "邊距", blur: "模糊", dim: "壓暗", upload: "用自己的圖片", removeImage: "刪除這張圖片", imageFailed: "這張圖片用不了", keepFailed: "背景沒能儲存", "bg-none": "無背景", "bg-teal": "青綠", "bg-gingham": "野餐格", "bg-grid": "方格紙", "bg-kraft": "牛皮紙", "bg-cyan": "藍曬", "bg-dots": "夜色網點", "bg-deck": "躺椅條紋", "bg-linen": "橄欖亞麻", "bg-seigaiha": "青海波", "bg-xuan": "宣紙", "bg-zigzag": "人字紋", "bg-terracotta": "赤陶", "bg-lilac": "霧紫細線", "bg-velvet": "墨綠絲絨", "bg-polka": "杏色波點", "bg-alpine": "雪山晨光", "bg-sea": "霧中海岸", "bg-dunes": "沙丘", "bg-lake": "林間湖", "bg-custom": "自己的圖片", }, ja: { @@ -79,7 +79,7 @@ titleWeek: "週間 AI 明細", titleMonth: "月間 AI 明細", titleAll: "累計 AI 明細", period: "期間", activeDays: "稼働日数", avgDay: "稼働日平均", noCallsSpan: "この期間の呼び出しはありません。", spanDay: "日", spanWeek: "週", spanMonth: "月", spanAll: "全期間", spanLabel: "期間", earlier: "前へ", later: "次へ", allTime: "全期間", updateSpan: "週・月・全期間には新しい magpie が必要です。magpie を更新してから開き直してください。", - background: "背景", padding: "余白", blur: "ぼかし", dim: "暗さ", upload: "自分の画像を使う", imageFailed: "この画像は使えません", keepFailed: "背景を保存できませんでした", + background: "背景", padding: "余白", blur: "ぼかし", dim: "暗さ", upload: "自分の画像を使う", removeImage: "この画像を削除", imageFailed: "この画像は使えません", keepFailed: "背景を保存できませんでした", "bg-none": "背景なし", "bg-teal": "ティール", "bg-gingham": "ギンガム", "bg-grid": "方眼紙", "bg-kraft": "クラフト紙", "bg-cyan": "青写真", "bg-dots": "夜のドット", "bg-deck": "デッキチェア", "bg-linen": "オリーブリネン", "bg-seigaiha": "青海波", "bg-xuan": "宣紙", "bg-zigzag": "ジグザグ", "bg-terracotta": "テラコッタ", "bg-lilac": "ライラック", "bg-velvet": "深緑ベルベット", "bg-polka": "アプリコット水玉", "bg-alpine": "雪山の朝", "bg-sea": "霧の海辺", "bg-dunes": "砂丘", "bg-lake": "森の湖", "bg-custom": "自分の画像", }, de: { @@ -98,7 +98,7 @@ titleWeek: "WÖCHENTLICHE KI-ABRECHNUNG", titleMonth: "MONATLICHE KI-ABRECHNUNG", titleAll: "GESAMTE KI-ABRECHNUNG", period: "ZEITRAUM", activeDays: "AKTIVE TAGE", avgDay: "Ø AKTIVER TAG", noCallsSpan: "In diesem Zeitraum keine Aufrufe.", spanDay: "Tag", spanWeek: "Woche", spanMonth: "Monat", spanAll: "Alle", spanLabel: "Zeitraum", earlier: "Früher", later: "Später", allTime: "Gesamte Zeit", updateSpan: "Woche, Monat und Gesamt brauchen ein neueres magpie. Aktualisiere magpie und öffne die Karte dann erneut.", - background: "Hintergrund", padding: "Rand", blur: "Weichzeichnen", dim: "Abdunkeln", upload: "Eigenes Bild wählen", imageFailed: "Dieses Bild geht nicht", keepFailed: "Hintergrund nicht gesichert", + background: "Hintergrund", padding: "Rand", blur: "Weichzeichnen", dim: "Abdunkeln", upload: "Eigenes Bild wählen", removeImage: "Eigenes Bild entfernen", imageFailed: "Dieses Bild geht nicht", keepFailed: "Hintergrund nicht gesichert", "bg-none": "Kein Hintergrund", "bg-teal": "Türkis", "bg-gingham": "Vichy-Karo", "bg-grid": "Millimeterpapier", "bg-kraft": "Packpapier", "bg-cyan": "Cyanotypie", "bg-dots": "Nachtpunkte", "bg-deck": "Liegestuhlstreifen", "bg-linen": "Olivleinen", "bg-seigaiha": "Seigaiha", "bg-xuan": "Xuan-Papier", "bg-zigzag": "Zickzack", "bg-terracotta": "Terrakotta", "bg-lilac": "Fliederlinien", "bg-velvet": "Grüner Samt", "bg-polka": "Aprikosenpunkte", "bg-alpine": "Alpenmorgen", "bg-sea": "Nebelküste", "bg-dunes": "Dünen", "bg-lake": "Waldsee", "bg-custom": "Eigenes Bild", }, };