diff --git a/src/const.js b/src/const.js index 2148d3e..414d7d5 100644 --- a/src/const.js +++ b/src/const.js @@ -64,7 +64,7 @@ const FilterType = { FUTURE: 'future', PRESENT: 'present', PAST: 'past' -} +}; export { OFFER_COUNT, @@ -78,4 +78,4 @@ export { DEFAULT_TYPE, POINT_EMPTY, FilterType -} +}; diff --git a/src/mock/filter.js b/src/mock/filter.js index 9e6881d..d1dc4a8 100644 --- a/src/mock/filter.js +++ b/src/mock/filter.js @@ -1,4 +1,4 @@ -import { filter } from "../utils/filter.js"; +import { filter } from '../utils/filter.js'; const generateFilters = (points) => { return Object.entries(filter) diff --git a/src/presenter/filter-presenter.js b/src/presenter/filter-presenter.js index f1812f1..9c17249 100644 --- a/src/presenter/filter-presenter.js +++ b/src/presenter/filter-presenter.js @@ -1,6 +1,6 @@ -import FilterView from "../view/filter-view.js"; -import { render } from "../framework/render.js"; -import { generateFilters } from "../mock/filter.js"; +import FilterView from '../view/filter-view.js'; +import { render } from '../framework/render.js'; +import { generateFilters } from '../mock/filter.js'; export default class FilterPresenter { #container = null; diff --git a/src/utils.js b/src/utils.js index 9575a4d..54db7ef 100644 --- a/src/utils.js +++ b/src/utils.js @@ -10,7 +10,7 @@ const TimePeriods = { SEC_IN_MIN: 60, MIN_IN_HOUR: 60, HOUR_IN_DAY: 24 -} +}; const MSEC_IN_HOUR = TimePeriods.MIN_IN_HOUR * TimePeriods.SEC_IN_MIN * TimePeriods.MSEC_IN_SEC; const MSEC_IN_DAY = TimePeriods.HOUR_IN_DAY * MSEC_IN_HOUR; @@ -110,4 +110,4 @@ export { isPointFuture, isPointPast, isPointPresent -} +}; diff --git a/src/utils/filter.js b/src/utils/filter.js index 9c59dc1..1db606a 100644 --- a/src/utils/filter.js +++ b/src/utils/filter.js @@ -1,5 +1,5 @@ -import { FilterType } from "../const.js"; -import { isPointFuture, isPointPresent, isPointPast } from "../utils.js"; +import { FilterType } from '../const.js'; +import { isPointFuture, isPointPresent, isPointPast } from '../utils.js'; const filter = { [FilterType.EVERYTHING]: (points) => [...points], diff --git a/src/view/empty-list-view.js b/src/view/empty-list-view.js index 3f8615e..14ee290 100644 --- a/src/view/empty-list-view.js +++ b/src/view/empty-list-view.js @@ -1,4 +1,4 @@ -import AbstractView from "../framework/view/abstract-view.js"; +import AbstractView from '../framework/view/abstract-view.js'; const createEmptyListViewTemplate = () => { return ( @@ -7,7 +7,7 @@ const createEmptyListViewTemplate = () => {

Click New Event to create your first point

` ); -} +}; export default class EmptyListView extends AbstractView { get template() { diff --git a/src/view/filter-view.js b/src/view/filter-view.js index 1cf4221..a969897 100644 --- a/src/view/filter-view.js +++ b/src/view/filter-view.js @@ -9,11 +9,11 @@ const createFilterItemsTemplate = ({ filters }) => { ${(filter.hasPoints) ? '' : 'disabled'}> ` - ) + ); }).join(''); return filterItems; -} +}; const createFilterTemplate = ({ filters }) => { return ( @@ -22,7 +22,7 @@ const createFilterTemplate = ({ filters }) => { ` ); -} +}; export default class FilterView extends AbstractView { #filters = []; diff --git a/src/view/point-list-view.js b/src/view/point-list-view.js index 0efcfa4..ff0f932 100644 --- a/src/view/point-list-view.js +++ b/src/view/point-list-view.js @@ -4,7 +4,7 @@ const createPointListTemplate = () => { return ( `