TuanManhCao / digital-garden

Free Obisidian Publish alternative, for publishing your digital garden.
https://mindstone.tuancao.me
MIT License
696 stars 76 forks source link

Feature/optimizations #17

Closed godcl1623 closed 3 months ago

godcl1623 commented 1 year ago

Made some changes to optimize the app.

  1. Make interactive graph properly renewed on page navigation Used next/dynamic to dynamically import CytoscapeComponent component.

  2. Fixed object id changes on every navigation FolderTree has folded on every second page move, possible reason seems to be object id change, since _counter variable's value incremented on every page move. Changed object id by thisObject.name, it seems FolderTree works well.

  3. Add cache to increase build speed If number of posts increased over hundreds, build speed slowed down(e.g. about 9 minutes for 300+ files). By replacing convertObject(getDirectoryData()) in getStaticProps to cache, build speed increased(e.g. about 27 seconds for 300+ files).

netlify[bot] commented 1 year ago

Deploy Preview for digital-garden-demo ready!

Name Link
Latest commit 2025833ca5efd35d03a661f32fb9dbf4399047a9
Latest deploy log https://app.netlify.com/sites/digital-garden-demo/deploys/63ed0f39c9238b0007914ae8
Deploy Preview https://deploy-preview-17--digital-garden-demo.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.