Tienson Qin
3820cb7ff6
feat: structured pages
2023-07-10 03:01:40 +08:00
Konstantinos Kaloutas
fb63c32a56
Revert "defer loading html2canvas"
...
This reverts commit 16e0c3713f
.
2023-07-10 00:54:54 +08:00
Konstantinos Kaloutas
b7710e570c
Revert "defer loading code-editor"
...
This reverts commit 4f067f4003
.
2023-07-10 00:54:54 +08:00
Konstantinos Kaloutas
20c54c82e3
defer loading code-editor
2023-07-10 00:54:54 +08:00
Konstantinos Kaloutas
1e30a2030f
defer loading html2canvas
2023-07-10 00:54:54 +08:00
Tienson Qin
a0d6107d99
feat: class && configuration
2023-07-09 21:35:06 +08:00
Gabriel Horner
671453aadb
Add nbb script to demonstrate datascript querying a sqlite db
...
Also give test vars more appropriate name
2023-07-08 16:20:42 -04:00
Gabriel Horner
47e1b06f76
Move over restore-other-data and add a test for it
2023-07-08 02:11:35 -04:00
Gabriel Horner
586749c918
Move over restore-initial-data and add the first sqlite to datascript test
2023-07-07 16:43:31 -04:00
Gabriel Horner
62c550e26d
Updated timestamp column types to match actual usage
2023-07-06 14:11:58 -04:00
Gabriel Horner
fa01aefa24
Add an explicit new-db! for new db graphs to simplify other fns
...
Previously open-db! and upsert-blocks! had graph creation
and connection responsibilities. These shouldn't be needed if
new and existing databases have clear entry points
2023-07-04 13:06:21 -04:00
Gabriel Horner
016f7848ce
Add some basic constraints to blocks
...
Without the uuid and type constraints we wouldn't be able to use the
data. Without unique names, it'd be easy for the app to create long running
bugs with duplicate pages
2023-07-03 16:21:23 -04:00
Gabriel Horner
ceb9a1d726
Load more latest journals to reduce the likelihood of an initially buggy journals view
...
Reduces the likelihood of
https://linear.app/logseq/issue/LOG-2650/journals-view-shows-outdated-and-uneditable-journal-pages
occurring but it can still happen for more than 3 journal pages
2023-07-03 14:53:42 -04:00
Gabriel Horner
d82e388ea3
Fix: file pages should save their name
2023-07-03 10:54:30 -04:00
Gabriel Horner
045c51cded
Use sqlite.db ns in electron.db
...
- Add more tests for sqlite.db
- Update readme and CI for db's tests
2023-06-30 17:36:01 -04:00
Gabriel Horner
2ab6370dda
Add tests for core sqlite db fns
...
These core db fns have been split out to be platform agnostic
so they can be run on CLI or non electron platforms
2023-06-30 11:45:39 -04:00
Gabriel Horner
b56cbf0fd2
Fix: one more exception to rule linter
2023-06-28 09:28:42 -04:00
Tienson Qin
c81e114a1c
fix: lint
2023-06-28 15:20:22 +08:00
Tienson Qin
d078e207ae
fix: export pages test
2023-06-28 14:25:25 +08:00
Gabriel Horner
7d46784c40
Fix: common lint
2023-06-27 16:44:41 -04:00
Gabriel Horner
75ff4db4aa
Fix: circular dependencies again b/n deps <-> frontend
...
Breaks setup of deps/ and most tests
2023-06-27 16:39:10 -04:00
Gabriel Horner
c11e94ed59
Fix default-page creation for start-conn
2023-06-27 14:39:31 -04:00
rcmerci
0c4e9bf4d4
split db-version query rules
2023-06-27 19:28:12 +08:00
rcmerci
f6080b3657
update property query rules
2023-06-27 15:21:37 +08:00
Tienson Qin
70406332dc
fix: namespace whiteboard pages import
2023-06-27 14:00:33 +08:00
Tienson Qin
23d918dcc2
Merge branch 'master' into feat/db
2023-06-26 20:10:41 +08:00
Andelf
a59ecb370d
chore(deps): bump diff-merge to 0.1.0
2023-06-26 19:20:04 +08:00
Andelf
1c6fe4be82
enhance(sync): add merge step to update local
2023-06-26 19:20:04 +08:00
Tienson Qin
9071320868
fix: create default pages for db-based graphs
2023-06-26 16:34:21 +08:00
Tienson Qin
b0a5a9d3fc
fix: each graph has its own directory
2023-06-26 14:13:48 +08:00
rcmerci
b4c547654b
update schema
2023-06-26 11:41:59 +08:00
Tienson Qin
0c533a9032
fix: use db-based schema when possible
2023-06-26 11:07:08 +08:00
Gabriel Horner
4e99e21642
Fix commandline publishing not working e.g. bb dev:publishing
...
Also fix db dep having a circular dependency. frontend.* namespaces depend on deps/ dependencies
so we can't have frontend namespaces in deps/
2023-06-23 16:52:54 -04:00
Tienson Qin
fd6b587235
Merge branch 'master' into feat/db
2023-06-21 14:09:16 +08:00
rcmerci
8a1c54173b
[wip] property edit
2023-06-20 18:08:40 +08:00
rcmerci
6ea438053f
add property schema
2023-06-19 13:49:54 +08:00
Junyi Du
bea081c5b0
test: more remove indent test
2023-06-16 00:42:30 +08:00
Junyi Du
e50e129fba
dev(docstring): remove indentation
2023-06-16 00:42:30 +08:00
Tienson Qin
6cbbd66333
Revert "Trim whitespaces for org mode files too"
...
This reverts commit 3fd7492e0ab90fc1d4890ea4b4005743cbbe0856.
2023-06-16 00:42:30 +08:00
Tienson Qin
bccf5888c7
add tests
2023-06-16 00:42:30 +08:00
Tienson Qin
54706785c3
Trim whitespaces for org mode files too
2023-06-16 00:42:30 +08:00
Tienson Qin
b1236b4e89
fix: trim whitespaces for block's content
...
Let's say we have a page like this:
- a
- b
b' content
After parsing, block `b` content should be `b\nb' content`
2023-06-16 00:42:30 +08:00
Tienson Qin
32173ff95e
fix: new page doesn't have block/uuid
2023-06-14 17:29:55 +08:00
Gabriel Horner
3f1d32dd6c
Update clj-kondo and bb-tasks for deps projects
2023-06-13 14:48:50 +08:00
Gabriel Horner
480429ad23
Fix alias not included in published subgraph
...
Fixes #4143
2023-06-07 13:47:29 +08:00
Tienson Qin
542d28c6a9
Merge branch 'master' into feat/db
2023-05-27 11:59:27 +08:00
Gabriel Horner
df2edd44ac
Rename temp :block keys to be explicit about their use
...
:block is a heavily used namespace. We should at least
be explicit about keys that aren't being transacted
2023-05-26 09:13:38 -04:00
Gabriel Horner
33285a354d
Fix table and view properties not hidden on display
...
fix #9489
2023-05-26 09:10:46 -04:00
rcmerci
0dcb5e1a14
faster restore-graph-from-sqlite
2023-05-26 01:50:42 +08:00
Gabriel Horner
5ce75225c7
custom.js should load last in publishing app
2023-05-23 15:57:34 +08:00
Candide U
bb203394b8
Add test for custom.js to export_test.cljs
...
Fixed missing thing
2023-05-23 15:57:34 +08:00
Candide U
2f091b4977
Add test for custom.js to export_test.cljs
2023-05-23 15:57:34 +08:00
Candide U
2feddfe800
Export custom.js
2023-05-23 15:57:34 +08:00
Candide U
4b1114d9e6
Add custom.js script to html
2023-05-23 15:57:34 +08:00
Gabriel Horner
12c55f401e
Fix parse-graph not ignoring correctly for relative dir
...
parse-graph now returns absolute file paths
2023-05-23 15:57:33 +08:00
Gabriel Horner
450fb9dae5
custom.js should load last in publishing app
2023-05-22 10:45:01 -04:00
Candide U
3b08b9a7e5
Add test for custom.js to export_test.cljs
...
Fixed missing thing
2023-05-22 10:45:01 -04:00
Candide U
fd8bb11c37
Add test for custom.js to export_test.cljs
2023-05-22 10:45:01 -04:00
Candide U
a2cf976161
Export custom.js
2023-05-22 10:45:01 -04:00
Candide U
c8312bc6df
Add custom.js script to html
2023-05-22 10:45:01 -04:00
Gabriel Horner
51a23934a4
Fix parse-graph not ignoring correctly for relative dir
...
parse-graph now returns absolute file paths
2023-05-19 21:49:58 -04:00
Gabriel Horner
47508ac2ac
Add :hidden config support to graph-parser.cli
...
Also fix lints and tests from previous commits
2023-05-18 23:25:15 +08:00
Gabriel Horner
c86fd3cd4d
Add standard lint tasks to common lib
2023-05-18 23:25:15 +08:00
Gabriel Horner
91beda09d5
Split out graph fns and reuse them b/n gp-cli and electron
...
Also added test
2023-05-18 23:25:15 +08:00
Andelf
51201124ff
fix(fs): add unicode normalize to path-fn
...
This is a catch-all type fix
2023-05-18 12:24:18 +08:00
Gabriel Horner
10da24e5b7
Fix current block with disappearing path refs - close #9365
...
outliner-core/save-block and save-block-inner! were retracting
block/path-refs aggressively, especially for cases when no path-refs
had changed
2023-05-16 11:35:18 +08:00
Gabriel Horner
fe24b61beb
Fix asset link creating invalid page for org mode
2023-05-15 11:55:59 +08:00
Gabriel Horner
7335a6f623
Fix org mode page refs - close #9367
2023-05-15 11:55:59 +08:00
Ben Yorke
928742e66b
shui/table introduction
2023-05-12 13:24:54 -04:00
Gabriel Horner
b2776bbb18
Remove supported-formats in all the places it's no longer used
2023-05-11 13:56:25 +08:00
Gabriel Horner
b26d83d2fc
Fix mailto and other links creating invalid pages
...
Fixes #9346 and fixes #5926 .
Also fixes case where relative paths for unsupported paths were creating
pages per directory e.g. `deps/graph-parser/yarn.lock` created deps and
graph-parser pages
2023-05-11 13:56:25 +08:00
charlie
9367590d9b
Merge branch 'master' into feat/custom-children-list-style
2023-04-28 10:30:53 +08:00
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
charlie
2f6377ed4c
Merge branch 'master' into feat/custom-children-list-style
2023-04-25 10:22:55 +08:00
Gabriel Horner
8697d59b72
Add test to prevent regression on #9119
2023-04-24 11:08:35 +08:00
charlie
e075d23758
improve(ui): remove the property of `logseq.children-as` for the order list feature
2023-04-21 17:45:57 +08:00
charlie
0449ee6bdc
Merge branch 'master' into feat/custom-children-list-style
2023-04-18 18:26:57 +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
charlie
f0855d4021
Merge branch 'master' into feat/custom-children-list-style
2023-04-18 10:05:58 +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
charlie
9183dbfdca
Merge branch 'master' into feat/custom-children-list-style
2023-04-17 13:57:57 +08: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
charlie
1043eff9cd
feat(ui): WIP number list block (own-property)
2023-04-14 18:37:31 +08:00
charlie
a98e612a54
Merge branch 'master' into feat/custom-children-list-style
2023-04-13 01:00:40 +08:00
charlie
d8af0cc35a
feat(ui): WIP number list block
2023-04-12 17:43:14 +08: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