How bigbarabum/yp-webpack works
This is a browser-based places/profile application: the page entry point loads cards and user data, then wires profile editing, card creation, image viewing, likes, and deletion. The main internal layers are the API client, card rendering, user state, and popup/form interactions. The README describes the project but does not document its product behavior; relationships below rely on the sampled source excerpts and SOURCE INDEX. Styling and build tooling are omitted.
Main entry points: index.js Page entry · PopupCard.js Card form popup · PopupProfile.js Profile popup · CardList.js Card list
Components 12
Application runtime
- Page entry
app/index.js - API client
app/API.js
Places and cards
- Card list
app/CardList.js - Card
app/Card.js - Card form popup
app/PopupCard.js
Profile and forms
- User info
app/UserInfo.js - Profile popup
app/PopupProfile.js - Form validator
app/FormValidator.js
Popup interactions
- Popup base
app/Popup.js - Image popup
app/PopupImage.js
Other components
- Visitor
- Praktikum API
Connections 19
- Visitor → Page entry: uses page
app/index.js - Page entry → API client: creates client
app/index.js - Page entry → Card list: starts rendering
app/index.js - Page entry → User info: loads profile
app/index.js - Page entry → Card form popup: opens form
app/index.js - Page entry → Profile popup: opens form
app/index.js - Page entry → Image popup: opens viewer
app/index.js - Page entry → Card: handles card actions
app/index.js - Card list → API client: fetches cards
app/CardList.js - Card list → Card: renders via
app/CardList.js - User info → API client: reads and updates
app/UserInfo.js - Card form popup → Card list: adds card
app/PopupCard.js - Card form popup → Form validator: validates input
app/PopupCard.js - Profile popup → User info: updates profile
app/PopupProfile.js - Profile popup → Form validator: validates input
app/PopupProfile.js - Card form popup → Popup base: extends
app/PopupCard.js - Profile popup → Popup base: extends
app/PopupProfile.js - Image popup → Popup base: extends
app/PopupImage.js - API client → Praktikum API: HTTP requests
app/API.js