Merge remote-tracking branch 'origin/staging' into develop

This commit is contained in:
Andrey Antukh 2022-09-28 12:16:06 +02:00
commit 7303d311d5
283 changed files with 1548 additions and 1252 deletions

View file

@ -7,7 +7,7 @@
(ns app.main.ui.components.code-block
(:require
["highlight.js" :as hljs]
[rumext.alpha :as mf]))
[rumext.v2 :as mf]))
(mf/defc code-block [{:keys [code type]}]
(let [block-ref (mf/use-ref)]

View file

@ -9,7 +9,7 @@
[app.util.color :as uc]
[app.util.dom :as dom]
[app.util.i18n :as i18n :refer [tr]]
[rumext.alpha :as mf]))
[rumext.v2 :as mf]))
(defn gradient-type->string [type]
(case type

View file

@ -13,7 +13,7 @@
[app.util.keyboard :as kbd]
[app.util.object :as obj]
[goog.events :as events]
[rumext.alpha :as mf])
[rumext.v2 :as mf])
(:import goog.events.EventType))
(defn clean-color

View file

@ -15,7 +15,7 @@
[app.util.i18n :as i18n :refer [tr]]
[app.util.object :as obj]
[goog.object :as gobj]
[rumext.alpha :as mf]))
[rumext.v2 :as mf]))
(mf/defc context-menu
{::mf/wrap-props false}

View file

@ -10,7 +10,7 @@
[app.util.timers :as timers]
[app.util.webapi :as wapi]
[beicon.core :as rx]
[rumext.alpha :as mf]))
[rumext.v2 :as mf]))
(mf/defc copy-button [{:keys [data on-copied]}]
(let [just-copied (mf/use-state false)]

View file

@ -12,7 +12,7 @@
[app.util.keyboard :as kbd]
[goog.events :as events]
[goog.object :as gobj]
[rumext.alpha :as mf])
[rumext.v2 :as mf])
(:import goog.events.EventType))
(mf/defc dropdown'

View file

@ -10,7 +10,7 @@
[app.util.dom :as dom]
[app.util.keyboard :as kbd]
[app.util.timers :as timers]
[rumext.alpha :as mf]))
[rumext.v2 :as mf]))
(mf/defc editable-label
[{:keys [value on-change on-cancel editing? disable-dbl-click? class-name] :as props}]

View file

@ -15,7 +15,7 @@
[app.util.dom :as dom]
[app.util.keyboard :as kbd]
[app.util.timers :as timers]
[rumext.alpha :as mf]))
[rumext.v2 :as mf]))
(mf/defc editable-select
[{:keys [value type options class on-change placeholder on-blur] :as params}]

View file

@ -8,7 +8,7 @@
(:require
[app.main.store :as st]
[app.util.dom :as dom]
[rumext.alpha :as mf]))
[rumext.v2 :as mf]))
(mf/defc file-uploader
{::mf/forward-ref true}

View file

@ -17,7 +17,7 @@
[cljs.core :as c]
[clojure.string]
[cuerdas.core :as str]
[rumext.alpha :as mf]))
[rumext.v2 :as mf]))
(def form-ctx (mf/create-context nil))
(def use-form fm/use-form)

View file

@ -16,7 +16,7 @@
[app.util.simple-math :as sm]
[cuerdas.core :as str]
[goog.events :as events]
[rumext.alpha :as mf])
[rumext.v2 :as mf])
(:import goog.events.EventType))
(mf/defc numeric-input

View file

@ -10,7 +10,7 @@
[app.common.uuid :as uuid]
[app.main.ui.components.dropdown :refer [dropdown]]
[app.main.ui.icons :as i]
[rumext.alpha :as mf]))
[rumext.v2 :as mf]))
(mf/defc select [{:keys [default-value options class on-change]}]
(let [state (mf/use-state {:id (uuid/next)

View file

@ -7,7 +7,7 @@
(ns app.main.ui.components.shape-icon
(:require
[app.main.ui.icons :as i]
[rumext.alpha :as mf]))
[rumext.v2 :as mf]))
(mf/defc element-icon

View file

@ -8,7 +8,7 @@
(:require
[app.common.data :as d]
[cuerdas.core :as str]
[rumext.alpha :as mf]))
[rumext.v2 :as mf]))
(mf/defc tab-element
{::mf/wrap-props false}