mirror of https://github.com/logseq/logseq
caf1d9d1e3
* wip: right sidebar
* fix: graph height
* re-enable scrolling on list
* style: indentation
* fix: always expand block when added to sidebar
* fix: show close button on mobile
* wip: right sidebar
* support default and custom icons
* fix whiteboard icon
* fix: header overflow
* remove unneeded dependency
* fix graph icon
* add middle click action and context menu
* add more context menu actions
* add reordering support
* fix dropdown visibility
* dnd fixes and initial state
* varous fixes
* fix event propagation
* enhance accesibility
* area expanded fix
* add translations
* refactoring
* enhance performance
* enhance text overflow
* fix page link
* drag enter fix
* add rounded corners and transition
* add keyboard shortcuts icon
* revert left sidebar change
* left sidebar bg and border
* various left sidebar enhancements
* alignment fixes
* split favorites and recents scrolling
* handle unavailable icon
* handle overflow edge case
* fix and refactor menu shortcuts
* handle zero items
* display nan shortcuts on mouse over
* min height fix
* min height fix
* simplify chevron icon
* minor fixes
* add flashcards shortcut
* revert initial sidebar state changes
* cloud icon fix
* fix border radius
* add missing go-home shortcut
* add clear recent button
* fix typo
* hide scrollbars
* remove transition
* fix: favorites
* fix: border and rounded corners
* fix: dnd delay
* Revert "add clear recent button"
This reverts commit
|
||
---|---|---|
.. | ||
apps/tldraw-logseq | ||
assets | ||
cljs-demo | ||
demo | ||
packages | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc | ||
.gitattributes | ||
.gitignore | ||
.npmignore | ||
.prettierrc | ||
LICENSE.md | ||
README.md | ||
package.json | ||
tsconfig.base.json | ||
tsconfig.json | ||
yarn.lock |
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
Modern 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