rnbguy
rnbguy
DDeno
Created by rnbguy on 8/22/2023 in #help
puppeteer makes script to hang for a while at the end
I am using npm:puppeteer in my script. Everything is working fine. But often the script hangs at the end of the exit. Is this normal with puppeteer? I think that some async op is leaking. But I am not sure if I made any mistake or it is coming from puppeteer. I do call browser.close() in a finally block.
28 replies
DDeno
Created by rnbguy on 3/13/2023 in #help
Islands not working with Cloudflare DNS proxy
I have deployed Deno on a remote server with nginx-ingress-controller that offers self-signed certificate. If I connect to the server directly everything works fine (Cloudflare DNS without proxy). But if I turn on Cloudflare DNS proxy (Full SSL/TLS - Encrypts end-to-end, using a self signed certificate on the server), the islands codes don't run. I doubled checked the same setup on a local server with Caddy. I get the same result - islands not being run on browser. Am I missing something?
3 replies
DDeno
Created by rnbguy on 3/6/2023 in #help
window variable in fresh islands
How do I access window in islands? I need to modify DOM code client side.
6 replies
DDeno
Created by rnbguy on 3/1/2023 in #help
monaco-editor on fresh
Hello. First of all, I am a newbie in web development. I played around with Deno for a while. So I thought I will leverage it to finally get into web development via Fresh. For a toy project, I am trying to build a code playground (like, https://play.yew.rs). I want to use monaco-editor(https://www.npmjs.com/package/monaco-editor). But monaco-editor works with HTMLElement (https://microsoft.github.io/monaco-editor/docs.html#functions/editor.create.html), instead of Preact. I could make it work as a static code(https://github.com/rnbguy/fresh-playground/blob/264e11813d549fe91b7bf2be38b454610bc5c676/components/Playground.tsx), but I need to add code in the island components to get the value from the editor using monaco API(https://microsoft.github.io/monaco-editor/docs.html#interfaces/editor.ICodeEditor.html#getValue) here - https://github.com/rnbguy/fresh-playground/blob/264e11813d549fe91b7bf2be38b454610bc5c676/islands/Run.tsx#L12. PS. I am aware of https://www.npmjs.com/package/@monaco-editor/react. Probably I need something similar working with Preact.
2 replies