2024-03-16 22:29:24 +08:00
|
|
|
// Used by FilterBox
|
|
|
|
export type FilterOption = {
|
|
|
|
name: string;
|
|
|
|
description?: string;
|
|
|
|
orderId?: number;
|
|
|
|
hint?: string;
|
2024-07-31 17:28:31 +08:00
|
|
|
classes?: string;
|
2024-03-16 22:29:24 +08:00
|
|
|
} & Record<string, any>;
|
|
|
|
|
|
|
|
export type Notification = {
|
|
|
|
id: number;
|
|
|
|
message: string;
|
|
|
|
type: "info" | "error";
|
|
|
|
date: Date;
|
|
|
|
};
|
|
|
|
|
|
|
|
export type PanelMode = number;
|
|
|
|
|
|
|
|
export type Shortcut = {
|
2024-07-15 01:57:06 +08:00
|
|
|
// Command we're creating the shortcut for
|
|
|
|
command: string;
|
|
|
|
// (Re)bind to keyboard shortcut
|
2024-03-16 22:29:24 +08:00
|
|
|
key?: string;
|
|
|
|
mac?: string;
|
2024-07-15 01:57:06 +08:00
|
|
|
// Bind to slash command
|
|
|
|
slashCommand?: string;
|
|
|
|
// Tweak priority in command palette
|
2024-03-16 22:29:24 +08:00
|
|
|
priority?: number;
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ActionButton = {
|
|
|
|
icon: string;
|
|
|
|
description?: string;
|
|
|
|
command: string;
|
|
|
|
args?: any[];
|
|
|
|
mobile?: boolean;
|
|
|
|
};
|
|
|
|
|
|
|
|
export type EmojiConfig = {
|
|
|
|
aliases: string[][];
|
|
|
|
};
|
2024-10-18 04:34:47 +08:00
|
|
|
|
|
|
|
export type SmartQuotesConfig = {
|
|
|
|
enabled?: boolean;
|
|
|
|
double?: { left?: string; right?: string };
|
|
|
|
single?: { left?: string; right?: string };
|
|
|
|
};
|