Commit Graph

12723 Commits (fix/invalid-page-ref)

Author SHA1 Message Date
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
Andelf 74f56002b3 fix: do not use asar 2023-12-23 12:45:07 +08:00
charlie 3934efb537 fix(api): safety key string for the simple command key value 2023-12-23 12:30:37 +08:00
Andelf b7c2a7b8f5 fix(ci): provide fallback for build-stage action 2023-12-22 11:28:52 +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
Andelf 5231fcf431 fix(test): fs name collision 2023-12-19 18:24:50 +08:00
Andelf b8c213d36b fix(test): additional await for search box 2023-12-19 18:24:50 +08:00
Andelf 9a92ec1900 fix: demo whiteboard 2023-12-19 18:24:50 +08:00
Andelf 22da19126f fix(test): refine check state 2023-12-19 18:24:50 +08:00
Andelf b15652fdd9 chore(release): ios version 0.10.2 for TF release 2023-12-19 11:09:37 +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
Tienson Qin 621faf90a4 fix: don't treat a block as pre block if it has auto heading 2023-12-15 17:10:16 +08: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 81eab963e6 limit clone functionality 2023-12-14 14:42:03 -05:00
Konstantinos Kaloutas 6e67df9e37 add shortcuts and fix naming 2023-12-14 14:42:03 -05:00
Konstantinos Kaloutas 760cb8e314 refactor 2023-12-14 14:42:03 -05:00
Konstantinos Kaloutas cc3c0197da clean refs on cloned shape 2023-12-14 14:42:03 -05:00
Konstantinos Kaloutas 844fa15041 handle cloning and positioning 2023-12-14 14:42:03 -05:00
Konstantinos Kaloutas 0869a10cef enhance clone handles 2023-12-14 14:42:03 -05:00
Konstantinos Kaloutas fcb7435b3b filter out non geometry shapes 2023-12-14 14:42:03 -05:00
Konstantinos Kaloutas 98b615b22d (wip): introduce clone handles 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
Andelf de13df4722 chore(deps): upgrade electron v27 2023-12-13 20:53:13 +08: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
Andelf 49f08d44a1 enhance(build): release .zip for windows 2023-12-11 19:01:26 +08:00
Andelf 285463fddb enhance(build): use asar, add windows zip release 2023-12-11 19:01:26 +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