From 11bbe3808a13b42dd6e10bafecd1862a7d3e2213 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B0=D1=81=D1=82=D0=B0=D1=81=D0=B8=D1=8F=20?= =?UTF-8?q?=D0=A2=D0=BE=D0=BF=D0=BE=D1=80=D0=BA=D0=BE=D0=B2=D0=B0?= Date: Sun, 14 Apr 2024 11:53:24 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B0=D0=B7=D0=B4=D0=B5=D0=BB=D1=8F?= =?UTF-8?q?=D0=B9=20=D0=B8=20=D0=B2=D0=BB=D0=B0=D1=81=D1=82=D0=B2=D1=83?= =?UTF-8?q?=D0=B93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/presenter/trip-presenter.js | 8 ++++---- src/view/edit-point-view.js | 16 ++++++++-------- src/view/point-view.js | 6 +++--- src/view/sort-view.js | 2 +- src/view/trip-info-view.js | 2 +- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/presenter/trip-presenter.js b/src/presenter/trip-presenter.js index 1bb8bae..d4c628a 100644 --- a/src/presenter/trip-presenter.js +++ b/src/presenter/trip-presenter.js @@ -66,18 +66,18 @@ export default class TripPresenter { function pointEditClickHandler() { replacePointToForm(); document.addEventListener('keydown', escKeyDownHandler); - }; + } function resetButtonClickHandler() { replaceFormToPoint(); document.removeEventListener('keydown', escKeyDownHandler); - }; + } function pointSubmitHandler() { replaceFormToPoint(); document.removeEventListener('keydown', escKeyDownHandler); - }; + } render(pointComponent, this.#pointListComponent.element); - } + }; } diff --git a/src/view/edit-point-view.js b/src/view/edit-point-view.js index 86bcaf9..31766d4 100644 --- a/src/view/edit-point-view.js +++ b/src/view/edit-point-view.js @@ -1,5 +1,5 @@ import AbstractView from '../framework/view/abstract-view.js'; -import { POINT_EMPTY, TYPES, CITIES } from "../const.js"; +import { POINT_EMPTY, TYPES, CITIES } from '../const.js'; import { formatStringToDateTime } from '../utils.js'; const createPointCitiesOptionsTemplate = () => { @@ -8,7 +8,7 @@ const createPointCitiesOptionsTemplate = () => { ${CITIES.map((city) => ``).join('')} ` ); -} +}; const createPointPhotosTemplate = (pointDestination) => { return ( @@ -17,7 +17,7 @@ const createPointPhotosTemplate = (pointDestination) => { `${picture.description}`).join('')} ` ); -} +}; const createPointTypesTemplate = (currentType) => { return TYPES.map((type) => @@ -25,7 +25,7 @@ const createPointTypesTemplate = (currentType) => { `).join(''); -} +}; const createPointOffersTemplate = ({ pointOffers }) => { const offerItems = pointOffers.map(offer => { @@ -42,7 +42,7 @@ const createPointOffersTemplate = ({ pointOffers }) => { }).join(''); return `
${offerItems}
`; -} +}; const createEditPointTemplate = ({ point, pointDestination, pointOffers }) => { const { basePrice, dateFrom, dateTo, offers, type } = point; @@ -107,7 +107,7 @@ const createEditPointTemplate = ({ point, pointDestination, pointOffers }) => { ` ); -} +}; export default class EditPointView extends AbstractView { #point = null; @@ -140,10 +140,10 @@ export default class EditPointView extends AbstractView { #formSubmitHandler = (evt) => { evt.preventDefault(); this.#onSubmitClick(); - } + }; #resetButtonClickHandler = (evt) => { evt.preventDefault(); this.#onResetClick(); - } + }; } diff --git a/src/view/point-view.js b/src/view/point-view.js index 25793b9..e5b3ae3 100644 --- a/src/view/point-view.js +++ b/src/view/point-view.js @@ -13,7 +13,7 @@ const createPointOffersTemplate = ({ pointOffers }) => { }).join(''); return ``; -} +}; const createPointTemplate = ({ point, pointDestination, pointOffers }) => { const { basePrice, dateFrom, dateTo, offers, isFavorite, type } = point; @@ -52,7 +52,7 @@ const createPointTemplate = ({ point, pointDestination, pointOffers }) => { ` ); -} +}; export default class PointView extends AbstractView { #point = null; @@ -81,5 +81,5 @@ export default class PointView extends AbstractView { #editClickHandler = (evt) => { evt.preventDefault(); this.#onEditClick(); - } + }; } diff --git a/src/view/sort-view.js b/src/view/sort-view.js index 0c775c9..0f71640 100644 --- a/src/view/sort-view.js +++ b/src/view/sort-view.js @@ -26,7 +26,7 @@ const createSortTemplate = () => { ` ); -} +}; export default class SortView extends AbstractView { get template() { diff --git a/src/view/trip-info-view.js b/src/view/trip-info-view.js index b7ffa98..49fbf6c 100644 --- a/src/view/trip-info-view.js +++ b/src/view/trip-info-view.js @@ -14,7 +14,7 @@ const createTripInfoTemplate = () => {

` ); -} +}; export default class TripInfoView extends AbstractView { get template() {