-
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
Отрисуй меня полностью #7
Отрисуй меня полностью #7
Conversation
♻️ Я собрал ваш пулреквест. Посмотреть можно здесь. |
js/main.js
Outdated
@@ -1,3 +1,4 @@ | |||
import {createPosts} from './data.js'; | |||
import './thumbnails.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.
Нужно импортировать представление из thumbnails и передавать в него аргументом данные из createPosts
js/thumbnails.js
Outdated
@@ -0,0 +1,29 @@ | |||
import {createPosts} from './data.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.
Данные не должны импортироваться напрямую в представление
js/thumbnails.js
Outdated
@@ -0,0 +1,29 @@ | |||
import {createPosts} from './data.js'; | |||
|
|||
const pictureTemplate = document.querySelector('#picture').content.querySelector('.picture'); |
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.
Весь нейминг нужно привести в соответсвие с критерием Д6
♻️ Я собрал ваш пулреквест. Посмотреть можно здесь. |
🎓 Отрисуй меня полностью
💥 https://htmlacademy-javascript.github.io/855585-kekstagram-2/7/