選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
呓喵酱 8c5c17454a
Update README.md
3年前
modules fix index.js bugs 4年前
utilities v1.0.3 fix pull bugs 4年前
.gitignore v1.0.2 4年前
LICENSE Initial commit 4年前
README.md Update README.md 3年前
old.js v1.0 4年前
package-lock.json v1.0.3 fix pull bugs 4年前
package.json v1.0.4 4年前
server.js v1.0.2 4年前
td fix index.js bugs 4年前
test.js fin mixed 4年前
yarn-error.log fix bugs 4年前
yarn.lock v1.0 4年前

README.md

todo-ddl

Manage your ToDo items with Logs and DDLs on nodejs.

Quick Start

Installation

$ npm i -g todo-ddl

Find Help

$ td -h

Architecture

overview

|todo-ddl
|
|---config
|   |---email
|   |---remote url
|
|---td
|   |---todo
|   |---task
|   |---history
|
|---ddl
|
|---log
|

td structure


td new        td add        td done
------>      -------->     --------->
        todo          task           history
<------     <--------      <---------
  td rm       td return      td recover

Commands

config set

  • td config [-e email] [-r remote]: Set

td set

  • td new <name> [class]: Create new todo item..

  • td add <id>: Add todo item to task..

  • td done <id>: Finish task..

  • td recover: Recover task from history..

  • td return <id>: Return task to todo item..

  • td rm <id>: Remove task..

  • td ls: List tasks..

  • td lt: List todo items..

  • td history: List history

log set

  • td select <id>: Select task for loging..
  • td log <comment>: Record logs..
  • td ll: List logs..
  • td rml <id>: Remove log..

ddl (deadline) set

  • td newd <name> <date>: Create new ddl..
  • td link <ddlID> <tdID>: Link todo with ddl..
  • td ld: List ddls..
  • td rmd <id>: Remove ddl..

systemctl

  • td init: Reset all..
  • td push: Push local to remote..
  • td pull: Pull from remote..
  • td sync: Sync with remote..

Data structure

config:{
  email: "",
  remote: "https://api.yimian.xyz/todo-ddl/"
}


data:{
  td:{[{
    id: 'a2s3s2ds',
    name: '',
    class: 'default',
    createTime: (new Date()).valueOf(),
    todoTime: (new Date()).valueOf(),
    endTime: (new Date()).valueOf(),
    lastOperateTime: (new Date()).valueOf(),
    idDel: false,
    logs: [{
      id: 'fdkr8ei9odleiw93',
      content: '',
      createTime: (new Date()).valueOf()
      lastOperateTime: (new Date()).valueOf(),
      isDel: false
    }]
  }]},
  
  ddl: {[{
    id: 'di8eio',
    name: '',
    class: 'default',
    link: [<tdID>],
    createTime: (new Date()).valueOf(),
    expireTime: (new Date()).valueOf(),
    lastOperateTime: (new Date()).valueOf(),
    isDel: false
  }]}
}