changed next steps to explore and added some urls
This commit is contained in:
parent
60f3485585
commit
87b59e12a5
2 changed files with 38 additions and 7 deletions
|
|
@ -16,13 +16,34 @@ angular.module('copayApp.services').factory('bitcoincomService', function($http,
|
|||
credentials.BITPAY_API_URL = "https://bitpay.com";
|
||||
};
|
||||
|
||||
var nextStepItem = {
|
||||
name: 'bitcoincom',
|
||||
title: 'Explore Bitcoin.com',
|
||||
var cashGamesItem = {
|
||||
name: 'games',
|
||||
title: 'Bitcoin Cash Games',
|
||||
icon: 'icon-bitcoincom',
|
||||
sref: 'tabs.bitcoin-com',
|
||||
href: 'http://cashgames.bitcoin.com'
|
||||
};
|
||||
|
||||
var newsItem = {
|
||||
name: 'news',
|
||||
title: 'News',
|
||||
icon: 'icon-bitcoincom',
|
||||
href: 'http://news.bitcoin.com'
|
||||
};
|
||||
|
||||
var poolItem = {
|
||||
name: 'pool',
|
||||
title: 'Mining Pool',
|
||||
icon: 'icon-bitcoincom',
|
||||
href: 'http://pool.bitcoin.com'
|
||||
};
|
||||
|
||||
var toolsItem = {
|
||||
name: 'tools',
|
||||
title: 'Tools',
|
||||
icon: 'icon-bitcoincom',
|
||||
href: 'http://tools.bitcoin.com'
|
||||
}
|
||||
|
||||
var _getBitPay = function(endpoint) {
|
||||
return {
|
||||
method: 'GET',
|
||||
|
|
@ -49,7 +70,10 @@ angular.module('copayApp.services').factory('bitcoincomService', function($http,
|
|||
};
|
||||
|
||||
var register = function() {
|
||||
nextStepsService.register(nextStepItem);
|
||||
nextStepsService.register(cashGamesItem);
|
||||
nextStepsService.register(newsItem);
|
||||
nextStepsService.register(poolItem);
|
||||
nextStepsService.register(toolsItem);
|
||||
};
|
||||
|
||||
register();
|
||||
|
|
|
|||
|
|
@ -1,12 +1,19 @@
|
|||
<div ng-controller="nextStepsController">
|
||||
<div class="item item-icon-right item-heading" ng-click="toggle()" >
|
||||
<span translate>Explore</span>
|
||||
<span translate>Explore Bitcoin.com</span>
|
||||
<i class="icon bp-arrow-up" ng-show="!hide"></i>
|
||||
<i class="icon bp-arrow-down" ng-show="hide"></i>
|
||||
</div>
|
||||
<div ng-show="!hide">
|
||||
<div ng-repeat="service in services track by $index">
|
||||
<a ui-sref="{{service.sref}}" class="item item-sub item-icon-left item-big-icon-left item-icon-right next-step">
|
||||
<a ng-if="service.sref" ui-sref="{{service.sref}}" class="item item-sub item-icon-left item-big-icon-left item-icon-right next-step">
|
||||
<i class="icon big-icon-svg">
|
||||
<div class="bg {{service.icon}}"></div>
|
||||
</i>
|
||||
<span>{{service.title || service.name}}</span>
|
||||
<i class="icon bp-arrow-right"></i>
|
||||
</a>
|
||||
<a ng-if="!service.sref" href="{{service.href}}" class="item item-sub item-icon-left item-big-icon-left item-icon-right next-step">
|
||||
<i class="icon big-icon-svg">
|
||||
<div class="bg {{service.icon}}"></div>
|
||||
</i>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue