@lincyaw/workspace 1.0.0-rc.117 → 1.0.0-rc.118
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/package.json +6 -6
- package/src/node/capture.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lincyaw/workspace",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.118",
|
|
4
4
|
"description": "Presmium's workspace service (presmium serve): documents, their history, reviews and the workspace site",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"mime-types": "3.0.2",
|
|
35
35
|
"playwright-chromium": "1.64.1",
|
|
36
36
|
"yaml": "^2.9.1",
|
|
37
|
-
"@lincyaw/
|
|
38
|
-
"@lincyaw/kernel": "1.0.0-rc.
|
|
39
|
-
"@lincyaw/
|
|
40
|
-
"@lincyaw/
|
|
37
|
+
"@lincyaw/compiler": "1.0.0-rc.118",
|
|
38
|
+
"@lincyaw/kernel": "1.0.0-rc.118",
|
|
39
|
+
"@lincyaw/server": "1.0.0-rc.118",
|
|
40
|
+
"@lincyaw/design": "1.0.0-rc.118"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/mime-types": "^3.0.1",
|
|
44
|
-
"@lincyaw/mcp": "1.0.0-rc.
|
|
44
|
+
"@lincyaw/mcp": "1.0.0-rc.118"
|
|
45
45
|
}
|
|
46
46
|
}
|
package/src/node/capture.ts
CHANGED
|
@@ -309,7 +309,7 @@ const escapeHtml = (text: string) => text.replace(/[&<>"]/g, char => `&#${char.c
|
|
|
309
309
|
|
|
310
310
|
/** A sheet of thumbnails with their labels: plain HTML for the capturing browser, not a page of the product. */
|
|
311
311
|
function sheetHtml(cells: { label: string, png: Buffer }[], columns: number, appearance: 'light' | 'dark'): string {
|
|
312
|
-
const [paper, ink, line] = appearance === 'dark' ? ['#
|
|
312
|
+
const [paper, ink, line] = appearance === 'dark' ? ['#16171a', '#e8eaed', '#2e3136'] : ['#ffffff', '#1f2329', '#e3e5e9']
|
|
313
313
|
return `<!doctype html><meta charset="utf-8"><style>
|
|
314
314
|
body { margin: 0; padding: ${SHEET_GAP}px; background: ${paper}; color: ${ink}; font: 13px/1.4 system-ui, sans-serif; }
|
|
315
315
|
main { display: grid; grid-template-columns: repeat(${columns}, ${THUMB_WIDTH}px); gap: ${SHEET_GAP}px; }
|