Commit Graph

130 Commits

Author SHA1 Message Date
charlie
3145cba42d enhance(ui): polish indent/outdent swipe icons 2022-11-08 12:02:43 +08:00
Konstantinos Kaloutas
9f4c1e853f fix: blend left block border with different bgs 2022-11-07 00:30:17 +08:00
Charlie
d53ac94bfc Enhance/pdf improvements (#6475)
Full-text search, highlights and assets alias support 
It also exposes a plugin API for highlight context menu   
    ```ts
    /**
       * Current it's only available for pdf viewer
       * @param label - displayed name of command
       * @param action - callback for the clickable item
       * @param opts - clearSelection: clear highlight selection when callback invoked
       */
      registerHighlightContextMenuItem: (
        label: string,
        action: SimpleCommandCallback,
        opts?: {
          clearSelection: boolean
        }
      ) => unknown
    ```
2022-10-09 20:44:18 +08:00
Konstantinos
6007d6061f Enhance: Color system (#6821)
* refactor: remove redundant utility classes

* chore: expose tailwind colors to css vars

* refactor: introduce error/warning/success colors

* fix: move tailwind utilities import

* fix: extend tailwind font sizes

* fix: exclude color classes from purge

* refactor: admonition component

* fix: admonition warning color

* fix: notification icon color

* fix: capitalize icon title

* chore: remove caution color

* feat: highlighting system

* chore: add color title and remove comment

* chore: add color translations

* chore: add missing bg classes

* refactor: highlight system

* fix: color id

* fix: bg color value

* fix: pdf highlight colors

* fix: resolve conflicts

* fix: class directive typo
2022-10-07 11:54:06 +08:00
charlie
0422f31130 fix(ui): color of block control arrow 2022-09-21 14:49:20 +08:00
Konstantinos Kaloutas
58b8f0ce21 fix: link color on highlighted areas 2022-09-09 12:13:56 +08:00
Konstantinos Kaloutas
fcbb09f240 feat: open image in browser if external 2022-09-05 23:11:11 +08:00
Konstantinos Kaloutas
b70648feaf enhance: styles of image overlay buttons 2022-09-05 23:11:11 +08:00
Tienson Qin
49acb54178 feat: add properties as linked references 2022-07-07 01:42:16 +08:00
Phoenix Eliot
e92af35954 Reduce flicker when moving between blocks with keyboard 2022-06-28 15:10:37 +08:00
charlie
81904156f8 enhance(ui): force inline layout of block ref elements 2022-06-09 15:25:15 +08:00
llcc
328fda29a9 enhance gestures
1. disable swipe action-bar when editing
2. resolve conflicts between selection and swipe when editing
3. Remove indent/outdent button on mobile toolbar
2022-06-06 15:58:15 +08:00
Tienson Qin
c7698ab77e Merge pull request #5088 from logseq/gesture-support-on-block
Gesture support on mobile
2022-05-30 17:48:47 +08:00
llcc
c8e1af519b tweak audio tag width 2022-05-30 16:19:24 +08:00
llcc
5a528bb335 Merge branch 'master' into gesture-support-on-block 2022-05-24 15:02:32 +08:00
Tienson Qin
6843271591 enhance: pointer cursor when selecting non-consecutive blocks 2022-05-24 00:29:29 +08:00
llcc
ee3b578d99 Merge branch 'master' into gesture-support-on-block 2022-05-23 22:07:36 +08:00
llcc
d95aa14ca5 Merge branch 'master' into disable-webview-resize 2022-05-16 19:39:18 +08:00
sawhney17
705348f370 make overflow visible 2022-05-16 19:08:29 +08:00
llcc
2c5ef73da9 Merge branch 'master' into disable-webview-resize 2022-05-16 11:17:59 +08:00
llcc
3d725f8acb allow sharing office files into Logseq on mobile (#5292)
* allow share office files into logseq on mobile
2022-05-13 16:00:17 +08:00
llcc
909530b2a5 feat(gesture): add transition when swipe 2022-05-06 16:20:00 +08:00
llcc
3865ba51ef feat(gesture): add background gradients and other styles to swipe menu 2022-05-06 16:20:00 +08:00
llcc
93e75b9d4a feat(gesture): tweat block menu style 2022-05-06 16:20:00 +08:00
llcc
1b5aef50aa feat(gesture): add second level swipe to call action bar 2022-05-06 16:20:00 +08:00
llcc
87639854ca feat(gesture): reverse direction to cancel action 2022-05-06 16:20:00 +08:00
llcc
6edb8e09b0 feat(mobile): support gestures on block element 2022-05-06 16:20:00 +08:00
llcc
b042f2f835 remove incorrect css 2022-05-05 12:16:18 +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
llcc
f4985fd8ef Feat: record audio on mobile (#4766)
* feat(audio): render audio link as component

* refactor frontend/component/block/inline

* fix audio component on mobile

* Fix(iOS): allow clock to replay audio

* feat(mobile): audio record

* add permission request code on record

* rename `editor/recording?` to `editor/record-status`

* move `get-asset-path` into handler/editor.cljs

* add android settings

* support sharing audio file from some apps

* enhance(record): insert audio link in a new block if non-editing

* feat(audio): allow cancelling record

* fix lints

* feat(iOS): add a tab bar

* tweak some css on mobile

* fix lints

* fix https://github.com/logseq/logseq/issues/4798

* enable tab bar on Android

* fix landscape height of tab bar

* add :reuse-last-block? option

* dont't show tab bar when editing mirror code

* tweak code-editor css

* increase width for more functional buttons

* fix card preview css on iPad

* add document-mode to tab bar

* remove tabbar when editing code and tweak textarea resize cursor behavior

* reduce SplashScreen launch screen duration

* don't show tabbar when editing page title

* enhance: float timer

* fix lint

* fix tabbar height on iPhone without notch

* remove .embed-page width

* fix lint

Co-authored-by: Andelf <andelf@gmail.com>
2022-04-12 20:17:54 +08:00
Yue Yang
6ef013c06e fix: cloze selector
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
2022-03-15 11:18:30 +08:00
sawhney17
b63d570a09 fix #3663 2022-02-07 09:36:55 +08:00
Peng Xiao
35b7f71254 fix: some style enhancements to block-control (#3742)
Co-authored-by: Andelf <andelf@gmail.com>
2022-01-08 20:22:59 +08:00
Tienson Qin
1cff06f347 enhance: block expand/collapse toggle
1. Display `Expand all` where there're already collapsed blocks. This applies to `Collapse all` too.
2. Make the guideline bold when hovering on it.
3. Simplify some logic
2021-12-27 18:56:02 +08:00
Peng Xiao
3924f5ced9 fix: remove incorrect tailwind apply decl 2021-12-27 10:54:49 +08:00
shidenggui
6b5d5f7df3 fix: add an explicit border for the border children to solve the overlay click problem 2021-12-26 11:20:33 +08:00
leizhe
7c1076673b fix(mobile): remove block-control hover left-margin 2021-12-21 10:55:10 +08:00
leizhe
fd7bb2c64a enhance(mobile): tweak body style 2021-12-21 10:55:10 +08:00
leizhe
969fec3c99 enhance(mobile): enhance References margin and padding 2021-12-21 10:55:10 +08:00
Tienson Qin
1539e0e806 fix: block ref style 2021-12-05 22:25:57 +08:00
Tienson Qin
0d13f9f081 Merge branch 'master' into mobile 2021-12-05 11:39:58 +08:00
leizhe
ab0e5fec0a enhance(logbook): more polishment 2021-12-02 18:18:05 +08:00
leizhe
00bc4961af enhance(logbook): show clocking data in table 2021-12-02 15:41:35 +08:00
Junyi Du
8bee44c313 refactor: remove duplicated class-name
enhance: remove change of style for multiline headings in editing

enhance: to make heading css more responsive, bind editor's heading class to editor content

adapt textarea to changable font-size
2021-11-26 21:47:07 +08:00
Tienson Qin
340818483f enhance: polish cards 2021-11-09 12:36:37 +08:00
charlie
565b3b9b9c enhance(editor): style of fallback ui 2021-11-09 10:20:35 +08:00
charlie
df40dbd4f8 enhance(editor): fallback ui of block content renderer 2021-11-09 10:20:35 +08:00
Tienson Qin
29a96a7f3e enhance: delete move-node 2021-11-04 20:30:54 +08:00
Tienson Qin
be6256d9e3 enhance: remove cards title background color 2021-10-11 20:16:43 +08:00
Tienson Qin
bd9b1afd12 fix: srs cards numbers 2021-10-11 18:51:25 +08:00