Browse Source

moving and renaming

master
arnaucode 7 years ago
parent
commit
5d702098c5
44 changed files with 45 additions and 20 deletions
  1. +0
    -0
      .gitignore
  2. +0
    -0
      LICENSE
  3. +4
    -4
      README.md
  4. +0
    -0
      app.js
  5. +3
    -3
      bower.json
  6. +0
    -0
      css/colors.css
  7. +0
    -0
      css/style.css
  8. +0
    -0
      img/asking.png
  9. +0
    -0
      img/avatars/chameleon.png
  10. +0
    -0
      img/avatars/clown-fish.png
  11. +0
    -0
      img/avatars/duck.png
  12. +0
    -0
      img/avatars/owl.png
  13. +0
    -0
      img/avatars/penguin.png
  14. +0
    -0
      img/avatars/racoon.png
  15. +0
    -0
      img/avatars/siberian-husky.png
  16. +0
    -0
      img/avatars/sloth.png
  17. +0
    -0
      img/avatars/tiger.png
  18. +0
    -0
      img/avatars/toucan.png
  19. +0
    -0
      img/faircoinpublickey_sample.png
  20. +0
    -0
      img/offering.png
  21. +0
    -0
      img/package.png
  22. +0
    -0
      img/userProfileBackground.png
  23. +0
    -0
      index.html
  24. +3
    -3
      package.json
  25. +0
    -0
      views/login/login.html
  26. +0
    -0
      views/login/login.js
  27. +8
    -2
      views/main/main.html
  28. +18
    -5
      views/main/main.js
  29. +3
    -3
      views/navbar.html
  30. +5
    -0
      views/navbar.js
  31. +0
    -0
      views/network/network.html
  32. +0
    -0
      views/network/network.js
  33. +0
    -0
      views/search/search.html
  34. +0
    -0
      views/search/search.js
  35. +0
    -0
      views/signup/signup.html
  36. +0
    -0
      views/signup/signup.js
  37. +0
    -0
      views/travel/travel.html
  38. +0
    -0
      views/travel/travel.js
  39. +0
    -0
      views/travels/travels.html
  40. +0
    -0
      views/travels/travels.js
  41. +1
    -0
      views/user/user.html
  42. +0
    -0
      views/user/user.js
  43. +0
    -0
      views/userNetwork/userNetwork.html
  44. +0
    -0
      views/userNetwork/userNetwork.js

+ 0
- 0
.gitignore


+ 0
- 0
LICENSE


+ 4
- 4
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 - images server: https://github.com/arnaucode/goImgServer
- admin web: https://github.com/arnaucode/carsincommonAdminWeb
- admin web: https://github.com/arnaucode/commonroutesAdminWeb

+ 0
- 0
app.js


+ 3
- 3
bower.json

@ -1,8 +1,8 @@
{ {
"name": "carsincommonAdminWeb",
"description": "carsincommonAdminWeb",
"name": "commonroutesAdminWeb",
"description": "commonroutesAdminWeb",
"version": "0.0.0", "version": "0.0.0",
"homepage": "https://github.com/arnaucode/carsincommonAdmin",
"homepage": "https://github.com/arnaucode/commonroutesAdminWeb",
"license": "MIT", "license": "MIT",
"private": true, "private": true,
"dependencies": { "dependencies": {

+ 0
- 0
css/colors.css


+ 0
- 0
css/style.css


+ 0
- 0
img/asking.png

Before After
Width: 30  |  Height: 36  |  Size: 564 B Width: 30  |  Height: 36  |  Size: 564 B

+ 0
- 0
img/avatars/chameleon.png

Before After
Width: 512  |  Height: 512  |  Size: 15 KiB Width: 512  |  Height: 512  |  Size: 15 KiB

+ 0
- 0
img/avatars/clown-fish.png

Before After
Width: 512  |  Height: 512  |  Size: 21 KiB Width: 512  |  Height: 512  |  Size: 21 KiB

+ 0
- 0
img/avatars/duck.png

Before After
Width: 512  |  Height: 512  |  Size: 9.6 KiB Width: 512  |  Height: 512  |  Size: 9.6 KiB

+ 0
- 0
img/avatars/owl.png

Before After
Width: 512  |  Height: 512  |  Size: 15 KiB Width: 512  |  Height: 512  |  Size: 15 KiB

+ 0
- 0
img/avatars/penguin.png

Before After
Width: 512  |  Height: 512  |  Size: 14 KiB Width: 512  |  Height: 512  |  Size: 14 KiB

+ 0
- 0
img/avatars/racoon.png

Before After
Width: 512  |  Height: 512  |  Size: 13 KiB Width: 512  |  Height: 512  |  Size: 13 KiB

+ 0
- 0
img/avatars/siberian-husky.png

Before After
Width: 512  |  Height: 512  |  Size: 19 KiB Width: 512  |  Height: 512  |  Size: 19 KiB

+ 0
- 0
img/avatars/sloth.png

Before After
Width: 512  |  Height: 512  |  Size: 15 KiB Width: 512  |  Height: 512  |  Size: 15 KiB

+ 0
- 0
img/avatars/tiger.png

Before After
Width: 512  |  Height: 512  |  Size: 22 KiB Width: 512  |  Height: 512  |  Size: 22 KiB

+ 0
- 0
img/avatars/toucan.png

Before After
Width: 512  |  Height: 512  |  Size: 11 KiB Width: 512  |  Height: 512  |  Size: 11 KiB

+ 0
- 0
img/faircoinpublickey_sample.png

Before After
Width: 375  |  Height: 377  |  Size: 21 KiB Width: 375  |  Height: 377  |  Size: 21 KiB

+ 0
- 0
img/offering.png

Before After
Width: 41  |  Height: 35  |  Size: 806 B Width: 41  |  Height: 35  |  Size: 806 B

+ 0
- 0
img/package.png

Before After
Width: 34  |  Height: 36  |  Size: 288 B Width: 34  |  Height: 36  |  Size: 288 B

+ 0
- 0
img/userProfileBackground.png

Before After
Width: 634  |  Height: 393  |  Size: 245 KiB Width: 634  |  Height: 393  |  Size: 245 KiB

+ 0
- 0
index.html


+ 3
- 3
package.json

@ -1,9 +1,9 @@
{ {
"name": "carsincommonAdminWeb",
"name": "commonroutesAdminWeb",
"private": true, "private": true,
"version": "0.0.0", "version": "0.0.0",
"description": "carsincommonAdminWeb",
"repository": "https://github.com/arnaucode/carsincommonAdmin",
"description": "commonroutesAdminWeb",
"repository": "https://github.com/arnaucode/commonroutesAdminWeb",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"bower": "^1.7.7", "bower": "^1.7.7",

+ 0
- 0
views/login/login.html


+ 0
- 0
views/login/login.js


+ 8
- 2
views/main/main.html

@ -3,7 +3,10 @@
<div class="col-sm-4"> <div class="col-sm-4">
<div class="panel"> <div class="panel">
<div class="panel-heading c_deepPurple300"> <div class="panel-heading c_deepPurple300">
<h3 class="panel-title">All users</h3>
<h3 class="panel-title">
All users
<span class="badge badge-secondary pull-right c_deepPurple300">{{users.length}}</span>
</h3>
</div> </div>
<div class="panel-body" style="max-height: 500px;overflow-y: scroll;"> <div class="panel-body" style="max-height: 500px;overflow-y: scroll;">
<div class="list-group"> <div class="list-group">
@ -30,7 +33,10 @@
<div class="col-sm-6"> <div class="col-sm-6">
<div class="panel"> <div class="panel">
<div class="panel-heading c_deepPurple300"> <div class="panel-heading c_deepPurple300">
<h3 class="panel-title">All travels</h3>
<h3 class="panel-title">
All travels
<span class="badge badge-secondary pull-right c_deepPurple300">{{travels.length}}</span>
</h3>
</div> </div>
<div class="panel-body" style="max-height: 500px;overflow-y: scroll;"> <div class="panel-body" style="max-height: 500px;overflow-y: scroll;">
<table class="table table-striped table-hover "> <table class="table table-striped table-hover ">

+ 18
- 5
views/main/main.js

@ -11,11 +11,9 @@ angular.module('app.main', ['ngRoute'])
.controller('MainCtrl', function($scope, $http) { .controller('MainCtrl', function($scope, $http) {
$scope.users = []; $scope.users = [];
$scope.travels = [];
$scope.loadMorePagination = true; $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) { .then(function(data) {
console.log('data success'); console.log('data success');
console.log(data); console.log(data);
@ -24,7 +22,10 @@ angular.module('app.main', ['ngRoute'])
}, function(data) { }, function(data) {
console.log('data error'); 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) { .then(function(data) {
console.log('data success'); console.log('data success');
console.log(data); console.log(data);
@ -33,4 +34,16 @@ angular.module('app.main', ['ngRoute'])
}, function(data) { }, function(data) {
console.log('data error'); 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');
});
}); });

+ 3
- 3
views/navbar.html

@ -1,5 +1,5 @@
<div ng-controller="NavbarCtrl"> <div ng-controller="NavbarCtrl">
<div class="navbar c_grey700">
<div ng-show="storageuser" class="navbar c_grey700">
<div class="container-fluid"> <div class="container-fluid">
<div class="navbar-header"> <div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
@ -24,7 +24,7 @@
<ul class="nav navbar-nav navbar-right"> <ul class="nav navbar-nav navbar-right">
<li><a href="javascript:void(0)">Info</a></li> <li><a href="javascript:void(0)">Info</a></li>
<li class="dropdown"> <li class="dropdown">
<a href="bootstrap-elements.html" data-target="#" class="dropdown-toggle" data-toggle="dropdown">Settings
<a href="" data-target="#" class="dropdown-toggle" data-toggle="dropdown">Settings
<b class="caret"></b></a> <b class="caret"></b></a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><a href="javascript:void(0)">Action</a></li> <li><a href="javascript:void(0)">Action</a></li>
@ -34,7 +34,7 @@
<li><a href="javascript:void(0)">Separated link</a></li> <li><a href="javascript:void(0)">Separated link</a></li>
</ul> </ul>
</li> </li>
<li><a ng-click="logout()">Logout</a></li>
<li><a href="" ng-click="logout()">Logout</a></li>
</ul> </ul>
</div> </div>
</div> </div>

+ 5
- 0
views/navbar.js

@ -22,6 +22,11 @@ angular.module('app.navbar', ['ngRoute'])
console.log($scope.searchString); console.log($scope.searchString);
window.location.href = "#!/search/" + $scope.searchString; window.location.href = "#!/search/" + $scope.searchString;
}; };
if (localStorage.getItem("cic_admin_userdata")) {
$scope.storageuser = JSON.parse(localStorage.getItem("cic_admin_userdata"));
console.log($scope.storageuser);
}
$scope.logout = function() { $scope.logout = function() {
localStorage.removeItem("cic_admin_token"); localStorage.removeItem("cic_admin_token");
localStorage.removeItem("cic_admin_userdata"); localStorage.removeItem("cic_admin_userdata");

+ 0
- 0
views/network/network.html


+ 0
- 0
views/network/network.js


+ 0
- 0
views/search/search.html


+ 0
- 0
views/search/search.js


+ 0
- 0
views/signup/signup.html


+ 0
- 0
views/signup/signup.js


+ 0
- 0
views/travel/travel.html


+ 0
- 0
views/travel/travel.js


+ 0
- 0
views/travels/travels.html


+ 0
- 0
views/travels/travels.js


+ 1
- 0
views/user/user.html

@ -102,6 +102,7 @@
<div class="panel-body"> <div class="panel-body">
<!--<div class="btn btn-block btn-sm c_orange300">Ban user</div>--> <!--<div class="btn btn-block btn-sm c_orange300">Ban user</div>-->
<div ng-show="!user.validated" ng-click="validateUser()" class="btn btn-block btn-sm c_deepPurple300">Validate User</div> <div ng-show="!user.validated" ng-click="validateUser()" class="btn btn-block btn-sm c_deepPurple300">Validate User</div>
<div ng-show="user.validated">Validated by: {{user.validatedBy.username}}</div>
<div ng-show="user.validated" ng-click="unvalidateUser()" class="btn btn-block btn-sm c_red200">Unvalidate User</div> <div ng-show="user.validated" ng-click="unvalidateUser()" class="btn btn-block btn-sm c_red200">Unvalidate User</div>
<div ng-click="deleteUser()" class="btn btn-block btn-sm c_red300">Delete user</div> <div ng-click="deleteUser()" class="btn btn-block btn-sm c_red300">Delete user</div>
</div> </div>

+ 0
- 0
views/user/user.js


+ 0
- 0
views/userNetwork/userNetwork.html


+ 0
- 0
views/userNetwork/userNetwork.js


Loading…
Cancel
Save