From 854fa74daa084e8ba55cadde1b1146bda1957ec8 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 9 Jun 2026 13:26:08 -0700 Subject: [PATCH] Disable turbo functionality for now --- assets/brain.js | 7 ++----- assets/controllers.json | 2 +- assets/landing.js | 11 ++++------- assets/main.js | 9 ++++----- 4 files changed, 11 insertions(+), 18 deletions(-) diff --git a/assets/brain.js b/assets/brain.js index 310cec4..05d20bd 100644 --- a/assets/brain.js +++ b/assets/brain.js @@ -1,5 +1,5 @@ import './styles/brain.css'; -import './stimulus_bootstrap.js'; +//import './stimulus_bootstrap.js'; const init = () => { menu(); @@ -119,9 +119,6 @@ const photosUploadInit = () => { }; } - -document.addEventListener('turbo:frame-load', (event) => { - init(); -}); +init(); diff --git a/assets/controllers.json b/assets/controllers.json index c59f1ab..dcbd74a 100644 --- a/assets/controllers.json +++ b/assets/controllers.json @@ -13,7 +13,7 @@ }, "@symfony/ux-turbo": { "turbo-core": { - "enabled": true, + "enabled": false, "fetch": "eager" }, "mercure-turbo-stream": { diff --git a/assets/landing.js b/assets/landing.js index 0dc3acc..ae7fb2e 100644 --- a/assets/landing.js +++ b/assets/landing.js @@ -1,5 +1,5 @@ import './styles/landing.css'; -import './stimulus_bootstrap.js'; +//import './stimulus_bootstrap.js'; const mobileMenu = () => { const icon = document.querySelector('.icon-menu'); @@ -57,9 +57,6 @@ const scrollTo = () => { }); } - -document.addEventListener('turbo:frame-load', (event) => { - mobileMenu(); - jobInfoToggle(); - scrollTo(); -}); \ No newline at end of file +mobileMenu(); +jobInfoToggle(); +scrollTo(); \ No newline at end of file diff --git a/assets/main.js b/assets/main.js index 071318b..82d97ee 100644 --- a/assets/main.js +++ b/assets/main.js @@ -1,4 +1,4 @@ -import './stimulus_bootstrap.js'; +//import './stimulus_bootstrap.js'; import './styles/main.css'; const mobileMenu = () => { @@ -47,7 +47,6 @@ const album = () => { } -document.addEventListener('turbo:frame-load', (event) => { - mobileMenu(); - album(); -}); \ No newline at end of file + +mobileMenu(); +album(); \ No newline at end of file