Commit Graph

280 Commits (11a864e1d4827cae94cac0960423b7ded7b35886)

Author SHA1 Message Date
Andelf 880ea8b00e test(fs): simple test for protocol-url 2023-04-27 14:30:46 -04:00
Andelf 0c91829365 fix(editor): handle protocol urls
Related: #9243
2023-04-27 14:30:46 -04:00
Andelf a301f25474 Revert "Feat: ordered(number) list blocks (#9141)"
This reverts commit 68492a5c67.
2023-04-25 12:37:30 +08:00
Charlie 68492a5c67
Feat: ordered(number) list blocks (#9141)
* fix(ui): marker of number list
* feat(ui): sub alpha marker for order block (own-property)
* fix(ui): make order list style more compatiable
* fix(ui): reactive block state for all the order list related items
* improve(ux): backspace for the empty order list block
* improve(ui): slash commands for the own number list block
* fix(ui): incorrect order list number for the root block
* fix(ui): order list not work for the custom query blocks
* fix(ui): contextmenu for the number list marker
* improve(ui): remove the property of `logseq.children-as` for the order list feature
* fix(ui): incorrect order list number for the journal pages list
---------

Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com>
2023-04-25 12:24:09 +08:00
Gabriel Horner 8697d59b72 Add test to prevent regression on #9119 2023-04-24 11:08:35 +08:00
Tienson Qin b359718f4a
fix: insert properties will truncate other properties if there's any empty property (#9117)
fix: insert properties not working when there's any empty property
2023-04-18 14:01:13 +08:00
Tienson Qin e0f519b7ab fix: query searching for two or more properties is extremely slow
close #8947
2023-04-18 11:00:17 +08:00
Junyi Du 5aba871ead deps: diff-merge
dev: graph parser IoC hook

test: use test db for diff-merge tests

fix: ci lint

dev: refactoring post block-parsing process

feat: diff-merge 2 way merge integration

fix: key namespace of uuid in fix-duplicated-id

fix: duplicated uuid ci
2023-04-17 09:41:39 -04:00
Gabriel Horner a7fe7fa19d Break up var that is too large 2023-04-14 09:35:55 -04:00
Gabriel Horner a53ebf1750 Fix parse-graph namespace bugs
parse-graph didn't have all the extract-options that the app does.
Adding them fixed the bugs.
Also fix publishing bug where old :all-pages-public? option wasn't
respected
2023-04-14 09:35:55 -04:00
Gabriel Horner eac3c273ca Updates docs version for parse-graph integration tests 2023-04-14 09:35:55 -04:00
Konstantinos 95149e13f6
Feat: Export to image (#9037)
* feat: export to image

* chore: export selection on whiteboards

* fix: whiteboards zoom on export

* fix: loading position

* chore: support video thumb

* core: add export to  whiteboards context menu

* fix: context menu entry

* fix; copy image to clipboard

* fix: copy / export label

* fix: hide ui elements

* fix: remove random character

* fix: graph export

* chore: remove console log and jpg format

* style: run prettier

* fix: disable on multiple selected blocks

* fix: multiple blocks

* enhance: restrict bounds of selected shapes

* chore: export selection on whiteboards

* fix: whiteboards zoom on export

* chore: support video thumb

* core: add export to  whiteboards context menu

* fix: context menu entry

* fix; copy image to clipboard

* fix: copy / export label

* fix: hide ui elements

* fix: remove random character

* fix: graph export

* chore: remove console log and jpg format

* style: run prettier

* fix: disable on multiple selected blocks

* fix: multiple blocks

* enhance: restrict bounds of selected shapes

* Fix any html2canvas related functionality failing in publishing

* fix: portal header gradient on export

* chore: add comment about html2canvas-ignore attr

* fix: use export padding constant

* fix: export collapsed portals with size >  medium

* fix: reset export type

* enhance: export filename

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2023-04-12 17:39:22 +08:00
Gabriel Horner 5cce967192 Add nbb-test-runner to graph-parser
Replaces manual, hardcoded runner
2023-04-12 11:02:43 +08:00
Gabriel Horner 7dc9c41899 Fix nbb.edn paths with latest nbb-logseq
Also upgrade nbb-logseq in other deps
2023-04-12 11:02:43 +08:00
Gabriel Horner ba840399ff Export should error with exit 1 when an error occurs
Also provide skip env var for when not wanting latest publishing
2023-04-09 23:13:33 +08:00
Gabriel Horner 12c0ae38e5 Fix tests and lints
- Fix publishing tests missing dev dep and workaround nbb.edn bug
- Fix regex which fails in cljs tests
- Fix typo
- Fix missing dep in job
2023-04-09 23:13:33 +08:00
Gabriel Horner fef07fe812 Add docs and workflow for dep
Also rename dep to publishing for consistency with existing names
2023-04-09 23:13:33 +08:00
Gabriel Horner 5186070248 Finish migration of publishing to deps
* Frontend and cmdline version use the same fns!
* Add docstrings and db tests
* Fix bug with intermittently failing asset copies
* Move publish cli to scripts since publish-spa shouldn't have graph-parser dependency
* Fix parse-graph bug noticed while testing publishing
2023-04-09 23:13:33 +08:00
Gabriel Horner 9ac17d485a Wire up frontend to use nbb export and html
- Add tests for export
- Refactor export to be more readable
- Add error notification for export that user can see
- Remove unused :ui/show-recent? state
- Cleanup and move escape fns to proper locations
2023-04-09 23:13:33 +08:00
Gabriel Horner 66fdb73bce Reorg namespaces and add package.json
Also add db support
2023-04-09 23:13:33 +08:00
Gabriel Horner 76c4e49f34 Working POC! 2023-04-09 23:13:33 +08:00
Gabriel Horner 06fa65861f Minor clean up and help with feedback
- basic clj-kondo config and cleanup unused binding
- Add some unit tests
- Add a basic readme
2023-03-28 09:14:42 +08:00
Andelf d26622872e chore: address comments 2023-03-28 09:14:42 +08:00
Andelf d5d3857466 refactor(migration): add file/path migration 2023-03-28 09:14:42 +08:00
Andelf 62b4f0a253 refactor(fs): simplify path/absolute? 2023-03-28 09:14:42 +08:00
Tienson Qin c1e8d6ed8e refactor: path/absolute? 2023-03-28 09:14:42 +08:00
Gabriel Horner 07c27b0f59 Fix lint and other minor fixes
- Rename is-file-url to reflect boolean return val
- Remove unused 3rd arg for set-config!
2023-03-28 09:14:42 +08:00
Gabriel Horner 94f35bda18 Add a workflow for test+lint and misc fixes
- Setup cljs tests
- No need for :no-doc
- No need to bind an unused _repo value
- Remove unused datascript dep
2023-03-28 09:14:42 +08:00
Andelf da975da3da fix(test): unit tests fail 2023-03-28 09:14:42 +08:00
Andelf 2ad52eab3e fix(fs): file editing on windows 2023-03-28 09:14:42 +08:00
Andelf 94b27014dd fix(fs): asset path on windows 2023-03-28 09:14:42 +08:00
Andelf 72a290d21c fix(electron): initial warning of local dir 2023-03-28 09:14:42 +08:00
Andelf c79c352e08 fix(fs/mobile): ios fs and loading fix 2023-03-28 09:14:42 +08:00
Andelf f1404fd537 fix(fs): avoid nil repo on ios 2023-03-28 09:14:42 +08:00
Andelf 3c0973013b refactor(fs): mv fs2 logic to logseq.common pkg 2023-03-28 09:14:42 +08:00
Andelf e95d73059b refactor(fs): refactor bfs to memory-fs, add memory:// support 2023-03-28 09:14:42 +08:00
Andelf 6082663f4c fix(electron): assets:// url handling 2023-03-28 09:14:42 +08:00
Andelf ad564a4d72 fix(fs): asset url handling 2023-03-28 09:14:42 +08:00
Andelf 31d7c8f836 refactor(fs): use rpath 2023-03-28 09:14:42 +08:00
Tienson Qin db6fc6b7ee
feat: simple query builder (#8774)
Simple query builder

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
Co-authored-by: charlie <xyhp915@qq.com>
2023-03-21 14:27:00 +08:00
Gabriel Horner 1c3ef2ccb5 Fix url? detection for raw paste case - fix #7297 2023-03-20 09:54:41 -04:00
rcmerci c3f7417682
enhance: add mldoc ast schema (#8829)
* enhance: add mldoc ast schema

* Add bb task to validate mldoc

Also move mldoc schema to make room for other schemas

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2023-03-20 13:41:13 +08:00
Gabriel Horner 6108aa1036 Add tests for timestamp blocks
Also make block attributes more explicit in pre-block and reduce needless coupling
2023-02-27 13:20:10 -05:00
Gabriel Horner 6506c369e8 Add support for block refs in page/block props 2023-02-27 13:20:10 -05:00
Gabriel Horner d7d65a6c66 Remove :collapsed from properties-text-values like we do for :id
https://github.com/logseq/logseq/pull/8657/files#r1112206914
2023-02-21 12:35:23 -05:00
Zhizhen He 25c15053d6 feat: add typos to GitHub action
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-02-21 12:01:58 -05:00
Tienson Qin 40ad524443
fix: duplicated block ids in multiple files (#8668)
fix: duplicate block ids in multiple files
Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2023-02-21 15:50:09 +08:00
Tienson Qin 3372b3bfbd
fix: duplicate block ids in same file (#8657)
fix: duplicate block ids in the same file
2023-02-21 14:40:43 +08:00
Tienson Qin 3fde6f59ec fix(lint): add mldoc-link? to ignore 2023-02-13 15:27:20 +08:00
Tienson Qin c8db7646e2 fix: use mldoc to check links 2023-02-13 15:19:11 +08:00