Btcom 2585 warranties rebuild#13
Conversation
…ed children components to use i
|
|
||
| export function unregister() { | ||
| if ('serviceWorker' in navigator) { | ||
| navigator.serviceWorker.ready.then(registration => { |
There was a problem hiding this comment.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
| }); | ||
| } | ||
|
|
||
| export function unregister() { |
There was a problem hiding this comment.
'export' is only available in ES6 (use 'esversion: 6').
| registerValidSW(swUrl); | ||
| } | ||
| }) | ||
| .catch(() => { |
There was a problem hiding this comment.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
| ) { | ||
| // No service worker found. Probably a different app. Reload the page. | ||
| navigator.serviceWorker.ready.then(registration => { | ||
| registration.unregister().then(() => { |
There was a problem hiding this comment.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
| response.headers.get('content-type').indexOf('javascript') === -1 | ||
| ) { | ||
| // No service worker found. Probably a different app. Reload the page. | ||
| navigator.serviceWorker.ready.then(registration => { |
There was a problem hiding this comment.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
|
|
||
| // Add some additional logging to localhost, pointing developers to the | ||
| // service worker/PWA documentation. | ||
| navigator.serviceWorker.ready.then(() => { |
There was a problem hiding this comment.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
| } | ||
|
|
||
| window.addEventListener('load', () => { | ||
| const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`; |
There was a problem hiding this comment.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'template literal syntax' is only available in ES6 (use 'esversion: 6').
| return; | ||
| } | ||
|
|
||
| window.addEventListener('load', () => { |
There was a problem hiding this comment.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
| export default function register() { | ||
| if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) { | ||
| // The URL constructor is available in all browsers that support SW. | ||
| const publicUrl = new URL(process.env.PUBLIC_URL, window.location); |
There was a problem hiding this comment.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
| ) | ||
| ); | ||
|
|
||
| export default function register() { |
There was a problem hiding this comment.
'export' is only available in ES6 (use 'esversion: 6').
|
|
||
| const store = createStore(allReducers, initialState, applyMiddleware(...middleware)); | ||
|
|
||
| export default store; No newline at end of file |
There was a problem hiding this comment.
'export' is only available in ES6 (use 'esversion: 6').
|
|
||
| const middleware = [thunk]; | ||
|
|
||
| const store = createStore(allReducers, initialState, applyMiddleware(...middleware)); |
There was a problem hiding this comment.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'spread/rest operator' is only available in ES6 (use 'esversion: 6').
| personal: 'Michael' | ||
| }; | ||
|
|
||
| const middleware = [thunk]; |
There was a problem hiding this comment.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
| import allReducers from './reducers'; | ||
| import thunk from 'redux-thunk'; | ||
|
|
||
| const initialState = { |
There was a problem hiding this comment.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
| @@ -0,0 +1,14 @@ | |||
| import { createStore, applyMiddleware } from 'redux'; | |||
| import allReducers from './reducers'; | |||
| import thunk from 'redux-thunk'; | |||
There was a problem hiding this comment.
'import' is only available in ES6 (use 'esversion: 6').
| @@ -0,0 +1,14 @@ | |||
| import { createStore, applyMiddleware } from 'redux'; | |||
| import allReducers from './reducers'; | |||
There was a problem hiding this comment.
'import' is only available in ES6 (use 'esversion: 6').
| @@ -0,0 +1,14 @@ | |||
| import { createStore, applyMiddleware } from 'redux'; | |||
There was a problem hiding this comment.
'import' is only available in ES6 (use 'esversion: 6').
| return { | ||
| ...oldObject, | ||
| ...updatedValues | ||
| } |
There was a problem hiding this comment.
Missing semicolon.
Unrecoverable syntax error. (83% scanned).
| export const updateObject = (oldObject, updatedValues) => { | ||
| return { | ||
| ...oldObject, | ||
| ...updatedValues |
There was a problem hiding this comment.
'spread/rest operator' is only available in ES6 (use 'esversion: 6').
Expected an assignment or function call and instead saw an expression.
Missing semicolon.
| @@ -0,0 +1,6 @@ | |||
| export const updateObject = (oldObject, updatedValues) => { | |||
| return { | |||
| ...oldObject, | |||
There was a problem hiding this comment.
Expected '}' to match '{' from line 2 and instead saw '...'.
Missing semicolon.
| @@ -0,0 +1,6 @@ | |||
| export const updateObject = (oldObject, updatedValues) => { | |||
There was a problem hiding this comment.
'export' is only available in ES6 (use 'esversion: 6').
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
| return state; | ||
| }; | ||
|
|
||
| export default reducer; No newline at end of file |
There was a problem hiding this comment.
'export' is only available in ES6 (use 'esversion: 6').
| @@ -0,0 +1,6 @@ | |||
| export { | |||
There was a problem hiding this comment.
'export' is only available in ES6 (use 'esversion: 6').
| }; | ||
| }; | ||
|
|
||
| export const subtract = ( value ) => { |
There was a problem hiding this comment.
'export' is only available in ES6 (use 'esversion: 6').
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
| }; | ||
| }; | ||
|
|
||
| export const add = ( value ) => { |
There was a problem hiding this comment.
'export' is only available in ES6 (use 'esversion: 6').
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
| }; | ||
| }; | ||
|
|
||
| export const decrement = () => { |
There was a problem hiding this comment.
'export' is only available in ES6 (use 'esversion: 6').
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
| @@ -0,0 +1,27 @@ | |||
| import * as actionTypes from './actionTypes'; | |||
|
|
|||
| export const increment = () => { | |||
There was a problem hiding this comment.
'export' is only available in ES6 (use 'esversion: 6').
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
No description provided.