2024-03-17 14:21:45 +03:00
|
|
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
|
|
|
|
|
|
exports[`<ManageServersRowDropdown /> > renders expected size and icon 1`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="dropdown"
|
|
|
|
>
|
|
|
|
<button
|
|
|
|
aria-expanded="false"
|
|
|
|
aria-haspopup="true"
|
|
|
|
aria-label="Options"
|
|
|
|
class="dropdown-btn__toggle btn btn-primary btn-sm"
|
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
class="svg-inline--fa fa-ellipsis-vertical px-1"
|
|
|
|
data-icon="ellipsis-vertical"
|
|
|
|
data-prefix="fas"
|
|
|
|
focusable="false"
|
|
|
|
role="img"
|
|
|
|
viewBox="0 0 128 512"
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
>
|
|
|
|
<path
|
|
|
|
d="M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"
|
|
|
|
fill="currentColor"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</button>
|
|
|
|
<div
|
|
|
|
aria-hidden="true"
|
|
|
|
class="w-100 dropdown-menu dropdown-menu-end"
|
|
|
|
data-bs-popper="static"
|
|
|
|
role="menu"
|
|
|
|
style="min-width: 210px;"
|
|
|
|
tabindex="-1"
|
|
|
|
>
|
|
|
|
<a
|
|
|
|
class="dropdown-item"
|
|
|
|
href="/server/abc123"
|
|
|
|
role="menuitem"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
class="svg-inline--fa fa-plug fa-fw "
|
|
|
|
data-icon="plug"
|
|
|
|
data-prefix="fas"
|
|
|
|
focusable="false"
|
|
|
|
role="img"
|
|
|
|
viewBox="0 0 384 512"
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
>
|
|
|
|
<path
|
2024-07-20 11:12:02 +03:00
|
|
|
d="M96 0C78.3 0 64 14.3 64 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l0 32c0 77.4 55 142 128 156.8l0 67.2c0 17.7 14.3 32 32 32s32-14.3 32-32l0-67.2C297 398 352 333.4 352 256l0-32c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 160z"
|
2024-03-17 14:21:45 +03:00
|
|
|
fill="currentColor"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
Connect
|
|
|
|
</a>
|
|
|
|
<a
|
|
|
|
class="dropdown-item"
|
|
|
|
href="/server/abc123/edit"
|
|
|
|
role="menuitem"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
class="svg-inline--fa fa-pen-to-square fa-fw "
|
|
|
|
data-icon="pen-to-square"
|
|
|
|
data-prefix="fas"
|
|
|
|
focusable="false"
|
|
|
|
role="img"
|
|
|
|
viewBox="0 0 512 512"
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
>
|
|
|
|
<path
|
2024-07-20 11:12:02 +03:00
|
|
|
d="M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"
|
2024-03-17 14:21:45 +03:00
|
|
|
fill="currentColor"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
Edit server
|
|
|
|
</a>
|
|
|
|
<button
|
|
|
|
class="dropdown-item"
|
|
|
|
role="menuitem"
|
|
|
|
tabindex="0"
|
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
class="svg-inline--fa fa-ban fa-fw "
|
|
|
|
data-icon="ban"
|
|
|
|
data-prefix="fas"
|
|
|
|
focusable="false"
|
|
|
|
role="img"
|
|
|
|
viewBox="0 0 512 512"
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
>
|
|
|
|
<path
|
|
|
|
d="M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"
|
|
|
|
fill="currentColor"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
|
|
|
|
Do not a
|
|
|
|
uto-connect
|
|
|
|
</button>
|
|
|
|
<hr
|
|
|
|
class="dropdown-divider"
|
|
|
|
tabindex="-1"
|
|
|
|
/>
|
|
|
|
<button
|
|
|
|
class="dropdown-item--danger dropdown-item"
|
|
|
|
role="menuitem"
|
|
|
|
tabindex="0"
|
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
class="svg-inline--fa fa-circle-minus fa-fw "
|
|
|
|
data-icon="circle-minus"
|
|
|
|
data-prefix="fas"
|
|
|
|
focusable="false"
|
|
|
|
role="img"
|
|
|
|
viewBox="0 0 512 512"
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
>
|
|
|
|
<path
|
2024-07-20 11:12:02 +03:00
|
|
|
d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM184 232l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"
|
2024-03-17 14:21:45 +03:00
|
|
|
fill="currentColor"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
Remove server
|
|
|
|
</button>
|
|
|
|
<span>
|
|
|
|
DeleteServerModal
|
|
|
|
[CLOSED]
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<ManageServersRowDropdown /> > renders expected size and icon 2`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="dropdown"
|
|
|
|
>
|
|
|
|
<button
|
|
|
|
aria-expanded="false"
|
|
|
|
aria-haspopup="true"
|
|
|
|
aria-label="Options"
|
|
|
|
class="dropdown-btn__toggle btn btn-primary btn-sm"
|
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
class="svg-inline--fa fa-ellipsis-vertical px-1"
|
|
|
|
data-icon="ellipsis-vertical"
|
|
|
|
data-prefix="fas"
|
|
|
|
focusable="false"
|
|
|
|
role="img"
|
|
|
|
viewBox="0 0 128 512"
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
>
|
|
|
|
<path
|
|
|
|
d="M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"
|
|
|
|
fill="currentColor"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</button>
|
|
|
|
<div
|
|
|
|
aria-hidden="true"
|
|
|
|
class="w-100 dropdown-menu dropdown-menu-end"
|
|
|
|
data-bs-popper="static"
|
|
|
|
role="menu"
|
|
|
|
style="min-width: 170px;"
|
|
|
|
tabindex="-1"
|
|
|
|
>
|
|
|
|
<a
|
|
|
|
class="dropdown-item"
|
|
|
|
href="/server/abc123"
|
|
|
|
role="menuitem"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
class="svg-inline--fa fa-plug fa-fw "
|
|
|
|
data-icon="plug"
|
|
|
|
data-prefix="fas"
|
|
|
|
focusable="false"
|
|
|
|
role="img"
|
|
|
|
viewBox="0 0 384 512"
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
>
|
|
|
|
<path
|
2024-07-20 11:12:02 +03:00
|
|
|
d="M96 0C78.3 0 64 14.3 64 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l0 32c0 77.4 55 142 128 156.8l0 67.2c0 17.7 14.3 32 32 32s32-14.3 32-32l0-67.2C297 398 352 333.4 352 256l0-32c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 160z"
|
2024-03-17 14:21:45 +03:00
|
|
|
fill="currentColor"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
Connect
|
|
|
|
</a>
|
|
|
|
<a
|
|
|
|
class="dropdown-item"
|
|
|
|
href="/server/abc123/edit"
|
|
|
|
role="menuitem"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
class="svg-inline--fa fa-pen-to-square fa-fw "
|
|
|
|
data-icon="pen-to-square"
|
|
|
|
data-prefix="fas"
|
|
|
|
focusable="false"
|
|
|
|
role="img"
|
|
|
|
viewBox="0 0 512 512"
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
>
|
|
|
|
<path
|
2024-07-20 11:12:02 +03:00
|
|
|
d="M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"
|
2024-03-17 14:21:45 +03:00
|
|
|
fill="currentColor"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
Edit server
|
|
|
|
</a>
|
|
|
|
<button
|
|
|
|
class="dropdown-item"
|
|
|
|
role="menuitem"
|
|
|
|
tabindex="0"
|
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
class="svg-inline--fa fa-circle fa-fw "
|
|
|
|
data-icon="circle"
|
|
|
|
data-prefix="far"
|
|
|
|
focusable="false"
|
|
|
|
role="img"
|
|
|
|
viewBox="0 0 512 512"
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
>
|
|
|
|
<path
|
|
|
|
d="M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"
|
|
|
|
fill="currentColor"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
|
|
|
|
A
|
|
|
|
uto-connect
|
|
|
|
</button>
|
|
|
|
<hr
|
|
|
|
class="dropdown-divider"
|
|
|
|
tabindex="-1"
|
|
|
|
/>
|
|
|
|
<button
|
|
|
|
class="dropdown-item--danger dropdown-item"
|
|
|
|
role="menuitem"
|
|
|
|
tabindex="0"
|
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
class="svg-inline--fa fa-circle-minus fa-fw "
|
|
|
|
data-icon="circle-minus"
|
|
|
|
data-prefix="fas"
|
|
|
|
focusable="false"
|
|
|
|
role="img"
|
|
|
|
viewBox="0 0 512 512"
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
>
|
|
|
|
<path
|
2024-07-20 11:12:02 +03:00
|
|
|
d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM184 232l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"
|
2024-03-17 14:21:45 +03:00
|
|
|
fill="currentColor"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
Remove server
|
|
|
|
</button>
|
|
|
|
<span>
|
|
|
|
DeleteServerModal
|
|
|
|
[CLOSED]
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|