From 026090e99bc604b5677a767dd5f862de1f3549f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Cmit=20Tun=C3=A7?= Date: Sat, 28 Mar 2026 21:50:53 +0300 Subject: [PATCH] feat: implement main application dashboard with service management and project configuration UI --- src/renderer/src/App.tsx | 70 +++++++++++++++++++------------- src/renderer/src/locales/de.json | 3 +- src/renderer/src/locales/en.json | 3 +- src/renderer/src/locales/tr.json | 3 +- 4 files changed, 47 insertions(+), 32 deletions(-) diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index 556239b..dccde42 100644 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -99,6 +99,7 @@ function App(): JSX.Element { }) const [activeTab, setActiveTab] = useState('dashboard') const [settingsTab, setSettingsTab] = useState(0) + const [dashboardTab, setDashboardTab] = useState(0) const [projects, setProjects] = useState([]) const [phpVersions, setPhpVersions] = useState([]) const [mySqlVersions, setMySqlVersions] = useState([]) @@ -738,38 +739,49 @@ function App(): JSX.Element { Hızlı Bakış + + setDashboardTab(v)} textColor="primary" indicatorColor="primary"> + + + + + + + {/* Nginx Box */} - - - - - {getStatusChip(status.nginx)} - - Nginx - Port: {settings.nginxPort} - - handleOpenLogs('nginx')} size="small" sx={{ bgcolor: 'rgba(255,255,255,0.05)' }}> - - - handleToggleService('nginx')} - disabled={status.nginx === 'starting'} - /> - - - + {(dashboardTab === 0 || dashboardTab === 1) && ( + + + + + {getStatusChip(status.nginx)} + + Nginx + Port: {settings.nginxPort} + + handleOpenLogs('nginx')} size="small" sx={{ bgcolor: 'rgba(255,255,255,0.05)' }}> + + + handleToggleService('nginx')} + disabled={status.nginx === 'starting'} + /> + + + + )} {/* PHP Boxes */} - {installedPhpVersions.map(v => ( + {(dashboardTab === 0 || dashboardTab === 2) && installedPhpVersions.map(v => ( v.status === 'installed').map(v => ( + {(dashboardTab === 0 || dashboardTab === 3) && mySqlVersions.filter(v => v.status === 'installed').map(v => (