diff --git a/clientApp/GUI/app.js b/clientApp/GUI/app.js index 78d5219..a40accd 100644 --- a/clientApp/GUI/app.js +++ b/clientApp/GUI/app.js @@ -1,6 +1,6 @@ 'use strict'; -var urlapi = "http://127.0.0.1:3130/"; + var clientapi = "http://127.0.0.1:4100/"; // Declare app level module which depends on views, and components @@ -10,15 +10,18 @@ angular.module('app', [ 'angularBootstrapMaterial', 'ui.bootstrap', 'toastr', + 'chart.js', 'app.navbar', 'app.main', 'app.signup', - 'app.login' + 'app.login', + 'app.id', + 'app.stats' ]). config(['$locationProvider', '$routeProvider', function($locationProvider, $routeProvider) { $locationProvider.hashPrefix('!'); - if ((localStorage.getItem('blid_token'))) { + if ((localStorage.getItem('old_darkID_token'))) { console.log(window.location.hash); if ((window.location.hash === '#!/login') || (window.location.hash === '#!/signup')) { window.location = '#!/main'; @@ -31,8 +34,8 @@ config(['$locationProvider', '$routeProvider', function($locationProvider, $rout if ((window.location !== '#!/login') || (window.location !== '#!/signup')) { console.log('app, user no logged'); - localStorage.removeItem('blid_token'); - localStorage.removeItem('blid_userdata'); + localStorage.removeItem('old_darkID_token'); + localStorage.removeItem('old_darkID_userdata'); window.location = '#!/login'; $routeProvider.otherwise({ redirectTo: '/login' diff --git a/clientApp/GUI/bower.json b/clientApp/GUI/bower.json index 315b74d..998eff3 100644 --- a/clientApp/GUI/bower.json +++ b/clientApp/GUI/bower.json @@ -1,6 +1,6 @@ { - "name": "angular-seed", - "description": "A starter project for AngularJS", + "name": "darkID-clientApp", + "description": "", "version": "0.0.0", "homepage": "", "license": "MIT", @@ -13,6 +13,7 @@ "angular-bootstrap": "^2.5.0", "components-font-awesome": "^4.7.0", "angular-toastr": "^2.1.1", - "cssMaterialColors": "*" + "cssMaterialColors": "*", + "angular-chart.js": "^1.1.1" } } diff --git a/clientApp/GUI/css/bootstrapMaterial-dark-overwrite.css b/clientApp/GUI/css/bootstrapMaterial-dark-overwrite.css index 259f10a..5cf2c3f 100644 --- a/clientApp/GUI/css/bootstrapMaterial-dark-overwrite.css +++ b/clientApp/GUI/css/bootstrapMaterial-dark-overwrite.css @@ -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; +} diff --git a/clientApp/GUI/fonts/Blanka/Blanka-Regular.otf b/clientApp/GUI/fonts/Blanka/Blanka-Regular.otf new file mode 100644 index 0000000..60b18d7 Binary files /dev/null and b/clientApp/GUI/fonts/Blanka/Blanka-Regular.otf differ diff --git a/clientApp/GUI/fonts/Blanka/Please Read This.rtf b/clientApp/GUI/fonts/Blanka/Please Read This.rtf new file mode 100644 index 0000000..007f41e --- /dev/null +++ b/clientApp/GUI/fonts/Blanka/Please Read This.rtf @@ -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} \ No newline at end of file diff --git a/clientApp/GUI/fonts/Elianto/Elianto-Regular.otf b/clientApp/GUI/fonts/Elianto/Elianto-Regular.otf new file mode 100644 index 0000000..6ad449c Binary files /dev/null and b/clientApp/GUI/fonts/Elianto/Elianto-Regular.otf differ diff --git a/clientApp/GUI/fonts/Elianto/Elianto-Regular.ttf b/clientApp/GUI/fonts/Elianto/Elianto-Regular.ttf new file mode 100644 index 0000000..2dbbc96 Binary files /dev/null and b/clientApp/GUI/fonts/Elianto/Elianto-Regular.ttf differ diff --git a/clientApp/GUI/img/darkID-logo-black.png b/clientApp/GUI/img/darkID-logo-black.png new file mode 100644 index 0000000..dc84861 Binary files /dev/null and b/clientApp/GUI/img/darkID-logo-black.png differ diff --git a/clientApp/GUI/img/darkID-logo-white.png b/clientApp/GUI/img/darkID-logo-white.png new file mode 100644 index 0000000..ddadf84 Binary files /dev/null and b/clientApp/GUI/img/darkID-logo-white.png differ diff --git a/clientApp/GUI/img/darkID-logo.xcf b/clientApp/GUI/img/darkID-logo.xcf new file mode 100644 index 0000000..56a372d Binary files /dev/null and b/clientApp/GUI/img/darkID-logo.xcf differ diff --git a/clientApp/GUI/img/darkID-logo01.png b/clientApp/GUI/img/darkID-logo01.png new file mode 100644 index 0000000..8165571 Binary files /dev/null and b/clientApp/GUI/img/darkID-logo01.png differ diff --git a/clientApp/GUI/img/darkID-logo01_transparent.png b/clientApp/GUI/img/darkID-logo01_transparent.png new file mode 100644 index 0000000..50cb8eb Binary files /dev/null and b/clientApp/GUI/img/darkID-logo01_transparent.png differ diff --git a/clientApp/GUI/img/darkID-logo02.png b/clientApp/GUI/img/darkID-logo02.png new file mode 100644 index 0000000..04fb61b Binary files /dev/null and b/clientApp/GUI/img/darkID-logo02.png differ diff --git a/clientApp/GUI/index.html b/clientApp/GUI/index.html index ba757bf..1b39b44 100644 --- a/clientApp/GUI/index.html +++ b/clientApp/GUI/index.html @@ -3,10 +3,16 @@ - blockchainIDsystem + darkID - + + + + + + + @@ -18,7 +24,7 @@
-




+



@@ -48,6 +54,10 @@ Works for both browser and electron with the same code --> + + + + @@ -58,6 +68,8 @@ Works for both browser and electron with the same code --> + + -
Date of creation: {{id.date}} - -
-

- +
+
+

{{id.pubK}}

+ {{id.date | date: "dd.MM.y, HH:mm:ss"}}h + + Not verified + Verified + Not signed + Signed + in Blockchain +
-
- Not verified - Verified +
+ Send to serverIDsigner
-
- Not signed - Signed +
+ Add to blockchain
-
Send to serverIDsigner
+ + Use ID + +
+
+ +
+ +
+ +
+
+
+
+
diff --git a/clientApp/GUI/views/main/main.js b/clientApp/GUI/views/main/main.js index 1563896..c7058f4 100755 --- a/clientApp/GUI/views/main/main.js +++ b/clientApp/GUI/views/main/main.js @@ -9,7 +9,11 @@ angular.module('app.main', ['ngRoute']) }); }]) - .controller('MainCtrl', function($scope, $http) { + .controller('MainCtrl', function($scope, $rootScope, $http) { + + $rootScope.server = JSON.parse(localStorage.getItem("old_darkID_server")); + + $scope.generatingID = false; $scope.ids = []; $http.get(clientapi + 'ids') .then(function(data) { @@ -22,19 +26,32 @@ angular.module('app.main', ['ngRoute']) }); $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(pubK) { - $http.get(clientapi + 'blindandsendtosign/' + pubK) + $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); @@ -44,8 +61,8 @@ angular.module('app.main', ['ngRoute']) console.log('data error'); }); }; - $scope.verify = function(pubK) { - $http.get(clientapi + 'verify/' + pubK) + $scope.clientApp = function(route, param) { + $http.get(clientapi + route + '/' + param) .then(function(data) { console.log('data success'); console.log(data); diff --git a/clientApp/GUI/views/navbar.html b/clientApp/GUI/views/navbar.html index 77da717..85eb44d 100755 --- a/clientApp/GUI/views/navbar.html +++ b/clientApp/GUI/views/navbar.html @@ -7,12 +7,29 @@ - - blockchainIDsystem + + darkID