From c80e2ca6a541d41f7e983cc11f2129cdc43bfa37 Mon Sep 17 00:00:00 2001 From: "G. Gibson" Date: Sun, 2 Nov 2025 09:11:59 -0800 Subject: [PATCH] Opal fixes --- gxg/web/gxg.rb | 1 + gxg/web/gxg_applications.rb | 1 + gxg/web/gxg_events.rb | 3 ++- gxg/web/gxg_foundation.rb | 1 + gxg/web/gxg_layout.rb | 1 + gxg/web/gxg_libraries.rb | 2 +- gxg/web/gxg_vdom.rb | 2 ++ gxg/web/gxg_windows.rb | 1 + update_web.sh | 3 ++- 9 files changed, 12 insertions(+), 3 deletions(-) diff --git a/gxg/web/gxg.rb b/gxg/web/gxg.rb index 749e6a9..01e6a59 100644 --- a/gxg/web/gxg.rb +++ b/gxg/web/gxg.rb @@ -1,4 +1,5 @@ # GxG for Opal +# backtick_javascript: true # Place Holders: module GxG LOG = nil diff --git a/gxg/web/gxg_applications.rb b/gxg/web/gxg_applications.rb index 4a69946..212addf 100644 --- a/gxg/web/gxg_applications.rb +++ b/gxg/web/gxg_applications.rb @@ -1,3 +1,4 @@ +# backtick_javascript: true module GxG # ---------------------------------------------------------------------------------------------------- class Application diff --git a/gxg/web/gxg_events.rb b/gxg/web/gxg_events.rb index bf61c35..37245fc 100644 --- a/gxg/web/gxg_events.rb +++ b/gxg/web/gxg_events.rb @@ -1,4 +1,5 @@ # Events Section: +# backtick_javascript: true module GxG GXG_FEDERATION = {:title => "Untitled", :uuid => nil, :available => {}, :connections => {}} # ::GxG::SOCKET_MONITOR @@ -187,7 +188,7 @@ module GxG unless args[0].is_a?(::Hash) raise ArgumentError, "you must pass a Hash to create the message" end - @data = {:sender => nil. :id => GxG::uuid_generate().to_s.to_sym, :subject => args[1], :body => nil, :on_success => nil, :on_fail => nil}.merge(args[0]) + @data = {:sender => nil, :id => GxG::uuid_generate().to_s.to_sym, :subject => args[1].to_s, :body => nil, :on_success => nil, :on_fail => nil}.merge(args[0]) unless @data[:sender] raise ArgumentError, "you must set the :sender key in the argument Hash" end diff --git a/gxg/web/gxg_foundation.rb b/gxg/web/gxg_foundation.rb index c7a9cd9..5a68b13 100644 --- a/gxg/web/gxg_foundation.rb +++ b/gxg/web/gxg_foundation.rb @@ -1,3 +1,4 @@ +# backtick_javascript: true module GxG module Gui # ### Page Component diff --git a/gxg/web/gxg_layout.rb b/gxg/web/gxg_layout.rb index 4fcbc4b..8f7804e 100644 --- a/gxg/web/gxg_layout.rb +++ b/gxg/web/gxg_layout.rb @@ -1,3 +1,4 @@ +# backtick_javascript: true module GxG module Gui # diff --git a/gxg/web/gxg_libraries.rb b/gxg/web/gxg_libraries.rb index 00cdd0b..2cc5f4a 100644 --- a/gxg/web/gxg_libraries.rb +++ b/gxg/web/gxg_libraries.rb @@ -1,4 +1,4 @@ - +# backtick_javascript: true # ---------------------------------------------------------------------------------------------------- # Provided Module Space for libraries to declare their :global within. module Libraries diff --git a/gxg/web/gxg_vdom.rb b/gxg/web/gxg_vdom.rb index 1c203c2..fb5c4a3 100644 --- a/gxg/web/gxg_vdom.rb +++ b/gxg/web/gxg_vdom.rb @@ -1,3 +1,5 @@ +# backtick_javascript: true + module GxG module Gui module Vdom diff --git a/gxg/web/gxg_windows.rb b/gxg/web/gxg_windows.rb index 953f785..b32f808 100644 --- a/gxg/web/gxg_windows.rb +++ b/gxg/web/gxg_windows.rb @@ -1,3 +1,4 @@ +# backtick_javascript: true module GxG module Gui # Viewport diff --git a/update_web.sh b/update_web.sh index c543dec..ef5d8fe 100755 --- a/update_web.sh +++ b/update_web.sh @@ -2,5 +2,6 @@ source /etc/profile rm ./gxg.js #opal -I ./gxg -I ./gxg/deps -I ./gxg/standard --compile gxg_web.rb > gxg.js -opal -I ./gxg -I ./gxg/deps -I ./gxg/standard --compile gxg_web.rb > gxg.js +#opal -I ./gxg -I ./gxg/deps -I ./gxg/standard --compile gxg_web.rb > gxg.js # minify ./gxg.js > ../src/main/gxg.js +JRUBY_OPTS=-J-Xss8192k OPAL_PREFORK_DISABLE=1 opal -I ./gxg -I ./gxg/deps -I ./gxg/standard --compile gxg_web.rb > gxg.js