Commit Graph

18312 Commits

Author SHA1 Message Date
rcmerci
fb8fc533e6 fix: bb dev:lint 2023-10-27 23:15:57 +08:00
rcmerci
7ba2811e11 dev(rtc): some test helpers & mock utils for rtc 2023-10-27 23:06:36 +08:00
Andelf
99a38de201 fix: wrong date fn usage in #10350 2023-10-27 20:57:15 +09: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
e8d411b837 fix: typing markdown property results in a blank line
Fixes LOG-2741
2023-10-27 14:23:26 +08:00
Tienson Qin
5e5b7d0d01 fix: block timestamps not updated when copy && paste
Fixes LOG-2705
2023-10-27 13:19:54 +08:00
dependabot[bot]
a67ed5c114 chore(deps): bump @babel/traverse from 7.20.1 to 7.23.2 in /libs
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.20.1 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-27 12:30:14 +09:00
dependabot[bot]
78f7788ce3 chore(deps): bump @babel/traverse from 7.22.20 to 7.23.2
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.20 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-27 12:30:02 +09:00
dependabot[bot]
033395395f chore(deps): bump @babel/traverse from 7.19.1 to 7.23.2 in /tldraw
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.19.1 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-27 12:29:49 +09:00
dependabot[bot]
d090954aaf chore(deps): bump browserify-sign from 4.2.1 to 4.2.2 in /tldraw
Bumps [browserify-sign](https://github.com/crypto-browserify/browserify-sign) from 4.2.1 to 4.2.2.
- [Changelog](https://github.com/browserify/browserify-sign/blob/main/CHANGELOG.md)
- [Commits](https://github.com/crypto-browserify/browserify-sign/compare/v4.2.1...v4.2.2)

---
updated-dependencies:
- dependency-name: browserify-sign
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-27 12:28:49 +09:00
dependabot[bot]
7fe8178a45 chore(deps): bump browserify-sign in /tldraw/cljs-demo
Bumps [browserify-sign](https://github.com/crypto-browserify/browserify-sign) from 4.2.1 to 4.2.2.
- [Changelog](https://github.com/browserify/browserify-sign/blob/main/CHANGELOG.md)
- [Commits](https://github.com/crypto-browserify/browserify-sign/compare/v4.2.1...v4.2.2)

---
updated-dependencies:
- dependency-name: browserify-sign
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-27 12:28:34 +09:00
dependabot[bot]
0f442a6bee chore(deps): bump browserify-sign from 4.2.1 to 4.2.2
Bumps [browserify-sign](https://github.com/crypto-browserify/browserify-sign) from 4.2.1 to 4.2.2.
- [Changelog](https://github.com/browserify/browserify-sign/blob/main/CHANGELOG.md)
- [Commits](https://github.com/crypto-browserify/browserify-sign/compare/v4.2.1...v4.2.2)

---
updated-dependencies:
- dependency-name: browserify-sign
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-27 12:28:19 +09:00
Andelf
41a48184bc chore(deps): upgrade electron v26 2023-10-27 12:26:50 +09:00
Gabriel Horner
075efcb222 fix: malli schema missing two ref attributes
Validator errored when I collapsed a property. Added a sync
check so that future changes to datascript schema alert developer
to make a change in the malli schema.
Also removed a ds attribute for DB schema
2023-10-26 15:44:14 -04:00
Gabriel Horner
d571e90d3e fix: new hidden pages showing up in search
part of LOG-2854
2023-10-26 13:58:44 -04:00
Gabriel Horner
e5e25bb403 update schema for new hidden page attributes
part of LOG-2854. Also update --closed-maps to use library fn
2023-10-26 12:05:12 -04:00
Tienson Qin
9c251ff413 fix: hidden page names displayed in references or query results
ref LOG-2854
2023-10-26 21:54:23 +08:00
Gabriel Horner
82c49bb420 Update page deletion messages so page content deletion is expected
Part of LOG-2733
2023-10-26 09:28:11 -04:00
Tienson Qin
f91e8ea744 fix: don't quit tag auto-completion after input a space 2023-10-26 20:32:35 +08:00
Ben Yorke
d8d3619c43 Fix return trigger 2023-10-26 14:27:11 +02:00
Ben Yorke
184dfd7d54 More design tweaks 2023-10-26 14:24:12 +02:00
Tienson Qin
4f9f91b6d1 fix: unwanted tag pages are created as you type
Fixes LOG-2820
2023-10-26 20:19:12 +08:00
Tienson Qin
b42c89f328 fix: some keys are buggy in property description input
Fixes LOG-2844

Have to disable all shortcuts for both property and enum value config,
also, use uncontrolled input instead of controlled input so that
browser undo/redo works.
2023-10-26 19:05:49 +08:00
rcmerci
ac33f966a3 enhance(db-sync): make fns pure for RUNNING-TESTS 2023-10-26 18:25:08 +08:00
Tienson Qin
f9ec83886c fix: typing backspace at front of block deletes properties
Fixes LOG-2841
2023-10-26 17:55:49 +08:00
Tienson Qin
3b9361d617 enhance: disable page deletion if it still has references
The page's blocks will be deleted though.
2023-10-26 17:15:08 +08:00
Andelf
71f5601301 fix(journal): wrong save location for page name with two slashes
Fix #10219
2023-10-26 10:54:32 +09:00
Andelf
8e7f067692 fix(editor): error while creating a page named with journal filename
Fix #10349
2023-10-26 10:54:32 +09:00
Uday Kalbhor
88b61adbd7 fix: issue-9380 - #card should only be appended to the title
https://github.com/logseq/logseq/issues/9380

Bug:
Make block with any text and one property after the text
Use bullet context menu to call «Make Flashcard» command
2023-10-26 10:38:45 +09:00
Gabriel Horner
2acac87094 fix: macros were not being saved
macros were being discarded as unknown blocks when they should've been
saved as a block with a known type.  Introduced a new type number as
macros don't have most of the attributes that blocks or pages do.
Features like collapsible queries now work in db graphs. Also removed
an outdated reference that assumed macro was a page (which it no longer
is)
2023-10-25 17:05:31 -04:00
rcmerci
2c3f42266e fix(rtc): loss some ops 2023-10-26 02:22:48 +08:00
rcmerci
73a26f36d8 enhance(rtc): split ws messages, size limit=32kb 2023-10-26 01:32:07 +08:00
Tienson Qin
df01465737 enhance: jump to bottom quickly for long pages 2023-10-26 01:30:40 +08:00
Tienson Qin
2212016a3b fix: cursor blinks when editing a new block 2023-10-26 01:02:36 +08:00
Tienson Qin
ed13217ad5 enhance: perf 2023-10-26 00:18:01 +08:00
Tienson Qin
e6d1d80232 fix: add back blockid class 2023-10-25 22:25:57 +08:00
Gabriel Horner
b47c86504d fix: navigating to a page with an icon doesn't crash 2023-10-25 09:56:45 -04:00
Gabriel Horner
1d90663fb0 fix: only add schema to property when it exists
This ensures that we can always validate schema as having a
:type which is important for a property's validity
2023-10-25 09:56:45 -04:00
Tienson Qin
8a20c1c91b enhance: perf 2023-10-25 21:42:36 +08:00
Ben Yorke
a046323aca new design iteration 2023-10-25 14:29:37 +02:00
Tienson Qin
b19e42938c fix: bad performance due to ui/tippy sub state 2023-10-25 20:11:49 +08:00
Tienson Qin
9cd3327794 enhance: lazy load performance 2023-10-25 16:22:34 +08:00
rcmerci
850ed26411 enhance(rtc): grant access api support emails (2) 2023-10-25 15:45:40 +08:00
rcmerci
69ef219a71 enhance(rtc): grant access api support emails 2023-10-25 15:45:40 +08:00
Gabriel Horner
211dd6aea7 enhance: disable preferred-format and setting org-mode
for db graphs. Also deprecate in config
2023-10-24 17:15:05 -04:00
Gabriel Horner
0715b03b8f chore: cleanup file-based.property* namespaces
Split out multi-graph fns from frontend.handler.file-based.property into
frontend.handler.property.file. This cleaned up the last of the namespaces
that didn't follow the convention of file-based.* and db-based.*
namespaces are for file graph and db graph only functionality
respectively. It's important to keep the two graph implementations separate as
it's simpler and easier to maintain them. We had already
introduced needless coupling between batch-set-block-property-aux and
multi-graph fns like remove-properties-when-file-based as
batch-set-block-property-aux is _only_ run in file graphs
2023-10-24 16:49:43 -04:00
Gabriel Horner
7b6b9c5df2 fix: update content when changing markdown heading
moved db-based and file-based implementations to their respective
namespaces
Fixes LOG-2821
2023-10-24 15:05:30 -04:00
Tienson Qin
ebe68c6382 fix: loop 2023-10-25 01:34:02 +08:00
rcmerci
9d92fd93ee fix(rtc): property updates not synced 2023-10-25 01:12:42 +08:00
rcmerci
b6eb7f3b7c chore: sort ns 2023-10-25 00:24:01 +08:00