fixed, session selector at start and fixed load chat
This commit is contained in:
@@ -570,8 +570,8 @@
|
|||||||
}
|
}
|
||||||
// Chat-History (nach F5 / Reconnect)
|
// Chat-History (nach F5 / Reconnect)
|
||||||
if (msg.type === 'chat_history') {
|
if (msg.type === 'chat_history') {
|
||||||
|
chatBox.innerHTML = '';
|
||||||
if (msg.messages && msg.messages.length > 0) {
|
if (msg.messages && msg.messages.length > 0) {
|
||||||
chatBox.innerHTML = '';
|
|
||||||
for (const m of msg.messages) {
|
for (const m of msg.messages) {
|
||||||
const el = document.createElement('div');
|
const el = document.createElement('div');
|
||||||
el.className = `chat-msg ${m.type}`;
|
el.className = `chat-msg ${m.type}`;
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ const state = {
|
|||||||
rvs: { status: "disconnected", lastError: null },
|
rvs: { status: "disconnected", lastError: null },
|
||||||
proxy: { status: "unknown", lastError: null },
|
proxy: { status: "unknown", lastError: null },
|
||||||
};
|
};
|
||||||
const SESSION_KEY_FILE = "/tmp/aria-active-session";
|
const SESSION_KEY_FILE = "/data/active-session";
|
||||||
let activeSessionKey = (() => {
|
let activeSessionKey = (() => {
|
||||||
try { return fs.readFileSync(SESSION_KEY_FILE, "utf-8").trim(); } catch { return "main"; }
|
try { return fs.readFileSync(SESSION_KEY_FILE, "utf-8").trim(); } catch { return "main"; }
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -96,6 +96,7 @@ services:
|
|||||||
network_mode: "service:aria" # Teilt Netzwerk mit aria-core → localhost:18789
|
network_mode: "service:aria" # Teilt Netzwerk mit aria-core → localhost:18789
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
- ./aria-data/config/diag-state:/data # Persistenter State (aktive Session etc.)
|
||||||
environment:
|
environment:
|
||||||
- ARIA_AUTH_TOKEN=${ARIA_AUTH_TOKEN:-}
|
- ARIA_AUTH_TOKEN=${ARIA_AUTH_TOKEN:-}
|
||||||
- PROXY_URL=http://proxy:3456
|
- PROXY_URL=http://proxy:3456
|
||||||
|
|||||||
Reference in New Issue
Block a user