How ahmetarapoglu/publishinglibrary_frontend works
This is a Next.js administration interface for library inventory and operations. Users manage authors and books through forms and tables, and manage branches, categories, users, orders, and invoices through additional app routes. In the demonstrated table workflow, a route configures a reusable table, which loads and submits data through the authenticated API client; order invoicing also submits from its route. The README is only the Next.js starter README, so product capabilities are inferred from the route tree and source index. Several route implementations were not sampled, so their internal connections are not asserted.
Main entry points: table.tsx Data table · fetchData.tsx API client · page.tsx Order routes · formFields.tsx Form definitions
Components 25
Catalog management
- Author routes
src/app/app/author/page.tsx - Author form
components/views/author/page.tsx - Book routes
src/app/app/book/page.tsx - Book form
components/views/book/page.tsx - Book versions
src/app/app/book/book-version/page.tsx
Operations management
- Branch routes
src/app/app/branch/page.tsx - Category routes
src/app/app/category/page.tsx - Order routes
src/app/app/order/page.tsx - Invoice routes
src/app/app/invoice/page.tsx - User routes
src/app/app/user/page.tsx - Dashboard
src/app/app/dashboard/page.tsx
Shared interface
- Data table
components/Antd/Table/table.tsx - Table actions
components/Antd/Table/action.tsx - Add control
components/Antd/Table/addButton.tsx - Form widgets
components/Antd - Form definitions
constants/formFields.tsx - Widget registry
constants/components.tsx - App navigation
components/Layout/Sider/menu.tsx
State and services
- Login page
components/views/login/page.tsx - Auth handler
src/app/api/auth/[...nextauth]/route.ts - Table state
store/slice/tableStateSlice.tsx - API client
service/fetchData.tsx - API endpoints
service/endPoints.tsx
Other components
- Admin user
- Backend API
Connections 27
- Admin user → Author routes: opens
- Admin user → Book routes: opens
- Admin user → Order routes: opens
- Author routes → Data table: configures
src/app/app/author/page.tsx - Book routes → Data table: configures
src/app/app/book/page.tsx - Branch routes → Data table: configures
src/app/app/branch/page.tsx - Category routes → Data table: configures
src/app/app/category/page.tsx - Order routes → Data table: configures
src/app/app/order/page.tsx - Invoice routes → Data table: configures
src/app/app/invoice/page.tsx - User routes → Data table: configures
src/app/app/user/page.tsx - Author form → API client: loads and submits
components/views/author/page.tsx - Book form → API client: loads and submits
components/views/book/page.tsx - Order routes → API client: creates invoice
src/app/app/order/page.tsx - Data table → API client: loads and submits
components/Antd/Table/table.tsx - Data table → Table state: reads and updates
components/Antd/Table/table.tsx - Table actions → Table state: updates
components/Antd/Table/action.tsx - Add control → Table state: updates
components/Antd/Table/addButton.tsx - Data table → Form widgets: renders
components/Antd/Table/table.tsx - Author form → Form definitions: renders fields from
components/views/author/page.tsx - Book form → Form definitions: renders fields from
components/views/book/page.tsx - Order routes → Form definitions: renders fields from
src/app/app/order/page.tsx - Form definitions → API endpoints: uses endpoint names
constants/formFields.tsx - Widget registry → Form widgets: maps widgets
constants/components.tsx - API client → Backend API: requests
service/fetchData.tsx - Login page → Auth handler: authenticates through
- Auth handler → API endpoints: references
src/app/api/auth/[...nextauth]/route.ts - App navigation → Table state: updates
components/Layout/Sider/menu.tsx