mirror of
https://github.com/seigler/dash-website
synced 2025-07-27 07:16:10 +00:00
cleanup for build. Issues remain with internal image /pt/assets/img/blog/CoPayWalletcopy.jpg
This commit is contained in:
parent
c86880246c
commit
9bb2ff7536
6 changed files with 29 additions and 20 deletions
|
@ -2,7 +2,7 @@
|
||||||
author: tungfa
|
author: tungfa
|
||||||
layout: post
|
layout: post
|
||||||
image: TheDosandDonts.jpg
|
image: TheDosandDonts.jpg
|
||||||
title: The Dos and Don'ts of Pushing Crypto: Evangelist John Bush
|
title: "The Dos and Don'ts of Pushing Crypto: Evangelist John Bush"
|
||||||
---
|
---
|
||||||
While Bitcoin value and use continue to grow year after year, cryptocurrency is still a far cry from total main street adoption.
|
While Bitcoin value and use continue to grow year after year, cryptocurrency is still a far cry from total main street adoption.
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
author: tungfa
|
author: tungfa
|
||||||
layout: post
|
layout: post
|
||||||
image:
|
image:
|
||||||
title: Future of DASH Cryptocurrency : Ryan Taylor (Director of Finance)
|
title: "Future of DASH Cryptocurrency : Ryan Taylor (Director of Finance)"
|
||||||
---
|
---
|
||||||
<iframe width="560" height="315" src="https://www.youtube.com/embed/U7wv2zozTCY" frameborder="0" allowfullscreen></iframe>
|
<iframe width="560" height="315" src="https://www.youtube.com/embed/U7wv2zozTCY" frameborder="0" allowfullscreen></iframe>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
author: tungfa
|
author: tungfa
|
||||||
layout: post
|
layout: post
|
||||||
image: CoPayWalletcopy.jpg
|
image: CoPayWalletcopy.jpg
|
||||||
title: Copay-Dash Wallet (Testnet Only / RC 0.1)
|
title: "Copay-Dash Wallet (Testnet Only / RC 0.1)"
|
||||||
---
|
---
|
||||||
I’m happy to announce a “Release Candidate” version of Copay-Dash, a variant of the Copay wallet which was originally developed by Bitpay.
|
I’m happy to announce a “Release Candidate” version of Copay-Dash, a variant of the Copay wallet which was originally developed by Bitpay.
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
author: tungfa
|
author: tungfa
|
||||||
layout: post
|
layout: post
|
||||||
image: CoPayWalletcopy.jpg
|
image: CoPayWalletcopy.jpg
|
||||||
title: Copay-Dash Wallet (Testnet só / RC 0.1)
|
title: "Copay-Dash Wallet (Testnet só / RC 0.1)"
|
||||||
---
|
---
|
||||||
Estou feliz em anunciar uma versão “Release Candidate” da Copay-Dash, uma carteira Copay que foi desenvolvida pela Bitpay.
|
Estou feliz em anunciar uma versão “Release Candidate” da Copay-Dash, uma carteira Copay que foi desenvolvida pela Bitpay.
|
||||||
Além das características habituais de outras carteiras, este aplicativo com todas as características possui:
|
Além das características habituais de outras carteiras, este aplicativo com todas as características possui:
|
||||||
|
|
|
@ -5,6 +5,11 @@
|
||||||
;(function ($) {
|
;(function ($) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
var _ = window._ || null,
|
||||||
|
walletsCollectionByOs = window.walletsCollectionByOs || undefined,
|
||||||
|
platform = window.platform || undefined
|
||||||
|
;
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
if (typeof(walletsCollectionByOs) !== 'undefined' && walletsCollectionByOs) {
|
if (typeof(walletsCollectionByOs) !== 'undefined' && walletsCollectionByOs) {
|
||||||
initDownloadButton();
|
initDownloadButton();
|
||||||
|
@ -12,12 +17,12 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
function getBestWalletMatch() {
|
function getBestWalletMatch() {
|
||||||
var _walletsCollection = _.flatten(walletsCollectionByOs.map(function (walletGroupCollection){
|
var _walletsCollection = _.flatten(walletsCollectionByOs.map(function (walletGroupCollection) {
|
||||||
return walletGroupCollection.items;
|
return walletGroupCollection.items;
|
||||||
})),
|
})),
|
||||||
_family = platform.os.family,
|
_family = platform && platform.os && platform.os.family,
|
||||||
_vendor = 'dash_core',
|
_vendor = 'dash_core',
|
||||||
_product_id = null,
|
_productId = null,
|
||||||
_walletOs = 'win32',
|
_walletOs = 'win32',
|
||||||
_type = 'desktop',
|
_type = 'desktop',
|
||||||
detectedWallet = {}
|
detectedWallet = {}
|
||||||
|
@ -40,47 +45,49 @@
|
||||||
_type = 'desktop';
|
_type = 'desktop';
|
||||||
break;
|
break;
|
||||||
case /^ios/gi.test(_family):
|
case /^ios/gi.test(_family):
|
||||||
_walletOs = 'ios'
|
_walletOs = 'ios';
|
||||||
_vendor = '';
|
_vendor = '';
|
||||||
_type = '';
|
_type = '';
|
||||||
break;
|
break;
|
||||||
case /(linux|centos|debian|fedora|freebsd|gentoo|haiku|kubuntu|openbsd|red hat|suse|ubuntu|cygwin)/gi.test(_family):
|
case /(linux|centos|debian|fedora|freebsd|gentoo|haiku|kubuntu|openbsd|red hat|suse|ubuntu|cygwin)/gi.test(_family):
|
||||||
_walletOs = 'linux';
|
_walletOs = 'linux';
|
||||||
_product_id = platform.os.architecture === 32 ? 'dash_core_linux_32' : 'dash_core_linux_64';
|
_productId = platform.os.architecture === 32 ? 'dash_core_linux_32' : 'dash_core_linux_64';
|
||||||
_vendor = 'dash_core';
|
_vendor = 'dash_core';
|
||||||
_type = 'desktop';
|
_type = 'desktop';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
||||||
// do nothing;
|
// do nothing;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( _product_id ) {
|
if (_productId) {
|
||||||
detectedWallet = _.find(_walletsCollection,{product_id:_product_id});
|
detectedWallet = _.find(_walletsCollection,{ product_id: _productId});
|
||||||
} else {
|
} else {
|
||||||
detectedWallet = _.find(_walletsCollection,{os:_walletOs,vendor_id:_vendor,type:_type});
|
detectedWallet = _.find(_walletsCollection,{ os: _walletOs, vendor_id: _vendor, type: _type});
|
||||||
}
|
}
|
||||||
|
|
||||||
console.info('detectedWallet: ' , detectedWallet, {os:_walletOs,vendor_id:_vendor,type:_type});
|
console.info('detectedWallet: ' , detectedWallet, { os: _walletOs, vendor_id: _vendor, type: _type});
|
||||||
return detectedWallet;
|
return detectedWallet;
|
||||||
}
|
}
|
||||||
|
|
||||||
function onDownloadClick (event) {
|
function onDownloadClick(event) {
|
||||||
var _dlButton = $(event.target),
|
var _dlButton = $(event.target),
|
||||||
_linkTo = _dlButton.data('detectedWallet').links[0].url;
|
_linkTo = _dlButton.data('detectedWallet').links[0].url
|
||||||
;
|
;
|
||||||
window.open(_linkTo,"_blank");
|
|
||||||
|
window.open(_linkTo,'_blank');
|
||||||
}
|
}
|
||||||
|
|
||||||
function initDownloadButton(){
|
function initDownloadButton() {
|
||||||
var _downloadButton = $('#download-detected-platform-button'),
|
var _downloadButton = $('#download-detected-platform-button'),
|
||||||
_detectedWallet = getBestWalletMatch(),
|
_detectedWallet = getBestWalletMatch(),
|
||||||
_notDetectedMessage = $('#platform-not-detected');
|
_notDetectedMessage = $('#platform-not-detected')
|
||||||
;
|
;
|
||||||
|
|
||||||
if (_downloadButton && _downloadButton.length > 0) {
|
if (_downloadButton && _downloadButton.length > 0) {
|
||||||
if (_detectedWallet) {
|
if (_detectedWallet && platform) {
|
||||||
_downloadButton.html(_detectedWallet.links[0].label+': '+_detectedWallet.name)
|
_downloadButton.html(_detectedWallet.links[0].label + ': ' + _detectedWallet.name)
|
||||||
.attr({
|
.attr({
|
||||||
title: platform.os.toString()
|
title: platform.os.toString()
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* eslint-disable */
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Platform.js <https://mths.be/platform>
|
* Platform.js <https://mths.be/platform>
|
||||||
* Copyright 2014-2016 Benjamin Tan <https://demoneaux.github.io/>
|
* Copyright 2014-2016 Benjamin Tan <https://demoneaux.github.io/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue