Skip to content

Commit 390aa7b

Browse files
authored
Merge pull request SpinlockLabs#80 from kevmoo/kevmoo_tweaks
Kevmoo tweaks
2 parents e46a2f6 + ba0f3d5 commit 390aa7b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+151
-558
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
## v3.0.0
22

33
- *BREAKING* Removed a number of top-level methods from the public API.
4+
- *BREAKING* Removed `markdown.dart` library – use the `markdown` package instead.
5+
- *BREAKING* Removed the `dates.dart` library.
46

57
## v2.3.2
68

example/common.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@ Map<String, String> queryString =
5252

5353
GitHub _createGitHub() {
5454
initGitHub();
55-
return new GitHub(auth: queryString["token"] != null
56-
? new Authentication.withToken(queryString["token"])
57-
: new Authentication.anonymous());
55+
return new GitHub(
56+
auth: queryString["token"] != null
57+
? new Authentication.withToken(queryString["token"])
58+
: new Authentication.anonymous());
5859
}
5960

6061
GitHub github = _createGitHub();

example/releases.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ void loadReleases() {
3232
rel.appendHtml("<br/><b>${key}</b>: ${value}",
3333
treeSanitizer: NodeTreeSanitizer.trusted);
3434
}
35+
3536
append("Tag", '<a href=${release.htmlUrl}>${release.tagName}</a>');
3637
append("Download",
3738
'<a href="${release.tarballUrl}">TAR</a> | <a href="${release.zipballUrl}">ZIP</a>');

example/user_info.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ void loadUser() {
4141
""");
4242
}
4343
}
44+
4445
append("Biography", user.bio);
4546
append("Company", user.company);
4647
append("Email", user.email);

lib/browser.dart

Lines changed: 3 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -6,49 +6,15 @@
66
*/
77
library github.browser;
88

9-
import "dart:async";
10-
import "dart:html";
9+
import "src/common.dart";
1110

12-
import "common.dart";
13-
import "http.dart" as http;
14-
export "common.dart";
15-
16-
part "src/browser/helper.dart";
17-
18-
class _BrowserHttpClient extends http.Client {
19-
@override
20-
Future<http.Response> request(http.Request request) {
21-
var req = new HttpRequest();
22-
var completer = new Completer<http.Response>();
23-
24-
req.open(request.method, request.url);
25-
26-
if (request.headers != null) {
27-
for (var header in request.headers.keys) {
28-
req.setRequestHeader(header, request.headers[header]);
29-
}
30-
}
31-
32-
req.onLoadEnd.listen((event) {
33-
completer.complete(
34-
new http.Response(req.responseText, req.responseHeaders, req.status));
35-
});
36-
37-
req.send(request.body);
38-
39-
return completer.future;
40-
}
41-
}
42-
43-
void initGitHub() {
44-
GitHub.defaultClient = () => new _BrowserHttpClient();
45-
}
11+
export "src/browser/helper.dart";
12+
export "src/common.dart";
4613

4714
/**
4815
* Creates a GitHub Client
4916
*/
5017
GitHub createGitHubClient(
5118
{Authentication auth, String endpoint: "https://api.github.com"}) {
52-
initGitHub();
5319
return new GitHub(auth: auth, endpoint: endpoint);
5420
}

lib/common.dart

Lines changed: 0 additions & 74 deletions
This file was deleted.

lib/dates.dart

Lines changed: 0 additions & 144 deletions
This file was deleted.

lib/http.dart

Lines changed: 0 additions & 11 deletions
This file was deleted.

lib/markdown.dart

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy