vault-web
contains the Web UI for Vault.
npm install
Look at the README.md
in ../vault-wasm
.
cd ../vault-wasm
wasm-pack build --target web --out-dir ../vault-web/src/vault-wasm --out-name vault-wasm
vite
Open http://localhost:5173 in your browser.
tsc --watch
# or tsc --watch
vite build
Run caddy:
caddy run
find src/assets -name '*.svg' | xargs -n1 scripts/optimize-svg.js
npm update --save
When upgrading pdf.js you have to patch file origin check for the desktop app.
Search for file origin does not match viewer
.
if (
fileOrigin !== viewerOrigin &&
!/^https?:\/\/127.0.0.1$|^https?:\/\/127.0.0.1:|^https?:\/\/localhost$|^https?:\/\/localhost:/.test(
fileOrigin
)
) {
throw new Error("file origin does not match viewer's");
}