diff --git a/src/components/workspace/app-namespace.tsx b/src/components/workspace/app-namespace.tsx index 1184b98..6bf50ba 100644 --- a/src/components/workspace/app-namespace.tsx +++ b/src/components/workspace/app-namespace.tsx @@ -1,4 +1,14 @@ -import { Card, CardContent, CardHeader, Divider, TextField, IconButton, Typography } from '@suid/material' +import { + Card, + CardContent, + CardHeader, + Divider, + TextField, + IconButton, + Typography, + Backdrop, + Button, +} from '@suid/material' import { ExpandLess as ExpandLessIcon, ExpandMore as ExpandMoreIcon, @@ -24,6 +34,7 @@ export default function AppNamespace(props: { const [edited, setEdited] = createSignal(false) //open or close video stream const [isPopupOpen, setPopupOpen] = createSignal(false) + const [taQrOpen, setTaQrOpen] = createSignal(false) // const readyToImport = () => !readOnly() && nameStr().length === 0 @@ -137,7 +148,14 @@ export default function AppNamespace(props: { -
+
onChange(event.target.value)} /> -
+ + theme.zIndex.drawer + 1 }} + open={taQrOpen()} + onClick={() => setTaQrOpen(false)} + > -
+
diff --git a/src/components/workspace/boot-safebag.tsx b/src/components/workspace/boot-safebag.tsx index 735886c..67017d7 100644 --- a/src/components/workspace/boot-safebag.tsx +++ b/src/components/workspace/boot-safebag.tsx @@ -1,10 +1,21 @@ -import { Card, CardContent, CardHeader, Divider, TextField, Stack, IconButton, Typography } from '@suid/material' +import { + Card, + CardContent, + CardHeader, + Divider, + TextField, + IconButton, + Typography, + Button, + Backdrop, +} from '@suid/material' import { ExpandLess as ExpandLessIcon, ExpandMore as ExpandMoreIcon } from '@suid/icons-material' import { Match, Show, Switch, createEffect, createSignal } from 'solid-js' import { base64ToBytes } from '../../utils' import { Decoder } from '@ndn/tlv' import { SafeBag } from '@ndn/ndnsec' import { Certificate } from '@ndn/keychain' +import CertQrCode from './qr-gen' export default function BootSafebag(props: { setCertificate: (value: Certificate | undefined) => void @@ -18,6 +29,7 @@ export default function BootSafebag(props: { const [errorText, setErrorText] = createSignal('') const [pwdErrorText, setPwdErrorText] = createSignal('') const [safeBag, setSafeBag] = createSignal() + const [sbagQrOpen, setSbagQrOpen] = createSignal(false) // Disable when bootstrapping const readOnly = () => props.inProgress @@ -111,7 +123,14 @@ export default function BootSafebag(props: { - +
setSafebagText(event.target.value)} /> - + + theme.zIndex.drawer + 1 }} + open={sbagQrOpen()} + onClick={() => setSbagQrOpen(false)} + > + + +
diff --git a/src/components/workspace/own-certificate.tsx b/src/components/workspace/own-certificate.tsx index 370ff6a..5fdb010 100644 --- a/src/components/workspace/own-certificate.tsx +++ b/src/components/workspace/own-certificate.tsx @@ -1,4 +1,14 @@ -import { Card, CardContent, CardHeader, Divider, TextField, IconButton, Typography } from '@suid/material' +import { + Card, + CardContent, + CardHeader, + Divider, + TextField, + IconButton, + Typography, + Button, + Backdrop, +} from '@suid/material' import { ExpandLess as ExpandLessIcon, ExpandMore as ExpandMoreIcon } from '@suid/icons-material' import { Show, createEffect, createSignal } from 'solid-js' import { bytesToBase64 } from '../../utils' @@ -10,6 +20,7 @@ export default function OwnCertificate(props: { certificate: Certificate | undef const [expanded, setExpanded] = createSignal(true) const [nameStr, setNameStr] = createSignal('') const [certText, setCertText] = createSignal('') + const [certQrOpen, setCertQrOpen] = createSignal(false) createEffect(() => { const cert = props.certificate @@ -54,7 +65,7 @@ export default function OwnCertificate(props: { certificate: Certificate | undef -
+
-
+ + theme.zIndex.drawer + 1 }} + open={certQrOpen()} + onClick={() => setCertQrOpen(false)} + > -
+