@ -1,14 +1,32 @@ |
|||
@font-face { |
|||
font-family: Elianto; |
|||
src: url('../fonts/Elianto/Elianto.otf'); |
|||
} |
|||
|
|||
body { |
|||
/*background: #15191e!important;*/ |
|||
background: #000000!important; |
|||
color: #ffffff!important; |
|||
font-family: 'Open Sans', sans-serif!important; |
|||
} |
|||
|
|||
.card { |
|||
/*background: #1f262d!important;*/ |
|||
background: #1f262d!important; |
|||
/*background: #15191e!important; |
|||
color: #ffffff!important;*/ |
|||
/*border: 1px solid #ffffff!important;*/ |
|||
|
|||
background: #000000!important; |
|||
color: #ffffff!important; |
|||
} |
|||
|
|||
h1, h2, h3, h4, h5, h6 { |
|||
/*font-family: 'Raleway', sans-serif!important;*/ |
|||
font-family: 'Overpass Mono', monospace!important; |
|||
} |
|||
|
|||
.navbar-brand, .card-title, .navbar-nav { |
|||
font-family: 'Overpass Mono', monospace!important; |
|||
} |
|||
.btn { |
|||
font-family: 'Overpass Mono', monospace!important; |
|||
} |
@ -0,0 +1,15 @@ |
|||
{\rtf1\ansi\ansicpg1252\cocoartf1265\cocoasubrtf190 |
|||
{\fonttbl\f0\fswiss\fcharset0 Helvetica;} |
|||
{\colortbl;\red255\green255\blue255;} |
|||
\paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0 |
|||
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural |
|||
|
|||
\f0\fs24 \cf0 Thanks for downloading BLANKA FONT !\ |
|||
\ |
|||
You can use it for free and commercial.\ |
|||
\ |
|||
Feedbacks are welcome !\ |
|||
\ |
|||
\'97\ |
|||
Emmeran RICHARD.\ |
|||
www.emmeranrichard.fr} |
@ -0,0 +1,56 @@ |
|||
<div class="container"> |
|||
<div class="row"> |
|||
<div class="col-sm-2"> |
|||
|
|||
</div> |
|||
<div class="col-sm-8"> |
|||
<div class="card"> |
|||
<div class="card-body"> |
|||
<h4>ID: {{id.id}}</h4> |
|||
|
|||
<span class="pull-right">{{id.date | date: "dd.MM.y, HH:mm:ss"}}h</span> |
|||
|
|||
<span class="badge c_o_red300" ng-show="!id.verified">Not verified</span> |
|||
<span class="badge c_o_green300" ng-show="id.verified">Verified</span> |
|||
<span class="badge c_o_orange300" ng-show="!id.unblindedsig">Not signed</span> |
|||
<span class="badge c_o_blue300" ng-show="id.unblindedsig">Signed</span> |
|||
<span class="badge c_o_deepPurple300" ng-show="id.blockchainref">in Blockchain</span> |
|||
<div class="row"> |
|||
<textarea style="color:#000000;width:100%;" rows="4" |
|||
ng-model="decryptData.c" |
|||
placeholder="Enter here the proof-of-decrypt..." |
|||
></textarea> |
|||
</div> |
|||
<h5 ng-show="decryptData.m">PoD:</h5> |
|||
{{decryptData.m}} |
|||
<div ng-click="decrypt()" ng-show="id.blockchainref" class="btn btn-raised pull-right c_o_pink300"> |
|||
Proof of decrypt |
|||
</div> |
|||
|
|||
<br><br><br><br><br> |
|||
<hr> |
|||
<h5>Testing only:</h5> |
|||
<div class="row"> |
|||
<textarea style="color:#000000;width:100%;" rows="4" |
|||
ng-model="encryptData.m" |
|||
placeholder="Enter here the unencrypted..." |
|||
></textarea> |
|||
</div> |
|||
<div class="row"> |
|||
<textarea style="backgroud:grey;color:#000000;width:100%;" rows="4" |
|||
ng-model="encryptData.c" |
|||
placeholder="Encrypted data..." |
|||
></textarea> |
|||
</div> |
|||
<div ng-click="encrypt()" ng-show="id.blockchainref" class="btn btn-raised pull-right c_o_orange300"> |
|||
Encrypt |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-sm-2"> |
|||
|
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
@ -0,0 +1,76 @@ |
|||
'use strict'; |
|||
|
|||
angular.module('app.id', ['ngRoute']) |
|||
|
|||
.config(['$routeProvider', function($routeProvider) { |
|||
$routeProvider.when('/id/:keyid', { |
|||
templateUrl: 'views/id/id.html', |
|||
controller: 'IdCtrl' |
|||
}); |
|||
}]) |
|||
|
|||
.controller('IdCtrl', function($scope, $rootScope, $http, $routeParams) { |
|||
$scope.keyid = $routeParams.keyid; |
|||
$scope.decryptData = { |
|||
m:"", |
|||
c:"" |
|||
}; |
|||
$scope.encryptData = { |
|||
m:"", |
|||
c:"" |
|||
}; |
|||
|
|||
$rootScope.server = JSON.parse(localStorage.getItem("old_darkID_server")); |
|||
|
|||
$scope.id = {}; |
|||
$scope.clientApp = function(route, param) { |
|||
$http.get(clientapi + route + '/' + param) |
|||
.then(function(data) { |
|||
console.log('data success'); |
|||
console.log(data); |
|||
$scope.id = data.data; |
|||
|
|||
}, function(data) { |
|||
console.log('data error'); |
|||
}); |
|||
}; |
|||
$scope.clientApp('id', $routeParams.keyid); |
|||
|
|||
|
|||
$scope.decrypt = function() { |
|||
$http({ |
|||
url: clientapi + 'decrypt/' + $routeParams.keyid, |
|||
method: "POST", |
|||
headers: { |
|||
"Content-Type": undefined |
|||
}, |
|||
data: $scope.decryptData |
|||
}) |
|||
.then(function(data) { |
|||
console.log("data: "); |
|||
console.log(data.data); |
|||
$scope.decryptData = data.data; |
|||
}, |
|||
function(data) { |
|||
console.log(data); |
|||
}); |
|||
}; |
|||
$scope.encrypt = function() { |
|||
$http({ |
|||
url: clientapi + 'encrypt/' + $routeParams.keyid, |
|||
method: "POST", |
|||
headers: { |
|||
"Content-Type": undefined |
|||
}, |
|||
data: $scope.encryptData |
|||
}) |
|||
.then(function(data) { |
|||
console.log("data: "); |
|||
console.log(data.data); |
|||
$scope.encryptData = data.data; |
|||
}, |
|||
function(data) { |
|||
console.log(data); |
|||
}); |
|||
}; |
|||
}); |
@ -1,40 +1,32 @@ |
|||
<div class="container"> |
|||
<div class="container" style="margin-top: -80px;"> |
|||
<div class="row"> |
|||
<div class="col-sm-4"> |
|||
<div class="col-sm-3"> |
|||
|
|||
</div> |
|||
<div class="col-sm-4"> |
|||
<div class="panel"> |
|||
<div class="panel-heading c_deepPurpleG500to300"> |
|||
<h3 class="panel-title">Signup</h3> |
|||
</div> |
|||
<div class="panel-body"> |
|||
<div class="form-group label-floating"> |
|||
<input ng-model="user.username" abmFormControl class="form-control" id="inputUsername" placeholder="Username" type="text"> |
|||
</div> |
|||
<div class="form-group"> |
|||
<input ng-model="user.password" abmFormControl class="form-control" id="inputPassword" placeholder="Password" type="password"> |
|||
</div> |
|||
<div class="form-group label-floating"> |
|||
<input ng-model="user.email" abmFormControl class="form-control" id="inputEmail" placeholder="Email" type="text"> |
|||
</div> |
|||
<div class="form-group label-floating"> |
|||
<input ng-model="user.phone" abmFormControl class="form-control" id="inputPhone" placeholder="Phone" type="text"> |
|||
</div> |
|||
<div class="form-group row"> |
|||
<label for="staticEmail" class="col-sm-1 col-form-label">@</label> |
|||
<div class="col-sm-10"> |
|||
<input ng-model="user.telegram" abmFormControl class="form-control" id="inputTelegram" placeholder="Telegram" type="text"> |
|||
<div class="col-sm-6"> |
|||
<div class="card"> |
|||
<img src="img/darkID-logo01.png" class="img-responsive" /> |
|||
<div class="card-body"> |
|||
<h4 class="card-title"> |
|||
darkID |
|||
</h4> |
|||
<input ng-model="user.email" class="form-control" placeholder="Email" type="text"> |
|||
<input ng-model="user.password" class="form-control" placeholder="Password" type="password"> |
|||
<input ng-model="user.phone" class="form-control" placeholder="Phone" type="text"> |
|||
<div class="row"> |
|||
<div class="col-sm-6"> |
|||
<a href="#!/login" class="btn btn-raised btn-block c_o_blue300">Cancel</a> |
|||
</div> |
|||
<div class="col-sm-6"> |
|||
<div ng-click="signup()" class="btn btn-raised btn-block c_o_pink300 pull-right">Signup</div> |
|||
</div> |
|||
</div> |
|||
<a ng-href="#!/login" class="btn btn-raised c_grey500">Back</a> |
|||
<div ng-click="doSignup()" class="btn btn-raised c_deepPurple300 pull-right">Signup</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
|
|||
<div class="col-sm-4"> |
|||
<div class="col-sm-3"> |
|||
|
|||
</div> |
|||
</div> |
|||
|
@ -0,0 +1,39 @@ |
|||
<div class="container"> |
|||
<div class="row"> |
|||
<div class="col-sm-2"> |
|||
|
|||
</div> |
|||
<div class="col-sm-8"> |
|||
<h4 class="card-title"> |
|||
Stats |
|||
</h4> |
|||
<div class="card"> |
|||
<div class="card-body"> |
|||
<div class="row"> |
|||
<canvas id="line" class="chart chart-line" chart-data="chart1.data" |
|||
chart-labels="chart1.labels" |
|||
chart-colors="chart1.colours"> |
|||
</canvas> |
|||
</div> |
|||
<div class="row"> |
|||
<canvas id="line" class="chart chart-pie" chart-data="chart2.data" |
|||
chart-labels="chart2.labels" |
|||
chart-colors="chart2.colours"> |
|||
</canvas> |
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
|
|||
<div class="row"> |
|||
<div class="progress progress-striped" ng-show="generatingID"> |
|||
<div class="progress-bar progress-bar-success active" style="width: 100%"></div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-sm-2"> |
|||
|
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
@ -0,0 +1,136 @@ |
|||
'use strict'; |
|||
|
|||
angular.module('app.stats', ['ngRoute']) |
|||
|
|||
.config(['$routeProvider', function($routeProvider) { |
|||
$routeProvider.when('/stats', { |
|||
templateUrl: 'views/stats/stats.html', |
|||
controller: 'StatsCtrl' |
|||
}); |
|||
}]) |
|||
|
|||
.controller('StatsCtrl', function($scope, $rootScope, $http, $filter) { |
|||
|
|||
$rootScope.server = JSON.parse(localStorage.getItem("old_darkID_server")); |
|||
|
|||
$scope.generatingID = false; |
|||
$scope.ids = []; |
|||
$http.get(clientapi + 'ids') |
|||
.then(function(data) { |
|||
console.log('data success'); |
|||
console.log(data); |
|||
$scope.ids = data.data; |
|||
$scope.idsToChart(); |
|||
}, function(data) { |
|||
console.log('data error'); |
|||
}); |
|||
|
|||
$scope.newID = function() { |
|||
$scope.generatingID = true; |
|||
$http.get(clientapi + 'newid') |
|||
.then(function(data) { |
|||
console.log('data success'); |
|||
console.log(data); |
|||
$scope.ids = data.data; |
|||
$scope.generatingID = false; |
|||
|
|||
}, function(data) { |
|||
console.log('data error'); |
|||
}); |
|||
}; |
|||
|
|||
$scope.blindAndSendToSign = function(id) { |
|||
$http.get(clientapi + 'blindandsendtosign/' + id) |
|||
.then(function(data) { |
|||
console.log('data success'); |
|||
console.log(data); |
|||
$scope.ids = data.data; |
|||
|
|||
}, function(data) { |
|||
console.log('data error'); |
|||
}); |
|||
}; |
|||
$scope.verify = function(id) { |
|||
$http.get(clientapi + 'verify/' + id) |
|||
.then(function(data) { |
|||
console.log('data success'); |
|||
console.log(data); |
|||
$scope.ids = data.data; |
|||
|
|||
}, function(data) { |
|||
console.log('data error'); |
|||
}); |
|||
}; |
|||
$scope.clientApp = function(route, param) { |
|||
$http.get(clientapi + route + '/' + param) |
|||
.then(function(data) { |
|||
console.log('data success'); |
|||
console.log(data); |
|||
$scope.ids = data.data; |
|||
|
|||
}, function(data) { |
|||
console.log('data error'); |
|||
}); |
|||
}; |
|||
|
|||
//chartjs
|
|||
$scope.chart1 = { |
|||
colours: ['#4DD0E1', '#9575CD', '#F06292', '#FFF176'], |
|||
labels: [], |
|||
data: [] |
|||
}; |
|||
$scope.chart2 = { |
|||
colours: ['#4DD0E1', '#9575CD', '#F06292', '#FFF176'], |
|||
labels: [], |
|||
data: [] |
|||
}; |
|||
$scope.idsToChart = function() { |
|||
//chart1
|
|||
var dictionary = {}; |
|||
var ids = $scope.ids; |
|||
for(var i=0; i<ids.length; i++) { |
|||
var day = $filter('date')(ids[i].date, 'dd.MM.y, HH:mm'); |
|||
if(dictionary[day]==undefined) { |
|||
dictionary[day] = 1 |
|||
} else { |
|||
dictionary[day]++; |
|||
} |
|||
} |
|||
console.log(dictionary); |
|||
for(var key in dictionary) { |
|||
$scope.chart1.labels.push(key); |
|||
$scope.chart1.data.push(dictionary[key]); |
|||
} |
|||
|
|||
|
|||
//chart2
|
|||
var dictionary = {}; |
|||
for(var i=0; i<ids.length; i++) { |
|||
if(ids[i].blockchainref) { |
|||
if(dictionary['in blockchain']==undefined) { |
|||
dictionary['in blockchain'] = 1 |
|||
} else { |
|||
dictionary['in blockchain']++; |
|||
} |
|||
} else if(ids[i].unblindedsig) { |
|||
if(dictionary['signed']==undefined) { |
|||
dictionary['signed'] = 1 |
|||
} else { |
|||
dictionary['signed']++; |
|||
} |
|||
} else { |
|||
if(dictionary['unsigned']==undefined) { |
|||
dictionary['unsigned'] = 1 |
|||
} else { |
|||
dictionary['unsigned']++; |
|||
} |
|||
} |
|||
} |
|||
console.log(dictionary); |
|||
for(var key in dictionary) { |
|||
$scope.chart2.labels.push(key); |
|||
$scope.chart2.data.push(dictionary[key]); |
|||
} |
|||
|
|||
}; |
|||
}); |
@ -1,8 +1,5 @@ |
|||
{ |
|||
"port": "4100", |
|||
"keysDirectory": "keys", |
|||
"serverIDsigner": { |
|||
"ip": "127.0.0.1", |
|||
"port": "3130" |
|||
} |
|||
"serverIDsigner": "127.0.0.1:3130" |
|||
} |
@ -0,0 +1,13 @@ |
|||
SESSION='peersTest' |
|||
|
|||
tmux new-session -d -s $SESSION |
|||
tmux split-window -d -t 0 -v |
|||
tmux split-window -d -t 0 -h |
|||
tmux split-window -d -t 1 -h |
|||
tmux split-window -d -t 0 -h |
|||
|
|||
tmux split-window -d -t 4 -h |
|||
tmux split-window -d -t 5 -h |
|||
tmux split-window -d -t 4 -h |
|||
|
|||
tmux attach |