feat(collection/presentation): add new view type

This commit is contained in:
Elian Doran 2025-10-15 18:39:57 +03:00
parent 1e377df6da
commit d9906a4a47
No known key found for this signature in database
4 changed files with 7 additions and 2 deletions

View File

@ -767,6 +767,7 @@
"table": "Table",
"geo-map": "Geo Map",
"board": "Board",
"presentation": "Presentation",
"include_archived_notes": "Show archived notes"
},
"edited_notes": {

View File

@ -1,6 +1,6 @@
import FNote from "../../entities/fnote";
export const allViewTypes = ["list", "grid", "calendar", "table", "geoMap", "board"] as const;
export const allViewTypes = ["list", "grid", "calendar", "table", "geoMap", "board", "presentation"] as const;
export type ViewTypeOptions = typeof allViewTypes[number];
export interface ViewModeProps<T extends object> {

View File

@ -19,7 +19,8 @@ const VIEW_TYPE_MAPPINGS: Record<ViewTypeOptions, string> = {
calendar: t("book_properties.calendar"),
table: t("book_properties.table"),
geoMap: t("book_properties.geo-map"),
board: t("book_properties.board")
board: t("book_properties.board"),
presentation: t("book_properties.presentation")
};
export default function CollectionPropertiesTab({ note }: TabContext) {

View File

@ -159,6 +159,9 @@ export const bookPropertiesConfig: Record<ViewTypeOptions, BookConfig> = {
},
board: {
properties: []
},
presentation: {
properties: []
}
};