Comments (3)
Tasks ✅
interface Collection {
id: string;
name: string;
}
interface Task {
id: string; // Snowflake
name: string; // Simple & short task name (e.g. "Clean the house")
description: object; // Longer description of the task, tiptap's JSON output
collections: Collection['id'][]; // Task collections (prefixed by @)
order: number; // Order of the task in the collection
starred: boolean; // Whether the task is starred
deadline?: Date; // Deadline of the task, optional
}
type AllTasks = Record<string, Task[]>;
from tasklists.
Routine
interface RoutineSchedule {
days: number[]; // 0-6, 0 is Sunday
times: string[]; // HH:MM
}
interface Routine {
name: string;
schedule: RoutineSchedule;
important: boolean;
}
from tasklists.
Configuration
interface Configuration {
colorScheme: number; // Index of the color scheme to use
task: {
deadline: {
enabled: boolean; // Whether to check for deadlines
threshold: number[]; // In miliseconds, threshold to test for near deadlines
};
};
routine: {
hour12: boolean;
defaultImportant: boolean;
};
focusMode: {
pomodoroLength: number; // In minutes
shortBreakLength: number; // In minutes
longBreakLength: number; // In minutes
longBreakAfter: number; // In pomodoros
automaticallyMarkAsDone: boolean;
};
notifications: {
enabled: boolean;
deadline: boolean;
routine: boolean;
focusMode: boolean;
sound: {
enabled: boolean;
deadline: boolean;
routine: boolean;
focusMode: boolean;
};
};
}
from tasklists.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tasklists.