18 Apr 2022 |
| @wybpip:matrix.org left the room. | 08:58:00 |
1 May 2022 |
| @wybpip:matrix.org joined the room. | 18:51:58 |
| @wybpip:matrix.org left the room. | 18:51:58 |
13 May 2022 |
seancorfield | disabled an integration in this channel: matrix-bridge | 19:27:54 |
20 Jun 2022 |
| @better_sleeping:converser.eu joined the room. | 13:47:21 |
| @better_sleeping:converser.eu left the room. | 13:47:23 |
12 Jul 2022 |
| @dylanpalmertokens:matrix.org joined the room. | 12:57:45 |
13 Jul 2022 |
| @dylanpalmertokens:matrix.org left the room. | 10:09:44 |
29 Jul 2022 |
| @sis3020:matrix.org joined the room. | 03:33:39 |
@sis3020:matrix.org | Come play the top mmo game https://blackhatseo.win/ voycpc play now | 03:33:40 |
| @sis3020:matrix.org left the room. | 09:26:47 |
14 Oct 2022 |
| danvingo joined the room. | 15:38:16 |
danvingo | hi - anyone using hiccups to do server side rendering with a react app? | 15:38:16 |
danvingo | the hiccups/html macro is placing the symbol directly in the output instead of resolving it | 15:38:42 |
danvingo | (defn index [csrf-token app-src]
(log/info "Serving index.html")
(hiccups/html
[:head {:lang "en"}
[:title "Application"]
[:meta {:charset "utf-8"}]
[:meta {:name "viewport" :content "width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"}]
[:link {:rel "shortcut icon" :href "data:image/x-icon;," :type "image/x-icon"}]
[:link {:href "http://localhost:8499/styles/index.css" :rel "stylesheet"}]
[:script (str "var fulcro_network_csrf_token = '" csrf-token "';")]]
[:body app-src
;[:div {:dangerously-set-inner-HTML {:__html app-src}}]
[:script {:src (get-js-filename)}]]))
gives me string output like:
/head body div div section class="todoapp" header class="header" h1 | 15:39:50 |
danvingo | and using set-inner-html results in :
body div dangerously-set-inner-HTML=\" __html=\"app-src\"\" < | 15:40:32 |
15 Oct 2022 |
danvingo | following up on that question - TIL you can render html using JSX:
https://codesandbox.io/s/kind-sammet-j56ro?file=/src/Html.js | 15:24:40 |
29 Apr 2023 |
| imlostlmao joined the room. | 14:17:34 |
10 Jul 2023 |
| goda.abishek joined the room. | 10:31:36 |
goda.abishek | hi - has anyone gotten sente to work with macchiato? I am trying to add sente to my macchiato app and I get a "TypeError: goog.global.addListener is not a function " error and points to taoensso/sente.cljs:1304:4 I am newb to both macchiato and sente (and clojurescript to some extent too). Any suggestions how to debug this? Or if the combination is just too hard for a newb like to me to get working, do suggest simpler alternatives. Thanks in advance! | 10:31:36 |
goda.abishek | So this seems like an issue that got introduced in 1.18.x based on git blame for that file in github. Hopefully I can get the rest of it working in 1.17.x version. | 10:43:49 |
goda.abishek | That is not sufficient, though. I am getting an error that Client's ring request doesn't have a client id. Does your server have the necessary keyword ring middleware . I have added wrap-params provided by macchiato. Looks like that is not sufficient. Any other suggestions? Thanks! | 11:35:59 |
11 Jul 2023 |
goda.abishek | Turns out I have to add wrap-keyword-params middleware from macchiato and it seems to work as expected. I hope this helps any others that face these errors. Thanks! | 07:51:07 |
23 Aug 2023 |
| jacob429 joined the room. | 15:14:07 |
jacob429 | Any pointers on how to consume the IncomingMessage object. I am not familiar with Node and very little with JavaScript | 15:14:07 |
jacob429 | I ended up creating my own middleware:
(defn wrap-body
[handler]
(fn [{:keys [body] :as request} respond raise]
(if (string? body)
(handler request respond raise)
(.pipe ^js body
(concat-stream.
(fn [body]
(handler
(assoc request :body (.toString body "utf8"))
respond
raise))))))) | 15:23:50 |
5 Sep 2023 |
| @marlene:perthchat.org removed their display name marlene. | 08:25:21 |
| @marlene:perthchat.org left the room. | 10:25:51 |
2 Oct 2023 |
| @temp4096:matrix.org joined the room. | 07:32:56 |
3 Oct 2023 |
| @temp4096:matrix.org left the room. | 09:24:42 |