mirror of
https://github.com/zadam/trilium.git
synced 2025-10-19 14:49:01 +02:00
feat(collection/presentation): add new view type
This commit is contained in:
parent
1e377df6da
commit
d9906a4a47
@ -767,6 +767,7 @@
|
||||
"table": "Table",
|
||||
"geo-map": "Geo Map",
|
||||
"board": "Board",
|
||||
"presentation": "Presentation",
|
||||
"include_archived_notes": "Show archived notes"
|
||||
},
|
||||
"edited_notes": {
|
||||
|
@ -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> {
|
||||
|
@ -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) {
|
||||
|
@ -159,6 +159,9 @@ export const bookPropertiesConfig: Record<ViewTypeOptions, BookConfig> = {
|
||||
},
|
||||
board: {
|
||||
properties: []
|
||||
},
|
||||
presentation: {
|
||||
properties: []
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user