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 # GxG for Opal
# backtick_javascript: true
# Place Holders: # Place Holders:
module GxG module GxG
LOG = nil LOG = nil

View file

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

View file

@ -1,4 +1,5 @@
# Events Section: # Events Section:
# backtick_javascript: true
module GxG module GxG
GXG_FEDERATION = {:title => "Untitled", :uuid => nil, :available => {}, :connections => {}} GXG_FEDERATION = {:title => "Untitled", :uuid => nil, :available => {}, :connections => {}}
# ::GxG::SOCKET_MONITOR # ::GxG::SOCKET_MONITOR
@ -187,7 +188,7 @@ module GxG
unless args[0].is_a?(::Hash) unless args[0].is_a?(::Hash)
raise ArgumentError, "you must pass a Hash to create the message" raise ArgumentError, "you must pass a Hash to create the message"
end 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] unless @data[:sender]
raise ArgumentError, "you must set the :sender key in the argument Hash" raise ArgumentError, "you must set the :sender key in the argument Hash"
end end

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -2,5 +2,6 @@
source /etc/profile source /etc/profile
rm ./gxg.js 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 #opal -I ./gxg -I ./gxg/deps -I ./gxg/standard --compile gxg_web.rb > gxg.js
# minify ./gxg.js > ../src/main/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