Skip to content

Commit

Permalink
Merge pull request #277 from cosmos/peng/246-seeds-in-alpha
Browse files Browse the repository at this point in the history
Bold fundraiser warning
  • Loading branch information
faboweb authored Dec 28, 2017
2 parents 22b924d + a22fbdf commit f4d105f
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
30 changes: 30 additions & 0 deletions app/src/renderer/components/common/FundraiserWarning.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<template lang="pug">
.fundraiser-warning
.fundraiser-warning__title Warning &ndash; Do not enter your fundraiser seed. This software has not been audited. Never enter your 12-word seed while your computer is connected to the internet.
.fundraiser-warning__subtitle Even when we do start supporting fundraiser seeds, don't use it except for testing or with small amounts. Soon we will release a command line interface to use for the signing of transactions offline including support for certain hardware ledgers.
</template>

<script>
export default {
name: 'fundraiser-warning'
}
</script>

<style lang="stylus">
@import '~variables'
.fundraiser-warning
margin-top 2rem
padding 0.75rem 1rem 0.875rem
background app-fg
.fundraiser-warning__title
padding 0 0 0.625rem
font-weight bold
color danger
.fundraiser-warning__subtitle
color dim
font-size sm
</style>
3 changes: 3 additions & 0 deletions app/src/renderer/components/common/NiSessionWelcome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,19 @@
icon="usb"
title="Sign in with hardware"
subtitle="If you have a Ledger Wallet, choose this option")
fundraiser-warning
.ni-session-footer
</template>

<script>
import {mapGetters} from 'vuex'
import FundraiserWarning from 'common/FundraiserWarning'
import ListItem from 'common/NiListItem'
import LiSession from 'common/NiLiSession'
export default {
name: 'ni-session-welcome',
components: {
FundraiserWarning,
ListItem,
LiSession
},
Expand Down
16 changes: 16 additions & 0 deletions test/unit/specs/__snapshots__/NISessionWelcome.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ exports[`NISessionWelcome with accounts has the expected html structure 1`] = `
</div>
</div>
</div>
<div class=\\"fundraiser-warning\\">
<div class=\\"fundraiser-warning__title\\">
Warning Do not enter your fundraiser seed. This software has not been audited. Never enter your 12-word seed while your computer is connected to the internet.
</div>
<div class=\\"fundraiser-warning__subtitle\\">
Even when we do start supporting fundraiser seeds, don't use it except for testing or with small amounts. Soon we will release a command line interface to use for the signing of transactions offline including support for certain hardware ledgers.
</div>
</div>
</div>
<div class=\\"ni-session-footer\\"></div>
</div>
Expand Down Expand Up @@ -120,6 +128,14 @@ exports[`NISessionWelcome without accounts has the expected html structure 1`] =
</div>
</div>
</div>
<div class=\\"fundraiser-warning\\">
<div class=\\"fundraiser-warning__title\\">
Warning Do not enter your fundraiser seed. This software has not been audited. Never enter your 12-word seed while your computer is connected to the internet.
</div>
<div class=\\"fundraiser-warning__subtitle\\">
Even when we do start supporting fundraiser seeds, don't use it except for testing or with small amounts. Soon we will release a command line interface to use for the signing of transactions offline including support for certain hardware ledgers.
</div>
</div>
</div>
<div class=\\"ni-session-footer\\"></div>
</div>
Expand Down

0 comments on commit f4d105f

Please sign in to comment.