rust: Nexus Terminal app shell (title bar, sidebar, tabs, split panes, terminal view, palette, prompts, dialogs, toasts, status bar)
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
//! GitHub repository browser.
|
||||
//! STUB — interface fixed; implementation pending.
|
||||
|
||||
use crate::state::Shared;
|
||||
use nexus_core::models::GitHubRepo;
|
||||
|
||||
pub struct GithubView {
|
||||
pub session: String,
|
||||
}
|
||||
|
||||
impl GithubView {
|
||||
pub fn new(session: &str, _title: &str) -> GithubView {
|
||||
GithubView { session: session.into() }
|
||||
}
|
||||
|
||||
pub fn on_status(&mut self, _status: String) {}
|
||||
|
||||
pub fn on_repos(&mut self, _login: String, _repos: Vec<GitHubRepo>) {}
|
||||
|
||||
pub fn on_error(&mut self, _error: String) {}
|
||||
|
||||
pub fn ui(&mut self, ui: &mut egui::Ui, _s: &mut Shared) {
|
||||
ui.label("GitHub");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user