feat: initialize Electron main process and React frontend dashboard for Multi-PHP management

This commit is contained in:
Ümit Tunç
2026-03-28 21:29:24 +03:00
parent 4de00919f0
commit 9837b0abd7
4 changed files with 49 additions and 8 deletions
+2 -2
View File
@@ -43,8 +43,8 @@ function createTray(): void {
function createWindow(): void { function createWindow(): void {
mainWindow = new BrowserWindow({ mainWindow = new BrowserWindow({
width: 1000, width: 1200,
height: 750, height: 800,
show: false, show: false,
autoHideMenuBar: true, autoHideMenuBar: true,
webPreferences: { webPreferences: {
+16 -6
View File
@@ -1,4 +1,5 @@
import React, { useState, useEffect, Fragment } from 'react' import React, { useState, useEffect, Fragment } from 'react'
import logo from './assets/logo.svg'
import { import {
Box, Box,
Typography, Typography,
@@ -448,11 +449,17 @@ function App(): JSX.Element {
return ( return (
<Box sx={{ display: 'flex', minHeight: '100vh', backgroundImage: 'radial-gradient(circle at 50% 0%, #153E5E 0%, #121212 100%)', bgcolor: 'transparent' }}> <Box sx={{ display: 'flex', minHeight: '100vh', backgroundImage: 'radial-gradient(circle at 50% 0%, #153E5E 0%, #121212 100%)', bgcolor: 'transparent' }}>
<AppBar position="fixed" sx={{ zIndex: (theme) => theme.zIndex.drawer + 1, bgcolor: 'rgba(21, 62, 94, 0.85)', backdropFilter: 'blur(10px)' }}> <AppBar
<Toolbar> position="fixed"
<Typography variant="h6" noWrap component="div" sx={{ flexGrow: 1, fontWeight: 'bold' }}> sx={{
Trunçgil Multi-PHP Server width: { sm: `calc(100% - ${drawerWidth}px)` },
</Typography> ml: { sm: `${drawerWidth}px` },
zIndex: (theme) => theme.zIndex.drawer - 1,
bgcolor: 'rgba(21, 62, 94, 0.85)',
backdropFilter: 'blur(10px)'
}}
>
<Toolbar sx={{ justifyContent: 'flex-end' }}>
<Tooltip title="Dil Değiştir"> <Tooltip title="Dil Değiştir">
<IconButton onClick={toggleLanguage} color="inherit"> <IconButton onClick={toggleLanguage} color="inherit">
<LanguageIcon /> <LanguageIcon />
@@ -472,7 +479,10 @@ function App(): JSX.Element {
[`& .MuiDrawer-paper`]: { width: drawerWidth, boxSizing: 'border-box', bgcolor: 'rgba(18, 18, 18, 0.95)', borderRight: '1px solid rgba(255, 255, 255, 0.05)' }, [`& .MuiDrawer-paper`]: { width: drawerWidth, boxSizing: 'border-box', bgcolor: 'rgba(18, 18, 18, 0.95)', borderRight: '1px solid rgba(255, 255, 255, 0.05)' },
}} }}
> >
<Toolbar /> <Box sx={{ p: 2, display: 'flex', justifyContent: 'center', alignItems: 'center', minHeight: '120px' }}>
<img src={logo} alt="Logo" style={{ width: '90%', maxWidth: '210px', objectFit: 'contain' }} />
</Box>
<Divider sx={{ opacity: 0.1 }} />
<Box sx={{ overflow: 'auto' }}> <Box sx={{ overflow: 'auto' }}>
<List> <List>
<ListItem disablePadding> <ListItem disablePadding>
File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 20 KiB

+1
View File
@@ -0,0 +1 @@
/// <reference types="vite/client" />