work in progress.
This commit is contained in:
@@ -2,10 +2,15 @@
|
||||
:target :bundle
|
||||
:output-to "resources/public/js/compiled/app.js"
|
||||
:output-dir "resources/public/js/compiled/"
|
||||
:source-map "resources/public/js/compiled/app.js.map"
|
||||
:pretty-print true
|
||||
:pseudo-names true
|
||||
|
||||
:infer-externs true
|
||||
:bundle-cmd {:none ["npx" "webpack" "--mode=development" :output-to
|
||||
:closure-defines {cljs.core/*global* "window"}
|
||||
:bundle-cmd {:none ["npx" "webpack" "--mode=production" :output-to
|
||||
"--output-path" :final-output-dir
|
||||
"--output-filename" :final-output-filename]
|
||||
:default ["npx" "webpack" "--mode=production" :output-to
|
||||
:default ["npx" "webpack" "--mode=development" :output-to
|
||||
"--output-path" :final-output-dir
|
||||
"--output-filename" :final-output-filename]}}
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
[auto-ap.history :as p]
|
||||
[bidi.bidi :as bidi]))
|
||||
|
||||
(set! *warn-on-infer* true)
|
||||
|
||||
(defn dev-setup []
|
||||
(when true
|
||||
(enable-console-print!)
|
||||
|
||||
@@ -7,10 +7,14 @@
|
||||
[auto-ap.views.pages.data-page :as data-page]
|
||||
[auto-ap.views.components.buttons :as buttons]
|
||||
[auto-ap.subs :as subs]))
|
||||
(set! *warn-on-infer* true)
|
||||
|
||||
(defonce grid-context (react/createContext "default"))
|
||||
(def Provider (.-Provider grid-context))
|
||||
(def Consumer (.-Consumer grid-context))
|
||||
(defonce grid-context (^js/React react/createContext "default"))
|
||||
(println "creat context is" react/createContext)
|
||||
(def ^js/React.Provider Provider (.-Provider ^js/React.Context grid-context))
|
||||
(println "Provider is" ^js/ReactContext Provider)
|
||||
(def ^js/React.Consumer Consumer (.-Consumer ^js/React.Context grid-context))
|
||||
(println "Consumer is" ^js/ReactContext Consumer)
|
||||
|
||||
(defn toggle-sort-by [params sort-key sort-name]
|
||||
(let [[found? sort] (reduce
|
||||
|
||||
Reference in New Issue
Block a user