Skip to content

Commit a2a10a2

Browse files
committed
Working on editor
1 parent 7052048 commit a2a10a2

File tree

3 files changed

+24
-11
lines changed

3 files changed

+24
-11
lines changed

src/html/modals/github/authenticate.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,31 @@
11
<div class="container-fluid">
22
<p class="text-center">
3-
<i class="fa fa-fw fa-github fa-4x"></i><br/>
4-
Authenticate with GitHub
3+
<i class="fa fa-fw fa-github fa-5x"></i><br/>
4+
Enter your GitHub credentials
55
</p>
66
<div class="row">
7-
<div class="col-lg-4 col-md-6 col-sm-12">
7+
<div class="col-12">
88
<div class="form-group">
99
<label>
10-
<strong>Username</strong><br/>
11-
<span>Your account username</span>
10+
<strong>Username</strong>
1211
</label>
1312
<div>
1413
<input type="text" name="github-username" title="GitHub username"/>
1514
</div>
1615
</div>
1716
</div>
18-
<div class="col-lg-4 col-md-6 col-sm-12">
17+
<div class="col-12">
1918
<div class="form-group">
2019
<label>
21-
<strong>Password</strong><br/>
22-
<span>Your account password</span>
20+
<strong>Password</strong>
2321
</label>
2422
<div>
2523
<input type="password" name="github-password" title="GitHub password"/>
2624
</div>
2725
</div>
2826
</div>
2927
</div>
30-
28+
<br/>
3129
<div class="row">
3230
<div class="col-6">
3331
<button class="action-github-auth btn btn-primary btn-sm btn-expanded" type="button">

src/js/handlers/github.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,19 @@ var GitHubHandler = function () {
1919
console.log(val);
2020
});
2121
};
22+
23+
this.getZen = function () {
24+
25+
this.octo = new Octokat({
26+
username: username,
27+
password: password
28+
});
29+
console.log(this.octo);
30+
31+
this.octo.zen.read(function (err, val) {
32+
33+
console.log(err);
34+
console.log(val);
35+
});
36+
};
2237
};

src/js/handlers/sidebar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ var SidebarHandler = function () {
1818
this.init = function (notifications) {
1919

2020
this.Notifications = notifications;
21-
21+
22+
this.getSidebar().treeview({data: this.getDirectoryTree()});
2223
this.getSidebar().resizable({
2324
ghost: true,
2425
helper: "ui-resizable-helper"
2526
});
26-
this.getSidebar().treeview({data: this.getDirectoryTree()});
2727
};
2828

2929
this.getSidebar = function () {

0 commit comments

Comments
 (0)