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
(ns crudis.ui.hooks.use-fetcher | |
(:require | |
["react-router-dom" :refer [useLoaderData useFetcher]] | |
[cljs-bean.core :refer [bean]] | |
)) | |
(defn use-fetcher | |
[] | |
(let [fetcher (useFetcher) | |
first-page (useLoaderData) |
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
(ns crudis.ui.routes.countries | |
(:require | |
["react-router-dom" :refer [useLoaderData]] | |
[crudis.util.helix :refer [defnc]] | |
[helix-window.fixed-size-list :as fsl] | |
[helix.core :as hx :refer [$ <> fnc]] | |
[helix.dom :as d :refer [div]] | |
[paqueta.fetch :as fetch] | |
[promesa.core :as p] | |
)) |
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
(ns crudis.client | |
(:require | |
["react-dom" :as rdom] | |
["react-dom/client" :refer [createRoot]] | |
["react-router-dom" :refer [DataBrowserRouter Route]] | |
[crudis.util.helix :refer [defnc]] | |
[crudis.ui.root :as root] | |
[crudis.ui.routes.countries :as countries] | |
[helix.core :refer [$]] | |
[helix.dom :as d] |
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
(ns crudis.ui.root | |
(:require | |
["@tanstack/react-virtual" :refer [useVirtualizer]] | |
["react" :as React] | |
[goog.object :as gobj] | |
[helix.core :as hx :refer [defnc $ <> fnc]] | |
[helix.dom :as d :refer [div a button]] | |
[helix.hooks :as hooks :refer [use-state]] | |
[paqueta.fetch :as fetch] ;; lambdaisland fetch | |
)) |
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
(ns jsx-to-helix.core | |
(:require | |
[clojure.data.xml :as xml] | |
[clojure.edn :as edn] | |
[clojure.java.io :as io] | |
[clojure.pprint :refer [pprint]] | |
[clojure.walk :as walk] | |
[superstring.core :as str] | |
) | |
(:import [clojure.data.xml.node Element])) |
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
(ns stitches.componentes.heading | |
(:require | |
["lodash.merge" :as js-merge] | |
["react" :as React] | |
[applied-science.js-interop :as j] | |
[crudis.util.helix :refer [defnc]] | |
[helix.core :refer [$]] | |
[stitches.componentes.text :refer [Text]] | |
)) |
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
(defnc App | |
[] | |
(j/let [[state set-state] (hooks/use-state {} ) | |
^:js {:keys [register | |
handleSubmit | |
watch | |
errors] :as obj} (rhf/useForm)] | |
; (.log js/console obj) | |
; (.log js/console (type state)) | |
(d/form |
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
(ns app.helix_autocomplete | |
(:require | |
["@material-ui/lab/Autocomplete" :default Autocomplete] | |
["@material-ui/core/TextField" :default TextField] | |
["react" :as r] | |
[goog.object :as gobj] | |
)) | |
(defnc AutocompleteHelix |
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
(ns app.ui.contratualizacao.regra | |
(:require | |
["@material-ui/lab/Autocomplete" :default Autocomplete] | |
["@material-ui/core/TextField" :default TextField] | |
["react" :as r] | |
[goog.object :as gobj] | |
)) | |
($ ^:native | |
Autocomplete |