Skip to content

Commit

Permalink
Merge pull request #1 from phndavid13/ultimoCommit
Browse files Browse the repository at this point in the history
Implementacion de arreglo para los vehiculos.
  • Loading branch information
santidelosrios committed Mar 25, 2015
2 parents 4ac2ca0 + e51dbce commit 6eba482
Show file tree
Hide file tree
Showing 5 changed files with 147 additions and 153 deletions.
164 changes: 82 additions & 82 deletions npm-debug.log
Original file line number Diff line number Diff line change
Expand Up @@ -2,86 +2,86 @@
1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'chpass' ]
2 info using [email protected]
3 info using [email protected]
1 verbose cli 'magnific',
1 verbose cli '-popup' ]
2 info using [email protected]
3 info using [email protected]
4 verbose node symlink C:\Program Files\nodejs\\node.exe
5 silly cache add args [ 'chpass', null ]
6 verbose cache add spec chpass
7 silly cache add parsed spec { raw: 'chpass',
7 silly cache add scope: null,
7 silly cache add name: 'chpass',
7 silly cache add rawSpec: '',
7 silly cache add spec: '*',
7 silly cache add type: 'range' }
8 verbose addNamed chpass@*
9 silly addNamed semver.valid null
10 silly addNamed semver.validRange *
11 silly addNameRange { name: 'chpass', range: '*', hasData: false }
12 silly mapToRegistry name chpass
13 silly mapToRegistry using default registry
14 silly mapToRegistry registry https://registry.npmjs.org/
15 silly mapToRegistry uri https://registry.npmjs.org/chpass
16 verbose addNameRange registry:https://registry.npmjs.org/chpass not in flight; fetching
17 verbose request uri https://registry.npmjs.org/chpass
18 verbose request no auth needed
19 info attempt registry request try #1 at 14:03:01
20 verbose request id 973ef2b05e7a6a4b
21 http request GET https://registry.npmjs.org/chpass
22 http 404 https://registry.npmjs.org/chpass
23 verbose headers { date: 'Sat, 14 Mar 2015 19:03:09 GMT',
23 verbose headers server: 'CouchDB/1.6.1 (Erlang OTP/R14B04)',
23 verbose headers 'content-type': 'application/json',
23 verbose headers 'cache-control': 'max-age=0',
23 verbose headers 'content-length': '52',
23 verbose headers 'accept-ranges': 'bytes',
23 verbose headers via: '1.1 varnish',
23 verbose headers age: '0',
23 verbose headers 'x-served-by': 'cache-iad2121-IAD',
23 verbose headers 'x-cache': 'MISS',
23 verbose headers 'x-cache-hits': '0',
23 verbose headers 'x-timer': 'S1426359789.238725,VS0,VE26',
23 verbose headers 'keep-alive': 'timeout=10, max=50',
23 verbose headers connection: 'Keep-Alive' }
24 silly get cb [ 404,
24 silly get { date: 'Sat, 14 Mar 2015 19:03:09 GMT',
24 silly get server: 'CouchDB/1.6.1 (Erlang OTP/R14B04)',
24 silly get 'content-type': 'application/json',
24 silly get 'cache-control': 'max-age=0',
24 silly get 'content-length': '52',
24 silly get 'accept-ranges': 'bytes',
24 silly get via: '1.1 varnish',
24 silly get age: '0',
24 silly get 'x-served-by': 'cache-iad2121-IAD',
24 silly get 'x-cache': 'MISS',
24 silly get 'x-cache-hits': '0',
24 silly get 'x-timer': 'S1426359789.238725,VS0,VE26',
24 silly get 'keep-alive': 'timeout=10, max=50',
24 silly get connection: 'Keep-Alive' } ]
25 verbose stack Error: 404 Not Found: chpass
25 verbose stack at CachingRegistryClient.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:251:14)
25 verbose stack at Request._callback (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:178:14)
25 verbose stack at Request.self.callback (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:344:22)
25 verbose stack at Request.emit (events.js:110:17)
25 verbose stack at Request.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1239:14)
25 verbose stack at Request.emit (events.js:129:20)
25 verbose stack at IncomingMessage.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1187:12)
25 verbose stack at IncomingMessage.emit (events.js:129:20)
25 verbose stack at _stream_readable.js:908:16
25 verbose stack at process._tickCallback (node.js:355:11)
26 verbose statusCode 404
27 verbose pkgid chpass
28 verbose cwd C:\Users\N.David\Documents\GitHub\integratic_1.0
29 error Windows_NT 6.3.9600
30 error argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "chpass"
31 error node v0.12.0
32 error npm v2.5.1
33 error code E404
34 error 404 Not Found: chpass
34 error 404
34 error 404 'chpass' is not in the npm registry.
34 error 404 You should bug the author to publish it (or use the name yourself!)
34 error 404
34 error 404 Note that you can also install from a
34 error 404 tarball, folder, http url, or git url.
35 verbose exit [ 1, true ]
5 verbose cache add [ 'magnific', null ]
6 verbose cache add name=undefined spec="magnific" args=["magnific",null]
7 verbose parsed url { protocol: null,
7 verbose parsed url slashes: null,
7 verbose parsed url auth: null,
7 verbose parsed url host: null,
7 verbose parsed url port: null,
7 verbose parsed url hostname: null,
7 verbose parsed url hash: null,
7 verbose parsed url search: null,
7 verbose parsed url query: null,
7 verbose parsed url pathname: 'magnific',
7 verbose parsed url path: 'magnific',
7 verbose parsed url href: 'magnific' }
8 silly lockFile ef57f856-magnific magnific
9 verbose lock magnific C:\Users\user\AppData\Roaming\npm-cache\ef57f856-magnific.lock
10 silly lockFile ef57f856-magnific magnific
11 silly lockFile ef57f856-magnific magnific
12 verbose addNamed [ 'magnific', '' ]
13 verbose addNamed [ null, '*' ]
14 silly lockFile b386d140-magnific magnific@
15 verbose lock magnific@ C:\Users\user\AppData\Roaming\npm-cache\b386d140-magnific.lock
16 silly addNameRange { name: 'magnific', range: '*', hasData: false }
17 verbose request where is /magnific
18 verbose request registry https://registry.npmjs.org/
19 verbose request id 682ccc9c9421c8dc
20 verbose url raw /magnific
21 verbose url resolving [ 'https://registry.npmjs.org/', './magnific' ]
22 verbose url resolved https://registry.npmjs.org/magnific
23 verbose request where is https://registry.npmjs.org/magnific
24 info trying registry request attempt 1 at 15:20:00
25 http GET https://registry.npmjs.org/magnific
26 http 404 https://registry.npmjs.org/magnific
27 verbose headers { date: 'Tue, 24 Mar 2015 20:20:00 GMT',
27 verbose headers server: 'CouchDB/1.5.0 (Erlang OTP/R16B03)',
27 verbose headers 'content-type': 'application/json',
27 verbose headers 'cache-control': 'max-age=0',
27 verbose headers 'content-length': '51',
27 verbose headers 'accept-ranges': 'bytes',
27 verbose headers via: '1.1 varnish',
27 verbose headers age: '0',
27 verbose headers 'x-served-by': 'cache-iad2133-IAD',
27 verbose headers 'x-cache': 'MISS',
27 verbose headers 'x-cache-hits': '0',
27 verbose headers 'x-timer': 'S1427228400.453713,VS0,VE90',
27 verbose headers 'keep-alive': 'timeout=10, max=50',
27 verbose headers connection: 'Keep-Alive' }
28 silly registry.get cb [ 404,
28 silly registry.get { date: 'Tue, 24 Mar 2015 20:20:00 GMT',
28 silly registry.get server: 'CouchDB/1.5.0 (Erlang OTP/R16B03)',
28 silly registry.get 'content-type': 'application/json',
28 silly registry.get 'cache-control': 'max-age=0',
28 silly registry.get 'content-length': '51',
28 silly registry.get 'accept-ranges': 'bytes',
28 silly registry.get via: '1.1 varnish',
28 silly registry.get age: '0',
28 silly registry.get 'x-served-by': 'cache-iad2133-IAD',
28 silly registry.get 'x-cache': 'MISS',
28 silly registry.get 'x-cache-hits': '0',
28 silly registry.get 'x-timer': 'S1427228400.453713,VS0,VE90',
28 silly registry.get 'keep-alive': 'timeout=10, max=50',
28 silly registry.get connection: 'Keep-Alive' } ]
29 silly lockFile b386d140-magnific magnific@
30 silly lockFile b386d140-magnific magnific@
31 error 404 404 Not Found: magnific
31 error 404
31 error 404 'magnific' is not in the npm registry.
31 error 404 You should bug the author to publish it
31 error 404
31 error 404 Note that you can also install from a
31 error 404 tarball, folder, or http url, or git url.
32 error System Windows_NT 6.2.9200
33 error command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "magnific" "-popup"
34 error cwd C:\Users\user\Dropbox\Integratic\integratic_1.0
35 error node -v v0.10.33
36 error npm -v 1.4.28
37 error code E404
38 verbose exit [ 1, true ]
12 changes: 10 additions & 2 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,23 @@
/**
* LABELS
*/

body{
background: #fff;
font-family: 'Open Sans Condensed', sans-serif;
width: 100%;
height: 100%;
-webkit-backface-visibility:hidden;
}
header{
background-color: #009AE5;
overflow: hidden;
height: 50px;
width: 100%;
}
html{
-webkit-backface-visibility:hidden;
}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
-webkit-appearance: none;
Expand Down Expand Up @@ -54,7 +59,7 @@
}
#lightreg{
overflow-y:hidden;
height: 50%
height: 50%;
}
#map-canvas{
width: 100%;
Expand Down Expand Up @@ -270,4 +275,7 @@
left: 0;
height: 100%;
width: 100%;
}
}
/**
* dialog
*/
Binary file modified public/img/Thumbs.db
Binary file not shown.
60 changes: 11 additions & 49 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,50 +29,12 @@ <h3 class="name-user">Juan Marmolejo</h3>
</div>
<!--Aside list-vehicle -->
<aside class="data-list" id="style-3">
<div class="list-group">
<div class="list-group-item">
<h4 class="list-group-item-heading"><a href=""><img src="./img/pointer.png"></a> Vehiculo-1 </h4>
<p class="list-group-item-text">Modelo: Optra 2013</p>
<p class="list-group-item-text">Placa: VCH-123 </p>
<div class="list-group" ng-controller="VehiculesController">
<div class="list-group-item" ng-repeat="vehicule in vehicules">
<h4 class="list-group-item-heading"><a href=""><img src="./img/pointer.png"></a> Vehiculo-{{$index+1}} </h4>
<p class="list-group-item-text">{{vehicule.model}}</p>
<p class="list-group-item-text">{{vehicule.placa}}</p>
<p class="list-group-item-text"><a href="javascript:void(0)" onclick = "document.getElementById('lightreg').style.display='block';document.getElementById('fadereg').style.display='block'" class="list-group-item-text" >ver mas</a></p>
</div>
<div class="list-group-item">
<h4 class="list-group-item-heading"><a href=""><img class="unpointer" src="./img/pointer.png"></a> Vehiculo-2</h4>
<p class="list-group-item-text">Modelo: Captiva 2014</p>
<p class="list-group-item-text">Placa: DAZ-456</p>
<p class="list-group-item-text"><a href="" class="list-group-item-text" >ver mas</a></p>
</div>
<div class="list-group-item">
<h4 class="list-group-item-heading"><a href=" "><img class="unpointer" src="./img/pointer.png"></a> Vehiculo-3</h4>
<p class="list-group-item-text">Modelo: Mazda 3 2014</p>
<p class="list-group-item-text">Placa: HCO-456</p>
<p class="list-group-item-text"><a href="" class="list-group-item-text" >ver mas</a></p>
</div>
<div class="list-group-item">
<h4 class="list-group-item-heading"><a href=""><img class="unpointer" src="./img/pointer.png"></a> Vehiculo-4</h4>
<p class="list-group-item-text">Modelo: Tucson 2014</p>
<p class="list-group-item-text">Placa: VCH-345</p>
<p class="list-group-item-text"><a href="" class="list-group-item-text" >ver mas</a></p>
</div>
<div class="list-group-item">
<h4 class="list-group-item-heading"><a href=""><img class="unpointer" src="./img/pointer.png"></a> Vehiculo-5</h4>
<p class="list-group-item-text">Modelo: Aveo 2014</p>
<p class="list-group-item-text">Placa: CVZ-678</p>
<p class="list-group-item-text"><a href="" class="list-group-item-text" >ver mas</a></p>
</div>
<div class="list-group-item">
<h4 class="list-group-item-heading"><a href=""><img class="unpointer" src="./img/pointer.png"></a> Vehiculo-6</h4>
<p class="list-group-item-text">Modelo: Clio 2010</p>
<p class="list-group-item-text">Placa: DAZ-890</p>
<p class="list-group-item-text"><a href="" class="list-group-item-text" >ver mas</a></p>
</div>
<div class="list-group-item">
<h4 class="list-group-item-heading">
<a href=""><img class="unpointer" src="./img/pointer.png"></a> Vehiculo-7</h4>
<p class="list-group-item-text">Modelo: Tiida 2013</p>
<p class="list-group-item-text">Placa: FGH-987</p>
<p class="list-group-item-text"><a href="" class="list-group-item-text" >ver mas</a></p>
</div>
</div>
</aside>
<!--Options register-vehicle-->
Expand All @@ -97,12 +59,12 @@ <h4 class="list-group-item-heading">
<div id="light" class="white_content">
<a href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'"><img src="img/bad7.png"></a>
<h1>Registrar Vehículo</h1>
<div class="login-card">
<form >
<input type="text" name="model" placeholder="Modelo">
<input type="text" name="placa" placeholder="Placa">
<input type="number" name="numtracker" placeholder="Numero del Localizador">
<input type="submit" name="login" class="login login-submit" value="Registrar">
<div class="login-card" ng-controller="VehiculesController">
<form>
<input type="text" name="model" placeholder="Modelo" ng-model="newVehicule.model">
<input type="text" name="placa" placeholder="Placa" ng-model="newVehicule.placa">
<input type="number" name="numtracker" placeholder="Numero del Localizador" ng-model="newVehicule.trackerNumber">
<input type="submit" name="login" class="login login-submit" value="Registrar" ng-click="addVehicule()">
</form>
</div>
</div>
Expand Down
64 changes: 44 additions & 20 deletions public/js/app.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,49 @@
angular.module('app',['ngRoute'])
.config(function($routeProvider)
{
'use strict';
$routeProvider.when('/',
var app = angular.module('app',['ngRoute']);
app
.config(function($routeProvider)
{
'use strict';
$routeProvider.when('/',
{
templateUrl: 'view/map.html'
controller: 'VehiculesController'
})
.when('/map',
.otherwise(
{
templateUrl: 'view/map.html'
})
.when('/vehicle',
{
templateUrl: 'view/vehicle.html'
})
.when('/remote-vehicle',
{
templateUrl: 'view/remote-vehicle.html'
}).otherwise(
{
redirectTo: '/'
});
redirectTo: '/'
})
});
app.factory('vehiculesFactory',function(){
var vehicules = [
{model: 'Aveo 2013',placa: 'VCH-123',state: 'on', doors: 'locked',direction: 'cra 103 #11-40',trackerNumber: '3108526996'},
{model: 'Aveo 2013',placa: 'VCH-123',state: 'on', doors: 'locked',direction: 'cra 103 #11-40',trackerNumber: '3108526996'},
{model: 'Aveo 2013',placa: 'VCH-123',state: 'on', doors: 'locked',direction: 'cra 103 #11-40',trackerNumber: '3108526996'},
{model: 'Aveo 2013',placa: 'VCH-123',state: 'on', doors: 'locked',direction: 'cra 103 #11-40',trackerNumber: '3108526996'},
{model: 'Aveo 2013',placa: 'VCH-123',state: 'on', doors: 'locked',direction: 'cra 103 #11-40',trackerNumber: '3108526996'},
{model: 'Aveo 2013',placa: 'VCH-123',state: 'on', doors: 'locked',direction: 'cra 103 #11-40',trackerNumber: '3108526996'},
{model: 'Aveo 2013',placa: 'VCH-123',state: 'on', doors: 'locked',direction: 'cra 103 #11-40',trackerNumber: '3108526996'}
];
var factory={};
factory.getVehicules = function(){
return vehicules;
}
return factory;
});
var controllers = {};
controllers.VehiculesController = function($scope,vehiculesFactory){
$scope.vehicules = vehiculesFactory.getVehicules();
$scope.addVehicule = function(){
console.log("se ejecuto");
$scope.vehicules.push({model: $scope.newVehicule.model,
placa: $scope.newVehicule.placa,
state:'off',
doors: 'loocked',
direction: 'nn',
trackerNumber: $scope.newVehicule.trackerNumber
});
$scope.newVehicule.model ='';
$scope.newVehicule.placa = '';
$scope.newVehicule.trackerNumber = '';
}
};
app.controller(controllers);

0 comments on commit 6eba482

Please sign in to comment.