mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 18:36:43 +00:00
enhance(clock): support recording in repeated block // cleanup unused namespaces (#2777)
* enhance(clock): support recording in repeated block * cleanup: unused namespaces * cleanup: missing-else-branch if --> when * enhance: wider search results window for mobile browser * fix: namespace requirement
This commit is contained in:
@@ -788,6 +788,7 @@
|
||||
(reduce (fn [content [old new]]
|
||||
(string/replace content old new))
|
||||
content))
|
||||
content (string/replace-first content "DOING" "TODO")
|
||||
content (clock/clock-out format content)
|
||||
content (drawer/insert-drawer
|
||||
format content "logbook"
|
||||
@@ -2809,7 +2810,7 @@
|
||||
existed-file-path)
|
||||
has-file-path? (not (string/blank? existed-file-path))
|
||||
has-image? (js/window.apis.isClipboardHasImage)]
|
||||
(if (or has-image? has-file-path?)
|
||||
(when (or has-image? has-file-path?)
|
||||
[:asset (js/File. #js[] (if has-file-path? existed-file-path "image.png"))]))
|
||||
|
||||
(when (and items (.-length items))
|
||||
|
||||
Reference in New Issue
Block a user