wip: connect to github
This commit is contained in:
18
src/main.rs
18
src/main.rs
@@ -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.))),
|
||||
|
||||
Reference in New Issue
Block a user