sc-frank-cucumber 1.2.1.b7791c5.debug → 1.2.1.bba52d7.debug

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. checksums.yaml +7 -0
  2. data/frank-skeleton/frankify.xcconfig.tt +1 -1
  3. data/frank-skeleton/libCocoaAsyncSocket.a +0 -0
  4. data/frank-skeleton/libCocoaAsyncSocketMac.a +0 -0
  5. data/frank-skeleton/libCocoaHTTPServer.a +0 -0
  6. data/frank-skeleton/libCocoaHTTPServerMac.a +0 -0
  7. data/frank-skeleton/libCocoaLumberjack.a +0 -0
  8. data/frank-skeleton/libCocoaLumberjackMac.a +0 -0
  9. data/frank-skeleton/libFrank.a +0 -0
  10. data/frank-skeleton/libFrankMac.a +0 -0
  11. data/frank-skeleton/libShelley.a +0 -0
  12. data/lib/frank-cucumber/version.rb +1 -1
  13. metadata +33 -231
  14. data/frank-skeleton/frank_static_resources.bundle/bundle/ViewAttributeMapping.plist +0 -63
  15. data/frank-skeleton/frank_static_resources.bundle/bundle/ViewAttributeMappingMac.plist +0 -99
  16. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/ViewAttributeMapping.plist +0 -63
  17. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/ViewAttributeMappingMac.plist +0 -99
  18. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/ajax-loader.gif +0 -0
  19. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/file.gif +0 -0
  20. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/folder-closed.gif +0 -0
  21. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/folder.gif +0 -0
  22. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/loader.gif +0 -0
  23. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/loader.png +0 -0
  24. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/minus.gif +0 -0
  25. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/plus.gif +0 -0
  26. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/treeview-black-line.gif +0 -0
  27. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/treeview-black.gif +0 -0
  28. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/treeview-default-line.gif +0 -0
  29. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/treeview-default.gif +0 -0
  30. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/treeview-famfamfam-line.gif +0 -0
  31. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/treeview-famfamfam.gif +0 -0
  32. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/treeview-gray-line.gif +0 -0
  33. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/treeview-gray.gif +0 -0
  34. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/treeview-red-line.gif +0 -0
  35. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/treeview-red.gif +0 -0
  36. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/index.html +0 -86
  37. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/index.html.haml +0 -76
  38. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/accessible_views_view.coffee +0 -41
  39. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/accessible_views_view.js +0 -46
  40. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/controller.coffee +0 -134
  41. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/controller.js +0 -139
  42. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/details_view.coffee +0 -42
  43. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/details_view.js +0 -51
  44. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/dropdown_control.coffee +0 -64
  45. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/dropdown_control.js +0 -73
  46. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/ersatz_model.coffee +0 -46
  47. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/ersatz_model.js +0 -60
  48. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/ersatz_view.coffee +0 -167
  49. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/ersatz_view.js +0 -205
  50. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/experiment_bar_model.coffee +0 -10
  51. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/experiment_bar_model.js +0 -17
  52. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/experiment_bar_view.coffee +0 -44
  53. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/experiment_bar_view.js +0 -63
  54. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/frank.coffee +0 -96
  55. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/frank.js +0 -146
  56. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/lib/backbone.js +0 -1431
  57. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/lib/coffee-script.js +0 -8
  58. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/lib/jquery-ui.min.js +0 -405
  59. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/lib/jquery.min.js +0 -4
  60. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/lib/jquery.treeview.js +0 -251
  61. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/lib/json2.js +0 -481
  62. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/lib/raphael.js +0 -5815
  63. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/lib/require.js +0 -2053
  64. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/lib/underscore.js +0 -1059
  65. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/main.coffee +0 -27
  66. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/main.js +0 -29
  67. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/tabs_controller.coffee +0 -13
  68. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/tabs_controller.js +0 -22
  69. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/toast_controller.coffee +0 -15
  70. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/toast_controller.js +0 -28
  71. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/transform_stack.coffee +0 -59
  72. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/transform_stack.js +0 -78
  73. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/tree_view.coffee +0 -53
  74. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/tree_view.js +0 -64
  75. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/view_hier_model.coffee +0 -37
  76. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/view_hier_model.js +0 -48
  77. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/view_model.coffee +0 -39
  78. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/view_model.js +0 -62
  79. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/pictos/index.html +0 -329
  80. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/pictos/pictos-web.eot +0 -0
  81. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/pictos/pictos-web.svg +0 -114
  82. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/pictos/pictos-web.ttf +0 -0
  83. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/pictos/pictos-web.woff +0 -0
  84. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/pictos/pictos.css +0 -20
  85. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/pictos/pictos_base64.css +0 -18
  86. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/css/symbiote.css +0 -1
  87. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_elements.scss +0 -28
  88. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_header.scss +0 -61
  89. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_inspect_tabs_list_tabs.scss +0 -194
  90. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_jquery.treeview.scss +0 -68
  91. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_jqui.scss +0 -2
  92. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_layout.scss +0 -13
  93. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_mixins.sass +0 -137
  94. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_reset.scss +0 -32
  95. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_selector_test_toolbar.scss +0 -81
  96. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_solarized.scss +0 -16
  97. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_typography.scss +0 -11
  98. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_unicode.scss +0 -3
  99. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_z_index.scss +0 -2
  100. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/symbiote.scss +0 -26
  101. data/frank-skeleton/frank_static_resources.bundle/bundle/images/ajax-loader.gif +0 -0
  102. data/frank-skeleton/frank_static_resources.bundle/bundle/images/file.gif +0 -0
  103. data/frank-skeleton/frank_static_resources.bundle/bundle/images/folder-closed.gif +0 -0
  104. data/frank-skeleton/frank_static_resources.bundle/bundle/images/folder.gif +0 -0
  105. data/frank-skeleton/frank_static_resources.bundle/bundle/images/loader.gif +0 -0
  106. data/frank-skeleton/frank_static_resources.bundle/bundle/images/loader.png +0 -0
  107. data/frank-skeleton/frank_static_resources.bundle/bundle/images/minus.gif +0 -0
  108. data/frank-skeleton/frank_static_resources.bundle/bundle/images/plus.gif +0 -0
  109. data/frank-skeleton/frank_static_resources.bundle/bundle/images/treeview-black-line.gif +0 -0
  110. data/frank-skeleton/frank_static_resources.bundle/bundle/images/treeview-black.gif +0 -0
  111. data/frank-skeleton/frank_static_resources.bundle/bundle/images/treeview-default-line.gif +0 -0
  112. data/frank-skeleton/frank_static_resources.bundle/bundle/images/treeview-default.gif +0 -0
  113. data/frank-skeleton/frank_static_resources.bundle/bundle/images/treeview-famfamfam-line.gif +0 -0
  114. data/frank-skeleton/frank_static_resources.bundle/bundle/images/treeview-famfamfam.gif +0 -0
  115. data/frank-skeleton/frank_static_resources.bundle/bundle/images/treeview-gray-line.gif +0 -0
  116. data/frank-skeleton/frank_static_resources.bundle/bundle/images/treeview-gray.gif +0 -0
  117. data/frank-skeleton/frank_static_resources.bundle/bundle/images/treeview-red-line.gif +0 -0
  118. data/frank-skeleton/frank_static_resources.bundle/bundle/images/treeview-red.gif +0 -0
  119. data/frank-skeleton/frank_static_resources.bundle/bundle/index.html +0 -86
  120. data/frank-skeleton/frank_static_resources.bundle/bundle/index.html.haml +0 -76
  121. data/frank-skeleton/frank_static_resources.bundle/bundle/js/accessible_views_view.coffee +0 -41
  122. data/frank-skeleton/frank_static_resources.bundle/bundle/js/accessible_views_view.js +0 -46
  123. data/frank-skeleton/frank_static_resources.bundle/bundle/js/controller.coffee +0 -134
  124. data/frank-skeleton/frank_static_resources.bundle/bundle/js/controller.js +0 -139
  125. data/frank-skeleton/frank_static_resources.bundle/bundle/js/details_view.coffee +0 -42
  126. data/frank-skeleton/frank_static_resources.bundle/bundle/js/details_view.js +0 -51
  127. data/frank-skeleton/frank_static_resources.bundle/bundle/js/dropdown_control.coffee +0 -64
  128. data/frank-skeleton/frank_static_resources.bundle/bundle/js/dropdown_control.js +0 -73
  129. data/frank-skeleton/frank_static_resources.bundle/bundle/js/ersatz_model.coffee +0 -46
  130. data/frank-skeleton/frank_static_resources.bundle/bundle/js/ersatz_model.js +0 -60
  131. data/frank-skeleton/frank_static_resources.bundle/bundle/js/ersatz_view.coffee +0 -167
  132. data/frank-skeleton/frank_static_resources.bundle/bundle/js/ersatz_view.js +0 -205
  133. data/frank-skeleton/frank_static_resources.bundle/bundle/js/experiment_bar_model.coffee +0 -10
  134. data/frank-skeleton/frank_static_resources.bundle/bundle/js/experiment_bar_model.js +0 -17
  135. data/frank-skeleton/frank_static_resources.bundle/bundle/js/experiment_bar_view.coffee +0 -44
  136. data/frank-skeleton/frank_static_resources.bundle/bundle/js/experiment_bar_view.js +0 -63
  137. data/frank-skeleton/frank_static_resources.bundle/bundle/js/frank.coffee +0 -96
  138. data/frank-skeleton/frank_static_resources.bundle/bundle/js/frank.js +0 -146
  139. data/frank-skeleton/frank_static_resources.bundle/bundle/js/lib/backbone.js +0 -1431
  140. data/frank-skeleton/frank_static_resources.bundle/bundle/js/lib/coffee-script.js +0 -8
  141. data/frank-skeleton/frank_static_resources.bundle/bundle/js/lib/jquery-ui.min.js +0 -405
  142. data/frank-skeleton/frank_static_resources.bundle/bundle/js/lib/jquery.min.js +0 -4
  143. data/frank-skeleton/frank_static_resources.bundle/bundle/js/lib/jquery.treeview.js +0 -251
  144. data/frank-skeleton/frank_static_resources.bundle/bundle/js/lib/json2.js +0 -481
  145. data/frank-skeleton/frank_static_resources.bundle/bundle/js/lib/raphael.js +0 -5815
  146. data/frank-skeleton/frank_static_resources.bundle/bundle/js/lib/require.js +0 -2053
  147. data/frank-skeleton/frank_static_resources.bundle/bundle/js/lib/underscore.js +0 -1059
  148. data/frank-skeleton/frank_static_resources.bundle/bundle/js/main.coffee +0 -27
  149. data/frank-skeleton/frank_static_resources.bundle/bundle/js/main.js +0 -29
  150. data/frank-skeleton/frank_static_resources.bundle/bundle/js/tabs_controller.coffee +0 -13
  151. data/frank-skeleton/frank_static_resources.bundle/bundle/js/tabs_controller.js +0 -22
  152. data/frank-skeleton/frank_static_resources.bundle/bundle/js/toast_controller.coffee +0 -15
  153. data/frank-skeleton/frank_static_resources.bundle/bundle/js/toast_controller.js +0 -28
  154. data/frank-skeleton/frank_static_resources.bundle/bundle/js/transform_stack.coffee +0 -59
  155. data/frank-skeleton/frank_static_resources.bundle/bundle/js/transform_stack.js +0 -78
  156. data/frank-skeleton/frank_static_resources.bundle/bundle/js/tree_view.coffee +0 -53
  157. data/frank-skeleton/frank_static_resources.bundle/bundle/js/tree_view.js +0 -64
  158. data/frank-skeleton/frank_static_resources.bundle/bundle/js/view_hier_model.coffee +0 -37
  159. data/frank-skeleton/frank_static_resources.bundle/bundle/js/view_hier_model.js +0 -48
  160. data/frank-skeleton/frank_static_resources.bundle/bundle/js/view_model.coffee +0 -39
  161. data/frank-skeleton/frank_static_resources.bundle/bundle/js/view_model.js +0 -62
  162. data/frank-skeleton/frank_static_resources.bundle/bundle/pictos/index.html +0 -329
  163. data/frank-skeleton/frank_static_resources.bundle/bundle/pictos/pictos-web.eot +0 -0
  164. data/frank-skeleton/frank_static_resources.bundle/bundle/pictos/pictos-web.svg +0 -114
  165. data/frank-skeleton/frank_static_resources.bundle/bundle/pictos/pictos-web.ttf +0 -0
  166. data/frank-skeleton/frank_static_resources.bundle/bundle/pictos/pictos-web.woff +0 -0
  167. data/frank-skeleton/frank_static_resources.bundle/bundle/pictos/pictos.css +0 -20
  168. data/frank-skeleton/frank_static_resources.bundle/bundle/pictos/pictos_base64.css +0 -18
  169. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/css/symbiote.css +0 -1
  170. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_elements.scss +0 -28
  171. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_header.scss +0 -61
  172. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_inspect_tabs_list_tabs.scss +0 -194
  173. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_jquery.treeview.scss +0 -68
  174. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_jqui.scss +0 -2
  175. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_layout.scss +0 -13
  176. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_mixins.sass +0 -137
  177. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_reset.scss +0 -32
  178. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_selector_test_toolbar.scss +0 -81
  179. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_solarized.scss +0 -16
  180. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_typography.scss +0 -11
  181. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_unicode.scss +0 -3
  182. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_z_index.scss +0 -2
  183. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/symbiote.scss +0 -26
@@ -1,27 +0,0 @@
1
- require ['controller','tabs_controller','tree_view','ersatz_view','details_view', 'accessible_views_view','experiment_bar_view','toast_controller'], (createMainController,createTabsController,TreeView,ErsatzView,DetailsView,AccessibleViewsView,ExperimentBarView,createToastController)->
2
- $ ->
3
- treeView = new TreeView()
4
-
5
- ersatzView = new ErsatzView()
6
- detailsView = new DetailsView()
7
- accessibleViewsView = new AccessibleViewsView()
8
- experimentBarView = new ExperimentBarView()
9
-
10
- tabsController = createTabsController( $("#list-tabs"), $("#inspect-tabs") );
11
- toastController = createToastController( $('.toast') )
12
-
13
- mainController = createMainController(
14
- tabsController: tabsController
15
- toastController: toastController
16
- treeView: treeView
17
- ersatzView: ersatzView
18
- detailsView: detailsView
19
- accessibleViewsView: accessibleViewsView
20
- experimentBarModel: experimentBarView.model
21
- $asplodeButton: $('#asploder button')
22
- $reloadButton: $('button#dump_button')
23
- $liveButton: $('#live-view button')
24
- )
25
- mainController.boot()
26
-
27
-
@@ -1,29 +0,0 @@
1
- (function() {
2
-
3
- require(['controller', 'tabs_controller', 'tree_view', 'ersatz_view', 'details_view', 'accessible_views_view', 'experiment_bar_view', 'toast_controller'], function(createMainController, createTabsController, TreeView, ErsatzView, DetailsView, AccessibleViewsView, ExperimentBarView, createToastController) {
4
- return $(function() {
5
- var accessibleViewsView, detailsView, ersatzView, experimentBarView, mainController, tabsController, toastController, treeView;
6
- treeView = new TreeView();
7
- ersatzView = new ErsatzView();
8
- detailsView = new DetailsView();
9
- accessibleViewsView = new AccessibleViewsView();
10
- experimentBarView = new ExperimentBarView();
11
- tabsController = createTabsController($("#list-tabs"), $("#inspect-tabs"));
12
- toastController = createToastController($('.toast'));
13
- mainController = createMainController({
14
- tabsController: tabsController,
15
- toastController: toastController,
16
- treeView: treeView,
17
- ersatzView: ersatzView,
18
- detailsView: detailsView,
19
- accessibleViewsView: accessibleViewsView,
20
- experimentBarModel: experimentBarView.model,
21
- $asplodeButton: $('#asploder button'),
22
- $reloadButton: $('button#dump_button'),
23
- $liveButton: $('#live-view button')
24
- });
25
- return mainController.boot();
26
- });
27
- });
28
-
29
- }).call(this);
@@ -1,13 +0,0 @@
1
- define ->
2
-
3
- createController = ($listTabs,$inspectTabs)->
4
- $listTabs.tabs();
5
- $inspectTabs.tabs();
6
-
7
- selectViewDetailsTab = -> $inspectTabs.tabs('select', 0)
8
- selectLocatorTab = -> $inspectTabs.tabs('select', 1)
9
- {
10
- selectViewDetailsTab: selectViewDetailsTab
11
- selectLocatorTab: selectLocatorTab
12
- }
13
-
@@ -1,22 +0,0 @@
1
- (function() {
2
-
3
- define(function() {
4
- var createController;
5
- return createController = function($listTabs, $inspectTabs) {
6
- var selectLocatorTab, selectViewDetailsTab;
7
- $listTabs.tabs();
8
- $inspectTabs.tabs();
9
- selectViewDetailsTab = function() {
10
- return $inspectTabs.tabs('select', 0);
11
- };
12
- selectLocatorTab = function() {
13
- return $inspectTabs.tabs('select', 1);
14
- };
15
- return {
16
- selectViewDetailsTab: selectViewDetailsTab,
17
- selectLocatorTab: selectLocatorTab
18
- };
19
- };
20
- });
21
-
22
- }).call(this);
@@ -1,15 +0,0 @@
1
- TOAST_SHOW_TIME = 3000
2
- define ->
3
- createController = ($toast)->
4
- existingTimeout = undefined
5
-
6
- hideToast = -> $toast.removeClass('show')
7
-
8
- hideToast()
9
-
10
- showToastMessage: (message)->
11
- $toast.addClass('show')
12
- $toast.html(message)
13
-
14
- window.clearTimeout(existingTimeout) if existingTimeout?
15
- existingTimeout = window.setTimeout( hideToast, TOAST_SHOW_TIME )
@@ -1,28 +0,0 @@
1
- (function() {
2
- var TOAST_SHOW_TIME;
3
-
4
- TOAST_SHOW_TIME = 3000;
5
-
6
- define(function() {
7
- var createController;
8
- return createController = function($toast) {
9
- var existingTimeout, hideToast;
10
- existingTimeout = void 0;
11
- hideToast = function() {
12
- return $toast.removeClass('show');
13
- };
14
- hideToast();
15
- return {
16
- showToastMessage: function(message) {
17
- $toast.addClass('show');
18
- $toast.html(message);
19
- if (existingTimeout != null) {
20
- window.clearTimeout(existingTimeout);
21
- }
22
- return existingTimeout = window.setTimeout(hideToast, TOAST_SHOW_TIME);
23
- }
24
- };
25
- };
26
- });
27
-
28
- }).call(this);
@@ -1,59 +0,0 @@
1
- R = Raphael
2
-
3
- define ->
4
- (initialMatrix)->
5
- currentMatrix = initialMatrix || R.matrix()
6
- stack = [currentMatrix]
7
-
8
- clone = ->
9
- transformStack( currentMatrix.clone() )
10
-
11
-
12
- push = ->
13
- stack.push( currentMatrix )
14
- currentMatrix = currentMatrix.clone()
15
- @
16
-
17
- pop = ->
18
- stack.pop()
19
- currentMatrix = _.last( stack )
20
- @
21
-
22
- desc = ->
23
- currentMatrix.toTransformString()
24
-
25
- descAndPop = ->
26
- str = desc()
27
- pop()
28
- str
29
-
30
- prefixedWithTranslate = (x,y)->
31
- prefix = R.matrix()
32
- prefix.translate(x,y)
33
- prefix.add( currentMatrix )
34
- prefix
35
-
36
-
37
- chainerFor = ( methodName )->
38
- (args...)->
39
- currentMatrix[methodName](args...)
40
- @
41
-
42
- translate = chainerFor('translate')
43
- rotate = chainerFor('rotate')
44
- scale = chainerFor('scale')
45
-
46
- skew = (x,y)->
47
- x = R.rad(x)
48
- y = R.rad(y)
49
- currentMatrix.add( 1, 0, Math.tan(x), 1, 0, 0 )
50
- currentMatrix.add( 1, Math.tan(y), 0, 1, 0, 0 )
51
- @
52
-
53
- rotateAroundPoint = (rot,x,y)->
54
- @translate(x,y).rotate(rot).translate(-x,-y)
55
-
56
- {
57
- clone, translate, rotate, scale, skew, rotateAroundPoint,
58
- push, pop, desc, descAndPop, prefixedWithTranslate
59
- }
@@ -1,78 +0,0 @@
1
- (function() {
2
- var R,
3
- __slice = [].slice;
4
-
5
- R = Raphael;
6
-
7
- define(function() {
8
- return function(initialMatrix) {
9
- var chainerFor, clone, currentMatrix, desc, descAndPop, pop, prefixedWithTranslate, push, rotate, rotateAroundPoint, scale, skew, stack, translate;
10
- currentMatrix = initialMatrix || R.matrix();
11
- stack = [currentMatrix];
12
- clone = function() {
13
- return transformStack(currentMatrix.clone());
14
- };
15
- push = function() {
16
- stack.push(currentMatrix);
17
- currentMatrix = currentMatrix.clone();
18
- return this;
19
- };
20
- pop = function() {
21
- stack.pop();
22
- currentMatrix = _.last(stack);
23
- return this;
24
- };
25
- desc = function() {
26
- return currentMatrix.toTransformString();
27
- };
28
- descAndPop = function() {
29
- var str;
30
- str = desc();
31
- pop();
32
- return str;
33
- };
34
- prefixedWithTranslate = function(x, y) {
35
- var prefix;
36
- prefix = R.matrix();
37
- prefix.translate(x, y);
38
- prefix.add(currentMatrix);
39
- return prefix;
40
- };
41
- chainerFor = function(methodName) {
42
- return function() {
43
- var args;
44
- args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
45
- currentMatrix[methodName].apply(currentMatrix, args);
46
- return this;
47
- };
48
- };
49
- translate = chainerFor('translate');
50
- rotate = chainerFor('rotate');
51
- scale = chainerFor('scale');
52
- skew = function(x, y) {
53
- x = R.rad(x);
54
- y = R.rad(y);
55
- currentMatrix.add(1, 0, Math.tan(x), 1, 0, 0);
56
- currentMatrix.add(1, Math.tan(y), 0, 1, 0, 0);
57
- return this;
58
- };
59
- rotateAroundPoint = function(rot, x, y) {
60
- return this.translate(x, y).rotate(rot).translate(-x, -y);
61
- };
62
- return {
63
- clone: clone,
64
- translate: translate,
65
- rotate: rotate,
66
- scale: scale,
67
- skew: skew,
68
- rotateAroundPoint: rotateAroundPoint,
69
- push: push,
70
- pop: pop,
71
- desc: desc,
72
- descAndPop: descAndPop,
73
- prefixedWithTranslate: prefixedWithTranslate
74
- };
75
- };
76
- });
77
-
78
- }).call(this);
@@ -1,53 +0,0 @@
1
- define ['view_hier_model'],(ViewHierModel)->
2
-
3
- TreeNodeView = Backbone.View.extend
4
- tagName: 'li'
5
-
6
- initialize: ->
7
- @model.on 'change:selected', _.bind( @refreshSelectedness, @ )
8
-
9
- $a: -> @$( '> a' )
10
-
11
- render: ->
12
- $childList = $("<ul/>")
13
-
14
- for child in @model.get('children')
15
- childView = new TreeNodeView( model: child )
16
- $childList.append( childView.render().el )
17
-
18
- @$el.append("<a>#{@model.getDesc()}</a>").append($childList)
19
-
20
- # have to do this by hand rather than with events property
21
- # because BB doesn't appear to let you bind to just immediate
22
- # descendants using e.g. "mouseenter > a"
23
- @$a()
24
- .on( 'mouseenter', => @model.setActive() )
25
- .on( 'mouseleave', => @model.unsetActive() )
26
- .on( 'click', => @model.trigger('selected',@model) )
27
-
28
- @refreshSelectedness()
29
- @
30
-
31
- refreshSelectedness: ->
32
- if @model.get('selected')
33
- @$a().addClass('selected')
34
- else
35
- @$a().removeClass('selected')
36
-
37
-
38
-
39
-
40
-
41
- TreeView = Backbone.View.extend
42
- el: $('#dom-dump > ul')
43
-
44
- initialize: ->
45
- @model = new ViewHierModel()
46
- @model.on 'change', _.bind(@refresh,@)
47
-
48
- refresh: ->
49
- @$el.empty()
50
- rootNodeView = new TreeNodeView(model: @model.get('root'))
51
- @$el.append( rootNodeView.render().el )
52
- @$el.treeview( collapsed: false )
53
-
@@ -1,64 +0,0 @@
1
- (function() {
2
-
3
- define(['view_hier_model'], function(ViewHierModel) {
4
- var TreeNodeView, TreeView;
5
- TreeNodeView = Backbone.View.extend({
6
- tagName: 'li',
7
- initialize: function() {
8
- return this.model.on('change:selected', _.bind(this.refreshSelectedness, this));
9
- },
10
- $a: function() {
11
- return this.$('> a');
12
- },
13
- render: function() {
14
- var $childList, child, childView, _i, _len, _ref,
15
- _this = this;
16
- $childList = $("<ul/>");
17
- _ref = this.model.get('children');
18
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
19
- child = _ref[_i];
20
- childView = new TreeNodeView({
21
- model: child
22
- });
23
- $childList.append(childView.render().el);
24
- }
25
- this.$el.append("<a>" + (this.model.getDesc()) + "</a>").append($childList);
26
- this.$a().on('mouseenter', function() {
27
- return _this.model.setActive();
28
- }).on('mouseleave', function() {
29
- return _this.model.unsetActive();
30
- }).on('click', function() {
31
- return _this.model.trigger('selected', _this.model);
32
- });
33
- this.refreshSelectedness();
34
- return this;
35
- },
36
- refreshSelectedness: function() {
37
- if (this.model.get('selected')) {
38
- return this.$a().addClass('selected');
39
- } else {
40
- return this.$a().removeClass('selected');
41
- }
42
- }
43
- });
44
- return TreeView = Backbone.View.extend({
45
- el: $('#dom-dump > ul'),
46
- initialize: function() {
47
- this.model = new ViewHierModel();
48
- return this.model.on('change', _.bind(this.refresh, this));
49
- },
50
- refresh: function() {
51
- var rootNodeView;
52
- this.$el.empty();
53
- rootNodeView = new TreeNodeView({
54
- model: this.model.get('root')
55
- });
56
- this.$el.append(rootNodeView.render().el);
57
- return this.$el.treeview({
58
- collapsed: false
59
- });
60
- }
61
- });
62
- });
63
-
64
- }).call(this);
@@ -1,37 +0,0 @@
1
- define ['view_model'], (ViewModel)->
2
- ViewCollection = Backbone.Collection
3
-
4
- flatten = (rootViewModel)->
5
- flattenedViewModels = [rootViewModel]
6
- for childViewModel in rootViewModel.get('children')
7
- flattenedViewModels = flattenedViewModels.concat( flatten(childViewModel) )
8
-
9
- flattenedViewModels
10
-
11
-
12
-
13
- ViewHierModel = Backbone.Model.extend
14
- getAccessibleViews: ->
15
- @get( 'allViews' ).filter (viewModel)-> viewModel.has('accessibilityLabel')
16
-
17
- resetViewHier: (rawRootView)->
18
- rootViewModel = new ViewModel(rawRootView)
19
- allViews = new ViewCollection( flatten( rootViewModel ) )
20
-
21
- allViews.on 'change:active', (viewModel)=>
22
- if viewModel.get('active')
23
- @trigger( 'active-view-changed', viewModel )
24
-
25
- allViews.on 'selected', (selectedViewModel)=>
26
- allViews.each (viewModel)->
27
- viewModel.set('selected',viewModel == selectedViewModel)
28
- @trigger( 'selected-view-changed', selectedViewModel )
29
-
30
- allViews.on 'accessible-selected', (viewModel)=>
31
- @trigger( 'accessible-view-selected', viewModel )
32
-
33
- @set( 'root', rootViewModel )
34
- @set( 'allViews', allViews )
35
-
36
-
37
- ViewHierModel
@@ -1,48 +0,0 @@
1
- (function() {
2
-
3
- define(['view_model'], function(ViewModel) {
4
- var ViewCollection, ViewHierModel, flatten;
5
- ViewCollection = Backbone.Collection;
6
- flatten = function(rootViewModel) {
7
- var childViewModel, flattenedViewModels, _i, _len, _ref;
8
- flattenedViewModels = [rootViewModel];
9
- _ref = rootViewModel.get('children');
10
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
11
- childViewModel = _ref[_i];
12
- flattenedViewModels = flattenedViewModels.concat(flatten(childViewModel));
13
- }
14
- return flattenedViewModels;
15
- };
16
- ViewHierModel = Backbone.Model.extend({
17
- getAccessibleViews: function() {
18
- return this.get('allViews').filter(function(viewModel) {
19
- return viewModel.has('accessibilityLabel');
20
- });
21
- },
22
- resetViewHier: function(rawRootView) {
23
- var allViews, rootViewModel,
24
- _this = this;
25
- rootViewModel = new ViewModel(rawRootView);
26
- allViews = new ViewCollection(flatten(rootViewModel));
27
- allViews.on('change:active', function(viewModel) {
28
- if (viewModel.get('active')) {
29
- return _this.trigger('active-view-changed', viewModel);
30
- }
31
- });
32
- allViews.on('selected', function(selectedViewModel) {
33
- allViews.each(function(viewModel) {
34
- return viewModel.set('selected', viewModel === selectedViewModel);
35
- });
36
- return _this.trigger('selected-view-changed', selectedViewModel);
37
- });
38
- allViews.on('accessible-selected', function(viewModel) {
39
- return _this.trigger('accessible-view-selected', viewModel);
40
- });
41
- this.set('root', rootViewModel);
42
- return this.set('allViews', allViews);
43
- }
44
- });
45
- return ViewHierModel;
46
- });
47
-
48
- }).call(this);
@@ -1,39 +0,0 @@
1
- define ["frank"], (frank)->
2
-
3
- ViewModel = Backbone.Model.extend
4
- defaults:
5
- parent: undefined
6
- depth: 0
7
-
8
- initialize: (attributes)->
9
- childDepth = attributes.depth + 1
10
- childModels = for subview in attributes.subviews
11
- new ViewModel( _.extend( subview, {parent:@,depth:childDepth} ) )
12
-
13
- @set( children: childModels )
14
-
15
- getDesc: ->
16
- viewClass = @get('class')
17
- if label = @get('accessibilityLabel')
18
- "#{viewClass}: #{label}"
19
- else
20
- viewClass
21
-
22
- getShelleySelector: ->
23
- if @has('accessibilityLabel')
24
- "view:'#{@get('class')}' marked:'#{@get('accessibilityLabel')}'"
25
- else
26
- false
27
-
28
- getSnapshotUrl: ->
29
- frank.snapshotUrlForViewWithUid(@get('uid'))
30
-
31
- setActive: ->
32
- @collection.each (viewModel)=>
33
- viewModel.set( 'active', viewModel == @ )
34
-
35
- unsetActive: ->
36
- @set( 'active', false )
37
-
38
-
39
- ViewModel
@@ -1,62 +0,0 @@
1
- (function() {
2
-
3
- define(["frank"], function(frank) {
4
- var ViewModel;
5
- ViewModel = Backbone.Model.extend({
6
- defaults: {
7
- parent: void 0,
8
- depth: 0
9
- },
10
- initialize: function(attributes) {
11
- var childDepth, childModels, subview;
12
- childDepth = attributes.depth + 1;
13
- childModels = (function() {
14
- var _i, _len, _ref, _results;
15
- _ref = attributes.subviews;
16
- _results = [];
17
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
18
- subview = _ref[_i];
19
- _results.push(new ViewModel(_.extend(subview, {
20
- parent: this,
21
- depth: childDepth
22
- })));
23
- }
24
- return _results;
25
- }).call(this);
26
- return this.set({
27
- children: childModels
28
- });
29
- },
30
- getDesc: function() {
31
- var label, viewClass;
32
- viewClass = this.get('class');
33
- if (label = this.get('accessibilityLabel')) {
34
- return "" + viewClass + ": " + label;
35
- } else {
36
- return viewClass;
37
- }
38
- },
39
- getShelleySelector: function() {
40
- if (this.has('accessibilityLabel')) {
41
- return "view:'" + (this.get('class')) + "' marked:'" + (this.get('accessibilityLabel')) + "'";
42
- } else {
43
- return false;
44
- }
45
- },
46
- getSnapshotUrl: function() {
47
- return frank.snapshotUrlForViewWithUid(this.get('uid'));
48
- },
49
- setActive: function() {
50
- var _this = this;
51
- return this.collection.each(function(viewModel) {
52
- return viewModel.set('active', viewModel === _this);
53
- });
54
- },
55
- unsetActive: function() {
56
- return this.set('active', false);
57
- }
58
- });
59
- return ViewModel;
60
- });
61
-
62
- }).call(this);