-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only few namespaces are exposed so far, but it is already possible to render a trivial defsc component to a dom element. FIXME: Tests currently don't run due to problems with accessing `js/ReactDOMServer`
- Loading branch information
Showing
23 changed files
with
829 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(ns sci.configs.fulcro.algorithms.data-targeting | ||
(: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 namespaces {'com.fulcrologic.fulcro.algorithms.data-targeting ns-def}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(ns sci.configs.fulcro.algorithms.denormalize | ||
(:require | ||
[sci.core :as sci] | ||
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 namespaces {'com.fulcrologic.fulcro.algorithms.denormalize ns-def}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(ns sci.configs.fulcro.algorithms.form-state | ||
(: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 namespaces {'com.fulcrologic.fulcro.algorithms.form-state ns-def}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(ns sci.configs.fulcro.algorithms.lookup | ||
(: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 namespaces {'com.fulcrologic.fulcro.algorithms.lookup ns-def}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(ns sci.configs.fulcro.algorithms.merge | ||
(:require | ||
[sci.core :as sci] | ||
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 namespaces {'com.fulcrologic.fulcro.algorithms.merge ns-def}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(ns sci.configs.fulcro.algorithms.normalize | ||
(: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 namespaces {'com.fulcrologic.fulcro.algorithms.normalize ns-def}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(ns sci.configs.fulcro.algorithms.react-interop | ||
(: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 namespaces {'com.fulcrologic.fulcro.algorithms.react-interop ns-def}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(ns sci.configs.fulcro.algorithms.tempid | ||
(: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 namespaces {'com.fulcrologic.fulcro.algorithms.tempid ns-def}) |
18 changes: 18 additions & 0 deletions
18
src/sci/configs/fulcro/algorithms/tx_processing/synchronous_tx_processing.cljs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
(ns sci.configs.fulcro.algorithms.tx-processing.synchronous-tx-processing | ||
(:require [sci.core :as sci] | ||
[com.fulcrologic.fulcro.algorithms.tx-processing.synchronous-tx-processing :as stx])) | ||
|
||
(defn ^:sci/macro in-transaction [_&form _&env app-sym & body] | ||
`(let [id# (:com.fulcrologic.fulcro.application/id ~app-sym)] | ||
(swap! stx/apps-in-tx update id# conj (stx/current-thread-id)) | ||
(try | ||
~@body | ||
(finally | ||
(swap! apps-in-tx update id# pop))))) | ||
|
||
(def sci-ns (sci/create-ns 'com.fulcrologic.fulcro.algorithms.tx-processing.synchronous-tx-processing)) | ||
(def ns-def (assoc (sci/copy-ns com.fulcrologic.fulcro.algorithms.tx-processing.synchronous-tx-processing sci-ns | ||
{:exclude [in-transaction]}) | ||
'in-transaction (sci/copy-var in-transaction sci-ns))) | ||
|
||
(def namespaces {'com.fulcrologic.fulcro.algorithms.tx-processing.synchronous-tx-processing ns-def}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(ns sci.configs.fulcro.application | ||
(:require | ||
[sci.core :as sci] | ||
[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 namespaces {'com.fulcrologic.fulcro.application ns-def}) |
Oops, something went wrong.