mirror of
https://github.com/DanielLavrushin/b4.git
synced 2026-07-28 09:07:09 +00:00
refactor(ui): remove unused settings options and update UI to indicate development status
This commit is contained in:
parent
0f227a7c92
commit
71e0a07f5b
1 changed files with 2 additions and 67 deletions
|
|
@ -33,73 +33,8 @@ export default function Settings() {
|
|||
Settings
|
||||
</Typography>
|
||||
|
||||
<Stack spacing={3}>
|
||||
<Box>
|
||||
<Typography
|
||||
variant="subtitle1"
|
||||
gutterBottom
|
||||
sx={{ fontWeight: 600 }}
|
||||
>
|
||||
Display Options
|
||||
</Typography>
|
||||
<Divider sx={{ mb: 2, borderColor: "rgba(245, 173, 24, 0.24)" }} />
|
||||
|
||||
<TextField
|
||||
label="Max Lines to Keep"
|
||||
value={maxLines}
|
||||
onChange={(e) => setMaxLines(e.target.value)}
|
||||
size="small"
|
||||
type="number"
|
||||
fullWidth
|
||||
sx={{ mb: 2 }}
|
||||
helperText="Maximum number of log lines to store in memory"
|
||||
/>
|
||||
|
||||
<TextField
|
||||
label="Timestamp Format"
|
||||
value={timestampFormat}
|
||||
onChange={(e) => setTimestampFormat(e.target.value)}
|
||||
size="small"
|
||||
fullWidth
|
||||
helperText="Format for displaying timestamps (e.g., ISO, UTC, Local)"
|
||||
/>
|
||||
</Box>
|
||||
|
||||
<Box>
|
||||
<Typography
|
||||
variant="subtitle1"
|
||||
gutterBottom
|
||||
sx={{ fontWeight: 600 }}
|
||||
>
|
||||
Connection Options
|
||||
</Typography>
|
||||
<Divider sx={{ mb: 2, borderColor: "rgba(245, 173, 24, 0.24)" }} />
|
||||
|
||||
<FormControlLabel
|
||||
control={
|
||||
<Switch
|
||||
checked={autoReconnect}
|
||||
onChange={(e) => setAutoReconnect(e.target.checked)}
|
||||
sx={{
|
||||
"& .MuiSwitch-switchBase.Mui-checked": {
|
||||
color: "#F5AD18",
|
||||
},
|
||||
"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track": {
|
||||
backgroundColor: "#F5AD18",
|
||||
},
|
||||
}}
|
||||
/>
|
||||
}
|
||||
label="Auto-reconnect on connection loss"
|
||||
/>
|
||||
</Box>
|
||||
|
||||
<Box>
|
||||
<Typography variant="body2" color="text.secondary" sx={{ mt: 4 }}>
|
||||
B4: ByeBye BigBro - Your log viewer
|
||||
</Typography>
|
||||
</Box>
|
||||
</Stack>
|
||||
<Stack spacing={3}></Stack>
|
||||
<Typography>Under Development...</Typography>
|
||||
</Paper>
|
||||
</Container>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue