Commit Graph

7185 Commits

Author SHA1 Message Date
Gabriel Horner
4d85697953 Fix get-tag and replace match usage 2022-04-21 17:03:56 -04:00
Gabriel Horner
a28ea134d8 Remove unused requires 2022-04-21 16:37:24 -04:00
Gabriel Horner
13e7d1c2d6 Pull out modified extract ns 2022-04-21 16:37:24 -04:00
Gabriel Horner
6aa428aaff Split out minimal version of config necessary 2022-04-21 16:37:24 -04:00
Gabriel Horner
3ba8e68a54 Fix bugs and more datom inspection 2022-04-21 16:37:23 -04:00
Gabriel Horner
dbf22c81c4 Pull in latest block change 2022-04-21 16:37:23 -04:00
Gabriel Horner
a2bb800825 Add in more deps and fixes - still not to parse parity
- Added cljs-time and linked-map
- data/diff datoms
- workaround for utils.js
- implicit db workaround
2022-04-21 16:37:23 -04:00
Gabriel Horner
7d16ceb6ca Fix bugs
- Fix tx data having nils
- Fix page-property parsing bug
- Also compare cli parsing with current impl
2022-04-21 16:37:23 -04:00
Gabriel Horner
4ff4d579bf Enable mldoc/link? 2022-04-21 16:37:23 -04:00
Gabriel Horner
c1c647e1cb Port over frontend.format.block
Moved over util, property and mldoc. Implemented block in prep for
extract-blocks
2022-04-21 16:37:23 -04:00
Gabriel Horner
3fd37583d6 WIP parser with nbb-logseq
- Had to open up 13+ namespaces ...
- There's still more todo but at least parser loads and pulls in some
  data
2022-04-21 16:37:23 -04:00
Gabriel Horner
6713d1230f Graph parser adds page metadata to a fresh db 2022-04-21 16:37:23 -04:00
Tienson Qin
192eab6a09 fix: Cmd-v sometimes pastes wrong content 2022-04-22 04:32:15 +08:00
Tienson Qin
cb9fde5b12 fix: use ES Module syntax
see https://shadow-cljs.github.io/docs/UsersGuide.html#_language_support
2022-04-22 03:33:56 +08:00
Tienson Qin
d286d37590 remove unused :editor/last-edit-block 2022-04-22 00:33:48 +08:00
Tienson Qin
ec29848427 fix: indent cursor position 2022-04-22 00:28:56 +08:00
Tienson Qin
33e0fb4fe9 fix: press Enter in list's content when dwim 2022-04-21 21:39:09 +08:00
Tienson Qin
98ac07d990 fix: only reorder the first matched ordered list 2022-04-21 21:39:09 +08:00
Tienson Qin
87007f8b07 fix: ordered list numbers 2022-04-21 21:39:09 +08:00
Tienson Qin
4eec369740 fix: only restore last editor's position if it's the same block 2022-04-21 20:41:38 +08:00
Tienson Qin
dd92e10b96 remove debugging prn 2022-04-21 20:20:46 +08:00
Tienson Qin
0e36ae85ee fix: collapsed state when zooming into a parent block with some children 2022-04-21 20:17:47 +08:00
Junyi Du
644dde0f24 feat: logseq protocol open with file path 2022-04-21 18:46:35 +08:00
Junyi Du
c7df6fc969 feat: open in running window by default; add new-window url action 2022-04-21 18:46:35 +08:00
Junyi Du
0a37f71433 feat: logseq protocol support on non-darwin 2022-04-21 18:46:35 +08:00
Charlie
79bc33e1e3 Enhance/more ns plugin api (#4828)
* improve(plugin): WIP add settings schema

* improve(plugin): add identity for settings modal

* improve(plugin): WIP add settings input

* fix(ui): scrollbar overlay of modal panel content

* improve(plugin): WIP add more render types of setting item

* improve(plugin): WIP polish settings items

* improve(plugin): WIP settings list of plugins

* improve(plugin): more settings types & polish releated ui

* fix(plugin): sometimes disable plugin not work

* improve(plugin): polish ui of plugin settings

* fix(dev): warning of lint

* improve(plugin): add api of settings changed

* chore: build libs core

* fix(ui): width of settings panel wrap

* improve(plugin): separate layouts data from settings aio file

* imporve(plugin): container size of single plugin settings

* fix: add missing state

* improve(plugin): add Git ns

* improve(plugin): git related api

* improve(api): type of git result

* chore: build libs core

* fix(dev): kondo lint

* fix(plugin): use cdn sdk when js entry

* chore: build libs core

* fix(plugin): env condition

* improve(plugin): add UI ns

* fix(api): arguments of datascript query

* enhance(api): manageable message instance of UI tools

* enhance(api): WIP add experiments api

* enhance(api): WIP add resources state of plugin

* improve(plugin): add status of loading script resources

* improve(plugin): more opts for script loader

* improve(plugin): WIP add fenced code renderer hook

* improve(plugin): fenced code renderer hook

* fix(plugin): resource root path of plugin fs location

* imporve(plugin): support local files for loading scripts

* improve(plugin): types of expirements api

* fix: typo of class

* enhance(api): add namespace related apis

* enhance(api): add linked refrences related apis

* enhance(plugin): add sample links to related api comments

* improve(plugin): add db changed hook & optimize strategy of caller for hooks

* improve(plugin): compatible commands registration for old sdk

* improve(plugin): collect user sdk version for plugin local

* improve(plugin): add internal callable apis for user sdk

* chore(plugin): missing files & bump libs version

* improve(plugin): compatiable for old sdk about hook messaging optimization

* improve(plugin): db hook optimization for old sdk

* enhance(ux): auto focus searchbar when open plugins list

* improve(plugin): api of a hook from specific block changed event

* improve(plugin): api of db block change hook

* improve(plugin): add show bracket user config of api

* improve(plugin): api of db block change hook

* fix(api): toggle collapsed of block

* improve(api): try to init grpah with git before exec git commands

* improve(plugin): attributes of sandbox container

* improve(dev): support register command with keybinding

* improve(plugin): add api of register shortcut command

* fix(plugin): reubild slash commands when new command registration

* fix(dev): lint

* improve(dev): lint script of libs codebase

* chore(dev): remove useless codes

* improve(plugin):sanitize path string of plugin repo value

* fix(plugin): rebuild commands list when unregister a plugin

* fix(ui): overflow width of query result table

* chore: rebuild libs core

* improve(plugin): add assets related apis

* chore: rebuild libs core

* improve(plugin): support replace state of into block in page api

* improve(plugin): prepend/append child block in page

* improve(plugin): polished exceptions message of plugin update/install

* fix(plugin): update settings within gui

* improve(ux): debounce change event of input for plugin settings gui

* chore: rebuild libs core

* enhance(plugin): catch exception of hook plugin
2022-04-21 18:43:16 +08:00
Andelf
a87e5ea0fa fix: not e2e test clipboard 2022-04-21 18:36:58 +08:00
Tienson Qin
274639fe78 fix: editor freeze when cut and paste blocks at the bottom 2022-04-21 18:36:58 +08:00
Andelf
b92f48a047 Refactor randomized e2e tests (#4974)
* fix(test): disable some random check
* fix(test): fix template test
* fix(test): reduce random test size
2022-04-21 18:15:53 +08:00
Andelf
8e74b06103 fix(test): add delay to clickNew 2022-04-21 13:07:30 +08:00
Tienson Qin
8f1f95741f fix: empty content check if inserting with replace-empty-target? 2022-04-21 11:28:16 +08:00
llcc
663a3c9632 fix: ac-cp jumps on mobile 2022-04-21 09:37:18 +08:00
Tienson Qin
a569d38f18 fix: e2e tests 2022-04-21 09:25:14 +08:00
Peng Xiao
019e67ac1f feat: expose start-of-week to plugins 2022-04-21 08:43:53 +08:00
Tienson Qin
0cfde82909 fix: re-index parsing progress 2022-04-21 08:42:52 +08:00
Tienson Qin
71e9bdee49 enhance: parsing progress bar 2022-04-21 08:42:52 +08:00
llcc
b8295bd5de enhance(Android): receive data after cold boot 2022-04-21 08:42:18 +08:00
llcc
83465a6446 enhance(iOS): receive share content after cold launch 2022-04-21 08:42:18 +08:00
charlie
a483b0de94 fix(utils): classname utils for string input 2022-04-21 08:41:40 +08:00
llcc
631f374ae5 display version info on mobile 2022-04-21 08:38:33 +08:00
Peng Xiao
4518ce5ee1 feat: custom query title may also render rich texts (#5006)
* feat: custom query title may also render rich texts

* fix: custom query title should also accept plain hiccups
2022-04-20 17:42:49 -04:00
rcmerci
888ed21e7e fix(sync): check current graph belongs to current logged-in user
when toggle sync on, first check current graph belongs to current
login user.
2022-04-20 09:43:19 -04:00
Tienson Qin
c7eb76d07c Disable pprint 2022-04-20 00:07:42 +08:00
Peng Xiao
628edb4775 fix: should also mute cursor blinks 2022-04-19 21:14:23 +08:00
Peng Xiao
bdf18a0793 fix: code block in published graph is not copyable 2022-04-19 21:14:23 +08:00
Andelf
488b56b8a7 enhance(card): refine card ui 2022-04-19 11:17:24 +08:00
Tienson Qin
904eff6d9d Core outliner operations refactoring (#4880)
* Add outliner nested transact!

Copied the code mostly from https://github.com/logseq/logseq/pull/4671
by zhiyuan

* refactor: insert-blocks

* fix: insert-blocks

* fix: move cursor to the last block when inserting

* fix: replace the current block when inserting and its content is empty

* keep only :insert-blocks

* expose only :delete-blocks

* Use existing implementations for move-nodes-up-down and

indent/outdent.

* fix editing state not updated immediately

* fix editing status

* fix: avoid recursive copy

* fix: inserting blocks after an empty block

* Implement move-blocks with insert-blocks

* fix: block left

* Implement move-blocks-up-down with move-blocks

* fix: paste text

* Implement indent-outdent-blocks with move-blocks

* fix: indent/outdent

* feat: multiple blocks drag && drop

* fix: indent/outdent blocks

* fix: drag drop

* Port unit tests for outliner.core

* enhance: open collapsed parent when indenting blocks

* refactor: block selection

* fix: indent/outdent blocks with different levels

* Add instrument on invalid outliner structure

* fix: can't write a block if the page has any outdated blocks

* fix: editing status for empty page

* fix: multiple drag & drop

* fix: drag & drop disallows moving from parents to its child

* fix: public property

* fix: can't delete first empty block

* Remove unused code

* fix: e2e tests

A workaround is to not select/highlight the block when pressing esc if it has
fenced code.

* remove unused code

* Add batch transaction test

* fix: update :block/page when dragging targets' children to another page

* Add more tests

* Simplify extract

* Replace db/get-conn with db/get-db

* Simplify extracting blocks from ast

* Code cleanup

* Code cleanup

* Add outliner core fuzzy tests

* Remove unused code

* fix: cursor not jump to the upper block when pressing Enter in the beginning

* fix: Enter in the beginning of a non-empty block

* Fix lint warnings

* Add editor random e2e tests

* Fix typo

* enhance: move some fns and add some comments

* enhance(outliner): add page-block? util

* fix: increase td width to prevent content overflow

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* First pass at file tests for file-sync

Each action usually passes by 5th try

* Fix two incorrect calls caught by tests

* More test improvements

- Easier auth setup
- subdirectory is configurable
- list graphs api also exercised

* Address cleanup from #3839

- Remove unused translation key
- Delete or TODO commented code
- Capitalize notifications to users

* fix quick capture template not working

* enhance(sync): add logout

* enhance: add logout i18n

* fix(plugin): sometimes plugin settings of gui not work when entry from app settings

* enable show-brackets? toggle for orgmode [[file:./pages/demo.org][demo]]

* fix(sync): fix unfinishable sync loop

* feature: logseq protocol; refactor persistGraph

* fix: deeplink support

* fix: broadcast persist graph on opening new graph with logseq protocol

* feat: logseq protocol open action for page-name and uuid

* fix: logseq protocol graph param validation

* ux: copy logseq URL of block

* enhance: remove the redundant 'open' from logseq protocol (v0.1)

* ux: page dropdown button for copy page URL

* chore: logseq protocol comments

* don't create new contents file when changing format

Logseq now creates a new contents file when users try to toggle the
preferred format, which causes file duplications error.

* fix pasting in src block not working on iOS

close https://github.com/logseq/logseq/issues/4914

* fix playing video goes into editing mode on iOS

* fix copy to clipboard failure on iOS

* add Podfile item

* fix mobile toolbar order not persisting after restart

* test(e2e): add test for backspace and cursor pos (#4896)

* test(e2e): add test for backspace and cursor pos
* fix(test): refine, fix wrong helper

* fix(ui): warn about illegal git commit interval

* enhance(editor): allow global git cmd shortcut

* style(settings): line-space of general/journals

* enhance(editor): accept enter in dummy block

Fix #4931

* fix editing state not updated immediately

* fix: can't write a block if the page has any outdated blocks

TODO: clean outdated blocks

* fix: editing status for empty page

* Random tree for outliner core tests

* Add pre assertions and fn docs based on Zhiyuan's suggestions

* Made some changes based on Gabriel's suggestions

* fix: tests

* fix: save current block before moving

* Updated the timeout to 100ms based on llcc's suggestion

https://github.com/logseq/logseq/pull/4880#discussion_r851966301

* api-insert-new-block! supports replace-empty-target?

* fix: replace all :reuse-last-block? usage

Co-authored-by: rcmerci <rcmerci@gmail.com>
Co-authored-by: Yue Yang <g1enyy0ung@gmail.com>
Co-authored-by: Gabriel Horner <gabriel@logseq.com>
Co-authored-by: llcc <lzhes43@gmail.com>
Co-authored-by: charlie <xyhp915@qq.com>
Co-authored-by: Junyi Du <junyidu.cn@gmail.com>
Co-authored-by: Andelf <andelf@gmail.com>
2022-04-19 11:14:38 +08:00
Gabriel Horner
b18c225c02 Remove old logout commented out in #3839 2022-04-19 09:27:38 +08:00
llcc
d4d744e7bf add more audio files support 2022-04-18 17:42:23 +08:00
Andelf
700c977cdb fix(editor): missing variable in macro expansion
Fix #4959
2022-04-18 17:29:00 +08:00