From 845a6f89da61029d7b574d8dee45a622107dca27 Mon Sep 17 00:00:00 2001 From: Jakub Holy Date: Thu, 28 Sep 2023 09:17:28 +0200 Subject: [PATCH] Add requires to fix tests, cleanup --- src/sci/configs/fulcro/algorithms/data_targeting.cljs | 5 +++-- src/sci/configs/fulcro/algorithms/denormalize.cljs | 4 ++-- src/sci/configs/fulcro/algorithms/form_state.cljs | 5 +++-- src/sci/configs/fulcro/algorithms/lookup.cljs | 5 +++-- src/sci/configs/fulcro/algorithms/merge.cljs | 4 ++-- src/sci/configs/fulcro/algorithms/normalize.cljs | 5 +++-- src/sci/configs/fulcro/algorithms/react_interop.cljs | 5 +++-- src/sci/configs/fulcro/algorithms/tempid.cljs | 5 +++-- src/sci/configs/fulcro/application.cljs | 2 +- src/sci/configs/fulcro/data_fetch.cljs | 2 +- src/sci/configs/fulcro/dom.cljs | 2 +- src/sci/configs/fulcro/mutations.cljs | 3 ++- src/sci/configs/fulcro/networking/http_remote.cljs | 5 +++-- 13 files changed, 30 insertions(+), 22 deletions(-) diff --git a/src/sci/configs/fulcro/algorithms/data_targeting.cljs b/src/sci/configs/fulcro/algorithms/data_targeting.cljs index c481fd9..50edaf1 100644 --- a/src/sci/configs/fulcro/algorithms/data_targeting.cljs +++ b/src/sci/configs/fulcro/algorithms/data_targeting.cljs @@ -1,7 +1,8 @@ (ns sci.configs.fulcro.algorithms.data-targeting - (:require [sci.core :as sci])) + (:require [sci.core :as sci] + [com.fulcrologic.fulcro.algorithms.data-targeting])) (def sci-ns (sci/create-ns 'com.fulcrologic.fulcro.algorithms.data-targeting)) -(def ns-def (sci/copy-ns com.fulcrologic.fulcro.algorithms.data-targeting sci-ns {})) +(def ns-def (sci/copy-ns com.fulcrologic.fulcro.algorithms.data-targeting sci-ns)) (def namespaces {'com.fulcrologic.fulcro.algorithms.data-targeting ns-def}) \ No newline at end of file diff --git a/src/sci/configs/fulcro/algorithms/denormalize.cljs b/src/sci/configs/fulcro/algorithms/denormalize.cljs index df2babe..9afd502 100644 --- a/src/sci/configs/fulcro/algorithms/denormalize.cljs +++ b/src/sci/configs/fulcro/algorithms/denormalize.cljs @@ -1,9 +1,9 @@ (ns sci.configs.fulcro.algorithms.denormalize (:require [sci.core :as sci] - [com.fulcrologic.fulcro.algorithms.denormalize :as fdn])) + com.fulcrologic.fulcro.algorithms.denormalize)) (def sci-ns (sci/create-ns 'com.fulcrologic.fulcro.algorithms.denormalize)) -(def ns-def (sci/copy-ns com.fulcrologic.fulcro.algorithms.denormalize sci-ns {})) +(def ns-def (sci/copy-ns com.fulcrologic.fulcro.algorithms.denormalize sci-ns)) (def namespaces {'com.fulcrologic.fulcro.algorithms.denormalize ns-def}) \ No newline at end of file diff --git a/src/sci/configs/fulcro/algorithms/form_state.cljs b/src/sci/configs/fulcro/algorithms/form_state.cljs index 3a052ae..34db1bc 100644 --- a/src/sci/configs/fulcro/algorithms/form_state.cljs +++ b/src/sci/configs/fulcro/algorithms/form_state.cljs @@ -1,7 +1,8 @@ (ns sci.configs.fulcro.algorithms.form-state - (:require [sci.core :as sci])) + (:require [sci.core :as sci] + com.fulcrologic.fulcro.algorithms.form-state)) (def sci-ns (sci/create-ns 'com.fulcrologic.fulcro.algorithms.form-state)) - (def ns-def (sci/copy-ns com.fulcrologic.fulcro.algorithms.form-state sci-ns {})) + (def ns-def (sci/copy-ns com.fulcrologic.fulcro.algorithms.form-state sci-ns)) (def namespaces {'com.fulcrologic.fulcro.algorithms.form-state ns-def}) \ No newline at end of file diff --git a/src/sci/configs/fulcro/algorithms/lookup.cljs b/src/sci/configs/fulcro/algorithms/lookup.cljs index 3908f2f..4882de8 100644 --- a/src/sci/configs/fulcro/algorithms/lookup.cljs +++ b/src/sci/configs/fulcro/algorithms/lookup.cljs @@ -1,8 +1,9 @@ (ns sci.configs.fulcro.algorithms.lookup - (:require [sci.core :as sci])) + (:require [sci.core :as sci] + com.fulcrologic.fulcro.algorithms.lookup)) (def sci-ns (sci/create-ns 'com.fulcrologic.fulcro.algorithms.lookup)) -(def ns-def (sci/copy-ns com.fulcrologic.fulcro.algorithms.lookup sci-ns {})) +(def ns-def (sci/copy-ns com.fulcrologic.fulcro.algorithms.lookup sci-ns)) (def namespaces {'com.fulcrologic.fulcro.algorithms.lookup ns-def}) \ No newline at end of file diff --git a/src/sci/configs/fulcro/algorithms/merge.cljs b/src/sci/configs/fulcro/algorithms/merge.cljs index 40d01ba..d95ba10 100644 --- a/src/sci/configs/fulcro/algorithms/merge.cljs +++ b/src/sci/configs/fulcro/algorithms/merge.cljs @@ -1,9 +1,9 @@ (ns sci.configs.fulcro.algorithms.merge (:require [sci.core :as sci] - [com.fulcrologic.fulcro.algorithms.merge :as merge])) + com.fulcrologic.fulcro.algorithms.merge)) (def sci-ns (sci/create-ns 'com.fulcrologic.fulcro.algorithms.merge)) -(def ns-def (sci/copy-ns com.fulcrologic.fulcro.algorithms.merge sci-ns {})) +(def ns-def (sci/copy-ns com.fulcrologic.fulcro.algorithms.merge sci-ns)) (def namespaces {'com.fulcrologic.fulcro.algorithms.merge ns-def}) \ No newline at end of file diff --git a/src/sci/configs/fulcro/algorithms/normalize.cljs b/src/sci/configs/fulcro/algorithms/normalize.cljs index 31f24e9..552086c 100644 --- a/src/sci/configs/fulcro/algorithms/normalize.cljs +++ b/src/sci/configs/fulcro/algorithms/normalize.cljs @@ -1,8 +1,9 @@ (ns sci.configs.fulcro.algorithms.normalize - (:require [sci.core :as sci])) + (:require [sci.core :as sci] + com.fulcrologic.fulcro.algorithms.normalize)) (def sci-ns (sci/create-ns 'com.fulcrologic.fulcro.algorithms.normalize)) -(def ns-def (sci/copy-ns com.fulcrologic.fulcro.algorithms.normalize sci-ns {})) +(def ns-def (sci/copy-ns com.fulcrologic.fulcro.algorithms.normalize sci-ns)) (def namespaces {'com.fulcrologic.fulcro.algorithms.normalize ns-def}) \ No newline at end of file diff --git a/src/sci/configs/fulcro/algorithms/react_interop.cljs b/src/sci/configs/fulcro/algorithms/react_interop.cljs index e7998dd..f375886 100644 --- a/src/sci/configs/fulcro/algorithms/react_interop.cljs +++ b/src/sci/configs/fulcro/algorithms/react_interop.cljs @@ -1,7 +1,8 @@ (ns sci.configs.fulcro.algorithms.react-interop - (:require [sci.core :as sci])) + (:require [sci.core :as sci] + com.fulcrologic.fulcro.algorithms.react-interop)) (def sci-ns (sci/create-ns 'com.fulcrologic.fulcro.algorithms.react-interop)) -(def ns-def (sci/copy-ns com.fulcrologic.fulcro.algorithms.react-interop sci-ns {})) +(def ns-def (sci/copy-ns com.fulcrologic.fulcro.algorithms.react-interop sci-ns)) (def namespaces {'com.fulcrologic.fulcro.algorithms.react-interop ns-def}) \ No newline at end of file diff --git a/src/sci/configs/fulcro/algorithms/tempid.cljs b/src/sci/configs/fulcro/algorithms/tempid.cljs index f088bf7..3fc7b08 100644 --- a/src/sci/configs/fulcro/algorithms/tempid.cljs +++ b/src/sci/configs/fulcro/algorithms/tempid.cljs @@ -1,7 +1,8 @@ (ns sci.configs.fulcro.algorithms.tempid - (:require [sci.core :as sci])) + (:require [sci.core :as sci] + com.fulcrologic.fulcro.algorithms.tempid)) (def sci-ns (sci/create-ns 'com.fulcrologic.fulcro.algorithms.tempid)) - (def ns-def (sci/copy-ns com.fulcrologic.fulcro.algorithms.tempid sci-ns {})) + (def ns-def (sci/copy-ns com.fulcrologic.fulcro.algorithms.tempid sci-ns)) (def namespaces {'com.fulcrologic.fulcro.algorithms.tempid ns-def}) \ No newline at end of file diff --git a/src/sci/configs/fulcro/application.cljs b/src/sci/configs/fulcro/application.cljs index 7abd323..7da3cc8 100644 --- a/src/sci/configs/fulcro/application.cljs +++ b/src/sci/configs/fulcro/application.cljs @@ -4,6 +4,6 @@ [com.fulcrologic.fulcro.application])) (def sci-ns (sci/create-ns 'com.fulcrologic.fulcro.application)) -(def ns-def (sci/copy-ns com.fulcrologic.fulcro.application sci-ns {})) +(def ns-def (sci/copy-ns com.fulcrologic.fulcro.application sci-ns)) (def namespaces {'com.fulcrologic.fulcro.application ns-def}) \ No newline at end of file diff --git a/src/sci/configs/fulcro/data_fetch.cljs b/src/sci/configs/fulcro/data_fetch.cljs index d914ce3..3778a91 100644 --- a/src/sci/configs/fulcro/data_fetch.cljs +++ b/src/sci/configs/fulcro/data_fetch.cljs @@ -1,7 +1,7 @@ (ns sci.configs.fulcro.data-fetch (:require [sci.core :as sci] - [com.fulcrologic.fulcro.data-fetch])) + com.fulcrologic.fulcro.data-fetch)) (def sci-ns (sci/create-ns 'com.fulcrologic.fulcro.data-fetch)) diff --git a/src/sci/configs/fulcro/dom.cljs b/src/sci/configs/fulcro/dom.cljs index 2fe582b..018ce32 100644 --- a/src/sci/configs/fulcro/dom.cljs +++ b/src/sci/configs/fulcro/dom.cljs @@ -1,7 +1,7 @@ (ns sci.configs.fulcro.dom (:require [sci.core :as sci] - [com.fulcrologic.fulcro.dom] + com.fulcrologic.fulcro.dom ["react-dom/server" :as react-dom-server])) (defn render-to-str [e] diff --git a/src/sci/configs/fulcro/mutations.cljs b/src/sci/configs/fulcro/mutations.cljs index eea9d16..16a6a92 100644 --- a/src/sci/configs/fulcro/mutations.cljs +++ b/src/sci/configs/fulcro/mutations.cljs @@ -3,7 +3,8 @@ [cljs.spec.alpha :as s] [clojure.string :as str] [sci.core :as sci] - [com.fulcrologic.fulcro.algorithms.lookup :as ah])) + [com.fulcrologic.fulcro.algorithms.lookup :as ah] + com.fulcrologic.fulcro.mutations)) (defn ^:sci/macro declare-mutation [_&form _&env name target-symbol] `(def ~name (m/->Mutation '~target-symbol))) diff --git a/src/sci/configs/fulcro/networking/http_remote.cljs b/src/sci/configs/fulcro/networking/http_remote.cljs index 8571c00..4fe0134 100644 --- a/src/sci/configs/fulcro/networking/http_remote.cljs +++ b/src/sci/configs/fulcro/networking/http_remote.cljs @@ -1,7 +1,8 @@ (ns sci.configs.fulcro.networking.http-remote - (:require [sci.core :as sci])) + (:require [sci.core :as sci] + com.fulcrologic.fulcro.networking.http-remote)) (def sci-ns (sci/create-ns 'com.fulcrologic.fulcro.networking.http-remote)) - (def ns-def (sci/copy-ns com.fulcrologic.fulcro.networking.http-remote sci-ns {})) + (def ns-def (sci/copy-ns com.fulcrologic.fulcro.networking.http-remote sci-ns)) (def namespaces {'com.fulcrologic.fulcro.networking.http-remote ns-def}) \ No newline at end of file