mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-02 11:35:57 +01:00
Set descriptive document titles
Document titles represent the pages, for example in lists with bookmarks. They are important for navigation and orientation in websites. If the offer or the content of the page is not labeled, orientation is impaired. This changes the behavior for setting document titles. The functionality has been removed from the Page and Title components and is now represented by `useDocumentTitle` hook to better describe the content of inividual pages. Co-authored-by: Anna Vetcininova<anna.vetcininova@cloudogu.com>
This commit is contained in:
@@ -257,6 +257,11 @@ export type RepositoryOverviewListOptionsExtensionPoint = ExtensionPointDefiniti
|
||||
() => { pageSize?: number; showArchived?: boolean }
|
||||
>;
|
||||
|
||||
export type DocumentTitleExtensionPoint = ExtensionPointDefinition<
|
||||
"document.title",
|
||||
{ documentTitle: string | ((originalTitle: string) => string) }
|
||||
>;
|
||||
|
||||
// From docs
|
||||
|
||||
export type AdminNavigation = RenderableExtensionPointDefinition<"admin.navigation", { links: Links; url: string }>;
|
||||
|
||||
Reference in New Issue
Block a user