Commit Graph

8612 Commits

Author SHA1 Message Date
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
2b0d956626 enhance: add border to bullet instead of block container 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 2023-12-25 21:02:59 +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
Vivianne
981b1ef80f fix(i18n): Fix french translation typo 2023-12-23 12:46:21 +08:00
charlie
3934efb537 fix(api): safety key string for the simple command key value 2023-12-23 12:30:37 +08:00
Andelf
8871bee48d chore(release): bump version 0.10.2 2023-12-21 23:15:26 +08:00
charlie
ef3dc26db9 fix(pdf): set up initial listeners for the pdf viewer inside system window 2023-12-19 21:28:07 +08:00
queeup
4b3d4eaa7c enhance(i18n): update Turkish translation 2023-12-18 08:38:11 -05:00
eliovir
515cf66683 enhance: Update French translations (#10706)
* Update French translations

Add missing strings

* Update fr.edn
2023-12-18 08:36:48 -05:00
Gabriel Horner
8dde33e915 chore: Update datascript to latest version before our fork
Also updated db/entity because d/entity returns nil for nonexistent ids since 1.4.2
2023-12-15 09:42:52 +08:00
Konstantinos Kaloutas
6e67df9e37 add shortcuts and fix naming 2023-12-14 14:42:03 -05:00
Vivianne
73cc4e3aa5 enhance(i18n): add more localization support for linked references view (#10643)
* Add more localization to the references UI, fix English grammar

* Version 2 which uses tongue properly!

* Fix bugs after testing!

* So sorry, missed one line

* Untested fixes

* Fix typo

---------

Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com>
2023-12-13 16:44:48 -05:00
Richard Garčár
b7ba2e8f7e i18n: update slovak translation 2023-12-13 16:25:21 -05:00
Gabriel Horner
ef874ceb5d fix: remove failing test introduced by #10674
CI should be green on master to allow for 3rd party contributions
2023-12-13 16:02:20 -05:00
Charlie
d1362dd771 fix(UI): incorrect graph node edge color from the theme accent color (#10693)
* fix(ui): response layout for the check-updates els from the settings row

* fix(ui): incorrect graph node edge color from the theme accent color
2023-12-13 20:16:00 +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
Andelf
eb22435280 fix(editor): pasting of html list 2023-12-12 13:29:10 +08:00
Tienson Qin
52cb22c4c5 fix: can't click block or page full content search results 2023-12-11 14:20:48 +08:00
Tienson Qin
4010c8baa0 fix: add back full page content search 2023-12-11 14:20:48 +08:00
charlie
ea196dfe67 fix(editor): incorrect auto save when paste batch blocks 2023-12-11 14:20:15 +08:00
季艺
6fab02581d Add missing zh-cn/zh-hant translations 2023-12-10 18:19:31 +08:00
Andelf
26c633f825 fix(android): back to default color handling 2023-12-10 18:18:14 +08:00
Andelf
16ccd3d9c0 fix(android): catch color parsing error 2023-12-10 18:18:14 +08:00
Andelf
9f265abd70 fix(android): sync navbar and actionbar color when theme change
Close #10580
2023-12-10 18:18:14 +08:00
Tienson Qin
6fbf6c0520 fix: slow page search 2023-12-09 12:03:30 +08:00
Tienson Qin
0185c2cbb9 chore: remove invalid token instrument 2023-12-08 20:18:42 +08:00
Andelf
2547eb3653 fix(cmdk): missing current-page search impl
Close #10658
2023-12-08 19:23:57 +08:00
Andelf
099cad5b64 fix(fs): avoid EEXISTS error reporting for mkdir 2023-12-08 19:20:32 +08:00
Andelf
2318e850dd enhance(draw): save img assets 2023-12-08 19:20:32 +08:00
charlie
3183dc7857 fix(ui): incorrect IME composition detection 2023-12-08 15:23:22 +08:00
eliovir
3257c1f4fa Update French translation (#10647)
* Update French translation

Add missing strings and correct typography.

* Update fr.edn
2023-12-07 09:06:46 -05:00
Vivianne
aa4c240739 fix: missing spaces in fr and es (#10644) 2023-12-06 20:18:20 +08:00
Andelf
990c7a55ee chore(release): release 0.10.1 (#10640) 2023-12-06 18:38:07 +08:00
Tienson Qin
5fa41a1479 fix: don't clear search filter when searching for namespace page
Also, esc will not clear the filter if the input is not empty
2023-12-06 17:39:31 +08:00
Tienson Qin
eb90314410 fix: search in sidebar conflicts with block selection
Fixes #10611
2023-12-06 17:39:31 +08:00
Tienson Qin
17f10edb39 fix: ignore binary files and other formats from watcher 2023-12-06 17:39:31 +08:00
Tienson Qin
1861aa1697 fix: search for files can crush Logseq
Fixes #10610
2023-12-06 17:39:31 +08:00
Tienson Qin
c1bf1d97ad fix: search remove some edn files
Fixes #10609
2023-12-06 17:39:31 +08:00
Charlie
e56b300aa0 fix(ui): theme color related issues (#10638)
* fix(ui): accent color doesn't apply to block references link #10619
* enhance(ui): polish details for the keymaps setting
2023-12-05 22:52:43 +08:00
ksqsf
bfe7f5e826 fix: lint 2023-12-04 13:46:04 -05:00