Files
plainleaf/lib/web.ts
T
Deepak NarayanandGitHub 850c06fd70 Fixes #560 and provides an initial implementation for assigning (#940)
decorators to tags.

This patch enables decorations for user specified tags - starting
with handling only a single decoration - a 'prefix' to be added
to the page name. Prefix is handled in the top bar title,
page navigator, wiki-links appearing within a page as well as
page autocomplete suggestions.
2024-07-13 13:56:00 +02:00

42 lines
640 B
TypeScript

// Used by FilterBox
export type FilterOption = {
name: string;
description?: string;
orderId?: number;
hint?: string;
} & Record<string, any>;
export type Notification = {
id: number;
message: string;
type: "info" | "error";
date: Date;
};
export type PanelMode = number;
export type Shortcut = {
key?: string;
mac?: string;
priority?: number;
command: string;
};
export type ActionButton = {
icon: string;
description?: string;
command: string;
args?: any[];
mobile?: boolean;
};
export type EmojiConfig = {
aliases: string[][];
};
export type Decoration = {
tag: string;
prefix: string;
};