vault-web contains the Web UI for Vault.
npm installLook 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-wasmnpm run devOpen http://localhost:5173 in your browser.
npm run tsc
# or npm run tsc-watchnpm run buildRun caddy:
caddy runfind src/assets -name '*.svg' | xargs -n1 scripts/optimize-svg.jsnpm update --saveWhen 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");
}