moving and renaming
0
.gitignore
vendored
Normal file → Executable file
8
README.md
Normal file → Executable file
@@ -1,6 +1,6 @@
|
|||||||
# carsincommonAdminWeb
|
# commonroutesAdminWeb
|
||||||
|
|
||||||
- server code: https://github.com/arnaucode/carsincommonServer
|
- server code: https://github.com/arnaucode/commonroutesServer
|
||||||
- frontend app code: https://github.com/arnaucode/carsincommonApp
|
- 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
|
||||||
|
|||||||
6
bower.json
Normal file → Executable file
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "carsincommonAdminWeb",
|
"name": "commonroutesAdminWeb",
|
||||||
"description": "carsincommonAdminWeb",
|
"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
css/colors.css
Normal file → Executable file
0
css/style.css
Normal file → Executable file
0
img/asking.png
Normal file → Executable file
|
Before Width: | Height: | Size: 564 B After Width: | Height: | Size: 564 B |
0
img/avatars/chameleon.png
Normal file → Executable file
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
0
img/avatars/clown-fish.png
Normal file → Executable file
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
0
img/avatars/duck.png
Normal file → Executable file
|
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB |
0
img/avatars/owl.png
Normal file → Executable file
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
0
img/avatars/penguin.png
Normal file → Executable file
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
0
img/avatars/racoon.png
Normal file → Executable file
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
0
img/avatars/siberian-husky.png
Normal file → Executable file
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
0
img/avatars/sloth.png
Normal file → Executable file
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
0
img/avatars/tiger.png
Normal file → Executable file
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
0
img/avatars/toucan.png
Normal file → Executable file
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
0
img/faircoinpublickey_sample.png
Normal file → Executable file
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
0
img/offering.png
Normal file → Executable file
|
Before Width: | Height: | Size: 806 B After Width: | Height: | Size: 806 B |
0
img/package.png
Normal file → Executable file
|
Before Width: | Height: | Size: 288 B After Width: | Height: | Size: 288 B |
0
img/userProfileBackground.png
Normal file → Executable file
|
Before Width: | Height: | Size: 245 KiB After Width: | Height: | Size: 245 KiB |
0
index.html
Normal file → Executable file
6
package.json
Normal file → Executable file
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "carsincommonAdminWeb",
|
"name": "commonroutesAdminWeb",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"description": "carsincommonAdminWeb",
|
"description": "commonroutesAdminWeb",
|
||||||
"repository": "https://github.com/arnaucode/carsincommonAdmin",
|
"repository": "https://github.com/arnaucode/commonroutesAdminWeb",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"bower": "^1.7.7",
|
"bower": "^1.7.7",
|
||||||
|
|||||||
0
views/login/login.html
Normal file → Executable file
0
views/login/login.js
Normal file → Executable file
10
views/main/main.html
Normal file → Executable file
@@ -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 ">
|
||||||
|
|||||||
23
views/main/main.js
Normal file → Executable file
@@ -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;
|
$scope.pageUsers = 0;
|
||||||
|
$http.get(urlapi + 'users?page=' + $scope.pageUsers)
|
||||||
$http.get(urlapi + 'users?page=' + $scope.page)
|
|
||||||
.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');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
6
views/navbar.html
Normal file → Executable file
@@ -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
views/navbar.js
Normal file → Executable file
@@ -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
views/network/network.html
Normal file → Executable file
0
views/network/network.js
Normal file → Executable file
0
views/search/search.html
Normal file → Executable file
0
views/search/search.js
Normal file → Executable file
0
views/signup/signup.html
Normal file → Executable file
0
views/signup/signup.js
Normal file → Executable file
0
views/travel/travel.html
Normal file → Executable file
0
views/travel/travel.js
Normal file → Executable file
0
views/travels/travels.html
Normal file → Executable file
0
views/travels/travels.js
Normal file → Executable file
1
views/user/user.html
Normal file → Executable file
@@ -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>
|
||||||
|
|||||||