This commit is contained in:
cyclic
2026-01-13 11:14:04 -06:00
parent 01ad8c469a
commit 9ea3d36602
8 changed files with 1763 additions and 0 deletions

5
.gitignore vendored
View File

@@ -16,3 +16,8 @@ target/
# and can be added to the global gitignore or merged into this file. For a more nuclear # and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder. # option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/ #.idea/
# Added by cargo
/target

1701
Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

11
Cargo.toml Normal file
View File

@@ -0,0 +1,11 @@
[package]
name = "tuidash"
version = "0.1.0"
edition = "2024"
[dependencies]
color-eyre = "0.6.5"
crossterm = "0.29.0"
ratatui = "0.30.0"

1
src/conf.rs Normal file
View File

@@ -0,0 +1 @@
//This is the system for text configs

42
src/main.rs Normal file
View File

@@ -0,0 +1,42 @@
use color_eyre::Result;
use crossterm::event::{self, Event};
use ratatui::{DefaultTerminal, Frame};
use ratatui::layout::{Constraint, Layout};
use ratatui::widgets::Block;
fn main() -> Result<()> {
color_eyre::install()?;
let terminal = ratatui::init();
let result = run(terminal);
ratatui::restore();
result
}
fn run(mut terminal: DefaultTerminal) -> Result<()> {
loop {
terminal.draw(render)?;
if matches!(event::read()?, Event::Key(_)) {
break Ok(());
}
}
}
fn render(frame: &mut Frame) {
use Constraint::{Fill, Length, Min};
let vertical = Layout::vertical([Length(1), Min(0), Length(1)]);
let [title_area, main_area, status_area] = vertical.areas(frame.area());
let horizontal = Layout::horizontal([Fill(1); 3]);
let [left_area,mid_area, right_area] = horizontal.areas(main_area);
frame.render_widget(Block::bordered().title("Title Bar"), title_area);
frame.render_widget(Block::bordered().title("Status Bar"), status_area);
frame.render_widget(Block::bordered().title("Left"), left_area);
frame.render_widget(Block::bordered().title("Right"), right_area);
frame.render_widget(Block::bordered().title("middle"), mid_area);
}

1
src/ssh.rs Normal file
View File

@@ -0,0 +1 @@
//this is ssh info and ssh connections

1
src/ts.rs Normal file
View File

@@ -0,0 +1 @@
//This is the section for tailscale

1
src/webCheck.rs Normal file
View File

@@ -0,0 +1 @@
//This is to check the status of all services in conf