Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 4 commits
  • 6 files changed
  • 0 commit comments
  • 1 contributor
View
12 README.md
@@ -5,4 +5,14 @@ This is a result of a random idea "What would my github events look like in a ti
This is still rough, so there are bugs. Unfortunately I can only pull down 10 pages of events from Github. I'm going to tinker with http://www.githubarchive.org/ to see if I may be able to get more from that instead.
-Oh and the design is hideous. I'd welcome any designers to submit a better design and I'd integrate it.
+Oh and the design is hideous. I'd welcome any designers to submit a design and I'd gladly integrate it.
+
+TODO
+--------
+
+* Finish the views for all events
+* Fix odd masonry behavior where all the events shift to the left
+* Better filtering logic (Combine a few items. Not everything is filterable)
+* Relate new repo events with repo list. Renaming repos results in broken links.
+* Consolidate Push events for a single day. There's need to display one block per event.
+* Perhaps wack the site with an ugly stick of hot pink. That may motivate a designer that's currently on the fence :)
View
8 coffee/site.coffee
@@ -77,6 +77,7 @@ class Event extends Spine.Model
when "PushEvent"
if @payload.commits?.length > 0 then "push" else "skip"
when "DeleteEvent" then "skip"
+ when "WatchEvent" then "watch"
else "item"
viewInfo: ->
@@ -150,6 +151,13 @@ class Event extends Spine.Model
gravatar:@payload.target.avatar_url
date:@created_at_short_string()
]
+ when "watch"
+ [view,
+ id:@id
+ repo:@repo.name
+ repo_url:"https://github.com/#{@repo.name}"
+ date:@created_at_short_string()
+ ]
when "repository"
[view,
id:@id
View
11 coffee/views.coffee
@@ -25,7 +25,6 @@ views["index"] = """
</div>
"""
-
views["show"] = """
<header class="page-header well row">
<div class="span1 offset3"><img src="{{user.avatar_url}}" alt="image of {{user.name}}"/></div>
@@ -106,8 +105,16 @@ views["repository"] = """
</li>
"""
+views["watch"] = """
+<li class="item" data-id="{{id}}" data-type="branch">
+ <span class="corner"></span>
+ <h1>Began watching <a href="{{repo_url}}">{{repo}}</a></h1>
+ <span class="date">{{date}}</span>
+</li>
+"""
+
views["branch"] = """
-<li class="item hidden" data-id="{{id}}" data-type="branch">
+<li class="item" data-id="{{id}}" data-type="branch">
<span class="corner"></span>
<h1>Branched <a href="{{url}}">{{name}}</a> from <a href="{{repo_url}}">{{repo}}</a></h1>
<span class="date">{{date}}</span>
View
2  index.html
@@ -29,6 +29,6 @@
<script src="js-lib/spine/route.js" type="text/javascript"></script>
<script src="js-lib/mustache.js" type="text/javascript"></script>
<script src="js/views.js" type="text/javascript"></script>
- <script src="js/site.js?2" type="text/javascript"></script>
+ <script src="js/site.js?3" type="text/javascript"></script>
</body>
</html>
View
11 js/site.js
@@ -189,6 +189,8 @@
break;
case "DeleteEvent":
return "skip";
+ case "WatchEvent":
+ return "watch";
default:
return "item";
}
@@ -293,6 +295,15 @@
date: this.created_at_short_string()
}
];
+ case "watch":
+ return [
+ view, {
+ id: this.id,
+ repo: this.repo.name,
+ repo_url: "https://github.com/" + this.repo.name,
+ date: this.created_at_short_string()
+ }
+ ];
case "repository":
return [
view, {
View
4 js/views.js
@@ -26,7 +26,9 @@
views["repository"] = "<li class=\"prominent\" data-id=\"{{id}}\">\n <div class=\"well\">Created: <a href=\"{{repo_url}}\">{{repo}}</a> <div>{{date}}</div></div>\n</li>";
- views["branch"] = "<li class=\"item hidden\" data-id=\"{{id}}\" data-type=\"branch\">\n <span class=\"corner\"></span>\n <h1>Branched <a href=\"{{url}}\">{{name}}</a> from <a href=\"{{repo_url}}\">{{repo}}</a></h1>\n <span class=\"date\">{{date}}</span>\n</li>";
+ views["watch"] = "<li class=\"item\" data-id=\"{{id}}\" data-type=\"branch\">\n <span class=\"corner\"></span>\n <h1>Began watching <a href=\"{{repo_url}}\">{{repo}}</a></h1>\n <span class=\"date\">{{date}}</span>\n</li>";
+
+ views["branch"] = "<li class=\"item\" data-id=\"{{id}}\" data-type=\"branch\">\n <span class=\"corner\"></span>\n <h1>Branched <a href=\"{{url}}\">{{name}}</a> from <a href=\"{{repo_url}}\">{{repo}}</a></h1>\n <span class=\"date\">{{date}}</span>\n</li>";
views["tag"] = "<li class=\"item\" data-id=\"{{id}}\" data-type=\"tag\">\n <span class=\"corner\"></span>\n <h1>Tagged <a href=\"{{url}}\">{{name}}</a> from <a href=\"{{repo_url}}\">{{repo}}</a></h1>\n <span class=\"date\">{{date}}</span>\n</li>";

No commit comments for this range

Something went wrong with that request. Please try again.