Skip to content

Recipe instruction feature#21

Closed
bmwest wants to merge 7 commits intomasterfrom
recipe-instruction-feature
Closed

Recipe instruction feature#21
bmwest wants to merge 7 commits intomasterfrom
recipe-instruction-feature

Conversation

@bmwest
Copy link
Copy Markdown
Owner

@bmwest bmwest commented Mar 30, 2017

No description provided.

ReactDOM.render(<AppIndex />, reactApp);
} else if (reactSteps) {
ReactDOM.render(<GetInstructions />, reactSteps)
ReactDOM.render(<InstructionList />, reactSteps)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Expected an identifier and instead saw '<'.
Expected ')' and instead saw 'InstructionList'.
Expected an identifier and instead saw '>'.
Expected an assignment or function call and instead saw an expression.
Missing semicolon.
Expected an identifier and instead saw ')'.

import ReactDOM from 'react-dom';
import AppIndex from './components/recipes/AppIndex';
import GetInstructions from './components/instructions/GetInstructions';
import InstructionList from './components/recipes/InstructionList';
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'import' is only available in ES6 (use 'esversion: 6').

return(
<div className="recipe-item">
<h4><a href={`http://localhost:3000/recipes/` + this.props.id}>{this.props.name}</a></h4>
<a href={`http://localhost:3000/recipes/` + this.props.id}>{this.props.photo} photo goes here</a>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unclosed regular expression.
Unrecoverable syntax error. (46% scanned).

<h4><a href={`http://localhost:3000/recipes/` + props.id}>{props.name}</a></h4>
class Recipe extends Component {
constructor(props) {
super(props)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing semicolon.

return (
<div className="recipe-item">
<h4><a href={`http://localhost:3000/recipes/` + props.id}>{props.name}</a></h4>
class Recipe extends Component {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'class' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

let oldStep = event.target.value
let newSteps = this.state.steps.filter(step => {
return step.id !== oldStep.id
})
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing semicolon.

handleButtonClick(event) {
let oldStep = event.target.value
let newSteps = this.state.steps.filter(step => {
return step.id !== oldStep.id
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing semicolon.


handleButtonClick(event) {
let oldStep = event.target.value
let newSteps = this.state.steps.filter(step => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').

}

handleButtonClick(event) {
let oldStep = event.target.value
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
Missing semicolon.

console.log(body)
this.setState({steps: body});
})
.catch(error => console.error(`Error in fetch: ${error.message}`));
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
'template literal syntax' is only available in ES6 (use 'esversion: 6').

ReactDOM.render(<AppIndex />, reactApp);
} else if (reactSteps) {
ReactDOM.render(<GetInstructions />, reactSteps)
ReactDOM.render(<InstructionList />, reactSteps)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Expected an identifier and instead saw '<'.
Expected ')' and instead saw 'InstructionList'.
Expected an identifier and instead saw '>'.
Expected an assignment or function call and instead saw an expression.
Missing semicolon.
Expected an identifier and instead saw ')'.

import ReactDOM from 'react-dom';
import AppIndex from './components/recipes/AppIndex';
import GetInstructions from './components/instructions/GetInstructions';
import InstructionList from './components/recipes/InstructionList';
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'import' is only available in ES6 (use 'esversion: 6').

return(
<div className="recipe-item">
<h4><a href={`http://localhost:3000/recipes/` + this.props.id}>{this.props.name}</a></h4>
<a href={`http://localhost:3000/recipes/` + this.props.id}>{this.props.photo} photo goes here</a>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unclosed regular expression.
Unrecoverable syntax error. (46% scanned).

<h4><a href={`http://localhost:3000/recipes/` + props.id}>{props.name}</a></h4>
class Recipe extends Component {
constructor(props) {
super(props)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing semicolon.

return (
<div className="recipe-item">
<h4><a href={`http://localhost:3000/recipes/` + props.id}>{props.name}</a></h4>
class Recipe extends Component {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'class' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

let oldStep = event.target.value
let newSteps = this.state.steps.filter(step => {
return step.id !== oldStep.id
})
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing semicolon.

handleButtonClick(event) {
let oldStep = event.target.value
let newSteps = this.state.steps.filter(step => {
return step.id !== oldStep.id
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing semicolon.


handleButtonClick(event) {
let oldStep = event.target.value
let newSteps = this.state.steps.filter(step => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').

}

handleButtonClick(event) {
let oldStep = event.target.value
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
Missing semicolon.

console.log(body)
this.setState({steps: body});
})
.catch(error => console.error(`Error in fetch: ${error.message}`));
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
'template literal syntax' is only available in ES6 (use 'esversion: 6').

return(
<div className="recipe-item">
<h4><a href={`http://localhost:3000/recipes/` + this.props.id}>{this.props.name}</a></h4>
<a href={`http://localhost:3000/recipes/` + this.props.id}>{this.props.photo} photo goes here</a>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unclosed regular expression.
Unrecoverable syntax error. (52% scanned).

recipe={s.recipe_id}
stepItems={s.step}
getAllSteps={this.getSteps}
/>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unclosed regular expression.
Unrecoverable syntax error. (83% scanned).

.then(body => {
this.setState({steps: body});
})
.catch(error => console.error(`Error in fetch: ${error.message}`));
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
'template literal syntax' is only available in ES6 (use 'esversion: 6').

.then(response => {
return response.json();
})
.then(body => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').

throw(error);
}
})
.then(response => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').

if (response.ok) {
return response;
} else {
let errorMessage = `${response.status} ($response.statusText)`,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'template literal syntax' is only available in ES6 (use 'esversion: 6').

fetch(`http://localhost:3000/api/v1/recipes/${recipeId}/instructions`, {
credentials: 'same-origin'
})
.then(response => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').


getSteps() {
let recipeId = document.getElementById('recipe-id').textContent;
fetch(`http://localhost:3000/api/v1/recipes/${recipeId}/instructions`, {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'template literal syntax' is only available in ES6 (use 'esversion: 6').

}

getSteps() {
let recipeId = document.getElementById('recipe-id').textContent;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).


clearForm(event) {
let newStep = event.target.value
this.setState({ step: newStep})
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing semicolon.

return(
<div className="recipe-item">
<h4><a href={`http://localhost:3000/recipes/` + this.props.id}>{this.props.name}</a></h4>
<a href={`http://localhost:3000/recipes/` + this.props.id}>{this.props.photo} photo goes here</a>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unclosed regular expression.
Unrecoverable syntax error. (52% scanned).

recipe={s.recipe_id}
stepItems={s.step}
getAllSteps={this.getSteps}
/>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unclosed regular expression.
Unrecoverable syntax error. (83% scanned).

.then(body => {
this.setState({steps: body});
})
.catch(error => console.error(`Error in fetch: ${error.message}`));
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
'template literal syntax' is only available in ES6 (use 'esversion: 6').

.then(response => {
return response.json();
})
.then(body => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').

throw(error);
}
})
.then(response => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').

if (response.ok) {
return response;
} else {
let errorMessage = `${response.status} ($response.statusText)`,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'template literal syntax' is only available in ES6 (use 'esversion: 6').

fetch(`http://localhost:3000/api/v1/recipes/${recipeId}/instructions`, {
credentials: 'same-origin'
})
.then(response => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').


getSteps() {
let recipeId = document.getElementById('recipe-id').textContent;
fetch(`http://localhost:3000/api/v1/recipes/${recipeId}/instructions`, {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'template literal syntax' is only available in ES6 (use 'esversion: 6').

}

getSteps() {
let recipeId = document.getElementById('recipe-id').textContent;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).


clearForm(event) {
let newStep = event.target.value
this.setState({ step: newStep})
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing semicolon.

return(
<div className="recipe-item">
<h4><a href={`http://localhost:3000/recipes/` + this.props.id}>{this.props.name}</a></h4>
<a href={`http://localhost:3000/recipes/` + this.props.id}>{this.props.photo} photo goes here</a>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unclosed regular expression.
Unrecoverable syntax error. (52% scanned).

recipe={s.recipe_id}
stepItems={s.step}
getAllSteps={this.getSteps}
/>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unclosed regular expression.
Unrecoverable syntax error. (83% scanned).

.then(body => {
this.setState({steps: body});
})
.catch(error => console.error(`Error in fetch: ${error.message}`));
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
'template literal syntax' is only available in ES6 (use 'esversion: 6').

.then(response => {
return response.json();
})
.then(body => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').

throw(error);
}
})
.then(response => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').

if (response.ok) {
return response;
} else {
let errorMessage = `${response.status} ($response.statusText)`,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'template literal syntax' is only available in ES6 (use 'esversion: 6').

fetch(`http://localhost:3000/api/v1/recipes/${recipeId}/instructions`, {
credentials: 'same-origin'
})
.then(response => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').


getSteps() {
let recipeId = document.getElementById('recipe-id').textContent;
fetch(`http://localhost:3000/api/v1/recipes/${recipeId}/instructions`, {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'template literal syntax' is only available in ES6 (use 'esversion: 6').

}

getSteps() {
let recipeId = document.getElementById('recipe-id').textContent;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).


clearForm(event) {
let newStep = event.target.value
this.setState({ step: newStep})
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing semicolon.

@bmwest bmwest closed this Apr 22, 2017
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