mirror of
https://github.com/penpot/penpot.git
synced 2025-05-29 12:16:10 +02:00
📎 Fix unrelated linter issues.
This commit is contained in:
parent
c394495a26
commit
7b487e1bc3
6 changed files with 11 additions and 13 deletions
|
@ -10,7 +10,6 @@
|
||||||
{:analyze-call
|
{:analyze-call
|
||||||
{app.common.data/export hooks.export/export
|
{app.common.data/export hooks.export/export
|
||||||
potok.core/reify hooks.export/potok-reify
|
potok.core/reify hooks.export/potok-reify
|
||||||
cljs.core/specify! hooks.export/clojure-specify
|
|
||||||
app.util.services/defmethod hooks.export/service-defmethod
|
app.util.services/defmethod hooks.export/service-defmethod
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
|
@ -368,7 +368,7 @@
|
||||||
(assoc-in [:workspace-local :transform] :resize)))
|
(assoc-in [:workspace-local :transform] :resize)))
|
||||||
|
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(watch [it state stream]
|
(watch [_ state stream]
|
||||||
(let [initial-position @ms/mouse-position
|
(let [initial-position @ms/mouse-position
|
||||||
stoper (rx/filter ms/mouse-up? stream)
|
stoper (rx/filter ms/mouse-up? stream)
|
||||||
layout (:workspace-layout state)
|
layout (:workspace-layout state)
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
(specify! state
|
(specify! state
|
||||||
cljs.core/IFn
|
cljs.core/IFn
|
||||||
(-invoke
|
(-invoke
|
||||||
([it val]
|
([_ val]
|
||||||
(if val
|
(if val
|
||||||
(wapi/request-fullscreen (mf/ref-val container))
|
(wapi/request-fullscreen (mf/ref-val container))
|
||||||
(wapi/exit-fullscreen)))))))]
|
(wapi/exit-fullscreen)))))))]
|
||||||
|
|
|
@ -85,31 +85,30 @@
|
||||||
(mf/ref-val state-ref))
|
(mf/ref-val state-ref))
|
||||||
|
|
||||||
IReset
|
IReset
|
||||||
(-reset! [it new-value]
|
(-reset! [_ new-value]
|
||||||
(if (nil? new-value)
|
(if (nil? new-value)
|
||||||
(mf/set-ref-val! state-ref (get-state))
|
(mf/set-ref-val! state-ref (get-state))
|
||||||
(mf/set-ref-val! state-ref new-value))
|
(mf/set-ref-val! state-ref new-value))
|
||||||
(render inc))
|
(render inc))
|
||||||
|
|
||||||
ISwap
|
ISwap
|
||||||
(-swap! [self f]
|
(-swap! [_ f]
|
||||||
(let [f (wrap-update-fn f opts)]
|
(let [f (wrap-update-fn f opts)]
|
||||||
(mf/set-ref-val! state-ref (f (mf/ref-val state-ref)))
|
(mf/set-ref-val! state-ref (f (mf/ref-val state-ref)))
|
||||||
(render inc)))
|
(render inc)))
|
||||||
|
|
||||||
|
|
||||||
(-swap! [self f x]
|
(-swap! [_ f x]
|
||||||
(let [f (wrap-update-fn f opts)]
|
(let [f (wrap-update-fn f opts)]
|
||||||
(mf/set-ref-val! state-ref (f (mf/ref-val state-ref) x))
|
(mf/set-ref-val! state-ref (f (mf/ref-val state-ref) x))
|
||||||
(render inc)))
|
(render inc)))
|
||||||
|
|
||||||
|
(-swap! [_ f x y]
|
||||||
(-swap! [self f x y]
|
|
||||||
(let [f (wrap-update-fn f opts)]
|
(let [f (wrap-update-fn f opts)]
|
||||||
(mf/set-ref-val! state-ref (f (mf/ref-val state-ref) x y))
|
(mf/set-ref-val! state-ref (f (mf/ref-val state-ref) x y))
|
||||||
(render inc)))
|
(render inc)))
|
||||||
|
|
||||||
(-swap! [self f x y more]
|
(-swap! [_ f x y more]
|
||||||
(let [f (wrap-update-fn f opts)]
|
(let [f (wrap-update-fn f opts)]
|
||||||
(mf/set-ref-val! state-ref (apply f (mf/ref-val state-ref) x y more))
|
(mf/set-ref-val! state-ref (apply f (mf/ref-val state-ref) x y more))
|
||||||
(render inc)))))
|
(render inc)))))
|
||||||
|
|
|
@ -27,12 +27,12 @@
|
||||||
(extend-protocol IBodyData
|
(extend-protocol IBodyData
|
||||||
globals/FormData
|
globals/FormData
|
||||||
(-get-body-data [it] it)
|
(-get-body-data [it] it)
|
||||||
(-update-headers [it headers]
|
(-update-headers [_ headers]
|
||||||
(dissoc headers "content-type" "Content-Type"))
|
(dissoc headers "content-type" "Content-Type"))
|
||||||
|
|
||||||
default
|
default
|
||||||
(-get-body-data [it] it)
|
(-get-body-data [it] it)
|
||||||
(-update-headers [it headers] headers))
|
(-update-headers [_ headers] headers))
|
||||||
|
|
||||||
(defn translate-method
|
(defn translate-method
|
||||||
[method]
|
[method]
|
||||||
|
|
|
@ -157,11 +157,11 @@
|
||||||
|
|
||||||
(extend-protocol IPrintWithWriter
|
(extend-protocol IPrintWithWriter
|
||||||
DateTime
|
DateTime
|
||||||
(-pr-writer [p writer opts]
|
(-pr-writer [p writer _]
|
||||||
(-write writer (str/fmt "#stks/datetime \"%s\"" (format p :iso))))
|
(-write writer (str/fmt "#stks/datetime \"%s\"" (format p :iso))))
|
||||||
|
|
||||||
Duration
|
Duration
|
||||||
(-pr-writer [p writer opts]
|
(-pr-writer [p writer _]
|
||||||
(-write writer (str/fmt "#stks/duration \"%s\"" (format p :iso)))))
|
(-write writer (str/fmt "#stks/duration \"%s\"" (format p :iso)))))
|
||||||
|
|
||||||
(defn- resolve-format
|
(defn- resolve-format
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue