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
|
# GxG for Opal
|
||||||
|
# backtick_javascript: true
|
||||||
# Place Holders:
|
# Place Holders:
|
||||||
module GxG
|
module GxG
|
||||||
LOG = nil
|
LOG = nil
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
# backtick_javascript: true
|
||||||
module GxG
|
module GxG
|
||||||
# ----------------------------------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------------------------------
|
||||||
class Application
|
class Application
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
# backtick_javascript: true
|
||||||
module GxG
|
module GxG
|
||||||
module Gui
|
module Gui
|
||||||
# ### Page Component
|
# ### Page Component
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
# backtick_javascript: true
|
||||||
module GxG
|
module GxG
|
||||||
module Gui
|
module Gui
|
||||||
#
|
#
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# backtick_javascript: true
|
||||||
|
|
||||||
module GxG
|
module GxG
|
||||||
module Gui
|
module Gui
|
||||||
module Vdom
|
module Vdom
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
# backtick_javascript: true
|
||||||
module GxG
|
module GxG
|
||||||
module Gui
|
module Gui
|
||||||
# Viewport
|
# Viewport
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue