Re-sync the engine, point everything at GitHub
The vendored copies of printlayout.ts, paper.ts, printoversize.ts and tokens.css now match Klarbild 1.0.0 as published. Source links go to GitHub only — the self-hosted Gitea is the origin, not the public face. Screenshots and the two stated counts refreshed from the current build. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Nh4A79bbqT9dcd2inzYUdg
This commit is contained in:
7 files changed
+6
-7
No files matched your search
@@ -24,6 +24,7 @@ npm run dev
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
cp ../klarbild/src/lib/{printlayout,paper,printoversize}.ts src/engine/
|
cp ../klarbild/src/lib/{printlayout,paper,printoversize}.ts src/engine/
|
||||||
|
cp ../klarbild/src/styles/tokens.css src/styles/tokens.css
|
||||||
# printoversize.ts imports './printlayout.ts'; drop the extension for the bundler
|
# printoversize.ts imports './printlayout.ts'; drop the extension for the bundler
|
||||||
sed -i "s#from './printlayout.ts'#from './printlayout'#" src/engine/printoversize.ts
|
sed -i "s#from './printlayout.ts'#from './printlayout'#" src/engine/printoversize.ts
|
||||||
```
|
```
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 229 KiB After Width: | Height: | Size: 233 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 266 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 169 KiB After Width: | Height: | Size: 168 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 30 KiB |
+1
-1
@@ -128,7 +128,7 @@ export const PHOTO_SIZES: PhotoSize[] = [
|
|||||||
{ id: 'C70x100', label: 'Bookmark 7 × 21 cm', w: 70, h: 210, group: 'Cards' },
|
{ id: 'C70x100', label: 'Bookmark 7 × 21 cm', w: 70, h: 210, group: 'Cards' },
|
||||||
|
|
||||||
// --- Aspect ratios as a print size (worked out on 30 cm) ---
|
// --- Aspect ratios as a print size (worked out on 30 cm) ---
|
||||||
{ id: 'W16x9', label: '16:9 "The Frame" (30 cm wide)', w: 300, h: 168.75, group: 'Aspect ratio' },
|
{ id: 'W16x9', label: '16:9 TV 16:9 (30 cm wide)', w: 300, h: 168.75, group: 'Aspect ratio' },
|
||||||
{ id: 'W9x16', label: '9:16 portrait (30 cm tall)', w: 168.75, h: 300, group: 'Aspect ratio' },
|
{ id: 'W9x16', label: '9:16 portrait (30 cm tall)', w: 168.75, h: 300, group: 'Aspect ratio' },
|
||||||
{ id: 'W21x9', label: '21:9 cinema (30 cm wide)', w: 300, h: 128.57, group: 'Aspect ratio' },
|
{ id: 'W21x9', label: '21:9 cinema (30 cm wide)', w: 300, h: 128.57, group: 'Aspect ratio' },
|
||||||
{ id: 'W2x1', label: '2:1 panorama (30 cm wide)', w: 300, h: 150, group: 'Aspect ratio' },
|
{ id: 'W2x1', label: '2:1 panorama (30 cm wide)', w: 300, h: 150, group: 'Aspect ratio' },
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import '../styles/tokens.css';
|
|||||||
import '../styles/site.css';
|
import '../styles/site.css';
|
||||||
|
|
||||||
const GITHUB = 'https://github.com/tillheidrich/klarbild';
|
const GITHUB = 'https://github.com/tillheidrich/klarbild';
|
||||||
const GITEA = 'https://git.heidrich-digital.de/till/klarbild-oss';
|
|
||||||
|
|
||||||
const modules = [
|
const modules = [
|
||||||
{ id: 'print', title: 'Print studio', core: true,
|
{ id: 'print', title: 'Print studio', core: true,
|
||||||
@@ -36,7 +35,7 @@ const modules = [
|
|||||||
|
|
||||||
const facts = [
|
const facts = [
|
||||||
{ h: '86 image sizes', p: 'In ten groups — passport photo, small prints, photo formats, US inches, instant-camera, poster and frame sizes, squares, DIN, cards, plain aspect ratios. Or type your own: 25x35, 13x18, 10x7.5.' },
|
{ h: '86 image sizes', p: 'In ten groups — passport photo, small prints, photo formats, US inches, instant-camera, poster and frame sizes, squares, DIN, cards, plain aspect ratios. Or type your own: 25x35, 13x18, 10x7.5.' },
|
||||||
{ h: '19 paper formats', p: 'A6 to A2 including A3+, photo paper from 9 × 13 to 20 × 30 cm, US Letter and Legal — or a custom sheet.' },
|
{ h: '19 paper formats', p: 'A6 to A1 including A3+, photo paper from 9 × 13 to 20 × 30 cm, US Letter and Legal — or a custom sheet.' },
|
||||||
{ h: 'Crop marks', p: 'Corner marks at 0.25 pt outside the trim, or continuous lines when every cell is the same size. Bleed 0 to 10 mm.' },
|
{ h: 'Crop marks', p: 'Corner marks at 0.25 pt outside the trim, or continuous lines when every cell is the same size. Bleed 0 to 10 mm.' },
|
||||||
{ h: 'Oversize, handled', p: 'A 20 × 30 print on A4 is not an error. Fit tells you it will not go; overflow centres it over the whole sheet and quantifies the loss first; tile spreads it over several sheets with a glue flap and a page number.' },
|
{ h: 'Oversize, handled', p: 'A 20 × 30 print on A4 is not an error. Fit tells you it will not go; overflow centres it over the whole sheet and quantifies the loss first; tile spreads it over several sheets with a glue flap and a page number.' },
|
||||||
{ h: 'Crop or letterbox', p: 'When a picture does not match the target ratio you choose per picture — crop with a zoom-and-pan preview, or a border in a colour you pick. Nothing is ever stretched.' },
|
{ h: 'Crop or letterbox', p: 'When a picture does not match the target ratio you choose per picture — crop with a zoom-and-pan preview, or a border in a colour you pick. Nothing is ever stretched.' },
|
||||||
@@ -303,8 +302,8 @@ KLARBILD_MODULES=all</pre>
|
|||||||
otherwise with a generated password printed to the log exactly once.
|
otherwise with a generated password printed to the log exactly once.
|
||||||
</p>
|
</p>
|
||||||
<div class="btnrow">
|
<div class="btnrow">
|
||||||
<a class="btn primary" href={GITHUB} rel="noopener">GitHub</a>
|
<a class="btn primary" href={GITHUB} rel="noopener">Source on GitHub</a>
|
||||||
<a class="btn" href={GITEA} rel="noopener">Gitea</a>
|
<a class="btn" href={`${GITHUB}/releases`} rel="noopener">Releases</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@@ -315,7 +314,7 @@ docker compose up -d
|
|||||||
|
|
||||||
docker compose logs app <span class="c"># your admin password, printed once</span></pre>
|
docker compose logs app <span class="c"># your admin password, printed once</span></pre>
|
||||||
<p style="font-size:.84rem; color:var(--ink-soft); margin-top:14px;">
|
<p style="font-size:.84rem; color:var(--ink-soft); margin-top:14px;">
|
||||||
Astro 5 on Node, PostgreSQL, sharp and pdf-lib. About 13,600 lines across 116
|
Astro on Node, PostgreSQL, sharp and pdf-lib. About 13,700 lines across 117
|
||||||
files. Sixteen forward-only migrations that run themselves on boot. Type check,
|
files. Sixteen forward-only migrations that run themselves on boot. Type check,
|
||||||
tests and a secret scan run in CI on every push.
|
tests and a secret scan run in CI on every push.
|
||||||
</p>
|
</p>
|
||||||
@@ -347,7 +346,6 @@ docker compose logs app <span class="c"># your admin password, printed once</spa
|
|||||||
<div class="shell foot-in">
|
<div class="shell foot-in">
|
||||||
<a class="brand" href="/"><span class="regmark"></span>klarbild</a>
|
<a class="brand" href="/"><span class="regmark"></span>klarbild</a>
|
||||||
<a href={GITHUB} rel="noopener">GitHub</a>
|
<a href={GITHUB} rel="noopener">GitHub</a>
|
||||||
<a href={GITEA} rel="noopener">Gitea</a>
|
|
||||||
<a href={`${GITHUB}/blob/main/LICENSE`} rel="noopener">AGPL-3.0</a>
|
<a href={`${GITHUB}/blob/main/LICENSE`} rel="noopener">AGPL-3.0</a>
|
||||||
<span class="fine">
|
<span class="fine">
|
||||||
A demo page. The layout engine is real; the pictures are outlines. Built by
|
A demo page. The layout engine is real; the pictures are outlines. Built by
|
||||||
|
|||||||
Reference in new issue
Block a user