Skip to content

Commit

Permalink
create-wallet-warnings page added
Browse files Browse the repository at this point in the history
  • Loading branch information
hsurf22 committed Aug 7, 2018
1 parent a3a6093 commit a2bfe31
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 69 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"file-saver": "^1.3.8",
"store": "^2.0.12",
"vue": "^2.5.16",
"vue-fullpage": "^2.0.5",
"vue-infinite-slide-bar": "^1.0.8",
"vue-router": "^3.0.1",
"vuex": "^3.0.1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,82 +1,17 @@
<template>
<div class="your-password">
<tutorial-modal :skip="skip"></tutorial-modal>
<by-json-page-title></by-json-page-title>
<div class="wrap">
<div class="page-container">
<div class="nav-tab-user-input-box" v-show="!byJson && !byMnemonic">
<b-tabs class="x100">
<div class="progress-bar"></div>
<b-tab title="By JSON File" active>
<h3>{{ $t("createWallet.yourPw") }}</h3>
<create-wallet-input v-model='password' :switcher="switcher" :param="'Json'"></create-wallet-input>
<create-wallet-input-footer></create-wallet-input-footer>
</b-tab>
<b-tab title="By Mnemonic Phrase" >
<h3>{{ $t("createWallet.yourPw") }}</h3>
<create-wallet-input v-model='password' :switcher="switcher" :param="'Mnemonic'"></create-wallet-input>
<create-wallet-input-footer></create-wallet-input-footer>
</b-tab>
</b-tabs>
</div>
<by-json-file-container v-if="byJson && !byMnemonic" :password="password"></by-json-file-container>
<by-mnemonic-container v-if="!byJson && byMnemonic"></by-mnemonic-container>
</div>
</div>

<by-json-page-footer></by-json-page-footer>

<div class="">
Hai!!
</div>
</template>

<script>
import ByJsonFileContainer from '@/containers/ByJsonFileContainer'
import ByMnemonicContainer from '@/containers/ByMnemonicContainer'
import TutorialModal from './components/TutorialModal'
import CreateWalletInput from './components/CreateWalletInput'
import CreateWalletInputFooter from './components/CreateWalletInputFooter'
import PageFooter from './components/PageFooter'
import PageTitle from './components/PageTitle'
export default {
components: {
'by-json-file-container': ByJsonFileContainer,
'by-mnemonic-container': ByMnemonicContainer,
'tutorial-modal': TutorialModal,
'by-json-page-title': PageTitle,
'create-wallet-input': CreateWalletInput,
'create-wallet-input-footer': CreateWalletInputFooter,
'by-json-page-footer': PageFooter
},
data () {
return {
byJson: false,
byMnemonic: false,
password: ''
}
},
methods: {
switcher (by) {
if (by === 'Json') {
this.byJson = true
this.byMnemonic = false
} else if (by === 'Mnemonic') {
this.byJson = false
this.byMnemonic = true
} else {
this.byJson = false
this.byMnemonic = false
}
},
skip () {
localStorage.setItem('skipTutorial', true)
this.$children[0].$refs.tutorial.hide()
}
},
mounted () {
let skipTutorial = localStorage.getItem('skipTutorial')
if (skipTutorial === undefined || skipTutorial === null || skipTutorial === false) {
this.$children[0].$refs.tutorial.show()
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/HomeLayout/components/TopBanner/TopBanner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
.button {
color: $text-color-1;
display: inline-block;
font-size: 14px;
font-size: 15px;
font-weight: 500;

img {
Expand Down
6 changes: 6 additions & 0 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import AccessWalletLayout from '@/layouts/AccessWalletLayout'
import InterfaceLayout from '@/layouts/InterfaceLayout'
import HelpCenterLayout from '@/layouts/HelpCenterLayout'
import NotFoundLayout from '@/layouts/NotFoundLayout'
import CreateWalletWarningLayout from '@/layouts/CreateWalletWarningLayout'
import {router as routerConfig} from '@/configs/build'

Vue.use(Router)
Expand Down Expand Up @@ -56,6 +57,11 @@ export default new Router({
name: 'HelpCenterLayout',
component: HelpCenterLayout
},
{
path: '/create-wallet-warnings',
name: 'CreateWalletWarningLayout',
component: CreateWalletWarningLayout
},
{
path: '*',
name: '404',
Expand Down

1 comment on commit a2bfe31

@mew-bot
Copy link
Collaborator

@mew-bot mew-bot commented on a2bfe31 Aug 8, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.