diff --git a/frontend/dev/bench/core.cljs b/frontend/dev/bench/core.cljs index 511f93212..8b8f1ba94 100644 --- a/frontend/dev/bench/core.cljs +++ b/frontend/dev/bench/core.cljs @@ -6,7 +6,7 @@ (enable-console-print!) -;; --- Index Initialization Bechmark +;; --- Index Initialization Benchmark (defn- bench-init-10000 [] @@ -60,9 +60,9 @@ (bench-knn-160000) (bench-knn-360000)) -;; --- Accuracity tests +;; --- Accuracy tests -(defn test-accuracity +(defn test-accuracy [] (let [tree (k/create)] (k/setup tree 4000 4000 20 20) @@ -101,7 +101,7 @@ (bench-knn) (= type "kd-test") - (test-accuracity) + (test-accuracy) (= type "interval") (test-interval) diff --git a/frontend/resources/styles/common/dependencies/mixin.scss b/frontend/resources/styles/common/dependencies/mixin.scss index 0b553dcbc..fa7948845 100644 --- a/frontend/resources/styles/common/dependencies/mixin.scss +++ b/frontend/resources/styles/common/dependencies/mixin.scss @@ -64,7 +64,7 @@ -/// This mixing allow you to add placeholder colors in all availables browsers +/// This mixing allow you to add placeholder colors in all available browsers /// @group Mixins @mixin placeholder { diff --git a/frontend/resources/styles/common/framework.scss b/frontend/resources/styles/common/framework.scss index adaf7f138..ee2edb90f 100644 --- a/frontend/resources/styles/common/framework.scss +++ b/frontend/resources/styles/common/framework.scss @@ -431,7 +431,7 @@ ul.slider-dots { } } - &.miliseconds { + &.milliseconds { &::after { content: "ms"; diff --git a/frontend/resources/styles/main/partials/loader.scss b/frontend/resources/styles/main/partials/loader.scss index 210d0c8c3..d29443d7f 100644 --- a/frontend/resources/styles/main/partials/loader.scss +++ b/frontend/resources/styles/main/partials/loader.scss @@ -31,7 +31,7 @@ svg#loader-icon { animation: pen3 2s infinite ease; } -// btn prncil loader +// btn pencil loader svg#loader-pencil { fill: $color-primary-darker; width: 60px; diff --git a/frontend/src/app/config.cljs b/frontend/src/app/config.cljs index 3dbe3e127..7e8e4c5c1 100644 --- a/frontend/src/app/config.cljs +++ b/frontend/src/app/config.cljs @@ -85,7 +85,7 @@ (def browser (atom (parse-browser))) (def platform (atom (parse-platform))) -;; mantain for backward compatibility +;; maintain for backward compatibility (let [login-with-ldap (obj/get global "penpotLoginWithLDAP" false) registration (obj/get global "penpotRegistrationEnabled" true)] (when login-with-ldap diff --git a/frontend/src/app/main/data/users.cljs b/frontend/src/app/main/data/users.cljs index 3356c0ae9..e3965278a 100644 --- a/frontend/src/app/main/data/users.cljs +++ b/frontend/src/app/main/data/users.cljs @@ -206,7 +206,7 @@ (defn login-from-register "Event used mainly for mark current session as logged-in in after the - user sucessfully registred using third party auth provider (in this + user successfully registered using third party auth provider (in this case we dont need to verify the email)." [] (ptk/reify ::login-from-register @@ -351,7 +351,7 @@ (defn mark-onboarding-as-viewed ([] (mark-onboarding-as-viewed nil)) ([{:keys [version]}] - (ptk/reify ::mark-oboarding-as-viewed + (ptk/reify ::mark-onboarding-as-viewed ptk/WatchEvent (watch [_ state _] (let [version (or version (:main @cf/version)) diff --git a/frontend/src/app/main/data/workspace.cljs b/frontend/src/app/main/data/workspace.cljs index e5e36f6ab..05d96e30d 100644 --- a/frontend/src/app/main/data/workspace.cljs +++ b/frontend/src/app/main/data/workspace.cljs @@ -1645,7 +1645,7 @@ (not= root-file-id (:current-file-id state)) (nil? (get-in state [:workspace-libraries root-file-id]))))) - ;; Procceed with the standard shape paste procediment. + ;; Proceed with the standard shape paste process. (do-paste [it state mouse-pos media] (let [page-objects (wsh/lookup-page-objects state) media-idx (d/index-by :prev-id media) @@ -1673,7 +1673,7 @@ page-id (:current-page-id state) unames (-> (wsh/lookup-page-objects state page-id) - (dwc/retrieve-used-names)) ;; TODO: move this calculation inside prepare-duplcate-changes? + (dwc/retrieve-used-names)) ;; TODO: move this calculation inside prepare-duplicate-changes? rchanges (->> (dws/prepare-duplicate-changes all-objects page-id unames selected delta) (mapv (partial process-rchange media-idx)) @@ -1799,7 +1799,7 @@ (watch [it state _] (let [page-id (get state :current-page-id) options (wsh/lookup-page-options state page-id) - previus-color (:background options)] + previous-color (:background options)] (rx/of (dch/commit-changes {:redo-changes [{:type :set-option :page-id page-id @@ -1808,7 +1808,7 @@ :undo-changes [{:type :set-option :page-id page-id :option :background - :value previus-color}] + :value previous-color}] :origin it})))))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; diff --git a/frontend/src/app/main/data/workspace/common.cljs b/frontend/src/app/main/data/workspace/common.cljs index 6cb0af4f7..cba5c0600 100644 --- a/frontend/src/app/main/data/workspace/common.cljs +++ b/frontend/src/app/main/data/workspace/common.cljs @@ -252,7 +252,7 @@ [objects selected attrs] (if (= :frame (:type attrs)) - ;; Frames are alwasy positioned on the root frame + ;; Frames are always positioned on the root frame [uuid/zero uuid/zero nil] ;; Calculate the frame over which we're drawing diff --git a/frontend/src/app/main/data/workspace/groups.cljs b/frontend/src/app/main/data/workspace/groups.cljs index 11605a13b..d192340fd 100644 --- a/frontend/src/app/main/data/workspace/groups.cljs +++ b/frontend/src/app/main/data/workspace/groups.cljs @@ -104,7 +104,7 @@ :page-id page-id})) ;; Look at the `get-empty-groups-after-group-creation` - ;; doctring to understand the real purpuse of this code + ;; docstring to understand the real purpose of this code ids-to-delete (get-empty-groups-after-group-creation objects parent-id shapes) delete-group diff --git a/frontend/src/app/main/data/workspace/libraries.cljs b/frontend/src/app/main/data/workspace/libraries.cljs index 9ba3a9a79..c93e23cc5 100644 --- a/frontend/src/app/main/data/workspace/libraries.cljs +++ b/frontend/src/app/main/data/workspace/libraries.cljs @@ -690,7 +690,7 @@ ;; update to finish, before marking this file as synced. ;; TODO: look for a more precise way of syncing this. ;; Maybe by using the stream (second argument passed to watch) - ;; to wait for the corresponding changes-commited and then proced + ;; to wait for the corresponding changes-committed and then proceed ;; with the :update-sync mutation. (rx/concat (rx/timer 3000) (rp/mutation :update-sync diff --git a/frontend/src/app/main/data/workspace/notifications.cljs b/frontend/src/app/main/data/workspace/notifications.cljs index ac5fdbe12..aa90ee6a4 100644 --- a/frontend/src/app/main/data/workspace/notifications.cljs +++ b/frontend/src/app/main/data/workspace/notifications.cljs @@ -159,7 +159,7 @@ color (get-next-color presence))) - (update-sesion [session presence] + (update-session [session presence] (-> session (assoc :id session-id) (assoc :profile-id profile-id) @@ -168,7 +168,7 @@ (update-presence [presence] (-> presence - (update session-id update-sesion presence) + (update session-id update-session presence) (d/without-nils))) ] diff --git a/frontend/src/app/main/data/workspace/path/edition.cljs b/frontend/src/app/main/data/workspace/path/edition.cljs index 9df8b6e9a..f25960d44 100644 --- a/frontend/src/app/main/data/workspace/path/edition.cljs +++ b/frontend/src/app/main/data/workspace/path/edition.cljs @@ -161,7 +161,7 @@ points (upg/content->points content)] (rx/concat - ;; This stream checks the consecutive mouse positions to do the draging + ;; This stream checks the consecutive mouse positions to do the dragging (->> points (streams/move-points-stream snap-toggled start-position selected-points) (rx/take-until stopper) diff --git a/frontend/src/app/main/data/workspace/path/helpers.cljs b/frontend/src/app/main/data/workspace/path/helpers.cljs index a7d47d238..8ce3ca9c7 100644 --- a/frontend/src/app/main/data/workspace/path/helpers.cljs +++ b/frontend/src/app/main/data/workspace/path/helpers.cljs @@ -108,7 +108,7 @@ :params position}))) (defn append-node - "Creates a new node in the path. Usualy used when drawing." + "Creates a new node in the path. Usually used when drawing." [shape position prev-point prev-handler] (let [command (next-node shape position prev-point prev-handler)] (-> shape diff --git a/frontend/src/app/main/data/workspace/path/state.cljs b/frontend/src/app/main/data/workspace/path/state.cljs index 86ac1731e..491218419 100644 --- a/frontend/src/app/main/data/workspace/path/state.cljs +++ b/frontend/src/app/main/data/workspace/path/state.cljs @@ -26,7 +26,7 @@ ks))) (defn get-path - "Retrieves the location of the path object and additionaly can pass + "Retrieves the location of the path object and additionally can pass the arguments. This location can be used in get-in, assoc-in... functions" [state & ks] (let [path-loc (get-path-location state) diff --git a/frontend/src/app/main/data/workspace/persistence.cljs b/frontend/src/app/main/data/workspace/persistence.cljs index f24d2a280..402c227fc 100644 --- a/frontend/src/app/main/data/workspace/persistence.cljs +++ b/frontend/src/app/main/data/workspace/persistence.cljs @@ -39,7 +39,7 @@ [tubax.core :as tubax])) (declare persist-changes) -(declare persist-sychronous-changes) +(declare persist-synchronous-changes) (declare shapes-changes-persisted) (declare update-persistence-status) @@ -99,7 +99,7 @@ (rx/map deref) (rx/filter library-file?) (rx/filter (complement #(empty? (:changes %)))) - (rx/map persist-sychronous-changes) + (rx/map persist-synchronous-changes) (rx/take-until (rx/delay 100 stoper))) (->> stream (rx/filter (ptk/type? ::changes-persisted)) @@ -167,7 +167,7 @@ (rx/mapcat handle-response) (rx/catch on-error))))))) -(defn persist-sychronous-changes +(defn persist-synchronous-changes [{:keys [file-id changes]}] (us/verify ::us/uuid file-id) (ptk/reify ::persist-synchronous-changes @@ -201,7 +201,7 @@ (s/def ::shapes-changes-persisted (s/keys :req-un [::revn ::cp/changes])) -(defn shapes-persited-event? [event] +(defn shapes-persisted-event? [event] (= (ptk/type event) ::changes-persisted)) (defn shapes-changes-persisted @@ -376,7 +376,7 @@ (= (:code error) :media-type-not-allowed) (rx/of (dm/error (tr "errors.media-type-not-allowed"))) - (= (:code error) :ubable-to-access-to-url) + (= (:code error) :unable-to-access-to-url) (rx/of (dm/error (tr "errors.media-type-not-allowed"))) (= (:code error) :invalid-image) @@ -486,7 +486,7 @@ ;; Media objects are blob of data to be upload (process-blobs params)) - ;; Every stream has its own sideffect. We need to ignore the result + ;; Every stream has its own sideeffect. We need to ignore the result (rx/ignore) (handle-upload-error on-error) (rx/finalize (st/emitf (dm/hide-tag :media-loading)))))))) @@ -566,7 +566,7 @@ (ptk/event ::update-frame-thumbnail {:frame-id frame-id})) (defn- extract-frame-changes - "Process a changes set in a commit to extract the frames that are channging" + "Process a changes set in a commit to extract the frames that are changing" [[event [old-objects new-objects]]] (let [changes (-> event deref :changes) @@ -643,7 +643,7 @@ (->> (rx/from no-thumb-frames) (rx/map #(update-frame-thumbnail %))) - ;; We remove the thumbnails inmediately but defer their generation + ;; We remove the thumbnails immediately but defer their generation (rx/merge (->> frame-changes (rx/take-until stopper) diff --git a/frontend/src/app/main/data/workspace/selection.cljs b/frontend/src/app/main/data/workspace/selection.cljs index ce5ff4160..2fd5a2f3c 100644 --- a/frontend/src/app/main/data/workspace/selection.cljs +++ b/frontend/src/app/main/data/workspace/selection.cljs @@ -307,7 +307,7 @@ chgs)))) (defn duplicate-changes-update-indices - "Parses the change set when duplicating to set-up the appropiate indices" + "Parses the change set when duplicating to set-up the appropriate indices" [objects ids changes] (let [process-id diff --git a/frontend/src/app/main/data/workspace/svg_upload.cljs b/frontend/src/app/main/data/workspace/svg_upload.cljs index 2b253738a..9d20efa6d 100644 --- a/frontend/src/app/main/data/workspace/svg_upload.cljs +++ b/frontend/src/app/main/data/workspace/svg_upload.cljs @@ -414,7 +414,7 @@ reducer-fn (partial add-svg-child-changes page-id objects selected frame-id shape-id svg-data)] (reduce reducer-fn [unames changes] (d/enumerate children))) - ;; Cannot create the data from curren tags + ;; Cannot create the data from current tags [unames [rchs uchs]]))) (declare create-svg-shapes) @@ -425,7 +425,7 @@ ptk/WatchEvent (watch [_ _ _] ;; Once the SVG is uploaded, we need to extract all the bitmap - ;; images and upload them separatelly, then proceed to create + ;; images and upload them separately, then proceed to create ;; all shapes. (->> (rx/from (usvg/collect-images svg-data)) (rx/map (fn [uri] diff --git a/frontend/src/app/main/data/workspace/texts.cljs b/frontend/src/app/main/data/workspace/texts.cljs index 53e123c16..8bc844b4a 100644 --- a/frontend/src/app/main/data/workspace/texts.cljs +++ b/frontend/src/app/main/data/workspace/texts.cljs @@ -300,7 +300,7 @@ ;; Stop buffering after time without resizes stop-buffer (->> resize-events (rx/debounce 100)) - ;; Agregates the resizes so only send the resize when the sizes are stable + ;; Aggregates the resizes so only send the resize when the sizes are stable resize-batch (->> resize-events (rx/take-until stop-buffer) diff --git a/frontend/src/app/main/errors.cljs b/frontend/src/app/main/errors.cljs index 39350c180..dc1459b0c 100644 --- a/frontend/src/app/main/errors.cljs +++ b/frontend/src/app/main/errors.cljs @@ -62,7 +62,7 @@ (ts/schedule (st/emitf (rt/assign-exception error)))) -;; Error that happens on an active bussines model validation does not +;; Error that happens on an active business model validation does not ;; passes an validation (example: profile can't leave a team). From ;; the user perspective a error flash message should be visualized but ;; user can continue operate on the application. diff --git a/frontend/src/app/main/snap.cljs b/frontend/src/app/main/snap.cljs index 6021730ef..707f4f713 100644 --- a/frontend/src/app/main/snap.cljs +++ b/frontend/src/app/main/snap.cljs @@ -143,7 +143,7 @@ best-snap (fn [acc val] - ;; Using a number is faster than accesing the variable. + ;; Using a number is faster than accessing the variable. ;; Keep up to date with `snap-distance-accuracy` (if (and (<= val snap-distance-accuracy) (>= val (- snap-distance-accuracy))) (min acc val) diff --git a/frontend/src/app/main/streams.cljs b/frontend/src/app/main/streams.cljs index d12b62acc..7b5201ffa 100644 --- a/frontend/src/app/main/streams.cljs +++ b/frontend/src/app/main/streams.cljs @@ -114,8 +114,8 @@ (rx/filter kbd/altKey?) (rx/map #(= :down (:type %)))) ;; Fix a situation caused by using `ctrl+alt` kind of shortcuts, - ;; that makes keyboard-alt stream registring the key pressed but - ;; on bluring the window (unfocus) the key down is never arrived. + ;; that makes keyboard-alt stream registering the key pressed but + ;; on blurring the window (unfocus) the key down is never arrived. (->> window-blur (rx/map (constantly false)))) (rx/dedupe))] @@ -130,8 +130,8 @@ (rx/filter kbd/ctrlKey?) (rx/map #(= :down (:type %)))) ;; Fix a situation caused by using `ctrl+alt` kind of shortcuts, - ;; that makes keyboard-alt stream registring the key pressed but - ;; on bluring the window (unfocus) the key down is never arrived. + ;; that makes keyboard-alt stream registering the key pressed but + ;; on blurring the window (unfocus) the key down is never arrived. (->> window-blur (rx/map (constantly false)))) (rx/dedupe))] diff --git a/frontend/src/app/main/ui.cljs b/frontend/src/app/main/ui.cljs index 515deca04..223e87115 100644 --- a/frontend/src/app/main/ui.cljs +++ b/frontend/src/app/main/ui.cljs @@ -28,7 +28,7 @@ (mf/defc on-main-error [{:keys [error] :as props}] (mf/use-effect (st/emitf (rt/assign-exception error))) - [:span "Internal application errror"]) + [:span "Internal application error"]) (mf/defc main-page {::mf/wrap [#(mf/catch % {:fallback on-main-error})]} diff --git a/frontend/src/app/main/ui/auth/recovery.cljs b/frontend/src/app/main/ui/auth/recovery.cljs index e18471d2b..5389c99e2 100644 --- a/frontend/src/app/main/ui/auth/recovery.cljs +++ b/frontend/src/app/main/ui/auth/recovery.cljs @@ -42,7 +42,7 @@ (defn- on-success [_] - (st/emit! (dm/info (tr "auth.notifications.password-changed-succesfully")) + (st/emit! (dm/info (tr "auth.notifications.password-changed-successfully")) (rt/nav :auth-login))) (defn- on-submit diff --git a/frontend/src/app/main/ui/components/fullscreen.cljs b/frontend/src/app/main/ui/components/fullscreen.cljs index 21ee1f29b..95bae7d49 100644 --- a/frontend/src/app/main/ui/components/fullscreen.cljs +++ b/frontend/src/app/main/ui/components/fullscreen.cljs @@ -37,7 +37,7 @@ (wapi/exit-fullscreen)))))))] ;; NOTE: the user interaction with F11 keyboard hot-key does not - ;; emits the `fullscreenchange` event; that event is emmited only + ;; emits the `fullscreenchange` event; that event is emitted only ;; when API is used. There are no way to detect the F11 behavior ;; in a uniform cross browser way. @@ -47,7 +47,7 @@ (fn [] (.removeEventListener js/document "fullscreenchange" change)))) - [:div.fulllscreen-wrapper {:ref container :class (dom/classnames :fullscreen @state)} + [:div.fullscreen-wrapper {:ref container :class (dom/classnames :fullscreen @state)} [:& (mf/provider fullscreen-context) {:value manager} children]])) diff --git a/frontend/src/app/main/ui/cursors.clj b/frontend/src/app/main/ui/cursors.clj index 0b63e5f57..98ee3ea51 100644 --- a/frontend/src/app/main/ui/cursors.clj +++ b/frontend/src/app/main/ui/cursors.clj @@ -25,7 +25,7 @@ ;; Remove comments (str/replace #"<\!\-\-(.*?(?=\-\->))\-\->" "") - ;; Remofe end of line + ;; Remove end of line (str/replace #"\r?\n|\r" " ") ;; Replace double quotes for single diff --git a/frontend/src/app/main/ui/dashboard.cljs b/frontend/src/app/main/ui/dashboard.cljs index 1292c6eaf..f99f8cd6b 100644 --- a/frontend/src/app/main/ui/dashboard.cljs +++ b/frontend/src/app/main/ui/dashboard.cljs @@ -113,8 +113,8 @@ ;; that the team is a implicit context variable that is ;; available using react context or accessing ;; the :current-team-id on the state. We set the key to the - ;; team-id becase we want to completly refresh all the - ;; components on team change. Many components assumess that the + ;; team-id because we want to completely refresh all the + ;; components on team change. Many components assumes that the ;; team is already set so don't put the team into mf/deps. (when team [:section.dashboard-layout {:key (:id team)} diff --git a/frontend/src/app/main/ui/dashboard/export.cljs b/frontend/src/app/main/ui/dashboard/export.cljs index 68240a79c..6b353dab9 100644 --- a/frontend/src/app/main/ui/dashboard/export.cljs +++ b/frontend/src/app/main/ui/dashboard/export.cljs @@ -100,7 +100,7 @@ (mf/use-effect (fn [] (when-not has-libraries? - ;; Start download automaticaly + ;; Start download automatically (start-export)))) [:div.modal-overlay diff --git a/frontend/src/app/main/ui/dashboard/sidebar.cljs b/frontend/src/app/main/ui/dashboard/sidebar.cljs index 827f48265..ebb9bcfb1 100644 --- a/frontend/src/app/main/ui/dashboard/sidebar.cljs +++ b/frontend/src/app/main/ui/dashboard/sidebar.cljs @@ -234,7 +234,7 @@ (let [form (fm/use-form :spec ::leave-modal-form :initial {}) members (some->> members (filterv #(not= (:id %) (:id profile)))) options (into [{:value "" - :label (tr "modals.leave-and-reassign.select-memeber-to-promote")}] + :label (tr "modals.leave-and-reassign.select-member-to-promote")}] (map #(hash-map :label (:name %) :value (str (:id %))) members)) on-cancel (st/emitf (modal/hide)) diff --git a/frontend/src/app/main/ui/dashboard/team_form.cljs b/frontend/src/app/main/ui/dashboard/team_form.cljs index 1a936b26f..d7088c030 100644 --- a/frontend/src/app/main/ui/dashboard/team_form.cljs +++ b/frontend/src/app/main/ui/dashboard/team_form.cljs @@ -25,14 +25,14 @@ (defn- on-create-success [_form response] - (let [msg "Team created successfuly"] + (let [msg "Team created successfully"] (st/emit! (dm/success msg) (modal/hide) (rt/nav :dashboard-projects {:team-id (:id response)})))) (defn- on-update-success [_form _response] - (let [msg "Team created successfuly"] + (let [msg "Team created successfully"] (st/emit! (dm/success msg) (modal/hide)))) diff --git a/frontend/src/app/main/ui/hooks.cljs b/frontend/src/app/main/ui/hooks.cljs index 484974c1d..683e27c6c 100644 --- a/frontend/src/app/main/ui/hooks.cljs +++ b/frontend/src/app/main/ui/hooks.cljs @@ -191,7 +191,7 @@ (defn use-stream - "Wraps the subscription to a strem into a `use-effect` call" + "Wraps the subscription to a stream into a `use-effect` call" ([stream on-subscribe] (use-stream stream (mf/deps) on-subscribe)) ([stream deps on-subscribe] diff --git a/frontend/src/app/main/ui/onboarding.cljs b/frontend/src/app/main/ui/onboarding.cljs index d70f63341..c2286f06c 100644 --- a/frontend/src/app/main/ui/onboarding.cljs +++ b/frontend/src/app/main/ui/onboarding.cljs @@ -393,7 +393,7 @@ (mf/defc onboarding-templates-modal {::mf/register modal/components ::mf/register-as :onboarding-templates} - ;; NOTE: the project usually comes empty, it only comes fullfilled + ;; NOTE: the project usually comes empty, it only comes fulfilled ;; when a user creates a new team just after signup. [{:keys [project-id] :as props}] (let [close-fn (mf/use-callback #(st/emit! (modal/hide))) diff --git a/frontend/src/app/main/ui/shapes/custom_stroke.cljs b/frontend/src/app/main/ui/shapes/custom_stroke.cljs index bf627751b..b88e72722 100644 --- a/frontend/src/app/main/ui/shapes/custom_stroke.cljs +++ b/frontend/src/app/main/ui/shapes/custom_stroke.cljs @@ -181,7 +181,7 @@ [:& cap-markers {:shape shape :render-id render-id}]))) -;; Outer alingmnent: display the shape in two layers. One +;; Outer alignment: display the shape in two layers. One ;; without stroke (only fill), and another one only with stroke ;; at double width (transparent fill) and passed through a mask ;; that shows the whole shape, but hides the original shape diff --git a/frontend/src/app/main/ui/shapes/embed.cljs b/frontend/src/app/main/ui/shapes/embed.cljs index 1f68376cb..34b9f7d1a 100644 --- a/frontend/src/app/main/ui/shapes/embed.cljs +++ b/frontend/src/app/main/ui/shapes/embed.cljs @@ -38,6 +38,6 @@ #(when sub (rx/dispose! sub))))) - ;; Use ref so if the urls are cached will return inmediately instead of the + ;; Use ref so if the urls are cached will return immediately instead of the ;; next render (mf/ref-val uri-data))) diff --git a/frontend/src/app/main/ui/shapes/mask.cljs b/frontend/src/app/main/ui/shapes/mask.cljs index 87fa6790b..7220aceaa 100644 --- a/frontend/src/app/main/ui/shapes/mask.cljs +++ b/frontend/src/app/main/ui/shapes/mask.cljs @@ -49,7 +49,7 @@ :in2 "SourceGraphic" :operator "in" :result "comp"}]] - ;; Clip path is necesary so the elements inside the mask won't affect + ;; Clip path is necessary so the elements inside the mask won't affect ;; the events outside. Clip hides the elements but mask doesn't (like display vs visibility) ;; we cannot use clips instead of mask because clips can only be simple shapes [:clipPath {:id (clip-id render-id mask)} diff --git a/frontend/src/app/main/ui/shapes/text.cljs b/frontend/src/app/main/ui/shapes/text.cljs index 88e48e13b..008bca557 100644 --- a/frontend/src/app/main/ui/shapes/text.cljs +++ b/frontend/src/app/main/ui/shapes/text.cljs @@ -208,7 +208,7 @@ :height (if (#{:auto-height :auto-width} grow-type) 100000 height) :style (-> (obj/new) (attrs/add-layer-props shape)) :ref ref} - ;; We use a class here because react has a bug that won't use the appropiate selector for + ;; We use a class here because react has a bug that won't use the appropriate selector for ;; `background-clip` [:style ".text-node { background-clip: text; -webkit-background-clip: text;" ] diff --git a/frontend/src/app/main/ui/viewer/handoff/attributes/text.cljs b/frontend/src/app/main/ui/viewer/handoff/attributes/text.cljs index e760b668f..2cfdda7bd 100644 --- a/frontend/src/app/main/ui/viewer/handoff/attributes/text.cljs +++ b/frontend/src/app/main/ui/viewer/handoff/attributes/text.cljs @@ -166,8 +166,8 @@ (mapv (fn [[style text]] (vector (merge txt/default-text-attrs style) text))))] (for [[idx [full-style text]] (map-indexed vector style-text-blocks)] - (let [previus-style (first (nth style-text-blocks (dec idx) nil)) - style (remove-equal-values full-style previus-style) + (let [previous-style (first (nth style-text-blocks (dec idx) nil)) + style (remove-equal-values full-style previous-style) ;; If the color is set we need to add opacity otherwise the display will not work style (cond-> style diff --git a/frontend/src/app/main/ui/workspace/shapes/frame.cljs b/frontend/src/app/main/ui/workspace/shapes/frame.cljs index 6f7504222..380dac1c7 100644 --- a/frontend/src/app/main/ui/workspace/shapes/frame.cljs +++ b/frontend/src/app/main/ui/workspace/shapes/frame.cljs @@ -50,7 +50,7 @@ ;; :style {:filter "sepia(1)"} }]))) -;; This custom deffered don't deffer rendering when ghost rendering is +;; This custom deferred don't defer rendering when ghost rendering is ;; used. (defn custom-deferred [component] diff --git a/frontend/src/app/main/ui/workspace/shapes/text.cljs b/frontend/src/app/main/ui/workspace/shapes/text.cljs index 704920fba..09fc36698 100644 --- a/frontend/src/app/main/ui/workspace/shapes/text.cljs +++ b/frontend/src/app/main/ui/workspace/shapes/text.cljs @@ -110,7 +110,7 @@ [:> shape-container {:shape shape} ;; We keep hidden the shape when we're editing so it keeps track of the size - ;; and updates the selrect acordingly + ;; and updates the selrect accordingly [:g.text-shape {:opacity (when edition? 0) :pointer-events "none"} diff --git a/frontend/src/app/main/ui/workspace/shapes/text/editor.cljs b/frontend/src/app/main/ui/workspace/shapes/text/editor.cljs index d00ea37bd..47880bac0 100644 --- a/frontend/src/app/main/ui/workspace/shapes/text/editor.cljs +++ b/frontend/src/app/main/ui/workspace/shapes/text/editor.cljs @@ -98,7 +98,7 @@ state (get state-map id empty-editor-state) self-ref (mf/use-ref) - blured (mf/use-var false) + blurred (mf/use-var false) on-key-up (fn [event] @@ -123,13 +123,13 @@ (fn [event] (dom/stop-propagation event) (dom/prevent-default event) - (reset! blured true))) + (reset! blurred true))) on-focus (mf/use-callback (mf/deps shape state) (fn [_] - (reset! blured false))) + (reset! blurred false))) prev-value (mf/use-ref state) @@ -159,7 +159,7 @@ (mf/use-callback (fn [val] (let [val (handle-change val) - val (if (true? @blured) + val (if (true? @blurred) (ted/add-editor-blur-selection val) (ted/remove-editor-blur-selection val))] (st/emit! (dwt/update-editor-state shape val))))) diff --git a/frontend/src/app/main/ui/workspace/sidebar/assets.cljs b/frontend/src/app/main/ui/workspace/sidebar/assets.cljs index 16889f759..71bc1139a 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/assets.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/assets.cljs @@ -1087,7 +1087,7 @@ (mf/defc typographies-group [{:keys [file-id prefix groups open-groups file local? selected-typographies local - editting-id on-asset-click handle-change apply-typography + editing-id on-asset-click handle-change apply-typography on-rename-group on-ungroup on-context-menu]}] (let [group-open? (get open-groups prefix true)] @@ -1113,7 +1113,7 @@ :selected? (contains? selected-typographies (:id typography)) :on-click #(on-asset-click % (:id typography) (partial apply-typography typography)) - :editting? (= editting-id (:id typography)) + :editing? (= editing-id (:id typography)) :focus-name? (= (:rename-typography local) (:id typography))}])]) (for [[path-item content] groups] @@ -1125,7 +1125,7 @@ :file file :local? local? :selected-typographies selected-typographies - :editting-id editting-id + :editing-id editing-id :local local :on-asset-click on-asset-click :handle-change handle-change @@ -1272,7 +1272,7 @@ (dwl/sync-file file-id file-id) (dwu/commit-undo-transaction))))) - editting-id (or (:rename-typography local) (:edit-typography local))] + editing-id (or (:rename-typography local) (:edit-typography local))] (mf/use-effect (mf/deps local) @@ -1301,7 +1301,7 @@ :file file :local? local? :selected-typographies selected-typographies - :editting-id editting-id + :editing-id editing-id :local local :on-asset-click (partial on-asset-click groups) :handle-change handle-change diff --git a/frontend/src/app/main/ui/workspace/sidebar/history.cljs b/frontend/src/app/main/ui/workspace/sidebar/history.cljs index 84afab2d1..d3db889a0 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/history.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/history.cljs @@ -21,7 +21,7 @@ (l/derived :workspace-undo st/state)) (defn get-object - "Searchs for a shape inside the objects list or inside the undo history" + "Searches for a shape inside the objects list or inside the undo history" [id entries objects] (let [search-deleted-shape (fn [id entries] @@ -144,7 +144,7 @@ maybe-keyword)) (defn select-entry - "Selects the entry the user will see inside a list of posible entries. + "Selects the entry the user will see inside a list of possible entries. Sometimes the result will be a combination." [candidates] (let [;; Group by id and type diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/interactions.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/interactions.cljs index 53a14ae5f..4eb073320 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/interactions.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/interactions.cljs @@ -249,7 +249,7 @@ [:div.interactions-summary {:on-click #(swap! extended-open? not)} [:div.trigger-name (event-type-name interaction)] [:div.action-summary (action-summary interaction destination)]] - [:div.elemen-set-actions {:on-click #(remove-interaction index)} + [:div.element-set-actions {:on-click #(remove-interaction index)} [:div.element-set-actions-button i/minus]] (when @extended-open? diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/text.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/text.cljs index 5f55a9ab2..8f7842c06 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/text.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/text.cljs @@ -269,12 +269,12 @@ on-convert-to-typography (fn [_] - (let [setted-values (-> (d/without-nils values) + (let [set-values (-> (d/without-nils values) (select-keys (d/concat text-font-attrs text-spacing-attrs text-transform-attrs))) - typography (merge txt/default-typography setted-values) + typography (merge txt/default-typography set-values) typography (generate-typography-name typography) id (uuid/next)] (st/emit! (dwl/add-typography (assoc typography :id id) false)) diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/typography.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/typography.cljs index b51955e96..975572524 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/typography.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/typography.cljs @@ -433,8 +433,8 @@ ;; In summary, this need to a good UX/UI/IMPL rework. (mf/defc typography-entry - [{:keys [typography read-only? selected? on-click on-change on-detach on-context-menu editting? focus-name? file]}] - (let [open? (mf/use-state editting?) + [{:keys [typography read-only? selected? on-click on-change on-detach on-context-menu editing? focus-name? file]}] + (let [open? (mf/use-state editing?) hover-detach (mf/use-state false) name-input-ref (mf/use-ref) @@ -458,10 +458,10 @@ (mf/set-ref-val! name-ref (dom/get-target-val event))))] (mf/use-effect - (mf/deps editting?) + (mf/deps editing?) (fn [] - (when editting? - (reset! open? editting?)))) + (when editing? + (reset! open? editing?)))) (mf/use-effect (mf/deps focus-name?) diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/shapes/frame.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/shapes/frame.cljs index 55435c4e7..6144856f5 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/shapes/frame.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/shapes/frame.cljs @@ -280,13 +280,13 @@ {:name "Twitter post" :width 1024 :height 512} - {:name "Youtube profile" + {:name "YouTube profile" :width 800 :height 800} - {:name "Youtube banner" + {:name "YouTube banner" :width 2560 :height 1440} - {:name "Youtube thumb" + {:name "YouTube thumb" :width 1280 :height 720} ]) diff --git a/frontend/src/app/main/ui/workspace/viewport/actions.cljs b/frontend/src/app/main/ui/workspace/viewport/actions.cljs index b5427fb4e..714b537a7 100644 --- a/frontend/src/app/main/ui/workspace/viewport/actions.cljs +++ b/frontend/src/app/main/ui/workspace/viewport/actions.cljs @@ -369,7 +369,7 @@ (/ zoom))] (dom/prevent-default event) (dom/stop-propagation event) - (if (and (not (cfg/check-platform? :macos)) ;; macos sends delta-x automaticaly, don't need to do it + (if (and (not (cfg/check-platform? :macos)) ;; macos sends delta-x automatically, don't need to do it (kbd/shift? event)) (st/emit! (dw/update-viewport-position {:x #(+ % delta-y)})) (st/emit! (dw/update-viewport-position {:x #(+ % delta-x) diff --git a/frontend/src/app/main/ui/workspace/viewport/gradients.cljs b/frontend/src/app/main/ui/workspace/viewport/gradients.cljs index 48a866875..a1b623c36 100644 --- a/frontend/src/app/main/ui/workspace/viewport/gradients.cljs +++ b/frontend/src/app/main/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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAjScaa0cU7nIAAAAASUVORK5CYII=") -#_(def checkboard "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAADFJREFUOE9jZGBgEAFifOANPknGUQMYhkkYEEgG+NMJKAwIAbwJbdQABnBCIgRoG4gAIF8IsXB/Rs4AAAAASUVORK5CYII=") +#_(def checkerboard "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAADFJREFUOE9jZGBgEAFifOANPknGUQMYhkkYEEgG+NMJKAwIAbwJbdQABnBCIgRoG4gAIF8IsXB/Rs4AAAAASUVORK5CYII=") (mf/defc gradient-color-handler [{:keys [filter-id zoom point color angle selected @@ -93,7 +93,7 @@ [:g {:filter (str/fmt "url(#%s)" filter-id) :transform (gmt/rotate-matrix angle point)} - [:image {:href checkboard + [:image {:href checkerboard :x (- (:x point) (/ gradient-square-width 2 zoom)) :y (- (:y point) (/ gradient-square-width 2 zoom)) :width (/ gradient-square-width zoom) @@ -173,7 +173,7 @@ [:g.gradient-handlers [:defs [:& gradient-line-drop-shadow-filter {:id "gradient_line_drop_shadow" :from-p from-p :to-p to-p :zoom zoom}] - [:& gradient-line-drop-shadow-filter {:id "gradient_widh_line_drop_shadow" :from-p from-p :to-p width-p :zoom zoom}] + [:& gradient-line-drop-shadow-filter {:id "gradient_width_line_drop_shadow" :from-p from-p :to-p width-p :zoom zoom}] [:& gradient-square-drop-shadow-filter {:id "gradient_square_from_drop_shadow" :point from-p :zoom zoom}] [:& gradient-square-drop-shadow-filter {:id "gradient_square_to_drop_shadow" :point to-p :zoom zoom}] [:& gradient-width-handler-shadow-filter {:id "gradient_width_handler_drop_shadow" :point width-p :zoom zoom}]] @@ -187,7 +187,7 @@ :stroke-width (/ gradient-line-stroke-width zoom)}]] (when width-p - [:g {:filter "url(#gradient_widh_line_drop_shadow)"} + [:g {:filter "url(#gradient_width_line_drop_shadow)"} [:line {:x1 (:x from-p) :y1 (:y from-p) :x2 (:x width-p) diff --git a/frontend/src/app/main/ui/workspace/viewport/selection.cljs b/frontend/src/app/main/ui/workspace/viewport/selection.cljs index 9dc30ad5d..b42a2feb7 100644 --- a/frontend/src/app/main/ui/workspace/viewport/selection.cljs +++ b/frontend/src/app/main/ui/workspace/viewport/selection.cljs @@ -179,7 +179,7 @@ )])) (mf/defc resize-side-handler - "The side handler is always rendered horizontaly and then rotated" + "The side handler is always rendered horizontally and then rotated" [{:keys [x y length align angle zoom position rotation transform on-resize]}] (let [res-point (if (#{:top :bottom} position) {:y y} diff --git a/frontend/src/app/util/dom.cljs b/frontend/src/app/util/dom.cljs index 82a94e0ed..4370501dd 100644 --- a/frontend/src/app/util/dom.cljs +++ b/frontend/src/app/util/dom.cljs @@ -44,7 +44,7 @@ (.insertAdjacentHTML head "beforeend" (str "