Initial commit: Vue.js тир управления система

- Клиентская часть Vue 3 + Vite
- Серверная часть Node.js + WebSocket
- Система авторизации и смен
- Управление игровыми портами
- Поддержка тем (светлая/темная)
- Адаптивный дизайн

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-09-19 12:24:22 +03:00
commit 3e90269b0b
158 changed files with 29364 additions and 0 deletions

41
server/api/system.js Normal file
View File

@@ -0,0 +1,41 @@
"use strict";
const game = require('../game.js');
exports.go = async (req, res, postData, urlParsed) => {
try {
console.log('[api/system] Запрос системной информации');
const response = {
success: true,
data: {
// Информация о версии
version: global.VER || { prg: "1.0.0", git: null, commit: null, name: null },
// Статус подключения к серверу
connectedToServer: global.conn_to_server || false,
// Игровая информация
gameInfo: game.cfg.info || {},
// Состояние портов
ports: game.get() || [],
// Серийный номер CPU
serialCpu: global.serialcpu || "unknown",
// Timestamp
timestamp: Date.now()
}
};
res.end(JSON.stringify(response));
} catch (error) {
console.error('[api/system] Ошибка получения системной информации:', error);
res.end(JSON.stringify({
success: false,
error: "Ошибка получения системной информации"
}));
}
};