refactor: align codebase with EventCrew domain and trim legacy band stack
- Update API: events, users, policies, routes, resources, migrations - Remove deprecated models/resources (customers, setlists, invitations, etc.) - Refresh admin app and docs; remove apps/band Made-with: Cursor
This commit is contained in:
1
apps/app/src/utils/constants.ts
Normal file
1
apps/app/src/utils/constants.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const COOKIE_MAX_AGE_1_YEAR = 365 * 24 * 60 * 60
|
||||
6
apps/app/src/utils/paginationMeta.ts
Normal file
6
apps/app/src/utils/paginationMeta.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export const paginationMeta = <T extends { page: number; itemsPerPage: number }>(options: T, total: number) => {
|
||||
const start = (options.page - 1) * options.itemsPerPage + 1
|
||||
const end = Math.min(options.page * options.itemsPerPage, total)
|
||||
|
||||
return `Showing ${total === 0 ? 0 : start} to ${end} of ${total} entries`
|
||||
}
|
||||
Reference in New Issue
Block a user