Implemented houses

This commit is contained in:
Torsten Schulz
2025-05-08 17:38:51 +02:00
parent b15d93a798
commit a9e6c82275
17 changed files with 1129 additions and 156 deletions

View File

@@ -70,7 +70,7 @@ export default {
}
this.statusItems = [
{ key: "age", icon: "👶", value: age },
{ key: "wealth", icon: "💰", value: money },
{ key: "wealth", icon: "💰", value: Intl.NumberFormat(navigator.language, { minimumFractionDigits: 2, maximumFractionDigits: 2 }).format(money) },
{ key: "health", icon: "❤️", value: healthStatus },
{ key: "events", icon: "📰", value: events || null },
];
@@ -80,12 +80,15 @@ export default {
},
async handleDaemonSocketMessage(event) {
try {
if (event.data === 'ping') {
return;
}
const data = JSON.parse(event.data);
if (data.event === "falukantUpdateStatus") {
this.fetchStatus();
}
} catch (error) {
console.error("Error parsing daemonSocket message:", error);
console.error("Error parsing daemonSocket message:", error, event.data);
}
},
openPage(url, hasSubmenu = false) {