wip: connect to github

This commit is contained in:
2026-04-24 19:22:25 +01:00
parent b327648d31
commit a9f4d1d923
11 changed files with 587 additions and 146 deletions

View File

@@ -10,6 +10,7 @@ mod component;
mod dashboard;
mod query;
mod screen;
mod storage;
mod theme;
mod titlebar;
@@ -29,16 +30,15 @@ fn main() {
fn setup_application(cx: &mut gpui::App) {
let window_bounds = gpui::Bounds::centered(None, size(px(800.), px(600.0)), cx);
let query_store = query::Store::new(
api::QueryContext {
http: reqwest::Client::new(),
auth: None,
github: api::GithubCredentials {
client_id: "Iv23liZD4bMQpGJICsR7",
},
let query_store = query::Store::new(api::QueryContext {
http: reqwest::Client::new(),
auth: None,
github: api::GithubCredentials {
base_url: "https://api.github.com",
client_id: "Iv23liZD4bMQpGJICsR7",
},
cx,
);
});
let global = app::Global {
safe_area: bounds(point(px(0.), px(0.)), size(px(72.), px(12.))),