-
{{exchange.exchangeName}}
+
Wallets
+
All your currency, all in one place
+
+
{{wallet.ExchangeName}}
- | Currency |
- Last |
- High |
- Low |
- Volume |
- Bid |
- Ask |
+ Currency Name |
+ Total |
+ Hold |
-
- | {{value.CryptoCurrency}} |
- {{value.Last}} |
- {{value.High}} |
- {{value.Low}} |
- {{value.Volume}} |
- {{value.Bid}} |
- {{value.Ask}} |
+
+ | {{value.CurrencyName}} |
+ {{value.TotalValue}} |
+ {{value.Hold}} |
-
-
-
\ No newline at end of file
diff --git a/web/app/views/wallets/wallets.js b/web/app/views/wallets/wallets.js
index eb4ac885..ace260c0 100644
--- a/web/app/views/wallets/wallets.js
+++ b/web/app/views/wallets/wallets.js
@@ -1,23 +1,23 @@
'use strict';
-angular.module('myApp.home', ['ngRoute'])
+angular.module('myApp.wallets', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/', {
- templateUrl: '/views/home/home.html',
- controller: 'HomeController'
+ templateUrl: '/views/wallets/wallets.html',
+ controller: 'WalletsController'
});
}])
-.controller('HomeController', function ($scope, $http, Notification) {
+.controller('WalletsController', function ($scope, $http, Notification) {
$scope.getDashboardData = function() {
$http({
method: 'GET',
- url: '/data/all-enabled-currencies'
+ url: '/data/all-enabled-exchange-account-info'
}).
success(function (data, status, headers, config) {
- $scope.exchanges = data.data;
- Notification.info("Retrieved latest data");
+ $scope.wallets = data.data;
+ Notification.info("Got your wallet!");
}).
error(function (data, status, headers, config) {
console.log('error');
diff --git a/web/package.json b/web/package.json
index 22d829f9..f801b12c 100644
--- a/web/package.json
+++ b/web/package.json
@@ -15,26 +15,24 @@
"karma-jasmine": "^0.3.8",
"karma-junit-reporter": "^0.4.1",
"protractor": "^3.2.2",
- "express" : "latest",
- "requestify":"latest",
- "body-parser":"latest"
+ "express": "latest",
+ "requestify": "latest",
+ "body-parser": "latest"
},
"scripts": {
"postinstall": "bower install",
-
"prestart": "npm install",
"start": "node server.js",
-
"pretest": "npm install",
"test": "karma start karma.conf.js",
"test-single-run": "karma start karma.conf.js --single-run",
-
"preupdate-webdriver": "npm install",
"update-webdriver": "webdriver-manager update",
-
"preprotractor": "npm run update-webdriver",
"protractor": "protractor e2e-tests/protractor.conf.js",
-
"update-index-async": "node -e \"var fs=require('fs'),indexFile='app/index-async.html',loaderFile='app/bower_components/angular-loader/angular-loader.min.js',loaderText=fs.readFileSync(loaderFile,'utf-8').split(/sourceMappingURL=angular-loader.min.js.map/).join('sourceMappingURL=bower_components/angular-loader/angular-loader.min.js.map'),indexText=fs.readFileSync(indexFile,'utf-8').split(/\\/\\/@@NG_LOADER_START@@[\\s\\S]*\\/\\/@@NG_LOADER_END@@/).join('//@@NG_LOADER_START@@\\n'+loaderText+' //@@NG_LOADER_END@@');fs.writeFileSync(indexFile,indexText);\""
+ },
+ "dependencies": {
+ "request": "^2.74.0"
}
}