* feat: add bookmark widget * fix: item component type issue, widget-ordered-object-list-input item component issue * feat: add button in items list * wip * wip: bookmark options dnd * wip: improve widget sortable item list * feat: add sortable item list input to widget edit modal * feat: implement bookmark widget * chore: address pull request feedback * fix: format issues * fix: lockfile not up to date * fix: import configuration missing and apps not imported * fix: bookmark items not sorted * feat: add flex layouts to bookmark widget * fix: deepsource issue * fix: add missing layout bookmarks old-import options mapping --------- Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
21 lines
496 B
TypeScript
21 lines
496 B
TypeScript
import type { CommonOldmarrWidgetDefinition } from "./common";
|
|
|
|
export type OldmarrBookmarkDefinition = CommonOldmarrWidgetDefinition<
|
|
"bookmark",
|
|
{
|
|
name: string;
|
|
items: {
|
|
id: string;
|
|
name: string;
|
|
href: string;
|
|
iconUrl: string;
|
|
openNewTab: boolean;
|
|
hideHostname: boolean;
|
|
hideIcon: boolean;
|
|
}[];
|
|
layout: "autoGrid" | "horizontal" | "vertical";
|
|
}
|
|
>;
|
|
|
|
export type BookmarkApp = OldmarrBookmarkDefinition["options"]["items"][number];
|