stuff is fixed.
This commit is contained in:
@@ -3,14 +3,14 @@
|
|||||||
:output-to "resources/public/js/compiled/app.js"
|
:output-to "resources/public/js/compiled/app.js"
|
||||||
:output-dir "resources/public/js/compiled/"
|
:output-dir "resources/public/js/compiled/"
|
||||||
:source-map "resources/public/js/compiled/app.js.map"
|
:source-map "resources/public/js/compiled/app.js.map"
|
||||||
:pretty-print true
|
#_#_:pretty-print true
|
||||||
:pseudo-names true
|
#_#_:pseudo-names true
|
||||||
|
|
||||||
:infer-externs true
|
:infer-externs true
|
||||||
:closure-defines {cljs.core/*global* "window"}
|
:closure-defines {cljs.core/*global* "window"}
|
||||||
:bundle-cmd {:none ["npx" "webpack" "--mode=production" :output-to
|
:bundle-cmd {:none ["npx" "webpack" "--mode=production" :output-to
|
||||||
"--output-path" :final-output-dir
|
"--output-path" :final-output-dir
|
||||||
"--output-filename" :final-output-filename]
|
"--output-filename" :final-output-filename]
|
||||||
:default ["npx" "webpack" "--mode=development" :output-to
|
:default ["npx" "webpack" "--mode=production" :output-to
|
||||||
"--output-path" :final-output-dir
|
"--output-path" :final-output-dir
|
||||||
"--output-filename" :final-output-filename]}}
|
"--output-filename" :final-output-filename]}}
|
||||||
|
|||||||
@@ -9,12 +9,11 @@
|
|||||||
[auto-ap.subs :as subs]))
|
[auto-ap.subs :as subs]))
|
||||||
(set! *warn-on-infer* true)
|
(set! *warn-on-infer* true)
|
||||||
|
|
||||||
(defonce grid-context (^js/React react/createContext "default"))
|
(defonce ^js/React.Context grid-context ( react/createContext "default"))
|
||||||
(println "creat context is" react/createContext)
|
(def ^js/React.Provider Provider (. grid-context -Provider))
|
||||||
(def ^js/React.Provider Provider (.-Provider ^js/React.Context grid-context))
|
#_(println "Provider is" Provider)
|
||||||
(println "Provider is" ^js/ReactContext Provider)
|
(def ^js/React.Consumer Consumer (. grid-context -Consumer))
|
||||||
(def ^js/React.Consumer Consumer (.-Consumer ^js/React.Context grid-context))
|
#_(println "Consumer is" Consumer)
|
||||||
(println "Consumer is" ^js/ReactContext Consumer)
|
|
||||||
|
|
||||||
(defn toggle-sort-by [params sort-key sort-name]
|
(defn toggle-sort-by [params sort-key sort-name]
|
||||||
(let [[found? sort] (reduce
|
(let [[found? sort] (reduce
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
(= :cash type) "Cash"
|
(= :cash type) "Cash"
|
||||||
(= :debit type) "Debit"
|
(= :debit type) "Debit"
|
||||||
:else (if s3-url
|
:else (if s3-url
|
||||||
[:a {:href s3-url :target "_new"} [:a.button [:span.icon [:i.fa.fa-share-square-o]]
|
[:a.button {:href s3-url :target "_new"} [:span [:span.icon [:i.fa.fa-share-square-o]]
|
||||||
[:span (str " " check-number )]]]
|
[:span (str " " check-number )]]]
|
||||||
check-number))]
|
check-number))]
|
||||||
[grid/cell {} (date->str date) ]
|
[grid/cell {} (date->str date) ]
|
||||||
@@ -70,6 +70,7 @@
|
|||||||
[:div {:style {:max-width "250px"
|
[:div {:style {:max-width "250px"
|
||||||
:text-overflow "ellipsis"
|
:text-overflow "ellipsis"
|
||||||
:white-space "nowrap"
|
:white-space "nowrap"
|
||||||
|
|
||||||
:overflow "hidden"}}
|
:overflow "hidden"}}
|
||||||
(for [invoice invoices]
|
(for [invoice invoices]
|
||||||
^{:key (:invoice-number (:invoice invoice))}
|
^{:key (:invoice-number (:invoice invoice))}
|
||||||
|
|||||||
Reference in New Issue
Block a user