Skip to content

Commit

Permalink
Merge pull request #2868 from luniehq/release-candidate/v1.0.0-beta.106
Browse files Browse the repository at this point in the history
[Simsala] automatic release created for v1.0.0-beta.106
  • Loading branch information
faboweb authored Aug 13, 2019
2 parents a284a5e + 12fe38e commit 4913d88
Show file tree
Hide file tree
Showing 85 changed files with 694 additions and 933 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ yarn-error.log*
*.sw?

android
ios
ios
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

<!-- SIMSALA --> <!-- DON'T DELETE, used for automatic changelog updates -->

## [1.0.0-beta.106] - 2019-08-13

### Added

- Added infinite scroll to validator list @faboweb

### Changed

- [#2870](https://github.com/cosmos/lunie/pull/2870) Keep staking tabs in memory even when switching between them @colw

### Fixed

- [#2871](https://github.com/cosmos/lunie/pull/2871) Sort panel does not error on Network page @colw

### Code Improvements

- [#2867](https://github.com/cosmos/lunie/pull/2867) Remove some getters and convert to mapState @colw

## [1.0.0-beta.105] - 2019-08-07

### Code Improvements
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lunie",
"version": "1.0.0-beta.105",
"version": "1.0.0-beta.106",
"description": "Lunie is the staking and governance platform for proof-of-stake blockchains.",
"author": "Lunie International Software Systems Inc. <hello@lunie.io>",
"scripts": {
Expand Down Expand Up @@ -57,6 +57,7 @@
"vue": "2.6.10",
"vue-clipboard2": "0.3.0",
"vue-directive-tooltip": "1.4.5",
"vue-infinite-scroll": "2.0.2",
"vue-router": "^3.0.3",
"vuelidate": "0.7.4",
"vuex": "3.1.1",
Expand Down
12 changes: 3 additions & 9 deletions src/ActionModal/components/ActionModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ import TmFormMsg from "src/components/common/TmFormMsg"
import TmDataMsg from "common/TmDataMsg"
import TableInvoice from "./TableInvoice"
import Steps from "./Steps"
import { mapGetters } from "vuex"
import { mapState, mapGetters } from "vuex"
import { atoms, viewDenom } from "src/scripts/num"
import { between, requiredIf } from "vuelidate/lib/validators"
import { track } from "scripts/google-analytics"
Expand Down Expand Up @@ -361,14 +361,8 @@ export default {
SIGN_METHODS
}),
computed: {
...mapGetters([
`connected`,
`session`,
`bondDenom`,
`liquidAtoms`,
`modalContext`,
`extension`
]),
...mapState([`extension`, `session`]),
...mapGetters([`connected`, `bondDenom`, `liquidAtoms`, `modalContext`]),
requiresSignIn() {
return !this.session.signedIn
},
Expand Down
5 changes: 3 additions & 2 deletions src/ActionModal/components/DelegationModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
</template>

<script>
import { mapGetters } from "vuex"
import { mapState, mapGetters } from "vuex"
import { between, decimal } from "vuelidate/lib/validators"
import { uatoms, atoms, viewDenom, SMALLEST } from "src/scripts/num"
import TmField from "src/components/common/TmField"
Expand Down Expand Up @@ -125,7 +125,8 @@ export default {
selectedIndex: 0
}),
computed: {
...mapGetters([`session`, `modalContext`]),
...mapState([`session`]),
...mapGetters([`modalContext`]),
balance() {
if (!this.session.signedIn) return 0
Expand Down
4 changes: 2 additions & 2 deletions src/ActionModal/components/ModalDeposit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</template>

<script>
import { mapGetters } from "vuex"
import { mapState } from "vuex"
import { uatoms, atoms, viewDenom, SMALLEST } from "src/scripts/num"
import { between, decimal } from "vuelidate/lib/validators"
import TmField from "src/components/common/TmField"
Expand Down Expand Up @@ -85,7 +85,7 @@ export default {
amount: 0
}),
computed: {
...mapGetters([`wallet`]),
...mapState([`wallet`]),
balance() {
const denom = this.wallet.balances.find(b => b.denom === this.denom)
return (denom && denom.amount) || 0
Expand Down
4 changes: 2 additions & 2 deletions src/ActionModal/components/ModalPropose.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
</template>

<script>
import { mapGetters } from "vuex"
import { mapState } from "vuex"
import {
minLength,
maxLength,
Expand Down Expand Up @@ -153,7 +153,7 @@ export default {
amount: 0
}),
computed: {
...mapGetters([`wallet`]),
...mapState([`wallet`]),
balance() {
// TODO: refactor to get the selected coin when multicoin deposit is enabled
if (!this.wallet.loading && !!this.wallet.balances.length) {
Expand Down
4 changes: 2 additions & 2 deletions src/ActionModal/components/SendModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
import b32 from "scripts/b32"
import { required, between, decimal, maxLength } from "vuelidate/lib/validators"
import { uatoms, atoms, viewDenom, SMALLEST } from "src/scripts/num"
import { mapGetters } from "vuex"
import { mapState } from "vuex"
import TmFormGroup from "src/components/common/TmFormGroup"
import TmField from "src/components/common/TmField"
import TmFormMsg from "src/components/common/TmFormMsg"
Expand Down Expand Up @@ -159,7 +159,7 @@ export default {
editMemo: false
}),
computed: {
...mapGetters([`wallet`]),
...mapState([`wallet`]),
balance() {
const denom = this.wallet.balances.find(b => b.denom === this.denom)
return (denom && denom.amount) || 0
Expand Down
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</template>

<script>
import { mapGetters } from "vuex"
import { mapState } from "vuex"
import AppHeader from "common/AppHeader"
import CookieBar from "common/CookieBar"
import MaintenanceBar from "common/MaintenanceBar"
Expand All @@ -33,7 +33,7 @@ export default {
DisconnectedBar
},
computed: {
...mapGetters([`notifications`, `session`])
...mapState([`notifications`, `session`])
},
store
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/common/AppHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</template>

<script>
import { mapGetters } from "vuex"
import { mapState } from "vuex"
import noScroll from "no-scroll"
import AppMenu from "common/AppMenu"
export default {
Expand All @@ -36,7 +36,7 @@ export default {
desktop: false
}),
computed: {
...mapGetters([`session`])
...mapState([`session`])
},
mounted() {
this.watchWindowSize()
Expand Down
4 changes: 2 additions & 2 deletions src/components/common/AppMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
<script>
import noScroll from "no-scroll"
import ConnectedNetwork from "common/TmConnectedNetwork"
import { mapGetters } from "vuex"
import { mapState } from "vuex"
export default {
name: `app-menu`,
components: {
Expand All @@ -98,7 +98,7 @@ export default {
ps: {}
}),
computed: {
...mapGetters([`session`])
...mapState([`session`])
},
methods: {
close() {
Expand Down
4 changes: 2 additions & 2 deletions src/components/common/CookieBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
</template>

<script>
import { mapGetters } from "vuex"
import { mapState } from "vuex"
export default {
name: `cookie-bar`,
computed: {
...mapGetters([`session`])
...mapState([`session`])
},
methods: {
accept() {
Expand Down
4 changes: 2 additions & 2 deletions src/components/common/MaintenanceBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
</template>

<script>
import { mapGetters } from "vuex"
import { mapState } from "vuex"
export default {
name: `maintenance-bar`,
data: () => ({
show: true
}),
computed: {
...mapGetters([`session`])
...mapState([`session`])
},
methods: {
close() {
Expand Down
7 changes: 2 additions & 5 deletions src/components/common/TmBalance.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import num from "scripts/num"
import Bech32 from "common/Bech32"
import TmBtn from "common/TmBtn"
import ModalWithdrawRewards from "src/ActionModal/components/ModalWithdrawRewards"
import { mapGetters } from "vuex"
import { mapState, mapGetters } from "vuex"
export default {
name: `tm-balance`,
components: {
Expand All @@ -57,16 +57,13 @@ export default {
}
},
computed: {
...mapState([`wallet`, `distribution`, `delegation`, `session`]),
...mapGetters([
`connected`,
`session`,
`wallet`,
`delegation`,
`liquidAtoms`,
`lastHeader`,
`totalAtoms`,
`bondDenom`,
`distribution`,
`validatorsWithRewards`,
`totalRewards`
]),
Expand Down
5 changes: 3 additions & 2 deletions src/components/common/TmModalError.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</template>

<script>
import { mapGetters } from "vuex"
import { mapState, mapGetters } from "vuex"
import TmBtn from "common/TmBtn"
export default {
name: `tm-modal-error`,
Expand All @@ -49,7 +49,8 @@ export default {
issueUrl: `https://github.com/cosmos/voyager/issues`
}),
computed: {
...mapGetters([`session`, `lastHeader`])
...mapState([`session`]),
...mapGetters([`lastHeader`])
}
}
</script>
Expand Down
5 changes: 3 additions & 2 deletions src/components/common/TmPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import TmPageHeader from "./TmPageHeader.vue"
import TmDataLoading from "common/TmDataLoading"
import TmDataEmpty from "common/TmDataEmpty"
import CardSignInRequired from "common/CardSignInRequired"
import { mapGetters } from "vuex"
import { mapState, mapGetters } from "vuex"
import TmDataError from "common/TmDataError"
import TmDataConnecting from "common/TmDataConnecting"
import TmBalance from "common/TmBalance"
Expand Down Expand Up @@ -105,7 +105,8 @@ export default {
}
},
computed: {
...mapGetters([`session`, `connected`])
...mapState([`session`]),
...mapGetters([`connected`])
},
watch: {
$route() {
Expand Down
4 changes: 2 additions & 2 deletions src/components/common/TmSessionExisting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</template>

<script>
import { mapGetters } from "vuex"
import { mapState } from "vuex"
import LiSession from "common/TmLiSession"
import SessionFrame from "common/SessionFrame"
export default {
Expand All @@ -57,7 +57,7 @@ export default {
LiSession
},
computed: {
...mapGetters([`session`, `keystore`, `extension`]),
...mapState([`session`, `keystore`, `extension`]),
accountExists() {
return this.keystore && this.keystore.accounts.length > 0
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/common/TmSessionExtension.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<script>
import AccountList from "common/AccountList"
import SessionFrame from "common/SessionFrame"
import { mapGetters } from "vuex"
import { mapState } from "vuex"
export default {
name: `session-extension`,
components: {
Expand All @@ -44,7 +44,7 @@ export default {
address: null
}),
computed: {
...mapGetters([`extension`]),
...mapState([`extension`]),
accounts() {
return this.extension.accounts
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/common/TmSessionHardware.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

<script>
import TmBtn from "common/TmBtn"
import { mapGetters } from "vuex"
import { mapState } from "vuex"
import HardwareState from "common/TmHardwareState"
import SessionFrame from "common/SessionFrame"
export default {
Expand All @@ -52,7 +52,7 @@ export default {
address: null
}),
computed: {
...mapGetters([`session`]),
...mapState([`session`]),
submitCaption() {
return {
connect: "Sign In",
Expand Down
4 changes: 2 additions & 2 deletions src/components/common/TmSessionSignIn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</template>

<script>
import { mapGetters } from "vuex"
import { mapState } from "vuex"
import { required, minLength } from "vuelidate/lib/validators"
import TmBtn from "common/TmBtn"
import TmFormGroup from "common/TmFormGroup"
Expand All @@ -76,7 +76,7 @@ export default {
error: ``
}),
computed: {
...mapGetters([`keystore`]),
...mapState([`keystore`]),
accounts() {
let accounts = this.keystore.accounts
return accounts.map(({ name, address }) => ({
Expand Down
4 changes: 2 additions & 2 deletions src/components/common/TmSessionSignUp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
</template>

<script>
import { mapGetters } from "vuex"
import { mapState } from "vuex"
import { required, minLength, sameAs } from "vuelidate/lib/validators"
import TmBtn from "common/TmBtn"
import TmFormGroup from "common/TmFormGroup"
Expand Down Expand Up @@ -205,7 +205,7 @@ export default {
}
}),
computed: {
...mapGetters([`session`])
...mapState([`session`])
},
mounted() {
this.$store.dispatch(`createSeed`).then(seedPhrase => {
Expand Down
Loading

0 comments on commit 4913d88

Please sign in to comment.