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

Открывается и закрывается #7

Merged
merged 7 commits into from
Dec 11, 2024

Conversation

KateSolodchuk
Copy link
Contributor

@KateSolodchuk KateSolodchuk commented Dec 6, 2024

@keksobot keksobot changed the title Module8 task1 Открывается и закрывается Dec 6, 2024
keksobot pushed a commit that referenced this pull request Dec 6, 2024
@keksobot
Copy link
Contributor

keksobot commented Dec 6, 2024

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

};

export {renderThumbnails};
export {pictures};
Copy link
Collaborator

Choose a reason for hiding this comment

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

один экспорт на все

@@ -0,0 +1,28 @@
import {createPhotoList} from './data.js';

const pictures = document.querySelector('.pictures');
Copy link
Collaborator

Choose a reason for hiding this comment

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

совсем не явно что это элемент
укажи что picturesEl
или picturestContainer

import {createPhotoList} from './data.js';

const pictures = document.querySelector('.pictures');
const thumbnailsTemplate = document.querySelector('#picture')
Copy link
Collaborator

Choose a reason for hiding this comment

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

thumbnailsTemplate -> thumbnailTemplate тк это один элемент

@keksobot
Copy link
Contributor

keksobot commented Dec 9, 2024

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

keksobot pushed a commit that referenced this pull request Dec 9, 2024
@keksobot
Copy link
Contributor

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

keksobot pushed a commit that referenced this pull request Dec 11, 2024
import {CreatePhotoList} from './data.js';
import './thumbnails.js';
import {createPhotoList} from './data.js';
import {renderThumbnails, picturesContainer} from './render-thumbnails.js';
Copy link
Collaborator

Choose a reason for hiding this comment

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

picturesContainer не используется, подчищаем по возможности

document.removeEventListener('keydown', onDocumentKeydown);
}

const initClickListener = (data) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

data бы обозвать более понятно, что это за данные
thumbsDataList например


commentsList.appendChild(commentsFragment);

commentCount.firstChild.textContent = `${renderedCommentsLength} из `;
Copy link
Collaborator

Choose a reason for hiding this comment

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

обнови разметку хтмл, не надо мучаться с "из" еще изменять )

export {getRandomInteger};
export {isEscapeKey};
Copy link
Collaborator

Choose a reason for hiding this comment

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

объединяй экспорты

export {getRandomInteger};
export {isEscapeKey};
Copy link
Collaborator

Choose a reason for hiding this comment

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

объединяй экспорты

@keksobot keksobot merged commit b7a5d6c into htmlacademy-javascript:master Dec 11, 2024
1 check failed
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