mirror of
https://github.com/mistergibson/gxg-web-client.git
synced 2026-08-15 03:26:00 -07:00
Opal fixes
This commit is contained in:
parent
2052ad7cef
commit
c80e2ca6a5
9 changed files with 12 additions and 3 deletions
|
|
@ -1,4 +1,5 @@
|
|||
# GxG for Opal
|
||||
# backtick_javascript: true
|
||||
# Place Holders:
|
||||
module GxG
|
||||
LOG = nil
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# backtick_javascript: true
|
||||
module GxG
|
||||
# ----------------------------------------------------------------------------------------------------
|
||||
class Application
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# backtick_javascript: true
|
||||
module GxG
|
||||
module Gui
|
||||
# ### Page Component
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# backtick_javascript: true
|
||||
module GxG
|
||||
module Gui
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
# backtick_javascript: true
|
||||
# ----------------------------------------------------------------------------------------------------
|
||||
# Provided Module Space for libraries to declare their :global within.
|
||||
module Libraries
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# backtick_javascript: true
|
||||
|
||||
module GxG
|
||||
module Gui
|
||||
module Vdom
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# backtick_javascript: true
|
||||
module GxG
|
||||
module Gui
|
||||
# Viewport
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue