Commit Graph

280 Commits (11a864e1d4827cae94cac0960423b7ded7b35886)

Author SHA1 Message Date
Tienson Qin 73a202b3c2 fix: redirect to home when deleting a page 2022-07-04 20:42:41 +08:00
Tienson Qin 1b2ba25521 fix: rename namespace page results in lower-case page 2022-07-04 20:12:46 +08:00
Peng Xiao fb832d2493 fix: indexing whiteboard page files 2022-07-04 00:41:29 +08:00
Peng Xiao 4de59c6d63 wip whiteboard page 2022-07-04 00:00:08 +08:00
Peng Xiao 35d00eda74 code cleanup 2022-07-03 15:55:01 +08:00
Peng Xiao 26ad627661 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-07-03 12:46:36 +08:00
Junyi Du 50c9e69c21 test: update page number due to CANCELED / CANCELLED built-in pages added 2022-06-30 16:26:56 +08:00
Junyi Du cd661e0eb0 enhance: built-in canceled page 2022-06-30 16:26:56 +08:00
llcc bba9c935e0 feat: open plaintext assets files in logseq 2022-06-29 10:34:52 -04:00
Junyi Du 0cdacc35e2 feat: import from logseq edn
feat: import edn with provided uuid

feat: overwrite page uuid; use properties in content

feat: error handling for importing

feat: support json import

chore: fix lint by splitting setup ui
2022-06-24 17:11:24 +08:00
Peng Xiao 36513b7391 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-06-20 15:12:07 +08:00
Gabriel Horner 69ba15252e cli/parse-graph returns ast data as well
This data was not returned and is valuable for CI jobs
and possibly other functionality
2022-06-20 10:06:08 +08:00
Peng Xiao 6b5b1940d3 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-06-14 10:17:21 +08:00
Gabriel Horner d0755ef161 Update dependencies in deps
Also fix conditional workflows that didn't trigger if changes were made
to them
2022-06-10 15:39:11 +08:00
Gabriel Horner ee9f390761 Localize bb-tasks for deps
Deps need to be independent to not introduce testing bugs.
These bb tasks are good candidates to move into bb-tasks gitlib
2022-06-10 15:39:11 +08:00
Gabriel Horner 17d2462343 Move rules into db dep as it's useful for external apps
- rules is already used by logseq-query and will be useful for
  nbb-logseq
- Updated db jobs to run in deps/db by default. Less typing but
  more importantly discourages independent libraries from depending on
  external scripts.
- Moved lint-rules task into db since it is db specific now
- Also remove nbb-logseq from top-level as all nbb compatibility is in
  deps.
2022-06-10 15:39:11 +08:00
Gabriel Horner 6608537909 Move logseq.graph-parser.db* namespaces to their own dep
Also add its own CI file
2022-06-10 15:39:11 +08:00
Gabriel Horner 01b28e26ee Exceptions during block extraction shouldn't delete data
This will prevent future occurrences of #5548
2022-06-08 13:19:50 +08:00
Gabriel Horner 5188c86547 Add tests for bug fix in #5553
Test normal and buggy case. Put these tests in graph-parser as
it allows us to test more user facing assertions and is easier to setup
2022-06-08 13:19:50 +08:00
Peng Xiao 5c2e644a43 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-06-07 10:52:11 +08:00
Andelf 333017235b fix(graph-parser): avoid parsing illegal id 2022-06-05 15:12:01 +08:00
Tienson Qin 78d1b17743 fix: ignore parsing for :file-path 2022-06-05 12:39:12 +08:00
Gabriel Horner 29f73549aa Moved nbb tasks to another repo
They are useful outside of logseq development and don't need to be
embedded in the Logseq app
2022-06-01 01:17:29 -04:00
Gabriel Horner 83a4e62bfd Merge branch 'master' into enhance/graph-parser-part-four 2022-05-30 10:18:34 -04:00
Gabriel Horner 70c0708f09 Add nbb:watch task and example
Also update to latest clj-kondo
2022-05-27 20:42:17 -04:00
Gabriel Horner 7e5ba8d705 Upgrade to latest clj-kondo dep and pods
- Remove cljs 1.11 workarounds since latest includes those symbols
- Unique duplicate ns which intermittently show up in script-vars
  despite using :lang :cljs
- Able to use :format :progress since failing bug no longer shows up
- Remove unnecessary ignore and unused garden config
2022-05-27 10:07:22 -04:00
Gabriel Horner b142327491 Finish up logseq.graph-parser
- Parser now parses all graph files like the app does, not just pages and journals.
  This required extracting another fn from repo-handler
- Add and tweak CI steps that are specific to graph-parser. All
  namespaces in this library are checked for nbb compatibility
- Cleaned up parser cli API so only one fn is needed for scripts
- Tests were updated to match new parsing behavior
- large_vars.clj can run with a smaller max-line-count after only refactoring two fns
- Add docs
2022-05-27 00:54:30 -04:00
Gabriel Horner 1e299052ce Setup cljs tests for graph-parser
- Also reuse docs graph test assertions to ensure main app
and graph-parser are in sync.
- Removed promesa from extract tests
since they are no longer async
- Added cljs and npm deps that were missing and caught by cljs tests
2022-05-26 18:04:45 -04:00
Gabriel Horner 15b8e5e9df Setup CI jobs that are only for graph-parser
Also move all non graph-parser fns to frontend thanks to carve lint
2022-05-26 18:04:45 -04:00
Gabriel Horner 4813d903d5 Move graph-parser to its own dir 2022-05-26 18:04:45 -04:00