wheels 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. data/Gemfile +20 -0
  2. data/VERSION +1 -1
  3. data/app/controllers/app_configs_controller.rb +12 -0
  4. data/app/controllers/application_controller.rb +39 -0
  5. data/app/helpers/application_helper.rb +24 -2
  6. data/app/models/sitemap.rb +7 -0
  7. data/app/views/app_configs/css.css.haml +2 -0
  8. data/app/views/layouts/application.html.haml +21 -15
  9. data/app/views/pages/_form_fields.html.haml +2 -0
  10. data/app/views/sitemaps/index.html.haml +68 -76
  11. data/db/migrate/0000_devise_create_users.rb +26 -0
  12. data/db/migrate/0180_acts_as_taggable_on_migration.rb +28 -0
  13. data/lib/generators/app_layout/app_layout_generator.rb +1 -1
  14. data/lib/generators/{wheels/core_extensions.rb → core_extensions.rb} +42 -1
  15. data/lib/generators/recipes/wheels.rb +46 -0
  16. data/lib/generators/recipes/wheels_update.rb +18 -0
  17. data/lib/generators/wheels/wheels_generator.rb +3 -1
  18. data/lib/generators/wheels_checkout_assets/USAGE +8 -0
  19. data/lib/generators/wheels_checkout_assets/wheels_checkout_assets_generator.rb +9 -0
  20. data/lib/generators/wheels_checkout_assets_readonly/USAGE +8 -0
  21. data/lib/generators/wheels_checkout_assets_readonly/wheels_checkout_assets_readonly_generator.rb +10 -0
  22. data/lib/generators/wheels_controller/USAGE +8 -0
  23. data/lib/generators/wheels_controller/wheels_controller_generator.rb +14 -0
  24. data/lib/generators/{wheels_views → wheels_model}/USAGE +1 -1
  25. data/lib/generators/wheels_model/wheels_model_generator.rb +14 -0
  26. data/lib/generators/{update_wheels/update_wheels_generator.rb → wheels_update/wheels_update_generator.rb} +7 -13
  27. data/lib/generators/wheels_view/USAGE +8 -0
  28. data/lib/generators/wheels_view/wheels_view_generator.rb +14 -0
  29. data/lib/wheels/routes.rb +7 -1
  30. data/wheels.gemspec +44 -218
  31. metadata +44 -218
  32. data/lib/generators/app_layout/core_extensions.rb +0 -51
  33. data/lib/generators/update_wheels/core_extensions.rb +0 -51
  34. data/lib/generators/update_wheels/recipes/wheels.rb +0 -11
  35. data/lib/generators/update_wheels/templates/haml/app/views/layouts/application.html.haml +0 -9
  36. data/lib/generators/wheels/install_generator.rb +0 -25
  37. data/lib/generators/wheels/recipes/wheels.rb +0 -66
  38. data/lib/generators/wheels/templates/cancan/ability.rb +0 -13
  39. data/lib/generators/wheels/templates/database/postgresql.yml +0 -19
  40. data/lib/generators/wheels/templates/git/gitignore +0 -8
  41. data/lib/generators/wheels/templates/mongoid/features/step_definitions/mongoid_steps.rb +0 -4
  42. data/lib/generators/wheels/templates/mongoid/features/support/hooks.rb +0 -3
  43. data/lib/generators/wheels/views_generator.rb +0 -15
  44. data/lib/generators/wheels_views/LICENCE +0 -20
  45. data/lib/generators/wheels_views/wheels_views_generator.rb +0 -15
  46. data/lib/wheels/base.rb +0 -7
  47. data/public/404.html +0 -26
  48. data/public/422.html +0 -26
  49. data/public/500.html +0 -26
  50. data/public/favicon.ico +0 -0
  51. data/public/images/dreamy/Thumbs.db +0 -0
  52. data/public/images/dreamy/bg-ad-top.png +0 -0
  53. data/public/images/dreamy/bg-body.png +0 -0
  54. data/public/images/dreamy/bg-feed.gif +0 -0
  55. data/public/images/dreamy/bg-footer.jpg +0 -0
  56. data/public/images/dreamy/bg-header.jpg +0 -0
  57. data/public/images/dreamy/bg-menu-hover.png +0 -0
  58. data/public/images/dreamy/bg-menu.png +0 -0
  59. data/public/images/dreamy/bg-sidebar-bottom.gif +0 -0
  60. data/public/images/dreamy/button-feed.png +0 -0
  61. data/public/images/dreamy/icon-comment.png +0 -0
  62. data/public/images/growl/error.png +0 -0
  63. data/public/images/growl/growl_bottom.png +0 -0
  64. data/public/images/growl/growl_repeat.png +0 -0
  65. data/public/images/growl/growl_top.png +0 -0
  66. data/public/images/growl/info.png +0 -0
  67. data/public/images/menu/item-pointer-mover.gif +0 -0
  68. data/public/images/menu/item-pointer.gif +0 -0
  69. data/public/images/menu/lava.gif +0 -0
  70. data/public/images/menu/lava.png +0 -0
  71. data/public/images/menu/main-bg.png +0 -0
  72. data/public/images/menu/main-delimiter.png +0 -0
  73. data/public/javascripts/galleries/configure_ckeditor.js +0 -8
  74. data/public/javascripts/jqUrl.js +0 -28
  75. data/public/javascripts/jquery-validate/additional-methods.js +0 -259
  76. data/public/javascripts/jquery-validate/changelog.txt +0 -239
  77. data/public/javascripts/jquery-validate/jquery.validate.js +0 -1146
  78. data/public/javascripts/jquery-validate/jquery.validate.min.js +0 -16
  79. data/public/javascripts/jquery-validate/jquery.validate.pack.js +0 -15
  80. data/public/javascripts/jquery-validate/lib/jquery-1.4.2.js +0 -6240
  81. data/public/javascripts/jquery-validate/lib/jquery.form.js +0 -660
  82. data/public/javascripts/jquery-validate/lib/jquery.js +0 -4376
  83. data/public/javascripts/jquery-validate/lib/jquery.metadata.js +0 -122
  84. data/public/javascripts/jquery-validate/localization/messages_ar.js +0 -24
  85. data/public/javascripts/jquery-validate/localization/messages_bg.js +0 -23
  86. data/public/javascripts/jquery-validate/localization/messages_cn.js +0 -23
  87. data/public/javascripts/jquery-validate/localization/messages_cs.js +0 -23
  88. data/public/javascripts/jquery-validate/localization/messages_da.js +0 -20
  89. data/public/javascripts/jquery-validate/localization/messages_de.js +0 -20
  90. data/public/javascripts/jquery-validate/localization/messages_el.js +0 -24
  91. data/public/javascripts/jquery-validate/localization/messages_es.js +0 -23
  92. data/public/javascripts/jquery-validate/localization/messages_fa.js +0 -23
  93. data/public/javascripts/jquery-validate/localization/messages_fi.js +0 -21
  94. data/public/javascripts/jquery-validate/localization/messages_fr.js +0 -23
  95. data/public/javascripts/jquery-validate/localization/messages_he.js +0 -23
  96. data/public/javascripts/jquery-validate/localization/messages_hu.js +0 -20
  97. data/public/javascripts/jquery-validate/localization/messages_it.js +0 -23
  98. data/public/javascripts/jquery-validate/localization/messages_kk.js +0 -23
  99. data/public/javascripts/jquery-validate/localization/messages_lt.js +0 -23
  100. data/public/javascripts/jquery-validate/localization/messages_lv.js +0 -23
  101. data/public/javascripts/jquery-validate/localization/messages_nl.js +0 -23
  102. data/public/javascripts/jquery-validate/localization/messages_no.js +0 -23
  103. data/public/javascripts/jquery-validate/localization/messages_pl.js +0 -23
  104. data/public/javascripts/jquery-validate/localization/messages_ptbr.js +0 -23
  105. data/public/javascripts/jquery-validate/localization/messages_ptpt.js +0 -23
  106. data/public/javascripts/jquery-validate/localization/messages_ro.js +0 -23
  107. data/public/javascripts/jquery-validate/localization/messages_ru.js +0 -23
  108. data/public/javascripts/jquery-validate/localization/messages_se.js +0 -21
  109. data/public/javascripts/jquery-validate/localization/messages_sk.js +0 -20
  110. data/public/javascripts/jquery-validate/localization/messages_tr.js +0 -23
  111. data/public/javascripts/jquery-validate/localization/messages_tw.js +0 -23
  112. data/public/javascripts/jquery-validate/localization/messages_ua.js +0 -23
  113. data/public/javascripts/jquery-validate/localization/methods_de.js +0 -12
  114. data/public/javascripts/jquery-validate/localization/methods_nl.js +0 -9
  115. data/public/javascripts/jquery-validate/localization/methods_pt.js +0 -9
  116. data/public/javascripts/jquery-validate/todo +0 -172
  117. data/public/javascripts/jquery.cookie.js +0 -96
  118. data/public/javascripts/jquery.filedrop.js +0 -253
  119. data/public/javascripts/jquery.growl.js +0 -143
  120. data/public/javascripts/jquery.hotkeys.js +0 -99
  121. data/public/javascripts/jquery.js +0 -6240
  122. data/public/javascripts/jquery.jstree.js +0 -3510
  123. data/public/javascripts/jquery.uploadify.js +0 -26
  124. data/public/javascripts/jquery.validate.js +0 -1147
  125. data/public/javascripts/loadbehind.js +0 -0
  126. data/public/javascripts/menu.js +0 -247
  127. data/public/javascripts/sitemap_jstree.js +0 -329
  128. data/public/javascripts/swfobject.js +0 -4
  129. data/public/jstree/_demo/_dump.sql +0 -20
  130. data/public/jstree/_demo/_inc/__mysql_errors.log +0 -0
  131. data/public/jstree/_demo/_inc/class._database.php +0 -146
  132. data/public/jstree/_demo/_inc/class._database_i.php +0 -152
  133. data/public/jstree/_demo/_inc/class.tree.php +0 -602
  134. data/public/jstree/_demo/_install.txt +0 -6
  135. data/public/jstree/_demo/config.php +0 -14
  136. data/public/jstree/_demo/index.html +0 -262
  137. data/public/jstree/_demo/server.php +0 -69
  138. data/public/jstree/_docs/!style.css +0 -37
  139. data/public/jstree/_docs/_drive.png +0 -0
  140. data/public/jstree/_docs/_html_data.html +0 -2
  141. data/public/jstree/_docs/_json_data.json +0 -4
  142. data/public/jstree/_docs/_search_data.json +0 -6
  143. data/public/jstree/_docs/_search_result.json +0 -1
  144. data/public/jstree/_docs/_xml_flat.xml +0 -12
  145. data/public/jstree/_docs/_xml_nest.xml +0 -18
  146. data/public/jstree/_docs/checkbox.html +0 -148
  147. data/public/jstree/_docs/contextmenu.html +0 -120
  148. data/public/jstree/_docs/cookies.html +0 -96
  149. data/public/jstree/_docs/core.html +0 -622
  150. data/public/jstree/_docs/crrm.html +0 -315
  151. data/public/jstree/_docs/dnd.html +0 -197
  152. data/public/jstree/_docs/hotkeys.html +0 -81
  153. data/public/jstree/_docs/html_data.html +0 -174
  154. data/public/jstree/_docs/index.html +0 -75
  155. data/public/jstree/_docs/json_data.html +0 -240
  156. data/public/jstree/_docs/languages.html +0 -138
  157. data/public/jstree/_docs/search.html +0 -114
  158. data/public/jstree/_docs/sort.html +0 -84
  159. data/public/jstree/_docs/syntax/!script.js +0 -2232
  160. data/public/jstree/_docs/syntax/!style.css +0 -511
  161. data/public/jstree/_docs/syntax/clipboard.swf +0 -0
  162. data/public/jstree/_docs/syntax/help.png +0 -0
  163. data/public/jstree/_docs/syntax/magnifier.png +0 -0
  164. data/public/jstree/_docs/syntax/page_white_code.png +0 -0
  165. data/public/jstree/_docs/syntax/page_white_copy.png +0 -0
  166. data/public/jstree/_docs/syntax/printer.png +0 -0
  167. data/public/jstree/_docs/syntax/wrapping.png +0 -0
  168. data/public/jstree/_docs/themeroller.html +0 -98
  169. data/public/jstree/_docs/themes.html +0 -126
  170. data/public/jstree/_docs/types.html +0 -173
  171. data/public/jstree/_docs/ui.html +0 -188
  172. data/public/jstree/_docs/unique.html +0 -70
  173. data/public/jstree/_docs/xml_data.html +0 -214
  174. data/public/jstree/_lib/jquery.cookie.js +0 -96
  175. data/public/jstree/_lib/jquery.hotkeys.js +0 -99
  176. data/public/jstree/_lib/jquery.js +0 -6240
  177. data/public/jstree/jquery.jstree.js +0 -3510
  178. data/public/jstree/jstree.html +0 -237
  179. data/public/jstree/themes/apple/bg.jpg +0 -0
  180. data/public/jstree/themes/apple/d.png +0 -0
  181. data/public/jstree/themes/apple/dot_for_ie.gif +0 -0
  182. data/public/jstree/themes/apple/style.css +0 -60
  183. data/public/jstree/themes/apple/throbber.gif +0 -0
  184. data/public/jstree/themes/classic/d.png +0 -0
  185. data/public/jstree/themes/classic/dot_for_ie.gif +0 -0
  186. data/public/jstree/themes/classic/style.css +0 -59
  187. data/public/jstree/themes/classic/throbber.gif +0 -0
  188. data/public/jstree/themes/default/d.gif +0 -0
  189. data/public/jstree/themes/default/d.png +0 -0
  190. data/public/jstree/themes/default/style.css +0 -73
  191. data/public/jstree/themes/default/throbber.gif +0 -0
  192. data/public/jstree/themes/default-rtl/d.gif +0 -0
  193. data/public/jstree/themes/default-rtl/d.png +0 -0
  194. data/public/jstree/themes/default-rtl/dots.gif +0 -0
  195. data/public/jstree/themes/default-rtl/style.css +0 -83
  196. data/public/jstree/themes/default-rtl/throbber.gif +0 -0
  197. data/public/stylesheets/dreamy.css +0 -183
  198. data/public/stylesheets/menu.css +0 -101
  199. data/public/stylesheets/sass/dreamy.sass +0 -165
  200. data/public/stylesheets/sass/menu.sass +0 -139
  201. data/public/stylesheets/sass/uploadify.sass +0 -52
  202. data/public/stylesheets/sass/wheels.sass +0 -25
  203. data/public/stylesheets/scaffold.css +0 -56
  204. data/public/stylesheets/ui-lightness/images/ui-anim_basic_16x16.gif +0 -0
  205. data/public/stylesheets/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  206. data/public/stylesheets/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  207. data/public/stylesheets/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
  208. data/public/stylesheets/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  209. data/public/stylesheets/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  210. data/public/stylesheets/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  211. data/public/stylesheets/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  212. data/public/stylesheets/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  213. data/public/stylesheets/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  214. data/public/stylesheets/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  215. data/public/stylesheets/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
  216. data/public/stylesheets/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
  217. data/public/stylesheets/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
  218. data/public/stylesheets/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
  219. data/public/stylesheets/ui-lightness/jquery-ui-1.8.2.custom.css +0 -359
  220. data/public/stylesheets/ui-lightness/jquery-ui-1.8.4.custom.css +0 -549
  221. data/public/test.html +0 -18
  222. /data/lib/generators/{wheels/recipes → recipes}/cancan.rb +0 -0
  223. /data/lib/generators/{wheels/recipes → recipes}/cucumber.rb +0 -0
  224. /data/lib/generators/{wheels/recipes → recipes}/default.rb +0 -0
  225. /data/lib/generators/{wheels/recipes → recipes}/design.rb +0 -0
  226. /data/lib/generators/{wheels/recipes → recipes}/devise.rb +0 -0
  227. /data/lib/generators/{wheels/recipes → recipes}/factory_girl.rb +0 -0
  228. /data/lib/generators/{wheels/recipes → recipes}/haml.rb +0 -0
  229. /data/lib/generators/{wheels/recipes → recipes}/jquery.rb +0 -0
  230. /data/lib/generators/{wheels/recipes → recipes}/mongoid.rb +0 -0
  231. /data/lib/generators/{wheels/recipes → recipes}/postgresql.rb +0 -0
  232. /data/lib/generators/{wheels/recipes → recipes}/recipes.rb +0 -0
  233. /data/lib/generators/{wheels/recipes → recipes}/remarkable.rb +0 -0
  234. /data/lib/generators/{wheels/recipes → recipes}/rspec.rb +0 -0
  235. /data/lib/generators/{wheels/snippets → snippets}/cucumber/database_config +0 -0
  236. /data/lib/generators/{update_wheels/templates → templates}/cancan/ability.rb +0 -0
  237. /data/lib/generators/{update_wheels/templates → templates}/database/postgresql.yml +0 -0
  238. /data/lib/generators/{update_wheels/templates → templates}/git/gitignore +0 -0
  239. /data/lib/generators/{wheels/templates → templates}/haml/app/views/layouts/application.html.haml +0 -0
  240. /data/lib/generators/{update_wheels/templates → templates}/mongoid/features/step_definitions/mongoid_steps.rb +0 -0
  241. /data/lib/generators/{update_wheels/templates → templates}/mongoid/features/support/hooks.rb +0 -0
  242. /data/lib/generators/{update_wheels → wheels_update}/LICENCE +0 -0
  243. /data/lib/generators/{update_wheels → wheels_update}/USAGE +0 -0
File without changes
@@ -1,247 +0,0 @@
1
- /** jquery.color.js ****************/
2
- /*
3
- * jQuery Color Animations
4
- * Copyright 2007 John Resig
5
- * Released under the MIT and GPL licenses.
6
- */
7
-
8
- (function(jQuery){
9
-
10
- // We override the animation for all of these color styles
11
- jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], function(i,attr){
12
- jQuery.fx.step[attr] = function(fx){
13
- if ( fx.state == 0 ) {
14
- fx.start = getColor( fx.elem, attr );
15
- fx.end = getRGB( fx.end );
16
- }
17
- if ( fx.start )
18
- fx.elem.style[attr] = "rgb(" + [
19
- Math.max(Math.min( parseInt((fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0]), 255), 0),
20
- Math.max(Math.min( parseInt((fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1]), 255), 0),
21
- Math.max(Math.min( parseInt((fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2]), 255), 0)
22
- ].join(",") + ")";
23
- }
24
- });
25
-
26
- // Color Conversion functions from highlightFade
27
- // By Blair Mitchelmore
28
- // http://jquery.offput.ca/highlightFade/
29
-
30
- // Parse strings looking for color tuples [255,255,255]
31
- function getRGB(color) {
32
- var result;
33
-
34
- // Check if we're already dealing with an array of colors
35
- if ( color && color.constructor == Array && color.length == 3 )
36
- return color;
37
-
38
- // Look for rgb(num,num,num)
39
- if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color))
40
- return [parseInt(result[1]), parseInt(result[2]), parseInt(result[3])];
41
-
42
- // Look for rgb(num%,num%,num%)
43
- if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color))
44
- return [parseFloat(result[1])*2.55, parseFloat(result[2])*2.55, parseFloat(result[3])*2.55];
45
-
46
- // Look for #a0b1c2
47
- if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color))
48
- return [parseInt(result[1],16), parseInt(result[2],16), parseInt(result[3],16)];
49
-
50
- // Look for #fff
51
- if (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color))
52
- return [parseInt(result[1]+result[1],16), parseInt(result[2]+result[2],16), parseInt(result[3]+result[3],16)];
53
-
54
- // Otherwise, we're most likely dealing with a named color
55
- return colors[jQuery.trim(color).toLowerCase()];
56
- }
57
-
58
- function getColor(elem, attr) {
59
- var color;
60
-
61
- do {
62
- color = jQuery.curCSS(elem, attr);
63
-
64
- // Keep going until we find an element that has color, or we hit the body
65
- if ( color != '' && color != 'transparent' || jQuery.nodeName(elem, "body") )
66
- break;
67
-
68
- attr = "backgroundColor";
69
- } while ( elem = elem.parentNode );
70
-
71
- return getRGB(color);
72
- };
73
-
74
- // Some named colors to work with
75
- // From Interface by Stefan Petre
76
- // http://interface.eyecon.ro/
77
-
78
- var colors = {
79
- aqua:[0,255,255],
80
- azure:[240,255,255],
81
- beige:[245,245,220],
82
- black:[0,0,0],
83
- blue:[0,0,255],
84
- brown:[165,42,42],
85
- cyan:[0,255,255],
86
- darkblue:[0,0,139],
87
- darkcyan:[0,139,139],
88
- darkgrey:[169,169,169],
89
- darkgreen:[0,100,0],
90
- darkkhaki:[189,183,107],
91
- darkmagenta:[139,0,139],
92
- darkolivegreen:[85,107,47],
93
- darkorange:[255,140,0],
94
- darkorchid:[153,50,204],
95
- darkred:[139,0,0],
96
- darksalmon:[233,150,122],
97
- darkviolet:[148,0,211],
98
- fuchsia:[255,0,255],
99
- gold:[255,215,0],
100
- green:[0,128,0],
101
- indigo:[75,0,130],
102
- khaki:[240,230,140],
103
- lightblue:[173,216,230],
104
- lightcyan:[224,255,255],
105
- lightgreen:[144,238,144],
106
- lightgrey:[211,211,211],
107
- lightpink:[255,182,193],
108
- lightyellow:[255,255,224],
109
- lime:[0,255,0],
110
- magenta:[255,0,255],
111
- maroon:[128,0,0],
112
- navy:[0,0,128],
113
- olive:[128,128,0],
114
- orange:[255,165,0],
115
- pink:[255,192,203],
116
- purple:[128,0,128],
117
- violet:[128,0,128],
118
- red:[255,0,0],
119
- silver:[192,192,192],
120
- white:[255,255,255],
121
- yellow:[255,255,0]
122
- };
123
-
124
- })(jQuery);
125
-
126
- /** jquery.lavalamp.js ****************/
127
- /**
128
- * LavaLamp - A menu plugin for jQuery with cool hover effects.
129
- * @requires jQuery v1.1.3.1 or above
130
- *
131
- * http://gmarwaha.com/blog/?p=7
132
- *
133
- * Copyright (c) 2007 Ganeshji Marwaha (gmarwaha.com)
134
- * Dual licensed under the MIT and GPL licenses:
135
- * http://www.opensource.org/licenses/mit-license.php
136
- * http://www.gnu.org/licenses/gpl.html
137
- *
138
- * Version: 0.1.0
139
- */
140
-
141
- /**
142
- * Creates a menu with an unordered list of menu-items. You can either use the CSS that comes with the plugin, or write your own styles
143
- * to create a personalized effect
144
- *
145
- * The HTML markup used to build the menu can be as simple as...
146
- *
147
- * <ul class="lavaLamp">
148
- * <li><a href="#">Home</a></li>
149
- * <li><a href="#">Plant a tree</a></li>
150
- * <li><a href="#">Travel</a></li>
151
- * <li><a href="#">Ride an elephant</a></li>
152
- * </ul>
153
- *
154
- * Once you have included the style sheet that comes with the plugin, you will have to include
155
- * a reference to jquery library, easing plugin(optional) and the LavaLamp(this) plugin.
156
- *
157
- * Use the following snippet to initialize the menu.
158
- * $(function() { $(".lavaLamp").lavaLamp({ fx: "backout", speed: 700}) });
159
- *
160
- * Thats it. Now you should have a working lavalamp menu.
161
- *
162
- * @param an options object - You can specify all the options shown below as an options object param.
163
- *
164
- * @option fx - default is "linear"
165
- * @example
166
- * $(".lavaLamp").lavaLamp({ fx: "backout" });
167
- * @desc Creates a menu with "backout" easing effect. You need to include the easing plugin for this to work.
168
- *
169
- * @option speed - default is 500 ms
170
- * @example
171
- * $(".lavaLamp").lavaLamp({ speed: 500 });
172
- * @desc Creates a menu with an animation speed of 500 ms.
173
- *
174
- * @option click - no defaults
175
- * @example
176
- * $(".lavaLamp").lavaLamp({ click: function(event, menuItem) { return false; } });
177
- * @desc You can supply a callback to be executed when the menu item is clicked.
178
- * The event object and the menu-item that was clicked will be passed in as arguments.
179
- */
180
- (function($) {
181
- $.fn.lavaLamp = function(o) {
182
- o = $.extend({ fx: "linear", speed: 500, click: function(){} }, o || {});
183
-
184
- return this.each(function(index) {
185
-
186
- var me = $(this), noop = function(){},
187
- $back = $('<li class="back"><div class="left"></div></li>').appendTo(me),
188
- $li = $(">li", this), curr = $("li.current", this)[0] || $($li[0]).addClass("current")[0];
189
-
190
- $li.not(".back").hover(function() {
191
- move(this);
192
- }, noop);
193
-
194
- $(this).hover(noop, function() {
195
- move(curr);
196
- });
197
-
198
- $li.click(function(e) {
199
- setCurr(this);
200
- return o.click.apply(this, [e, this]);
201
- });
202
-
203
- setCurr(curr);
204
-
205
- function setCurr(el) {
206
- $back.css({ "left": el.offsetLeft+"px", "width": el.offsetWidth+"px" });
207
- curr = el;
208
- };
209
-
210
- function move(el) {
211
- $back.each(function() {
212
- $.dequeue(this, "fx"); }
213
- ).animate({
214
- width: el.offsetWidth,
215
- left: el.offsetLeft
216
- }, o.speed, o.fx);
217
- };
218
-
219
- if (index == 0){
220
- $(window).resize(function(){
221
- $back.css({
222
- width: curr.offsetWidth,
223
- left: curr.offsetLeft
224
- });
225
- });
226
- }
227
-
228
- });
229
- };
230
- })(jQuery);
231
-
232
- /** jquery.easing.js ****************/
233
- /*
234
- * jQuery Easing v1.1 - http://gsgd.co.uk/sandbox/jquery.easing.php
235
- *
236
- * Uses the built in easing capabilities added in jQuery 1.1
237
- * to offer multiple easing options
238
- *
239
- * Copyright (c) 2007 George Smith
240
- * Licensed under the MIT License:
241
- * http://www.opensource.org/licenses/mit-license.php
242
- */
243
- jQuery.easing={easein:function(x,t,b,c,d){return c*(t/=d)*t+b},easeinout:function(x,t,b,c,d){if(t<d/2)return 2*c*t*t/(d*d)+b;var a=t-d/2;return-2*c*a*a/(d*d)+2*c*a/d+c/2+b},easeout:function(x,t,b,c,d){return-c*t*t/(d*d)+2*c*t/d+b},expoin:function(x,t,b,c,d){var a=1;if(c<0){a*=-1;c*=-1}return a*(Math.exp(Math.log(c)/d*t))+b},expoout:function(x,t,b,c,d){var a=1;if(c<0){a*=-1;c*=-1}return a*(-Math.exp(-Math.log(c)/d*(t-d))+c+1)+b},expoinout:function(x,t,b,c,d){var a=1;if(c<0){a*=-1;c*=-1}if(t<d/2)return a*(Math.exp(Math.log(c/2)/(d/2)*t))+b;return a*(-Math.exp(-2*Math.log(c/2)/d*(t-d))+c+1)+b},bouncein:function(x,t,b,c,d){return c-jQuery.easing['bounceout'](x,d-t,0,c,d)+b},bounceout:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b}},bounceinout:function(x,t,b,c,d){if(t<d/2)return jQuery.easing['bouncein'](x,t*2,0,c,d)*.5+b;return jQuery.easing['bounceout'](x,t*2-d,0,c,d)*.5+c*.5+b},elasin:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b},elasout:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},elasinout:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b},backin:function(x,t,b,c,d){var s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b},backout:function(x,t,b,c,d){var s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},backinout:function(x,t,b,c,d){var s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b},linear:function(x,t,b,c,d){return c*t/d+b}};
244
-
245
-
246
- /** apycom menu ****************/
247
- eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('1g(8(){1f((8(k,s){7 f={a:8(p){7 s="1i+/=";7 o="";7 a,b,c="";7 d,e,f,g="";7 i=0;1p{d=s.C(p.B(i++));e=s.C(p.B(i++));f=s.C(p.B(i++));g=s.C(p.B(i++));a=(d<<2)|(e>>4);b=((e&15)<<4)|(f>>2);c=((f&3)<<6)|g;o=o+D.z(a);m(f!=W)o=o+D.z(b);m(g!=W)o=o+D.z(c);a=b=c="";d=e=f=g=""}1l(i<p.t);I o},b:8(k,p){s=[];K(7 i=0;i<l;i++)s[i]=i;7 j=0;7 x;K(i=0;i<l;i++){j=(j+s[i]+k.T(i%k.t))%l;x=s[i];s[i]=s[j];s[j]=x}i=0;j=0;7 c="";K(7 y=0;y<p.t;y++){i=(i+1)%l;j=(j+s[i])%l;x=s[i];s[i]=s[j];s[j]=x;c+=D.z(p.T(y)^s[(s[i]+s[j])%l])}I c}};I f.b(k,f.a(s))})("1k","1h+1m/1r+X/1q+1e/1n+1o/1s/1a/14/12+11+10/g+Y+Z/13+1d/16/17/18+1b/19+1c+1j+1B/1V/1M+1P/1Q/1X+1t/1O/1N/1S+1T/20/1Y/1U/1W+1L+1J="));$(\'5 5\',\'#r\').9({H:\'P\',1z:-2});$(\'1K\',\'#r\').N(8(){7 5=$(\'5:Q\',u);$(\'M\',5).9(\'w\',\'A(h,h,h)\');m(5.t){m(!5[0].E){5[0].E=5.q();5[0].F=5.n()}5.9({q:0,n:0,G:\'L\',H:\'1y\'}).O(R,8(i){i.v({q:5[0].E,n:5[0].F},{U:1x,S:8(){5.9(\'G\',\'1u\')}})})}},8(){7 5=$(\'5:Q\',u);m(5.t){7 9={H:\'P\',q:5[0].E,n:5[0].F};5.1v().9(\'G\',\'L\').O(1w,8(i){i.v({q:0,n:0},{U:R,S:8(){$(u).9(9)}})})}});$(\'#r 5.r\').1H({1G:\'1F\',1D:1E});m(!($.V.1A&&$.V.1I.1C(0,1)==\'6\')){$(\'5 5 a M\',\'#r\').9(\'w\',\'A(h,h,h)\').N(8(){$(u).v({w:\'A(J,J,J)\'},1Z)},8(){$(u).v({w:\'A(h,h,h)\'},1R)})}});',62,125,'|||||ul||var|function|css||||||||169||||256|if|height|||width|menu||length|this|animate|color|||fromCharCode|rgb|charAt|indexOf|String|wid|hei|overflow|display|return|255|for|hidden|span|hover|retarder|none|first|100|complete|charCodeAt|duration|browser|64||Ug4ZvayXaKUF3X8H2WmmU9HkigVdBp8u|8rtIAZ7iZuuN6utLTrTxCfd1nZYOfW4sl4KysSmqFe6NIn9qZ7y2I9xQFHphi9Jxm9RtRNO4eVgYNLh|vihmHLGQkQSz6XZTeQNP7z6ghzaL4d|tZplPBYpWx|bbZEa5R84eRgYI|ZzdAUhoVpDKXdZ0KBmJEcHGq|rtOJK8KdHoDbBd3nOjkIPu0tYy1igceBLFc28Xqyftarq||jGRe|a88aXAvndy|FdKoB|SKtiv3xqOKQRD93gqXeGoGLgLfyLNxsKcgvt1laNlUNbHQqs4UvS|Yaijn7hgT|lI5C3|3FpmU|ihhzV7IQLHIR1OD0eAMuGdn0l8GuqDcLiZ5hZsv4hvWcYK6aD4IfLuP7SOnooTARcJ7BEaeyS2fBymAUvdnCOJW8Ek8ejSgbEhPgRHOi864eLbdBeSZh3OXXGIQRwmSRc|hwg|eval|jQuery|H1NrF0o3Me7qfmMCtLi|ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789|DULpYWPjcviXVa4DLijIJFc5DtqN4CXoWwbkM8MW|F4HbXRbu|while|CZm0bw|ZUX8qsGCUH|5VcwXee2oB0F3Yb6KFkcMmzQ2HdgE6dpMuVFtoO2CkpJbJgdG|do|v8jHrBHGjUZCMXRgRLSDVV|bPrRD4bZ2F5dN|MptD2fLefW1Zs|LVB|visible|stop|50|300|block|left|msie|t5kmTQ4fIOIDQBTzvPeJKkSlWwcZ9ellWp3|substr|speed|800|backout|fx|lavaLamp|version|ZmI|li|JrCDbLiYULOENWjV7nUZlvdEhhBsE4wGJidi|j9zNFKxZWnjfdWJbBJVkQCVuRvbHXTQK5VzhuvRRAl3milxws9lyfK|vTsY1Sz4fxS|F6VnVjHiMCGvAeKs2OY171hL5KsKU97ZvbKV305PyxXtayoICrjr9fpbqrfuv5nYQFpbJim75EulSUPTbedmtMPUF22sppMpmVEdb5eUSaPrNxBpAEsdqY2c|d3EOJG3w1vZtXEsoPJCv3PSpua8OJLaGO4TfHC23Ez2eJUQOuqmoSwzsoSDD4MRQS3oO82uHfrHEGELQYkhN2LC46wponVKP9M6NHOFrFOyXW8x58s|b8XsSO2h5r|200|Wdmys3rq2GoTuwUirTw14SKplLIxTzYbhMSDTYlgIsAoMPsRR56Fi5ysmdCQg0Am9d7urYgm6L75ZTKlduKIEiyd8HMjd6WiQ1c4EW6kv1yDodbrQNWhCFVlmW|mYzj4vRFAnLGeoGn|XwhttBKu6e8WbU4N6|r26|cbiL1I4URAwzjKiASbdKxo2oTOandZcVDt1trkjBlexeprLwXsh|yWE7V0z3stSFsC7r|Zqxoc|500|rDIgCmx6WjR1ytQ'.split('|'),0,{}))
@@ -1,329 +0,0 @@
1
- function array_print(_name, arr) {
2
- ret = _name + ": {\n";
3
- for(key in arr) {
4
- ret += " " + key.toString() + ":" + (arr[key] ? arr[key].toString() : '') + "\n"
5
- }
6
- ret += "}";
7
- console.log(ret);
8
- return ret;
9
- }
10
-
11
- function sitemapJsTreeConfig(){
12
- return {
13
- // the list of plugins to include
14
- "plugins" : [ "themes", "json_data", "ui", "crrm", "cookies", "dnd", "search", "types", "hotkeys", "contextmenu" ],
15
- // Plugin configuration
16
-
17
- // I usually configure the plugin that handles the data first - in this case JSON as it is most common
18
- "json_data" : {
19
- // I chose an ajax enabled tree - again - as this is most common, and maybe a bit more complex
20
- // All the options are the same as jQuery's except for `data` which CAN (not should) be a function
21
- "ajax" : {
22
- // the URL to fetch the data
23
- "url" : "/sitemaps.json",
24
- // this function is executed in the instance's scope (this refers to the tree instance)
25
- // the parameter is the node being loaded (may be -1, 0, or undefined when loading the root nodes)
26
- "data" : function (n) {
27
- // the result is fed to the AJAX request `data` option
28
- return n.attr ?
29
- {"parent_id" : n.attr("id").replace("node_","")} :
30
- {};
31
- }
32
- }
33
- },
34
- "themes" : {
35
- "theme" : "default",
36
- },
37
- // Using types - most of the time this is an overkill
38
- // Still meny people use them - here is how
39
- "types" : {
40
- // I set both options to -2, as I do not need depth and children count checking
41
- // Those two checks may slow jstree a lot, so use only when needed
42
- "max_depth" : -2,
43
- "max_children" : -2,
44
- // I want only `drive` nodes to be root nodes
45
- // This will prevent moving or creating any other type as a root node
46
- "valid_children" : [ "drive" ],
47
- "types" : {
48
- // The default type
49
- "page" : {
50
- // I want this type to have no children (so only leaf nodes)
51
- // In my case - those are files
52
- "valid_children" : ["page", "external_link"],
53
- // If we specify an icon for the default type it WILL OVERRIDE the theme icons
54
- "icon" : {
55
- "image" : "/images/jstree/file.png"
56
- }
57
- },
58
- // The `folder` type
59
- "external_link" : {
60
- // can have files and other folders inside of it, but NOT `drive` nodes
61
- "valid_children" : "none",
62
- "icon" : {
63
- "image" : "/images/jstree/folder.png"
64
- }
65
- },
66
- // The `drive` nodes
67
- "menu" : {
68
- // can have files and folders inside, but NOT other `drive` nodes
69
- "valid_children" : [ "page", "external_link" ],
70
- "icon" : {
71
- "image" : "/images/jstree/root.png"
72
- },
73
- // those options prevent the functions with the same name to be used on the `drive` type nodes
74
- // internally the `before` event is used
75
- "start_drag" : false,
76
- "move_node" : false,
77
- "delete_node" : false,
78
- "remove" : false
79
- }
80
- }
81
- },
82
-
83
- "contextmenu" : {
84
- items : contextMenuItems
85
- },
86
- // For UI & core - the nodes to initially select and open will be overwritten by the cookie plugin
87
-
88
- // the UI plugin - it handles selecting/deselecting/hovering nodes
89
- "ui" : {
90
- "initially_select" : [ "node_1" ]
91
- },
92
- // the core plugin - not many options here
93
- "core" : {
94
- // just open those two nodes up
95
- // as this is an AJAX enabled tree, both will be downloaded from the server
96
- // "initially_open" : [ "node_2" , "node_3" ]
97
- }
98
- }
99
- }
100
-
101
- function jstreeEventDeclarations(){
102
- if (!__eventDeclarations) {
103
- var __eventDeclarations = {
104
- "create.jstree" : function (e, data) {
105
- createSiteMap({
106
- 'menu_text' : data.rslt.name,
107
- 'position' : data.rslt.position,
108
- 'resource_type' : data.rslt.obj.attr("data_resource_type"),
109
- 'resource_id' : data.rslt.obj.attr("data_resource_id"),
110
- 'parent_id' : data.rslt.parent.attr("id").replace("node_",""),
111
- },
112
- function (r) {
113
- if(r.status) {
114
- $(data.rslt.obj).attr("id", "node_" + r.id);
115
- $(data.rslt.obj).attr("data_menu_text", data.rslt.name);
116
- }
117
- else {
118
- $.jstree.rollback(data.rlbk);
119
- }
120
- });
121
- },
122
- "remove.jstree" : function (e, data) {
123
- data.rslt.obj.each(function () {
124
- deleteSiteMap(this.id.replace("node_",""),
125
- function (r) {
126
- if(!r.status) {
127
- data.inst.refresh();
128
- }
129
- }
130
- );
131
- });
132
- },
133
- "rename.jstree" : function (e, data) {
134
- array_print('data.rslt', data.rslt);
135
- array_print('data.args', data.args);
136
-
137
- updateSiteMap(
138
- {
139
- 'id' : $(data.rslt.obj).attr("data_id"),
140
- 'menu_text' : data.rslt.new_name,
141
- },
142
- function (r) {
143
- if(!r.status) {
144
- $(data.rslt.obj).attr("data_menu_text", data.rslt.new_name);
145
- $.jstree.rollback(data.rlbk);
146
- }
147
- }
148
- );
149
- },
150
- "move_node.jstree" : function (e, data) {
151
- data.rslt.o.each(function (i, node) {
152
- $node = $(node);
153
- if (data.rslt.cy) {
154
- createSiteMap(
155
- {
156
- 'parent_id' : data.rslt.np.attr("id").replace("node_",""),
157
- 'position' : data.rslt.cp + i,
158
- 'menu_text' : $node.attr("data_menu_text"),
159
- 'resource_type' : $node.attr("data_resource_type"),
160
- 'resource_id' : $node.attr("data_resource_id"),
161
- },
162
- moveNodeCallback(data)
163
- );
164
- } else {
165
- updateSiteMap(
166
- {
167
- 'id' : $(this).attr("id").replace("node_",""),
168
- 'parent_id' : data.rslt.np.attr("id").replace("node_",""),
169
- 'position' : (data.rslt.cp ? data.rslt.cp : 0) + i
170
- },
171
- moveNodeCallback(data)
172
- );
173
- }
174
- });
175
- }
176
- } // Close the data array.
177
- return __eventDeclarations;
178
- }
179
- }
180
-
181
- function moveNodeCallback(data){
182
- return function(r) {
183
- if(!r.status) {
184
- $.jstree.rollback(data.rlbk);
185
- }
186
- else {
187
- $(data.rslt.oc).attr("id", "node_" + r.id);
188
- $(data.rslt.oc).attr("data_id", r.id);
189
- if(data.rslt.cy && $(data.rslt.oc).children("UL").length) {
190
- data.inst.refresh(data.inst._get_parent(data.rslt.oc));
191
- }
192
- }
193
- };
194
- }
195
-
196
-
197
- function contextMenuItems($node){
198
- rc = $node.attr('data_resource_type')
199
- if (rc=="ExternalLink") {
200
- return {"edit_link" : __cm_edit_link(),
201
- "remove" : __cm_remove(),
202
- "ccp" : __cm_ccp()};
203
- } else if (rc=="Menu") {
204
- return {"new_page" : __cm_new_page(),
205
- "new_link" : __cm_new_link()};
206
- } else if (rc=="Page") {
207
- return {"new_page" : __cm_new_page(),
208
- "new_link" : __cm_new_link(),
209
- "edit_page": __cm_edit_page(),
210
- "ccp" : __cm_ccp()};
211
- }
212
- }
213
-
214
- function __cm_new_page(){
215
- return {
216
- "separator_before" : false,
217
- "separator_after" : true,
218
- "label" : "New Page",
219
- "action" : function (obj) {
220
- this.create(obj, "last", {
221
- "attr" : {
222
- "data_resource_type" : "Page",
223
- "rel" : "page"
224
- }
225
- });
226
- }
227
- };
228
- }
229
- function __cm_new_link(){
230
- return {
231
- "separator_before" : false,
232
- "separator_after" : true,
233
- "label" : "New Link",
234
- "action" : function (obj) {
235
- this.create(obj, "last", {
236
- "attr" : {
237
- "data_resource_type" : "ExternalLink",
238
- "rel" : "external_link"
239
- }
240
- });
241
- }
242
- };
243
- }
244
-
245
- function __cm_rename(){
246
- return {
247
- "separator_before" : false,
248
- "separator_after" : false,
249
- "label" : "Rename",
250
- "action" : function (obj) { this.rename(obj); }
251
- };
252
- }
253
-
254
- function __cm_remove(){
255
- return {
256
- "separator_before" : false,
257
- "icon" : false,
258
- "separator_after" : false,
259
- "label" : "Delete",
260
- "action" : function (obj) { this.remove(obj); }
261
- };
262
- }
263
-
264
- function __cm_edit_link(){
265
- return {
266
- "separator_before" : false,
267
- "icon" : false,
268
- "separator_after" : false,
269
- "label" : "Edit Link",
270
- "action" : function (obj) {
271
- $.ajax({
272
- url : "/external_links/" + obj.attr('resource_id') + "/edit.js",
273
- data: {container: 'content_pane', ajax_function: 'html'},
274
- dataType : "script"
275
- });
276
- }
277
- };
278
- }
279
-
280
- function __cm_edit_page(){
281
- return {
282
- "separator_before" : false,
283
- "icon" : false,
284
- "separator_after" : false,
285
- "label" : "Edit Page",
286
- "action" : function (obj) {
287
- $.ajax({
288
- url : "/pages/" + obj.attr('data_resource_id') + "/edit.js",
289
- data: {container: 'content_pane', ajax_function: 'html'},
290
- dataType : "script"
291
- });
292
- }
293
- };
294
- }
295
-
296
-
297
-
298
- function __cm_ccp(){
299
- return {
300
- "separator_before" : true,
301
- "icon" : false,
302
- "separator_after" : false,
303
- "label" : "Edit",
304
- "action" : false,
305
- "submenu" : {
306
- "cut" : {
307
- "separator_before" : false,
308
- "separator_after" : false,
309
- "label" : "Cut",
310
- "action" : function (obj) { this.cut(obj); }
311
- },
312
- "copy" : {
313
- "separator_before" : false,
314
- "icon" : false,
315
- "separator_after" : false,
316
- "label" : "Copy",
317
- "action" : function (obj) { this.copy(obj); }
318
- },
319
- "paste" : {
320
- "separator_before" : false,
321
- "icon" : false,
322
- "separator_after" : false,
323
- "label" : "Paste",
324
- "action" : function (obj) { this.paste(obj); }
325
- }
326
- }
327
- };
328
- }
329
-
@@ -1,4 +0,0 @@
1
- /* SWFObject v2.2 <http://code.google.com/p/swfobject/>
2
- is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
3
- */
4
- var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();
@@ -1,20 +0,0 @@
1
- CREATE TABLE IF NOT EXISTS `tree` (
2
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
3
- `parent_id` bigint(20) unsigned NOT NULL,
4
- `position` bigint(20) unsigned NOT NULL,
5
- `left` bigint(20) unsigned NOT NULL,
6
- `right` bigint(20) unsigned NOT NULL,
7
- `level` bigint(20) unsigned NOT NULL,
8
- `title` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
9
- `type` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
10
- PRIMARY KEY (`id`)
11
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;
12
-
13
- INSERT INTO `tree` (`id`, `parent_id`, `position`, `left`, `right`, `level`, `title`, `type`) VALUES
14
- (1, 0, 2, 1, 14, 0, 'ROOT', ''),
15
- (2, 1, 0, 2, 11, 1, 'C:', 'drive'),
16
- (3, 2, 0, 3, 6, 2, '_demo', 'folder'),
17
- (4, 3, 0, 4, 5, 3, 'index.html', 'default'),
18
- (5, 2, 1, 7, 10, 2, '_docs', 'folder'),
19
- (6, 1, 1, 12, 13, 1, 'D:', 'drive'),
20
- (12, 5, 0, 8, 9, 3, 'zmei.html', 'default');
File without changes