logseq/tldraw
charlie da3f6b094d Squashed commit of the following:
commit 99a2d333f9
Author: rcmerci <rcmerci@gmail.com>
Date:   Sat Nov 5 00:04:17 2022 +0800

    dev: restart sync when code changed

commit 4682274e10
Author: kv-gits <26402310+kv-gits@users.noreply.github.com>
Date:   Fri Nov 4 18:08:43 2022 +0300

    Update develop-logseq-on-windows.md

    JRE x64

commit fcb5d206b2
Author: rcmerci <rcmerci@gmail.com>
Date:   Fri Nov 4 17:36:34 2022 +0800

    fix: calculate s3-key length

commit e780272d12
Author: rcmerci <rcmerci@gmail.com>
Date:   Fri Nov 4 17:32:19 2022 +0800

    enhance(sync): filter pages whose page-name is too long

commit d45e5507b5
Author: Peng Xiao <pengxiao@freewheel.tv>
Date:   Thu Nov 3 13:10:58 2022 +0800

    fix: e2e issue

commit c03b8503b0
Author: Peng Xiao <pengxiao@freewheel.tv>
Date:   Thu Nov 3 11:35:44 2022 +0800

    test(whiteboard): new e2e cases

commit fbbcb1f862
Author: Peng Xiao <pengxiao@freewheel.tv>
Date:   Thu Nov 3 10:53:45 2022 +0800

    fix: onboarding condition

commit 26f08061ac
Author: Peng Xiao <pengxiao@freewheel.tv>
Date:   Thu Nov 3 10:43:59 2022 +0800

    fix(whiteboard): add loading when populating onboarding whiteboard

commit e8d1c1baa7
Author: Peng Xiao <pengxiao@freewheel.tv>
Date:   Wed Nov 2 20:45:33 2022 +0800

    feat(whiteboard): onboarding whiteboard

commit 2f5680bd49
Author: Peng Xiao <pengxiao@freewheel.tv>
Date:   Tue Nov 1 10:51:42 2022 +0800

    wip

commit 48cfa27552
Author: Peng Xiao <pengxiao@freewheel.tv>
Date:   Mon Oct 31 20:46:44 2022 +0800

    wip onboarding template

commit 3f17fd2ceb
Author: yoyurec <yoyurec@gmail.com>
Date:   Thu Nov 3 13:38:25 2022 +0200

    fix: add missed mark css vars

commit 8dfab3bd13
Author: Konstantinos Kaloutas <konstantinos@logseq.com>
Date:   Thu Nov 3 21:26:46 2022 +0200

    fix: allow custom protocols

commit dda618ca8f
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Fri Nov 4 22:32:13 2022 +0800

    fix: lint warning

commit 6c5c3bb96f
Author: Tienson Qin <tiensonqin@gmail.com>
Date:   Fri Nov 4 20:26:19 2022 +0800

    fix: some files may not have ext
2022-11-05 10:49:12 +08:00
..
apps/tldraw-logseq Squashed commit of the following: 2022-11-05 10:49:12 +08:00
assets move tldraw/next inside of logseq 2022-05-16 19:55:07 +08:00
cljs-demo fix: demo elements 2022-11-01 13:43:13 +02:00
demo fix: demo elements 2022-11-01 13:43:13 +02:00
packages Squashed commit of the following: 2022-11-05 10:49:12 +08:00
.editorconfig Add editor config 2022-08-26 12:59:27 +03:00
.eslintignore move tldraw/next inside of logseq 2022-05-16 19:55:07 +08:00
.eslintrc fix: scroll offset issue 2022-05-30 15:22:35 +08:00
.gitattributes move tldraw/next inside of logseq 2022-05-16 19:55:07 +08:00
.gitignore move tldraw/next inside of logseq 2022-05-16 19:55:07 +08:00
.npmignore move tldraw/next inside of logseq 2022-05-16 19:55:07 +08:00
.prettierrc run prettier 2022-07-03 21:38:09 +08:00
LICENSE.md move tldraw/next inside of logseq 2022-05-16 19:55:07 +08:00
README.md docs: a short description for tldraw 2022-09-28 11:01:11 +08:00
package.json chore(tldraw): using https for local dev 2022-10-07 18:39:11 +08:00
tsconfig.base.json fix: merge issue 2022-08-26 21:56:02 +08:00
tsconfig.json move tldraw/next inside of logseq 2022-05-16 19:55:07 +08:00
yarn.lock chore: install radix dependencies 2022-10-26 15:20:34 +03:00

README.md

Developer Notes

Background

This folder contains the JS codes for a custom build of Tldraw to fit the needs of Logseq, which originates from an abandoned next branch from the author of Tldraw.

Development

Prerequisites

Morden JS eco tools like Node.js and yarn.

Run in dev mode

  • install dependencies with yarn
  • run dev mode with yarn dev, which will start a Vite server at http://127.0.0.1:3031/

Note, the dev mode is a standalone web app running a demo Tldraw app in tldraw/demo/src/App.jsx. The Logseq component renderers and handlers are all mocked to make sure Tldraw only functions can be isolatedly developed.

Other useful commands

  • fixing styles: yarn fix:style
  • build: yarn build

How it works

Data flow between Tldraw & Logseq

The data flow between Tldraw & Logseq can be found here: https://whimsical.com/9sdt5j7MabK6DVrxgTZw25