31 lines
584 B
TypeScript
31 lines
584 B
TypeScript
export interface Category {
|
|
id: string;
|
|
name: string;
|
|
color: string;
|
|
emoji?: string;
|
|
}
|
|
|
|
export interface Task {
|
|
id: string;
|
|
title: string;
|
|
categoryId: string;
|
|
startTime: number | null;
|
|
totalElapsed: number;
|
|
completed: boolean;
|
|
completedAt?: number;
|
|
}
|
|
|
|
export interface TaskWeaverSettings {
|
|
categories: Category[];
|
|
tasks: Task[];
|
|
enableDailyNoteLogging: boolean;
|
|
dailyNoteFormat: string;
|
|
}
|
|
|
|
export const DEFAULT_SETTINGS: TaskWeaverSettings = {
|
|
categories: [],
|
|
tasks: [],
|
|
enableDailyNoteLogging: false,
|
|
dailyNoteFormat: "- [x] {{title}} ({{duration}}) {{emoji}}"
|
|
};
|