|
|
|
@ -21,7 +21,7 @@
|
|
|
|
|
['id' => "description", 'name' => "Description"],
|
|
|
|
|
['id' => "users", 'name' => "Users"],
|
|
|
|
|
['id' => "preview", 'name' => "Preview"],
|
|
|
|
|
['id' => "qr", 'name' => "QR"],
|
|
|
|
|
['id' => "qr_code", 'name' => "QR"],
|
|
|
|
|
['id' => "server_icon", 'name' => "Server"],
|
|
|
|
|
['id' => "join_url", 'name' => "Join URL"],
|
|
|
|
|
];
|
|
|
|
@ -45,8 +45,8 @@
|
|
|
|
|
// However, the fetching code hides component data
|
|
|
|
|
// and this is a low risk use case.
|
|
|
|
|
|
|
|
|
|
$token = explode("=", $room->join_link)[1];
|
|
|
|
|
$icon_hue = hexdec($token[2] . $token[2]);
|
|
|
|
|
$pubkey = explode("=", $room->join_link)[1];
|
|
|
|
|
$icon_hue = hexdec($pubkey[2] . $pubkey[2]);
|
|
|
|
|
$icon_color = "hsl($icon_hue, 80%, 50%)";
|
|
|
|
|
|
|
|
|
|
$hostname = explode("//", $room->join_link)[1];
|
|
|
|
@ -79,11 +79,11 @@
|
|
|
|
|
>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="td_server_icon"
|
|
|
|
|
data-token="<?=$token?>"
|
|
|
|
|
title="<?=$hostname?> (<?=$token?>)"
|
|
|
|
|
data-pubkey="<?=$pubkey?>"
|
|
|
|
|
title="<?=$hostname?> (<?=$pubkey?>)"
|
|
|
|
|
>
|
|
|
|
|
<div class="td_server_icon-circle" style="background-color: <?=$icon_color?>">
|
|
|
|
|
<span><?=strtoupper($token[0] . $token[1])?></span>
|
|
|
|
|
<span><?=strtoupper($pubkey[0] . $pubkey[1])?></span>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="td_join_url">
|
|
|
|
|