Skip to content

Commit

Permalink
Fix on BigRefractor (#103)
Browse files Browse the repository at this point in the history
* Fix on BigRefractor

fixed issues for bigrefractor

* Release after Test + minor changes

Fixed the travis so that it would test before releasing.
Fixed by alphabetical order
Edits in the DEV_README
  • Loading branch information
Cremba authored and elanper committed Aug 1, 2018
1 parent df42b04 commit dff23e4
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -27,6 +27,6 @@ before_install:
- echo "//www.myget.org/F/zenprotocol/npm/:_authToken=$MYGET_TOKEN" >> .npmrc
script:
- npm run build
- npm run release
- npm run test-no-watch
- npm run release
after_success: if [ $TRAVIS_OS_NAME = linux ] && [ ! -z "$TRAVIS_TAG" ]; then npm publish; fi
2 changes: 0 additions & 2 deletions DEV_README.md
Expand Up @@ -26,8 +26,6 @@ $ git push # after QA!
```bash
npm run auto-release <version>
```
4. go to [myget](https://www.myget.org/feed/Packages/zenprotocol)
5. Add npm package to zen-wallet

# Zen Node APIs
[Node Apis](https://gitlab.com/zenprotocol/zenprotocol/blob/master/src/Api/Server.fs)
Expand Up @@ -6,7 +6,7 @@ import Flexbox from 'flexbox-react'

import history from '../../services/history'
import { BUG_SRC } from '../../constants/imgSources'
import OnBoardingLayout from '../../components/Layout'
import OnBoardingLayout from '../Layout/Layout'
import ErrorReportingStore from '../../stores/errorReportingStore'

type Props = {
Expand Down
Expand Up @@ -4,7 +4,7 @@ import React, { Component } from 'react'
import { Link } from 'react-router-dom'
import Flexbox from 'flexbox-react'

import OnBoardingLayout from '../../components/Layout'
import OnBoardingLayout from '../Layout/Layout'
import { CREATE_WALLET_SRC, IMPORT_WALLET_SRC } from '../../constants/imgSources'
import routes from '../../constants/routes'

Expand Down
2 changes: 1 addition & 1 deletion app/onBoardingPages/ImportWallet/ImportWallet.js
Expand Up @@ -17,7 +17,7 @@ import PasteButton from '../../components/PasteButton'
import ResetButton from '../../components/ResetButton'
import SeedInput from '../../components/SeedInput'
import ExternalLink from '../../components/ExternalLink'
import OnBoardingLayout from '../../components/Layout'
import OnBoardingLayout from '../Layout/Layout'

const getInitialInputsState = () => _.range(24).map(() => '')

Expand Down
4 changes: 2 additions & 2 deletions app/onBoardingPages/SecretPhrase/SecretPhrase.js
Expand Up @@ -9,7 +9,7 @@ import Checkbox from 'rc-checkbox'
import history from '../../services/history'
import routes from '../../constants/routes'
import SecretPhraseStore from '../../stores/secretPhraseStore'
import OnBoardingLayout from '../../components/Layout'
import OnBoardingLayout from '../Layout/Layout'

type Props = {
secretPhraseStore: SecretPhraseStore
Expand All @@ -30,7 +30,7 @@ class SecretPhrase extends React.Component<Props, State> {
}

onToggleSecuredPassphrase = (evt: SyntheticEvent<HTMLInputElement>) => {
this.setState({ checked: evt.currentTarget.checked })
this.setState({ checked: evt.target.checked })
}

onNextClicked = () => {
Expand Down
2 changes: 1 addition & 1 deletion app/onBoardingPages/SecretPhraseQuiz/SecretPhraseQuiz.js
Expand Up @@ -8,7 +8,7 @@ import _ from 'lodash'

import SeedInput from '../../components/SeedInput'
import history from '../../services/history'
import OnBoardingLayout from '../../components/Layout'
import OnBoardingLayout from '../Layout/Layout'
import SecretPhraseStore from '../../stores/secretPhraseStore'
import routes from '../../constants/routes'
import { ref } from '../../utils/domUtils'
Expand Down
6 changes: 3 additions & 3 deletions app/onBoardingPages/SetPassword/SetPassword.js
Expand Up @@ -7,7 +7,7 @@ import Flexbox from 'flexbox-react'

import ToggleVisibilityIcon from '../../components/ToggleVisibilityIcon'
import IsValidIcon from '../../components/IsValidIcon'
import OnBoardingLayout from '../../components/Layout'
import OnBoardingLayout from '../Layout/Layout'
import SecretPhraseStore from '../../stores/secretPhraseStore'
import routes from '../../constants/routes'

Expand Down Expand Up @@ -35,7 +35,7 @@ class SetPassword extends Component<Props, State> {
}

onPasswordChanged = (evt: SyntheticEvent<HTMLInputElement>) => {
const newValue = evt.currentTarget.value.trim()
const newValue = evt.target.value.trim()

this.setState({
password: newValue,
Expand All @@ -47,7 +47,7 @@ class SetPassword extends Component<Props, State> {

onPasswordConfirmationChanged = (evt: SyntheticEvent<HTMLInputElement>) => {
this.setState({
passwordConfirmation: evt.currentTarget.value.trim(),
passwordConfirmation: evt.target.value.trim(),
}, () => {
this.validatePasswordConfirmation()
})
Expand Down
4 changes: 2 additions & 2 deletions app/onBoardingPages/TermsOfService/TermsOfService.js
Expand Up @@ -7,7 +7,7 @@ import Checkbox from 'rc-checkbox'
import { observer, inject } from 'mobx-react'

import ErrorReportingStore from '../../stores/errorReportingStore'
import OnBoardingLayout from '../../components/Layout'
import OnBoardingLayout from '../Layout/Layout'
import history from '../../services/history'
import routes from '../../constants/routes'

Expand All @@ -23,7 +23,7 @@ class TermsOfService extends Component<Props> {
}

onChange = (evt) => {
this.setState({ checked: evt.currentTarget.checked })
this.setState({ checked: evt.target.checked })
}

onNext = () => {
Expand Down
2 changes: 1 addition & 1 deletion app/onBoardingPages/WelcomeMessages/WelcomeMessages.js
Expand Up @@ -5,7 +5,7 @@ import FontAwesomeIcon from '@fortawesome/react-fontawesome'
import history from '../../services/history'
import { IMG_BASE } from '../../constants/imgSources'
import routes from '../../constants/routes'
import OnBoardingLayout from '../../components/Layout'
import OnBoardingLayout from '../Layout/Layout'

const pageTexts = [
{
Expand Down
4 changes: 2 additions & 2 deletions app/pages/SendTx/SendTx.js
Expand Up @@ -34,7 +34,7 @@ class SendTx extends Component<Props> {
}

onToChanged = (evt: SyntheticEvent<HTMLInputElement>) => {
this.props.sendTxStore.to = evt.currentTarget.value.trim()
this.props.sendTxStore.to = evt.target.value.trim()
}

onPasteClicked = (clipboardContents: string) => {
Expand Down Expand Up @@ -181,7 +181,7 @@ class SendTx extends Component<Props> {
amountDisplay={amountDisplay}
maxDecimal={isZenAsset(asset) ? ZENP_MAX_DECIMALS : 0}
minDecimal={isZenAsset(asset) ? ZENP_MIN_DECIMALS : 0}
maxAmount={asset ? portfolioStore.getBalanceFor(asset) : null}
maxAmount={asset ? this.props.portfolioStore.getBalanceFor(asset) : null}
shouldShowMaxAmount
exceedingErrorMessage="Insufficient Funds"
onAmountDisplayChanged={this.updateAmountDisplay}
Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -4,6 +4,7 @@
"description": "Zen Protocol Wallet",
"main": "app/main.prod.js",
"scripts": {
"auto-release": "internals/auto-release.sh",
"build": "concurrently \"npm run build-main\" \"npm run build-renderer\"",
"build-dll": "cross-env NODE_ENV=development node --trace-warnings -r babel-register ./node_modules/webpack/bin/webpack --config webpack.config.renderer.dev.dll.js --colors",
"build-main": "cross-env NODE_ENV=production node --trace-warnings -r babel-register ./node_modules/webpack/bin/webpack --config webpack.config.main.prod.js --colors",
Expand All @@ -27,14 +28,13 @@
"package-all": "npm run build && build -mwl",
"package-linux": "npm run build && build --linux",
"package-win": "npm run build && build --win --x64",
"release": "build --publish onTagOrDraft",
"postinstall-dev": "node -r babel-register internals/scripts/CheckNativeDep.js && npm run flow-typed && npm run build-dll || true && electron-builder install-app-deps && node node_modules/fbjs-scripts/node/check-dev-engines.js package.json",
"release": "build --publish onTagOrDraft",
"start": "cross-env NODE_ENV=production electron ./app/main.prod.js",
"start-main-dev": "cross-env HOT=1 NODE_ENV=development electron -r babel-register ./app/main.dev",
"start-renderer-dev": "cross-env NODE_ENV=development node --trace-warnings -r babel-register ./node_modules/webpack-dev-server/bin/webpack-dev-server --config webpack.config.renderer.dev.js",
"test": "cross-env NODE_ENV=test BABEL_DISABLE_CACHE=1 node --trace-warnings -r babel-register ./internals/scripts/RunTests.js client --watch",
"test-no-watch": "cross-env NODE_ENV=test BABEL_DISABLE_CACHE=1 node --trace-warnings -r babel-register ./internals/scripts/RunTests.js client",
"auto-release": "internals/auto-release.sh"
"test-no-watch": "cross-env NODE_ENV=test BABEL_DISABLE_CACHE=1 node --trace-warnings -r babel-register ./internals/scripts/RunTests.js client"
},
"author": {
"name": "Zen Protocol",
Expand Down

0 comments on commit dff23e4

Please sign in to comment.