Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,27 @@
"user:create": "tsx --env-file-if-exists=../.env scripts/create-user.ts"
},
"dependencies": {
"@aws-sdk/client-s3": "3.1146.0",
"@aws-sdk/s3-request-presigner": "3.1146.0",
"drizzle-orm": "0.45.3",
"katex": "0.16.22",
"marked": "18.0.14",
"nodemailer": "10.0.12",
"@aws-sdk/client-s3": "3.1173.0",
"@aws-sdk/s3-request-presigner": "3.1173.0",
"drizzle-orm": "0.45.4",
"katex": "0.19.1",
"marked": "18.2.1",
"nodemailer": "10.6.1",
"postgres": "4.1.1",
"sanitize-html": "2.18.0",
"smol-toml": "1.9.0",
"yaml": "2.8.2",
"zod": "4.6.5"
"sanitize-html": "2.18.2",
"smol-toml": "1.9.1",
"yaml": "2.9.1",
"zod": "4.6.7"
},
"devDependencies": {
"@apidevtools/swagger-parser": "13.1.0",
"@types/katex": "0.16.7",
"@types/node": "26.6.3",
"@types/katex": "0.16.8",
"@types/node": "26.6.6",
"@types/sanitize-html": "2.16.2",
"drizzle-kit": "0.31.11",
"esbuild": "0.27.7",
"esbuild": "0.28.2",
"tsx": "4.23.15",
"typescript": "5.9.2",
"vitest": "5.0.3"
"vitest": "5.1.1"
}
}
6 changes: 5 additions & 1 deletion frontend/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ export default [
}
},
rules: {
'no-console': ['warn', { allow: ['warn', 'error'] }]
'no-console': ['warn', { allow: ['warn', 'error'] }],
// Added to the recommended set in eslint-plugin-svelte 3.x. BenchCore is served
// from the domain root (no paths.base), so root-relative links are already
// correct. Re-enable and route links through resolve() if a base path is adopted.
'svelte/no-navigation-without-resolve': 'off'
}
},
{
Expand Down
54 changes: 27 additions & 27 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,43 +22,43 @@
"test:watch": "vitest"
},
"dependencies": {
"d3-drag": "3.0.0",
"d3-force": "3.0.0",
"d3-selection": "3.0.0",
"d3-zoom": "3.0.0",
"fflate": "0.8.2",
"marked": "18.0.14",
"d3-drag": "3.0.1",
"d3-force": "3.0.1",
"d3-selection": "3.0.1",
"d3-zoom": "3.0.1",
"fflate": "0.8.3",
"marked": "18.2.1",
"qrcode": "1.5.4",
"zod": "4.6.5"
"zod": "4.6.7"
},
"devDependencies": {
"@eslint/js": "10.0.1",
"@playwright/test": "1.65.1",
"@sveltejs/adapter-node": "6.0.0",
"@sveltejs/adapter-vercel": "7.0.0",
"@sveltejs/kit": "3.0.0",
"@sveltejs/adapter-node": "6.0.5",
"@sveltejs/adapter-vercel": "7.0.5",
"@sveltejs/kit": "3.4.0",
"@sveltejs/vite-plugin-svelte": "7.3.1",
"@tailwindcss/vite": "4.3.3",
"@tailwindcss/vite": "4.3.5",
"@types/d3-drag": "3.0.7",
"@types/d3-force": "3.0.10",
"@types/d3-selection": "3.0.11",
"@types/d3-zoom": "3.0.8",
"@types/node": "26.6.3",
"@types/qrcode": "1.5.5",
"axe-core": "4.11.0",
"eslint": "10.11.0",
"@types/d3-selection": "3.0.12",
"@types/d3-zoom": "3.0.9",
"@types/node": "26.6.6",
"@types/qrcode": "1.5.6",
"axe-core": "4.14.1",
"eslint": "10.15.0",
"eslint-config-prettier": "10.1.8",
"eslint-plugin-svelte": "3.23.0",
"globals": "17.13.0",
"eslint-plugin-svelte": "3.24.1",
"globals": "17.14.0",
"jsqr": "1.4.0",
"prettier": "3.9.9",
"prettier-plugin-svelte": "4.1.1",
"svelte": "5.57.1",
"svelte-check": "4.7.6",
"tailwindcss": "4.3.3",
"prettier": "3.10.1",
"prettier-plugin-svelte": "4.2.0",
"svelte": "5.59.0",
"svelte-check": "4.7.8",
"tailwindcss": "4.3.5",
"typescript": "5.9.2",
"typescript-eslint": "8.71.0",
"vite": "8.3.2",
"vitest": "5.0.3"
"typescript-eslint": "8.73.0",
"vite": "8.3.8",
"vitest": "5.1.1"
}
}
5 changes: 3 additions & 2 deletions frontend/src/lib/components/CategoryFilter.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
<label class="field-label" for="category-filter">{t('publishing.category')}</label>
<select class="field-input" id="category-filter" name="category">
<option value="">{t('publishing.allCategories')}</option>
{#each names as name (name)}<option value={name} selected={selected === name}>{name}</option
>{/each}
{#each names as name (name)}<option value={name} selected={selected === name}>
{name}
</option>{/each}
</select>
</div>
6 changes: 3 additions & 3 deletions frontend/src/lib/components/CookieNotice.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
</div>
<p>{t('cookieNotice.body')}</p>
<div class="btn-row">
<button class="btn btn-accent" type="button" onclick={accept}
>{t('cookieNotice.accept')}</button
>
<button class="btn btn-accent" type="button" onclick={accept}>
{t('cookieNotice.accept')}
</button>
<a class="btn" href="/cookies">{t('cookieNotice.details')}</a>
</div>
</section>
Expand Down
34 changes: 20 additions & 14 deletions frontend/src/lib/components/DirectUpload.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,11 @@
type="button"
onclick={upload}
disabled={busy || disabled || !pending}
>{busy
? t('editor.upload.uploading', { done: completed, total: items.length })
: t('editor.upload.start')}</button
>
{busy
? t('editor.upload.uploading', { done: completed, total: items.length })
: t('editor.upload.start')}
</button>
</div>
<p class="summary" aria-live="polite">{message}</p>
<p class="summary">
Expand All @@ -118,13 +119,14 @@
max="100"
value={item.progress}
aria-label={t('editor.upload.progressAria', { name: item.file.name })}
>{item.progress}%</progress
>
<span class="field-help"
>{item.progress}%{item.progress === 95 && item.status === 'uploading'
{item.progress}%
</progress>
<span class="field-help">
{item.progress}%{item.progress === 95 && item.status === 'uploading'
? ` · ${t('editor.upload.verifying')}`
: ''}</span
>
: ''}
</span>
{#if !completed}
<button
class="btn"
Expand All @@ -133,17 +135,21 @@
aria-label={t('editor.upload.moveEarlierAria', { name: item.file.name })}
onclick={() => {
items = moveQueuedImage(items, index, -1);
}}>{t('editor.images.moveUp')}</button
}}
>
{t('editor.images.moveUp')}
</button>
<button
class="btn"
type="button"
disabled={busy || disabled || index === items.length - 1}
aria-label={t('editor.upload.moveLaterAria', { name: item.file.name })}
onclick={() => {
items = moveQueuedImage(items, index, 1);
}}>{t('editor.images.moveDown')}</button
}}
>
{t('editor.images.moveDown')}
</button>
{/if}
{#if item.status === 'uploaded' && item.url}
<CopyImageLink url={item.url} name={item.file.name} />
Expand All @@ -153,8 +159,8 @@
{/each}
</ul>
{/if}
<noscript
><p class="summary">
<noscript>
<p class="summary">
{t('editor.upload.noscript')}
</p></noscript
>
</p>
</noscript>
12 changes: 6 additions & 6 deletions frontend/src/lib/components/DocShell.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
<div class="doc-sub">{sub}</div>
<nav class="doc-nav" aria-label={t('common.mainNavigation')}>
{#each nav as item (item.href)}
<a href={item.href} aria-current={item.href === activeHref ? 'page' : undefined}
>{navigationLabel(item.href, item.label, currentLocale())}</a
>
<a href={item.href} aria-current={item.href === activeHref ? 'page' : undefined}>
{navigationLabel(item.href, item.label, currentLocale())}
</a>
{/each}
</nav>
</header>
Expand All @@ -78,9 +78,9 @@
</div>
<nav class="site-links" aria-label={t('pages.footer.navigation')}>
{#each FOOTER_LINKS as link (link.href)}
<a href={link.href} aria-current={link.href === activeHref ? 'page' : undefined}
>{t(link.label)}</a
>
<a href={link.href} aria-current={link.href === activeHref ? 'page' : undefined}>
{t(link.label)}
</a>
{/each}
</nav>
</footer>
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/lib/components/ErrorPage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@
{#if status === 404}
<section class="record">
<form class="error-search" method="GET" action="/posts">
<label class="field-label" for="missing-page-search">{t('pages.error.searchLabel')}</label
>
<label class="field-label" for="missing-page-search">
{t('pages.error.searchLabel')}
</label>
<div class="search-controls">
<input
class="field-input"
Expand Down
45 changes: 26 additions & 19 deletions frontend/src/lib/components/GraphView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -95,26 +95,30 @@
class="btn"
type="button"
aria-label={t('public.graphView.zoomInAria')}
onclick={() => zoomView(1.4)}>{t('public.graphView.zoomIn')}</button
onclick={() => zoomView(1.4)}
>
{t('public.graphView.zoomIn')}
</button>
<button
class="btn"
type="button"
aria-label={t('public.graphView.zoomOutAria')}
onclick={() => zoomView(1 / 1.4)}>{t('public.graphView.zoomOut')}</button
>
<button class="btn" type="button" onclick={() => resetView()}
>{t('public.graphView.fit')}</button
onclick={() => zoomView(1 / 1.4)}
>
{#if selected}<button class="btn" type="button" aria-pressed={focused} onclick={toggleFocus}
>{focused ? t('public.graphView.showFull') : t('public.graphView.focus')}</button
>{/if}
{#if query}<button class="btn" type="button" onclick={() => searchGraph('')}
>{t('public.graphView.clearSearch')}</button
>{/if}
{#if selectedSlug}<button class="btn" type="button" onclick={() => selectNode(null)}
>{t('public.graphView.showAll')}</button
>{/if}
{t('public.graphView.zoomOut')}
</button>
<button class="btn" type="button" onclick={() => resetView()}>
{t('public.graphView.fit')}
</button>
{#if selected}<button class="btn" type="button" aria-pressed={focused} onclick={toggleFocus}>
{focused ? t('public.graphView.showFull') : t('public.graphView.focus')}
</button>{/if}
{#if query}<button class="btn" type="button" onclick={() => searchGraph('')}>
{t('public.graphView.clearSearch')}
</button>{/if}
{#if selectedSlug}<button class="btn" type="button" onclick={() => selectNode(null)}>
{t('public.graphView.showAll')}
</button>{/if}
</div>
</div>
{#if focused && selected}<p class="field-help" role="status">
Expand All @@ -126,8 +130,10 @@
class="topic-filter"
type="button"
aria-pressed={query === ''}
onclick={() => searchGraph('')}>{t('public.graphView.allTopics')}</button
onclick={() => searchGraph('')}
>
{t('public.graphView.allTopics')}
</button>
{#each Array.from(new Map(graph.nodes
.flatMap((node) => node.tags)
.map((tag) => [tag.slug, tag])).values()).slice(0, 12) as tag (tag.slug)}
Expand Down Expand Up @@ -162,9 +168,9 @@
<TagChip label={tag.name} color={tag.color} />
{/each}
</div>
<a class="btn btn-accent" href="/posts/{encodeURIComponent(selected.slug)}"
>{t('public.graphView.readPost')}</a
>
<a class="btn btn-accent" href="/posts/{encodeURIComponent(selected.slug)}">
{t('public.graphView.readPost')}
</a>
<h3>{t('public.graphView.connected', { n: related.length })}</h3>
<ul class="graph-related">
{#each related as node (node.slug)}
Expand Down Expand Up @@ -201,8 +207,9 @@
type="button"
onclick={() => selectNode(node.slug)}
aria-label={t('public.graphView.showConnectionsFor', { title: node.title })}
>{t('public.graphView.connections')}</button
>
{t('public.graphView.connections')}
</button>
</li>
{:else}
<li role="status">{t('public.graphView.noMatch', { query })}</li>
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/lib/components/ImagePreview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@
>
<div class="btn-row">
<strong>{details?.filename ?? name}</strong>
<button class="btn" type="button" onclick={() => dialog.close()}
>{t('editor.preview.close')}</button
>
<button class="btn" type="button" onclick={() => dialog.close()}>
{t('editor.preview.close')}
</button>
</div>
<img src={url} alt={name} loading="lazy" onload={dimensions} />
<p class="field-help">
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/lib/components/LanguagePicker.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@
value={code}
lang={code}
aria-pressed={active === code}
aria-label={t('lang.switchTo', { name: LOCALE_NAMES[code] })}>{code}</button
aria-label={`${code} · ${t('lang.switchTo', { name: LOCALE_NAMES[code] })}`}
>
{code}
</button>
{/each}
</form>

Expand Down
Loading
Loading