Commit Graph

105 Commits

Author SHA1 Message Date
Gabriel Horner
208b4bc205 fix: remove whiteboards and tldraw from rest of codebase
Also remove some old excalidraw refs that should've been removed awhile
back
2026-01-22 13:19:58 -05:00
charlie
55216f36f0 enhance(plugin): add support for invoking external plugin commands 2026-01-16 16:17:42 +08:00
Tienson Qin
bcc478b5f7 refactor: separate og and db version (#12276)
separate og and new version apps

remove file sync, tldraw, excalidraw and zotero
2025-12-29 15:39:32 +08:00
Gabriel Horner
70a6f617aa enhance: add listTags and listProperties to API mcp server
by introducing logseq.cli.* for internal API usage.
Also refactor existing api tools to share same implementation as
local tools. This fixes a couple bugs w/ the api tools as get-page
was returning :block.temp/* keys and list-pages were returning uuids under
the id key unlike all other responses
2025-10-16 10:44:32 -04:00
Gabriel Horner
f1b53a19d7 chore: add more logging for unexpected api errors 2025-09-04 12:23:47 -04:00
rcmerci
123d03f293 fix: use transit for :inflateGraphsInfo ipc 2025-08-09 22:25:48 +08:00
charlie
2d1436a899 fix(api): incorrect db ns for http api call 2025-07-25 17:03:44 +08:00
Gabriel Horner
98746156ed fix(api): query method and error handling
logseq.app.q failing and error returned as blank `{}` on cmdline
2025-07-24 10:56:05 -04:00
Gabriel Horner
b985020d1f refactor: mv file graph model fns to their own ns
All these fns are only used by file graphs. Most only act on file only
attributes e.g. :block/file, :block/pre-block? and :block/namespace
2025-05-09 02:51:54 +08:00
Tienson Qin
34fcde1012 chore: remove both error handler and ui for no multi-tab support 2025-04-23 22:51:28 +08:00
Tienson Qin
005cfeeebb perf: don't load block children if collapsed 2025-04-02 16:47:00 +08:00
Tienson Qin
4f531ec8cc fix: can't open block url from another graph 2024-12-05 00:02:20 +08:00
charlie
4765b4ab7e fix(plugin): invalid call api server 2024-11-15 18:29:27 +08:00
Tienson Qin
37ba08d865 fix: display unique title for both favorites and recents 2024-07-29 11:37:12 +08:00
Tienson Qin
dafec99148 fix: use page uuid for graph url in db graph
We still need to use page name for file graph because pages in
file graph don't have persistent ids.
2024-07-26 12:58:44 +08:00
Tienson Qin
a1f352773b refactor: rename :block/original-name to :block/title 2024-07-10 21:43:03 +08:00
Tienson Qin
4cca2e5f69 enhance: remove sqlite usage from Electron
Use periodic db export instead. Manual saving db to the disk can be
triggered by `mod+s`.
2024-06-14 23:58:49 +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
Tienson Qin
b7d9098e80 Move gp-util and gp-config to the common dep 2024-01-03 16:38:05 +08:00
Tienson Qin
018e1ae8ee Merge branch 'master' into feat/db 2023-12-23 14:18:25 +08:00
Tienson Qin
cd36c1a0ce Merge branch 'feat/db' into refactor/worker-search 2023-12-20 19:46:10 +08:00
Tienson Qin
cdd1815615 No need to export db when switching graphs 2023-12-20 17:13:47 +08:00
Tienson Qin
2811dc7d51 Merge branch 'enhance/write-to-disk' into refactor/worker-search 2023-12-20 01:34:48 +08:00
Gabriel Horner
6f8badf18f add frontend.persist.db* to list of db namespaces
also cleaned up inconsistent alias and fixed export-db calling
db-based-graph? when caller fns already do this
2023-12-15 09:50:22 -05:00
Tienson Qin
d38bba76bf Use OPFS storage for file based graphs too 2023-12-14 01:20:31 +08:00
Charlie
036df25a17 Enhance: plugin APIs (#10399)
* enhance(plugin): call apis with the sdk ns

* enhance(plugin): types

* enhance(api): get value from the computed style

* enhance(api): types

* enhance(plugin): types

* enhance(plugin): types

* fix: lint

* fix(apis): incorrect shortcut command registion for block editing mode #10392

* fix(api): types

* enhance(apis): support register shortcuts with multi binding vals

* fix(plugins): normalize command key to make the internal keyword legal

* chore(plugin): build libs core

* chore(plugin): bump version

* enhance(apis): normalize apis cljs data

* chore(plugin): update libs user sdk

* chore(plugin): CHANGELOG.md

* fix: typo

* fix(ux): support querying plugins with right space chars
2023-12-13 15:42:21 +08:00
Tienson Qin
436ff54039 fix: save db to disk when remove a graph 2023-12-13 01:35:07 +08:00
Tienson Qin
8c3ec50c07 fix: no available handles to import to 2023-12-12 19:11:42 +08:00
Tienson Qin
5712d84b0b enhance: export-db can either return data or save the file to disk 2023-12-11 18:45:48 +08:00
Tienson Qin
f2c7cad4a5 enhance: save sqlite.db when closing any Electron window 2023-12-11 18:34:36 +08:00
Tienson Qin
b7a7c9b549 fix: open new window on Electron 2023-12-11 16:17:34 +08:00
Tienson Qin
d487a3e808 wip: open a different graph in another tab 2023-12-10 21:27:17 +08:00
Gabriel Horner
de3d7b7b5f Merge branch 'master' into feat/db 2023-11-01 17:31:17 -04:00
Charlie
1389836119 Feat: the new handbooks (#8524)
* feat(ui): WIP handbooks pane

* feat(ui): WIP handbooks pane

* feat(ui): WIP handbooks pane

* feat(ui): WIP handbooks popup

* feat(ui): WIP dragable & resizable for handbooks popup

* feat(ui): WIP pane navigations for handbooks popup

* feat(ui): WIP pane navigations for handbooks popup

* feat(ui): WIP handbooks markdown body

* feat(ui): WIP handbooks nodes for dashboard render

* feat(ui): WIP watch mode for development

* improve(ui): typos

* feat(ui): WIP enhance watch mode

* feat(ui): WIP support topic conent link local assets

* feat(ui): WIP support slide gallery for demo images & videos.

* fix(ui): parse value about draging position offset

* improve(ui): background color transition of handbook item card

* improve(ui): resizable of handbooks popup

* feat(handbooks): search topics

* improve(handbooks): search results within topics group

* improve(ui): better interaction for handbooks searchbar

* fix(handbooks): conflictive up/down for searchbar interaction

* improve(ux): better interaction for handbooks searchbar

* feat(ux): support youtube video for topic demos media

* fix(ui): container size of youtube video demos

* improve(handbooks): support local video for topic demos

* improve(ui): polish markdown body style for handbooks topic details

* chore: remove debugs

* chore: remove debugs

* improve(ui): polish active style for topic item card

* improve(ui): polish style of demos item

* improve(ui): help buttons still be visible when right sidebar opened

* improve(handbooks): support sub chapters for topic detail

* improve(handbooks): support sub chapters for topic detail

* improve(handbooks): support chapters searching for topics list

* fix: lint

* improve(ui): position of demo slides bullets

* fix(ui): index of chapter select

* improve(handbooks): typo

* fix(dev): lint

* fix(dev): lint

* fix(pdf): remove prefix(`@`) checking for links of org mode page

* feat(ui): WIP handbooks pane

* feat(ui): WIP handbooks pane

* feat(ui): WIP handbooks pane

* feat(ui): WIP handbooks popup

* feat(ui): WIP dragable & resizable for handbooks popup

* feat(ui): WIP pane navigations for handbooks popup

* feat(ui): WIP pane navigations for handbooks popup

* feat(ui): WIP handbooks markdown body

* feat(ui): WIP handbooks nodes for dashboard render

* feat(ui): WIP watch mode for development

* improve(ui): typos

* feat(ui): WIP enhance watch mode

* feat(ui): WIP support topic conent link local assets

* feat(ui): WIP support slide gallery for demo images & videos.

* fix(ui): parse value about draging position offset

* improve(ui): background color transition of handbook item card

* improve(ui): resizable of handbooks popup

* feat(handbooks): search topics

* improve(handbooks): search results within topics group

* improve(ui): better interaction for handbooks searchbar

* fix(handbooks): conflictive up/down for searchbar interaction

* improve(ux): better interaction for handbooks searchbar

* feat(ux): support youtube video for topic demos media

* fix(ui): container size of youtube video demos

* improve(handbooks): support local video for topic demos

* improve(ui): polish markdown body style for handbooks topic details

* chore: remove debugs

* chore: remove debugs

* improve(ui): polish active style for topic item card

* improve(ui): polish style of demos item

* improve(ui): help buttons still be visible when right sidebar opened

* improve(handbooks): support sub chapters for topic detail

* improve(handbooks): support sub chapters for topic detail

* improve(handbooks): support chapters searching for topics list

* fix: lint

* improve(ui): position of demo slides bullets

* fix(ui): index of chapter select

* improve(handbooks): typo

* fix(dev): lint

* fix(dev): lint

* improve(handbook): i18n

* fix(lint): unused translations

* fix: accessibility issues and translations

* fix(handbook): chapters navigation

* enhance(handbook): ux of the chapters select

* enhance(handbook): support link other page with markdown link syntax

* improve(ui): polish ui details of handbook topics card

* fix(handbook): parse key from href with a specific extension

* enhance(handbook): logic of chapters navigation

* enhance(handbook): ui of chapters navigation

* fix: lint

* improve(ui): display nowrap for code text

* fix(handbook): remove unnecessary source map

* fix(ui): missing component key of handbook chapter select

* enhance(handbook): WIP support panes navigation for the external links

* enhance(handbook): support panes navigation for the external links

* improve(ui): footer links of the handbook home pane

* improve(ui): footer links of the handbook home pane

* improve(ui): polish topics card

* improve(handbook): add shortcuts category card for home pane

* improve(ui): WIP the new help menu

* improve(ui): the new help menu

* fix: incorrect help link

* improve(ux): close help menu when click outside

* fix: lint

* fix(lint): remove unused translation

* fix(ui): the link of changelog

* fix(ui): the cover thumb container size of the topic card

* fix(ui): handbook popup overlay index

* enhance(ux): preivew images with lightbox modal for the handbook content

* enhance(ux): bottom border for the handbook content header when then content body scrolled

* fix: missing i18n

* improve(handbook): polish ui details

* fix: lint

* enhance(handbook): polish details

* fix(ui): incorrect safety init

* fix(ui): missing key for the help menu items

* enhance(ui): disable resize for the handbook popup container

* chore: build libs core

* fix(ui): incorrect shortcuts label

* enhance(handbook): cache discord online number

* enhance(handbook): fix heading level sizes

* enhance(handbook): improve paragraph spacing

* enhance(handbook): improve margins of media elements

* enhance(handbook): polish discord button

* enhance(plugin): make headings/font weights/colors look like in the design

* enhance(handbook): writing mode option is only available for develop mode

* enhance(handbook): polish handbook dashboard page

* enhance(handbook): typos

* enhance(ux): get discord online users count from logseq server

* fix(handbooks): incorrect var name

* enhance(handbook): polish details

---------

Co-authored-by: Bad3r <bad3r@protonmail.com>
Co-authored-by: situ2001 <yongcong2001@outlook.com>
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
Co-authored-by: Konstantinos Kaloutas <konstantinos@logseq.com>
2023-10-27 14:33:10 +08:00
Tienson Qin
307258343e fix: lint warnings 2023-10-08 19:14:25 +08:00
Tienson Qin
e19613f2d8 Use db/transact! when possible 2023-08-18 19:45:41 +08:00
Tienson Qin
8e9a189ba1 handle whiteboard built-in properties 2023-08-01 21:48:36 +08:00
Konstantinos Kaloutas
d13ba8d9e7 chore: refactoring 2023-06-08 16:59:09 +03:00
Tienson Qin
245008dc26 enhance: rebuild search index when prepare failed 2023-04-26 18:50:19 +08:00
Konstantinos Kaloutas
2b1031a747 fix: fix: block url handler 2023-04-03 12:45:55 +08:00
Andelf
3c0973013b refactor(fs): mv fs2 logic to logseq.common pkg 2023-03-28 09:14:42 +08:00
Andelf
31d7c8f836 refactor(fs): use rpath 2023-03-28 09:14:42 +08:00
Tienson Qin
011860e486 fix: multiple windows clash (#8874)
* fix: multiple windows clash

* enhance: force all the ipc callback result to be nil
2023-03-25 10:32:32 +08:00
Andelf
fb02c557f2 Revert "fix: electron menu handler(Redo, Undo, Copy) (#8466)"
This reverts commit 29da7386cb.
2023-02-20 01:35:16 +08:00
situ2001
29da7386cb fix: electron menu handler(Redo, Undo, Copy) (#8466)
* fix(electron): menu undo & redo not working
* refactor(electron): use editMenu from electron src code
* chore(electron): add FIXME comments
* fix(electron): menu copy & cut not working
* remove: custom fn in menu cut
* fix: add accelerator to menu copy item
2023-02-16 17:26:31 +08:00
Andelf
fbb6731740 refactor(mobile): use the same code base as electron quick-capture (#8529) 2023-02-08 09:05:32 +08:00
Gabriel Horner
2f91565127 Tweak wording of http server error messages 2023-01-03 14:04:32 -05:00
Charlie
51aaa02e76 Feat: APIs http server (#7699)
http server
2022-12-29 22:30:44 +08:00
Andelf
a1b731a77a fix(electron): quick captured text is cleared when editing current 2022-12-02 15:30:09 +08:00
Andelf
bb2ce46ce7 fix(editor): escape editing when inserting 2022-12-02 05:40:14 +08:00