mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-19 22:01:49 +03:00
1c215e2b71
* extract location markers into generic Marker Signed-off-by: Kerry Archibald <kerrya@element.io> * wrap marker in smartmarker Signed-off-by: Kerry Archibald <kerrya@element.io> * test smartmarker Signed-off-by: Kerry Archibald <kerrya@element.io> * working map in location body Signed-off-by: Kerry Archibald <kerrya@element.io> * remove skinned sdk Signed-off-by: Kerry Archibald <kerrya@element.io> * use new ZoomButtons in MLocationBody Signed-off-by: Kerry Archibald <kerrya@element.io> * test LocationViewDialog Signed-off-by: Kerry Archibald <kerrya@element.io> * update commentt Signed-off-by: Kerry Archibald <kerrya@element.io> * lint Signed-off-by: Kerry Archibald <kerrya@element.io> * lint Signed-off-by: Kerry Archibald <kerrya@element.io> * extract livetimeremaining into own component Signed-off-by: Kerry Archibald <kerrya@element.io> * extract more beacon state utils Signed-off-by: Kerry Archibald <kerrya@element.io> * update tests for roomlivesharewarning Signed-off-by: Kerry Archibald <kerrya@element.io> * add beacon map and status chin Signed-off-by: Kerry Archibald <kerrya@element.io> * add handling for bubbles Signed-off-by: Kerry Archibald <kerrya@element.io> * tests for BeaconBody Signed-off-by: Kerry Archibald <kerrya@element.io> * move displaystatus check up to mbeaconbody Signed-off-by: Kerry Archibald <kerrya@element.io> * test BeaconStatus Signed-off-by: Kerry Archibald <kerrya@element.io> * rename BeaconStatusChin -> BeaconStatus Signed-off-by: Kerry Archibald <kerrya@element.io> * make BeaconStatus generic Signed-off-by: Kerry Archibald <kerrya@element.io> * lint Signed-off-by: Kerry Archibald <kerrya@element.io> * adjust spinner size Signed-off-by: Kerry Archibald <kerrya@element.io> * lint Signed-off-by: Kerry Archibald <kerrya@element.io> * add static time remaining option to beacon status Signed-off-by: Kerry Archibald <kerrya@element.io> * render time differently for own beacon Signed-off-by: Kerry Archibald <kerrya@element.io> * use children to add actions to BeaconStatus Signed-off-by: Kerry Archibald <kerrya@element.io> * add OwnBeaconStatus wrapper with stop button Signed-off-by: Kerry Archibald <kerrya@element.io> * add error states for own beacon Signed-off-by: Kerry Archibald <kerrya@element.io> * test OwnBeaconStatus Signed-off-by: Kerry Archibald <kerrya@element.io> * move ownbeaconstatus to write dir Signed-off-by: Kerry Archibald <kerrya@element.io> * improve button styling Signed-off-by: Kerry Archibald <kerrya@element.io> * i18n Signed-off-by: Kerry Archibald <kerrya@element.io> * lint Signed-off-by: Kerry Archibald <kerrya@element.io>
167 lines
4.3 KiB
Text
167 lines
4.3 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`<BeaconStatus /> active state renders with children 1`] = `null`;
|
|
|
|
exports[`<BeaconStatus /> active state renders without children 1`] = `
|
|
<BeaconStatus
|
|
beacon={
|
|
Beacon {
|
|
"_beaconInfo": Object {
|
|
"assetType": "m.self",
|
|
"description": undefined,
|
|
"live": undefined,
|
|
"timeout": 3600000,
|
|
"timestamp": 123456789,
|
|
},
|
|
"_events": Object {},
|
|
"_eventsCount": 0,
|
|
"_isLive": undefined,
|
|
"_latestLocationState": undefined,
|
|
"_maxListeners": undefined,
|
|
"clearLatestLocation": [Function],
|
|
"livenessWatchInterval": undefined,
|
|
"roomId": "!room:server",
|
|
"rootEvent": Object {
|
|
"content": Object {
|
|
"description": undefined,
|
|
"live": undefined,
|
|
"org.matrix.msc3488.asset": Object {
|
|
"type": "m.self",
|
|
},
|
|
"org.matrix.msc3488.ts": 123456789,
|
|
"timeout": 3600000,
|
|
},
|
|
"event_id": "$1",
|
|
"origin_server_ts": 123456789,
|
|
"room_id": "!room:server",
|
|
"sender": "@user:server",
|
|
"state_key": "@user:server",
|
|
"type": "org.matrix.msc3672.beacon_info",
|
|
},
|
|
Symbol(kCapture): false,
|
|
}
|
|
}
|
|
displayStatus="Active"
|
|
label="test label"
|
|
>
|
|
<div
|
|
className="mx_BeaconStatus mx_BeaconStatus_Active"
|
|
>
|
|
<StyledLiveBeaconIcon
|
|
className="mx_BeaconStatus_icon"
|
|
isIdle={false}
|
|
withError={false}
|
|
>
|
|
<div
|
|
className="mx_StyledLiveBeaconIcon mx_BeaconStatus_icon"
|
|
/>
|
|
</StyledLiveBeaconIcon>
|
|
<div
|
|
className="mx_BeaconStatus_description"
|
|
>
|
|
test label
|
|
<BeaconExpiryTime
|
|
beacon={
|
|
Beacon {
|
|
"_beaconInfo": Object {
|
|
"assetType": "m.self",
|
|
"description": undefined,
|
|
"live": undefined,
|
|
"timeout": 3600000,
|
|
"timestamp": 123456789,
|
|
},
|
|
"_events": Object {},
|
|
"_eventsCount": 0,
|
|
"_isLive": undefined,
|
|
"_latestLocationState": undefined,
|
|
"_maxListeners": undefined,
|
|
"clearLatestLocation": [Function],
|
|
"livenessWatchInterval": undefined,
|
|
"roomId": "!room:server",
|
|
"rootEvent": Object {
|
|
"content": Object {
|
|
"description": undefined,
|
|
"live": undefined,
|
|
"org.matrix.msc3488.asset": Object {
|
|
"type": "m.self",
|
|
},
|
|
"org.matrix.msc3488.ts": 123456789,
|
|
"timeout": 3600000,
|
|
},
|
|
"event_id": "$1",
|
|
"origin_server_ts": 123456789,
|
|
"room_id": "!room:server",
|
|
"sender": "@user:server",
|
|
"state_key": "@user:server",
|
|
"type": "org.matrix.msc3672.beacon_info",
|
|
},
|
|
Symbol(kCapture): false,
|
|
}
|
|
}
|
|
>
|
|
<span
|
|
className="mx_BeaconStatus_expiryTime"
|
|
>
|
|
Live until 11:17
|
|
</span>
|
|
</BeaconExpiryTime>
|
|
</div>
|
|
</div>
|
|
</BeaconStatus>
|
|
`;
|
|
|
|
exports[`<BeaconStatus /> renders loading state 1`] = `
|
|
<BeaconStatus
|
|
displayStatus="Loading"
|
|
label="test label"
|
|
>
|
|
<div
|
|
className="mx_BeaconStatus mx_BeaconStatus_Loading"
|
|
>
|
|
<StyledLiveBeaconIcon
|
|
className="mx_BeaconStatus_icon"
|
|
isIdle={true}
|
|
withError={false}
|
|
>
|
|
<div
|
|
className="mx_StyledLiveBeaconIcon mx_BeaconStatus_icon mx_StyledLiveBeaconIcon_idle"
|
|
/>
|
|
</StyledLiveBeaconIcon>
|
|
<div
|
|
className="mx_BeaconStatus_description"
|
|
>
|
|
<span>
|
|
Loading live location...
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</BeaconStatus>
|
|
`;
|
|
|
|
exports[`<BeaconStatus /> renders stopped state 1`] = `
|
|
<BeaconStatus
|
|
displayStatus="Stopped"
|
|
label="test label"
|
|
>
|
|
<div
|
|
className="mx_BeaconStatus mx_BeaconStatus_Stopped"
|
|
>
|
|
<StyledLiveBeaconIcon
|
|
className="mx_BeaconStatus_icon"
|
|
isIdle={true}
|
|
withError={false}
|
|
>
|
|
<div
|
|
className="mx_StyledLiveBeaconIcon mx_BeaconStatus_icon mx_StyledLiveBeaconIcon_idle"
|
|
/>
|
|
</StyledLiveBeaconIcon>
|
|
<div
|
|
className="mx_BeaconStatus_description"
|
|
>
|
|
<span>
|
|
Live location ended
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</BeaconStatus>
|
|
`;
|