This repository has been archived by the owner on Apr 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into 66_infinite-scroll
- Loading branch information
Showing
22 changed files
with
285 additions
and
70 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,5 @@ | |
"version": "0.2.0", | ||
"description": "Lisk Nano", | ||
"main": "main.js", | ||
"author":{ | ||
"name": "Ricardo Ferro", | ||
"email": "[email protected]" | ||
} | ||
"author": "Lisk Foundation <[email protected]>, lightcurve GmbH <[email protected]>" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,33 @@ | ||
md-card.offline-hide | ||
md-card-title | ||
md-card-title-text | ||
span.md-title Send | ||
md-menu(md-position-mode='target-right target') | ||
md-button.md-icon-button(ng-click='$mdOpenMenu()') | ||
i.material-icons more_vert | ||
md-menu-content(width='4') | ||
md-menu-item | ||
md-button(ng-click='$ctrl.setMaxAmount()') | ||
div(layout='row', flex='') | ||
p(flex='') Set maximum amount | ||
md-card-content | ||
form(name='$ctrl.sendForm') | ||
md-content(flex='100', flex-gt-sm='70', flex-offset-gt-sm='15') | ||
md-input-container.md-block | ||
label Recipient Address | ||
input(type='text', name='recipient', ng-model='$ctrl.recipient.value', required, ng-pattern='$ctrl.recipient.regexp', ng-disabled='$ctrl.loading') | ||
div(ng-messages='$ctrl.sendForm.recipient.$error') | ||
div(ng-message='required') Required | ||
div(ng-message='pattern') Invalid | ||
md-input-container.md-block | ||
label Transaction Amount | ||
input(type='number', name='amount', ng-model='$ctrl.amount.value', required, ng-pattern='$ctrl.amount.regexp', ng-disabled='$ctrl.loading', ng-max='$ctrl.amount.max', ignore-mouse-wheel) | ||
div.fee(ng-show='$ctrl.amount.value') Fee: 0.1 LSK | ||
div(ng-messages='$ctrl.sendForm.amount.$error') | ||
div(ng-message='required') Required | ||
div(ng-message='pattern') Invalid | ||
div(ng-message='max') Insufficient funds | ||
md-content(layout='row', layout-align='center center') | ||
md-button.md-raised.md-primary(ng-disabled='!$ctrl.sendForm.$valid || $ctrl.loading', ng-click='$ctrl.go()') {{ $ctrl.loading ? 'Sending...' : 'Send' }} | ||
md-dialog.dialog-send(aria-label='Transfering', style='width: 700px; max-width: 700px') | ||
md-card.offline-hide | ||
md-card-title | ||
md-card-title-text | ||
span.md-title Send | ||
md-menu(md-position-mode='target-right target') | ||
md-button.md-icon-button(ng-click='$mdOpenMenu()') | ||
i.material-icons more_vert | ||
md-menu-content(width='4') | ||
md-menu-item | ||
md-button(ng-click='$ctrl.setMaxAmount()') | ||
div(layout='row', flex='') | ||
p(flex='') Set maximum amount | ||
md-card-content | ||
form(name='$ctrl.sendForm') | ||
md-content(flex='100', flex-gt-sm='70', flex-offset-gt-sm='15') | ||
md-input-container.md-block | ||
label Recipient Address | ||
input(type='text', name='recipient', ng-model='$ctrl.recipient.value', required, ng-pattern='$ctrl.recipient.regexp', ng-disabled='$ctrl.loading') | ||
div(ng-messages='$ctrl.sendForm.recipient.$error') | ||
div(ng-message='required') Required | ||
div(ng-message='pattern') Invalid | ||
md-input-container.md-block | ||
label Transaction Amount | ||
input(type='number', name='amount', ng-model='$ctrl.amount.value', required, ng-pattern='$ctrl.amount.regexp', ng-disabled='$ctrl.loading', ng-max='$ctrl.amount.max', ignore-mouse-wheel) | ||
div.fee(ng-show='$ctrl.amount.value') Fee: 0.1 LSK | ||
div(ng-messages='$ctrl.sendForm.amount.$error') | ||
div(ng-message='required') Required | ||
div(ng-message='pattern') Invalid | ||
div(ng-message='max') Insufficient funds | ||
md-content(layout='row', layout-align='center center') | ||
md-button.md-raised.md-secondary(ng-disabled='$ctrl.loading', ng-click='$ctrl.cancel()') {{ 'Cancel' }} | ||
md-button.md-raised.md-primary(ng-disabled='!$ctrl.sendForm.$valid || $ctrl.loading', ng-click='$ctrl.go()') {{ $ctrl.loading ? 'Sending...' : 'Send' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
app.directive('showSendModal', (SendModal) => { | ||
const ShowSendModalLink = function (scope, element) { | ||
element.bind('click', () => { | ||
SendModal.show(scope.recipientId, scope.amount); | ||
}); | ||
}; | ||
|
||
return { | ||
restrict: 'A', | ||
scope: { | ||
recipientId: '<', | ||
amount: '<', | ||
}, | ||
link: ShowSendModalLink, | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
app.factory('SendModal', ($mdDialog) => { | ||
let account = null; | ||
let passphrase = null; | ||
|
||
const init = (_account, _passphrase) => { | ||
account = _account; | ||
passphrase = _passphrase; | ||
}; | ||
|
||
const hide = () => { | ||
}; | ||
|
||
const show = (recipientId, amount) => ($mdDialog.show({ | ||
template: '<send account="ms.account" passphrase="ms.passphrase" recipient-id="ms.recipientId" transfer-amount="ms.amount"></send>', | ||
parent: angular.element('#main'), | ||
locals: { | ||
account, passphrase, recipientId, amount, | ||
}, | ||
bindToController: true, | ||
controller: ['$scope', ($scope) => { | ||
$scope.account = account; | ||
$scope.recipientId = recipientId; | ||
$scope.passphrase = passphrase; | ||
$scope.amount = amount; | ||
}], | ||
controllerAs: 'ms', | ||
})); | ||
|
||
return { | ||
hide, show, init, | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,9 @@ | |
|
||
body { | ||
min-width: 320px; | ||
& > main, & > main > md-content { | ||
height: 100%; | ||
} | ||
} | ||
|
||
md-card { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.