-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix for: Password is displayed as visible text when creating wallet #342 (#347) * Fix for: Give warning when API is down or wallet lacks connectivity #265 (#346) * Fix lint errors and refactor * Remove RPX from reducers * Move loading indicator to the top * hide scrollbars * finetune the buttons * Move the refresh button code to Dashboard.scss * Remove unused styles * Split token balances into its own component * Add info icon * add tokens balance to initiateGetBalance * Remove unused methods * POC tokenInfo * Use PasswordField for WIF key in secret token sale screen (#351) * Add token info modal and refactor the tokens state * Update snapshots * Remove uneeded code * Better formatting (#350) * Better formatting for bigger numbers * Formating formatters file * Removing mime requirement. Not needed. * Remove exclamation that's not needed in UI (#353) * Enter in textfields submits alt (#354) * Enter button submits forms, simple solution * Code style fixes * Use tight version * Remove unused function * Remove comment * Remove ToggleAsset * Rename Gas -> GAS / Neo -> NEO * Add isToken method * WIP * Use tight versioning * WIP * Rename rpx to sale, and clean it up * Rename reducers to index * Fix paths * Add flow * Add flow * cleanups * Rename initiateGetBalance to LoadWalletData * Add TokenInfo type * Fix tests * Refactor prices (to support in the future) * Add Type suffix for types * Cleanup * Cleanup * Cleanup * Fix typo * Use neon-js constants * Add support for test tokens * Add percent buttons * Fix token sale * Sort imports * Fix typo * Revert back to not using NeonJS for Network * Remove unsued functions * Fix lint errors * Refactor explorer * Fix typo * Revert back to local consts for ASSETS * Load info when modal loads * Rename to openExplorerTx * Pass retrieveTokenInfo to the token info modal * WIP * Change token to symbol * Add flow-typed for npm modules * Move declarations upper level * Correct GAS decimal length * Fix token info modal * Symbol > Asset * Add a border to the dashboard * Disable claim when claim amount is 0 * Fix lint errors * Fix recieve modal height * format balance * Preload token info when getting token balance (if it doesn't exist) * Refactor formatters * Drop the state and grab the info from the token props * Add number formatting * Use truncateToken * Rename formatNumber to formatBalance * Fix obtainTokenBalance * Increase modal size to show full address * Fix sending NEO/GAS * Remove unused functions/reducers * Remove unused state * Fix CopyToClipboard + Tooltips * hash lint error for now * Fix creating a new wallet * es6 * fixes private key verification * fix reset prices * Wif > WIF * validatePassphrase > validatePassphraseLengthLength * Consolidate wallet creation * Consolidate CreateWallet/EncryptKey * WIF -> encryptedWIF * Remove checkMatchingPassphrases and rename validatePassphrase * Remove async and and a check for the validity of the encrypted wif * remove unused style * WIP * Load settings on app init (#377) * Don't run coveralls when pushing (#379) * Don't run coveralls on local * Cleaner solution for: Don't run coveralls on local * Use new test-ci command for ci * Support for non-USD Currencies (#378) * Configurable currencies * Missed settings in the merge resolution commit * Fix lint issue * Add Cut/Copy/Paste context menus on input fields (#336) (#376) * #336 * Allow for 'paste' only * Resolve conflicts * Use neon-js cnc api * uppercase GAS and NEO * update snapshots * Capitlize * Remove set token info * Correct SymbolType/TokenType * Update symbol type * Add a missing onClick * Use React$Node * Rework formatting * Use the correct function * Add cleave.js and update neon-js * Extract the nep5 decimal adjust to a util, and support ledger transfer (WIP) * Update types * Add a silent flag * WIP * Fix formatting
- Loading branch information
1 parent
2dbc24a
commit f680874
Showing
24 changed files
with
401 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// @flow | ||
import React from 'react' | ||
import Cleave from 'cleave.js/react' | ||
|
||
type Props = { | ||
placeholder?: string, | ||
onChange?: () => any, | ||
value?: string | number, | ||
options: { | ||
numeralThousandsGroupStyle?: 'thousand' | 'lakh' | 'wan' | 'none', | ||
numeralIntegerScale?: number, | ||
numeralDecimalScale?: number, | ||
numeralDecimalMark?: string, | ||
numeralPositiveOnly?: boolean, | ||
stripLeadingZeroes?: boolean | ||
}, | ||
onBlur?: () => any | ||
} | ||
|
||
const NumberInput = ({ | ||
options, | ||
onChange, | ||
placeholder, | ||
value, | ||
onBlur | ||
}: Props) => | ||
<Cleave | ||
placeholder={placeholder} | ||
onChange={onChange} | ||
options={{ | ||
numeral: true, | ||
numeralThousandsGroupStyle: 'thousand', | ||
numeralPositiveOnly: true, | ||
stripLeadingZeroes: true, | ||
...options | ||
}} | ||
value={value} | ||
onBlur={onBlur} | ||
/> | ||
|
||
export default NumberInput |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './NumberInput' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.