Public archive with sidebar navigation, project pages, month archive, search and entry pages with image blocks. Admin area for brands, projects, post types, users, api clients, media and the entry editor with drag and drop images, preview per audience, scheduling and publish checks. Read and write API with bearer tokens, audience scoping, idempotent creation, OpenAPI document and editorial guide. Magic link login with configurable allowed domains, whole app behind the session gate. 456 tests including design rule checks.
34 lines
1.3 KiB
TypeScript
34 lines
1.3 KiB
TypeScript
import type { Route } from 'next'
|
|
|
|
export const adminEntriesPath = '/admin/entries' as Route
|
|
export const adminNewEntryPath = '/admin/entries/new' as Route
|
|
export const lastProjectCookie = 'logbuch-last-project'
|
|
export const adminProjectsPath = '/admin/projects' as Route
|
|
export const adminNewProjectPath = '/admin/projects/new' as Route
|
|
export const adminBrandsPath = '/admin/brands' as Route
|
|
export const adminNewBrandPath = '/admin/brands/new' as Route
|
|
export const adminUsersPath = '/admin/users' as Route
|
|
export const adminClientsPath = '/admin/clients' as Route
|
|
export const adminPostTypesPath = '/admin/post-types' as Route
|
|
export const adminNewPostTypePath = '/admin/post-types/new' as Route
|
|
|
|
export function adminPostTypePath(id: string): Route {
|
|
return `/admin/post-types/${encodeURIComponent(id)}` as Route
|
|
}
|
|
|
|
export function adminEntryPath(id: string): Route {
|
|
return `/admin/entries/${encodeURIComponent(id)}` as Route
|
|
}
|
|
|
|
export function adminProjectPath(id: string): Route {
|
|
return `/admin/projects/${encodeURIComponent(id)}` as Route
|
|
}
|
|
|
|
export function adminBrandPath(id: string): Route {
|
|
return `/admin/brands/${encodeURIComponent(id)}` as Route
|
|
}
|
|
|
|
export function adminUserPath(id: string): Route {
|
|
return `/admin/users/${encodeURIComponent(id)}` as Route
|
|
}
|