Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Merge branch 'development' into 189-refactor-new-passphrase-modal
Browse files Browse the repository at this point in the history
  • Loading branch information
slaweet authored Jun 1, 2017
2 parents 99f9444 + ccca3b3 commit 814ac29
Show file tree
Hide file tree
Showing 14 changed files with 87 additions and 59 deletions.
9 changes: 8 additions & 1 deletion app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const { BrowserWindow } = electron;
const { Menu } = electron;

let win;
const copyright = `Copyright © 2016 - ${new Date().getFullYear()} Lisk Foundation`;

function createWindow() {
const { width, height } = electron.screen.getPrimaryDisplay().workAreaSize;
Expand Down Expand Up @@ -124,7 +125,7 @@ function createWindow() {
const options = {
buttons: ['OK'],
icon: `${__dirname}/assets/lisk.png`,
message: `Lisk Nano\nVersion ${app.getVersion()}\nCopyright © 2017 Lisk Foundation`,
message: `Lisk Nano\nVersion ${app.getVersion()}\n${copyright}`,
};
electron.dialog.showMessageBox(focusedWindow, options, () => {});
}
Expand Down Expand Up @@ -174,6 +175,12 @@ app.on('window-all-closed', () => {
}
});

// This will override the values defined in the app’s .plist file (macOS)
app.setAboutPanelOptions({
applicationName: 'Lisk Nano',
copyright,
});

app.on('activate', () => {
if (win === null) {
createWindow();
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lisk-nano",
"version": "0.2.1",
"version": "1.0.0-rc.1",
"description": "Lisk Nano",
"main": "main.js",
"author":{
Expand Down
4 changes: 4 additions & 0 deletions features/voting.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ Feature: Voting tab
Given I'm logged in as "any account"
When I click tab number 2
Then I should see table with 20 lines
Scenario: should allow to view delegates with cold account
Given I'm logged in as "empty account"
When I click tab number 2
Then I should see table with 20 lines
Scenario: should allow to search delegates
Given I'm logged in as "any account"
When I click tab number 2
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lisk-nano",
"version": "0.2.1",
"version": "1.0.0-rc.1",
"description": "Lisk Nano",
"homepage": "https://github.com/LiskHQ/lisk-nano",
"bugs": "https://github.com/LiskHQ/lisk-nano/issues",
Expand Down
1 change: 1 addition & 0 deletions src/components/delegates/delegates.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ app.component('delegates', {
this.votedList.forEach((delegate) => {
this.votedDict[delegate.username] = delegate;
});
}).finally(() => {
this.loadDelegates(0, this.$scope.search);
});
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/header/header.pug
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
md-content.header(layout='row', layout-align='center center', layout-padding)
img.logo(src=require('../../assets/images/LISK-nano.png'))
div(flex)
md-button.md-raised.md-primary.send-button(data-show-send-modal, ng-if='$root.logged') Send
md-button.md-raised.md-primary.send-button.offline-hide(data-show-send-modal, ng-if='$root.logged' ng-disabled='!$root.peers.online') Send
md-button.md-raised.md-secondary.logout-button(ng-click='$root.logout()', ng-if='$root.logged') Logout
md-menu.top-menu(ng-if='$root.logged', md-position-mode='target-right target', md-offset='14 0')
md-menu.top-menu.offline-hide(ng-if='$root.logged', md-position-mode='target-right target', md-offset='14 0')
md-button.md-icon-button(ng-click='$mdOpenMenu()')
i.material-icons more_vert
md-menu-content(width='2')
Expand Down
2 changes: 0 additions & 2 deletions src/components/main/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import './main.less';

/**
* The main component, used as parent for transaction, forging and delgate tabs.
*
Expand Down
45 changes: 0 additions & 45 deletions src/components/main/main.less

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/main/main.pug
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
top
md-tabs.main-tabs(md-stretch-tabs='always')
md-tabs.main-tabs.offline-hide(md-stretch-tabs='always')
md-tab(data-ui-sref='main.transactions', md-active='$ctrl.activeTab === "main.transactions"')
md-tab-label Transactions
md-tab(data-ui-sref='main.voting', md-active='$ctrl.activeTab === "main.voting"')
Expand Down
11 changes: 11 additions & 0 deletions src/components/send/send.less
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ send {
}

md-menu.max-funds {
position: absolute;
top: -10px;
right: 0;
&:after {
content: '';
display: inline-block;
Expand All @@ -49,4 +52,12 @@ send {
vertical-align: middle;
}
}
.dialog-send {
.relative-block {
position: relative;
}
.md-toolbar-tools {
padding: 0 24px;
}
}
}
6 changes: 3 additions & 3 deletions src/components/send/send.pug
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ div.dialog-send(aria-label='Send funds')
div(ng-messages='$ctrl.transferForm.recipient.$error')
div(ng-message='required') Required
div(ng-message='pattern') Invalid
div(layout="row")
md-input-container.md-block.flex-95
div.relative-block
md-input-container.md-block
label Transaction Amount
input.amount(type='text', name='amount', ng-model='$ctrl.amount.value', required, ng-pattern='$ctrl.amount.regexp', ng-disabled='$ctrl.loading')
div.fee(ng-show='$ctrl.amount.value') Fee: 0.1 LSK
div(ng-messages='$ctrl.transferForm.amount.$error')
div(ng-message='required') Required
div(ng-message='pattern') Invalid
div(ng-message='max') Insufficient funds
md-menu.flex-5.max-funds(md-position-mode='target-right target')
md-menu.max-funds(md-position-mode='target-right target')
md-button.md-icon-button(ng-click='$mdOpenMenu()')
i.material-icons more_vert
md-menu-content(width='4')
Expand Down
2 changes: 1 addition & 1 deletion src/components/top/top.pug
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ md-content(layout='column', layout-gt-xs='row')
span.md-title.title Delegate
.address.value {{ $ctrl.account.get().username }}
small.username {{ $ctrl.account.get().address }}
md-card.peer(flex-gt-xs=33)
md-card.peer.offline-hide(flex-gt-xs=33)
md-card-content(layout='column', layout-align='center center')
span.status
i.material-icons.offline(ng-show='!$ctrl.peers.online') error
Expand Down
54 changes: 53 additions & 1 deletion src/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,64 @@ body {

.offline .offline-hide {
opacity: 0.5;
pointer-events: none;
}

md-input-container {
overflow-x: hidden;
overflow-x: initial;
label:not(.md-no-float):not(.md-container-ignore), .md-placeholder {
box-sizing: content-box;
}
}

.absolutely-positioned-loading {
position: absolute;
margin: 24px 12px;
width: 100%;
z-index: 10;
}
}

md-toast.lsk-toast-success {
.md-toast-content {
background-color: #7cb342;
}
}

md-toast.lsk-toast-error {
.md-toast-content {
background-color: #c62828;
}
}

md-menu-item md-checkbox {
margin: 0;
padding: 8px;
}
md-menu-content {
border-radius: 2px;
}

md-tabs.main-tabs {
margin: 0 0 -8px 0;
md-tabs-wrapper {
margin: 0 8px;

&.md-stretch-tabs md-pagination-wrapper {
width: auto;
display: block;
}
md-ink-bar {
bottom: auto;
top: 0;
}
}
.md-tab {
background: #f4f4f4;
box-shadow: inset 0px -1px 1px -1px rgba(0, 0, 0, 0.12);
&.md-active {
background: white;
box-shadow: 0px -2px 1px 0px rgba(0,0,0,0.54);
}
}
}
2 changes: 1 addition & 1 deletion src/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ html
div.body-wrapper
md-content(id="main", flex='100', flex-gt-sm='80', flex-offset-gt-sm='10')
header
div(layout='row', layout-align='space-around', ng-show='prelogged')
div.absolutely-positioned-loading(layout='row', layout-align='space-around', ng-show='prelogged')
md-progress-circular.md-warn(md-mode='indeterminate', md-diameter='80')
div(ng-class='{ online: $root.peers.online, offline: !$root.peers.online }')
div(data-ui-view)

0 comments on commit 814ac29

Please sign in to comment.