From e51dbcea34f2deaf71e884df1e451504eb6b6578 Mon Sep 17 00:00:00 2001 From: santidelosrios Date: Wed, 25 Mar 2015 12:35:10 -0500 Subject: [PATCH] Implementacion de arreglo para los vehiculos. Fabrica y controlador. Agregar funciona a medias --- npm-debug.log | 164 +++++++++++++++++++++---------------------- public/css/style.css | 12 +++- public/img/Thumbs.db | Bin 16384 -> 22016 bytes public/index.html | 60 +++------------- public/js/app.js | 64 +++++++++++------ 5 files changed, 147 insertions(+), 153 deletions(-) diff --git a/npm-debug.log b/npm-debug.log index 565cb7d..6fa03ca 100644 --- a/npm-debug.log +++ b/npm-debug.log @@ -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 npm@2.5.1 -3 info using node@v0.12.0 +1 verbose cli 'magnific', +1 verbose cli '-popup' ] +2 info using npm@1.4.28 +3 info using node@v0.10.33 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. (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. (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. (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 ] diff --git a/public/css/style.css b/public/css/style.css index 1dcb0f7..62b2566 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -9,11 +9,13 @@ /** * LABELS */ + body{ background: #fff; font-family: 'Open Sans Condensed', sans-serif; width: 100%; height: 100%; + -webkit-backface-visibility:hidden; } header{ background-color: #009AE5; @@ -21,6 +23,9 @@ 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; @@ -54,7 +59,7 @@ } #lightreg{ overflow-y:hidden; - height: 50% + height: 50%; } #map-canvas{ width: 100%; @@ -232,4 +237,7 @@ left: 0; height: 100%; width: 100%; - } \ No newline at end of file + } + /** + * dialog + */ diff --git a/public/img/Thumbs.db b/public/img/Thumbs.db index 7527b38103da29f927d616a9041ba285aac3cd3b..3e6a115ec4f0f47492cf353a25ab034ed2083d07 100644 GIT binary patch delta 6121 zcmb7Ic|4R|`@b=k%98Af$ySOs+lb6m)*(b$vP~jOSt5-6)5hmI9rR>SR zFT)6tW$eQ&_isGU^Sfm zaXKXEkfbB-4GS*=t;oodAr|JsN#u#j^>pZAV4_Px&d2$~&~aa-FU4Ji!Qx1;9yU(; zYlxoWdSQ~qTg=2$2R(%uzMLnqUwFen7t)g)pa>`d7{CEg1`vQeaFLFCz-8bPaGx%5 zpx5l_zc0p#!Gz)(U~Fs$-TpNu3!GkY;fpg;)h+&}3S+qB`_G^*$^%(ZUv58rb<;qb z@ps0%zmQ%i>&s!d+^ya5g%<`(oF1qdY=S;MBK;;%`mcO-|hK|7>n;b+xKYWDH?Gl z926#rT7O}zEIsM3!J}UBMYhkX%bX?CBQEWU zieAOH63>Weuz0venuzvDcU8==oS$aR`_ne9BqVS4L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s%^g3fHNy~z?H^P#X6x(n^OdHzF|6qyMP%~(YG z=*i8B6NV`JBZ_@1nxTr5A`7m$QFDc}YLietFc|uW`*?tZkSn9-OB>{FNR;`5@$9xm K?qRc-K4<}S$Leta diff --git a/public/index.html b/public/index.html index c68ec2f..e7a6f2f 100644 --- a/public/index.html +++ b/public/index.html @@ -22,50 +22,12 @@ @@ -90,12 +52,12 @@

Registrar VehĂ­culo

- diff --git a/public/js/app.js b/public/js/app.js index 0b5bce2..689fa63 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -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); \ No newline at end of file