From d4f177ffddefd9dc94dcac47297ae1f63e78ce7b Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Mon, 8 Jan 2024 09:58:08 +0100 Subject: [PATCH] :lipstick: Format code --- .../app/main/data/workspace/libraries.cljs | 32 +++++++++---------- frontend/src/app/main/ui/viewer/inspect.cljs | 6 ++-- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/frontend/src/app/main/data/workspace/libraries.cljs b/frontend/src/app/main/data/workspace/libraries.cljs index 601322d27..c2a624a2a 100644 --- a/frontend/src/app/main/data/workspace/libraries.cljs +++ b/frontend/src/app/main/data/workspace/libraries.cljs @@ -580,11 +580,11 @@ (ptk/reify ::detach-components ptk/WatchEvent (watch [_ _ _] - (let [undo-id (js/Symbol)] - (rx/concat - (rx/of (dwu/start-undo-transaction undo-id)) - (rx/map #(detach-component %) (rx/from ids)) - (rx/of (dwu/commit-undo-transaction undo-id))))))) + (let [undo-id (js/Symbol)] + (rx/concat + (rx/of (dwu/start-undo-transaction undo-id)) + (rx/map #(detach-component %) (rx/from ids)) + (rx/of (dwu/commit-undo-transaction undo-id))))))) (def detach-selected-components (ptk/reify ::detach-selected-components @@ -797,12 +797,12 @@ (watch [_ state _] (let [current-file-id (:current-file-id state) undo-id (js/Symbol)] - (rx/of - (dwu/start-undo-transaction undo-id) - (sync-file current-file-id file-id :components component-id undo-group) - (when (not= current-file-id file-id) - (sync-file file-id file-id :components component-id undo-group)) - (dwu/commit-undo-transaction undo-id))))))) + (rx/of + (dwu/start-undo-transaction undo-id) + (sync-file current-file-id file-id :components component-id undo-group) + (when (not= current-file-id file-id) + (sync-file file-id file-id :components component-id undo-group)) + (dwu/commit-undo-transaction undo-id))))))) (defn update-component-thumbnail "Update the thumbnail of the component with the given id, in the @@ -960,15 +960,15 @@ find-frames (fn [change] - (->> (ch/frames-changed file change) - (map #(assoc %1 :page-id (:page-id change))))) + (->> (ch/frames-changed file change) + (map #(assoc %1 :page-id (:page-id change))))) updated-frames (->> changes - :redo-changes - (mapcat find-frames) - distinct)] + :redo-changes + (mapcat find-frames) + distinct)] (log/debug :msg "SYNC-FILE finished" :js/rchanges (log-changes (:redo-changes changes) diff --git a/frontend/src/app/main/ui/viewer/inspect.cljs b/frontend/src/app/main/ui/viewer/inspect.cljs index 602ca1286..110317c18 100644 --- a/frontend/src/app/main/ui/viewer/inspect.cljs +++ b/frontend/src/app/main/ui/viewer/inspect.cljs @@ -95,11 +95,11 @@ :local local :page page}] [:div#inspect-svg-wrapper {:class (stl/css :inspect-svg-wrapper) - :data-value (pr-str (:id frame)) - :on-click handle-select-frame} + :data-value (pr-str (:id frame)) + :on-click handle-select-frame} [:& viewer-pagination {:index index :num-frames (count (:frames page)) :left-bar true :right-bar true}] [:div#inspect-svg-container {:class (stl/css :inspect-svg-container) - :ref inspect-svg-container-ref} + :ref inspect-svg-container-ref} [:& render-frame-svg {:frame frame :page page :local local :size size}]]] [:div {:class (stl/css-case :sidebar-container true