The overview leads with what Logbuch is for, a new Anleitung page renders the editorial guide for humans, and the user list stops claiming accounts come from a shell command: they appear on first sign in.
44 lines
1.6 KiB
TypeScript
44 lines
1.6 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 adminSettingsPath = '/admin/settings' as Route
|
|
export const adminGuidePath = '/admin/guide' as Route
|
|
export const adminNewPostTypePath = '/admin/post-types/new' as Route
|
|
|
|
export function adminApiFilePath(file: 'openapi' | 'style-guide' | 'skill'): Route {
|
|
return `/admin/api/files/${file}` as Route
|
|
}
|
|
|
|
export function adminProjectEntriesPath(slug: string): Route {
|
|
return `${adminEntriesPath}?project=${encodeURIComponent(slug)}` 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
|
|
}
|