fix: harden the vault before release
Require a private passphrase and loopback-or-token admin auth. New vaults use Argon2id; existing PBKDF2 vaults still open, and new snapshot metadata is encrypted. Wormhole tokens survive restart, offset uploads seal into the vault, and client-certificate uploads are real. Reject the command provider and keep Postgres passwords off the process arguments. Keep the interruptible canvas motion.
This commit is contained in:
25
web/src/components/ui/SpringPane.tsx
Normal file
25
web/src/components/ui/SpringPane.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import { motion, useIsPresent } from "motion/react";
|
||||
import type { ReactNode } from "react";
|
||||
import { useReducedMotion } from "../../hooks/useReducedMotion";
|
||||
|
||||
export function SpringPane({ active = true, children }: { active?: boolean; children: ReactNode }) {
|
||||
const present = useIsPresent();
|
||||
const reducedMotion = useReducedMotion();
|
||||
const visible = active && present;
|
||||
const offset = reducedMotion ? 0 : 8;
|
||||
|
||||
return (
|
||||
<motion.div
|
||||
className="spring-pane"
|
||||
aria-hidden={!visible}
|
||||
inert={!visible}
|
||||
initial={active && !reducedMotion ? { opacity: 0, y: offset } : false}
|
||||
animate={active
|
||||
? { opacity: 1, y: 0, visibility: "visible" }
|
||||
: { opacity: 0, y: offset, transitionEnd: { visibility: "hidden" } }}
|
||||
exit={{ opacity: 0, y: offset }}
|
||||
>
|
||||
{children}
|
||||
</motion.div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user