Skip to content

Commit 4282e9e

Browse files
committed
Adds server and client
1 parent d41347f commit 4282e9e

28 files changed

Lines changed: 1699 additions & 0 deletions

Gruntfile.js

Lines changed: 412 additions & 0 deletions
Large diffs are not rendered by default.

bower.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "client",
3+
"version": "0.0.0",
4+
"dependencies": {
5+
"angular": "1.2.16",
6+
"json3": "~3.3.1",
7+
"es5-shim": "~3.1.0",
8+
"bootstrap": "~3.2.0",
9+
"angular-resource": "1.2.16",
10+
"angular-cookies": "1.2.16",
11+
"angular-route": "1.2.16"
12+
},
13+
"devDependencies": {
14+
"angular-mocks": "1.2.16",
15+
"angular-scenario": "1.2.16"
16+
},
17+
"appPath": "client/app/"
18+
}

client/app/.buildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.coffee

client/app/.htaccess

Lines changed: 543 additions & 0 deletions
Large diffs are not rendered by default.

client/app/404.html

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Page Not Found :(</title>
6+
<style>
7+
::-moz-selection {
8+
background: #b3d4fc;
9+
text-shadow: none;
10+
}
11+
12+
::selection {
13+
background: #b3d4fc;
14+
text-shadow: none;
15+
}
16+
17+
html {
18+
padding: 30px 10px;
19+
font-size: 20px;
20+
line-height: 1.4;
21+
color: #737373;
22+
background: #f0f0f0;
23+
-webkit-text-size-adjust: 100%;
24+
-ms-text-size-adjust: 100%;
25+
}
26+
27+
html,
28+
input {
29+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
30+
}
31+
32+
body {
33+
max-width: 500px;
34+
_width: 500px;
35+
padding: 30px 20px 50px;
36+
border: 1px solid #b3b3b3;
37+
border-radius: 4px;
38+
margin: 0 auto;
39+
box-shadow: 0 1px 10px #a7a7a7, inset 0 1px 0 #fff;
40+
background: #fcfcfc;
41+
}
42+
43+
h1 {
44+
margin: 0 10px;
45+
font-size: 50px;
46+
text-align: center;
47+
}
48+
49+
h1 span {
50+
color: #bbb;
51+
}
52+
53+
h3 {
54+
margin: 1.5em 0 0.5em;
55+
}
56+
57+
p {
58+
margin: 1em 0;
59+
}
60+
61+
ul {
62+
padding: 0 0 0 40px;
63+
margin: 1em 0;
64+
}
65+
66+
.container {
67+
max-width: 380px;
68+
_width: 380px;
69+
margin: 0 auto;
70+
}
71+
72+
/* google search */
73+
74+
#goog-fixurl ul {
75+
list-style: none;
76+
padding: 0;
77+
margin: 0;
78+
}
79+
80+
#goog-fixurl form {
81+
margin: 0;
82+
}
83+
84+
#goog-wm-qt,
85+
#goog-wm-sb {
86+
border: 1px solid #bbb;
87+
font-size: 16px;
88+
line-height: normal;
89+
vertical-align: top;
90+
color: #444;
91+
border-radius: 2px;
92+
}
93+
94+
#goog-wm-qt {
95+
width: 220px;
96+
height: 20px;
97+
padding: 5px;
98+
margin: 5px 10px 0 0;
99+
box-shadow: inset 0 1px 1px #ccc;
100+
}
101+
102+
#goog-wm-sb {
103+
display: inline-block;
104+
height: 32px;
105+
padding: 0 10px;
106+
margin: 5px 0 0;
107+
white-space: nowrap;
108+
cursor: pointer;
109+
background-color: #f5f5f5;
110+
background-image: -webkit-linear-gradient(rgba(255,255,255,0), #f1f1f1);
111+
background-image: -moz-linear-gradient(rgba(255,255,255,0), #f1f1f1);
112+
background-image: -ms-linear-gradient(rgba(255,255,255,0), #f1f1f1);
113+
background-image: -o-linear-gradient(rgba(255,255,255,0), #f1f1f1);
114+
-webkit-appearance: none;
115+
-moz-appearance: none;
116+
appearance: none;
117+
*overflow: visible;
118+
*display: inline;
119+
*zoom: 1;
120+
}
121+
122+
#goog-wm-sb:hover,
123+
#goog-wm-sb:focus {
124+
border-color: #aaa;
125+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
126+
background-color: #f8f8f8;
127+
}
128+
129+
#goog-wm-qt:hover,
130+
#goog-wm-qt:focus {
131+
border-color: #105cb6;
132+
outline: 0;
133+
color: #222;
134+
}
135+
136+
input::-moz-focus-inner {
137+
padding: 0;
138+
border: 0;
139+
}
140+
</style>
141+
</head>
142+
<body>
143+
<div class="container">
144+
<h1>Not found <span>:(</span></h1>
145+
<p>Sorry, but the page you were trying to view does not exist.</p>
146+
<p>It looks like this was the result of either:</p>
147+
<ul>
148+
<li>a mistyped address</li>
149+
<li>an out-of-date link</li>
150+
</ul>
151+
<script>
152+
var GOOG_FIXURL_LANG = (navigator.language || '').slice(0,2),GOOG_FIXURL_SITE = location.host;
153+
</script>
154+
<script src="//linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
155+
</div>
156+
</body>
157+
</html>

client/app/favicon.ico

4.19 KB
Binary file not shown.

client/app/images/yeoman.png

13.2 KB
Loading

client/app/index.html

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<!doctype html>
2+
<html class="no-js">
3+
<head>
4+
<meta charset="utf-8">
5+
<title></title>
6+
<meta name="description" content="">
7+
<meta name="viewport" content="width=device-width">
8+
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
9+
<!-- build:css(.) styles/vendor.css -->
10+
<!-- bower:css -->
11+
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" />
12+
<!-- endbower -->
13+
<!-- endbuild -->
14+
<!-- build:css(.tmp) styles/main.css -->
15+
<link rel="stylesheet" href="styles/main.css">
16+
<!-- endbuild -->
17+
</head>
18+
<body ng-app="clientApp">
19+
<!--[if lt IE 7]>
20+
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
21+
<![endif]-->
22+
23+
<!-- Add your site or application content here -->
24+
<div class="container">
25+
<div class="header">
26+
<ul class="nav nav-pills pull-right">
27+
<li class="active"><a ng-href="#">Home</a></li>
28+
<li><a ng-href="#/about">About</a></li>
29+
<li><a ng-href="#">Contact</a></li>
30+
</ul>
31+
<h3 class="text-muted">client</h3>
32+
</div>
33+
34+
<div ng-view=""></div>
35+
36+
<div class="footer">
37+
<p><span class="glyphicon glyphicon-heart"></span> from the Yeoman team</p>
38+
</div>
39+
</div>
40+
41+
42+
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID -->
43+
<script>
44+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
45+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
46+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
47+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
48+
49+
ga('create', 'UA-XXXXX-X');
50+
ga('send', 'pageview');
51+
</script>
52+
53+
<!-- build:js(.) scripts/oldieshim.js -->
54+
<!--[if lt IE 9]>
55+
<script src="bower_components/es5-shim/es5-shim.js"></script>
56+
<script src="bower_components/json3/lib/json3.min.js"></script>
57+
<![endif]-->
58+
<!-- endbuild -->
59+
60+
<!-- build:js(.) scripts/vendor.js -->
61+
<!-- bower:js -->
62+
<script src="bower_components/jquery/dist/jquery.js"></script>
63+
<script src="bower_components/angular/angular.js"></script>
64+
<script src="bower_components/json3/lib/json3.js"></script>
65+
<script src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
66+
<script src="bower_components/angular-resource/angular-resource.js"></script>
67+
<script src="bower_components/angular-cookies/angular-cookies.js"></script>
68+
<script src="bower_components/angular-route/angular-route.js"></script>
69+
<!-- endbower -->
70+
<!-- endbuild -->
71+
72+
<!-- build:js({.tmp,app}) scripts/scripts.js -->
73+
<script src="scripts/app.js"></script>
74+
<script src="scripts/controllers/main.js"></script>
75+
<script src="scripts/controllers/about.js"></script>
76+
<!-- endbuild -->
77+
</body>
78+
</html>

client/app/robots.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# robotstxt.org
2+
3+
User-agent: *

client/app/scripts/app.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
'use strict';
2+
3+
/**
4+
* @ngdoc overview
5+
* @name clientApp
6+
* @description
7+
* # clientApp
8+
*
9+
* Main module of the application.
10+
*/
11+
angular
12+
.module('clientApp', [
13+
'ngCookies',
14+
'ngResource',
15+
'ngRoute'
16+
])
17+
.config(function ($routeProvider) {
18+
$routeProvider
19+
.when('/', {
20+
templateUrl: 'views/main.html',
21+
controller: 'MainCtrl'
22+
})
23+
.when('/about', {
24+
templateUrl: 'views/about.html',
25+
controller: 'AboutCtrl'
26+
})
27+
.otherwise({
28+
redirectTo: '/'
29+
});
30+
});

0 commit comments

Comments
 (0)