diff --git a/src/renderer/frame/events.cljs b/src/renderer/frame/events.cljs index 8eaeeacc..135397c9 100644 --- a/src/renderer/frame/events.cljs +++ b/src/renderer/frame/events.cljs @@ -34,13 +34,13 @@ (rf/reg-event-db ::zoom-in [persist] - (fn [db [_ _]] + (fn [db [_]] (h/zoom-by db (/ 1 (:zoom-sensitivity db))))) (rf/reg-event-db ::zoom-out [persist] - (fn [db [_ _]] + (fn [db [_]] (h/zoom-by db (:zoom-sensitivity db)))) (rf/reg-event-db diff --git a/src/renderer/utils/attribute.cljs b/src/renderer/utils/attribute.cljs index ff962cb0..601edc42 100644 --- a/src/renderer/utils/attribute.cljs +++ b/src/renderer/utils/attribute.cljs @@ -8,9 +8,11 @@ [renderer.element.hierarchy :as element.hierarchy] [renderer.utils.bcd :as bcd])) -(defonce mdn-data (js->clj mdn :keywordize-keys true)) +(def mdn-data + "https://github.com/mdn/data/blob/main/docs/updating_css_json.md" + (js->clj mdn :keywordize-keys true)) -(defn- enhance-data-readability +(defn enhance-data-readability [property k] (cond-> property (and (get property k) (string? (get property k))) diff --git a/src/renderer/utils/compatibility.cljs b/src/renderer/utils/compatibility.cljs index 6537f606..be48b7d7 100644 --- a/src/renderer/utils/compatibility.cljs +++ b/src/renderer/utils/compatibility.cljs @@ -4,8 +4,8 @@ [renderer.document.db :refer [PersistedDocument]] [renderer.utils.migrations :as migrations])) -;; https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string (def ver-regex + "https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string" #"(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$") (def Version