Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi param angles content #1307

Merged
merged 10 commits into from
May 17, 2018
Merged

Multi param angles content #1307

merged 10 commits into from
May 17, 2018

Conversation

ryestew
Copy link
Collaborator

@ryestew ryestew commented May 14, 2018

Automatically wrap strings and numbers and 0x in double quotes from the multi inputs ( the expanded view) & copying over the content between the expanded and contracted views.

@@ -2,6 +2,7 @@

var yo = require('yo-yo')
var css = require('./universal-dapp-styles')
// var helper = require('../remix/remix-lib/src/execution/txHelper')
Copy link
Collaborator

Choose a reason for hiding this comment

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

we should perhaps remove the comment if this is not going to be readded in the future

}

makeMultiVal () {
var inputString = this.basicInputField.value
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we might need to wrap with double quote here

 params = params.replace(/(^|,\s+|,)(\d+)(\s+,|,|$)/g, '$1"$2"$3') // replace non quoted number by quoted number
        params = params.replace(/(^|,\s+|,)(0[xX][0-9a-fA-F]+)(\s+,|,|$)/g, '$1"$2"$3') // replace non quoted hex string by quoted hex string

cause the JSON.parse will break if some values are not wrapped ...

var multiOnClick = () => {
var valArray = multiFields.querySelectorAll('input')
var valArray = this.multiFields.querySelectorAll('input')
Copy link
Collaborator

Choose a reason for hiding this comment

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

perhaps we can use getMultiValsString here

@ryestew ryestew force-pushed the multi_param_angles_content branch from 5031c7e to 6e11efe Compare May 16, 2018 12:11
@ryestew ryestew force-pushed the multi_param_angles_content branch from 372784e to 156732d Compare May 17, 2018 09:57
@ryestew ryestew force-pushed the multi_param_angles_content branch from 156732d to 2d549dc Compare May 17, 2018 10:05
@yann300 yann300 merged commit c93ec61 into master May 17, 2018
@axic axic deleted the multi_param_angles_content branch September 19, 2018 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants