Opal fixes

This commit is contained in:
Administrator 2025-11-02 09:11:59 -08:00
parent 2052ad7cef
commit c80e2ca6a5
9 changed files with 12 additions and 3 deletions

View file

@ -1,4 +1,5 @@
# GxG for Opal
# backtick_javascript: true
# Place Holders:
module GxG
LOG = nil

View file

@ -1,3 +1,4 @@
# backtick_javascript: true
module GxG
# ----------------------------------------------------------------------------------------------------
class Application

View file

@ -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

View file

@ -1,3 +1,4 @@
# backtick_javascript: true
module GxG
module Gui
# ### Page Component

View file

@ -1,3 +1,4 @@
# backtick_javascript: true
module GxG
module Gui
#

View file

@ -1,4 +1,4 @@
# backtick_javascript: true
# ----------------------------------------------------------------------------------------------------
# Provided Module Space for libraries to declare their :global within.
module Libraries

View file

@ -1,3 +1,5 @@
# backtick_javascript: true
module GxG
module Gui
module Vdom

View file

@ -1,3 +1,4 @@
# backtick_javascript: true
module GxG
module Gui
# Viewport

View file

@ -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