screw-bugs 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build-info.json +3 -3
- package/dist/report/markup.js +11 -9
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "2026-11-
|
|
3
|
-
"builtAt": "2026-11-
|
|
4
|
-
"commit": "
|
|
2
|
+
"id": "2026-11-13T12:03:13.596Z-d6d3a62c",
|
|
3
|
+
"builtAt": "2026-11-13T12:03:13.596Z",
|
|
4
|
+
"commit": "45611aa254ba70af92c771220ed33924bef8b395"
|
|
5
5
|
}
|
package/dist/report/markup.js
CHANGED
|
@@ -48,20 +48,22 @@ export const textParts = (parts) => parts.map((part) => part.kind === 'text'
|
|
|
48
48
|
? html `<q class="value">${part.text}</q>`
|
|
49
49
|
: html `<code>${part.text}</code>`);
|
|
50
50
|
/**
|
|
51
|
-
* The report icon
|
|
52
|
-
*
|
|
53
|
-
* or `system`, which follows `prefers-color-scheme` (the browser's, not the page's theme
|
|
54
|
-
* Inline, so the page stays one file; the CSP allows `data:` images.
|
|
51
|
+
* The report icon, as the design's light and dark favicons draw it: a pixel page with a folded
|
|
52
|
+
* corner, its outline dark, or lime on dark, on nothing. `faviconSvg(style)` colors it: `light`,
|
|
53
|
+
* `dark`, or `system`, which follows `prefers-color-scheme` (the browser's, not the page's theme
|
|
54
|
+
* button). Inline, so the page stays one file; the CSP allows `data:` images. `assets/icon.svg` is
|
|
55
|
+
* the same drawing, as a file for tools that look for a project icon (T3 Code).
|
|
55
56
|
*/
|
|
56
57
|
const LIME = '#96F011';
|
|
57
58
|
const INK = '#1D1D1D';
|
|
58
|
-
const
|
|
59
|
+
const ICON_PATH = 'M94 2H464V57H94zM409 2H464V464H409zM48 48H103V464H48zM103 57H149V103H103zM103 409H149V455H103z' +
|
|
60
|
+
'M363 409H409V455H363zM94 455H418V510H94zM279 57H334V187H279zM279 132H409V187H279z';
|
|
61
|
+
const faviconSvg = (style) => "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'>" +
|
|
59
62
|
`<style>${style}</style>` +
|
|
60
|
-
|
|
61
|
-
"<path d='M4 2h7v1H4zM4 12h7v1H4zM3 3h1v9H3zM11 3h1v9h-1zM5 5h5v1H5zM5 7h5v1H5zM5 9h3.2v1H5z'/>" +
|
|
63
|
+
`<path d='${ICON_PATH}'/>` +
|
|
62
64
|
'</svg>';
|
|
63
|
-
const LIGHT_STYLE = `
|
|
64
|
-
const DARK_STYLE = `
|
|
65
|
+
const LIGHT_STYLE = `path{fill:${INK}}`;
|
|
66
|
+
const DARK_STYLE = `path{fill:${LIME}}`;
|
|
65
67
|
const iconUrl = (style) => `data:image/svg+xml,${faviconSvg(style).replaceAll('#', '%23')}`;
|
|
66
68
|
const FAVICON = {
|
|
67
69
|
light: iconUrl(LIGHT_STYLE),
|