Compare commits
10 Commits
72a74334e7
...
7f904fdcd5
| Author | SHA1 | Date | |
|---|---|---|---|
|
7f904fdcd5
|
|||
|
956da024c3
|
|||
|
f11b442ece
|
|||
|
f54d974745
|
|||
|
54eec657a5
|
|||
|
1900bf46cc
|
|||
|
c5771dc371
|
|||
|
de9240e6e0
|
|||
|
b1656cdfa9
|
|||
|
563de5aa19
|
@@ -6,12 +6,13 @@ import selectors
|
|||||||
import socket
|
import socket
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
|
import yaml
|
||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from judas_protocol import Category, ControlAction, Message
|
from judas_protocol import Category, ControlAction, Message
|
||||||
|
|
||||||
from judas_server.backend.client import Client
|
from judas_server.backend.client import Client, ClientStatus
|
||||||
|
|
||||||
|
|
||||||
class BackendServer:
|
class BackendServer:
|
||||||
@@ -27,6 +28,27 @@ class BackendServer:
|
|||||||
)
|
)
|
||||||
self.logger.debug("Initializing Server...")
|
self.logger.debug("Initializing Server...")
|
||||||
|
|
||||||
|
self.known_clients: dict[str, dict[str, str | float]] = {}
|
||||||
|
try:
|
||||||
|
with open("cache/known_clients.yaml", "r") as f:
|
||||||
|
self.known_clients = (
|
||||||
|
yaml.safe_load(f).get("known_clients", {}) or {}
|
||||||
|
)
|
||||||
|
self.logger.debug(
|
||||||
|
f"Loaded known clients: {self.known_clients}"
|
||||||
|
)
|
||||||
|
self.logger.info(
|
||||||
|
f"Loaded {len(self.known_clients)} known clients"
|
||||||
|
)
|
||||||
|
except FileNotFoundError:
|
||||||
|
self.logger.warning(
|
||||||
|
"known_clients.yaml not found, creating empty known clients list"
|
||||||
|
)
|
||||||
|
with open("cache/known_clients.yaml", "w") as f:
|
||||||
|
yaml.safe_dump({"known_clients": {}}, f)
|
||||||
|
except Exception as e:
|
||||||
|
self.logger.error(f"Error loading known clients: {e}")
|
||||||
|
|
||||||
self.selector = selectors.DefaultSelector()
|
self.selector = selectors.DefaultSelector()
|
||||||
self.server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
self.server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
self.server_socket.setsockopt(
|
self.server_socket.setsockopt(
|
||||||
@@ -41,8 +63,23 @@ class BackendServer:
|
|||||||
|
|
||||||
self.clients: dict[str, Client] = {}
|
self.clients: dict[str, Client] = {}
|
||||||
|
|
||||||
|
if self.known_clients:
|
||||||
|
for client_id in self.known_clients:
|
||||||
|
client = Client(id=client_id, addr=None, socket=None)
|
||||||
|
client.status = ClientStatus.OFFLINE
|
||||||
|
client.last_seen = float(
|
||||||
|
self.known_clients[client_id].get("last_seen", 0.0)
|
||||||
|
)
|
||||||
|
self.clients[client_id] = client
|
||||||
|
|
||||||
self.running: bool = False
|
self.running: bool = False
|
||||||
|
|
||||||
|
def _save_known_clients(self) -> None:
|
||||||
|
"""Save the list of known clients to a YAML file."""
|
||||||
|
with open("cache/known_clients.yaml", "w") as f:
|
||||||
|
yaml.safe_dump({"known_clients": self.known_clients}, f)
|
||||||
|
self.logger.debug("Saved known clients")
|
||||||
|
|
||||||
def _bind_socket(self, host: str, port: int) -> None:
|
def _bind_socket(self, host: str, port: int) -> None:
|
||||||
"""Bind the server socket to the specified host and port.
|
"""Bind the server socket to the specified host and port.
|
||||||
|
|
||||||
@@ -113,6 +150,7 @@ class BackendServer:
|
|||||||
self.logger.error(f"Error unregistering client {client}: {e}")
|
self.logger.error(f"Error unregistering client {client}: {e}")
|
||||||
|
|
||||||
client.disconnect()
|
client.disconnect()
|
||||||
|
self._save_known_clients()
|
||||||
|
|
||||||
def _send_outbound(self, sock: socket.socket, client: Client) -> None:
|
def _send_outbound(self, sock: socket.socket, client: Client) -> None:
|
||||||
"""Queue data to be sent to a client.
|
"""Queue data to be sent to a client.
|
||||||
@@ -194,9 +232,14 @@ class BackendServer:
|
|||||||
f"Client {client.id} is already connected from {old_client.addr}, disconnecting old client..."
|
f"Client {client.id} is already connected from {old_client.addr}, disconnecting old client..."
|
||||||
)
|
)
|
||||||
self.send_close(old_client)
|
self.send_close(old_client)
|
||||||
# self._disconnect(old_client)
|
|
||||||
# TODO: tell client not to reconnect
|
|
||||||
self.clients[client.id] = client
|
self.clients[client.id] = client
|
||||||
|
self.known_clients[client.id] = {
|
||||||
|
"last_seen": client.last_seen
|
||||||
|
}
|
||||||
|
self._save_known_clients()
|
||||||
|
client.status = ClientStatus.ONLINE
|
||||||
|
|
||||||
self.logger.info(f"[+] Registered new client {client}")
|
self.logger.info(f"[+] Registered new client {client}")
|
||||||
else:
|
else:
|
||||||
self.logger.error(
|
self.logger.error(
|
||||||
@@ -250,6 +293,15 @@ class BackendServer:
|
|||||||
self._accept_connection(key.fileobj) # type: ignore
|
self._accept_connection(key.fileobj) # type: ignore
|
||||||
else:
|
else:
|
||||||
self._handle_connection(key, mask)
|
self._handle_connection(key, mask)
|
||||||
|
|
||||||
|
# update client statuses
|
||||||
|
now = time.time()
|
||||||
|
for client in self.clients.values():
|
||||||
|
if (
|
||||||
|
client.status == ClientStatus.OFFLINE
|
||||||
|
and now - client.last_seen > 60 * 60 * 24 # 24 hours
|
||||||
|
):
|
||||||
|
self.clients[client.id].status = ClientStatus.STALE
|
||||||
time.sleep(0.001) # prevent 100% CPU usage
|
time.sleep(0.001) # prevent 100% CPU usage
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
@@ -6,11 +6,16 @@ from __future__ import annotations
|
|||||||
import logging as lg
|
import logging as lg
|
||||||
import socket
|
import socket
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
import time
|
||||||
|
|
||||||
|
|
||||||
class ClientStatus(str, Enum):
|
class ClientStatus(str, Enum):
|
||||||
CONNECTED = "connected"
|
"""Enumeration of client connection statuses."""
|
||||||
DISCONNECTED = "disconnected"
|
|
||||||
|
ONLINE = "online"
|
||||||
|
PENDING = "pending"
|
||||||
|
OFFLINE = "offline"
|
||||||
|
STALE = "stale"
|
||||||
|
|
||||||
|
|
||||||
class Client:
|
class Client:
|
||||||
@@ -34,7 +39,7 @@ class Client:
|
|||||||
|
|
||||||
self.id: str | None = id
|
self.id: str | None = id
|
||||||
self.last_seen: float = 0.0 # unix timestanp of last inbound message
|
self.last_seen: float = 0.0 # unix timestanp of last inbound message
|
||||||
self.status: ClientStatus = ClientStatus.CONNECTED
|
self.status: ClientStatus = ClientStatus.PENDING
|
||||||
|
|
||||||
self.socket: socket.socket = socket
|
self.socket: socket.socket = socket
|
||||||
self.addr: tuple[str, int] = addr
|
self.addr: tuple[str, int] = addr
|
||||||
@@ -54,5 +59,7 @@ class Client:
|
|||||||
self.socket.close()
|
self.socket.close()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.error(f"Error closing socket for Client {self}: {e}")
|
self.logger.error(f"Error closing socket for Client {self}: {e}")
|
||||||
self.status = ClientStatus.DISCONNECTED
|
self.status = ClientStatus.OFFLINE
|
||||||
|
self.last_seen = time.time()
|
||||||
|
|
||||||
self.logger.info(f"Client {self} disconnected.")
|
self.logger.info(f"Client {self} disconnected.")
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
body {
|
body {
|
||||||
background-color: var(--ctp-base);
|
background-color: var(--ctp-base);
|
||||||
font-family: monospace, sans-serif !important;
|
font-family: sans-serif;
|
||||||
color: var(--ctp-text);
|
color: var(--ctp-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,10 +47,13 @@ header {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background-color: var(--ctp-mantle);
|
background-color: var(--ctp-mantle);
|
||||||
/* color: var(--ctp-text); */
|
|
||||||
padding: 0.5rem 1rem;
|
padding: 0.5rem 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
header h2 {
|
||||||
|
font-family: monospace, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
@@ -85,11 +88,6 @@ header a {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* .button a:hover { */
|
|
||||||
/* color: var(--nord-bg0); */
|
|
||||||
/* text-decoration: none; */
|
|
||||||
/* } */
|
|
||||||
|
|
||||||
.button:hover {
|
.button:hover {
|
||||||
background-color: var(--ctp-mauve);
|
background-color: var(--ctp-mauve);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -147,7 +145,6 @@ header a {
|
|||||||
|
|
||||||
.select-table a {
|
.select-table a {
|
||||||
display: block;
|
display: block;
|
||||||
/* color: var(--nord-acc0); */
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
transition: 0.1s ease-in-out;
|
transition: 0.1s ease-in-out;
|
||||||
}
|
}
|
||||||
@@ -224,7 +221,12 @@ header a {
|
|||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
#no-connection-icon {
|
#no-connection-message {
|
||||||
|
color: var(--ctp-red);
|
||||||
|
}
|
||||||
|
|
||||||
|
#no-connection-message i {
|
||||||
|
padding-right: 0.5rem;
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
color: var(--ctp-red);
|
color: var(--ctp-red);
|
||||||
@@ -237,6 +239,9 @@ ul#client-list {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ul#client-list li {
|
ul#client-list li {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
padding: 0 0.5rem;
|
padding: 0 0.5rem;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
@@ -245,9 +250,14 @@ ul#client-list li:hover {
|
|||||||
background-color: var(--ctp-surface0);
|
background-color: var(--ctp-surface0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ul#client-list li i {
|
||||||
|
line-height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
ul#client-list li a {
|
ul#client-list li a {
|
||||||
display: block;
|
display: block;
|
||||||
|
width: 100%;
|
||||||
color: var(--ctp-text);
|
color: var(--ctp-text);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
transition: 0.1s ease-in-out;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,31 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Details for client {{ client.mac_id }}</title>
|
<title>Details for client {{ client.id }}</title>
|
||||||
|
<link
|
||||||
|
rel="stylesheet"
|
||||||
|
href="{{ url_for('static', filename='css/style.css') }}"
|
||||||
|
/>
|
||||||
</head>
|
</head>
|
||||||
<body></body>
|
<body>
|
||||||
|
<h1>Details for client {{ client.id }}</h1>
|
||||||
|
<p><strong>ID:</strong> {{ client.id }}</p>
|
||||||
|
<p><strong>IP Address:</strong> {{ client.addr[0] }}</p>
|
||||||
|
<p><strong>Port:</strong> {{ client.addr[1] }}</p>
|
||||||
|
<p>
|
||||||
|
<strong>Last Seen:</strong>
|
||||||
|
<span id="last-seen">{{ client.last_seen }}</span>
|
||||||
|
</p>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function updateLastSeen() {
|
||||||
|
const lastSeenElement = document.getElementById("last-seen");
|
||||||
|
const lastSeenTimestamp = parseInt(lastSeenElement.textContent);
|
||||||
|
const lastSeenDate = new Date(lastSeenTimestamp * 1000);
|
||||||
|
lastSeenElement.textContent = lastSeenDate.toLocaleString();
|
||||||
|
}
|
||||||
|
|
||||||
|
updateLastSeen();
|
||||||
|
</script>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -13,7 +13,6 @@
|
|||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
const socket = io();
|
const socket = io();
|
||||||
const dataElement = $("#data");
|
|
||||||
|
|
||||||
const showNotify = (message) => {
|
const showNotify = (message) => {
|
||||||
$("#notify").stop().fadeIn();
|
$("#notify").stop().fadeIn();
|
||||||
@@ -23,47 +22,161 @@
|
|||||||
}, 3000);
|
}, 3000);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const loadClientDetails = (clientId) => {
|
||||||
|
fetch(`/client/${clientId}`)
|
||||||
|
.then((response) => response.text())
|
||||||
|
.then((html) => {
|
||||||
|
$("#content").html(html);
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
console.error("Error fetching client details:", error);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
// load client_details for the client specified in the URL hash
|
||||||
|
const hash = window.location.hash;
|
||||||
|
if (hash) {
|
||||||
|
const clientId = hash.substring(1);
|
||||||
|
loadClientDetails(clientId);
|
||||||
|
}
|
||||||
|
|
||||||
$("#notify").hide();
|
$("#notify").hide();
|
||||||
|
|
||||||
socket.on("connect", () => {
|
socket.on("connect", () => {
|
||||||
console.log("Connected to server");
|
console.log("Connected to server");
|
||||||
$("#no-connection-icon").hide();
|
$("#no-connection-message").hide();
|
||||||
showNotify("Connected to server");
|
showNotify("Connected to server");
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.on("disconnect", () => {
|
socket.on("disconnect", () => {
|
||||||
console.log("Disconnected from server");
|
console.log("Disconnected from server");
|
||||||
$("#no-connection-icon").show();
|
$("#no-connection-message").show();
|
||||||
showNotify("Disconnected from server");
|
showNotify("Disconnected from server");
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.on("update_data", (data) => {
|
socket.on("update_data", (data) => {
|
||||||
console.log("Received data:", data);
|
|
||||||
document.getElementById("data").innerHTML = JSON.stringify(
|
|
||||||
data,
|
|
||||||
null,
|
|
||||||
2,
|
|
||||||
);
|
|
||||||
|
|
||||||
// Update client list
|
|
||||||
const clientList = $("#client-list");
|
const clientList = $("#client-list");
|
||||||
|
const existingItems = {};
|
||||||
|
|
||||||
clientList.empty();
|
// Index current <li> by clientId
|
||||||
Object.entries(data).forEach(([clientId, client]) => {
|
clientList.children("li").each(function () {
|
||||||
const listItem = document.createElement("li");
|
const a = $(this).find("a");
|
||||||
|
if (a.length) {
|
||||||
const iconElement = document.createElement("i");
|
const clientId = a.attr("href").substring(1);
|
||||||
iconElement.classList.add("fi", "fi-sr-play");
|
existingItems[clientId] = $(this);
|
||||||
iconElement.style.color = "var(--ctp-green)";
|
}
|
||||||
listItem.appendChild(iconElement);
|
|
||||||
|
|
||||||
const spanElement = document.createElement("a");
|
|
||||||
spanElement.appendChild(document.createTextNode(clientId));
|
|
||||||
spanElement.href = `#${clientId}`;
|
|
||||||
|
|
||||||
listItem.appendChild(spanElement);
|
|
||||||
clientList.append(listItem);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Track which clientIds are still present
|
||||||
|
const seen = new Set();
|
||||||
|
|
||||||
|
Object.entries(data).forEach(([clientId, client]) => {
|
||||||
|
seen.add(clientId);
|
||||||
|
|
||||||
|
// Build icon
|
||||||
|
const iconElement = document.createElement("i");
|
||||||
|
switch (client.status) {
|
||||||
|
case "online":
|
||||||
|
iconElement.className = "fi fi-sr-play";
|
||||||
|
iconElement.style.color = "var(--ctp-green)";
|
||||||
|
break;
|
||||||
|
case "offline":
|
||||||
|
iconElement.className = "fi fi-sr-stop";
|
||||||
|
iconElement.style.color = "var(--ctp-red)";
|
||||||
|
break;
|
||||||
|
case "pending":
|
||||||
|
iconElement.className = "fi fi-sr-pending";
|
||||||
|
iconElement.style.color = "var(--ctp-yellow)";
|
||||||
|
break;
|
||||||
|
case "stale":
|
||||||
|
iconElement.className = "fi fi-sr-skull";
|
||||||
|
iconElement.style.color = "var(--ctp-orange)";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
iconElement.className = "fi fi-rr-question";
|
||||||
|
iconElement.style.color = "var(--ctp-gray)";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Time since last seen
|
||||||
|
const lastSeen = new Date(client.last_seen * 1000);
|
||||||
|
const now = new Date();
|
||||||
|
const timeSinceLastSeen = Math.floor((now - lastSeen) / 1000);
|
||||||
|
const days = Math.floor(timeSinceLastSeen / 86400);
|
||||||
|
const hours = Math.floor((timeSinceLastSeen % 86400) / 3600);
|
||||||
|
const minutes = Math.floor((timeSinceLastSeen % 3600) / 60);
|
||||||
|
const seconds = timeSinceLastSeen % 60;
|
||||||
|
let timeSinceLastSeenText = "";
|
||||||
|
if (days > 0) timeSinceLastSeenText += `${days}d `;
|
||||||
|
if (hours > 0) timeSinceLastSeenText += `${hours}h `;
|
||||||
|
if (minutes > 0) timeSinceLastSeenText += `${minutes}m `;
|
||||||
|
if (seconds > 0) timeSinceLastSeenText += `${seconds}s`;
|
||||||
|
|
||||||
|
timeSinceLastSeenText = timeSinceLastSeenText.trim() || "0s";
|
||||||
|
|
||||||
|
let statusText = `${client.id} (${timeSinceLastSeenText})`;
|
||||||
|
|
||||||
|
// check if <li> exists
|
||||||
|
if (existingItems[clientId]) {
|
||||||
|
// update if needed
|
||||||
|
const li = existingItems[clientId];
|
||||||
|
const a = li.find("a");
|
||||||
|
if (a.text() !== statusText) {
|
||||||
|
a.text(statusText);
|
||||||
|
}
|
||||||
|
|
||||||
|
li.attr(
|
||||||
|
"title",
|
||||||
|
`Status: ${client.status}\nLast Seen: ${lastSeen.toISOString()}`,
|
||||||
|
);
|
||||||
|
|
||||||
|
// update icon
|
||||||
|
const icon = li.find("i")[0];
|
||||||
|
if (icon) {
|
||||||
|
icon.className = iconElement.className;
|
||||||
|
icon.style.color = iconElement.style.color;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// add new <li>
|
||||||
|
const li = $("<li></li>");
|
||||||
|
li.append(iconElement);
|
||||||
|
const a = $("<a></a>")
|
||||||
|
.text(statusText)
|
||||||
|
.attr("href", `#${clientId}`);
|
||||||
|
|
||||||
|
li.attr(
|
||||||
|
"title",
|
||||||
|
`Status: ${client.status}\nLast Seen: ${lastSeen.toISOString()}`,
|
||||||
|
);
|
||||||
|
|
||||||
|
li.append(a);
|
||||||
|
clientList.append(li);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Remove <li> for clients no longer present
|
||||||
|
Object.keys(existingItems).forEach((clientId) => {
|
||||||
|
if (!seen.has(clientId)) {
|
||||||
|
existingItems[clientId].remove();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Re-bind click handlers
|
||||||
|
$("#client-list li > a")
|
||||||
|
.off("click")
|
||||||
|
.on("click", function (e) {
|
||||||
|
const href = $(this).attr("href");
|
||||||
|
if (href.startsWith("#")) {
|
||||||
|
const clientId = href.substring(1);
|
||||||
|
loadClientDetails(clientId);
|
||||||
|
$("#client-list li > a").removeClass("active");
|
||||||
|
$(this).addClass("active");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if (window.location.hash) {
|
||||||
|
const clientId = window.location.hash.substring(1);
|
||||||
|
loadClientDetails(clientId);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
@@ -72,21 +185,18 @@
|
|||||||
<div id="wrapper">
|
<div id="wrapper">
|
||||||
<header>
|
<header>
|
||||||
<h2><a href="{{ url_for('index.index') }}">judas</a></h2>
|
<h2><a href="{{ url_for('index.index') }}">judas</a></h2>
|
||||||
<p>
|
<p id="no-connection-message">
|
||||||
<span id="no-connection-icon" style="display: none">
|
<i class="fi fi-rr-link-slash"></i>
|
||||||
<i class="fi fi-rr-link-slash"></i>
|
<span> No connection to server </span>
|
||||||
</span>
|
|
||||||
<a class="button" href="{{ url_for('auth.logout') }}">Logout</a>
|
|
||||||
</p>
|
</p>
|
||||||
|
<a class="button" href="{{ url_for('auth.logout') }}">Logout</a>
|
||||||
</header>
|
</header>
|
||||||
<div id="notify"></div>
|
<div id="notify"></div>
|
||||||
<main>
|
<main>
|
||||||
<aside>
|
<aside>
|
||||||
<ul id="client-list"></ul>
|
<ul id="client-list"></ul>
|
||||||
</aside>
|
</aside>
|
||||||
<div id="content">
|
<div id="content"></div>
|
||||||
<pre id="data"></pre>
|
|
||||||
</div>
|
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
38
uv.lock
generated
38
uv.lock
generated
@@ -370,6 +370,7 @@ dependencies = [
|
|||||||
{ name = "flask-login" },
|
{ name = "flask-login" },
|
||||||
{ name = "flask-socketio" },
|
{ name = "flask-socketio" },
|
||||||
{ name = "judas-protocol" },
|
{ name = "judas-protocol" },
|
||||||
|
{ name = "pyyaml" },
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dev-dependencies]
|
[package.dev-dependencies]
|
||||||
@@ -394,6 +395,7 @@ requires-dist = [
|
|||||||
{ name = "flask-login", specifier = ">=0.6.3" },
|
{ name = "flask-login", specifier = ">=0.6.3" },
|
||||||
{ name = "flask-socketio", specifier = ">=5.5.1" },
|
{ name = "flask-socketio", specifier = ">=5.5.1" },
|
||||||
{ name = "judas-protocol", git = "https://gitea.pufereq.pl/judas/judas_protocol.git" },
|
{ name = "judas-protocol", git = "https://gitea.pufereq.pl/judas/judas_protocol.git" },
|
||||||
|
{ name = "pyyaml", specifier = ">=6.0.3" },
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.metadata.requires-dev]
|
[package.metadata.requires-dev]
|
||||||
@@ -696,6 +698,42 @@ wheels = [
|
|||||||
{ url = "https://files.pythonhosted.org/packages/07/c7/deb8c5e604404dbf10a3808a858946ca3547692ff6316b698945bb72177e/python_socketio-5.16.1-py3-none-any.whl", hash = "sha256:a3eb1702e92aa2f2b5d3ba00261b61f062cce51f1cfb6900bf3ab4d1934d2d35", size = 82054, upload-time = "2026-02-06T23:42:05.772Z" },
|
{ url = "https://files.pythonhosted.org/packages/07/c7/deb8c5e604404dbf10a3808a858946ca3547692ff6316b698945bb72177e/python_socketio-5.16.1-py3-none-any.whl", hash = "sha256:a3eb1702e92aa2f2b5d3ba00261b61f062cce51f1cfb6900bf3ab4d1934d2d35", size = 82054, upload-time = "2026-02-06T23:42:05.772Z" },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "pyyaml"
|
||||||
|
version = "6.0.3"
|
||||||
|
source = { registry = "https://pypi.org/simple" }
|
||||||
|
sdist = { url = "https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz", hash = "sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f", size = 130960, upload-time = "2025-09-25T21:33:16.546Z" }
|
||||||
|
wheels = [
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/d1/11/0fd08f8192109f7169db964b5707a2f1e8b745d4e239b784a5a1dd80d1db/pyyaml-6.0.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:8da9669d359f02c0b91ccc01cac4a67f16afec0dac22c2ad09f46bee0697eba8", size = 181669, upload-time = "2025-09-25T21:32:23.673Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/b1/16/95309993f1d3748cd644e02e38b75d50cbc0d9561d21f390a76242ce073f/pyyaml-6.0.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:2283a07e2c21a2aa78d9c4442724ec1eb15f5e42a723b99cb3d822d48f5f7ad1", size = 173252, upload-time = "2025-09-25T21:32:25.149Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/50/31/b20f376d3f810b9b2371e72ef5adb33879b25edb7a6d072cb7ca0c486398/pyyaml-6.0.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ee2922902c45ae8ccada2c5b501ab86c36525b883eff4255313a253a3160861c", size = 767081, upload-time = "2025-09-25T21:32:26.575Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/49/1e/a55ca81e949270d5d4432fbbd19dfea5321eda7c41a849d443dc92fd1ff7/pyyaml-6.0.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a33284e20b78bd4a18c8c2282d549d10bc8408a2a7ff57653c0cf0b9be0afce5", size = 841159, upload-time = "2025-09-25T21:32:27.727Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/74/27/e5b8f34d02d9995b80abcef563ea1f8b56d20134d8f4e5e81733b1feceb2/pyyaml-6.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0f29edc409a6392443abf94b9cf89ce99889a1dd5376d94316ae5145dfedd5d6", size = 801626, upload-time = "2025-09-25T21:32:28.878Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/f9/11/ba845c23988798f40e52ba45f34849aa8a1f2d4af4b798588010792ebad6/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f7057c9a337546edc7973c0d3ba84ddcdf0daa14533c2065749c9075001090e6", size = 753613, upload-time = "2025-09-25T21:32:30.178Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/3d/e0/7966e1a7bfc0a45bf0a7fb6b98ea03fc9b8d84fa7f2229e9659680b69ee3/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:eda16858a3cab07b80edaf74336ece1f986ba330fdb8ee0d6c0d68fe82bc96be", size = 794115, upload-time = "2025-09-25T21:32:31.353Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/de/94/980b50a6531b3019e45ddeada0626d45fa85cbe22300844a7983285bed3b/pyyaml-6.0.3-cp313-cp313-win32.whl", hash = "sha256:d0eae10f8159e8fdad514efdc92d74fd8d682c933a6dd088030f3834bc8e6b26", size = 137427, upload-time = "2025-09-25T21:32:32.58Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/97/c9/39d5b874e8b28845e4ec2202b5da735d0199dbe5b8fb85f91398814a9a46/pyyaml-6.0.3-cp313-cp313-win_amd64.whl", hash = "sha256:79005a0d97d5ddabfeeea4cf676af11e647e41d81c9a7722a193022accdb6b7c", size = 154090, upload-time = "2025-09-25T21:32:33.659Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/73/e8/2bdf3ca2090f68bb3d75b44da7bbc71843b19c9f2b9cb9b0f4ab7a5a4329/pyyaml-6.0.3-cp313-cp313-win_arm64.whl", hash = "sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb", size = 140246, upload-time = "2025-09-25T21:32:34.663Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/9d/8c/f4bd7f6465179953d3ac9bc44ac1a8a3e6122cf8ada906b4f96c60172d43/pyyaml-6.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac", size = 181814, upload-time = "2025-09-25T21:32:35.712Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/bd/9c/4d95bb87eb2063d20db7b60faa3840c1b18025517ae857371c4dd55a6b3a/pyyaml-6.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310", size = 173809, upload-time = "2025-09-25T21:32:36.789Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/92/b5/47e807c2623074914e29dabd16cbbdd4bf5e9b2db9f8090fa64411fc5382/pyyaml-6.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7", size = 766454, upload-time = "2025-09-25T21:32:37.966Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/02/9e/e5e9b168be58564121efb3de6859c452fccde0ab093d8438905899a3a483/pyyaml-6.0.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b3bc83488de33889877a0f2543ade9f70c67d66d9ebb4ac959502e12de895788", size = 836355, upload-time = "2025-09-25T21:32:39.178Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/88/f9/16491d7ed2a919954993e48aa941b200f38040928474c9e85ea9e64222c3/pyyaml-6.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5", size = 794175, upload-time = "2025-09-25T21:32:40.865Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/dd/3f/5989debef34dc6397317802b527dbbafb2b4760878a53d4166579111411e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764", size = 755228, upload-time = "2025-09-25T21:32:42.084Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/d7/ce/af88a49043cd2e265be63d083fc75b27b6ed062f5f9fd6cdc223ad62f03e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35", size = 789194, upload-time = "2025-09-25T21:32:43.362Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/23/20/bb6982b26a40bb43951265ba29d4c246ef0ff59c9fdcdf0ed04e0687de4d/pyyaml-6.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac", size = 156429, upload-time = "2025-09-25T21:32:57.844Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/f4/f4/a4541072bb9422c8a883ab55255f918fa378ecf083f5b85e87fc2b4eda1b/pyyaml-6.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3", size = 143912, upload-time = "2025-09-25T21:32:59.247Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/7c/f9/07dd09ae774e4616edf6cda684ee78f97777bdd15847253637a6f052a62f/pyyaml-6.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:02893d100e99e03eda1c8fd5c441d8c60103fd175728e23e431db1b589cf5ab3", size = 189108, upload-time = "2025-09-25T21:32:44.377Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/4e/78/8d08c9fb7ce09ad8c38ad533c1191cf27f7ae1effe5bb9400a46d9437fcf/pyyaml-6.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c1ff362665ae507275af2853520967820d9124984e0f7466736aea23d8611fba", size = 183641, upload-time = "2025-09-25T21:32:45.407Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/7b/5b/3babb19104a46945cf816d047db2788bcaf8c94527a805610b0289a01c6b/pyyaml-6.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6adc77889b628398debc7b65c073bcb99c4a0237b248cacaf3fe8a557563ef6c", size = 831901, upload-time = "2025-09-25T21:32:48.83Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/8b/cc/dff0684d8dc44da4d22a13f35f073d558c268780ce3c6ba1b87055bb0b87/pyyaml-6.0.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a80cb027f6b349846a3bf6d73b5e95e782175e52f22108cfa17876aaeff93702", size = 861132, upload-time = "2025-09-25T21:32:50.149Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/b1/5e/f77dc6b9036943e285ba76b49e118d9ea929885becb0a29ba8a7c75e29fe/pyyaml-6.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c", size = 839261, upload-time = "2025-09-25T21:32:51.808Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/ce/88/a9db1376aa2a228197c58b37302f284b5617f56a5d959fd1763fb1675ce6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:66e1674c3ef6f541c35191caae2d429b967b99e02040f5ba928632d9a7f0f065", size = 805272, upload-time = "2025-09-25T21:32:52.941Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/da/92/1446574745d74df0c92e6aa4a7b0b3130706a4142b2d1a5869f2eaa423c6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:16249ee61e95f858e83976573de0f5b2893b3677ba71c9dd36b9cf8be9ac6d65", size = 829923, upload-time = "2025-09-25T21:32:54.537Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/f0/7a/1c7270340330e575b92f397352af856a8c06f230aa3e76f86b39d01b416a/pyyaml-6.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4ad1906908f2f5ae4e5a8ddfce73c320c2a1429ec52eafd27138b7f1cbe341c9", size = 174062, upload-time = "2025-09-25T21:32:55.767Z" },
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/f1/12/de94a39c2ef588c7e6455cfbe7343d3b2dc9d6b6b2f40c4c6565744c873d/pyyaml-6.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b", size = 149341, upload-time = "2025-09-25T21:32:56.828Z" },
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "requests"
|
name = "requests"
|
||||||
version = "2.32.5"
|
version = "2.32.5"
|
||||||
|
|||||||
Reference in New Issue
Block a user