-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 12.8 KB
/
.eslintcache
1
[{"/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/index.js":"1","/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/components/App.js":"2","/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/components/Header.js":"3","/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/reducers/index.js":"4","/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/containers/Library.js":"5","/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/containers/BooksForm.js":"6","/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/containers/BooksList.js":"7","/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/reducers/books.js":"8","/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/reducers/filter.js":"9","/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/reducers/search.js":"10","/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/components/SearchBookForm.js":"11","/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/components/Book.js":"12","/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/components/Spinner.js":"13","/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/components/CategoryFilter.js":"14","/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/components/CardBook.js":"15","/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/action-types/index.js":"16","/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/actions/index.js":"17","/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/helpers/index.js":"18","/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/components/Star.js":"19"},{"size":719,"mtime":1648335002384,"results":"20","hashOfConfig":"21"},{"size":266,"mtime":1648335002379,"results":"22","hashOfConfig":"21"},{"size":676,"mtime":1648335002381,"results":"23","hashOfConfig":"21"},{"size":509,"mtime":1648335002385,"results":"24","hashOfConfig":"21"},{"size":239,"mtime":1648335002383,"results":"25","hashOfConfig":"21"},{"size":2221,"mtime":1648335002382,"results":"26","hashOfConfig":"21"},{"size":1711,"mtime":1648335002383,"results":"27","hashOfConfig":"21"},{"size":2020,"mtime":1648335002384,"results":"28","hashOfConfig":"21"},{"size":216,"mtime":1648335002385,"results":"29","hashOfConfig":"21"},{"size":716,"mtime":1648335002385,"results":"30","hashOfConfig":"21"},{"size":2777,"mtime":1648335002381,"results":"31","hashOfConfig":"21"},{"size":3839,"mtime":1648335002380,"results":"32","hashOfConfig":"21"},{"size":133,"mtime":1648335002381,"results":"33","hashOfConfig":"21"},{"size":1204,"mtime":1648335002380,"results":"34","hashOfConfig":"21"},{"size":2150,"mtime":1648335002380,"results":"35","hashOfConfig":"21"},{"size":922,"mtime":1648335002379,"results":"36","hashOfConfig":"21"},{"size":3858,"mtime":1648335002379,"results":"37","hashOfConfig":"21"},{"size":286,"mtime":1648335002384,"results":"38","hashOfConfig":"21"},{"size":385,"mtime":1648335002382,"results":"39","hashOfConfig":"21"},{"filePath":"40","messages":"41","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},"pduzpc",{"filePath":"43","messages":"44","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"45","messages":"46","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"47","messages":"48","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"49","messages":"50","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"51","messages":"52","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"53","messages":"54","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"55","messages":"56","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"57","messages":"58","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"59","messages":"60","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"61","messages":"62","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"63","messages":"64","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"65","messages":"66","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"67","messages":"68","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"69","messages":"70","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"71","messages":"72","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"73","messages":"74","errorCount":0,"fatalErrorCount":0,"warningCount":5,"fixableErrorCount":0,"fixableWarningCount":0,"source":"75","usedDeprecatedRules":"42"},{"filePath":"76","messages":"77","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"78","messages":"79","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/index.js",[],["80","81","82","83","84","85"],"/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/components/App.js",[],"/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/components/Header.js",[],"/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/reducers/index.js",[],"/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/containers/Library.js",[],"/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/containers/BooksForm.js",[],"/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/containers/BooksList.js",[],"/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/reducers/books.js",[],"/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/reducers/filter.js",[],"/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/reducers/search.js",[],"/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/components/SearchBookForm.js",[],"/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/components/Book.js",[],"/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/components/Spinner.js",[],"/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/components/CategoryFilter.js",[],"/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/components/CardBook.js",[],"/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/action-types/index.js",[],"/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/actions/index.js",["86","87","88","89","90"],"import axios from 'axios';\nimport {\n FETCH_BOOKS_FAILURE,\n FETCH_BOOKS_REQUEST,\n FETCH_BOOKS_SUCCESS,\n CHANGE_FILTER,\n CREATE_BOOK_FAILURE,\n CREATE_BOOK_REQUEST,\n CREATE_BOOK_SUCCESS,\n DELETE_BOOK_FAILURE,\n DELETE_BOOK_REQUEST,\n DELETE_BOOK_SUCCESS,\n UPDATE_BOOK_FAILURE,\n UPDATE_BOOK_REQUEST,\n UPDATE_BOOK_SUCCESS,\n SEARCH_BOOKS_FAILURE,\n SEARCH_BOOKS_REQUEST,\n SEARCH_BOOKS_SUCCESS,\n} from '../action-types';\n\nexport const fetchBooksRequest = () => ({\n type: FETCH_BOOKS_REQUEST,\n});\n\nexport const fetchBooksSuccess = books => ({\n type: FETCH_BOOKS_SUCCESS,\n payload: books,\n});\n\nexport const fetchBooksFailure = error => ({\n type: FETCH_BOOKS_FAILURE,\n payload: error,\n});\n\nexport const createBookFailure = error => ({\n type: CREATE_BOOK_FAILURE,\n payload: error,\n});\n\nexport const createBookRequest = () => ({\n type: CREATE_BOOK_REQUEST,\n});\n\nexport const createBookSuccess = book => ({\n type: CREATE_BOOK_SUCCESS,\n payload: book,\n});\n\nexport const deleteBookFailure = error => ({\n type: DELETE_BOOK_FAILURE,\n payload: error,\n});\n\nexport const deleteBookRequest = () => ({\n type: DELETE_BOOK_REQUEST,\n});\n\nexport const deleteBookSuccess = book => ({\n type: DELETE_BOOK_SUCCESS,\n payload: book,\n});\nexport const updateBookFailure = error => ({\n type: UPDATE_BOOK_FAILURE,\n payload: error,\n});\n\nexport const updateBookRequest = () => ({\n type: UPDATE_BOOK_REQUEST,\n});\n\nexport const updateBookSuccess = book => ({\n type: UPDATE_BOOK_SUCCESS,\n payload: book,\n});\n\nexport const searchBooksRequest = () => ({\n type: SEARCH_BOOKS_REQUEST,\n});\n\nexport const searchBooksSuccess = books => ({\n type: SEARCH_BOOKS_SUCCESS,\n payload: books,\n\n});\n\nexport const searchBooksFailure = error => ({\n type: SEARCH_BOOKS_FAILURE,\n payload: error,\n});\n\nexport const fetchBooks = () => dispatch => {\n dispatch(fetchBooksRequest);\n axios.get('https://bookstore-apii.herokuapp.com/api/v1/books')\n .then(response => {\n const books = response.data.data;\n\n dispatch(fetchBooksSuccess(books));\n })\n .catch(error => {\n dispatch(fetchBooksFailure(error.message));\n });\n};\n\nexport const createBook = book => dispatch => {\n dispatch(createBookRequest);\n axios.post('https://bookstore-apii.herokuapp.com/api/v1/books',\n {\n title: book.title,\n author: book.author,\n category: book.category,\n percentage: 0,\n calification: 0,\n })\n .then(response => {\n createBookSuccess(response.data.data);\n dispatch(fetchBooks());\n })\n .catch(error => {\n dispatch(createBookFailure(error.message));\n });\n};\n\nexport const deleteBook = id => dispatch => {\n dispatch(deleteBookRequest);\n axios.delete(`https://bookstore-apii.herokuapp.com/api/v1/books/${id}`)\n .then(response => {\n const book = response.data.data;\n console.log(book);\n dispatch(fetchBooks());\n })\n .catch(error => {\n dispatch(deleteBookFailure(error.message));\n });\n};\n\nexport const updateBook = (id, percentage, calification) => function (dispatch) {\n dispatch(updateBookRequest);\n axios.put(`https://bookstore-apii.herokuapp.com/api/v1/books/${id}`,\n {\n percentage,\n calification,\n })\n .then(response => {\n const book = response.data.data;\n console.log(book);\n dispatch(fetchBooks());\n })\n .catch(error => {\n dispatch(updateBookFailure(error.message));\n });\n};\n\nexport const searchBooks = text => function (dispatch) {\n dispatch(searchBooksRequest);\n axios.get(`https://www.googleapis.com/books/v1/volumes?q=${text}`)\n .then(response => {\n const books = response.data.items;\n console.log(books);\n\n dispatch(searchBooksSuccess(books));\n })\n .catch(error => {\n dispatch(searchBooksFailure(error.message));\n });\n};\n\nexport const changeFilter = value => ({\n type: CHANGE_FILTER,\n value,\n});\n","/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/helpers/index.js",[],"/Users/alex/Desktop/alex_practice_projects/Bookstore-react/src/components/Star.js",[],{"ruleId":"91","replacedBy":"92"},{"ruleId":"93","replacedBy":"94"},{"ruleId":"95","replacedBy":"96"},{"ruleId":"97","replacedBy":"98"},{"ruleId":"99","replacedBy":"100"},{"ruleId":"101","replacedBy":"102"},{"ruleId":"103","severity":1,"message":"104","line":128,"column":7,"nodeType":"105","messageId":"106","endLine":128,"endColumn":18},{"ruleId":"107","severity":1,"message":"108","line":136,"column":61,"nodeType":"109","messageId":"110","endLine":136,"endColumn":70},{"ruleId":"103","severity":1,"message":"104","line":145,"column":7,"nodeType":"105","messageId":"106","endLine":145,"endColumn":18},{"ruleId":"107","severity":1,"message":"108","line":153,"column":36,"nodeType":"109","messageId":"110","endLine":153,"endColumn":45},{"ruleId":"103","severity":1,"message":"104","line":158,"column":7,"nodeType":"105","messageId":"106","endLine":158,"endColumn":18},"lines-around-directive",["111"],"no-spaced-func",["112"],"global-require",[],"no-buffer-constructor",[],"no-new-require",[],"no-path-concat",[],"no-console","Unexpected console statement.","MemberExpression","unexpected","func-names","Unexpected unnamed function.","FunctionExpression","unnamed","padding-line-between-statements","func-call-spacing"]