Skip to content

Commit

Permalink
Merge pull request #456 from jplomas/reskin
Browse files Browse the repository at this point in the history
Reskin
  • Loading branch information
jplomas authored Nov 13, 2020
2 parents 612d83e + 3aa4435 commit 5a41ecb
Show file tree
Hide file tree
Showing 52 changed files with 1,225 additions and 232 deletions.
6 changes: 5 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
jobs:
build_wallet:
macos:
xcode: "9.0"
xcode: "12.2.0"

steps:
# Checkout repo
Expand Down Expand Up @@ -40,6 +40,10 @@ jobs:
# name: update npm to latest
# command: |
# npm i npm@latest -g
- run:
name: install snyk globally
command: |
npm i snyk -g && sudo chown -R $USER:$(id -gn $USER) /Users/distiller/.config
- run:
name: install dependencies
command: |
Expand Down
2 changes: 1 addition & 1 deletion .electrify/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ app.on('ready', function() {
if (process.platform === 'darwin') {
app.setAboutPanelOptions({
applicationName: "QRL Wallet",
applicationVersion: "1.5.0",
applicationVersion: "1.6.0",
version: "Electron 1.8.8",
copyright: "Die QRL Stiftung, Zug Switzerland",
credits: "The QRL Developers"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ local.json
/.deploy
.DS_Store
.snap
/mainnet.json
20 changes: 10 additions & 10 deletions .snyk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.14.1
version: v1.13.5
# ignores vulnerabilities until expiry date; change duration by modifying expiry date
ignore:
'npm:shelljs:20140723':
Expand All @@ -22,21 +22,21 @@ ignore:
- meteor-node-stubs > crypto-browserify > create-ecdh > elliptic:
reason: None given
expires: '2020-03-30T09:35:41.982Z'
meteor-node-stubs > crypto-browserify > browserify-sign > elliptic:
reason: None given
expires: '2020-09-28T14:57:26.056Z'
- meteor-node-stubs > crypto-browserify > browserify-sign > elliptic:
reason: None given
expires: '2020-03-30T09:35:41.982Z'
meteor-node-stubs > crypto-browserify > create-ecdh > elliptic:
reason: None given
expires: '2020-09-28T14:57:26.056Z'
- meteor-node-stubs > crypto-browserify > browserify-sign > elliptic:
reason: None given
expires: '2020-05-05T09:42:09.703Z'
- meteor-node-stubs > crypto-browserify > create-ecdh > elliptic:
reason: None given
expires: '2020-05-05T09:42:09.703Z'
- meteor-node-stubs > crypto-browserify > browserify-sign > elliptic:
reason: None given
expires: '2020-09-28T14:57:26.056Z'
- meteor-node-stubs > crypto-browserify > create-ecdh > elliptic:
reason: None given
expires: '2020-09-28T14:57:26.056Z'
'npm:plist:20180219':
- electrify-qrl > electron-packager > plist:
reason: None given
Expand All @@ -45,9 +45,6 @@ ignore:
- grpc > node-pre-gyp > mkdirp > minimist:
reason: None given
expires: '2020-05-05T09:42:09.702Z'
ledger-qrl-js > mocha > mkdirp > minimist:
reason: None given
expires: '2020-09-28T14:57:26.056Z'
- grpc > node-pre-gyp > tar > mkdirp > minimist:
reason: None given
expires: '2020-05-05T09:42:09.702Z'
Expand All @@ -60,6 +57,9 @@ ignore:
- xolvio-sync-webdriverio > webdriverio > optimist > minimist:
reason: None given
expires: '2020-05-05T09:42:09.703Z'
- ledger-qrl-js > mocha > mkdirp > minimist:
reason: None given
expires: '2020-09-28T14:57:26.056Z'
'npm:hoek:20180212':
- phantomjs-prebuilt > request > hawk > cryptiles > boom > hoek:
reason: None given
Expand Down
2 changes: 1 addition & 1 deletion client/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>QRL Wallet</title>
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/hack-font@3/build/web/hack-subset.css">
<!-- <l ink rel="stylesheet" href="//cdn.jsdelivr.net/npm/hack-font@3/build/web/hack-subset.css"> -->
</head>
6 changes: 3 additions & 3 deletions client/site/globals/site.variables.import.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
@pageFont : @fontName, 'Helvetica Neue', Arial, Helvetica, sans-serif;

@googleFontName : @fontName;
@importGoogleFonts : true;
@importGoogleFonts : false;
@googleFontSizes : '400,700,400italic,700italic';
@googleSubset : 'latin';

@googleProtocol : 'https://';
/* @googleProtocol : 'https://';
@googleFontRequest : '@{googleFontName}:@{googleFontSizes}&subset=@{googleSubset}';

*/
/*-------------------
Base Sizes
--------------------*/
Expand Down
6 changes: 3 additions & 3 deletions client/themes/default/globals/site.variables.import.less
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
@pageFont : @fontName, 'Helvetica Neue', Arial, Helvetica, sans-serif;

@googleFontName : @fontName;
@importGoogleFonts : true;
@importGoogleFonts : false;
@googleFontSizes : '400,700,400italic,700italic';
@googleSubset : 'latin';

@googleProtocol : 'https://';
/* @googleProtocol : 'https://';
@googleFontRequest : '@{googleFontName}:@{googleFontSizes}&subset=@{googleSubset}';

*/
/*-------------------
Base Sizes
--------------------*/
Expand Down
2 changes: 1 addition & 1 deletion devnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
}
]
},
"allowUnchecksummedNodes": false
"allowUnchecksummedNodes": true
}
2 changes: 1 addition & 1 deletion imports/startup/both/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import './nodes.js'
SHOR_PER_QUANTA = 1000000000

// qrl-wallet Version
WALLET_VERSION = '1.5.1'
WALLET_VERSION = '1.6.0'

// qrl.proto sha256 sum for each release of QRL Node
QRLPROTO_SHA256 = [
Expand Down
3 changes: 3 additions & 0 deletions imports/startup/client/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ getBalance = (getAddress, callBack) => {
Session.set('otsKeysRemaining', 0)
Session.set('otsBitfield', {})
Session.set('errorLoadingTransactions', true)
Session.set('loadingTransactions', false)
} else {
if (res.state.address !== '') {
Session.set('transferFromBalance', res.state.balance / SHOR_PER_QUANTA)
Expand Down Expand Up @@ -520,6 +521,7 @@ getBalance = (getAddress, callBack) => {
}
}
}
updateBalanceField()
})
}

Expand Down Expand Up @@ -670,6 +672,7 @@ updateBalanceField = () => {
})
}
} catch (error) {
console.log('error caught:', error)
// not in main transfer page, so use transferFromBalance session
Session.set('balanceAmount', Session.get('transferFromBalance'))
Session.set('balanceSymbol', 'Quanta')
Expand Down
3 changes: 2 additions & 1 deletion imports/startup/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ BrowserPolicy.content.allowStyleOrigin('fonts.googleapis.com')
BrowserPolicy.content.allowFontOrigin('cdn.jsdelivr.net')
BrowserPolicy.content.allowStyleOrigin('cdn.jsdelivr.net')
BrowserPolicy.content.allowFontOrigin('fonts.gstatic.com')
BrowserPolicy.content.allowFontOrigin('fonts.cdnfonts.com')
BrowserPolicy.content.allowStyleOrigin('fonts.cdnfonts.com')
BrowserPolicy.content.allowFontDataUrl()
BrowserPolicy.content.allowDataUrlForAll()

Expand Down Expand Up @@ -1829,7 +1831,6 @@ Meteor.methods({
let output
// asynchronous call to API
const response = Meteor.wrapAsync(getTxnHash)(request)

if (response.transaction.tx.transactionType === 'transfer_token') {
// Request Token Decimals / Symbol
const symbolRequest = {
Expand Down
11 changes: 5 additions & 6 deletions imports/ui/layouts/body/body.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
<!-- Main Menu -->
<div class="ui visible left vertical inverted sidebar labeled icon menu">
<a href="/" class="item logoArea">
<img class="main-menu-logo" src="/img/qrl-logo-white.png" />
QRL
<img class="main-menu-logo" src="/img/qrl-full-logo.svg" />
</a>
<a id="newWalletButton" href="/create" class="item main-menu-btn {{menuNewWalletActive}}">
<img class="icon svg" src="/img/icons/new-wallet.svg" />
Expand Down Expand Up @@ -50,7 +49,7 @@
<!-- Content Wrapper -->
<div class="main-content-wrapper">
<!-- Top Message Bar -->
<div class="main-content-warning ui fixed secondary menu">
<div class="main-content-warning ui fixed secondary menu" style="display: none;">
<div class="center menu">
<div class="ui item">
<a href="https://medium.com/the-quantum-resistant-ledger/last-week-in-qrl-may-21st-27th-fa8fb1017e02#1150"><div class="ui icon tiny message">
Expand Down Expand Up @@ -135,11 +134,11 @@ <h3 class="ui header pageHeader">
{{walletStatus.address}}
</div>
<div class="ui two column grid">
<div class="column">
<div class="column" style="z-index: -99;">
{{#if inProgress}}<div class="ui active inline mini loader"></div>{{/if}}
<small>{{balanceAmount}} {{balanceSymbol}}</small>
</div>
<div class="column">
<div class="column" style="z-index: -99;">
{{#if inProgress}}<div class="ui active inline mini loader"></div>{{/if}}
<small>{{otsKeysRemaining}} OTS keys remaining</small>
</div>
Expand All @@ -154,7 +153,7 @@ <h3 class="ui header pageHeader">
<div class="footer">
<div class="ui center aligned container">
<a href="/">
<img class="footerLogo" src="/img/Q@2x.png">
<img class="footerLogo" src="/img/qrl-logo-dark.png">
</a>
<br />
<div class="ui horizontal small divided link list">
Expand Down
4 changes: 4 additions & 0 deletions imports/ui/layouts/body/body.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,11 @@ Template.appBody.helpers({
return Session.get('transferFromBalance')
},
otsKeysRemaining() {
if (Session.get('errorLoadingTransactions')) {
return 'unknown'
}
return Session.get('otsKeysRemaining')

},
balanceSymbol() {
return Session.get('balanceSymbol')
Expand Down
12 changes: 6 additions & 6 deletions imports/ui/mobile/mobile.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
<div class="ui labeled icon bottom fixed {{menuItemsCount
}} item menu">

<a id="newWalletButton" href="/create" class="item">
<a id="newWalletButton" href="/create" class="item {{menuNewWalletActive}}">
<img class="svg" src="/img/icons/new-wallet.svg" />
New
</a>


<a id="openWalletButton" href="/open" class="item">
<a id="openWalletButton" href="/open" class="item {{menuOpenWalletActive}}">
<img class="svg" src="/img/icons/open-wallet.svg" />
Open
</a>

<a id="closeWalletButton" href="/close" class="item">
<a id="closeWalletButton" href="/close" class="item {{menuCloseWalletActive}}">
<img class="svg" src="/img/icons/lock.svg" />
Close
</a>

<a id="sendAndReceiveButton" href="/transfer" class="item">
<a id="sendAndReceiveButton" href="/transfer" class="item {{menuTransferActive}}">
<img class="svg" src="/img/icons/transfer.svg" />
Send &amp;<br />Receive
</a>
Expand All @@ -36,7 +36,7 @@
Tools
</a>

<a id="verifyButton" href="/verify" class="item">
<a id="verifyButton" href="/verify" class="item {{menuVerifyActive}}">
<img class="svg" src="/img/icons/tick.svg" />
Verify<br />Transaction
</a>
Expand All @@ -61,7 +61,7 @@
<div class="footer">
<div class="ui center aligned container">
<a href="/">
<img class="footerLogo" src="/img/Q@2x.png">
<img class="footerLogo" src="/img/qrl-logo-dark.png">
</a>
<br />
<div class="ui horizontal small divided link list">
Expand Down
59 changes: 59 additions & 0 deletions imports/ui/mobile/mobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, */

import './mobile.html'
import {
isElectrified,
} from '../../startup/client/functions'

BlazeLayout.setRoot('body')

Expand Down Expand Up @@ -288,4 +291,60 @@ Template.mobile.helpers({
customNodeName() {
return LocalStore.get('customNodeName')
},
/* Active Menu Item Helpers */
menuNewWalletActive() {
if (
(FlowRouter.getRouteName() === 'App.home')
|| (FlowRouter.getRouteName() === 'App.create')
|| (FlowRouter.getRouteName() === 'App.createAddress')) {
return 'active'
}
return ''
},
menuOpenWalletActive() {
if (
(FlowRouter.getRouteName() === 'App.open')
|| (FlowRouter.getRouteName() === 'App.opened')) {
return 'active'
}
return ''
},
menuCloseWalletActive() {
if (
(FlowRouter.getRouteName() === 'App.close')
|| (FlowRouter.getRouteName() === 'App.closed')) {
return 'active'
}
return ''
},
menuTransferActive() {
if (
(FlowRouter.getRouteName() === 'App.transfer')) {
return 'active'
}
return ''
},
menuTokensActive() {
if (
(FlowRouter.getRouteName() === 'App.tokens')
|| (FlowRouter.getRouteName() === 'App.tokensView')
|| (FlowRouter.getRouteName() === 'App.tokensCreate')
|| (FlowRouter.getRouteName() === 'App.tokenCreationConfirm')
|| (FlowRouter.getRouteName() === 'App.tokenCreationResult')
|| (FlowRouter.getRouteName() === 'App.tokensTransfer')
|| (FlowRouter.getRouteName() === 'App.tokensTransferLoad')
|| (FlowRouter.getRouteName() === 'App.tokensTransferConfirm')
|| (FlowRouter.getRouteName() === 'App.tokensTransferResult')) {
return 'active'
}
return ''
},
menuVerifyActive() {
if (
(FlowRouter.getRouteName() === 'App.verify')
|| (FlowRouter.getRouteName() === 'App.verifytxid')) {
return 'active'
}
return ''
},
})
2 changes: 1 addition & 1 deletion imports/ui/pages/close/close.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h2 id="closeWallet" class="ui center aligned icon header">
<i class="warning icon"></i>
<div class="content">
<div class="header">

</div>
<p>The XMSS tree on the Ledger device has changed. Please re-open the wallet to use functions for this XMSS tree.</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion imports/ui/pages/create/address.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ <h4 class="ui header">Hexseed</h4>
</div>
</div>

</template>
</template>
2 changes: 1 addition & 1 deletion imports/ui/pages/tools/keybase/keybaseConfirm.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h3>Error communicating with Ledger Nano. To save an OTS Key, you should reject
</div>

<h2 class="ui header pageHeader">
<i class="icon"><img src="/img/keybase.svg"></i>
<i class="icon"><img src="/img/keybase-w.svg"></i>
<div class="content">
Keybase Confirmation
</div>
Expand Down
4 changes: 2 additions & 2 deletions imports/ui/pages/tools/keybase/keybaseCreate.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ <h2 class="ui header pageHeader">
<h4 class="ui dividing header">Add or remove Keybase identity</h4>

<h4 id="transferFormFromAddress" class="breakable"><a class="ui purple label">From Address</a> {{transferFrom.address}}</h4>
<h4 class="breakable"><a class="ui yellow label">Quanta Balance</a> {{transferFrom.balance}}</h4>
<h4 class="breakable"><a class="ui yellow label">Quanta Balance</a> <span class="med">{{transferFrom.balance}}</span></h4>

<h4 class="ui horizontal divider header">
<img src="/img/keybase.svg">
<img src="/img/keybase-w.svg">
Keybase ID
</h4>

Expand Down
Loading

0 comments on commit 5a41ecb

Please sign in to comment.