[英]How to animate a dom tree in re-frame without recreating that whole tree?
在我的 re-frame 應用程序中,我有一個非常重要的動畫 svg。 目前,每個 animation “frame” 意味着重新創建整個 svg,盡管只有一個元素的style="display: none"設置為style="display: inherit"以使其可見,另一個元素以相同的方式隱 ...
[英]How to animate a dom tree in re-frame without recreating that whole tree?
在我的 re-frame 應用程序中,我有一個非常重要的動畫 svg。 目前,每個 animation “frame” 意味着重新創建整個 svg,盡管只有一個元素的style="display: none"設置為style="display: inherit"以使其可見,另一個元素以相同的方式隱 ...
[英]How to explain this arrangement for :cljsbuild on a Clojure/ClojureScript project? And how to extend it for Continuous Deployment?
我一直在處理這個名為clojurescript.csv的 Clojure/Clojurescript 項目。 在project.clj 文件中,有一種特殊的:cljsbuild構造形式,我還沒有見過。 :cljsbuild {:builds [{:id "whitespace" ...
[英]Is there any difference on how to declare a ClojureScript dependency on shadow-cljs.edn file?
我一直在從事 Clojure/ClojureScript 項目,有些事情讓我很感興趣。 在shadow-cljs.edn文件中,有一個依賴項聲明。 正如您在下面看到的,其中一些具有“全名”聲明,表示為username/repository-name 。 一個例子是venantius/account ...
[英]Why does updating my nested Reagent component not update it?
我在 Reagent + ShadowCLJS 中有一個三層嵌套的組件(在不同的文件中)。 編輯和保存此文件時,更改不會立即顯示,直到編輯和保存父組件。 例如,NAV 嵌套在 DASHBOARD 中,而 DASHBOARD 本身嵌套在 APP 中。 編輯和保存 DASHBOARD 也會導致瀏覽器中 ...
[英]PivotTableUI in clojurescript from react-pivottable on change interface not render new status
組件使用初始數據正確加載,但是當從界面更改狀態時數據不會更改,我做錯了什么? ...
[英]How can I pass a body request in a GET request [ClojureScript]
我正在嘗試將正文請求傳遞到 GET 中。 不,它不能是 url 中的參數,它在這種特定情況下不起作用,端點必須接收請求正文,即使它是 GET。 我嘗試使用https://github.com/JulianBirch/cljs-ajax和https://github.com/day8/re-fram ...
[英]How can ı do read excel with sheetjs in Clojurescript?
我有一個 excel 文件。 我導入了 sheetjs ( https://sheetjs.com/ )。 我想閱讀表格數據。 我如何在 Clojurescript 中使用 sheetjs 讀取 excel? 用https寫的項目://github.com/day8/re-frame ...
[英]Reloading re-frame component from repl
我目前正在試用 ClojureScript,我有點困惑。 我的印象是我可以通過在 REPL 中評估它們來重新加載單個組件。 我已經設置了 nREPL 和 nvim conjure。 (我也試過 vscode calva) 我可以評估類似(js/alert "test")的內容並在瀏覽器中獲得警報, ...
[英]Using javascript datetime in clojurescript
我想在 Clojurescript 中顯示日期和時間,但我嘗試過的任何方法都不起作用。 誰能幫忙舉個例子? 我嘗試以不同的語法方式使用 JavaScript 數據時間,但都沒有用。 謝謝你。 更新我厭倦了這些,但它們沒有用: 我只是不會在屏幕上顯示當前日期和時間。 在.cljs文件的[:h3]標簽內 ...
[英]Thread/sleep in clojurescript
大家好。 這是events.cljs文件中的一段代碼。 單擊該按鈕時,頁面上有一個我想要的按鈕,頁面上會出現一個文本,並在 3 秒后消失。 在這里,我想在單擊按鈕后將文本關聯到數據庫,並在 3 秒后將其分離,但是從Thread/sleep行中出現找不到Thread命名空間的錯誤。 誰能幫我解決這個問 ...
[英]How to avoid duplication of dependency declaration in a Clojure/ClojureScript project?
我一直在使用 Clojure、ClojureScript、lein、shadow-cljs、re-frame、reagent、Emacs 和 CIDER 來處理 Clojure/ClojureScript 動態 web 應用程序項目。 目前,依賴項正在project.clj 、 shadow-cl ...
[英]Syntax error compiling in Clojure leiningen
我有一個名為cheshire-cat的項目,我在其中嘗試使用命令lein trampoline cljsbuild repl-rhino運行基於 Rhino 的 ClojureScript REPL。 它在線程“main”中給出異常並終止。 問題是什么? 以下是終端 output: 這是我的proj ...
[英]Using an anonymous Js function in a go block
我正在嘗試在 clojurescript/reagent 中執行一些定時 animation 並且我正在嘗試使用 core.async 來按順序實現一系列定時步驟。 我正在使用第三方 js 反應庫,因此,調用它的函數我使用的形式是 (fn [] ^js (.function (.something ...
[英]clojurescript / hiccup - inline css to set dispatch to a hover action
我正在嘗試 hover 文本並將另一個文本的:display更改為none ,以使其消失。 我用過:onMouseOver ,但它不起作用,因為我認為它需要 this.value 。 那么,關於我該怎么做的任何想法? 在這種情況下,我需要內聯 CSS。 這就是我所擁有的: 在事件文件中: 在子文件中 ...
[英]Why is "shadow-cljs compile app" returning "build complete" but the process keeps running without exit?
我一直在使用 Clojure、ClojureScript、lein、shadow-cljs、re-frame、reagent、Emacs 和 CIDER 來處理 Clojure/ClojureScript 動態 web 應用程序項目。 通常,我通過執行shadow-cljs watch app來構 ...
[英]Making an atom of a subscription requires derefing twice. Problem only occurs when using defonce
當我使用def保存原子時,它按預期工作。 但是當我使用defonce時,我必須 deref 兩次: @@my-state 。 我想使用defonce ,因為我希望在重新加載期間保留 state。 這按預期工作 這需要兩個 derefs 來訪問值 訂閱碼 ...
[英]How to use react-markdown library with helix (Clojurescript)?
我的目標是在我的 cljs 網頁上呈現 markdown 文件。 我正在使用什么: org.clojure/clojurescript 1.11.60 紫丁香鎮/螺旋 0.1.6 nodejs 18.9.1 和紗線 1.22.19 我試過的:;; blog.cljs (ns mypage.bl ...
[英]getting required namespace not available error on Reagent Clojurescript project
我正在嘗試從core.cljs ://github.com/reagent-project/reagent-frontend-template中分解 core.cljs 中的一些頁面組件,但出現此錯誤: The required namespace "reagent-project.utils.pa ...
[英]What is the difference between using package-lock.json or shadow.cljs.build-report to track changes in dependencies?
我一直在使用 Clojure、ClojureScript、lein、shadow-cljs、re-frame、試劑、Emacs 和 CIDER 來處理 Clojure/ClojureScript 動態 Z2567A5EC9705EB7AC2C984033E 項目。 通常,我通過在 Emacs 中執 ...
[英]Why is "shadow-cljs cljs-repl app" still working while cider-jack-in-cljs is retrieving an error?
我一直在使用 Clojure、ClojureScript、lein、shadow-cljs、re-frame、試劑、Emacs 和 CIDER 來處理 Clojure/ClojureScript 動態 Z2567A5EC9705EB7AC2C984033E 項目。 通常,我通過在 Emacs 中執 ...