mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 03:16:37 +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:
@@ -1,15 +1,14 @@
|
||||
(ns frontend.components.plugins
|
||||
(:require [rum.core :as rum]
|
||||
[frontend.state :as state]
|
||||
[cljs-bean.core :as bean]
|
||||
[frontend.ui :as ui]
|
||||
[frontend.util :as util]
|
||||
[electron.ipc :as ipc]
|
||||
[promesa.core :as p]
|
||||
(:require [cljs-bean.core :as bean]
|
||||
[clojure.string :as string]
|
||||
[frontend.components.svg :as svg]
|
||||
[frontend.handler.notification :as notification]
|
||||
[frontend.handler.plugin :as plugin-handler]
|
||||
[clojure.string :as string]))
|
||||
[frontend.state :as state]
|
||||
[frontend.ui :as ui]
|
||||
[frontend.util :as util]
|
||||
[promesa.core :as p]
|
||||
[rum.core :as rum]))
|
||||
|
||||
(rum/defc installed-themes
|
||||
< rum/reactive
|
||||
@@ -24,14 +23,14 @@
|
||||
(let [current-selected (= selected (:url opt))]
|
||||
[:div.it.flex.px-3.py-2.mb-2.rounded-sm.justify-between
|
||||
{:key (:url opt)
|
||||
:class [(if current-selected "is-selected")]
|
||||
:class [(when current-selected "is-selected")]
|
||||
:on-click #(do (js/LSPluginCore.selectTheme (if current-selected nil (clj->js opt)))
|
||||
(state/set-modal! nil))}
|
||||
[:section
|
||||
[:strong.block (:name opt)]
|
||||
[:small.opacity-30 (:description opt)]]
|
||||
[:small.flex-shrink-0.flex.items-center.opacity-10
|
||||
(if current-selected "current")]]))]))
|
||||
(when current-selected "current")]]))]))
|
||||
|
||||
(rum/defc unpacked-plugin-loader
|
||||
[unpacked-pkg-path]
|
||||
@@ -108,7 +107,7 @@
|
||||
[:div.de
|
||||
[:strong svg/settings-sm]
|
||||
[:ul.menu-list
|
||||
[:li {:on-click #(if usf (js/apis.openPath usf))} "Open settings"]
|
||||
[:li {:on-click #(when usf (js/apis.openPath usf))} "Open settings"]
|
||||
[:li {:on-click #(js/apis.openPath url)} "Open plugin package"]
|
||||
[:li {:on-click
|
||||
#(let [confirm-fn
|
||||
|
||||
Reference in New Issue
Block a user