diff --git a/src/actions/projects.test.js b/src/actions/projects.test.js index b901d33b..c507a509 100644 --- a/src/actions/projects.test.js +++ b/src/actions/projects.test.js @@ -1,7 +1,7 @@ import * as actions from './projects'; describe('actions', () => { - it('should create an action to select the projec to open when re-loading the app', () => { + it('should create an action to select the project to open when re-loading the app', () => { const data = { props: { state: { data: { dir : 'project-name' }}}}; const expectedAction = { type: 'SELECT_PROJECT', diff --git a/src/components/blockexplorer/transactionlogdata.js b/src/components/blockexplorer/transactionlogdata.js index 28fac108..c69228da 100644 --- a/src/components/blockexplorer/transactionlogdata.js +++ b/src/components/blockexplorer/transactionlogdata.js @@ -63,9 +63,9 @@ export default class TransactionLogData { context: data.context, deployArgs: data.deployArgs, // When Superblocks Lab deploys a contract we can simply save the constructor arguments. obj: null, - objTS: null, // Timestamp when transaction object become available. + objTS: null, // Timestamp when transaction object becomes available. receipt: null, // This will be filled when tx has been mined. - receiptTS: null, // Timestamp when receipt become available. + receiptTS: null, // Timestamp when receipt becomes available. state: {}, // Local state data for displaying the tx. }; this._transactions.unshift(tx); diff --git a/src/components/console/index.js b/src/components/console/index.js index e37148d7..1707802f 100644 --- a/src/components/console/index.js +++ b/src/components/console/index.js @@ -108,7 +108,7 @@ export default class DevkitConsole extends Component { this.done(); } else { - console.log("Console could not decode message buffer.", this.state.buffer); + console.log("Console could not decode the message buffer.", this.state.buffer); return; } this.state.buffer=m[3].slice(msg.length); diff --git a/src/components/dropdown/index.js b/src/components/dropdown/index.js index bd594dff..f91cf587 100644 --- a/src/components/dropdown/index.js +++ b/src/components/dropdown/index.js @@ -4,7 +4,7 @@ import PropTypes from 'prop-types'; /** - * Simple wrapper component over the react-onclickoutside to maek easier the usage of the component + * Simple wrapper component over the react-onclickoutside to make easier the usage of the component */ class DropdownBasic extends Component { render() { diff --git a/src/components/projecteditor/control/control.js b/src/components/projecteditor/control/control.js index b2d3c9f2..0c4a405c 100644 --- a/src/components/projecteditor/control/control.js +++ b/src/components/projecteditor/control/control.js @@ -79,7 +79,7 @@ export default class Control extends Component { componentDidMount() { this._reloadProjects(null, (status) => { - // NOTE: Ideally all this logic should not leave in the component itself but most likely in an epic + // NOTE: Ideally all this logic should not live in the component itself but most likely in an epic // which we can actually properly test let { selectedProjectId } = this.props; this._projectsList.forEach((project) => { @@ -575,7 +575,7 @@ export default class Control extends Component { }); } else { - alert("A DApp with that name already exists, choose a different name."); + alert("A DApp with that name already exists, please choose a different name."); } }; const modal={}; @@ -592,7 +592,7 @@ export default class Control extends Component { _clickWorkspace = (e) => { e.preventDefault(); - document.querySelector('#wsFileInput').dispatchEvent(new MouseEvent('click')); // ref does not work fhttps://github.com/developit/preact/issues/477 + document.querySelector('#wsFileInput').dispatchEvent(new MouseEvent('click')); // ref does not work https://github.com/developit/preact/issues/477 } _uploadWorkspace = (e) => { e.preventDefault(); @@ -893,7 +893,7 @@ export default class Control extends Component { if(projectItem.props.state.data.dappfile.contracts().filter((c)=>{ return c.name==name; }).length>0) { - alert("A contract by this name already exists, choose a different name, please."); + alert("A contract by this name already exists, please choose a different name."); return; } //for(var index=0;index<100000;index++) { @@ -942,12 +942,12 @@ export default class Control extends Component { const contract=projectItem.props.state.data.dappfile.contracts()[contractIndex]; this._closeAnyContractItemsOpen(contract.name, true, (status) => { if (status != 0) { - alert("Could not delete contract, close editor/compiler/deployer/interaction windows and try again."); + alert("Could not delete the contract, close the editor/compiler/deployer/interaction windows and try again."); return; } projectItem.deleteFile(contract.source, (status)=>{ if(status>0) { - alert("Could not delete contract, close editor and try again."); + alert("Could not delete the contract, close the editor and try again."); return; } projectItem.props.state.data.dappfile.contracts().splice(contractIndex,1); @@ -1001,7 +1001,7 @@ export default class Control extends Component { alert("You cannot delete the default account."); return; } - if(!confirm("Are you sure to delete account?")) return; + if(!confirm("Are you sure you want to delete this account?")) return; projectItem.props.state.data.dappfile.accounts().splice(accountIndex,1); projectItem.save(); this.props.router.main.redraw(true); @@ -1074,7 +1074,7 @@ export default class Control extends Component { _clickDeleteFile = (e, item) => { e.preventDefault(); var projectItem=item.props._project; - if(!confirm("Are you sure to delete " + item.props._path + "?")) return false; + if(!confirm("Are you sure you want to delete " + item.props._path + "?")) return false; this.backend.deleteFile(projectItem.props.state.data.dir, item.props._path, (status) => { if(status==0) { this._reloadProjects(); diff --git a/src/components/projecteditor/editor-contract.js b/src/components/projecteditor/editor-contract.js index 6fa02097..d1c7e95a 100644 --- a/src/components/projecteditor/editor-contract.js +++ b/src/components/projecteditor/editor-contract.js @@ -187,7 +187,7 @@ export default class ContractEditor extends Component { if (this.props.contract != this.contract.get('name')) { const contract2 = this.dappfile.getItem("contracts", [{name:this.contract.get("name")}]); if (contract2) { - alert("A contract by this name already exists, choose a different name, please."); + alert("A contract by this name already exists, please choose a different name."); return; } // Check if any affected windows are open. diff --git a/src/components/projecteditor/editor.js b/src/components/projecteditor/editor.js index 0325011e..f41e6fcc 100644 --- a/src/components/projecteditor/editor.js +++ b/src/components/projecteditor/editor.js @@ -57,7 +57,7 @@ export default class Editor extends Component { canClose = (cb) => { if(this.body.state!=0) { - if(confirm("File is not saved, close anyways?")) { + if(confirm("File is not saved, close anyway?")) { this._finalize(); cb(0); return diff --git a/src/components/projecteditor/welcome/index.js b/src/components/projecteditor/welcome/index.js index 9448a77f..91645fc0 100644 --- a/src/components/projecteditor/welcome/index.js +++ b/src/components/projecteditor/welcome/index.js @@ -37,7 +37,7 @@ export default class Welcome extends Component {
-

Looks like you don’t have any project created just yet

+

Looks like you don’t have any projects created just yet

Create a new project from any of our existing templates to get started