Browse Source

Merge pull request #302 from meriadec/master

Rename to Ledger Live, and start PlugYourDevice component
master
Meriadec Pillet 7 years ago
committed by GitHub
parent
commit
3f20efeb60
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      electron-builder.yml
  2. 8
      package.json
  3. 2
      scripts/publish-storybook.sh
  4. 12
      src/components/CounterValue/__tests__/__snapshots__/CounterValue.test.js.snap
  5. 33
      src/components/ManagerPage/PlugYourDevice.js
  6. 16
      src/components/ManagerPage/stories/PlugYourDevice.stories.js
  7. 2
      src/components/ThrowBlock.js
  8. 12
      src/components/base/FormattedVal/__tests__/__snapshots__/FormattedVal.test.js.snap
  9. 4
      static/i18n/en/manager.yml

4
electron-builder.yml

@ -1,9 +1,9 @@
appId: com.ledger.desktop
appId: com.ledger.live
buildDependenciesFromSource: true
protocols:
name: Ledger Wallet Desktop
name: Ledger Live
schemes:
- ledgerhq

8
package.json

@ -1,8 +1,8 @@
{
"name": "ledger-wallet-desktop",
"productName": "Ledger Wallet Desktop",
"description": "Ledger Wallet Desktop",
"repository": "https://github.com/LedgerHQ/ledger-wallet-desktop",
"name": "ledger-live-desktop",
"productName": "Ledger Live",
"description": "Ledger Live - Desktop",
"repository": "https://github.com/LedgerHQ/ledger-live-desktop",
"version": "0.1.0",
"author": "Ledger",
"license": "MIT",

2
scripts/publish-storybook.sh

@ -11,7 +11,7 @@ cp -R static/fonts/rubik storybook-static/static/fonts
cd storybook-static
git init
git remote add origin git@github.com:LedgerHQ/ledger-wallet-desktop.git
git remote add origin git@github.com:LedgerHQ/ledger-live-desktop.git
git add .
git commit -m 'deploy storybook'
git push -f origin master:gh-pages

12
src/components/CounterValue/__tests__/__snapshots__/CounterValue.test.js.snap

@ -2,7 +2,7 @@
exports[`components CounterValue basic 1`] = `
<div
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 grmBGS"
className="k45ou1-0 iqaJGf e345n3-0 bJwMKx"
color="#66be54"
>
+ USD 10.00
@ -11,7 +11,7 @@ exports[`components CounterValue basic 1`] = `
exports[`components CounterValue specifying ticker different from default 1`] = `
<div
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 grmBGS"
className="k45ou1-0 iqaJGf e345n3-0 bJwMKx"
color="#66be54"
>
+ USD 5.00
@ -20,7 +20,7 @@ exports[`components CounterValue specifying ticker different from default 1`] =
exports[`components CounterValue using countervalue different from default 1`] = `
<div
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 bPBcmj"
className="k45ou1-0 iqaJGf e345n3-0 huzgmt"
color={undefined}
>
+ EUR 0.42
@ -29,7 +29,7 @@ exports[`components CounterValue using countervalue different from default 1`] =
exports[`components CounterValue with time travel whith date in countervalues 1`] = `
<div
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 grmBGS"
className="k45ou1-0 iqaJGf e345n3-0 bJwMKx"
color="#66be54"
>
+ USD 20.00
@ -38,7 +38,7 @@ exports[`components CounterValue with time travel whith date in countervalues 1`
exports[`components CounterValue with time travel whith date not in countervalues 1`] = `
<div
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 grmBGS"
className="k45ou1-0 iqaJGf e345n3-0 bJwMKx"
color="#66be54"
>
+ USD 0.00
@ -47,7 +47,7 @@ exports[`components CounterValue with time travel whith date not in countervalue
exports[`components CounterValue without countervalues populated 1`] = `
<div
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 grmBGS"
className="k45ou1-0 iqaJGf e345n3-0 bJwMKx"
color="#66be54"
>
+ USD 0.00

33
src/components/ManagerPage/PlugYourDevice.js

@ -0,0 +1,33 @@
// @flow
import React from 'react'
import { translate } from 'react-i18next'
import type { T } from 'types/common'
import Box, { Card } from 'components/base/Box'
import Button from 'components/base/Button'
type Props = {
t: T,
}
function PlugYourDevice(props: Props) {
const { t } = props
return (
<Card py={8} align="center">
<Box align="center" style={{ width: 365 }}>
<Box mb={5}>hey</Box>
<Box textAlign="center" mb={1} ff="Museo Sans|Regular" color="dark" fontSize={6}>
{t('manager:plugYourDevice.title')}
</Box>
<Box textAlign="center" mb={5} ff="Open Sans|Regular" color="smoke" fontSize={4}>
{t('manager:plugYourDevice.desc')}
</Box>
<Button primary>{t('manager:plugYourDevice.cta')}</Button>
</Box>
</Card>
)
}
export default translate()(PlugYourDevice)

16
src/components/ManagerPage/stories/PlugYourDevice.stories.js

@ -0,0 +1,16 @@
// @flow
import React from 'react'
import { storiesOf } from '@storybook/react'
import Box from 'components/base/Box'
import PlugYourDevice from '../PlugYourDevice'
const stories = storiesOf('Components', module)
stories.add('PlugYourDevice', () => (
<Box bg="lightGrey" p={6}>
<PlugYourDevice />
</Box>
))

2
src/components/ThrowBlock.js

@ -60,7 +60,7 @@ ${error.stack}
\`\`\`
`,
})
shell.openExternal(`https://github.com/LedgerHQ/ledger-wallet-desktop/issues/new?${q}`)
shell.openExternal(`https://github.com/LedgerHQ/ledger-live-desktop/issues/new?${q}`)
}
handleRestart = () => {

12
src/components/base/FormattedVal/__tests__/__snapshots__/FormattedVal.test.js.snap

@ -2,7 +2,7 @@
exports[`components FormattedVal renders a fiat 1`] = `
<div
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 grmBGS"
className="k45ou1-0 iqaJGf e345n3-0 bJwMKx"
color="#66be54"
>
20.00
@ -11,7 +11,7 @@ exports[`components FormattedVal renders a fiat 1`] = `
exports[`components FormattedVal renders a formatted val 1`] = `
<div
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 grmBGS"
className="k45ou1-0 iqaJGf e345n3-0 bJwMKx"
color="#66be54"
>
4
@ -20,7 +20,7 @@ exports[`components FormattedVal renders a formatted val 1`] = `
exports[`components FormattedVal renders a percent 1`] = `
<div
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 grmBGS"
className="k45ou1-0 iqaJGf e345n3-0 bJwMKx"
color="#66be54"
>
30 %
@ -29,7 +29,7 @@ exports[`components FormattedVal renders a percent 1`] = `
exports[`components FormattedVal shows code 1`] = `
<div
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 grmBGS"
className="k45ou1-0 iqaJGf e345n3-0 bJwMKx"
color="#66be54"
>
BTC 4
@ -38,7 +38,7 @@ exports[`components FormattedVal shows code 1`] = `
exports[`components FormattedVal shows sign 1`] = `
<div
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 grmBGS"
className="k45ou1-0 iqaJGf e345n3-0 bJwMKx"
color="#66be54"
>
+ 4
@ -47,7 +47,7 @@ exports[`components FormattedVal shows sign 1`] = `
exports[`components FormattedVal shows sign 2`] = `
<div
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 kyprQb"
className="k45ou1-0 iqaJGf e345n3-0 dHGwW"
color="#ea2e49"
>
- 4

4
static/i18n/en/manager.yml

@ -3,3 +3,7 @@ tabs:
device: My device
install: Install
allApps: All apps
plugYourDevice:
title: Plug your device
desc: Lorem Ipsum is simply dummy text of the printing and typesetting industry’s standard dummy text
cta: Plug my device

Loading…
Cancel
Save