diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 index 804867f..1ac96de --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# carsincommonAdminWeb +# commonroutesAdminWeb -- server code: https://github.com/arnaucode/carsincommonServer -- frontend app code: https://github.com/arnaucode/carsincommonApp +- server code: https://github.com/arnaucode/commonroutesServer +- frontend app code: https://github.com/arnaucode/commonroutesApp - images server: https://github.com/arnaucode/goImgServer -- admin web: https://github.com/arnaucode/carsincommonAdminWeb +- admin web: https://github.com/arnaucode/commonroutesAdminWeb diff --git a/app.js b/app.js old mode 100644 new mode 100755 diff --git a/bower.json b/bower.json old mode 100644 new mode 100755 index bb49372..f2a6ffb --- a/bower.json +++ b/bower.json @@ -1,8 +1,8 @@ { - "name": "carsincommonAdminWeb", - "description": "carsincommonAdminWeb", + "name": "commonroutesAdminWeb", + "description": "commonroutesAdminWeb", "version": "0.0.0", - "homepage": "https://github.com/arnaucode/carsincommonAdmin", + "homepage": "https://github.com/arnaucode/commonroutesAdminWeb", "license": "MIT", "private": true, "dependencies": { diff --git a/css/colors.css b/css/colors.css old mode 100644 new mode 100755 diff --git a/css/style.css b/css/style.css old mode 100644 new mode 100755 diff --git a/img/asking.png b/img/asking.png old mode 100644 new mode 100755 diff --git a/img/avatars/chameleon.png b/img/avatars/chameleon.png old mode 100644 new mode 100755 diff --git a/img/avatars/clown-fish.png b/img/avatars/clown-fish.png old mode 100644 new mode 100755 diff --git a/img/avatars/duck.png b/img/avatars/duck.png old mode 100644 new mode 100755 diff --git a/img/avatars/owl.png b/img/avatars/owl.png old mode 100644 new mode 100755 diff --git a/img/avatars/penguin.png b/img/avatars/penguin.png old mode 100644 new mode 100755 diff --git a/img/avatars/racoon.png b/img/avatars/racoon.png old mode 100644 new mode 100755 diff --git a/img/avatars/siberian-husky.png b/img/avatars/siberian-husky.png old mode 100644 new mode 100755 diff --git a/img/avatars/sloth.png b/img/avatars/sloth.png old mode 100644 new mode 100755 diff --git a/img/avatars/tiger.png b/img/avatars/tiger.png old mode 100644 new mode 100755 diff --git a/img/avatars/toucan.png b/img/avatars/toucan.png old mode 100644 new mode 100755 diff --git a/img/faircoinpublickey_sample.png b/img/faircoinpublickey_sample.png old mode 100644 new mode 100755 diff --git a/img/offering.png b/img/offering.png old mode 100644 new mode 100755 diff --git a/img/package.png b/img/package.png old mode 100644 new mode 100755 diff --git a/img/userProfileBackground.png b/img/userProfileBackground.png old mode 100644 new mode 100755 diff --git a/index.html b/index.html old mode 100644 new mode 100755 diff --git a/package.json b/package.json old mode 100644 new mode 100755 index 657087e..1a77888 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { - "name": "carsincommonAdminWeb", + "name": "commonroutesAdminWeb", "private": true, "version": "0.0.0", - "description": "carsincommonAdminWeb", - "repository": "https://github.com/arnaucode/carsincommonAdmin", + "description": "commonroutesAdminWeb", + "repository": "https://github.com/arnaucode/commonroutesAdminWeb", "license": "MIT", "devDependencies": { "bower": "^1.7.7", diff --git a/views/login/login.html b/views/login/login.html old mode 100644 new mode 100755 diff --git a/views/login/login.js b/views/login/login.js old mode 100644 new mode 100755 diff --git a/views/main/main.html b/views/main/main.html old mode 100644 new mode 100755 index 4e3557a..6a83b5d --- a/views/main/main.html +++ b/views/main/main.html @@ -3,7 +3,10 @@
-

All users

+

+ All users + {{users.length}} +

@@ -30,7 +33,10 @@
-

All travels

+

+ All travels + {{travels.length}} +

diff --git a/views/main/main.js b/views/main/main.js old mode 100644 new mode 100755 index 4f85af4..19c8cdc --- a/views/main/main.js +++ b/views/main/main.js @@ -11,11 +11,9 @@ angular.module('app.main', ['ngRoute']) .controller('MainCtrl', function($scope, $http) { $scope.users = []; - $scope.travels = []; $scope.loadMorePagination = true; - $scope.page = 0; - - $http.get(urlapi + 'users?page=' + $scope.page) + $scope.pageUsers = 0; + $http.get(urlapi + 'users?page=' + $scope.pageUsers) .then(function(data) { console.log('data success'); console.log(data); @@ -24,7 +22,10 @@ angular.module('app.main', ['ngRoute']) }, function(data) { console.log('data error'); }); - $http.get(urlapi + 'travels?page=' + $scope.page) + + $scope.travels = []; + $scope.pageTravels = 0; + $http.get(urlapi + 'travels?page=' + $scope.pageTravels) .then(function(data) { console.log('data success'); console.log(data); @@ -33,4 +34,16 @@ angular.module('app.main', ['ngRoute']) }, function(data) { console.log('data error'); }); + + $scope.admins=[]; + $scope.pageAdmins = 0; + $http.get(urlapi + 'admins?page=' + $scope.pageAdmins) + .then(function(data) { + console.log('data success'); + console.log(data); + $scope.admins = data.data; + + }, function(data) { + console.log('data error'); + }); }); diff --git a/views/navbar.html b/views/navbar.html old mode 100644 new mode 100755 index 1d5dced..0c1ebae --- a/views/navbar.html +++ b/views/navbar.html @@ -1,5 +1,5 @@
-