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

Grammar and spelling fixes. #201

Merged
merged 3 commits into from
Oct 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/actions/projects.test.js
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/components/blockexplorer/transactionlogdata.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/components/console/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/components/dropdown/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
16 changes: 8 additions & 8 deletions src/components/projecteditor/control/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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={};
Expand All @@ -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();
Expand Down Expand Up @@ -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++) {
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/components/projecteditor/editor-contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/components/projecteditor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/components/projecteditor/welcome/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class Welcome extends Component {
<div class={style.container}>
<div class={classNames([style.content, style.contentLeft])}>
<img src={'/static/img/img-welcome.svg'}/>
<h3>Looks like you don’t have any project created just yet</h3>
<h3>Looks like you don’t have any projects created just yet</h3>
<p>Create a new project from any of our existing templates to get started</p>
<button class="btn2 mt-4" onClick={this.onCreateNewProjectClick}>Create New Project</button>
</div>
Expand Down