How zyronon/douyin works
Douyin-Vue is a mobile Vue imitation of TikTok, centered on browsing short videos and navigating into social, profile, messaging, music, and shopping experiences. The app mounts a routed, cached interface; its Pinia store initializes profile and friend data through user APIs. README documents locally stored data and mocked API responses, though the mock implementation is outside the supplied tree. Several routes and the home/video implementation were not excerpted, so the graph preserves those documented or tree-supported product areas without guessing their internal call paths.
Main entry points: routes.ts Route table · request.ts API requests · main.ts App bootstrap · pinia.ts Pinia state
Components 25
App shell
- App bootstrap
src/main.ts - App shell
src/App.vue - Route table
src/router/routes.ts - Router
src/router/index.ts - Pinia state
src/store/pinia.ts - API requests
src/utils/request.ts - Local data
node/user/data.js
Video experience
- Video API
src/api/videos.ts - Home feed
src/pages/home/index.vue - Video player
src/components/slide/BaseVideo.vue - Video controls
src/components/slide/ItemToolbar.vue - Video details
src/components/slide/ItemDesc.vue - Search
src/pages/home/SearchPage.vue - Live streams
src/pages/home/LivePage.vue - Music discovery
src/pages/home/MusicRankList.vue
Social features
- Messages
src/pages/message/Message.vue - Message list
src/pages/message/AllMessage.vue - Chat
src/pages/message/chat/Chat.vue - People discovery
src/pages/people/FindAcquaintance.vue
Account and commerce
- User API
src/api/user.ts - Sign in
src/pages/login/Login.vue - Profile
src/pages/me/Me.vue - Shop
src/pages/shop/Shop.vue - Product details
src/pages/shop/GoodsDetail.vue
Other components
- Mobile user
Connections 32
- Mobile user → App bootstrap: opens app
README.md - App bootstrap → App shell: mounts
src/main.ts - App bootstrap → Router: installs
src/main.ts - App bootstrap → Pinia state: installs
src/main.ts - App shell → Route table: reads routes
src/App.vue - App shell → Pinia state: initializes
src/App.vue - Router → Route table: uses
src/router/index.ts - Route table → Home feed: routes to
src/router/routes.ts - Route table → Sign in: routes to
src/router/routes.ts - Route table → Profile: routes to
src/router/routes.ts - Route table → Shop: routes to
src/router/routes.ts - Route table → Product details: routes to
src/router/routes.ts - Route table → Messages: routes to
src/router/routes.ts - Route table → Message list: routes to
src/router/routes.ts - Route table → Chat: routes to
src/router/routes.ts - Route table → People discovery: routes to
src/router/routes.ts - Route table → Live streams: routes to
src/router/routes.ts - Route table → Music discovery: routes to
src/router/routes.ts - Home feed → Video player: presents feed
- Video player → Video controls: renders
src/components/slide/BaseVideo.vue - Video player → Video details: renders
src/components/slide/BaseVideo.vue - Search → API requests: searches
- Music discovery → API requests: loads music
- Live streams → API requests: loads streams
- Pinia state → User API: loads profile
src/store/pinia.ts - User API → API requests: uses
src/api/user.ts - Video API → API requests: uses
src/api/videos.ts - Profile → User API: requests data
src/pages/me/Me.vue - Profile → Video API: requests videos
src/pages/me/Me.vue - Product details → User API: requests data
src/pages/shop/GoodsDetail.vue - Message list → Pinia state: reads friends
src/pages/message/AllMessage.vue - Mobile user → Local data: uses sample content
README.md