-
-
+
+
-
diff --git a/app/lib/i18n/translations/en.json b/app/lib/i18n/translations/en.json
index 1df844f4..341cca9d 100644
--- a/app/lib/i18n/translations/en.json
+++ b/app/lib/i18n/translations/en.json
@@ -1,108 +1,110 @@
{
- "Back to hivewallet.com": "Back to hivewallet.com",
- "Create new wallet": "Create new wallet",
- "Open existing wallet": "Open existing wallet",
- "We are about to generate your very own passphrase": "We're about to generate your very own passphrase",
- "This keeps your account secure, and lets you open your wallet on multiple devices.": "This keeps your account secure, and lets you open your wallet on multiple devices.",
- "It is very important you write this down.": "It's very important you write this down.",
- "Generate passphrase": "Generate passphrase",
- "Go back": "Go back",
- "Generating": "Generating",
- "Decoding passphrase": "Decoding passphrase",
- "Synchronizing Wallet": "Synchronizing Wallet",
- "Set your PIN": "Set your PIN",
- "Your passphrase": "Your passphrase",
- "Your passphrase will not be shown again.": "Your passphrase will not be shown again.",
- "Without it you will lose access to your wallet.": "Without it you will lose access to your wallet.",
- "I have written down or otherwise securely stored my passphrase": "I have written down or otherwise securely stored my passphrase",
- "Open wallet": "Open wallet",
- "Checking passphrase": "Checking passphrase",
- "Enter Passphrase": "Enter Passphrase",
- "Invalid passphrase": "Invalid passphrase",
- "Enter your PIN": "Enter your PIN",
- "Set a PIN for quick access": "Set a PIN for quick access",
- "Review passphrase again": "Review passphrase again",
- "Open a different wallet": "Open a different wallet",
- "Forgot PIN": "Forgot PIN",
- "PIN must be a 4-digit number": "PIN must be a 4-digit number",
- "Verifying PIN": "Verifying PIN",
- "Setting PIN": "Setting PIN",
- "This might take some time,": "This might take some time,",
- "please be patient.": "please be patient.",
- "Your PIN is incorrect": "Your PIN is incorrect",
- "Request timeout. Please check your internet connection.": "Request timeout. Please check your internet connection.",
- "Could not save your details": "Could not save your details",
- "We could not connect you to Waggle, please check your internet connection.": "We couldn't connect you to Waggle, please check your internet connection.",
- "Please enter a valid address to send to": "Please enter a valid address to send to",
- "Please enter an amount above": "Please enter an amount above %(dust)s",
- "Some funds are temporarily unavailable. To send this transaction, you will need to wait for your pending transactions to be confirmed first (this should not take more than a few minutes).": "Some funds are temporarily unavailable. To send this transaction, you'll need to wait for your pending transactions to be confirmed first (this shouldn't take more than a few minutes).",
- "What does this mean?": "What does this mean?",
- "It seems like you are trying to empty your wallet. Taking transaction fee into account, we estimated that the max amount you can send is. We have amended the value in the amount field for you": "It seems like you are trying to empty your wallet. Taking transaction fee into account, we estimated that the max amount you can send is %(sendableBalance)s. We have amended the value in the amount field for you.",
- "You do not have enough funds in your wallet": "You don't have enough funds in your wallet",
- "A name is required to set your profile on Hive": "A name is required to set your profile on Hive",
- "Uh Oh...": "Uh Oh...",
- "Whoops!": "Whoops!",
- "Just saying...": "Just saying...",
- "Your browser does not support geolocation": "Your browser does not support geolocation",
- "Unable to retrieve your location": "Unable to retrieve your location",
- "Without a name, the payer would not be able to identify you on Waggle.": "Without a name, the payer wouldn't be able to identify you on Waggle.",
- "cannot be blank": "%(blankField)s cannot be blank",
- "name": "name",
- "email": "email",
- "description": "description",
- "Change your details": "Change your details",
- "Your name": "Your name",
- "Gravatar email": "Gravatar email",
- "Submit": "Submit",
- "Gravatar (globally recognised avatar) is a service that lets you re-use the same avatar across websites and apps by specifying an email address.": "Gravatar (globally recognised avatar) is a service that lets you re-use the same avatar across websites and apps by specifying an email address.",
- "Create a gravatar": "Create a gravatar",
- "Logout": "Logout",
- "Support": "Support",
- "Send": "Send",
- "Receive": "Receive",
- "History": "History",
- "Tokens": "Tokens",
- "Waggle lets you broadcast your wallet address to other nearby Hive users by comparing GPS data. This data is deleted once you turn Waggle off.": "Waggle lets you broadcast your wallet address to other nearby Hive users by comparing GPS data. This data is deleted once you turn Waggle off.",
- "Having problems?": "Having problems?",
- "Description": "Description",
- "Your email address": "Your email address",
- "Nevermind": "Nevermind",
- "Before you start using Waggle, you need to enter a name that will help others identify you.": "Before you start using Waggle, you need to enter a name that will help others identify you.",
- "Save": "Save",
- "Loading transactions...": "Loading transactions...",
- "Your transaction history": "Your transaction history",
- "pending confirmation": "pending confirmation",
- "Received": "Received",
- "You do not have any transactions yet": "You don't have any transactions yet",
- "Transaction Id:": "Transaction Id:",
- "Transaction Fee:": "Transaction Fee:",
- "Inputs:": "Inputs:",
- "Outputs:": "Outputs:",
- "Sent to:": "Sent to:",
- "Your wallet address": "Your wallet address",
- "Waggle": "Waggle",
- "Turn Waggle on": "Turn Waggle on",
- "Turn Waggle off": "Turn Waggle off",
- "Checking your location": "Checking your location",
- "Broadcasting your location...": "Broadcasting your location...",
- "Wallet address": "Wallet address",
- "Amount": "Amount",
- "Exchange rate unavailable for the selected currency": "Exchange rate unavailable for the selected currency",
- "Confirm": "Confirm",
- "No Hive users found nearby": "No Hive users found nearby",
- "Search Again": "Search Again",
- "Searching...": "Searching...",
- "Searching your area for other Hive Web users": "Searching your area for other Hive Web users",
- "Confirm transaction": "Confirm transaction",
- "transaction fee": "transaction fee",
- "Cancel": "Cancel",
- "Transaction Successful": "Transaction Successful",
- "Your transaction will appear in your history tab shortly.": "Your transaction will appear in your history tab shortly.",
- "Close": "Close",
- "Report": "Report",
- "Transaction Failed": "Transaction Failed",
- "Please make sure you are connected to the internet.": "Please make sure you are connected to the internet.",
- "Please describe what happened above. Below are network error logs that could help us identify your issue.": "Please describe what happened above. Below are network error logs that could help us identify your issue.",
- "Sorry, Hive Wallet did not load.": "Sorry, Hive Wallet didn't load.",
- "Try updating your browser, or switching out of private browsing mode. If all else fails, download Chrome for your device.": "Try updating your browser, or switching out of private browsing mode. If all else fails, download Chrome for your device."
+ "Back to bitlox.io": "Back to bitlox.io",
+ "Create new wallet": "Create new wallet",
+ "Open existing wallet": "Open existing wallet",
+ "We are about to generate your very own passphrase": "We're about to generate your very own passphrase",
+ "This keeps your account secure, and lets you open your wallet on multiple devices.": "This keeps your account secure, and lets you open your wallet on multiple devices.",
+ "It is very important you write this down.": "It's very important you write this down.",
+ "Generate passphrase": "Generate passphrase",
+ "Go back": "Go back",
+ "Generating": "Generating",
+ "Decoding passphrase": "Decoding passphrase",
+ "Synchronizing Wallet": "Synchronizing Wallet",
+ "Set your PIN": "Set your PIN",
+ "Your passphrase": "Your passphrase",
+ "Your passphrase will not be shown again.": "Your passphrase will not be shown again.",
+ "Without it you will lose access to your wallet.": "Without it you will lose access to your wallet.",
+ "I have written down or otherwise securely stored my passphrase": "I have written down or otherwise securely stored my passphrase",
+ "Open wallet": "Open wallet",
+ "Checking passphrase": "Checking passphrase",
+ "Enter Passphrase": "Enter Passphrase",
+ "Invalid passphrase": "Invalid passphrase",
+ "Enter your PIN": "Enter your PIN",
+ "Set a PIN for quick access": "Set a PIN for quick access",
+ "Review passphrase again": "Review passphrase again",
+ "Open a different wallet": "Open a different wallet",
+ "Forgot PIN": "Forgot PIN",
+ "PIN must be a 4-digit number": "PIN must be a 4-digit number",
+ "Verifying PIN": "Verifying PIN",
+ "Setting PIN": "Setting PIN",
+ "This might take some time,": "This might take some time,",
+ "please be patient.": "please be patient.",
+ "Your PIN is incorrect": "Your PIN is incorrect",
+ "Request timeout. Please check your internet connection.": "Request timeout. Please check your internet connection.",
+ "Could not save your details": "Could not save your details",
+ "We could not connect you to Waggle, please check your internet connection.": "We couldn't connect you to Waggle, please check your internet connection.",
+ "Please enter a valid address to send to": "Please enter a valid address to send to",
+ "Please enter an amount above": "Please enter an amount above %(dust)s",
+ "Some funds are temporarily unavailable. To send this transaction, you will need to wait for your pending transactions to be confirmed first (this should not take more than a few minutes).": "Some funds are temporarily unavailable. To send this transaction, you'll need to wait for your pending transactions to be confirmed first (this shouldn't take more than a few minutes).",
+ "What does this mean?": "What does this mean?",
+ "It seems like you are trying to empty your wallet. Taking transaction fee into account, we estimated that the max amount you can send is. We have amended the value in the amount field for you": "It seems like you are trying to empty your wallet. Taking transaction fee into account, we estimated that the max amount you can send is %(sendableBalance)s. We have amended the value in the amount field for you.",
+ "You do not have enough funds in your wallet": "You don't have enough funds in your wallet",
+ "A name is required to set your profile on Hive": "A name is required to set your profile on Hive",
+ "Uh Oh...": "Uh Oh...",
+ "Whoops!": "Whoops!",
+ "Just saying...": "Just saying...",
+ "Your browser does not support geolocation": "Your browser does not support geolocation",
+ "Unable to retrieve your location": "Unable to retrieve your location",
+ "Without a name, the payer would not be able to identify you on Waggle.": "Without a name, the payer wouldn't be able to identify you on Waggle.",
+ "cannot be blank": "%(blankField)s cannot be blank",
+ "name": "name",
+ "email": "email",
+ "description": "description",
+ "Change your details": "Change your details",
+ "Your name": "Your name",
+ "Gravatar email": "Gravatar email",
+ "Submit": "Submit",
+ "Gravatar (globally recognised avatar) is a service that lets you re-use the same avatar across websites and apps by specifying an email address.": "Gravatar (globally recognised avatar) is a service that lets you re-use the same avatar across websites and apps by specifying an email address.",
+ "Create a gravatar": "Create a gravatar",
+ "Logout": "Logout",
+ "Support": "Support",
+ "Send": "Send",
+ "Receive": "Receive",
+ "History": "History",
+ "Sign": "Sign",
+ "Waggle lets you broadcast your wallet address to other nearby Hive users by comparing GPS data. This data is deleted once you turn Waggle off.": "Waggle lets you broadcast your wallet address to other nearby Hive users by comparing GPS data. This data is deleted once you turn Waggle off.",
+ "Having problems?": "Having problems?",
+ "Description": "Description",
+ "Your email address": "Your email address",
+ "Nevermind": "Nevermind",
+ "Before you start using Waggle, you need to enter a name that will help others identify you.": "Before you start using Waggle, you need to enter a name that will help others identify you.",
+ "Save": "Save",
+ "Loading transactions...": "Loading transactions...",
+ "Your transaction history": "Your transaction history",
+ "pending confirmation": "pending confirmation",
+ "Received": "Received",
+ "You do not have any transactions yet": "You don't have any transactions yet",
+ "Transaction Id:": "Transaction Id:",
+ "Transaction Fee:": "Transaction Fee:",
+ "Inputs:": "Inputs:",
+ "Outputs:": "Outputs:",
+ "Sent to:": "Sent to:",
+ "Message": "Message",
+ "Clear": "Clear",
+ "Your wallet address": "Your wallet address",
+ "Waggle": "Waggle",
+ "Turn Waggle on": "Turn Waggle on",
+ "Turn Waggle off": "Turn Waggle off",
+ "Checking your location": "Checking your location",
+ "Broadcasting your location...": "Broadcasting your location...",
+ "Wallet address": "Wallet address",
+ "Amount": "Amount",
+ "Exchange rate unavailable for the selected currency": "Exchange rate unavailable for the selected currency",
+ "Confirm": "Confirm",
+ "No Hive users found nearby": "No Hive users found nearby",
+ "Search Again": "Search Again",
+ "Searching...": "Searching...",
+ "Searching your area for other Hive Web users": "Searching your area for other Hive Web users",
+ "Confirm transaction": "Confirm transaction",
+ "transaction fee": "transaction fee",
+ "Cancel": "Cancel",
+ "Transaction Successful": "Transaction Successful",
+ "Your transaction will appear in your history tab shortly.": "Your transaction will appear in your history tab shortly.",
+ "Close": "Close",
+ "Report": "Report",
+ "Transaction Failed": "Transaction Failed",
+ "Please make sure you are connected to the internet.": "Please make sure you are connected to the internet.",
+ "Please describe what happened above. Below are network error logs that could help us identify your issue.": "Please describe what happened above. Below are network error logs that could help us identify your issue.",
+ "Sorry, Hive Wallet did not load.": "Sorry, Hive Wallet didn't load.",
+ "Try updating your browser, or switching out of private browsing mode. If all else fails, download Chrome for your device.": "Try updating your browser, or switching out of private browsing mode. If all else fails, download Chrome for your device."
}
diff --git a/app/lib/qrcode/index.js b/app/lib/qrcode/index.js
index 3b696270..e6d9aa8e 100644
--- a/app/lib/qrcode/index.js
+++ b/app/lib/qrcode/index.js
@@ -4,33 +4,32 @@
var qr = require('qr.js')
function encode(string, options) {
- options = options || {}
- var width = options.width || 200
- var height = options.height || 200
+ options = options || {}
+ var width = options.width || 200
+ var height = options.height || 200
- var canvas = document.createElement('canvas')
- canvas.width = width
- canvas.height = height
+ var canvas = document.createElement('canvas')
+ canvas.width = width
+ canvas.height = height
- var ctx = canvas.getContext('2d')
+ var ctx = canvas.getContext('2d')
- var cells = qr(string).modules
+ var cells = qr(string).modules
- var tileW = width / cells.length
- var tileH = height / cells.length
+ var tileW = width / cells.length
+ var tileH = height / cells.length
- for (var r = 0; r < cells.length ; ++r) {
- var row = cells[r]
- for (var c = 0; c < row.length ; ++c) {
- ctx.fillStyle = row[c] ? '#000' : '#fff'
- var w = (Math.ceil((c+1)*tileW) - Math.floor(c*tileW))
- var h = (Math.ceil((r+1)*tileH) - Math.floor(r*tileH))
- ctx.fillRect(Math.round(c*tileW), Math.round(r*tileH), w, h)
- }
- }
+ for (var r = 0; r < cells.length ; ++r) {
+ var row = cells[r]
+ for (var c = 0; c < row.length ; ++c) {
+ ctx.fillStyle = row[c] ? '#000' : '#fff'
+ var w = (Math.ceil((c+1)*tileW) - Math.floor(c*tileW))
+ var h = (Math.ceil((r+1)*tileH) - Math.floor(r*tileH))
+ ctx.fillRect(Math.round(c*tileW), Math.round(r*tileH), w, h)
+ }
+ }
- return canvas
+ return canvas
}
module.exports = encode
-
diff --git a/app/lib/ractive/index.js b/app/lib/ractive/index.js
index 36e939aa..1de8da5b 100644
--- a/app/lib/ractive/index.js
+++ b/app/lib/ractive/index.js
@@ -64,8 +64,7 @@ partials.svg_sendto = require('hive-svg/sendto.ract').template
partials.svg_settings = require('hive-svg/settings.ract').template
partials.svg_success = require('hive-svg/success.ract').template
partials.svg_token_bitcoin = require('hive-svg/token_bitcoin.ract').template
-partials.svg_token_litecoin = require('hive-svg/token_litecoin.ract').template
-partials.svg_token = require('hive-svg/token.ract').template
+partials.svg_sign = require('hive-svg/sign.ract').template
partials.svg_user = require('hive-svg/user.ract').template
partials.svg_waggle = require('hive-svg/waggle.ract').template
partials.svg_warning = require('hive-svg/warning.ract').template
diff --git a/app/lib/svg/sign.ract b/app/lib/svg/sign.ract
new file mode 100644
index 00000000..e515f5f6
--- /dev/null
+++ b/app/lib/svg/sign.ract
@@ -0,0 +1,8 @@
+
+
diff --git a/app/lib/zendesk/index.js b/app/lib/zendesk/index.js
index 81f565ea..8f8e4bc8 100644
--- a/app/lib/zendesk/index.js
+++ b/app/lib/zendesk/index.js
@@ -13,10 +13,9 @@ function sendRequest(paramsObj, callback) {
}).join('&')
var uri = "https://hivewallet.zendesk.com/requests/embedded/create/?" + params
- var corsUri = process.env.PROXY_URL + "?url=" + encodeURIComponent(uri)
xhr({
- uri: corsUri
+ uri: uri
}, function(err, resp, body) {
if (resp.statusCode !== 201) {
console.error(body)
diff --git a/app/loader/index.js b/app/loader/index.js
index 5213f920..01f44f56 100644
--- a/app/loader/index.js
+++ b/app/loader/index.js
@@ -17,47 +17,43 @@ var languages = require('hive-i18n').languages
document.getElementsByTagName('html')[0].classList.add(token)
var elems = {
- block1: document.getElementById('logo_block1'),
- block2: document.getElementById('logo_block2'),
- block3: document.getElementById('logo_block3'),
- block4: document.getElementById('logo_block4'),
- block5: document.getElementById('logo_block5'),
+ block1: document.getElementById('logo_block1'),
+ block2: document.getElementById('logo_block2'),
+ block3: document.getElementById('logo_block3'),
+ block4: document.getElementById('logo_block4'),
+ block5: document.getElementById('logo_block5'),
}
var containerEl = document.getElementById('loader')
var keyEl = document.getElementById('logo_key')
var goodToGo;
-animateLogo(elems)
Modernizr.on('indexeddb', function(hasIndexedDB){
- var supportsPouchDB = hasIndexedDB || Modernizr.websqldatabase
- var language = findTranslation()
-
- Modernizr.load({
- test: supportsPouchDB && (Modernizr.localstorage && Modernizr.webworkers && Modernizr.blobconstructor && Modernizr.getrandomvalues),
- yep: 'assets/js/application-' + language + '.js',
- nope: 'assets/js/nope-' + language + '.js',
- callback: function(testResult, key) {
- goodToGo = key
- },
- complete: function() {
- if(goodToGo) {
- setTimeout(function(){
- fadeOut(containerEl, keyEl)
- }, 1000)
- }
- }
- })
+ var supportsPouchDB = hasIndexedDB || Modernizr.websqldatabase
+ var language = findTranslation()
+
+ Modernizr.load({
+ test: supportsPouchDB && (Modernizr.localstorage && Modernizr.webworkers && Modernizr.blobconstructor && Modernizr.getrandomvalues),
+ yep: 'assets/js/application-' + language + '.js',
+ nope: 'assets/js/nope-' + language + '.js',
+ callback: function(testResult, key) {
+ goodToGo = key
+ },
+ complete: function() {
+ if(goodToGo) {
+ window.initHiveApp()
+ }
+ }
+ })
})
function findTranslation(){
- var language = navigator.language.toLocaleLowerCase() || 'en'
- return languages.filter(function(l){
- return language === l || language.substr(0, 2) === l
- })[0] || 'en'
+ var language = navigator.language.toLocaleLowerCase() || 'en'
+ return languages.filter(function(l){
+ return language === l || language.substr(0, 2) === l
+ })[0] || 'en'
}
//monkey patch URL for safari 6
window.URL = window.URL || window.webkitURL
-
diff --git a/app/pages/history/index.ract b/app/pages/history/index.ract
index 115f4c24..0a9ec001 100644
--- a/app/pages/history/index.ract
+++ b/app/pages/history/index.ract
@@ -1,44 +1,44 @@