feat(dashboard): clarify server navigation and refresh gallery
Build and publish Docker image / build-and-publish (push) Successful in 40s
Build and publish Docker image / build-and-publish (push) Successful in 40s
This commit is contained in:
1 parent
ad5bf1d015
commit
3523a2e141
8 files changed
+103
-63
No files matched your search
@@ -7,7 +7,7 @@ import {
|
||||
Server, Terminal, User, Settings, Plus, Trash2, Play, Square, RefreshCw,
|
||||
Cpu, HardDrive, MemoryStick, Copy, Maximize2, Minimize2, AlertCircle,
|
||||
ShoppingCart, Coins, Globe, Database, Activity, Menu, LogOut, Wifi, WifiOff,
|
||||
Home, BookOpen,
|
||||
Home, BookOpen, FileText,
|
||||
BarChart3, HardDriveIcon, NetworkIcon, Clock, Info,
|
||||
CheckCircle, Gamepad2,
|
||||
Folder, Edit,
|
||||
@@ -2933,12 +2933,12 @@ const handleWebSocketMessage = useCallback((data) => {
|
||||
</div>
|
||||
|
||||
<div className="border-b border-dash-border bg-black/5 shrink-0">
|
||||
<div className="flex space-x-1 px-6 overflow-x-auto custom-scrollbar">
|
||||
<div role="tablist" aria-label="Server sections" className="flex space-x-1 px-6 overflow-x-auto custom-scrollbar">
|
||||
{[
|
||||
{ id: 'overview', label: 'Overview', icon: Info },
|
||||
...(selectedServer.type === 'game'
|
||||
? [
|
||||
{ id: 'game-console', label: 'Game Console', icon: Gamepad2 },
|
||||
{ id: 'game-console', label: 'Console', icon: Gamepad2 },
|
||||
...(selectedServer.image && selectedServer.image.toLowerCase().includes('minecraft')
|
||||
? [
|
||||
{ id: 'plugin-store', label: 'Plugin Store', icon: Package },
|
||||
@@ -2948,8 +2948,10 @@ const handleWebSocketMessage = useCallback((data) => {
|
||||
]
|
||||
: []),
|
||||
...(selectedServer.type !== 'database' && selectedServer.type !== 'vps'
|
||||
? [{ id: 'files', label: 'Files & SFTP', icon: Folder }]
|
||||
? [{ id: 'files', label: 'Files', icon: Folder }]
|
||||
: []),
|
||||
{ id: 'terminal', label: 'Terminal', icon: Terminal },
|
||||
{ id: 'logs', label: 'Logs', icon: FileText },
|
||||
{ id: 'network', label: 'Network', icon: NetworkIcon },
|
||||
{ id: 'backups', label: 'Backups', icon: Database },
|
||||
].map((tab) => {
|
||||
@@ -2958,6 +2960,10 @@ const handleWebSocketMessage = useCallback((data) => {
|
||||
return (
|
||||
<button
|
||||
key={tab.id}
|
||||
type="button"
|
||||
role="tab"
|
||||
aria-selected={active}
|
||||
id={`server-tab-${tab.id}`}
|
||||
onClick={() => {
|
||||
setActiveServerDetailTab(tab.id);
|
||||
if (tab.id !== 'network') setShowPortMappingGuide(false);
|
||||
@@ -2976,7 +2982,13 @@ const handleWebSocketMessage = useCallback((data) => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="flex-1 min-h-0 overflow-y-auto custom-scrollbar">
|
||||
<div
|
||||
role="tabpanel"
|
||||
id="server-detail-panel"
|
||||
aria-labelledby={`server-tab-${activeServerDetailTab}`}
|
||||
tabIndex={0}
|
||||
className="flex-1 min-h-0 overflow-y-auto custom-scrollbar"
|
||||
>
|
||||
<div className={dashLayout.bodyPadding}>
|
||||
{activeServerDetailTab === 'overview' && (
|
||||
<div className="max-w-7xl mx-auto space-y-8">
|
||||
|
||||
@@ -1048,7 +1048,7 @@ Restart Apache: \`sudo systemctl restart apache2\`. Visit your IP in the browser
|
||||
return (
|
||||
<div className="flex h-screen overflow-hidden bg-dash-surface font-sans selection:bg-primary/30 text-dash-textMuted antialiased">
|
||||
{/* Sidebar */}
|
||||
<aside className={`fixed inset-y-0 left-0 z-50 w-72 transform transition-transform duration-300 ease-in-out md:relative md:translate-x-0 border-r border-dash-border bg-dash-surfaceElevated/50 backdrop-blur-md pt-[env(safe-area-inset-top,0px)] ${isMobileMenuOpen ? 'translate-x-0' : '-translate-x-full'}`}>
|
||||
<aside className={`fixed inset-y-0 left-0 z-50 w-72 transform transition-transform duration-300 ease-in-out md:relative md:translate-x-0 border-r border-dash-border bg-dash-surfaceElevated pt-[env(safe-area-inset-top,0px)] ${isMobileMenuOpen ? 'translate-x-0' : '-translate-x-full'}`}>
|
||||
<div className="flex flex-col h-full">
|
||||
<div className="p-6 border-b border-dash-border bg-black/10">
|
||||
<Link to="/" className="flex items-center space-x-3 group">
|
||||
|
||||
@@ -44,14 +44,14 @@ const heroGallery = [
|
||||
title: 'Your work, online',
|
||||
},
|
||||
{
|
||||
src: '/assets/server-2.jpg',
|
||||
alt: 'Network hardware and cabling inside a blue server rack',
|
||||
title: 'Servers and network hardware',
|
||||
src: '/assets/data-center.jpg',
|
||||
alt: 'Rows of server and network equipment in a data center',
|
||||
title: 'Infrastructure that stays online',
|
||||
},
|
||||
{
|
||||
src: '/assets/pricing-bg.jpg',
|
||||
alt: 'Ethernet cables connected to a network switch',
|
||||
title: 'Connections, made visible',
|
||||
src: '/assets/fiber-network.jpg',
|
||||
alt: 'Fiber optic cables connected to telecommunications equipment',
|
||||
title: 'A network built on fiber',
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in new issue
Block a user