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 3 commits into from
Dec 18, 2024

Conversation

lenapokrovskaya
Copy link
Contributor

@lenapokrovskaya lenapokrovskaya commented Dec 16, 2024

@keksobot
Copy link
Contributor

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

keksobot pushed a commit that referenced this pull request Dec 16, 2024
js/main.js Outdated
@@ -1,3 +1,4 @@
import {createPosts} from './data.js';
import './thumbnails.js';
Copy link
Contributor

Choose a reason for hiding this comment

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

Нужно импортировать представление из thumbnails и передавать в него аргументом данные из createPosts

js/thumbnails.js Outdated
@@ -0,0 +1,29 @@
import {createPosts} from './data.js';
Copy link
Contributor

Choose a reason for hiding this comment

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

Данные не должны импортироваться напрямую в представление

js/thumbnails.js Outdated
@@ -0,0 +1,29 @@
import {createPosts} from './data.js';

const pictureTemplate = document.querySelector('#picture').content.querySelector('.picture');
Copy link
Contributor

Choose a reason for hiding this comment

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

Весь нейминг нужно привести в соответсвие с критерием Д6

@keksobot
Copy link
Contributor

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

keksobot pushed a commit that referenced this pull request Dec 18, 2024
@keksobot keksobot merged commit 500a158 into htmlacademy-javascript:master Dec 18, 2024
1 check 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