Skip to content

Commit 9813096

Browse files
committedMay 12, 2015
primer commit
0 parents  commit 9813096

23 files changed

+1063
-0
lines changed
 

‎.htaccess

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

‎404.html

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

‎app.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
application: gdg-angular-intro
2+
version: 1
3+
runtime: python27
4+
api_version: 1
5+
threadsafe: yes
6+
7+
handlers:
8+
- url: /favicon\.ico
9+
static_files: favicon.ico
10+
upload: favicon\.ico
11+
- url: /styles
12+
static_dir: styles
13+
- url: /scripts
14+
static_dir: scripts
15+
- url: /fonts
16+
static_dir: fonts
17+
- url: /views
18+
static_dir: views
19+
- url: /images
20+
static_dir: images
21+
22+
- url: .*
23+
script: main.app
24+
25+
libraries:
26+
- name: webapp2
27+
version: "2.5.2"
28+
- name: jinja2
29+
version: latest
30+
- name: markupsafe
31+
version: latest

‎favicon.ico

4.19 KB
Binary file not shown.
19.7 KB
Binary file not shown.

‎fonts/glyphicons-halflings-regular.svg

Lines changed: 288 additions & 0 deletions
Loading
44.3 KB
Binary file not shown.
22.9 KB
Binary file not shown.
17.6 KB
Binary file not shown.

‎images/yeoman.c582c4d1.png

8.31 KB
Loading

‎index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<!doctype html> <html class="no-js"> <head> <meta charset="utf-8"> <title>Demo AngularJS</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width"> <!-- Place favicon.ico and apple-touch-icon.png in the root directory --> <link rel="stylesheet" href="styles/vendor.3b3950a2.css"> <link rel="stylesheet" href="styles/main.82f1d5fb.css"> <body ng-app="angularclApp"> <!--[if lt IE 7]>
2+
<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>
3+
<![endif]--> <!-- Add your site or application content here --> <div class="header"> <div class="navbar navbar-default" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#js-navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#/">Demo AngularJS.cl</a> </div> <div class="collapse navbar-collapse" id="js-navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="#/">Inicio</a></li> <li><a href="#/listado">Listado</a></li> </ul> </div> </div> </div> </div> <div class="container"> <div ng-view></div> </div> <div class="footer"> <div class="container"> <p><span class="glyphicon glyphicon-copyright-mark"></span> <a href="https://twitter.com/lordaeron_" target="_blank">Christian Rojas</a></p> </div> </div> <!-- Google Analytics: change UA-XXXXX-X to be your site's ID --> <script>!function(A,n,g,u,l,a,r){A.GoogleAnalyticsObject=l,A[l]=A[l]||function(){
4+
(A[l].q=A[l].q||[]).push(arguments)},A[l].l=+new Date,a=n.createElement(g),
5+
r=n.getElementsByTagName(g)[0],a.src=u,r.parentNode.insertBefore(a,r)
6+
}(window,document,'script','//www.google-analytics.com/analytics.js','ga');
7+
ga('create', 'XXX', 'auto');
8+
ga('send', 'pageview');</script> <script src="scripts/vendor.293bb1a3.js"></script> <script src="scripts/scripts.3b535f67.js"></script>

‎index.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
indexes:
2+
3+
# AUTOGENERATED
4+
5+
# This index.yaml is automatically updated whenever the dev_appserver
6+
# detects that a new type of query is run. If you want to manage the
7+
# index.yaml file manually, remove the above marker line (the line
8+
# saying "# AUTOGENERATED"). If you want to manage some indexes
9+
# manually, move them above the marker line. The index.yaml file is
10+
# automatically uploaded to the admin console when you next deploy
11+
# your application using appcfg.py.
12+

‎main.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env python
2+
3+
import webapp2
4+
import jinja2
5+
import os
6+
7+
8+
JINJA_ENVIRONMENT = jinja2.Environment(
9+
loader=jinja2.FileSystemLoader(os.path.dirname(__file__)),
10+
autoescape=True,
11+
extensions=['jinja2.ext.autoescape'])
12+
13+
14+
class MainHandler(webapp2.RequestHandler):
15+
def get(self):
16+
template = JINJA_ENVIRONMENT.get_template('index.html')
17+
self.response.write(template.render())
18+
19+
app = webapp2.WSGIApplication([
20+
('/', MainHandler)
21+
], debug=True)

‎main.pyc

1.02 KB
Binary file not shown.

‎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: *

‎scripts/scripts.3b535f67.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎scripts/vendor.293bb1a3.js

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎styles/main.82f1d5fb.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎styles/vendor.3b3950a2.css

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎views/inicio.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div class="jumbotron"> <img src="images/yeoman.c582c4d1.png" alt="I'm Yeoman"><br> <h2>AngularJS + Google Apps Script + Google Spreadsheets</h2> <br> <p> <a class="btn btn-success" ng-href="#/listado">Ir a demo! <span class="glyphicon glyphicon-ok"></span></a> </p> </div>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div> <div class="modal-header"> <h3 class="modal-title" align="center">Creación de nuevo registro</h3> </div> <form ng-submit="guardar()" name="nRegForm"> <div class="modal-body"> <div class="form-group" ng-class="{'has-error': nRegForm.nombre.$invalid, 'has-success': nRegForm.nombre.$valid}"> <label>Nombres</label> <input type="text" class="form-control" name="nombre" autofocus placeholder="Nombres" ng-model="nuevoReg.nombre" required> </div> <div class="form-group" ng-class="{'has-error': nRegForm.apellido.$invalid, 'has-success': nRegForm.apellido.$valid}"> <label>Apellidos</label> <input type="text" class="form-control" name="apellido" placeholder="Apellidos" ng-model="nuevoReg.apellido" required> </div> <div class="form-group" ng-class="{'has-error': nRegForm.correo.$invalid, 'has-success': nRegForm.correo.$valid}"> <label>Correo electrónico</label> <input type="email" class="form-control" name="correo" placeholder="Correo Electrónico" ng-model="nuevoReg.correo" required> </div> </div> <div class="modal-footer" align="right"> <button class="btn btn-primary" type="submit" ng-disabled="nRegForm.$invalid"><span class="glyphicon glyphicon-ok"></span> Guardar</button> <button class="btn btn-default" ng-click="limpiar()"><span class="glyphicon glyphicon-refresh"></span> Limpiar</button> <button class="btn btn-danger" ng-click="cancelar()"><span class="glyphicon glyphicon-remove"></span> Cancelar</button> </div> </form> </div>

‎views/listado/listado.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div class="row" ng-controller="ListadoCtrl"> <div class="col-xs-12 col-md-12"> <div> <h2>Listado</h2> <div class="form-inline"> <div class="form-group"> <input type="text" class="form-control" style="width:800px" name="filtro" placeholder="Buscar..." ng-model="buscarPor"> </div> <button class="btn btn-success" title="Crear nuevo registro" ng-click="nuevoRegistro()"> <span class="glyphicon glyphicon-plus"></span> Nuevo </button> </div> </div> <br> <tabla-listado></tabla-listado> </div> </div>

‎views/listado/tabla-listado.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div class="responsive-table"> <table class="table table-hover table-striped"> <thead class="active" style="background-color:#"> <th>Fecha <th>Nombre <th>Apellido <th>Correo <tbody ng-repeat="registro in registros | filter:buscarPor | orderBy: '-fecha' "> <td>{{ registro.fecha | date:'medium' }} <td>{{ registro.nombre }} <td>{{ registro.apellido }} <td>{{ registro.correo }} </table> </div>

0 commit comments

Comments
 (0)