Skip to content

Commit

Permalink
Merge pull request #372 from theQRL/devnet
Browse files Browse the repository at this point in the history
Update CSP for Webasm loading
  • Loading branch information
jplomas authored Jun 26, 2019
2 parents b676d6d + bcb13cb commit 4bd95d0
Show file tree
Hide file tree
Showing 5 changed files with 4,157 additions and 3,208 deletions.
4 changes: 2 additions & 2 deletions imports/startup/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, */

// import { QRLLIB } from 'qrllib/build/web-libjsqrl.js' // eslint-disable-line
import { QRLLIBmodule } from 'qrllib/build/offline-libjsqrl'
import { QRLLIBmodule } from 'qrllib/build/offline-libjsqrl' // eslint-disable-line
import './routes.js'
import './functions.js'

Expand All @@ -29,6 +29,6 @@ if ((!openWalletPref) || (openWalletPref === 'undefined')) {

// Developer note
console.log('qrl-wallet - ', WALLET_VERSION)
console.log('We\'re hiring! [email protected]')
console.log('Work with us! [email protected]')
console.log('Found a security bug? [email protected]')
console.log('Found a problem? https://github.com/theQRL/qrl-wallet/issues')
1 change: 1 addition & 0 deletions imports/startup/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ BrowserPolicy.content.disallowInlineScripts()
BrowserPolicy.content.allowStyleOrigin('fonts.googleapis.com')
BrowserPolicy.content.allowFontOrigin('fonts.gstatic.com')
BrowserPolicy.content.allowFontDataUrl()
BrowserPolicy.content.allowDataUrlForAll()

// An array of grpc connections and associated proto file paths
const qrlClient = []
Expand Down
181 changes: 90 additions & 91 deletions imports/ui/layouts/body/body.html
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
<template name="appBody">
<!-- Custom Node Modal -->
{{>customNode}}
<!-- Custom Node Modal -->
{{>customNode}}

<!-- Main Menu -->
<div class="ui visible left vertical inverted sidebar labeled icon menu">
<a href="/" class="item logoArea">
<!-- 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
</a>
<a id="newWalletButton" href="/create" class="item main-menu-btn {{menuNewWalletActive}}">
<a id="newWalletButton" href="/create" class="item main-menu-btn {{menuNewWalletActive}}">
<img class="icon svg" src="/img/icons/new-wallet.svg" />
New Wallet
</a>
<a id="openWalletButton" href="/open" class="item main-menu-btn {{menuOpenWalletActive}}" style="{{walletStatus.menuHiddenInverse}}">
<a id="openWalletButton" href="/open" class="item main-menu-btn {{menuOpenWalletActive}}" style="{{walletStatus.menuHiddenInverse}}">
<img class="icon svg" src="/img/icons/open-wallet.svg" />
Open Wallet
</a>
<a id="closeWalletButton" href="/close" class="item main-menu-btn" style="{{walletStatus.menuHidden}}">
<a id="closeWalletButton" href="/close" class="item main-menu-btn" style="{{walletStatus.menuHidden}}">
<img class="icon svg" src="/img/icons/lock.svg" />
Close Wallet
</a>

<a id="sendAndReceiveButton" href="/transfer" class="item main-menu-btn {{menuTransferActive}}" style="{{walletStatus.menuHidden}}">
<a id="sendAndReceiveButton" href="/transfer" class="item main-menu-btn {{menuTransferActive}}" style="{{walletStatus.menuHidden}}">
<img class="icon svg" src="/img/icons/transfer.svg" />
Send &amp;<br />Receive
</a>

<a id="toolsButton" href="/tools" class="item main-menu-btn {{menuToolsActive}}" style="{{walletStatus.menuHidden}}">
<a id="toolsButton" href="/tools" class="item main-menu-btn {{menuToolsActive}}" style="{{walletStatus.menuHidden}}">
<i class="wrench icon"></i>
Tools
</a>

<a href="/verify" class="item main-menu-btn {{menuVerifyActive}}">
<a href="/verify" class="item main-menu-btn {{menuVerifyActive}}">
<img class="icon svg" src="/img/icons/tick.svg" />
Verify<br />Transaction
</a>
<a href="{{nodeExplorerUrl}}" target="_blank" class="item main-menu-btn">

<a href="{{nodeExplorerUrl}}" target="_blank" class="item main-menu-btn">
<i class="search icon"></i>
Explorer
</a>

<a class="item main-menu-btn sidebarConnectionStatus">
<a class="item main-menu-btn sidebarConnectionStatus">
<i class="{{connectionStatus.colour}} signal icon"></i>
</a>
</div>

<!-- Content Wrapper -->
<div class="main-content-wrapper">
<!-- Top Message Bar -->
<div class="main-content-warning ui fixed secondary menu">
<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">
</div>


<!-- Content Wrapper -->
<div class="main-content-wrapper">
<!-- Top Message Bar -->
<div class="main-content-warning ui fixed secondary menu">
<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">
<i class="help icon"></i>
<div class="content">
<div class="header">
Expand All @@ -62,9 +62,9 @@
<p>Read our blog for info and help &raquo;</p>
</div>
</div></a>
</div>
<div class="ui item">
<a href="https://medium.com/the-quantum-resistant-ledger/warning-fake-qrl-wallet-in-microsoft-store-a96f8318af1f">
</div>
<div class="ui item">
<a href="https://medium.com/the-quantum-resistant-ledger/warning-fake-qrl-wallet-in-microsoft-store-a96f8318af1f">
<div class="ui icon red tiny message">
<i class="warning small icon"></i>
<div class="content">
Expand All @@ -74,88 +74,87 @@
<p>Fake QRL app on Microsoft Store &raquo;</p>
</div>
</div>
</div>
</a>
</div>
<div class="right menu">
<div class="ui item">
<i class="close icon"></i>
</div>
</div>
</div>

<!-- Main Content Area -->
<div class="main-content">

<!-- Web Assembly Warning -->
<div class="small ui modal" id="webassemblyWarning">
<div class="header">Your browser is not supported!</div>
<div class="content">
<div class="ui warning icon message">
<i class="warning icon"></i>
<div class="content">
<p>Your browser does not support Web Assembly which is a core component in the QRL Wallet.</p>
<p>It is recommended that you use the latest version of Google Chrome or Mozilla Firefox to access the QRL Wallet.</p>
<p><a href="https://www.mozilla.org/" target="_blank">Download Mozilla Firefox</a></p>
<p><a href="https://www.google.com/chrome/" target="_blank">Download Google Chrome</a></p>
</div>
</div>
<div class="right menu">
<div class="ui item">
<i class="close icon"></i>
</div>
</div>
</div>
<!-- Main Content Area -->
<div class="main-content">

<!-- Web Assembly Warning -->
<div class="small ui modal" id="webassemblyWarning">
<div class="header">Your browser is not supported!</div>
<div class="content">
<div class="ui warning icon message">
<i class="warning icon"></i>
<div class="content">
<p>Your browser does not support Web Assembly which is a core component in the QRL Wallet.</p>
<p>It is recommended that you use the latest version of Google Chrome or Mozilla Firefox to access the QRL Wallet.</p>
<p><a href="https://www.mozilla.org/" target="_blank">Download Mozilla Firefox</a></p>
<p><a href="https://www.google.com/chrome/" target="_blank">Download Google Chrome</a></p>
</div>
</div>
</div>
<div class="actions">
<div class="ui approve button green">Okay</div>
</div>
</div>
</div>
<div class="actions">
<div class="ui approve button green">Okay</div>
</div>
</div>

<!-- Temporarily disable Address Format Selection so it doesn't disturb other goings-on
<!-- Temporarily disable Address Format Selection so it doesn't disturb other goings-on
<div class="ui toggle checkbox floatleft">
<input type="checkbox" id="addressFormatCheckbox" name="addressFormatCheckbox" {{ addressFormatChecked }} ><label for="addressFormatCheckbox"><strong>Address Format</strong> {{ addressFormat }} </label>
</div>
-->

<!-- Top Right Network Selection -->
<div class="ui selection dropdown floatright" id="networkDropdown">
<input id="network" type="hidden" value="{{nodeId}}">
<i class="dropdown icon"></i>
<div class="text"></div>
<div class="menu">
{{#each defaultNetworks}}
<div class="{{this.disabled}} item" data-value="{{this.id}}">{{this.name}}</div>
{{/each}}
{{#if customNodeCreated}}
<div class="item" data-value="custom">{{customNodeName}}</div>
{{/if}}
<div class="item" data-value="add">Add/Edit Custom Node</div>
</div>
</div>
<!-- Top Right Network Selection -->
<div class="ui selection dropdown floatright" id="networkDropdown">
<input id="network" type="hidden" value="{{nodeId}}">
<i class="dropdown icon"></i>
<div class="text"></div>
<div class="menu">
{{#each defaultNetworks}}
<div class="{{this.disabled}} item" data-value="{{this.id}}">{{this.name}}</div>
{{/each}}
{{#if customNodeCreated}}
<div class="item" data-value="custom">{{customNodeName}}</div>
{{/if}}
<div class="item" data-value="add">Add/Edit Custom Node</div>
</div>
</div>

<!-- Page Content -->
<div class="subPageContent">
<div class="ui container">
{{> Template.dynamic template=main}}
<!-- Page Content -->
<div class="subPageContent">
<div class="ui container">
{{> Template.dynamic template=main}}

<!-- Footer -->
<div class="footer">
<div class="ui center aligned container">
<a href="/">
<!-- Footer -->
<div class="footer">
<div class="ui center aligned container">
<a href="/">
<img class="footerLogo" src="/img/[email protected]">
</a>
<br />
<div class="ui horizontal small divided link list">
<a class="item" target="_blank" href="http://theqrl.org/">theQRL.org</a>
<a class="item" target="_blank" href="http://theqrl.org/whitepaper/QRL_whitepaper.pdf">White Paper</a>
<a class="item" target="_blank" href="https://github.com/theQRL">Github</a>
<a class="item" target="_blank" href="https://github.com/theQRL/qrl-wallet/issues">Found a Problem?</a>
<a class="item" target="_blank" href="https://github.com/theQRL/qrl-wallet">qrl-wallet v{{qrlWalletVersion}}</a>
<br />
<div class="ui horizontal small divided link list">
<a class="item" target="_blank" href="http://theqrl.org/">theQRL.org</a>
<a class="item" target="_blank" href="http://theqrl.org/whitepaper/QRL_whitepaper.pdf">White Paper</a>
<a class="item" target="_blank" href="https://github.com/theQRL">Github</a>
<a class="item" target="_blank" href="https://github.com/theQRL/qrl-wallet/issues">Found a Problem?</a>
<a class="item" target="_blank" href="https://github.com/theQRL/qrl-wallet">qrl-wallet v{{qrlWalletVersion}}</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

</div>
</div>




</template>
</template>
Loading

0 comments on commit 4bd95d0

Please sign in to comment.