From 64d1d921af7252c2c8749c19d0d8a827c5faab85 Mon Sep 17 00:00:00 2001 From: Dmitry Petrov Date: Fri, 28 Aug 2026 00:50:01 +0200 Subject: [PATCH 1/2] hyperscript import changed --- cmd/web/client/js/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/web/client/js/index.js b/cmd/web/client/js/index.js index 1987729..d0c3ba0 100644 --- a/cmd/web/client/js/index.js +++ b/cmd/web/client/js/index.js @@ -1,6 +1,6 @@ import htmx from 'htmx.org'; import 'htmx-ext-head-support'; -import hyperscript from 'hyperscript.org'; +import 'hyperscript.org'; import { Application } from "@hotwired/stimulus" import { definitionsFromContext } from "@hotwired/stimulus-webpack-helpers" import 'lazysizes'; @@ -11,8 +11,6 @@ import '@justinribeiro/lite-youtube' htmx.config.includeIndicatorStyles = false window.htmx = htmx -window._hyperscript = hyperscript -window._hyperscript.browserInit() // this is kinda lame since that means that htmx will never execute any new js // however that's the closest we can get to turbo behavior which is smart enough From 2f6d3e1ee5ba7174c56b486eef7de4bdea40f5ac Mon Sep 17 00:00:00 2001 From: Dmitry Petrov Date: Fri, 28 Aug 2026 00:54:51 +0200 Subject: [PATCH 2/2] drop hyperscript for good --- cmd/web/client/html/partial--error-message.html | 4 +--- .../client/html/partial--success-message.html | 4 +--- .../js/controllers/auto_dismiss_controller.js | 16 ++++++++++++++++ cmd/web/client/js/index.js | 1 - cmd/web/package.json | 1 - cmd/web/yarn.lock | 5 ----- 6 files changed, 18 insertions(+), 13 deletions(-) create mode 100644 cmd/web/client/js/controllers/auto_dismiss_controller.js diff --git a/cmd/web/client/html/partial--error-message.html b/cmd/web/client/html/partial--error-message.html index f4df36a..0dd38e4 100644 --- a/cmd/web/client/html/partial--error-message.html +++ b/cmd/web/client/html/partial--error-message.html @@ -1,5 +1,3 @@ -