1
0
mirror of https://github.com/pavlobu/deskreen.git synced 2025-05-27 21:00:08 -07:00
deskreen/app/components/__snapshots__/AllowConnectionForDeviceAlert.spec.tsx.snap
2020-09-24 19:06:07 +03:00

608 lines
25 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should match exact snapshot 1`] = `
<BrowserRouter>
<Router
history={
Object {
"action": "POP",
"block": [Function],
"createHref": [Function],
"go": [Function],
"goBack": [Function],
"goForward": [Function],
"length": 1,
"listen": [Function],
"location": Object {
"hash": "",
"pathname": "/",
"search": "",
"state": undefined,
},
"push": [Function],
"replace": [Function],
}
}
>
<AllowConnectionForDeviceAlert
device={Object {}}
isOpen={true}
onCancel={[Function]}
onConfirm={[Function]}
>
<Blueprint3.Alert
canEscapeKeyCancel={false}
canOutsideClickCancel={false}
cancelButtonText="Deny"
className="class-allow-device-to-connect-alert"
confirmButtonText="Allow"
icon="feed"
intent="danger"
isOpen={true}
onCancel={[Function]}
onConfirm={[Function]}
transitionDuration={0}
>
<Blueprint3.Dialog
canEscapeKeyClose={false}
canOutsideClickClose={false}
className="bp3-alert class-allow-device-to-connect-alert"
isOpen={true}
onCancel={[Function]}
onClose={[Function]}
onConfirm={[Function]}
transitionDuration={0}
>
<Blueprint3.Overlay
autoFocus={true}
backdropProps={Object {}}
canEscapeKeyClose={false}
canOutsideClickClose={false}
className="bp3-overlay-scroll-container"
enforceFocus={true}
hasBackdrop={true}
isOpen={true}
lazy={true}
onCancel={[Function]}
onClose={[Function]}
onConfirm={[Function]}
transitionDuration={0}
transitionName="bp3-overlay"
usePortal={true}
>
<Blueprint3.Portal
container={
<body
class="bp3-overlay-open"
>
<div
class="bp3-portal"
>
<div
class="bp3-overlay bp3-overlay-open bp3-overlay-scroll-container"
>
<div
class="bp3-overlay-backdrop bp3-overlay-appear bp3-overlay-appear-active"
/>
<div
class="bp3-dialog-container bp3-overlay-content bp3-overlay-appear bp3-overlay-appear-active"
tabindex="0"
>
<div
class="bp3-dialog bp3-alert class-allow-device-to-connect-alert"
>
<div
class="bp3-alert-body"
>
<span
class="bp3-icon bp3-icon-feed bp3-intent-danger"
icon="feed"
>
<svg
data-icon="feed"
height="40"
viewBox="0 0 20 20"
width="40"
>
<desc>
feed
</desc>
<path
d="M2.5 15a2.5 2.5 0 000 5 2.5 2.5 0 000-5zm.5-5c-.55 0-1 .45-1 1s.45 1 1 1c2.76 0 5 2.24 5 5 0 .55.45 1 1 1s1-.45 1-1c0-3.87-3.13-7-7-7zM3 0c-.55 0-1 .45-1 1s.45 1 1 1c8.28 0 15 6.72 15 15 0 .55.45 1 1 1s1-.45 1-1C20 7.61 12.39 0 3 0zm0 5c-.55 0-1 .45-1 1s.45 1 1 1c5.52 0 10 4.48 10 10 0 .55.45 1 1 1s1-.45 1-1C15 10.37 9.63 5 3 5z"
fill-rule="evenodd"
/>
</svg>
</span>
<div
class="bp3-alert-contents"
>
<h3
class="bp3-heading"
>
Device is trying to connect
</h3>
<div
class="row"
>
<div
class=""
>
<div
class=""
>
Device IP:
</div>
<span
id="allow-connection-device-alert-device-ip-span"
/>
</div>
</div>
<div
class="row"
>
<div
class=""
>
<div
class=""
>
Device Type: undefined
</div>
</div>
</div>
<div
class="row"
>
<div
class=""
>
<div
class=""
>
Device OS: undefined
</div>
</div>
</div>
<div
class="row"
>
<div
class=""
>
<div
class=""
>
session ID: undefined
</div>
</div>
</div>
</div>
</div>
<div
class="bp3-alert-footer"
>
<button
class="bp3-button bp3-intent-danger"
type="button"
>
<span
class="bp3-button-text"
>
Allow
</span>
</button>
<button
class="bp3-button"
type="button"
>
<span
class="bp3-button-text"
>
Deny
</span>
</button>
</div>
</div>
</div>
</div>
</div>
</body>
}
>
<Portal
containerInfo={
<div
class="bp3-portal"
>
<div
class="bp3-overlay bp3-overlay-open bp3-overlay-scroll-container"
>
<div
class="bp3-overlay-backdrop bp3-overlay-appear bp3-overlay-appear-active"
/>
<div
class="bp3-dialog-container bp3-overlay-content bp3-overlay-appear bp3-overlay-appear-active"
tabindex="0"
>
<div
class="bp3-dialog bp3-alert class-allow-device-to-connect-alert"
>
<div
class="bp3-alert-body"
>
<span
class="bp3-icon bp3-icon-feed bp3-intent-danger"
icon="feed"
>
<svg
data-icon="feed"
height="40"
viewBox="0 0 20 20"
width="40"
>
<desc>
feed
</desc>
<path
d="M2.5 15a2.5 2.5 0 000 5 2.5 2.5 0 000-5zm.5-5c-.55 0-1 .45-1 1s.45 1 1 1c2.76 0 5 2.24 5 5 0 .55.45 1 1 1s1-.45 1-1c0-3.87-3.13-7-7-7zM3 0c-.55 0-1 .45-1 1s.45 1 1 1c8.28 0 15 6.72 15 15 0 .55.45 1 1 1s1-.45 1-1C20 7.61 12.39 0 3 0zm0 5c-.55 0-1 .45-1 1s.45 1 1 1c5.52 0 10 4.48 10 10 0 .55.45 1 1 1s1-.45 1-1C15 10.37 9.63 5 3 5z"
fill-rule="evenodd"
/>
</svg>
</span>
<div
class="bp3-alert-contents"
>
<h3
class="bp3-heading"
>
Device is trying to connect
</h3>
<div
class="row"
>
<div
class=""
>
<div
class=""
>
Device IP:
</div>
<span
id="allow-connection-device-alert-device-ip-span"
/>
</div>
</div>
<div
class="row"
>
<div
class=""
>
<div
class=""
>
Device Type: undefined
</div>
</div>
</div>
<div
class="row"
>
<div
class=""
>
<div
class=""
>
Device OS: undefined
</div>
</div>
</div>
<div
class="row"
>
<div
class=""
>
<div
class=""
>
session ID: undefined
</div>
</div>
</div>
</div>
</div>
<div
class="bp3-alert-footer"
>
<button
class="bp3-button bp3-intent-danger"
type="button"
>
<span
class="bp3-button-text"
>
Allow
</span>
</button>
<button
class="bp3-button"
type="button"
>
<span
class="bp3-button-text"
>
Deny
</span>
</button>
</div>
</div>
</div>
</div>
</div>
}
>
<TransitionGroup
appear={true}
childFactory={[Function]}
className="bp3-overlay bp3-overlay-open bp3-overlay-scroll-container"
component="div"
onKeyDown={[Function]}
>
<div
className="bp3-overlay bp3-overlay-open bp3-overlay-scroll-container"
onKeyDown={[Function]}
>
<CSSTransition
appear={true}
classNames="bp3-overlay"
in={true}
key=".$__backdrop"
onExited={[Function]}
timeout={0}
>
<Transition
appear={true}
enter={true}
exit={true}
in={true}
mountOnEnter={false}
onEnter={[Function]}
onEntered={[Function]}
onEntering={[Function]}
onExit={[Function]}
onExited={[Function]}
onExiting={[Function]}
timeout={0}
unmountOnExit={false}
>
<div
className="bp3-overlay-backdrop"
onMouseDown={[Function]}
tabIndex={null}
/>
</Transition>
</CSSTransition>
<CSSTransition
appear={true}
classNames="bp3-overlay"
in={true}
key=".$.0"
onExited={[Function]}
timeout={0}
>
<Transition
appear={true}
enter={true}
exit={true}
in={true}
mountOnEnter={false}
onEnter={[Function]}
onEntered={[Function]}
onEntering={[Function]}
onExit={[Function]}
onExited={[Function]}
onExiting={[Function]}
timeout={0}
unmountOnExit={false}
>
<div
className="bp3-dialog-container bp3-overlay-content"
tabIndex={0}
>
<div
className="bp3-dialog bp3-alert class-allow-device-to-connect-alert"
>
<div
className="bp3-alert-body"
>
<Blueprint3.Icon
icon="feed"
iconSize={40}
intent="danger"
>
<span
className="bp3-icon bp3-icon-feed bp3-intent-danger"
icon="feed"
>
<svg
data-icon="feed"
height={40}
viewBox="0 0 20 20"
width={40}
>
<desc>
feed
</desc>
<path
d="M2.5 15a2.5 2.5 0 000 5 2.5 2.5 0 000-5zm.5-5c-.55 0-1 .45-1 1s.45 1 1 1c2.76 0 5 2.24 5 5 0 .55.45 1 1 1s1-.45 1-1c0-3.87-3.13-7-7-7zM3 0c-.55 0-1 .45-1 1s.45 1 1 1c8.28 0 15 6.72 15 15 0 .55.45 1 1 1s1-.45 1-1C20 7.61 12.39 0 3 0zm0 5c-.55 0-1 .45-1 1s.45 1 1 1c5.52 0 10 4.48 10 10 0 .55.45 1 1 1s1-.45 1-1C15 10.37 9.63 5 3 5z"
fillRule="evenodd"
key="0"
/>
</svg>
</span>
</Blueprint3.Icon>
<div
className="bp3-alert-contents"
>
<Component>
<h3
className="bp3-heading"
>
Device is trying to connect
</h3>
</Component>
<Row>
<div
className="row"
>
<Col>
<div
className=""
>
<Blueprint3.Text>
<div
className=""
>
Device IP:
</div>
</Blueprint3.Text>
<span
id="allow-connection-device-alert-device-ip-span"
/>
</div>
</Col>
</div>
</Row>
<Row>
<div
className="row"
>
<Col>
<div
className=""
>
<Blueprint3.Text>
<div
className=""
>
Device Type: undefined
</div>
</Blueprint3.Text>
</div>
</Col>
</div>
</Row>
<Row>
<div
className="row"
>
<Col>
<div
className=""
>
<Blueprint3.Text>
<div
className=""
>
Device OS: undefined
</div>
</Blueprint3.Text>
</div>
</Col>
</div>
</Row>
<Row>
<div
className="row"
>
<Col>
<div
className=""
>
<Blueprint3.Text>
<div
className=""
>
session ID: undefined
</div>
</Blueprint3.Text>
</div>
</Col>
</div>
</Row>
</div>
</div>
<div
className="bp3-alert-footer"
>
<Blueprint3.Button
intent="danger"
onClick={[Function]}
text="Allow"
>
<button
className="bp3-button bp3-intent-danger"
onClick={[Function]}
onKeyDown={[Function]}
onKeyUp={[Function]}
type="button"
>
<Blueprint3.Icon
key="leftIcon"
/>
<span
className="bp3-button-text"
key="text"
>
Allow
</span>
<Blueprint3.Icon
key="rightIcon"
/>
</button>
</Blueprint3.Button>
<Blueprint3.Button
onClick={[Function]}
text="Deny"
>
<button
className="bp3-button"
onClick={[Function]}
onKeyDown={[Function]}
onKeyUp={[Function]}
type="button"
>
<Blueprint3.Icon
key="leftIcon"
/>
<span
className="bp3-button-text"
key="text"
>
Deny
</span>
<Blueprint3.Icon
key="rightIcon"
/>
</button>
</Blueprint3.Button>
</div>
</div>
</div>
</Transition>
</CSSTransition>
</div>
</TransitionGroup>
</Portal>
</Blueprint3.Portal>
</Blueprint3.Overlay>
</Blueprint3.Dialog>
</Blueprint3.Alert>
</AllowConnectionForDeviceAlert>
</Router>
</BrowserRouter>
`;