clojurescript

2024-10-14T12:38:49.196309Z

Hi. Anyone tried to set up shadow-clj with gitpod? It seems websocket is not properly served by https when gitpod serving application

2024-10-15T08:22:57.065229Z

For those who also facing the same issue solution can be found in fulcron workshop github project.

meya wudafu 2024-10-14T20:12:17.612089Z

Hi, trying to use a JS library (https://brianium.github.io/watermarkjs/) from CLJs (re-frame project), I tried like this: (:require ["watermarkjs" :as watermark]) and do:

(-> (watermark/watermark #js ["/img/field.jpg"])
    (.image (-> (watermark/watermark.text.lowerRight "MyPhoto" "28px serif" "#fff" 0.5)))
    (.then (fn [img]
             (-> (js/document.getElementById "text")
                 (.appendChild img)))))
error: TypeError: module$node_modules$watermarkjs$dist$watermark.watermark is not a function. (In 'module$node_modules$watermarkjs$dist$watermark.watermark(["1.jpg"])', 'module$node_modules$watermarkjs$dist$watermark.watermark' is undefined) so, mainly the question is, how to correctly interact with JS library? Thanks

thheller 2024-10-14T20:13:44.183059Z

that is telling you that the watermark library does not have a named export named watermark

thheller 2024-10-14T20:13:54.961289Z

instead of watermark/watermark try just watermark?

thheller 2024-10-14T20:14:58.329139Z

or potentially it is a default export. not entirely clear from the docs what this package uses since I cannot fine an example of an import anywhere

thheller 2024-10-14T20:15:59.767069Z

looks like a dead abandoned lib anyway? the repo is archived