Skip to content

Commit 32ac355

Browse files
committed
Move gitbot website to its own repository.
0 parents  commit 32ac355

Some content is hidden

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

52 files changed

+5040
-0
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
npm-debug.log
2+
.DS_Store
3+
node_modules
4+
\#*.*\#
5+
*.pyc
6+
.hyde_deps
7+
deploy
8+
*sublime*
9+
keys

.jshintignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
content/media/js/index.js
2+
content/media/js/dust.js
3+
content/media/js/page.js
4+
content/media/js/superagent.js
5+
content/media/js/jquery.cookie.js
6+
content/media/js/socket.io
7+
deploy

.jshintrc

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
{
2+
// --------------------------------------------------------------------
3+
// JSHint Configuration, Strict Edition
4+
// --------------------------------------------------------------------
5+
//
6+
// This is a options template for [JSHint][1], using [JSHint example][2]
7+
// and [Ory Band's example][3] as basis and setting config values to
8+
// be most strict:
9+
//
10+
// * set all enforcing options to true
11+
// * set all relaxing options to false
12+
// * set all environment options to false, except the browser value
13+
// * set all JSLint legacy options to false
14+
//
15+
// [1]: http://www.jshint.com/
16+
// [2]: https://github.com/jshint/node-jshint/blob/master/example/config.json
17+
// [3]: https://github.com/oryband/dotfiles/blob/master/jshintrc
18+
//
19+
// @author http://michael.haschke.biz/
20+
// @license http://unlicense.org/
21+
22+
// == Enforcing Options ===============================================
23+
//
24+
// These options tell JSHint to be more strict towards your code. Use
25+
// them if you want to allow only a safe subset of JavaScript, very
26+
// useful when your codebase is shared with a big number of developers
27+
// with different skill levels.
28+
29+
"bitwise" : true, // Prohibit bitwise operators (&, |, ^, etc.).
30+
"curly" : false, // Require {} for every new block or scope.
31+
"eqeqeq" : true, // Require triple equals i.e. `===`.
32+
"forin" : false, // Tolerate `for in` loops without `hasOwnPrototype`.
33+
"immed" : true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
34+
"latedef" : true, // Prohibit variable use before definition.
35+
"newcap" : true, // Require capitalization of all constructor functions e.g. `new F()`.
36+
"noarg" : true, // Prohibit use of `arguments.caller` and `arguments.callee`.
37+
"noempty" : true, // Prohibit use of empty blocks.
38+
"nonew" : true, // Prohibit use of constructors for side-effects.
39+
"plusplus" : false, // Prohibit use of `++` & `--`.
40+
"regexp" : false, // Prohibit `.` and `[^...]` in regular expressions.
41+
"undef" : true, // Require all non-global variables be declared before they are used.
42+
"strict" : true, // Require `use strict` pragma in every file.
43+
"trailing" : true, // Prohibit trailing whitespaces.
44+
45+
// == Relaxing Options ================================================
46+
//
47+
// These options allow you to suppress certain types of warnings. Use
48+
// them only if you are absolutely positive that you know what you are
49+
// doing.
50+
51+
"asi" : false, // Tolerate Automatic Semicolon Insertion (no semicolons).
52+
"boss" : false, // Tolerate assignments inside if, for & while. Usually conditions & loops are for comparison, not assignments.
53+
"debug" : false, // Allow debugger statements e.g. browser breakpoints.
54+
"eqnull" : false, // Tolerate use of `== null`.
55+
"es5" : false, // Allow EcmaScript 5 syntax.
56+
"esnext" : false, // Allow ES.next specific features such as `const` and `let`.
57+
"evil" : false, // Tolerate use of `eval`.
58+
"expr" : false, // Tolerate `ExpressionStatement` as Programs.
59+
"funcscope" : false, // Tolerate declarations of variables inside of control structures while accessing them later from the outside.
60+
"globalstrict" : false, // Allow global "use strict" (also enables 'strict').
61+
"iterator" : false, // Allow usage of __iterator__ property.
62+
"lastsemic" : false, // Tolerat missing semicolons when the it is omitted for the last statement in a one-line block.
63+
"laxbreak" : false, // Tolerate unsafe line breaks e.g. `return [\n] x` without semicolons.
64+
"laxcomma" : true, // Suppress warnings about comma-first coding style.
65+
"loopfunc" : false, // Allow functions to be defined within loops.
66+
"multistr" : false, // Tolerate multi-line strings.
67+
"onecase" : false, // Tolerate switches with just one case.
68+
"proto" : false, // Tolerate __proto__ property. This property is deprecated.
69+
"regexdash" : false, // Tolerate unescaped last dash i.e. `[-...]`.
70+
"scripturl" : false, // Tolerate script-targeted URLs.
71+
"smarttabs" : false, // Tolerate mixed tabs and spaces when the latter are used for alignmnent only.
72+
"shadow" : false, // Allows re-define variables later in code e.g. `var x=1; x=2;`.
73+
"sub" : false, // Tolerate all forms of subscript notation besides dot notation e.g. `dict['key']` instead of `dict.key`.
74+
"supernew" : false, // Tolerate `new function () { ... };` and `new Object;`.
75+
"validthis" : false, // Tolerate strict violations when the code is running in strict mode and you use this in a non-constructor function.
76+
77+
// == Environments ====================================================
78+
//
79+
// These options pre-define global variables that are exposed by
80+
// popular JavaScript libraries and runtime environments—such as
81+
// browser or node.js.
82+
83+
"browser" : true, // Standard browser globals e.g. `window`, `document`.
84+
"couch" : false, // Enable globals exposed by CouchDB.
85+
"devel" : false, // Allow development statements e.g. `console.log();`.
86+
"dojo" : false, // Enable globals exposed by Dojo Toolkit.
87+
"jquery" : true, // Enable globals exposed by jQuery JavaScript library.
88+
"mootools" : false, // Enable globals exposed by MooTools JavaScript framework.
89+
"node" : false, // Enable globals available when code is running inside of the NodeJS runtime environment.
90+
"nonstandard" : false, // Define non-standard but widely adopted globals such as escape and unescape.
91+
"prototypejs" : false, // Enable globals exposed by Prototype JavaScript framework.
92+
"rhino" : false, // Enable globals available when your code is running inside of the Rhino runtime environment.
93+
"wsh" : false, // Enable globals available when your code is running as a script for the Windows Script Host.
94+
95+
// == JSLint Legacy ===================================================
96+
//
97+
// These options are legacy from JSLint. Aside from bug fixes they will
98+
// not be improved in any way and might be removed at any point.
99+
100+
"nomen" : false, // Prohibit use of initial or trailing underbars in names.
101+
"onevar" : false, // Allow only one `var` statement per function.
102+
"passfail" : false, // Stop on first error.
103+
"white" : false // Check against strict whitespace and indentation rules.
104+
105+
}

content/index.html

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
extends: root.j2
3+
---
4+
5+
--- script
6+
7+
{{ super() }}
8+
<script type="text/javascript" src="/media/js/socket.io/socket.io.min.js"></script>
9+
.
10+
11+
--- style
12+
13+
<link rel="stylesheet" type="text/css" href="/media/css/index.css"/>
14+
15+
.
16+
17+
--- app
18+
19+
<script type="text/javascript" src="/media/js/index.js"></script>
20+
21+
.
22+
23+
--- branding
24+
25+
<hgroup><!--
26+
--><h1>Gitbot</h1>
27+
<h2>Octocat is my best friend.</h2><!--
28+
--></hgroup>
29+
30+
.
31+
32+
--- html
33+
34+
<div id="container" class="container">
35+
36+
</div>
37+
38+
.

content/media/css/app.styl

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
.container.is-loading
2+
opacity 0.5
3+
&:before
4+
content 'loading...'
5+
font-size 24px
6+
margin 32px
7+
text-align center
8+
color gray
9+
10+
.is-refreshing
11+
opacity 0.5
12+
transition opacity 0.2s
13+
14+
15+
body
16+
font-family "myriad pro"
17+
background #fc
18+
color rgba(#0, .7)
19+
20+
.is-loading
21+
opacity 0.5
22+
23+
#header
24+
color box_color
25+
background-color mask_color
26+
clearfix()
27+
height 44px
28+
29+
30+
h1, h2, a
31+
line-height 24px
32+
margin-top 18px
33+
34+
h2
35+
color line_color
36+
37+
.headerWrap
38+
width 960px
39+
margin 0 auto
40+
clearfix()
41+
42+
#branding
43+
float left
44+
45+
h1, h2
46+
float left
47+
48+
#nav
49+
float right
50+
51+
#navAccount
52+
clearfix()
53+
54+
>*
55+
float left
56+
margin-right u
57+
padding 0
58+
59+
img
60+
margin-bottom -20px
61+
size 32px
62+
63+
a
64+
color lighten(link_color, 10)
65+
66+
&:hover
67+
color lighten(link_color, 20)
68+
69+
h1
70+
font 24px bold
71+
margin-top 16px
72+
margin-right 4px
73+
74+
h2
75+
font 18px normal
76+
77+
h3
78+
font-size basefont
79+
80+
img
81+
width 32px
82+
height 32px
83+
margin-top 4px
84+
85+
#main
86+
width 960px
87+
margin 6*u auto
88+
transition opacity .2s
89+
90+
&.is-loading, .home &
91+
opacity 0

0 commit comments

Comments
 (0)