Giter VIP home page Giter VIP logo

Comments (3)

Edqe14 avatar Edqe14 commented on August 12, 2024

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.

Edqe14 avatar Edqe14 commented on August 12, 2024

Routine

interface RoutineSchedule {
  days: number[];       // 0-6, 0 is Sunday
  times: string[];      // HH:MM
}

interface Routine {
  name: string;
  schedule: RoutineSchedule;
  important: boolean;
}

from tasklists.

Edqe14 avatar Edqe14 commented on August 12, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.