-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Шаблонизируй это #4
Шаблонизируй это #4
Conversation
Ваш пулреквест опубликован. Посмотреть можно здесь |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
По заданию все ок, есть небольшие замечания по критериям - поправь их и будет совсем хорошо
export const points = [ | ||
{ | ||
id: 'f4b62099-293f-4c3d-a702-94eec4a2808c', | ||
basePrice: 11300, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
моки нужно сделать максимально похожими на то, что будет приходить с сервера, в том числе и наименования ключей. Т.е.
'base_price'
'date_from'
'date_to'
'is_favorite'
Потом будет проще сделать интеграцию с апи
import { createElement } from '../render.js'; | ||
import { capitalize, humanizeDueDate, findDuration } from '../util.js'; | ||
|
||
const dateFormat = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Посмотри как по критериям должны именоваться перечисления
https://up.htmlacademy.ru/ecmascript-individual/2/criteries#b7
src/presenter/trip-presenter.js
Outdated
import Sorting from '../view/sorting.js'; | ||
import TripList from '../view/trip-list.js'; | ||
import TripPoint from '../view/trip-point.js'; | ||
import CreateForm from '../view/create-form-view.js'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Б27. Название модуля соответствует его содержимому.
Т.к. ты изменил названия файлов, то и названия экспортируемых классов нужно теперь поменять, это во всех вью так
src/view/trip-point-view.js
Outdated
</li>`; | ||
}; | ||
|
||
export default class TripPoint { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не забудь про Б27. Название модуля соответствует его содержимому.
Ваш пулреквест опубликован. Посмотреть можно здесь |
🎓 Шаблонизируй это