Commit Graph

76 Commits

Author SHA1 Message Date
Gabriel Horner
5489e7572f enhance(cli): export-edn prints unexpected errors
especially when an invalid export-type is given
2025-11-18 09:51:20 -05:00
Tienson Qin
28d42907c9 fix: re-ask permission for backup filehandle when expired
fix https://github.com/logseq/db-test/issues/276
2025-05-19 15:15:23 +08:00
Tienson Qin
4c74d25490 enhance: put markdown export next to edn 2025-04-22 21:00:48 +08:00
Gabriel Horner
5685fe5540 enhance: enable basic markdown export
Dont include built-in entities which are a lot in db graph, except for
user facing ones like Contents
2025-04-22 21:00:48 +08:00
Gabriel Horner
f9c0794929 fix: export edn page from menu 2025-04-09 17:10:13 -04:00
Tienson Qin
4169f20a28 Merge branch 'feat/db' into perf/app-start 2025-04-07 20:06:45 +08:00
Gabriel Horner
445be61fcf enhance: Add EDN export to page+block menus
for db graphs for more user-friendly use of the feature and to provide
consistency. Addresses a request in #alpha-db-feedback
2025-04-04 11:07:05 -04:00
Tienson Qin
24e94e4026 fix: export duplicated blocks 2025-04-04 11:10:16 +08:00
Gabriel Horner
06b3bba5fc enhance: add export edn graph as file
Remove command version of export which is a less useful dev tool
than what's possible with cli
2025-03-17 23:28:43 -04:00
Tienson Qin
f8029417a1 enhance: backup notice when the graph hasn't been updated
since the last export.
2025-01-03 20:32:50 +08:00
Tienson Qin
665207dc0d feat: import && export graph datoms transit 2024-12-29 15:05:23 +08:00
Gabriel Horner
ab6f5e5096 fix: re-enable exporting publishing from UI for db graph
publishing app doesn't fully work yet but hopefully will soon
2024-10-28 10:09:45 -04:00
Tienson Qin
a02ad793c7 fix: db migrate shouldn't be batched
Because different versions can rely on each other, e.g. the

This commit also will try to rebuild the db from the sqlite table
if migration failed.
2024-10-17 11:36:26 +08:00
Tienson Qin
06df10ef42 feat: export both SQLite db and assets 2024-10-09 11:03:16 +08:00
Tienson Qin
ed08555f49 fix: backup handle should be unique for each graph 2024-09-12 13:02:45 +08:00
Gabriel Horner
28aa62cd97 fix: update backup db name to be consistent
with how we name everywhere else. Helps later when we want to restore
a graph by directory to include assets. Also correct message
2024-09-12 13:02:45 +08:00
Tienson Qin
ad67958d17 enhance: auto backup every hour 2024-09-12 13:02:45 +08:00
Tienson Qin
bf351d4c29 feat: support db backup on web 2024-09-12 13:02:45 +08:00
Tienson Qin
a779245205 feat: export debug json which exclude sensitive data 2024-08-23 01:01:54 +08:00
Tienson Qin
66fcaf0c1f fix: remove import/export options for db graphs 2024-07-25 15:50:12 +08:00
Tienson Qin
a1f352773b refactor: rename :block/original-name to :block/title 2024-07-10 21:43:03 +08:00
Tienson Qin
c42dbec0f8 fix: copy selected blocks 2024-05-21 06:44:31 +08:00
Tienson Qin
1ec4796eff refactor: replace :block/left with :block/order
Finally no need to worry about parent-left conflicts and broken chain.
With :block/order, we only need to re-compute new orders for siblings
with same order (it can happens if there're bugs in our code, or
updates from rtc), but it doesn't break UI.

Another huge potential benefit after discussing with Zhiyuan is:
Ee might be able to simplify both RTC and undo/redo, currently, we
need to handle each new op for both of them, with recently
refactorings like properties being db attributes, :block/order
is a string instead of a ref, we can handle most property value
conflicts using last-write-wins, and others (e.g. :block/parent,
property with :default type) specifically.

I haven't fixed the issues of using :block/left in RTC and undo/redo,
because we might change both soon.
2024-05-02 01:12:22 +08:00
Tienson Qin
60d4fca0ba wip: remove :block/name uniqueness for db based graphs
This PR also remove supports for:
1. merge pages when renaming a page to existing page
2. namespaces such as a/b/c
3. nested page such as [[a [[nested page]]]]

Pages merge might be added back depends on RTC, but it should be
decoupled from renaming, otherwise it's too complex.

Namespaces and nested pages have been contributed some critical bugs
that lead data-loss, they're so complex together with page alias,
it's just impossible to have a good test coverage and ensure the app
is stable, especially when page rename and RTC.
2024-04-04 15:57:48 +08:00
charlie
72b93dae1f enhance(ui): refactor the classic modal with the shui dialog 2024-03-19 18:05:39 +08:00
Tienson Qin
d119a15229 enhance: use radix checkbox globally 2024-03-11 21:40:32 +08:00
Konstantinos Kaloutas
18666550a9 fix background color on image export 2024-01-23 13:33:25 +02:00
Tienson Qin
e571c571ec wip: export refactor
1. Move fns to worker
2. Don't rely on :block/file, use db blocks to build page content
2024-01-22 10:00:26 +08:00
Gabriel Horner
8eec034c61 fix: user can't export a file graph as a db graph 2023-12-15 09:55:28 -05:00
Tienson Qin
4d445b8387 feat: export repo as sqlite db 2023-12-11 19:14:10 +08:00
Tienson Qin
10a025e8ef fix: whiteboard selected button bg 2023-11-14 14:55:07 +08:00
Konstantinos Kaloutas
fb63c32a56 Revert "defer loading html2canvas"
This reverts commit 16e0c3713f.
2023-07-10 00:54:54 +08:00
Konstantinos Kaloutas
1e30a2030f defer loading html2canvas 2023-07-10 00:54:54 +08:00
Rui Sun
64cf564183 Enhance: Add Chinese i18n translations and make more of right-sidebar, query, slide and bug-report translatable (#9801)
* i18n: fix translation of switch to in zh-CN.

* fix: Enable i18n for create or search graph in the context of whiteboard.

* i18n: Add Chinese translations for whiteboard feature.

* i18n: Add more Chinese translations for whiteboard feature.

* i18n: Add i18n for "Properties settings for this query:"

* i18n: Add i18n for "No matched result"

* i18n: Add i18n for "Tips: press f to go full screen"

* i18n: Add i18n for "redo/undo history"

* i18n: Add i18n for "help documents"

* i18n: Add i18n for "bug report"

* fix: Make translate for Tips press f go fullscreen

* fix: Remove placeholder zh-cn that is not used.

* fix: Add a hidden element to use :whiteboard/create-or-search-graph so it will not be reported as unused.

* i18n: Add i18n for "check update"

* i18n: Add i18n for "export current page"

* i18n: Add i18n for "Grant permission"

* i18n: Fix for Chinese, "These translations keys are invalid because they are just copying the English value"

* revert: Translation for whiteboard/create-or-search-graph blocked by bb lang:validate-translations

* i18n: Fix translation for Chinese with help from amazing andelf.

* Update src/resources/dicts/zh-cn.edn

Co-authored-by: Andelf <andelf@gmail.com>

* Update src/resources/dicts/zh-cn.edn

Co-authored-by: Andelf <andelf@gmail.com>

* Update src/resources/dicts/zh-cn.edn

Co-authored-by: Andelf <andelf@gmail.com>

---------

Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com>
Co-authored-by: Andelf <andelf@gmail.com>
2023-07-05 11:07:57 -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
Tienson Qin
bc635eaf4b fix: internal blocks paste 2023-03-29 18:41:04 +08:00
rcmerci
d7ebc8950f use tailwind class 2023-03-20 12:31:35 +08:00
rcmerci
24bca5883f feat(copy-as/export): add option: remove-properties 2023-03-20 12:31:35 +08:00
rcmerci
e38f47aea1 fix lint 2023-03-20 12:31:35 +08:00
rcmerci
bce6174b5a feat(copy-as/export): add option: :newline-after-block 2023-03-20 12:31:35 +08:00
rcmerci
5efbd125de only copy-as/export level<N blocks for text export 2023-03-20 12:31:35 +08:00
Konstantinos
2cace8894c Enhance: Add more translations, remove unused ones and add linter for unused (#8568)
* chore: remove unused dictionary keys

* wip: add dictionary keys for hardcoded strings

* resolve conflicts

* Add linter to detect :en ui translation keys match used ones

- Fix a couple entries caught by linter
- Copy :command.editor/open-link-in-sidebar entries to
  :help/open-link-in-sidebar as translation keys shouldn't be reused in
  multiple contexts, especially when it's across ui and shortcut dicts

* fix: remove dead keys

* chore: reuse dict keys

* chore: reintroduce useful keys

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2023-02-24 09:21:57 -05:00
rcmerci
2a12ffc331 feat(editor/copy-paste): refactor copy/export in cljs (#8530)
Huge performance improvement for copy and export

Refactor copy/export in cljs instead of Mldoc
2023-02-20 23:08:58 +08:00
charlie
ba2b5e09a8 improve(ui): small polish 2022-10-13 16:52:51 +08:00
Tienson Qin
f4aa08fbd3 fix: stuck importing from edn/json
Also, this commit added the progress UI for importing and removed the
:file/writes core.async channel.
2022-08-26 13:00:42 +08:00
llcc
271ceb9b8a support graph edn/json export on mobile 2022-06-10 15:47:07 +08:00
Andelf
88b3962dd0 fix(editor): copy with both plain and rich text 2022-06-01 15:51:37 +08:00
Tienson Qin
982eba9396 refactor: remove i18n tongue context 2022-02-08 17:31:32 +08:00
Gabriel Horner
4ce3db2497 Carve up to frontend.components.sidebar 2022-01-27 14:11:59 -05:00
Gabriel Horner
f1d15b0e05 Lint components and address comments in review
Start using :clj-kondo/ignore as lint violations that need to be
revisited. They may side effect and should be removed with better
understanding of their context
2022-01-12 15:32:47 -05:00