Skip to content

Commit

Permalink
Merge pull request #33 from nemgrouplimited/main
Browse files Browse the repository at this point in the history
Release v0.2.0
  • Loading branch information
AnthonyLaw authored Aug 16, 2020
2 parents a7ebfbb + 04a1164 commit 433fb13
Show file tree
Hide file tree
Showing 7 changed files with 1,067 additions and 1,378 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@ All notable changes to this project will be documented in this file.

The changelog format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [0.2.0] - 15-Aug-2020

### Milestone: [[email protected]](https://github.com/nemtech/catapult-server/releases/tag/v0.9.6.4)

Package | Version | Link
---|---|---
REST Core| v1.2.0 | [catapult-rest](https://github.com/nemtech/catapult-rest/releases/tag/v1.2.0)
SDK Core| v0.20.7 | [symbol-sdk](https://www.npmjs.com/package/symbol-sdk)

### Added
- Added compatibility for 0.9.6.4 server.

### Update
- Enhanced UI/UX experience.


## [0.1.0] - 14-Apr-2020

### Milestone: [[email protected]](https://github.com/nemtech/catapult-server/releases/tag/v0.9.3.2)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# :potable_water: Symbol (Catapult) Faucet
# :potable_water: Symbol Faucet

## :heartbeat: Symbol Faucet

Expand Down
Binary file modified assets/images/Tanker.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 17 additions & 9 deletions components/FaucetForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,18 @@ export default {
amountPlaceholder: { type: String, default: ''},
filterMosaics: {type: Array, default: []}
},
mounted() {
this.updateForm()
},
data() {
return {
mosaicSelectManager: [],
form: {
recipient: '',
amount: '',
selectedMosaics: []
}
}
return {
mosaicSelectManager: [],
form: {
recipient: '',
amount: '',
selectedMosaics: []
}
}
},
updated(){
if (!this.mosaicSelectManager.length) {
Expand All @@ -97,7 +100,7 @@ export default {
// Format data
this.form.recipient = this.form.recipient.replace(/\s|-/g, '')
this.form.selectedMosaics = this.mosaicSelectManager.map(mosaic => mosaic.mosaicId)
this.form.amount = Number(this.form.amount)
this.form.amount = Number(this.form.amount | 0)
if (this.form.recipient.length !== 39 || this.form.recipient.charAt(0) !== 'T') {
this.$parent.makeToast('warning', `Address format incorrect.`)
Expand Down Expand Up @@ -127,6 +130,11 @@ export default {
mosaicOptions: this.filterMosaics.filter(option => selectedMosaics.indexOf(option.mosaicId) === -1)
}
})
},
updateForm() {
const { recipient, amount } = this.$route.query
this.form.recipient = recipient || ''
this.form.amount = amount || ''
}
}
}
Expand Down
Loading

0 comments on commit 433fb13

Please sign in to comment.