Skip to content
Open
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
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "postguard-website",
"version": "1.7.0",
"private": true,
"engines": {
"node": ">=20"
},
"scripts": {
"dev": "vite dev",
"build": "vite build",
Expand Down
6 changes: 6 additions & 0 deletions src/lib/components/filesharing/SendButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,12 @@
let buttonRef: HTMLButtonElement | null = $state(null)
let dialogRef: HTMLDialogElement | null = $state(null)

// Computed here as a script-level $derived rather than inline in the template
// via {@const} to dodge an upstream prettier-plugin-svelte crash on ternaries
// with a BinaryExpression test inside {@const}
// (https://github.com/sveltejs/prettier-plugin-svelte/issues/528). The pinned
// ^4.0.1 already includes the #528 fix, so this can move back inline as a
// {@const} ternary once verified with `prettier --check` on 4.0.1.
let totalProgress = $derived(
encryptState.percentages.length > 0
? Math.round(
Expand Down