Commit Graph

18312 Commits

Author SHA1 Message Date
Tienson Qin
31c3b7a3af Allow outliner transaction to be used for both UI and worker 2024-01-01 22:46:56 +08:00
Tienson Qin
7f21ff7193 wip: rtc worker 2023-12-29 21:05:37 +08:00
Tienson Qin
ba5dd8c99b style tweak 2023-12-29 19:18:35 +08:00
Tienson Qin
6d0378c0d1 fix: can't switch graphs 2023-12-29 17:21:54 +08:00
Tienson Qin
ca4f0d4c04 enhance: increase bullet border width when its block was selected 2023-12-29 17:01:32 +08:00
Charlie
0dd5584010 Enhance(ui): left sidebar (#10765) 2023-12-29 16:54:47 +08:00
Tienson Qin
e8b5a93a7e Code clean 2023-12-28 23:24:22 +08:00
Tienson Qin
84851a5639 Move db fix to worker 2023-12-28 22:16:21 +08:00
Tienson Qin
7cf24a8ec1 clean code 2023-12-28 21:40:46 +08:00
Tienson Qin
c48e2a6c3b fix: tests
remove unused tests
2023-12-28 21:35:16 +08:00
Tienson Qin
559e38ac50 fix: lint warnings 2023-12-28 21:31:07 +08:00
Tienson Qin
4016f93884 Move db validate to worker 2023-12-28 21:25:00 +08:00
Tienson Qin
46cb78f934 fix: file writes check 2023-12-28 20:56:39 +08:00
aurnik
50facde03a Set keyboard shortcuts in sidebar to always have auto width 2023-12-28 20:18:40 +08:00
Tienson Qin
e45eb85633 fix: whiteboard files not saved 2023-12-28 20:16:58 +08:00
Tienson Qin
580763844b Write files works 2023-12-28 20:01:13 +08:00
Tienson Qin
ee12e58254 refactor ns 2023-12-28 18:46:09 +08:00
Tienson Qin
eb679bd941 wip: file worker 2023-12-28 17:32:43 +08:00
charlie
035301ca6e refactor(api): compatible for the old api 2023-12-28 15:05:53 +08:00
charlie
6454e46f3c fix(api): missing git sdk 2023-12-28 15:05:53 +08:00
Tienson Qin
dda11a33a7 Move outliner tree to the outliner dep 2023-12-27 02:53:00 +08:00
Tienson Qin
0041b0d48c chore: code clean 2023-12-27 00:09:27 +08:00
Tienson Qin
5b13fe6df4 perf: reduce disk writes 2023-12-27 00:06:39 +08:00
Tienson Qin
530bf7ac4d Remove unused ::page<-pages 2023-12-26 23:10:44 +08:00
Tienson Qin
61bdbcab7e fix: refresh order 2023-12-26 23:00:48 +08:00
Andelf
fed1c7c7ef fix(e2e): do not use css to test selection 2023-12-26 22:29:28 +08:00
Tienson Qin
260ad89937 wip: move pipeline to worker 2023-12-26 22:00:21 +08:00
Tienson Qin
2b0d956626 enhance: add border to bullet instead of block container 2023-12-26 17:56:43 +08:00
Mega Yu
7bc3c0d8a8 clear e2e keyboard state 2023-12-26 17:56:43 +08:00
Mega Yu
3a93799958 add e2e test 2023-12-26 17:56:43 +08:00
Mega Yu
b69087c30a optimize CSS to make the selection of blocks more intuitive 2023-12-26 17:56:43 +08:00
Mega Yu
aaf856e803 support mod+shift+left-click 2023-12-26 17:56:43 +08:00
Mega Yu
cba1150e1a allow set starting block if it's exists 2023-12-26 17:56:43 +08:00
Mega Yu
805efabb22 set it as the starting block when no blocks are selected when shift clicking 2023-12-26 17:56:43 +08:00
Mega Yu
13773c9fac clear selection if necessary 2023-12-26 17:56:43 +08:00
Mega Yu
b4b5a949d7 deselect the block if it's selected 2023-12-26 17:56:43 +08:00
e-zz
28de2b70ab fix(pdf): area highlights don't blink
Area highlights don't blink when jumping to it.  

Maybe we could unify the id naming style of all highlights elements. So, area highlights will blink as text highlights do.

- `id` of text highlight: 27e3b9d019/src/main/frontend/extensions/pdf/core.cljs (L254)

- [The part for blinking](27e3b9d019/src/main/frontend/extensions/pdf/utils.js (L123C5-L130)) in `pdf/utils.js` 
``` js
  // blink highlight
  function blinkHighlight () {
    const id = highlight?.id
    const el = document.getElementById(`hl_${id}`)
    if (!el) return
    el.classList.add('hl-flash')
    setTimeout(() => el?.classList.remove('hl-flash'), 1200)
  }
```  
PS: I don't know if disabling the blinking is by design. Let me know if it's not a bug but a feature :)
2023-12-26 16:32:32 +08:00
Charlie
8040168d1e Feat: New UI components (#10694)
* 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

* feat(ui): add package

* Update .gitignore

* feat(ui): set up shui infrastructure

* feat(ui): add storybook macro

* enhance(ui): storybook themes

* feat(ui): adapt ui button to classic

* enhance(ui): shui story

* feat(ui): shui toaster

* enhance(ui): shui toaster

* feat(ui): imperative API for shui toaster

* enhance(shui): update API for shui toaster

* enhance(shui): update hooks for shui toaster

* enhance(shui): remove debug

* feat(ui): story for the shui toaster

* feat(ui): story

* feat(ui): story docs

* feat(ui): more variants for the shui toaster

* feat(ui): story

* fix(ux): support querying plugins with right space chars

* feat(ui): add shui `Alert` component

* enhance(ui): shui demo

* feat(ui): add logseq UI readme

* enhance(ui): default shui theme

* feat(ui): add shui `Badge` component & demo

* fix(ui): outline theme for shui button

* feat(ui): custom icon for the toaster item

* feat(ui): add shui dropdown & demo

* feat(ui): WIP shui form related components

* feat(ui): WIP shui form-related components

* feat(ui): WIP shui form

* feat(ui): WIP shui form state for validation

* fix(ui): missing rounded for ui button

* feat(ui): add yup for shui form as default validation resolver

* enhance(ui): simplify validation schema input for the shui form

* fix(ui): accent ring color for input

* feat(ui): add shui switch

* feat(ui): add shui checkbox & switch

* feat(ui): add shui radio group

* fix(ui): missing file

* feat(ui): add Textarea component

* feat(ui): add shui card & skeleton

* feat(ui): add shui context menu component & demo

* fix(ui): accent color for the context menu item

* feat(ui): add shui select component & demo

* enhance(ui): ui css priority

* feat(ui): add shui calendar & ui details

* feat(ui): add shui popover

* feat(ui): add date picker & demo

* feat(ui): add shui dialog

* feat(ui): WIP add shui dialog

* feat(ui): WIP shui dialog as modal

* feat(ui): WIP imperative APIs for the shui modal

* feat(ui): imperative APIs for the shui modal/alert

* feat(ui): support imperative API alert!/confirm! return promise

* feat(ui): simplify shui components resources

* feat(ui): response layout for the demo ui page

* feat(ui): simplify colors

* feat(ui): simplify colors

* feat(ui): simplify colors

* refactor(ui): WIP Adapt to the new button component

* refactor(ui): polish new button & colors

* fix(ui): the new theme color for the plugin settings nav item link

* fix(ui): blockquote colors

* enhance(ui): more custom colors for shui button

* feat(ui): WIP make logseq green as a theme color

* enhance(ui): polish logseq classical theme color

* fix(ui): theme details of all pages

* enhance(ui): polish logseq theme color for dark mode

* fix(ui): missing table style

* refactor(ui): simplify the all shui buttons & shortcuts for the cmdk component

* fix(ui): missing file

* refactor(ui): clear up stuff

* fix(ui): theme color related issues

* enhance(ui): polish button style

* enhance(ui): polish the keymap setting pane

* fix(ui): hint button from the cmdk pane footer

* fix(ui): logseq colors for the storybook

* enhance(ui): stories for the shui components

* fix(ui): active color for the old toggle component

* enhance(ui): keep the constant size of the settings pane

* fix(ui): polish search input for the plugins pane

* enhance(ui): polish number list bullet colors

* feat(ui): add shui tooltip component

* chore: build ui

* chore(ui): clean up resources

* fix: lint

* fix: lint

* fix: lint

* fix(ui): alignment of the keymap title from the settings pane

* fix: tests

* fix(ui): close button for the classic notification tip

* fix(ui): polish toaster viewport

* enhance(ui): polish the ghost button colors

* enhance(ui): demos for tips

* fix(ui): accent colors for the rc-datepicker

* fix(ui): accent color for the menu item

* refactor(ui): remove unless code for the accent colors

* enhance(ui): polish pdf viewer background color for the accent color mode

* fix: lint

* fix: lint

* fix: lint

* enhance(ui): support button with the custom href link

* enhance(ui): polish aside setting items

* enhance(ui): polish accent color for buttons

* enhance(ui): polish all pages

---------

Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com>
2023-12-26 16:31:37 +08:00
Andelf
c4919145ba chore(release): bump version 0.10.3 0.10.3 2023-12-25 21:02:59 +08:00
Tienson Qin
54d2cd6a0d fix: tests and warnings 2023-12-25 17:36:46 +08:00
Tienson Qin
b134954e2c Move all search related impl to worker
This commit also introduced a new ns `frontend.db.async` for
async queries.
2023-12-25 17:05:44 +08:00
Hidekazu Kubota
a8b2cd5525 fix: force percent encoding to distinguish pages with a title starting with a dot from a hidden file. 2023-12-25 17:05:21 +08:00
Tienson Qin
e6a464e64f enhance: creating built-in properties when creating db conn 2023-12-23 17:53:57 +08:00
Tienson Qin
bdd8aa05c5 fix: can't ref block
related to LOG-2956
2023-12-23 16:20:47 +08:00
Tienson Qin
c92316b46a fix: remove properties background when in block container 2023-12-23 15:43:12 +08:00
Tienson Qin
9073c18a08 fix: search 2023-12-23 15:35:21 +08:00
Tienson Qin
ad360b1f56 fix: :page/:date closed values can't be edited
Fixed LOG-2958

Clicking a page will redirect to its own page, we can polish it later
with a page popup
2023-12-23 15:30:42 +08:00
Tienson Qin
87b66e56b3 fix: :default/:url closed values can't be clicked
Fixes LOG-2957
2023-12-23 14:47:07 +08:00
Tienson Qin
40550cfa4c Merge branch 'master' into feat/db 2023-12-23 14:19:20 +08:00
Tienson Qin
018e1ae8ee Merge branch 'master' into feat/db 2023-12-23 14:18:25 +08:00