Skip to content
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

Merged

Conversation

InsomniaRolodex
Copy link
Contributor

@InsomniaRolodex InsomniaRolodex commented Jun 27, 2024

@keksobot keksobot changed the title Module2 task1 Шаблонизируй это Jun 27, 2024
Copy link

Ваш пулреквест опубликован. Посмотреть можно здесь

github-actions bot pushed a commit that referenced this pull request Jun 27, 2024
Copy link
Collaborator

@NikolaiKotikov NikolaiKotikov left a 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,
Copy link
Collaborator

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 = {
Copy link
Collaborator

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

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';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Б27. Название модуля соответствует его содержимому.
Т.к. ты изменил названия файлов, то и названия экспортируемых классов нужно теперь поменять, это во всех вью так

</li>`;
};

export default class TripPoint {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не забудь про Б27. Название модуля соответствует его содержимому.

Copy link

github-actions bot commented Jul 1, 2024

Ваш пулреквест опубликован. Посмотреть можно здесь

github-actions bot pushed a commit that referenced this pull request Jul 1, 2024
@keksobot keksobot merged commit 48f2e2e into htmlacademy-ecmascript:master Jul 1, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants