marty 0.5.41 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (205) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -2
  3. data/app/components/marty/api_auth_view.rb +5 -8
  4. data/app/components/marty/auth_app.rb +8 -9
  5. data/app/components/marty/auth_app/{javascripts → client}/auth_app.js +4 -4
  6. data/app/components/marty/config_view.rb +7 -9
  7. data/app/components/marty/extras/misc.rb +14 -1
  8. data/app/components/marty/form.rb +1 -1
  9. data/app/components/marty/grid.rb +27 -14
  10. data/app/components/marty/grid_append_only.rb +3 -5
  11. data/app/components/marty/import_type_view.rb +8 -11
  12. data/app/components/marty/live_search_grid_panel.rb +3 -3
  13. data/app/components/marty/main_auth_app.rb +17 -19
  14. data/app/components/marty/mcfly_grid_panel.rb +13 -15
  15. data/app/components/marty/new_posting_form.rb +5 -5
  16. data/app/components/marty/new_posting_window.rb +1 -1
  17. data/app/components/marty/panel.rb +2 -2
  18. data/app/components/marty/posting_grid.rb +19 -28
  19. data/app/components/marty/posting_window.rb +6 -7
  20. data/app/components/marty/promise_view.rb +23 -24
  21. data/app/components/marty/promise_view/{stylesheets → client}/promise_view.css +0 -0
  22. data/app/components/marty/report_form.rb +11 -10
  23. data/app/components/marty/report_select.rb +17 -15
  24. data/app/components/marty/reporting.rb +2 -2
  25. data/app/components/marty/script_form.rb +34 -38
  26. data/app/components/marty/script_form/{javascripts → client}/Ext.ux.form.field.CodeMirror.js +0 -0
  27. data/app/components/marty/script_form/{stylesheets → client}/codemirror.css +0 -0
  28. data/app/components/marty/script_form/{javascripts → client}/codemirror.js +0 -0
  29. data/app/components/marty/script_form/{stylesheets → client}/delorean.css +0 -0
  30. data/app/components/marty/script_form/{javascripts → client}/mode/clike/clike.js +0 -0
  31. data/app/components/marty/script_form/{javascripts → client}/mode/clike/index.html +0 -0
  32. data/app/components/marty/script_form/{javascripts → client}/mode/clike/scala.html +0 -0
  33. data/app/components/marty/script_form/{javascripts → client}/mode/clojure/clojure.js +0 -0
  34. data/app/components/marty/script_form/{javascripts → client}/mode/clojure/index.html +0 -0
  35. data/app/components/marty/script_form/{javascripts → client}/mode/coffeescript/LICENSE +0 -0
  36. data/app/components/marty/script_form/{javascripts → client}/mode/coffeescript/coffeescript.js +0 -0
  37. data/app/components/marty/script_form/{javascripts → client}/mode/coffeescript/index.html +0 -0
  38. data/app/components/marty/script_form/{javascripts → client}/mode/commonlisp/commonlisp.js +0 -0
  39. data/app/components/marty/script_form/{javascripts → client}/mode/commonlisp/index.html +0 -0
  40. data/app/components/marty/script_form/{javascripts → client}/mode/css/css.js +0 -0
  41. data/app/components/marty/script_form/{javascripts → client}/mode/css/index.html +0 -0
  42. data/app/components/marty/script_form/{javascripts → client}/mode/css/test.js +0 -0
  43. data/app/components/marty/script_form/{javascripts → client}/mode/delorean/delorean.js +0 -0
  44. data/app/components/marty/script_form/{javascripts → client}/mode/diff/diff.js +0 -0
  45. data/app/components/marty/script_form/{javascripts → client}/mode/diff/index.html +0 -0
  46. data/app/components/marty/script_form/{javascripts → client}/mode/ecl/ecl.js +0 -0
  47. data/app/components/marty/script_form/{javascripts → client}/mode/ecl/index.html +0 -0
  48. data/app/components/marty/script_form/{javascripts → client}/mode/erlang/erlang.js +0 -0
  49. data/app/components/marty/script_form/{javascripts → client}/mode/erlang/index.html +0 -0
  50. data/app/components/marty/script_form/{javascripts → client}/mode/gfm/gfm.js +0 -0
  51. data/app/components/marty/script_form/{javascripts → client}/mode/gfm/index.html +0 -0
  52. data/app/components/marty/script_form/{javascripts → client}/mode/go/go.js +0 -0
  53. data/app/components/marty/script_form/{javascripts → client}/mode/go/index.html +0 -0
  54. data/app/components/marty/script_form/{javascripts → client}/mode/groovy/groovy.js +0 -0
  55. data/app/components/marty/script_form/{javascripts → client}/mode/groovy/index.html +0 -0
  56. data/app/components/marty/script_form/{javascripts → client}/mode/haskell/haskell.js +0 -0
  57. data/app/components/marty/script_form/{javascripts → client}/mode/haskell/index.html +0 -0
  58. data/app/components/marty/script_form/{javascripts → client}/mode/haxe/haxe.js +0 -0
  59. data/app/components/marty/script_form/{javascripts → client}/mode/haxe/index.html +0 -0
  60. data/app/components/marty/script_form/{javascripts → client}/mode/htmlembedded/htmlembedded.js +0 -0
  61. data/app/components/marty/script_form/{javascripts → client}/mode/htmlembedded/index.html +0 -0
  62. data/app/components/marty/script_form/{javascripts → client}/mode/htmlmixed/htmlmixed.js +0 -0
  63. data/app/components/marty/script_form/{javascripts → client}/mode/htmlmixed/index.html +0 -0
  64. data/app/components/marty/script_form/{javascripts → client}/mode/javascript/index.html +0 -0
  65. data/app/components/marty/script_form/{javascripts → client}/mode/javascript/javascript.js +0 -0
  66. data/app/components/marty/script_form/{javascripts → client}/mode/jinja2/index.html +0 -0
  67. data/app/components/marty/script_form/{javascripts → client}/mode/jinja2/jinja2.js +0 -0
  68. data/app/components/marty/script_form/{javascripts → client}/mode/less/index.html +0 -0
  69. data/app/components/marty/script_form/{javascripts → client}/mode/less/less.js +0 -0
  70. data/app/components/marty/script_form/{javascripts → client}/mode/lua/index.html +0 -0
  71. data/app/components/marty/script_form/{javascripts → client}/mode/lua/lua.js +0 -0
  72. data/app/components/marty/script_form/{javascripts → client}/mode/markdown/index.html +0 -0
  73. data/app/components/marty/script_form/{javascripts → client}/mode/markdown/markdown.js +0 -0
  74. data/app/components/marty/script_form/{javascripts → client}/mode/markdown/test.js +0 -0
  75. data/app/components/marty/script_form/{javascripts → client}/mode/mysql/index.html +0 -0
  76. data/app/components/marty/script_form/{javascripts → client}/mode/mysql/mysql.js +0 -0
  77. data/app/components/marty/script_form/{javascripts → client}/mode/ntriples/index.html +0 -0
  78. data/app/components/marty/script_form/{javascripts → client}/mode/ntriples/ntriples.js +0 -0
  79. data/app/components/marty/script_form/{javascripts → client}/mode/ocaml/index.html +0 -0
  80. data/app/components/marty/script_form/{javascripts → client}/mode/ocaml/ocaml.js +0 -0
  81. data/app/components/marty/script_form/{javascripts → client}/mode/pascal/LICENSE +0 -0
  82. data/app/components/marty/script_form/{javascripts → client}/mode/pascal/index.html +0 -0
  83. data/app/components/marty/script_form/{javascripts → client}/mode/pascal/pascal.js +0 -0
  84. data/app/components/marty/script_form/{javascripts → client}/mode/perl/LICENSE +0 -0
  85. data/app/components/marty/script_form/{javascripts → client}/mode/perl/index.html +0 -0
  86. data/app/components/marty/script_form/{javascripts → client}/mode/perl/perl.js +0 -0
  87. data/app/components/marty/script_form/{javascripts → client}/mode/php/index.html +0 -0
  88. data/app/components/marty/script_form/{javascripts → client}/mode/php/php.js +0 -0
  89. data/app/components/marty/script_form/{javascripts → client}/mode/pig/index.html +0 -0
  90. data/app/components/marty/script_form/{javascripts → client}/mode/pig/pig.js +0 -0
  91. data/app/components/marty/script_form/{javascripts → client}/mode/plsql/index.html +0 -0
  92. data/app/components/marty/script_form/{javascripts → client}/mode/plsql/plsql.js +0 -0
  93. data/app/components/marty/script_form/{javascripts → client}/mode/properties/index.html +0 -0
  94. data/app/components/marty/script_form/{javascripts → client}/mode/properties/properties.js +0 -0
  95. data/app/components/marty/script_form/{javascripts → client}/mode/python/LICENSE.txt +0 -0
  96. data/app/components/marty/script_form/{javascripts → client}/mode/python/index.html +0 -0
  97. data/app/components/marty/script_form/{javascripts → client}/mode/python/python.js +0 -0
  98. data/app/components/marty/script_form/{javascripts → client}/mode/r/LICENSE +0 -0
  99. data/app/components/marty/script_form/{javascripts → client}/mode/r/index.html +0 -0
  100. data/app/components/marty/script_form/{javascripts → client}/mode/r/r.js +0 -0
  101. data/app/components/marty/script_form/{javascripts → client}/mode/rpm/changes/changes.js +0 -0
  102. data/app/components/marty/script_form/{javascripts → client}/mode/rpm/changes/index.html +0 -0
  103. data/app/components/marty/script_form/{javascripts → client}/mode/rpm/spec/index.html +0 -0
  104. data/app/components/marty/script_form/{javascripts → client}/mode/rpm/spec/spec.css +0 -0
  105. data/app/components/marty/script_form/{javascripts → client}/mode/rpm/spec/spec.js +0 -0
  106. data/app/components/marty/script_form/{javascripts → client}/mode/rst/index.html +0 -0
  107. data/app/components/marty/script_form/{javascripts → client}/mode/rst/rst.js +0 -0
  108. data/app/components/marty/script_form/{javascripts → client}/mode/ruby/LICENSE +0 -0
  109. data/app/components/marty/script_form/{javascripts → client}/mode/ruby/index.html +0 -0
  110. data/app/components/marty/script_form/{javascripts → client}/mode/ruby/ruby.js +0 -0
  111. data/app/components/marty/script_form/{javascripts → client}/mode/rust/index.html +0 -0
  112. data/app/components/marty/script_form/{javascripts → client}/mode/rust/rust.js +0 -0
  113. data/app/components/marty/script_form/{javascripts → client}/mode/scheme/index.html +0 -0
  114. data/app/components/marty/script_form/{javascripts → client}/mode/scheme/scheme.js +0 -0
  115. data/app/components/marty/script_form/{javascripts → client}/mode/shell/index.html +0 -0
  116. data/app/components/marty/script_form/{javascripts → client}/mode/shell/shell.js +0 -0
  117. data/app/components/marty/script_form/{javascripts → client}/mode/sieve/LICENSE +0 -0
  118. data/app/components/marty/script_form/{javascripts → client}/mode/sieve/index.html +0 -0
  119. data/app/components/marty/script_form/{javascripts → client}/mode/sieve/sieve.js +0 -0
  120. data/app/components/marty/script_form/{javascripts → client}/mode/smalltalk/index.html +0 -0
  121. data/app/components/marty/script_form/{javascripts → client}/mode/smalltalk/smalltalk.js +0 -0
  122. data/app/components/marty/script_form/{javascripts → client}/mode/smarty/index.html +0 -0
  123. data/app/components/marty/script_form/{javascripts → client}/mode/smarty/smarty.js +0 -0
  124. data/app/components/marty/script_form/{javascripts → client}/mode/sparql/index.html +0 -0
  125. data/app/components/marty/script_form/{javascripts → client}/mode/sparql/sparql.js +0 -0
  126. data/app/components/marty/script_form/{javascripts → client}/mode/stex/index.html +0 -0
  127. data/app/components/marty/script_form/{javascripts → client}/mode/stex/stex.js +0 -0
  128. data/app/components/marty/script_form/{javascripts → client}/mode/stex/test.js +0 -0
  129. data/app/components/marty/script_form/{javascripts → client}/mode/tiddlywiki/index.html +0 -0
  130. data/app/components/marty/script_form/{javascripts → client}/mode/tiddlywiki/tiddlywiki.css +0 -0
  131. data/app/components/marty/script_form/{javascripts → client}/mode/tiddlywiki/tiddlywiki.js +0 -0
  132. data/app/components/marty/script_form/{javascripts → client}/mode/tiki/index.html +0 -0
  133. data/app/components/marty/script_form/{javascripts → client}/mode/tiki/tiki.css +0 -0
  134. data/app/components/marty/script_form/{javascripts → client}/mode/tiki/tiki.js +0 -0
  135. data/app/components/marty/script_form/{javascripts → client}/mode/vb/LICENSE.txt +0 -0
  136. data/app/components/marty/script_form/{javascripts → client}/mode/vb/index.html +0 -0
  137. data/app/components/marty/script_form/{javascripts → client}/mode/vb/vb.js +0 -0
  138. data/app/components/marty/script_form/{javascripts → client}/mode/vbscript/index.html +0 -0
  139. data/app/components/marty/script_form/{javascripts → client}/mode/vbscript/vbscript.js +0 -0
  140. data/app/components/marty/script_form/{javascripts → client}/mode/velocity/index.html +0 -0
  141. data/app/components/marty/script_form/{javascripts → client}/mode/velocity/velocity.js +0 -0
  142. data/app/components/marty/script_form/{javascripts → client}/mode/verilog/index.html +0 -0
  143. data/app/components/marty/script_form/{javascripts → client}/mode/verilog/verilog.js +0 -0
  144. data/app/components/marty/script_form/{javascripts → client}/mode/xml/index.html +0 -0
  145. data/app/components/marty/script_form/{javascripts → client}/mode/xml/xml.js +0 -0
  146. data/app/components/marty/script_form/{javascripts → client}/mode/xquery/LICENSE +0 -0
  147. data/app/components/marty/script_form/{javascripts → client}/mode/xquery/index.html +0 -0
  148. data/app/components/marty/script_form/{javascripts → client}/mode/xquery/test/index.html +0 -0
  149. data/app/components/marty/script_form/{javascripts → client}/mode/xquery/test/testBase.js +0 -0
  150. data/app/components/marty/script_form/{javascripts → client}/mode/xquery/test/testEmptySequenceKeyword.js +0 -0
  151. data/app/components/marty/script_form/{javascripts → client}/mode/xquery/test/testMultiAttr.js +0 -0
  152. data/app/components/marty/script_form/{javascripts → client}/mode/xquery/test/testNamespaces.js +0 -0
  153. data/app/components/marty/script_form/{javascripts → client}/mode/xquery/test/testProcessingInstructions.js +0 -0
  154. data/app/components/marty/script_form/{javascripts → client}/mode/xquery/test/testQuotes.js +0 -0
  155. data/app/components/marty/script_form/{javascripts → client}/mode/xquery/xquery.js +0 -0
  156. data/app/components/marty/script_form/{javascripts → client}/mode/yaml/index.html +0 -0
  157. data/app/components/marty/script_form/{javascripts → client}/mode/yaml/yaml.js +0 -0
  158. data/app/components/marty/script_form/{stylesheets → client}/theme/ambiance.css +0 -0
  159. data/app/components/marty/script_form/{stylesheets → client}/theme/blackboard.css +0 -0
  160. data/app/components/marty/script_form/{stylesheets → client}/theme/cobalt.css +0 -0
  161. data/app/components/marty/script_form/{stylesheets → client}/theme/eclipse.css +0 -0
  162. data/app/components/marty/script_form/{stylesheets → client}/theme/elegant.css +0 -0
  163. data/app/components/marty/script_form/{stylesheets → client}/theme/erlang-dark.css +0 -0
  164. data/app/components/marty/script_form/{stylesheets → client}/theme/lesser-dark.css +0 -0
  165. data/app/components/marty/script_form/{stylesheets → client}/theme/monokai.css +0 -0
  166. data/app/components/marty/script_form/{stylesheets → client}/theme/neat.css +0 -0
  167. data/app/components/marty/script_form/{stylesheets → client}/theme/night.css +0 -0
  168. data/app/components/marty/script_form/{stylesheets → client}/theme/rubyblue.css +0 -0
  169. data/app/components/marty/script_form/{stylesheets → client}/theme/vibrant-ink.css +0 -0
  170. data/app/components/marty/script_form/{stylesheets → client}/theme/xq-dark.css +0 -0
  171. data/app/components/marty/script_form/{javascripts → client}/util/closetag.js +0 -0
  172. data/app/components/marty/script_form/{javascripts → client}/util/dialog.css +0 -0
  173. data/app/components/marty/script_form/{javascripts → client}/util/dialog.js +0 -0
  174. data/app/components/marty/script_form/{javascripts → client}/util/foldcode.js +0 -0
  175. data/app/components/marty/script_form/{javascripts → client}/util/formatting.js +0 -0
  176. data/app/components/marty/script_form/{javascripts → client}/util/javascript-hint.js +0 -0
  177. data/app/components/marty/script_form/{javascripts → client}/util/loadmode.js +0 -0
  178. data/app/components/marty/script_form/{javascripts → client}/util/match-highlighter.js +0 -0
  179. data/app/components/marty/script_form/{javascripts → client}/util/multiplex.js +0 -0
  180. data/app/components/marty/script_form/{javascripts → client}/util/overlay.js +0 -0
  181. data/app/components/marty/script_form/{javascripts → client}/util/pig-hint.js +0 -0
  182. data/app/components/marty/script_form/{javascripts → client}/util/runmode-standalone.js +0 -0
  183. data/app/components/marty/script_form/{javascripts → client}/util/runmode.js +0 -0
  184. data/app/components/marty/script_form/{javascripts → client}/util/search.js +0 -0
  185. data/app/components/marty/script_form/{javascripts → client}/util/searchcursor.js +0 -0
  186. data/app/components/marty/script_form/{javascripts → client}/util/simple-hint.css +0 -0
  187. data/app/components/marty/script_form/{javascripts → client}/util/simple-hint.js +0 -0
  188. data/app/components/marty/script_form/{javascripts → client}/util/xml-hint.js +0 -0
  189. data/app/components/marty/script_grid.rb +24 -32
  190. data/app/components/marty/script_tester.rb +11 -11
  191. data/app/components/marty/scripting.rb +12 -12
  192. data/app/components/marty/simple_app.rb +2 -2
  193. data/app/components/marty/simple_app/{javascripts → client}/simple_app.js +0 -0
  194. data/app/components/marty/simple_app/{javascripts → client}/statusbar_ext.js +0 -0
  195. data/app/components/marty/tag_grid.rb +15 -21
  196. data/app/components/marty/user_view.rb +41 -57
  197. data/lib/marty/monkey.rb +1 -1
  198. data/lib/marty/version.rb +1 -1
  199. data/marty.gemspec +3 -2
  200. data/spec/dummy/app/assets/{stylesheets → client}/application.css +0 -0
  201. data/spec/dummy/app/assets/client/application.js +15 -0
  202. data/spec/features/scripting_spec.rb +17 -0
  203. data/spec/features/user_view_spec.rb +15 -15
  204. data/spec/spec_helper.rb +9 -0
  205. metadata +189 -174
@@ -10,42 +10,36 @@ class Marty::TagGrid < Marty::Grid
10
10
  c.model = "Marty::Tag"
11
11
  c.multi_select = false
12
12
 
13
- c.columns ||= [:name, :created_dt, :user__name, :comment]
13
+ c.attributes ||= [:name, :created_dt, :user__name, :comment]
14
14
 
15
- c.data_store.sorters = {
16
- property: :created_dt,
17
- direction: 'DESC',
18
- }
15
+ c.store_config.merge!({sorters: [{property: :created_dt,
16
+ direction: 'DESC'}]})
19
17
  end
20
18
 
21
- endpoint :add_window__add_form__netzke_submit do |params, this|
19
+ endpoint :add_window__add_form__submit do |params|
22
20
  data = ActiveSupport::JSON.decode(params[:data])
23
21
 
24
- return this.netzke_feedback("Permission Denied") if
25
- config[:prohibit_create]
22
+ return client.netzke_notify("Permission Denied") if
23
+ !config[:permissions][:create]
26
24
 
27
25
  # FIXME: disallow tag creation when no script has been modified?
28
26
 
29
27
  tag = Marty::Tag.do_create(nil, data["comment"])
30
28
 
31
29
  if tag.valid?
32
- this.success = true
33
- this.on_submit_success
30
+ client.success = true
31
+ client.netzke_on_submit_success
34
32
  return
35
33
  end
36
34
 
37
- data_adapter.errors_array(tag).each do |error|
38
- flash :error => error
39
- end
40
-
41
- this.netzke_feedback(@flash)
35
+ client.netzke_notify(model_adapter.errors_array(tag).join("\n"))
42
36
  end
43
37
 
44
38
  action :add_in_form do |a|
45
39
  a.text = I18n.t("tag_grid.new")
46
40
  a.tooltip = I18n.t("tag_grid.new")
47
41
  a.icon = :time_add
48
- a.disabled = config[:prohibit_create]
42
+ a.disabled = !config[:permissions][:create]
49
43
  end
50
44
 
51
45
  def default_bbar
@@ -56,24 +50,24 @@ class Marty::TagGrid < Marty::Grid
56
50
  []
57
51
  end
58
52
 
59
- def default_fields_for_forms
53
+ def default_form_items
60
54
  [:comment]
61
55
  end
62
56
 
63
- column :name do |c|
57
+ attribute :name do |c|
64
58
  end
65
59
 
66
- column :created_dt do |c|
60
+ attribute :created_dt do |c|
67
61
  c.text = "Date/Time"
68
62
  c.format = "Y-m-d H:i"
69
63
  c.hidden = true
70
64
  end
71
65
 
72
- column :user__name do |c|
66
+ attribute :user__name do |c|
73
67
  c.width = 100
74
68
  end
75
69
 
76
- column :comment do |c|
70
+ attribute :comment do |c|
77
71
  c.width = 100
78
72
  c.flex = 1
79
73
  end
@@ -21,17 +21,13 @@ class Marty::UserView < Marty::Grid
21
21
 
22
22
  c.title ||= I18n.t('users', default: "Users")
23
23
  c.model = "Marty::User"
24
- c.enable_extended_search = false
25
- c.enable_edit_inline = false
24
+ c.editing = :in_form
25
+ c.paging = :pagination
26
26
  c.multi_select = false
27
-
28
- c.columns ||= self.class.user_columns
29
-
30
- c.data_store.sorters = {
31
- property: :login,
32
- direction: 'ASC',
33
- } if c.columns.include?(:login)
34
-
27
+ c.attributes ||= self.class.user_columns
28
+ c.store_config.merge!({sorters: [{property: :login,
29
+ direction: 'ASC',
30
+ }]}) if c.attributes.include?(:login)
35
31
  c.scope = ->(arel) { arel.includes(:roles) }
36
32
  end
37
33
 
@@ -68,116 +64,104 @@ class Marty::UserView < Marty::Grid
68
64
  # override the add_in_form and edit_in_form endpoint. User creation/update
69
65
  # needs to use the create_edit_user method.
70
66
 
71
- endpoint :add_window__add_form__netzke_submit do |params, this|
67
+ endpoint :add_window__add_form__submit do |params|
72
68
  data = ActiveSupport::JSON.decode(params[:data])
73
69
 
74
70
  data["id"] = nil
75
71
 
76
72
  unless self.class.can_perform_action?(:create)
77
- this.netzke_feedback "Permission Denied"
73
+ client.netzke_notify "Permission Denied"
78
74
  return
79
75
  end
80
76
 
81
77
  user = self.class.create_edit_user(data)
82
78
  if user.valid?
83
- this.success = true
84
- this.on_submit_success
79
+ client.success = true
80
+ client.netzke_on_submit_success
85
81
  else
86
- data_adapter.errors_array(user).each do |error|
87
- flash :error => error
88
- end
89
- this.netzke_feedback(@flash)
82
+ client.netzke_notify(model_adapter.errors_array(user).join("\n"))
90
83
  end
91
84
  end
92
85
 
93
- endpoint :edit_window__edit_form__netzke_submit do |params, this|
86
+ endpoint :edit_window__edit_form__submit do |params|
94
87
  data = ActiveSupport::JSON.decode(params[:data])
95
88
  unless self.class.can_perform_action?(:update)
96
- this.netzke_feedback "Permission Denied"
89
+ client.netzke_notify "Permission Denied"
97
90
  return
98
91
  end
99
92
 
100
93
  user = self.class.create_edit_user(data)
101
94
  if user.valid?
102
- this.success = true
103
- this.on_submit_success
95
+ client.success = true
96
+ client.netzke_on_submit_success
104
97
  else
105
- data_adapter.errors_array(user).each do |error|
106
- flash :error => error
107
- end
108
- this.netzke_feedback(@flash)
98
+ client.netzke_notify(model_adapter.errors_array(user).join("\n"))
109
99
  end
110
100
  end
111
101
 
112
- action :add_in_form do |a|
102
+ action :add do |a|
103
+ super(a)
113
104
  a.text = I18n.t("user_grid.new")
114
105
  a.tooltip = I18n.t("user_grid.new")
115
106
  a.icon = :user_add
116
- a.disabled = !self.class.can_perform_action?(:create)
117
107
  end
118
108
 
119
- action :edit_in_form do |a|
120
- a.disabled = !self.class.can_perform_action?(:update)
109
+ action :edit do |a|
110
+ super(a)
121
111
  a.icon = :user_edit
122
112
  end
123
113
 
124
- action :del do |a|
114
+ action :delete do |a|
115
+ super(a)
125
116
  a.icon = :user_delete
126
117
  end
127
118
 
128
- def default_bbar
129
- [:add_in_form, :edit_in_form, :del]
130
- end
131
-
132
119
  def default_context_menu
133
120
  []
134
121
  end
135
122
 
136
- column :login do |c|
123
+ attribute :login do |c|
137
124
  c.width = 100
138
- c.text = I18n.t("user_grid.login")
125
+ c.label = I18n.t("user_grid.login")
139
126
  end
140
127
 
141
- column :firstname do |c|
128
+ attribute :firstname do |c|
142
129
  c.width = 100
143
- c.text = I18n.t("user_grid.firstname")
130
+ c.label = I18n.t("user_grid.firstname")
144
131
  end
145
132
 
146
- column :lastname do |c|
133
+ attribute :lastname do |c|
147
134
  c.width = 100
148
- c.text = I18n.t("user_grid.lastname")
135
+ c.label = I18n.t("user_grid.lastname")
149
136
  end
150
137
 
151
- column :active do |c|
138
+ attribute :active do |c|
152
139
  c.width = 60
153
- c.text = I18n.t("user_grid.active")
140
+ c.label = I18n.t("user_grid.active")
154
141
  end
155
142
 
156
- column :roles do |c|
143
+ attribute :roles do |c|
157
144
  c.width = 100
158
145
  c.flex = 1
159
- c.text = I18n.t("user_grid.roles")
160
- c.editor = {
161
- trigger_action: :all,
162
- name: "roles",
163
- attr_type: :string,
164
- xtype: :combo,
165
- store: Marty::Role.pluck(:name).map {|n| I18n.t("roles.#{n}")}.sort,
166
- empty_text: I18n.t("user_grid.select_roles"),
167
- multi_select: true,
168
- }
146
+ c.label = I18n.t("user_grid.roles")
147
+ c.type = :string,
169
148
 
170
149
  c.getter = lambda do |r|
171
150
  r.roles.map { |ur| I18n.t("roles.#{ur.name}") }.sort
172
151
  end
152
+ c.editor_config = { multi_select: true,
153
+ empty_text: I18n.t("user_grid.select_roles"),
154
+ store: Marty::Role.pluck(:name).map {
155
+ |n| I18n.t("roles.#{n}")}.sort,
156
+ type: :string,
157
+ xtype: :combo}
173
158
  end
174
159
 
175
- column :created_dt do |c|
176
- c.text = I18n.t("user_grid.created_dt")
160
+ attribute :created_dt do |c|
161
+ c.label = I18n.t("user_grid.created_dt")
177
162
  c.format = "Y-m-d H:i"
178
163
  c.read_only = true
179
164
  end
180
-
181
165
  end
182
166
 
183
167
  UserView = Marty::UserView
data/lib/marty/monkey.rb CHANGED
@@ -145,7 +145,7 @@ module Netzke::Basepack::DataAdapters
145
145
  relation = relation.includes(assoc.to_sym).references(assoc.to_sym) if method
146
146
  end
147
147
 
148
- @model_class.const_defined?(:LAZY_LOADED) ? relation.unscoped.count :
148
+ @model.const_defined?(:LAZY_LOADED) ? relation.unscoped.count :
149
149
  relation.count
150
150
  end
151
151
 
data/lib/marty/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Marty
2
- VERSION = "0.5.41"
2
+ VERSION = "1.0.0"
3
3
  end
data/marty.gemspec CHANGED
@@ -28,8 +28,9 @@ Gem::Specification.new do |s|
28
28
 
29
29
  s.add_dependency "pg", "~> 0.17"
30
30
 
31
- s.add_dependency 'netzke-core', '~> 0.12.2'
32
- s.add_dependency 'netzke-basepack', '~> 0.12.6'
31
+ s.add_dependency 'netzke-core', '~> 1.0.0'
32
+ s.add_dependency 'netzke-basepack', '~> 1.0.0'
33
+ s.add_development_dependency 'netzke-testing', '~> 1.0.0'
33
34
 
34
35
  s.add_dependency 'axlsx', '2.1.0pre'
35
36
 
@@ -0,0 +1,15 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // the compiled file.
9
+ //
10
+ // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
+ // GO AFTER THE REQUIRES BELOW.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require_tree .
@@ -345,6 +345,23 @@ feature 'under Applications menu, Scripting workflows', js: true do
345
345
  end
346
346
  end
347
347
 
348
+ it 'prevents non-dev from deleting' do
349
+ log_in_as('viewer1')
350
+ go_to_scripting
351
+
352
+ script_grid = netzke_find('script_grid')
353
+ and_by 'delete script' do
354
+ script_grid.select_row(1)
355
+ press('Delete Script')
356
+ find(:xpath, "//div[text()='Confirmation']", wait: 5)
357
+ press('Yes')
358
+ end
359
+
360
+ and_by 'script is gone' do
361
+ expect(find(:msg)).to have_content 'Permission Denied'
362
+ end
363
+ end
364
+
348
365
  it 'only allows delete on DEV tag' do
349
366
  log_in_as('dev1')
350
367
  go_to_scripting
@@ -66,7 +66,7 @@ feature 'under Sytem menu, User Management worflows', js: true do
66
66
  wait_for_ajax
67
67
  expect(user_view.row_count).to eq 2
68
68
  user_view.select_row(2)
69
- press('Edit in form')
69
+ press('Edit')
70
70
 
71
71
  within(:gridpanel, 'edit_window', match: :first) do
72
72
  fill_in('Login', with: 'new_login')
@@ -113,11 +113,13 @@ feature 'under Sytem menu, User Management worflows', js: true do
113
113
  it 'user manager has access' do
114
114
  log_in_as('user_manager1')
115
115
  go_to_user_view
116
+ user_view = netzke_find('user_view')
116
117
  by 'check buttons' do
117
118
  find(:btn, 'New User', match: :first)
118
119
  zoom_out
120
+ user_view.select_row(1)
119
121
  expect(btn_disabled?('New User')).to be_falsy
120
- expect(btn_disabled?('Edit in form')).to be_falsy
122
+ expect(btn_disabled?('Edit')).to be_falsy
121
123
  expect(btn_disabled?('Delete')).to be_falsy
122
124
  end
123
125
  end
@@ -125,10 +127,12 @@ feature 'under Sytem menu, User Management worflows', js: true do
125
127
  it 'admin has access' do
126
128
  log_in_as('admin1')
127
129
  go_to_user_view
130
+ user_view = netzke_find('user_view')
128
131
  by 'check buttons' do
129
132
  find(:btn, 'New User', match: :first)
133
+ user_view.select_row(1)
130
134
  expect(btn_disabled?('New User')).to be_falsy
131
- expect(btn_disabled?('Edit in form')).to be_falsy
135
+ expect(btn_disabled?('Edit')).to be_falsy
132
136
  expect(btn_disabled?('Delete')).to be_falsy
133
137
  end
134
138
  end
@@ -136,30 +140,26 @@ feature 'under Sytem menu, User Management worflows', js: true do
136
140
  it 'viewer denied access' do
137
141
  log_in_as('viewer1')
138
142
  go_to_user_view_backdoor
143
+
139
144
  user_view = netzke_find('user_view')
140
145
  by 'check buttons' do
141
- find(:btn, 'New User', match: :first)
142
- #selection needed to make delete button disappear
143
- wait_for_ajax
144
146
  user_view.select_row(1)
145
- expect(btn_disabled?('New User')).to be_truthy
146
- expect(btn_disabled?('Edit in form')).to be_truthy
147
- expect(btn_disabled?('Delete')).to be_truthy
147
+ expect(page).not_to have_content('New User')
148
+ expect(page).not_to have_content('Edit')
149
+ expect(page).not_to have_content('Delete')
148
150
  end
149
151
  end
150
152
 
151
153
  it 'developer denied access' do
152
154
  log_in_as('dev1')
153
155
  go_to_user_view_backdoor
156
+
154
157
  user_view = netzke_find('user_view')
155
158
  by 'check buttons' do
156
- find(:btn, 'New User', match: :first)
157
- #selection needed to make delete button disappear
158
- wait_for_ajax
159
159
  user_view.select_row(1)
160
- expect(btn_disabled?('New User')).to be_truthy
161
- expect(btn_disabled?('Edit in form')).to be_truthy
162
- expect(btn_disabled?('Delete')).to be_truthy
160
+ expect(page).not_to have_content('New User')
161
+ expect(page).not_to have_content('Edit')
162
+ expect(page).not_to have_content('Delete')
163
163
  end
164
164
  end
165
165
  end
data/spec/spec_helper.rb CHANGED
@@ -29,6 +29,15 @@ class ActiveRecord::Base
29
29
  end
30
30
  end
31
31
 
32
+ Capybara.register_driver :selenium do |app|
33
+ client = Selenium::WebDriver::Remote::Http::Default.new
34
+ profile = Selenium::WebDriver::Firefox::Profile.new
35
+ profile.load_no_focus_lib = true
36
+ Capybara::Selenium::Driver.new(app, :profile => profile,
37
+ :http_client => client)
38
+ end
39
+
40
+
32
41
  ActiveRecord::Base.shared_connection = ActiveRecord::Base.connection
33
42
 
34
43
  RSpec.configure do |config|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.41
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arman Bostani
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2016-06-10 00:00:00.000000000 Z
17
+ date: 2016-06-16 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: pg
@@ -36,28 +36,42 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 0.12.2
39
+ version: 1.0.0
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 0.12.2
46
+ version: 1.0.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: netzke-basepack
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 0.12.6
53
+ version: 1.0.0
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 0.12.6
60
+ version: 1.0.0
61
+ - !ruby/object:Gem::Dependency
62
+ name: netzke-testing
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: 1.0.0
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: 1.0.0
61
75
  - !ruby/object:Gem::Dependency
62
76
  name: axlsx
63
77
  requirement: !ruby/object:Gem::Requirement
@@ -162,7 +176,7 @@ files:
162
176
  - app/assets/stylesheets/marty/diagnostic.css
163
177
  - app/components/marty/api_auth_view.rb
164
178
  - app/components/marty/auth_app.rb
165
- - app/components/marty/auth_app/javascripts/auth_app.js
179
+ - app/components/marty/auth_app/client/auth_app.js
166
180
  - app/components/marty/config_view.rb
167
181
  - app/components/marty/extras/layout.rb
168
182
  - app/components/marty/extras/misc.rb
@@ -179,180 +193,180 @@ files:
179
193
  - app/components/marty/posting_grid.rb
180
194
  - app/components/marty/posting_window.rb
181
195
  - app/components/marty/promise_view.rb
182
- - app/components/marty/promise_view/stylesheets/promise_view.css
196
+ - app/components/marty/promise_view/client/promise_view.css
183
197
  - app/components/marty/report_form.rb
184
198
  - app/components/marty/report_select.rb
185
199
  - app/components/marty/reporting.rb
186
200
  - app/components/marty/script_form.rb
187
- - app/components/marty/script_form/javascripts/Ext.ux.form.field.CodeMirror.js
188
- - app/components/marty/script_form/javascripts/codemirror.js
189
- - app/components/marty/script_form/javascripts/mode/clike/clike.js
190
- - app/components/marty/script_form/javascripts/mode/clike/index.html
191
- - app/components/marty/script_form/javascripts/mode/clike/scala.html
192
- - app/components/marty/script_form/javascripts/mode/clojure/clojure.js
193
- - app/components/marty/script_form/javascripts/mode/clojure/index.html
194
- - app/components/marty/script_form/javascripts/mode/coffeescript/LICENSE
195
- - app/components/marty/script_form/javascripts/mode/coffeescript/coffeescript.js
196
- - app/components/marty/script_form/javascripts/mode/coffeescript/index.html
197
- - app/components/marty/script_form/javascripts/mode/commonlisp/commonlisp.js
198
- - app/components/marty/script_form/javascripts/mode/commonlisp/index.html
199
- - app/components/marty/script_form/javascripts/mode/css/css.js
200
- - app/components/marty/script_form/javascripts/mode/css/index.html
201
- - app/components/marty/script_form/javascripts/mode/css/test.js
202
- - app/components/marty/script_form/javascripts/mode/delorean/delorean.js
203
- - app/components/marty/script_form/javascripts/mode/diff/diff.js
204
- - app/components/marty/script_form/javascripts/mode/diff/index.html
205
- - app/components/marty/script_form/javascripts/mode/ecl/ecl.js
206
- - app/components/marty/script_form/javascripts/mode/ecl/index.html
207
- - app/components/marty/script_form/javascripts/mode/erlang/erlang.js
208
- - app/components/marty/script_form/javascripts/mode/erlang/index.html
209
- - app/components/marty/script_form/javascripts/mode/gfm/gfm.js
210
- - app/components/marty/script_form/javascripts/mode/gfm/index.html
211
- - app/components/marty/script_form/javascripts/mode/go/go.js
212
- - app/components/marty/script_form/javascripts/mode/go/index.html
213
- - app/components/marty/script_form/javascripts/mode/groovy/groovy.js
214
- - app/components/marty/script_form/javascripts/mode/groovy/index.html
215
- - app/components/marty/script_form/javascripts/mode/haskell/haskell.js
216
- - app/components/marty/script_form/javascripts/mode/haskell/index.html
217
- - app/components/marty/script_form/javascripts/mode/haxe/haxe.js
218
- - app/components/marty/script_form/javascripts/mode/haxe/index.html
219
- - app/components/marty/script_form/javascripts/mode/htmlembedded/htmlembedded.js
220
- - app/components/marty/script_form/javascripts/mode/htmlembedded/index.html
221
- - app/components/marty/script_form/javascripts/mode/htmlmixed/htmlmixed.js
222
- - app/components/marty/script_form/javascripts/mode/htmlmixed/index.html
223
- - app/components/marty/script_form/javascripts/mode/javascript/index.html
224
- - app/components/marty/script_form/javascripts/mode/javascript/javascript.js
225
- - app/components/marty/script_form/javascripts/mode/jinja2/index.html
226
- - app/components/marty/script_form/javascripts/mode/jinja2/jinja2.js
227
- - app/components/marty/script_form/javascripts/mode/less/index.html
228
- - app/components/marty/script_form/javascripts/mode/less/less.js
229
- - app/components/marty/script_form/javascripts/mode/lua/index.html
230
- - app/components/marty/script_form/javascripts/mode/lua/lua.js
231
- - app/components/marty/script_form/javascripts/mode/markdown/index.html
232
- - app/components/marty/script_form/javascripts/mode/markdown/markdown.js
233
- - app/components/marty/script_form/javascripts/mode/markdown/test.js
234
- - app/components/marty/script_form/javascripts/mode/mysql/index.html
235
- - app/components/marty/script_form/javascripts/mode/mysql/mysql.js
236
- - app/components/marty/script_form/javascripts/mode/ntriples/index.html
237
- - app/components/marty/script_form/javascripts/mode/ntriples/ntriples.js
238
- - app/components/marty/script_form/javascripts/mode/ocaml/index.html
239
- - app/components/marty/script_form/javascripts/mode/ocaml/ocaml.js
240
- - app/components/marty/script_form/javascripts/mode/pascal/LICENSE
241
- - app/components/marty/script_form/javascripts/mode/pascal/index.html
242
- - app/components/marty/script_form/javascripts/mode/pascal/pascal.js
243
- - app/components/marty/script_form/javascripts/mode/perl/LICENSE
244
- - app/components/marty/script_form/javascripts/mode/perl/index.html
245
- - app/components/marty/script_form/javascripts/mode/perl/perl.js
246
- - app/components/marty/script_form/javascripts/mode/php/index.html
247
- - app/components/marty/script_form/javascripts/mode/php/php.js
248
- - app/components/marty/script_form/javascripts/mode/pig/index.html
249
- - app/components/marty/script_form/javascripts/mode/pig/pig.js
250
- - app/components/marty/script_form/javascripts/mode/plsql/index.html
251
- - app/components/marty/script_form/javascripts/mode/plsql/plsql.js
252
- - app/components/marty/script_form/javascripts/mode/properties/index.html
253
- - app/components/marty/script_form/javascripts/mode/properties/properties.js
254
- - app/components/marty/script_form/javascripts/mode/python/LICENSE.txt
255
- - app/components/marty/script_form/javascripts/mode/python/index.html
256
- - app/components/marty/script_form/javascripts/mode/python/python.js
257
- - app/components/marty/script_form/javascripts/mode/r/LICENSE
258
- - app/components/marty/script_form/javascripts/mode/r/index.html
259
- - app/components/marty/script_form/javascripts/mode/r/r.js
260
- - app/components/marty/script_form/javascripts/mode/rpm/changes/changes.js
261
- - app/components/marty/script_form/javascripts/mode/rpm/changes/index.html
262
- - app/components/marty/script_form/javascripts/mode/rpm/spec/index.html
263
- - app/components/marty/script_form/javascripts/mode/rpm/spec/spec.css
264
- - app/components/marty/script_form/javascripts/mode/rpm/spec/spec.js
265
- - app/components/marty/script_form/javascripts/mode/rst/index.html
266
- - app/components/marty/script_form/javascripts/mode/rst/rst.js
267
- - app/components/marty/script_form/javascripts/mode/ruby/LICENSE
268
- - app/components/marty/script_form/javascripts/mode/ruby/index.html
269
- - app/components/marty/script_form/javascripts/mode/ruby/ruby.js
270
- - app/components/marty/script_form/javascripts/mode/rust/index.html
271
- - app/components/marty/script_form/javascripts/mode/rust/rust.js
272
- - app/components/marty/script_form/javascripts/mode/scheme/index.html
273
- - app/components/marty/script_form/javascripts/mode/scheme/scheme.js
274
- - app/components/marty/script_form/javascripts/mode/shell/index.html
275
- - app/components/marty/script_form/javascripts/mode/shell/shell.js
276
- - app/components/marty/script_form/javascripts/mode/sieve/LICENSE
277
- - app/components/marty/script_form/javascripts/mode/sieve/index.html
278
- - app/components/marty/script_form/javascripts/mode/sieve/sieve.js
279
- - app/components/marty/script_form/javascripts/mode/smalltalk/index.html
280
- - app/components/marty/script_form/javascripts/mode/smalltalk/smalltalk.js
281
- - app/components/marty/script_form/javascripts/mode/smarty/index.html
282
- - app/components/marty/script_form/javascripts/mode/smarty/smarty.js
283
- - app/components/marty/script_form/javascripts/mode/sparql/index.html
284
- - app/components/marty/script_form/javascripts/mode/sparql/sparql.js
285
- - app/components/marty/script_form/javascripts/mode/stex/index.html
286
- - app/components/marty/script_form/javascripts/mode/stex/stex.js
287
- - app/components/marty/script_form/javascripts/mode/stex/test.js
288
- - app/components/marty/script_form/javascripts/mode/tiddlywiki/index.html
289
- - app/components/marty/script_form/javascripts/mode/tiddlywiki/tiddlywiki.css
290
- - app/components/marty/script_form/javascripts/mode/tiddlywiki/tiddlywiki.js
291
- - app/components/marty/script_form/javascripts/mode/tiki/index.html
292
- - app/components/marty/script_form/javascripts/mode/tiki/tiki.css
293
- - app/components/marty/script_form/javascripts/mode/tiki/tiki.js
294
- - app/components/marty/script_form/javascripts/mode/vb/LICENSE.txt
295
- - app/components/marty/script_form/javascripts/mode/vb/index.html
296
- - app/components/marty/script_form/javascripts/mode/vb/vb.js
297
- - app/components/marty/script_form/javascripts/mode/vbscript/index.html
298
- - app/components/marty/script_form/javascripts/mode/vbscript/vbscript.js
299
- - app/components/marty/script_form/javascripts/mode/velocity/index.html
300
- - app/components/marty/script_form/javascripts/mode/velocity/velocity.js
301
- - app/components/marty/script_form/javascripts/mode/verilog/index.html
302
- - app/components/marty/script_form/javascripts/mode/verilog/verilog.js
303
- - app/components/marty/script_form/javascripts/mode/xml/index.html
304
- - app/components/marty/script_form/javascripts/mode/xml/xml.js
305
- - app/components/marty/script_form/javascripts/mode/xquery/LICENSE
306
- - app/components/marty/script_form/javascripts/mode/xquery/index.html
307
- - app/components/marty/script_form/javascripts/mode/xquery/test/index.html
308
- - app/components/marty/script_form/javascripts/mode/xquery/test/testBase.js
309
- - app/components/marty/script_form/javascripts/mode/xquery/test/testEmptySequenceKeyword.js
310
- - app/components/marty/script_form/javascripts/mode/xquery/test/testMultiAttr.js
311
- - app/components/marty/script_form/javascripts/mode/xquery/test/testNamespaces.js
312
- - app/components/marty/script_form/javascripts/mode/xquery/test/testProcessingInstructions.js
313
- - app/components/marty/script_form/javascripts/mode/xquery/test/testQuotes.js
314
- - app/components/marty/script_form/javascripts/mode/xquery/xquery.js
315
- - app/components/marty/script_form/javascripts/mode/yaml/index.html
316
- - app/components/marty/script_form/javascripts/mode/yaml/yaml.js
317
- - app/components/marty/script_form/javascripts/util/closetag.js
318
- - app/components/marty/script_form/javascripts/util/dialog.css
319
- - app/components/marty/script_form/javascripts/util/dialog.js
320
- - app/components/marty/script_form/javascripts/util/foldcode.js
321
- - app/components/marty/script_form/javascripts/util/formatting.js
322
- - app/components/marty/script_form/javascripts/util/javascript-hint.js
323
- - app/components/marty/script_form/javascripts/util/loadmode.js
324
- - app/components/marty/script_form/javascripts/util/match-highlighter.js
325
- - app/components/marty/script_form/javascripts/util/multiplex.js
326
- - app/components/marty/script_form/javascripts/util/overlay.js
327
- - app/components/marty/script_form/javascripts/util/pig-hint.js
328
- - app/components/marty/script_form/javascripts/util/runmode-standalone.js
329
- - app/components/marty/script_form/javascripts/util/runmode.js
330
- - app/components/marty/script_form/javascripts/util/search.js
331
- - app/components/marty/script_form/javascripts/util/searchcursor.js
332
- - app/components/marty/script_form/javascripts/util/simple-hint.css
333
- - app/components/marty/script_form/javascripts/util/simple-hint.js
334
- - app/components/marty/script_form/javascripts/util/xml-hint.js
335
- - app/components/marty/script_form/stylesheets/codemirror.css
336
- - app/components/marty/script_form/stylesheets/delorean.css
337
- - app/components/marty/script_form/stylesheets/theme/ambiance.css
338
- - app/components/marty/script_form/stylesheets/theme/blackboard.css
339
- - app/components/marty/script_form/stylesheets/theme/cobalt.css
340
- - app/components/marty/script_form/stylesheets/theme/eclipse.css
341
- - app/components/marty/script_form/stylesheets/theme/elegant.css
342
- - app/components/marty/script_form/stylesheets/theme/erlang-dark.css
343
- - app/components/marty/script_form/stylesheets/theme/lesser-dark.css
344
- - app/components/marty/script_form/stylesheets/theme/monokai.css
345
- - app/components/marty/script_form/stylesheets/theme/neat.css
346
- - app/components/marty/script_form/stylesheets/theme/night.css
347
- - app/components/marty/script_form/stylesheets/theme/rubyblue.css
348
- - app/components/marty/script_form/stylesheets/theme/vibrant-ink.css
349
- - app/components/marty/script_form/stylesheets/theme/xq-dark.css
201
+ - app/components/marty/script_form/client/Ext.ux.form.field.CodeMirror.js
202
+ - app/components/marty/script_form/client/codemirror.css
203
+ - app/components/marty/script_form/client/codemirror.js
204
+ - app/components/marty/script_form/client/delorean.css
205
+ - app/components/marty/script_form/client/mode/clike/clike.js
206
+ - app/components/marty/script_form/client/mode/clike/index.html
207
+ - app/components/marty/script_form/client/mode/clike/scala.html
208
+ - app/components/marty/script_form/client/mode/clojure/clojure.js
209
+ - app/components/marty/script_form/client/mode/clojure/index.html
210
+ - app/components/marty/script_form/client/mode/coffeescript/LICENSE
211
+ - app/components/marty/script_form/client/mode/coffeescript/coffeescript.js
212
+ - app/components/marty/script_form/client/mode/coffeescript/index.html
213
+ - app/components/marty/script_form/client/mode/commonlisp/commonlisp.js
214
+ - app/components/marty/script_form/client/mode/commonlisp/index.html
215
+ - app/components/marty/script_form/client/mode/css/css.js
216
+ - app/components/marty/script_form/client/mode/css/index.html
217
+ - app/components/marty/script_form/client/mode/css/test.js
218
+ - app/components/marty/script_form/client/mode/delorean/delorean.js
219
+ - app/components/marty/script_form/client/mode/diff/diff.js
220
+ - app/components/marty/script_form/client/mode/diff/index.html
221
+ - app/components/marty/script_form/client/mode/ecl/ecl.js
222
+ - app/components/marty/script_form/client/mode/ecl/index.html
223
+ - app/components/marty/script_form/client/mode/erlang/erlang.js
224
+ - app/components/marty/script_form/client/mode/erlang/index.html
225
+ - app/components/marty/script_form/client/mode/gfm/gfm.js
226
+ - app/components/marty/script_form/client/mode/gfm/index.html
227
+ - app/components/marty/script_form/client/mode/go/go.js
228
+ - app/components/marty/script_form/client/mode/go/index.html
229
+ - app/components/marty/script_form/client/mode/groovy/groovy.js
230
+ - app/components/marty/script_form/client/mode/groovy/index.html
231
+ - app/components/marty/script_form/client/mode/haskell/haskell.js
232
+ - app/components/marty/script_form/client/mode/haskell/index.html
233
+ - app/components/marty/script_form/client/mode/haxe/haxe.js
234
+ - app/components/marty/script_form/client/mode/haxe/index.html
235
+ - app/components/marty/script_form/client/mode/htmlembedded/htmlembedded.js
236
+ - app/components/marty/script_form/client/mode/htmlembedded/index.html
237
+ - app/components/marty/script_form/client/mode/htmlmixed/htmlmixed.js
238
+ - app/components/marty/script_form/client/mode/htmlmixed/index.html
239
+ - app/components/marty/script_form/client/mode/javascript/index.html
240
+ - app/components/marty/script_form/client/mode/javascript/javascript.js
241
+ - app/components/marty/script_form/client/mode/jinja2/index.html
242
+ - app/components/marty/script_form/client/mode/jinja2/jinja2.js
243
+ - app/components/marty/script_form/client/mode/less/index.html
244
+ - app/components/marty/script_form/client/mode/less/less.js
245
+ - app/components/marty/script_form/client/mode/lua/index.html
246
+ - app/components/marty/script_form/client/mode/lua/lua.js
247
+ - app/components/marty/script_form/client/mode/markdown/index.html
248
+ - app/components/marty/script_form/client/mode/markdown/markdown.js
249
+ - app/components/marty/script_form/client/mode/markdown/test.js
250
+ - app/components/marty/script_form/client/mode/mysql/index.html
251
+ - app/components/marty/script_form/client/mode/mysql/mysql.js
252
+ - app/components/marty/script_form/client/mode/ntriples/index.html
253
+ - app/components/marty/script_form/client/mode/ntriples/ntriples.js
254
+ - app/components/marty/script_form/client/mode/ocaml/index.html
255
+ - app/components/marty/script_form/client/mode/ocaml/ocaml.js
256
+ - app/components/marty/script_form/client/mode/pascal/LICENSE
257
+ - app/components/marty/script_form/client/mode/pascal/index.html
258
+ - app/components/marty/script_form/client/mode/pascal/pascal.js
259
+ - app/components/marty/script_form/client/mode/perl/LICENSE
260
+ - app/components/marty/script_form/client/mode/perl/index.html
261
+ - app/components/marty/script_form/client/mode/perl/perl.js
262
+ - app/components/marty/script_form/client/mode/php/index.html
263
+ - app/components/marty/script_form/client/mode/php/php.js
264
+ - app/components/marty/script_form/client/mode/pig/index.html
265
+ - app/components/marty/script_form/client/mode/pig/pig.js
266
+ - app/components/marty/script_form/client/mode/plsql/index.html
267
+ - app/components/marty/script_form/client/mode/plsql/plsql.js
268
+ - app/components/marty/script_form/client/mode/properties/index.html
269
+ - app/components/marty/script_form/client/mode/properties/properties.js
270
+ - app/components/marty/script_form/client/mode/python/LICENSE.txt
271
+ - app/components/marty/script_form/client/mode/python/index.html
272
+ - app/components/marty/script_form/client/mode/python/python.js
273
+ - app/components/marty/script_form/client/mode/r/LICENSE
274
+ - app/components/marty/script_form/client/mode/r/index.html
275
+ - app/components/marty/script_form/client/mode/r/r.js
276
+ - app/components/marty/script_form/client/mode/rpm/changes/changes.js
277
+ - app/components/marty/script_form/client/mode/rpm/changes/index.html
278
+ - app/components/marty/script_form/client/mode/rpm/spec/index.html
279
+ - app/components/marty/script_form/client/mode/rpm/spec/spec.css
280
+ - app/components/marty/script_form/client/mode/rpm/spec/spec.js
281
+ - app/components/marty/script_form/client/mode/rst/index.html
282
+ - app/components/marty/script_form/client/mode/rst/rst.js
283
+ - app/components/marty/script_form/client/mode/ruby/LICENSE
284
+ - app/components/marty/script_form/client/mode/ruby/index.html
285
+ - app/components/marty/script_form/client/mode/ruby/ruby.js
286
+ - app/components/marty/script_form/client/mode/rust/index.html
287
+ - app/components/marty/script_form/client/mode/rust/rust.js
288
+ - app/components/marty/script_form/client/mode/scheme/index.html
289
+ - app/components/marty/script_form/client/mode/scheme/scheme.js
290
+ - app/components/marty/script_form/client/mode/shell/index.html
291
+ - app/components/marty/script_form/client/mode/shell/shell.js
292
+ - app/components/marty/script_form/client/mode/sieve/LICENSE
293
+ - app/components/marty/script_form/client/mode/sieve/index.html
294
+ - app/components/marty/script_form/client/mode/sieve/sieve.js
295
+ - app/components/marty/script_form/client/mode/smalltalk/index.html
296
+ - app/components/marty/script_form/client/mode/smalltalk/smalltalk.js
297
+ - app/components/marty/script_form/client/mode/smarty/index.html
298
+ - app/components/marty/script_form/client/mode/smarty/smarty.js
299
+ - app/components/marty/script_form/client/mode/sparql/index.html
300
+ - app/components/marty/script_form/client/mode/sparql/sparql.js
301
+ - app/components/marty/script_form/client/mode/stex/index.html
302
+ - app/components/marty/script_form/client/mode/stex/stex.js
303
+ - app/components/marty/script_form/client/mode/stex/test.js
304
+ - app/components/marty/script_form/client/mode/tiddlywiki/index.html
305
+ - app/components/marty/script_form/client/mode/tiddlywiki/tiddlywiki.css
306
+ - app/components/marty/script_form/client/mode/tiddlywiki/tiddlywiki.js
307
+ - app/components/marty/script_form/client/mode/tiki/index.html
308
+ - app/components/marty/script_form/client/mode/tiki/tiki.css
309
+ - app/components/marty/script_form/client/mode/tiki/tiki.js
310
+ - app/components/marty/script_form/client/mode/vb/LICENSE.txt
311
+ - app/components/marty/script_form/client/mode/vb/index.html
312
+ - app/components/marty/script_form/client/mode/vb/vb.js
313
+ - app/components/marty/script_form/client/mode/vbscript/index.html
314
+ - app/components/marty/script_form/client/mode/vbscript/vbscript.js
315
+ - app/components/marty/script_form/client/mode/velocity/index.html
316
+ - app/components/marty/script_form/client/mode/velocity/velocity.js
317
+ - app/components/marty/script_form/client/mode/verilog/index.html
318
+ - app/components/marty/script_form/client/mode/verilog/verilog.js
319
+ - app/components/marty/script_form/client/mode/xml/index.html
320
+ - app/components/marty/script_form/client/mode/xml/xml.js
321
+ - app/components/marty/script_form/client/mode/xquery/LICENSE
322
+ - app/components/marty/script_form/client/mode/xquery/index.html
323
+ - app/components/marty/script_form/client/mode/xquery/test/index.html
324
+ - app/components/marty/script_form/client/mode/xquery/test/testBase.js
325
+ - app/components/marty/script_form/client/mode/xquery/test/testEmptySequenceKeyword.js
326
+ - app/components/marty/script_form/client/mode/xquery/test/testMultiAttr.js
327
+ - app/components/marty/script_form/client/mode/xquery/test/testNamespaces.js
328
+ - app/components/marty/script_form/client/mode/xquery/test/testProcessingInstructions.js
329
+ - app/components/marty/script_form/client/mode/xquery/test/testQuotes.js
330
+ - app/components/marty/script_form/client/mode/xquery/xquery.js
331
+ - app/components/marty/script_form/client/mode/yaml/index.html
332
+ - app/components/marty/script_form/client/mode/yaml/yaml.js
333
+ - app/components/marty/script_form/client/theme/ambiance.css
334
+ - app/components/marty/script_form/client/theme/blackboard.css
335
+ - app/components/marty/script_form/client/theme/cobalt.css
336
+ - app/components/marty/script_form/client/theme/eclipse.css
337
+ - app/components/marty/script_form/client/theme/elegant.css
338
+ - app/components/marty/script_form/client/theme/erlang-dark.css
339
+ - app/components/marty/script_form/client/theme/lesser-dark.css
340
+ - app/components/marty/script_form/client/theme/monokai.css
341
+ - app/components/marty/script_form/client/theme/neat.css
342
+ - app/components/marty/script_form/client/theme/night.css
343
+ - app/components/marty/script_form/client/theme/rubyblue.css
344
+ - app/components/marty/script_form/client/theme/vibrant-ink.css
345
+ - app/components/marty/script_form/client/theme/xq-dark.css
346
+ - app/components/marty/script_form/client/util/closetag.js
347
+ - app/components/marty/script_form/client/util/dialog.css
348
+ - app/components/marty/script_form/client/util/dialog.js
349
+ - app/components/marty/script_form/client/util/foldcode.js
350
+ - app/components/marty/script_form/client/util/formatting.js
351
+ - app/components/marty/script_form/client/util/javascript-hint.js
352
+ - app/components/marty/script_form/client/util/loadmode.js
353
+ - app/components/marty/script_form/client/util/match-highlighter.js
354
+ - app/components/marty/script_form/client/util/multiplex.js
355
+ - app/components/marty/script_form/client/util/overlay.js
356
+ - app/components/marty/script_form/client/util/pig-hint.js
357
+ - app/components/marty/script_form/client/util/runmode-standalone.js
358
+ - app/components/marty/script_form/client/util/runmode.js
359
+ - app/components/marty/script_form/client/util/search.js
360
+ - app/components/marty/script_form/client/util/searchcursor.js
361
+ - app/components/marty/script_form/client/util/simple-hint.css
362
+ - app/components/marty/script_form/client/util/simple-hint.js
363
+ - app/components/marty/script_form/client/util/xml-hint.js
350
364
  - app/components/marty/script_grid.rb
351
365
  - app/components/marty/script_tester.rb
352
366
  - app/components/marty/scripting.rb
353
367
  - app/components/marty/simple_app.rb
354
- - app/components/marty/simple_app/javascripts/simple_app.js
355
- - app/components/marty/simple_app/javascripts/statusbar_ext.js
368
+ - app/components/marty/simple_app/client/simple_app.js
369
+ - app/components/marty/simple_app/client/statusbar_ext.js
356
370
  - app/components/marty/tag_grid.rb
357
371
  - app/components/marty/user_view.rb
358
372
  - app/controllers/marty/application_controller.rb
@@ -451,7 +465,8 @@ files:
451
465
  - spec/controllers/rpc_import_spec.rb
452
466
  - spec/dummy/README.rdoc
453
467
  - spec/dummy/Rakefile
454
- - spec/dummy/app/assets/stylesheets/application.css
468
+ - spec/dummy/app/assets/client/application.css
469
+ - spec/dummy/app/assets/client/application.js
455
470
  - spec/dummy/app/controllers/application_controller.rb
456
471
  - spec/dummy/app/controllers/components_controller.rb
457
472
  - spec/dummy/app/helpers/application_helper.rb