refactor: ChakraUI v3 frontend + direct SQL backend services
Frontend: - Replace Tailwind CSS with ChakraUI v3 (react, recharts, fontsource) - 24 themes (12 Dune factions x day/night variants) - Collapsible sidebar navigation with 6 groups - Recharts AreaChart/PieChart for CPU/RAM/metrics - New Experimental page (ports legacy admin_experimental.html) - Common components: DataTable, Modal, Badge, Toaster Backend: - Fix services to use direct SQL (dune.* schema) instead of stored procedures - PlayerService, EconomyService, GuildService, WorldService rewritten - Auto-login for SPA development in factory.py - Fix settings.yaml path resolution Launcher: - Add option [7] Start New Dashboard in launcher.ps1 and start.sh - Auto-installs pip + npm dependencies - Sets up SSH tunnels + kubectl port-forwards - Starts backend API + frontend Vite dev server Security: - Sanitize hardcoded RMQ password in config.py - Add frontend/dist/ to .gitignore
This commit is contained in:
1 parent
d7ac8a6641
commit
011ba8c8b4
52 files changed
+5901
-2444
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { useEffect, useRef } from 'react'
|
||||
import { Box, Heading } from '@chakra-ui/react'
|
||||
import { Terminal as XTerm } from 'xterm'
|
||||
import { FitAddon } from 'xterm-addon-fit'
|
||||
import { io, Socket } from 'socket.io-client'
|
||||
@@ -95,12 +96,25 @@ export default function Terminal() {
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<div className="h-[calc(100vh-140px)] flex flex-col">
|
||||
<h1 className="font-serif text-3xl text-primary mb-4">Remote Shell</h1>
|
||||
<div
|
||||
<Box h="calc(100vh - 140px)" display="flex" flexDirection="column">
|
||||
<Heading
|
||||
as="h1"
|
||||
fontSize="3xl"
|
||||
fontFamily="Playfair Display, serif"
|
||||
color="primary.DEFAULT"
|
||||
mb={4}
|
||||
>
|
||||
Remote Shell
|
||||
</Heading>
|
||||
<Box
|
||||
ref={containerRef}
|
||||
className="flex-1 bg-[#1a1a1a] rounded-lg border border-border overflow-hidden"
|
||||
flex={1}
|
||||
bg="#1a1a1a"
|
||||
borderRadius="lg"
|
||||
borderWidth="1px"
|
||||
borderColor="border"
|
||||
overflow="hidden"
|
||||
/>
|
||||
</div>
|
||||
</Box>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user