Merge pull request #141 from Bitcoin-com/wallet/task/347

Adds faucet link
This commit is contained in:
Jean-Baptiste Dominguez 2018-05-24 21:39:02 +09:00 committed by GitHub
commit e6da8056da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 146 additions and 14 deletions

View file

@ -44,6 +44,20 @@ angular.module('copayApp.services').factory('bitcoincomService', function($http,
href: 'http://tools.bitcoin.com'
};
var priceChartItem = {
name: 'pricechart',
title: 'Bitcoin Price Charts',
icon: 'icon-chart',
sref: 'tabs.pricechart',
};
var faucetItem = {
name: 'faucet',
title: 'Free Bitcoin Cash',
icon: 'icon-faucet',
href: 'https://free.bitcoin.com/'
};
var _getBitPay = function(endpoint) {
return {
method: 'GET',
@ -74,6 +88,8 @@ angular.module('copayApp.services').factory('bitcoincomService', function($http,
nextStepsService.register(newsItem);
nextStepsService.register(poolItem);
nextStepsService.register(toolsItem);
nextStepsService.register(priceChartItem);
nextStepsService.register(faucetItem);
};
register();

View file

@ -3,17 +3,5 @@ angular.module('copayApp.services').factory('pricechartService', function($http,
var root = {};
var credentials = {};
var nextStepItem = {
name: 'pricechart',
title: 'Bitcoin Price Charts',
icon: 'icon-chart',
sref: 'tabs.pricechart',
};
var register = function() {
nextStepsService.register(nextStepItem);
};
register();
return root;
});

View file

@ -69,7 +69,7 @@
}
&.icon-buy-bitcoin2 {
background-color: #494949;
border: 1px solid #faba13;
}
&.icon-reddit-white {
@ -83,6 +83,11 @@
background-color: #1da1f2;
background-size: 60%;
}
&.icon-faucet {
background-image: url('../img/icon-faucet.svg');
background-size: 70%;
}
}
}