redde 0.1.18 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (362) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -0
  3. data/.hound.yml +2 -0
  4. data/.rubocop.yml +19 -0
  5. data/.travis.yml +5 -4
  6. data/Gemfile +8 -5
  7. data/MIT-LICENSE +20 -0
  8. data/README.md +96 -105
  9. data/Rakefile +20 -1
  10. data/app/assets/fonts/redde-admin.eot +0 -0
  11. data/app/assets/fonts/redde-admin.svg +12 -0
  12. data/app/assets/fonts/redde-admin.ttf +0 -0
  13. data/app/assets/fonts/redde-admin.woff +0 -0
  14. data/app/assets/images/redde/close-hover.svg +4 -0
  15. data/app/assets/images/redde/close.svg +6 -0
  16. data/app/assets/images/redde/enter.svg +4 -0
  17. data/app/assets/images/redde/eye.svg +5 -0
  18. data/app/assets/images/redde/eye_disactive.svg +5 -0
  19. data/app/assets/images/redde/main-menu/cog.svg +8 -0
  20. data/app/assets/images/redde/main-menu/cog_active.svg +8 -0
  21. data/app/assets/images/redde/main-menu/folder.svg +4 -0
  22. data/app/assets/images/redde/main-menu/folder_active.svg +4 -0
  23. data/app/assets/images/redde/main-menu/home.svg +4 -0
  24. data/app/assets/images/redde/main-menu/home_active.svg +4 -0
  25. data/app/assets/images/redde/main-menu/list.svg +4 -0
  26. data/app/assets/images/redde/main-menu/list_active.svg +4 -0
  27. data/app/assets/images/redde/next.svg +7 -0
  28. data/app/assets/images/redde/plus.svg +3 -0
  29. data/app/assets/images/redde/sel.svg +6 -0
  30. data/app/assets/images/redde/user.svg +12 -0
  31. data/app/assets/javascripts/redde/fileapi.js.coffee +17 -0
  32. data/app/assets/javascripts/redde/index.js.coffee +12 -0
  33. data/app/assets/javascripts/redde/redactor/index.coffee +8 -0
  34. data/{lib/generators/redde/layout/templates/assets/redactor/javascripts/jquery-migrate-1.2.1.js → app/assets/javascripts/redde/redactor/jquery-migrate-1.3.0.js} +215 -34
  35. data/{lib/generators/redde/layout/templates/assets/redactor/javascripts → app/assets/javascripts/redde}/redactor/redactor.js.erb +250 -250
  36. data/app/assets/javascripts/redde/sortTree/index.js.coffee +47 -0
  37. data/app/assets/javascripts/redde/sortable.coffee +47 -0
  38. data/{spec/dummy/app/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/error-msg.sass +4 -2
  39. data/app/assets/stylesheets/redde/blocks/flash-msg.sass +22 -0
  40. data/app/assets/stylesheets/redde/blocks/list-v2.sass +96 -0
  41. data/app/assets/stylesheets/redde/blocks/photos-uploader.sass +21 -0
  42. data/app/assets/stylesheets/redde/blocks/photos.sass +56 -0
  43. data/app/assets/stylesheets/redde/blocks/redde-form.sass +55 -0
  44. data/app/assets/stylesheets/redde/blocks/sort-tree.sass +46 -0
  45. data/app/assets/stylesheets/redde/defaults/btn.sass +30 -0
  46. data/app/assets/stylesheets/redde/defaults/del.sass +23 -0
  47. data/app/assets/stylesheets/redde/defaults/index.sass +87 -0
  48. data/app/assets/stylesheets/redde/defaults/inp.sass +20 -0
  49. data/app/assets/stylesheets/redde/defaults/reset.sass +25 -0
  50. data/app/assets/stylesheets/redde/defaults/sbm.sass +32 -0
  51. data/app/assets/stylesheets/redde/defaults/sel.sass +29 -0
  52. data/app/assets/stylesheets/redde/fonts.sass +42 -0
  53. data/app/assets/stylesheets/redde/index.scss +5 -0
  54. data/app/assets/stylesheets/redde/layouts/header.sass +63 -0
  55. data/app/assets/stylesheets/redde/layouts/main-menu.sass +63 -0
  56. data/app/assets/stylesheets/redde/layouts/main.sass +48 -0
  57. data/app/assets/stylesheets/redde/layouts/page-header.sass +34 -0
  58. data/app/assets/stylesheets/redde/layouts/page-sidebar.sass +9 -0
  59. data/app/assets/stylesheets/redde/mixins.sass +10 -0
  60. data/{spec/dummy/app/assets/stylesheets → app/assets/stylesheets/redde}/redactor/index.scss +46 -49
  61. data/app/assets/stylesheets/redde-admin/blocks/list-v2.sass +96 -0
  62. data/app/assets/stylesheets/redde-admin/defaults/del.sass +23 -0
  63. data/app/controllers/admin/base_controller.rb +81 -0
  64. data/{lib/generators/redde/layout/templates/controllers → app/controllers/admin}/managers_controller.rb +10 -6
  65. data/app/controllers/admin/redde_photos_controller.rb +31 -0
  66. data/app/controllers/admin/system_commands_controller.rb +11 -0
  67. data/app/form_builders/redde_form_builder.rb +106 -0
  68. data/app/helpers/redde/admin_helper.rb +33 -0
  69. data/app/helpers/redde/form_helper.rb +59 -0
  70. data/app/helpers/redde/index_helper.rb +61 -0
  71. data/{lib/redde/concerns/layout.rb → app/models/concerns/redde/layouts.rb} +1 -1
  72. data/app/models/concerns/redde/photoable.rb +5 -0
  73. data/{lib/redde/concerns → app/models/concerns/redde}/sluggable.rb +6 -3
  74. data/app/models/concerns/redde/tree_sortable.rb +40 -0
  75. data/{lib/redde/concerns → app/models/concerns/redde}/with_photo.rb +5 -5
  76. data/app/models/redde/photo.rb +16 -0
  77. data/app/models/redde/system_command.rb +43 -0
  78. data/{lib → app/models}/redde/url_generator.rb +7 -3
  79. data/{lib/generators/redde/photo/templates/uploader.rb → app/uploaders/photo_uploader.rb} +4 -4
  80. data/app/views/admin/base/_tree_item.html.haml +10 -0
  81. data/app/views/admin/base/edit.html.haml +21 -0
  82. data/app/views/admin/base/index.html.haml +68 -0
  83. data/app/views/admin/base/tree.html.haml +14 -0
  84. data/app/views/admin/managers/edit.html.haml +11 -0
  85. data/app/views/admin/managers/index.html.haml +17 -0
  86. data/{lib/generators/redde/layout/templates/base → app/views/admin/redde}/_header.html.haml +5 -6
  87. data/app/views/admin/redde/_main_menu.html.haml +12 -0
  88. data/app/views/admin/redde/_page_header.html.haml +3 -0
  89. data/app/views/admin/redde/_sidebar.html.haml +16 -0
  90. data/{lib/generators/redde/layout/templates/base → app/views/admin/redde}/_validate.haml +2 -2
  91. data/app/views/admin/redde_photos/_photo.haml +11 -0
  92. data/app/views/admin/redde_photos/_photos.haml +28 -0
  93. data/app/views/admin/system_commands/index.html.haml +25 -0
  94. data/app/views/kaminari/redde/_first_page.html.haml +9 -0
  95. data/app/views/kaminari/redde/_gap.html.haml +8 -0
  96. data/app/views/kaminari/redde/_last_page.html.haml +9 -0
  97. data/app/views/kaminari/redde/_next_page.html.haml +9 -0
  98. data/app/views/kaminari/redde/_page.html.haml +10 -0
  99. data/app/views/kaminari/redde/_paginator.html.haml +18 -0
  100. data/app/views/kaminari/redde/_prev_page.html.haml +9 -0
  101. data/{lib/generators/redde/layout/templates → app/views}/layouts/admin.html.haml +28 -29
  102. data/{lib/generators/redde/layout/templates → app/views}/layouts/login.html.haml +32 -32
  103. data/bin/rails +12 -0
  104. data/config/locales/paginate.ru.yml +9 -0
  105. data/config/routes.rb +8 -0
  106. data/db/migrate/20160121152706_create_redde_photos.rb +16 -0
  107. data/lib/generators/redde/layout/layout_generator.rb +3 -26
  108. data/lib/generators/redde/layout/templates/assets/javascripts/admin.js +1 -0
  109. data/lib/generators/redde/layout/templates/assets/stylesheets/admin.css +15 -0
  110. data/lib/generators/redde/scaffold/scaffold_generator.rb +45 -8
  111. data/lib/generators/redde/scaffold/templates/controllers/controller.rb +2 -45
  112. data/lib/generators/redde/scaffold/templates/edit.html.haml +4 -9
  113. data/lib/generators/redde/scaffold/templates/index.html.haml +2 -6
  114. data/lib/generators/redde/scaffold/templates/ru.yml +14 -0
  115. data/lib/redde/engine.rb +16 -0
  116. data/lib/redde/version.rb +1 -1
  117. data/lib/redde.rb +20 -4
  118. data/lib/tasks/redde_tasks.rake +4 -0
  119. data/redde.gemspec +44 -22
  120. metadata +482 -455
  121. data/Guardfile +0 -24
  122. data/LICIENSE.md +0 -21
  123. data/lib/generators/redde/layout/templates/assets/images/admin/del.png +0 -0
  124. data/lib/generators/redde/layout/templates/assets/images/admin/folder_.png +0 -0
  125. data/lib/generators/redde/layout/templates/assets/javascripts/admin/index.js +0 -20
  126. data/lib/generators/redde/layout/templates/assets/redactor/javascripts/redactor/index.coffee +0 -4
  127. data/lib/generators/redde/layout/templates/assets/redactor/stylesheets/redactor/index.scss +0 -369
  128. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/error-msg.sass +0 -47
  129. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/notice.scss +0 -39
  130. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/photos.scss +0 -31
  131. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/sortable.sass +0 -44
  132. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/custom/index.scss +0 -1
  133. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/defaults/index.scss +0 -131
  134. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/defaults/input.sass +0 -35
  135. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/defaults/reset.sass +0 -33
  136. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/defaults/table.scss +0 -24
  137. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/index.scss +0 -6
  138. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/header.sass +0 -50
  139. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/launchbar.sass +0 -23
  140. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/main.sass +0 -38
  141. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/page-header.sass +0 -22
  142. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/page-sidebar.sass +0 -24
  143. data/lib/generators/redde/layout/templates/base/_launchbar.html.haml +0 -11
  144. data/lib/generators/redde/layout/templates/base/_sidebar.html.haml +0 -14
  145. data/lib/generators/redde/layout/templates/controllers/base_controller.rb +0 -28
  146. data/lib/generators/redde/layout/templates/form_builders/redde_form_builder.rb +0 -63
  147. data/lib/generators/redde/layout/templates/helpers/admin_helper.rb +0 -94
  148. data/lib/generators/redde/photo/photo_generator.rb +0 -35
  149. data/lib/generators/redde/photo/templates/controller.rb +0 -20
  150. data/lib/generators/redde/photo/templates/create_photos.rb +0 -16
  151. data/lib/generators/redde/photo/templates/photo.rb +0 -4
  152. data/lib/generators/redde/photo/templates/photos/_photo.haml +0 -5
  153. data/lib/generators/redde/photo/templates/photos/_photos.haml +0 -19
  154. data/lib/generators/redde/photo/templates/photos/create.js.erb +0 -1
  155. data/lib/redde/concerns/photoable.rb +0 -17
  156. data/spec/dummy/.rspec +0 -1
  157. data/spec/dummy/README.rdoc +0 -28
  158. data/spec/dummy/Rakefile +0 -6
  159. data/spec/dummy/app/assets/images/admin/addphoto.png +0 -0
  160. data/spec/dummy/app/assets/images/admin/ajaxloader2.gif +0 -0
  161. data/spec/dummy/app/assets/images/admin/arrow_down.png +0 -0
  162. data/spec/dummy/app/assets/images/admin/arrow_enter.png +0 -0
  163. data/spec/dummy/app/assets/images/admin/arrow_right.png +0 -0
  164. data/spec/dummy/app/assets/images/admin/coins.png +0 -0
  165. data/spec/dummy/app/assets/images/admin/confirm.png +0 -0
  166. data/spec/dummy/app/assets/images/admin/del.png +0 -0
  167. data/spec/dummy/app/assets/images/admin/delete.png +0 -0
  168. data/spec/dummy/app/assets/images/admin/email.png +0 -0
  169. data/spec/dummy/app/assets/images/admin/error-label-triangle.png +0 -0
  170. data/spec/dummy/app/assets/images/admin/error.png +0 -0
  171. data/spec/dummy/app/assets/images/admin/favicon.png +0 -0
  172. data/spec/dummy/app/assets/images/admin/fio.png +0 -0
  173. data/spec/dummy/app/assets/images/admin/folder.png +0 -0
  174. data/spec/dummy/app/assets/images/admin/folder_.png +0 -0
  175. data/spec/dummy/app/assets/images/admin/icon_eye.gif +0 -0
  176. data/spec/dummy/app/assets/images/admin/lightbox/css/jquery.lightbox-0.5.css +0 -101
  177. data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-blank.gif +0 -0
  178. data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-btn-close.gif +0 -0
  179. data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-btn-next.gif +0 -0
  180. data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-btn-prev.gif +0 -0
  181. data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-ico-loading.gif +0 -0
  182. data/spec/dummy/app/assets/images/admin/lightbox/js/jquery.js +0 -32
  183. data/spec/dummy/app/assets/images/admin/lightbox/js/jquery.lightbox-0.5.js +0 -477
  184. data/spec/dummy/app/assets/images/admin/lightbox/js/jquery.lightbox-0.5.min.js +0 -42
  185. data/spec/dummy/app/assets/images/admin/lightbox/js/jquery.lightbox-0.5.pack.js +0 -14
  186. data/spec/dummy/app/assets/images/admin/logo.png +0 -0
  187. data/spec/dummy/app/assets/images/admin/logo_reddeshop.png +0 -0
  188. data/spec/dummy/app/assets/images/admin/move_handler.png +0 -0
  189. data/spec/dummy/app/assets/images/admin/phone.png +0 -0
  190. data/spec/dummy/app/assets/images/admin/photo_ico.png +0 -0
  191. data/spec/dummy/app/assets/images/admin/print.png +0 -0
  192. data/spec/dummy/app/assets/images/admin/refresh.png +0 -0
  193. data/spec/dummy/app/assets/images/admin/submit.png +0 -0
  194. data/spec/dummy/app/assets/images/admin/submit_hover.png +0 -0
  195. data/spec/dummy/app/assets/images/admin/view.png +0 -0
  196. data/spec/dummy/app/assets/images/admin/view_mk.png +0 -0
  197. data/spec/dummy/app/assets/images/redactor/icons.png +0 -0
  198. data/spec/dummy/app/assets/images/redactor/plugins/file.html +0 -3
  199. data/spec/dummy/app/assets/images/redactor/plugins/image.html +0 -39
  200. data/spec/dummy/app/assets/images/redactor/plugins/image_edit.html +0 -35
  201. data/spec/dummy/app/assets/images/redactor/plugins/link.html +0 -74
  202. data/spec/dummy/app/assets/images/redactor/plugins/table.html +0 -25
  203. data/spec/dummy/app/assets/images/redactor/plugins/video.html +0 -15
  204. data/spec/dummy/app/assets/javascripts/admin/jquery.mjs.nestedSortable.js +0 -429
  205. data/spec/dummy/app/assets/javascripts/admin.js +0 -21
  206. data/spec/dummy/app/assets/javascripts/application.js +0 -14
  207. data/spec/dummy/app/assets/javascripts/jquery-migrate-1.2.1.js +0 -521
  208. data/spec/dummy/app/assets/javascripts/redactor/langs/en.js +0 -76
  209. data/spec/dummy/app/assets/javascripts/redactor/langs/ru.js +0 -75
  210. data/spec/dummy/app/assets/javascripts/redactor/redactor.js.erb +0 -2248
  211. data/spec/dummy/app/assets/javascripts/redactor/toolbars/default.js +0 -219
  212. data/spec/dummy/app/assets/stylesheets/admin/blocks/list.scss +0 -22
  213. data/spec/dummy/app/assets/stylesheets/admin/blocks/notice.scss +0 -39
  214. data/spec/dummy/app/assets/stylesheets/admin/blocks/orders.scss +0 -22
  215. data/spec/dummy/app/assets/stylesheets/admin/blocks/paginate.sass +0 -28
  216. data/spec/dummy/app/assets/stylesheets/admin/blocks/pagination.scss +0 -28
  217. data/spec/dummy/app/assets/stylesheets/admin/blocks/partners.scss +0 -15
  218. data/spec/dummy/app/assets/stylesheets/admin/blocks/phead-tabs.sass +0 -27
  219. data/spec/dummy/app/assets/stylesheets/admin/blocks/photos.scss +0 -31
  220. data/spec/dummy/app/assets/stylesheets/admin/blocks/sortable.sass +0 -44
  221. data/spec/dummy/app/assets/stylesheets/admin/custom/index.scss +0 -1
  222. data/spec/dummy/app/assets/stylesheets/admin/defaults/index.scss +0 -131
  223. data/spec/dummy/app/assets/stylesheets/admin/defaults/input.sass +0 -35
  224. data/spec/dummy/app/assets/stylesheets/admin/defaults/reset.sass +0 -33
  225. data/spec/dummy/app/assets/stylesheets/admin/defaults/table.scss +0 -24
  226. data/spec/dummy/app/assets/stylesheets/admin/index.scss +0 -6
  227. data/spec/dummy/app/assets/stylesheets/admin/layouts/header.sass +0 -50
  228. data/spec/dummy/app/assets/stylesheets/admin/layouts/launchbar.sass +0 -23
  229. data/spec/dummy/app/assets/stylesheets/admin/layouts/login.sass +0 -25
  230. data/spec/dummy/app/assets/stylesheets/admin/layouts/main.sass +0 -38
  231. data/spec/dummy/app/assets/stylesheets/admin/layouts/page-header.sass +0 -22
  232. data/spec/dummy/app/assets/stylesheets/admin/layouts/page-sidebar.sass +0 -24
  233. data/spec/dummy/app/assets/stylesheets/admin/layouts/sidebar.sass +0 -30
  234. data/spec/dummy/app/assets/stylesheets/admin/shop/_filter.scss +0 -16
  235. data/spec/dummy/app/assets/stylesheets/admin/shop/_order-sh.scss +0 -59
  236. data/spec/dummy/app/assets/stylesheets/admin/shop/_pe.scss +0 -43
  237. data/spec/dummy/app/assets/stylesheets/redactor/wym.css +0 -136
  238. data/spec/dummy/app/controllers/admin/base_controller.rb +0 -28
  239. data/spec/dummy/app/controllers/admin/managers_controller.rb +0 -36
  240. data/spec/dummy/app/controllers/application_controller.rb +0 -6
  241. data/spec/dummy/app/controllers/articles_controller.rb +0 -8
  242. data/spec/dummy/app/controllers/managers/registrations_controller.rb +0 -21
  243. data/spec/dummy/app/helpers/admin_helper.rb +0 -94
  244. data/spec/dummy/app/models/article.rb +0 -4
  245. data/spec/dummy/app/models/article_category.rb +0 -2
  246. data/spec/dummy/app/models/photo.rb +0 -3
  247. data/spec/dummy/app/views/admin/base/_header.html.haml +0 -12
  248. data/spec/dummy/app/views/admin/base/_launchbar.html.haml +0 -11
  249. data/spec/dummy/app/views/admin/base/_sidebar.html.haml +0 -14
  250. data/spec/dummy/app/views/admin/base/_validate.haml +0 -8
  251. data/spec/dummy/app/views/admin/base/welcome.haml +0 -2
  252. data/spec/dummy/app/views/admin/photos/_photo.haml +0 -5
  253. data/spec/dummy/app/views/admin/photos/_photos.haml +0 -19
  254. data/spec/dummy/app/views/admin/photos/create.js.erb +0 -1
  255. data/spec/dummy/app/views/admin/photos/destroy.js.erb +0 -1
  256. data/spec/dummy/app/views/articles/show.html.haml +0 -2
  257. data/spec/dummy/app/views/layouts/admin.html.haml +0 -29
  258. data/spec/dummy/app/views/layouts/application.html.erb +0 -15
  259. data/spec/dummy/app/views/layouts/login.html.haml +0 -32
  260. data/spec/dummy/bin/bundle +0 -3
  261. data/spec/dummy/bin/rails +0 -4
  262. data/spec/dummy/bin/rake +0 -4
  263. data/spec/dummy/config/application.rb +0 -33
  264. data/spec/dummy/config/boot.rb +0 -5
  265. data/spec/dummy/config/database.yml +0 -25
  266. data/spec/dummy/config/environment.rb +0 -5
  267. data/spec/dummy/config/environments/development.rb +0 -29
  268. data/spec/dummy/config/environments/production.rb +0 -80
  269. data/spec/dummy/config/environments/test.rb +0 -36
  270. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  271. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  272. data/spec/dummy/config/initializers/inflections.rb +0 -16
  273. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  274. data/spec/dummy/config/initializers/secret_token.rb +0 -12
  275. data/spec/dummy/config/initializers/session_store.rb +0 -3
  276. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  277. data/spec/dummy/config/locales/en.yml +0 -36
  278. data/spec/dummy/config/routes.rb +0 -4
  279. data/spec/dummy/config.ru +0 -4
  280. data/spec/dummy/db/migrate/20130908123351_create_articles.rb +0 -9
  281. data/spec/dummy/db/migrate/20140128152208_create_article_categories.rb +0 -11
  282. data/spec/dummy/db/migrate/20140607122532_create_photos.rb +0 -16
  283. data/spec/dummy/db/schema.rb +0 -98
  284. data/spec/dummy/public/404.html +0 -58
  285. data/spec/dummy/public/422.html +0 -58
  286. data/spec/dummy/public/500.html +0 -57
  287. data/spec/dummy/public/favicon.ico +0 -0
  288. data/spec/generators/layout_generator_spec.rb +0 -42
  289. data/spec/generators/photo_generator_spec.rb +0 -32
  290. data/spec/generators/scaffold_generator_spec.rb +0 -58
  291. data/spec/models/sluggable_spec.rb +0 -42
  292. data/spec/models/url_generator_spec.rb +0 -18
  293. data/spec/models/with_photo_spec.rb +0 -25
  294. data/spec/spec_helper.rb +0 -52
  295. /data/{lib/generators/redde/layout/templates/assets/redactor → app/assets}/images/.keep +0 -0
  296. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/addphoto.png +0 -0
  297. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/ajaxloader2.gif +0 -0
  298. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/arrow_down.png +0 -0
  299. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/arrow_enter.png +0 -0
  300. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/arrow_right.png +0 -0
  301. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/coins.png +0 -0
  302. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/confirm.png +0 -0
  303. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/delete.png +0 -0
  304. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/email.png +0 -0
  305. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/error.png +0 -0
  306. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/favicon.png +0 -0
  307. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/fio.png +0 -0
  308. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/icon_eye.gif +0 -0
  309. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/css/jquery.lightbox-0.5.css +0 -0
  310. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-blank.gif +0 -0
  311. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-btn-close.gif +0 -0
  312. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-btn-next.gif +0 -0
  313. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-btn-prev.gif +0 -0
  314. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-ico-loading.gif +0 -0
  315. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/js/jquery.js +0 -0
  316. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/js/jquery.lightbox-0.5.js +0 -0
  317. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/js/jquery.lightbox-0.5.min.js +0 -0
  318. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/js/jquery.lightbox-0.5.pack.js +0 -0
  319. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/logo_reddeshop.png +0 -0
  320. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/phone.png +0 -0
  321. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/photo_ico.png +0 -0
  322. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/print.png +0 -0
  323. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/refresh.png +0 -0
  324. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/submit.png +0 -0
  325. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/submit_hover.png +0 -0
  326. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/view.png +0 -0
  327. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/view_mk.png +0 -0
  328. /data/{lib/generators/redde/layout/templates/assets/images/admin → app/assets/images/redde}/error-label-triangle.png +0 -0
  329. /data/{lib/generators/redde/layout/templates/assets/images/admin → app/assets/images/redde}/folder.png +0 -0
  330. /data/{lib/generators/redde/layout/templates/assets/images/admin → app/assets/images/redde}/logo.png +0 -0
  331. /data/{lib/generators/redde/layout/templates/assets/images/admin/move_handler.png → app/assets/images/redde/move-handler.png} +0 -0
  332. /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/icons.png +0 -0
  333. /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/file.html +0 -0
  334. /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/image.html +0 -0
  335. /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/image_edit.html +0 -0
  336. /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/link.html +0 -0
  337. /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/table.html +0 -0
  338. /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/video.html +0 -0
  339. /data/{lib/generators/redde/layout/templates/assets/redactor/javascripts → app/assets/javascripts/redde}/redactor/langs/en.js +0 -0
  340. /data/{lib/generators/redde/layout/templates/assets/redactor/javascripts → app/assets/javascripts/redde}/redactor/langs/ru.js +0 -0
  341. /data/{lib/generators/redde/layout/templates/assets/redactor/javascripts → app/assets/javascripts/redde}/redactor/toolbars/default.js +0 -0
  342. /data/{lib/generators/redde/layout/templates/assets/javascripts/admin → app/assets/javascripts/redde/sortTree}/jquery.mjs.nestedSortable.js +0 -0
  343. /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/list.scss +0 -0
  344. /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/orders.scss +0 -0
  345. /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/paginate.sass +0 -0
  346. /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/pagination.scss +0 -0
  347. /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/partners.scss +0 -0
  348. /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/phead-tabs.sass +0 -0
  349. /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/layouts/login.sass +0 -0
  350. /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/layouts/sidebar.sass +0 -0
  351. /data/{lib/generators/redde/layout/templates/assets/redactor/stylesheets → app/assets/stylesheets/redde}/redactor/wym.css +0 -0
  352. /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/shop/_filter.scss +0 -0
  353. /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/shop/_order-sh.scss +0 -0
  354. /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/shop/_pe.scss +0 -0
  355. /data/{spec/dummy/app/assets/images → app/controllers}/.keep +0 -0
  356. /data/{lib/generators/redde/layout/templates → app}/controllers/managers/registrations_controller.rb +0 -0
  357. /data/{spec/dummy/app/models → app/helpers}/.keep +0 -0
  358. /data/{spec/dummy/lib/assets → app/mailers}/.keep +0 -0
  359. /data/{spec/dummy/log → app/models}/.keep +0 -0
  360. /data/{spec/dummy/app/assets/stylesheets/application.css.scss → app/views/.keep} +0 -0
  361. /data/{lib/generators/redde/layout/templates → app/views/admin}/base/welcome.haml +0 -0
  362. /data/{lib/generators/redde/photo/templates/photos → app/views/admin/redde_photos}/destroy.js.erb +0 -0
@@ -1,521 +0,0 @@
1
- /*!
2
- * jQuery Migrate - v1.2.1 - 2013-05-08
3
- * https://github.com/jquery/jquery-migrate
4
- * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors; Licensed MIT
5
- */
6
- (function( jQuery, window, undefined ) {
7
- // See http://bugs.jquery.com/ticket/13335
8
- // "use strict";
9
-
10
-
11
- var warnedAbout = {};
12
-
13
- // List of warnings already given; public read only
14
- jQuery.migrateWarnings = [];
15
-
16
- // Set to true to prevent console output; migrateWarnings still maintained
17
- // jQuery.migrateMute = false;
18
-
19
- // Show a message on the console so devs know we're active
20
- if ( !jQuery.migrateMute && window.console && window.console.log ) {
21
- window.console.log("JQMIGRATE: Logging is active");
22
- }
23
-
24
- // Set to false to disable traces that appear with warnings
25
- if ( jQuery.migrateTrace === undefined ) {
26
- jQuery.migrateTrace = true;
27
- }
28
-
29
- // Forget any warnings we've already given; public
30
- jQuery.migrateReset = function() {
31
- warnedAbout = {};
32
- jQuery.migrateWarnings.length = 0;
33
- };
34
-
35
- function migrateWarn( msg) {
36
- var console = window.console;
37
- if ( !warnedAbout[ msg ] ) {
38
- warnedAbout[ msg ] = true;
39
- jQuery.migrateWarnings.push( msg );
40
- if ( console && console.warn && !jQuery.migrateMute ) {
41
- console.warn( "JQMIGRATE: " + msg );
42
- if ( jQuery.migrateTrace && console.trace ) {
43
- console.trace();
44
- }
45
- }
46
- }
47
- }
48
-
49
- function migrateWarnProp( obj, prop, value, msg ) {
50
- if ( Object.defineProperty ) {
51
- // On ES5 browsers (non-oldIE), warn if the code tries to get prop;
52
- // allow property to be overwritten in case some other plugin wants it
53
- try {
54
- Object.defineProperty( obj, prop, {
55
- configurable: true,
56
- enumerable: true,
57
- get: function() {
58
- migrateWarn( msg );
59
- return value;
60
- },
61
- set: function( newValue ) {
62
- migrateWarn( msg );
63
- value = newValue;
64
- }
65
- });
66
- return;
67
- } catch( err ) {
68
- // IE8 is a dope about Object.defineProperty, can't warn there
69
- }
70
- }
71
-
72
- // Non-ES5 (or broken) browser; just set the property
73
- jQuery._definePropertyBroken = true;
74
- obj[ prop ] = value;
75
- }
76
-
77
- if ( document.compatMode === "BackCompat" ) {
78
- // jQuery has never supported or tested Quirks Mode
79
- migrateWarn( "jQuery is not compatible with Quirks Mode" );
80
- }
81
-
82
-
83
- var attrFn = jQuery( "<input/>", { size: 1 } ).attr("size") && jQuery.attrFn,
84
- oldAttr = jQuery.attr,
85
- valueAttrGet = jQuery.attrHooks.value && jQuery.attrHooks.value.get ||
86
- function() { return null; },
87
- valueAttrSet = jQuery.attrHooks.value && jQuery.attrHooks.value.set ||
88
- function() { return undefined; },
89
- rnoType = /^(?:input|button)$/i,
90
- rnoAttrNodeType = /^[238]$/,
91
- rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
92
- ruseDefault = /^(?:checked|selected)$/i;
93
-
94
- // jQuery.attrFn
95
- migrateWarnProp( jQuery, "attrFn", attrFn || {}, "jQuery.attrFn is deprecated" );
96
-
97
- jQuery.attr = function( elem, name, value, pass ) {
98
- var lowerName = name.toLowerCase(),
99
- nType = elem && elem.nodeType;
100
-
101
- if ( pass ) {
102
- // Since pass is used internally, we only warn for new jQuery
103
- // versions where there isn't a pass arg in the formal params
104
- if ( oldAttr.length < 4 ) {
105
- migrateWarn("jQuery.fn.attr( props, pass ) is deprecated");
106
- }
107
- if ( elem && !rnoAttrNodeType.test( nType ) &&
108
- (attrFn ? name in attrFn : jQuery.isFunction(jQuery.fn[name])) ) {
109
- return jQuery( elem )[ name ]( value );
110
- }
111
- }
112
-
113
- // Warn if user tries to set `type`, since it breaks on IE 6/7/8; by checking
114
- // for disconnected elements we don't warn on $( "<button>", { type: "button" } ).
115
- if ( name === "type" && value !== undefined && rnoType.test( elem.nodeName ) && elem.parentNode ) {
116
- migrateWarn("Can't change the 'type' of an input or button in IE 6/7/8");
117
- }
118
-
119
- // Restore boolHook for boolean property/attribute synchronization
120
- if ( !jQuery.attrHooks[ lowerName ] && rboolean.test( lowerName ) ) {
121
- jQuery.attrHooks[ lowerName ] = {
122
- get: function( elem, name ) {
123
- // Align boolean attributes with corresponding properties
124
- // Fall back to attribute presence where some booleans are not supported
125
- var attrNode,
126
- property = jQuery.prop( elem, name );
127
- return property === true || typeof property !== "boolean" &&
128
- ( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ?
129
-
130
- name.toLowerCase() :
131
- undefined;
132
- },
133
- set: function( elem, value, name ) {
134
- var propName;
135
- if ( value === false ) {
136
- // Remove boolean attributes when set to false
137
- jQuery.removeAttr( elem, name );
138
- } else {
139
- // value is true since we know at this point it's type boolean and not false
140
- // Set boolean attributes to the same name and set the DOM property
141
- propName = jQuery.propFix[ name ] || name;
142
- if ( propName in elem ) {
143
- // Only set the IDL specifically if it already exists on the element
144
- elem[ propName ] = true;
145
- }
146
-
147
- elem.setAttribute( name, name.toLowerCase() );
148
- }
149
- return name;
150
- }
151
- };
152
-
153
- // Warn only for attributes that can remain distinct from their properties post-1.9
154
- if ( ruseDefault.test( lowerName ) ) {
155
- migrateWarn( "jQuery.fn.attr('" + lowerName + "') may use property instead of attribute" );
156
- }
157
- }
158
-
159
- return oldAttr.call( jQuery, elem, name, value );
160
- };
161
-
162
- // attrHooks: value
163
- jQuery.attrHooks.value = {
164
- get: function( elem, name ) {
165
- var nodeName = ( elem.nodeName || "" ).toLowerCase();
166
- if ( nodeName === "button" ) {
167
- return valueAttrGet.apply( this, arguments );
168
- }
169
- if ( nodeName !== "input" && nodeName !== "option" ) {
170
- migrateWarn("jQuery.fn.attr('value') no longer gets properties");
171
- }
172
- return name in elem ?
173
- elem.value :
174
- null;
175
- },
176
- set: function( elem, value ) {
177
- var nodeName = ( elem.nodeName || "" ).toLowerCase();
178
- if ( nodeName === "button" ) {
179
- return valueAttrSet.apply( this, arguments );
180
- }
181
- if ( nodeName !== "input" && nodeName !== "option" ) {
182
- migrateWarn("jQuery.fn.attr('value', val) no longer sets properties");
183
- }
184
- // Does not return so that setAttribute is also used
185
- elem.value = value;
186
- }
187
- };
188
-
189
-
190
- var matched, browser,
191
- oldInit = jQuery.fn.init,
192
- oldParseJSON = jQuery.parseJSON,
193
- // Note: XSS check is done below after string is trimmed
194
- rquickExpr = /^([^<]*)(<[\w\W]+>)([^>]*)$/;
195
-
196
- // $(html) "looks like html" rule change
197
- jQuery.fn.init = function( selector, context, rootjQuery ) {
198
- var match;
199
-
200
- if ( selector && typeof selector === "string" && !jQuery.isPlainObject( context ) &&
201
- (match = rquickExpr.exec( jQuery.trim( selector ) )) && match[ 0 ] ) {
202
- // This is an HTML string according to the "old" rules; is it still?
203
- if ( selector.charAt( 0 ) !== "<" ) {
204
- migrateWarn("$(html) HTML strings must start with '<' character");
205
- }
206
- if ( match[ 3 ] ) {
207
- migrateWarn("$(html) HTML text after last tag is ignored");
208
- }
209
- // Consistently reject any HTML-like string starting with a hash (#9521)
210
- // Note that this may break jQuery 1.6.x code that otherwise would work.
211
- if ( match[ 0 ].charAt( 0 ) === "#" ) {
212
- migrateWarn("HTML string cannot start with a '#' character");
213
- jQuery.error("JQMIGRATE: Invalid selector string (XSS)");
214
- }
215
- // Now process using loose rules; let pre-1.8 play too
216
- if ( context && context.context ) {
217
- // jQuery object as context; parseHTML expects a DOM object
218
- context = context.context;
219
- }
220
- if ( jQuery.parseHTML ) {
221
- return oldInit.call( this, jQuery.parseHTML( match[ 2 ], context, true ),
222
- context, rootjQuery );
223
- }
224
- }
225
- return oldInit.apply( this, arguments );
226
- };
227
- jQuery.fn.init.prototype = jQuery.fn;
228
-
229
- // Let $.parseJSON(falsy_value) return null
230
- jQuery.parseJSON = function( json ) {
231
- if ( !json && json !== null ) {
232
- migrateWarn("jQuery.parseJSON requires a valid JSON string");
233
- return null;
234
- }
235
- return oldParseJSON.apply( this, arguments );
236
- };
237
-
238
- jQuery.uaMatch = function( ua ) {
239
- ua = ua.toLowerCase();
240
-
241
- var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) ||
242
- /(webkit)[ \/]([\w.]+)/.exec( ua ) ||
243
- /(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) ||
244
- /(msie) ([\w.]+)/.exec( ua ) ||
245
- ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) ||
246
- [];
247
-
248
- return {
249
- browser: match[ 1 ] || "",
250
- version: match[ 2 ] || "0"
251
- };
252
- };
253
-
254
- // Don't clobber any existing jQuery.browser in case it's different
255
- if ( !jQuery.browser ) {
256
- matched = jQuery.uaMatch( navigator.userAgent );
257
- browser = {};
258
-
259
- if ( matched.browser ) {
260
- browser[ matched.browser ] = true;
261
- browser.version = matched.version;
262
- }
263
-
264
- // Chrome is Webkit, but Webkit is also Safari.
265
- if ( browser.chrome ) {
266
- browser.webkit = true;
267
- } else if ( browser.webkit ) {
268
- browser.safari = true;
269
- }
270
-
271
- jQuery.browser = browser;
272
- }
273
-
274
- // Warn if the code tries to get jQuery.browser
275
- migrateWarnProp( jQuery, "browser", jQuery.browser, "jQuery.browser is deprecated" );
276
-
277
- jQuery.sub = function() {
278
- function jQuerySub( selector, context ) {
279
- return new jQuerySub.fn.init( selector, context );
280
- }
281
- jQuery.extend( true, jQuerySub, this );
282
- jQuerySub.superclass = this;
283
- jQuerySub.fn = jQuerySub.prototype = this();
284
- jQuerySub.fn.constructor = jQuerySub;
285
- jQuerySub.sub = this.sub;
286
- jQuerySub.fn.init = function init( selector, context ) {
287
- if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {
288
- context = jQuerySub( context );
289
- }
290
-
291
- return jQuery.fn.init.call( this, selector, context, rootjQuerySub );
292
- };
293
- jQuerySub.fn.init.prototype = jQuerySub.fn;
294
- var rootjQuerySub = jQuerySub(document);
295
- migrateWarn( "jQuery.sub() is deprecated" );
296
- return jQuerySub;
297
- };
298
-
299
-
300
- // Ensure that $.ajax gets the new parseJSON defined in core.js
301
- jQuery.ajaxSetup({
302
- converters: {
303
- "text json": jQuery.parseJSON
304
- }
305
- });
306
-
307
-
308
- var oldFnData = jQuery.fn.data;
309
-
310
- jQuery.fn.data = function( name ) {
311
- var ret, evt,
312
- elem = this[0];
313
-
314
- // Handles 1.7 which has this behavior and 1.8 which doesn't
315
- if ( elem && name === "events" && arguments.length === 1 ) {
316
- ret = jQuery.data( elem, name );
317
- evt = jQuery._data( elem, name );
318
- if ( ( ret === undefined || ret === evt ) && evt !== undefined ) {
319
- migrateWarn("Use of jQuery.fn.data('events') is deprecated");
320
- return evt;
321
- }
322
- }
323
- return oldFnData.apply( this, arguments );
324
- };
325
-
326
-
327
- var rscriptType = /\/(java|ecma)script/i,
328
- oldSelf = jQuery.fn.andSelf || jQuery.fn.addBack;
329
-
330
- jQuery.fn.andSelf = function() {
331
- migrateWarn("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()");
332
- return oldSelf.apply( this, arguments );
333
- };
334
-
335
- // Since jQuery.clean is used internally on older versions, we only shim if it's missing
336
- if ( !jQuery.clean ) {
337
- jQuery.clean = function( elems, context, fragment, scripts ) {
338
- // Set context per 1.8 logic
339
- context = context || document;
340
- context = !context.nodeType && context[0] || context;
341
- context = context.ownerDocument || context;
342
-
343
- migrateWarn("jQuery.clean() is deprecated");
344
-
345
- var i, elem, handleScript, jsTags,
346
- ret = [];
347
-
348
- jQuery.merge( ret, jQuery.buildFragment( elems, context ).childNodes );
349
-
350
- // Complex logic lifted directly from jQuery 1.8
351
- if ( fragment ) {
352
- // Special handling of each script element
353
- handleScript = function( elem ) {
354
- // Check if we consider it executable
355
- if ( !elem.type || rscriptType.test( elem.type ) ) {
356
- // Detach the script and store it in the scripts array (if provided) or the fragment
357
- // Return truthy to indicate that it has been handled
358
- return scripts ?
359
- scripts.push( elem.parentNode ? elem.parentNode.removeChild( elem ) : elem ) :
360
- fragment.appendChild( elem );
361
- }
362
- };
363
-
364
- for ( i = 0; (elem = ret[i]) != null; i++ ) {
365
- // Check if we're done after handling an executable script
366
- if ( !( jQuery.nodeName( elem, "script" ) && handleScript( elem ) ) ) {
367
- // Append to fragment and handle embedded scripts
368
- fragment.appendChild( elem );
369
- if ( typeof elem.getElementsByTagName !== "undefined" ) {
370
- // handleScript alters the DOM, so use jQuery.merge to ensure snapshot iteration
371
- jsTags = jQuery.grep( jQuery.merge( [], elem.getElementsByTagName("script") ), handleScript );
372
-
373
- // Splice the scripts into ret after their former ancestor and advance our index beyond them
374
- ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) );
375
- i += jsTags.length;
376
- }
377
- }
378
- }
379
- }
380
-
381
- return ret;
382
- };
383
- }
384
-
385
- var eventAdd = jQuery.event.add,
386
- eventRemove = jQuery.event.remove,
387
- eventTrigger = jQuery.event.trigger,
388
- oldToggle = jQuery.fn.toggle,
389
- oldLive = jQuery.fn.live,
390
- oldDie = jQuery.fn.die,
391
- ajaxEvents = "ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",
392
- rajaxEvent = new RegExp( "\\b(?:" + ajaxEvents + ")\\b" ),
393
- rhoverHack = /(?:^|\s)hover(\.\S+|)\b/,
394
- hoverHack = function( events ) {
395
- if ( typeof( events ) !== "string" || jQuery.event.special.hover ) {
396
- return events;
397
- }
398
- if ( rhoverHack.test( events ) ) {
399
- migrateWarn("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'");
400
- }
401
- return events && events.replace( rhoverHack, "mouseenter$1 mouseleave$1" );
402
- };
403
-
404
- // Event props removed in 1.9, put them back if needed; no practical way to warn them
405
- if ( jQuery.event.props && jQuery.event.props[ 0 ] !== "attrChange" ) {
406
- jQuery.event.props.unshift( "attrChange", "attrName", "relatedNode", "srcElement" );
407
- }
408
-
409
- // Undocumented jQuery.event.handle was "deprecated" in jQuery 1.7
410
- if ( jQuery.event.dispatch ) {
411
- migrateWarnProp( jQuery.event, "handle", jQuery.event.dispatch, "jQuery.event.handle is undocumented and deprecated" );
412
- }
413
-
414
- // Support for 'hover' pseudo-event and ajax event warnings
415
- jQuery.event.add = function( elem, types, handler, data, selector ){
416
- if ( elem !== document && rajaxEvent.test( types ) ) {
417
- migrateWarn( "AJAX events should be attached to document: " + types );
418
- }
419
- eventAdd.call( this, elem, hoverHack( types || "" ), handler, data, selector );
420
- };
421
- jQuery.event.remove = function( elem, types, handler, selector, mappedTypes ){
422
- eventRemove.call( this, elem, hoverHack( types ) || "", handler, selector, mappedTypes );
423
- };
424
-
425
- jQuery.fn.error = function() {
426
- var args = Array.prototype.slice.call( arguments, 0);
427
- migrateWarn("jQuery.fn.error() is deprecated");
428
- args.splice( 0, 0, "error" );
429
- if ( arguments.length ) {
430
- return this.bind.apply( this, args );
431
- }
432
- // error event should not bubble to window, although it does pre-1.7
433
- this.triggerHandler.apply( this, args );
434
- return this;
435
- };
436
-
437
- jQuery.fn.toggle = function( fn, fn2 ) {
438
-
439
- // Don't mess with animation or css toggles
440
- if ( !jQuery.isFunction( fn ) || !jQuery.isFunction( fn2 ) ) {
441
- return oldToggle.apply( this, arguments );
442
- }
443
- migrateWarn("jQuery.fn.toggle(handler, handler...) is deprecated");
444
-
445
- // Save reference to arguments for access in closure
446
- var args = arguments,
447
- guid = fn.guid || jQuery.guid++,
448
- i = 0,
449
- toggler = function( event ) {
450
- // Figure out which function to execute
451
- var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i;
452
- jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 );
453
-
454
- // Make sure that clicks stop
455
- event.preventDefault();
456
-
457
- // and execute the function
458
- return args[ lastToggle ].apply( this, arguments ) || false;
459
- };
460
-
461
- // link all the functions, so any of them can unbind this click handler
462
- toggler.guid = guid;
463
- while ( i < args.length ) {
464
- args[ i++ ].guid = guid;
465
- }
466
-
467
- return this.click( toggler );
468
- };
469
-
470
- jQuery.fn.live = function( types, data, fn ) {
471
- migrateWarn("jQuery.fn.live() is deprecated");
472
- if ( oldLive ) {
473
- return oldLive.apply( this, arguments );
474
- }
475
- jQuery( this.context ).on( types, this.selector, data, fn );
476
- return this;
477
- };
478
-
479
- jQuery.fn.die = function( types, fn ) {
480
- migrateWarn("jQuery.fn.die() is deprecated");
481
- if ( oldDie ) {
482
- return oldDie.apply( this, arguments );
483
- }
484
- jQuery( this.context ).off( types, this.selector || "**", fn );
485
- return this;
486
- };
487
-
488
- // Turn global events into document-triggered events
489
- jQuery.event.trigger = function( event, data, elem, onlyHandlers ){
490
- if ( !elem && !rajaxEvent.test( event ) ) {
491
- migrateWarn( "Global events are undocumented and deprecated" );
492
- }
493
- return eventTrigger.call( this, event, data, elem || document, onlyHandlers );
494
- };
495
- jQuery.each( ajaxEvents.split("|"),
496
- function( _, name ) {
497
- jQuery.event.special[ name ] = {
498
- setup: function() {
499
- var elem = this;
500
-
501
- // The document needs no shimming; must be !== for oldIE
502
- if ( elem !== document ) {
503
- jQuery.event.add( document, name + "." + jQuery.guid, function() {
504
- jQuery.event.trigger( name, null, elem, true );
505
- });
506
- jQuery._data( this, name, jQuery.guid++ );
507
- }
508
- return false;
509
- },
510
- teardown: function() {
511
- if ( this !== document ) {
512
- jQuery.event.remove( document, name + "." + jQuery._data( this, name ) );
513
- }
514
- return false;
515
- }
516
- };
517
- }
518
- );
519
-
520
-
521
- })( jQuery, window );
@@ -1,76 +0,0 @@
1
- var RLANG = {
2
- html: 'HTML',
3
- video: 'Video',
4
- image: 'Image',
5
- table: 'Table',
6
- link: 'Link',
7
- link_insert: 'Insert link ...',
8
- unlink: 'Unlink',
9
- styles: 'Styles',
10
- paragraph: 'Paragraph',
11
- quote: 'Quote',
12
- code: 'Code',
13
- header1: 'Header 1',
14
- header2: 'Header 2',
15
- header3: 'Header 3',
16
- header4: 'Header 4',
17
- format: 'Format',
18
- bold: 'Bold',
19
- italic: 'Italic',
20
- superscript: 'Superscript',
21
- strikethrough: 'Strikethrough',
22
- fontcolor: 'Font color',
23
- backcolor: 'Back color',
24
- removeformat: 'Remove format',
25
- cleanstyles: 'Clean styles',
26
- lists: 'Lists',
27
- unorderedlist: 'Unordered list',
28
- orderedlist: 'Ordered list',
29
- outdent: 'Outdent',
30
- indent: 'Indent',
31
- redo: 'Redo',
32
- undo: 'Undo',
33
- cut: 'Cut',
34
- cancel: 'Cancel',
35
- insert: 'Insert',
36
- save: 'Save',
37
- _delete: 'Delete',
38
- insert_table: 'Insert table',
39
- insert_row_above: 'Add row above',
40
- insert_row_below: 'Add row below',
41
- insert_column_left: 'Add column left',
42
- insert_column_right: 'Add column right',
43
- delete_column: 'Delete column',
44
- delete_row: 'Delete row',
45
- delete_table: 'Delete table',
46
- Rows: 'Rows',
47
- Columns: 'Columns',
48
- add_head: 'Add head',
49
- delete_head: 'Delete head',
50
- title: 'Title',
51
- image_view: 'View image',
52
- image_position: 'Position',
53
- none: 'none',
54
- left: 'left',
55
- right: 'right',
56
- image_web_link: 'Image web link',
57
- text: 'Text',
58
- mailto: 'Email',
59
- web: 'URL',
60
- video_html_code: 'Video embed code',
61
- file: 'File',
62
- upload: 'Upload',
63
- download: 'Download',
64
- choose: 'Choose',
65
- or_choose: 'Or choose',
66
- drop_file_here: 'Drop file here',
67
- align_left: 'Align left',
68
- align_center: 'Align center',
69
- align_right: 'Align right',
70
- align_justify: 'Justify',
71
- horizontalrule: 'Horizontal rule',
72
- fullscreen: 'Fullscreen',
73
- deleted: 'Deleted',
74
- none: 'None',
75
- anchor: 'Anchor'
76
- };
@@ -1,75 +0,0 @@
1
- var RLANG = {
2
- html: 'Код',
3
- video: 'Видео',
4
- image: 'Изображение',
5
- table: 'Таблица',
6
- link: 'Ссылка',
7
- link_insert: 'Вставить ссылку ...',
8
- unlink: 'Удалить ссылку',
9
- styles: 'Стили',
10
- paragraph: 'Обычный текст',
11
- quote: 'Цитата',
12
- code: 'Код',
13
- header1: 'Заголовок 1',
14
- header2: 'Заголовок 2',
15
- header3: 'Заголовок 3',
16
- header4: 'Заголовок 4',
17
- format: 'Формат',
18
- bold: 'Полужирный',
19
- italic: 'Наклонный',
20
- superscript: 'Надстрочный',
21
- strikethrough: 'Зачеркнутый',
22
- fontcolor: 'Цвет текста',
23
- backcolor: 'Заливка текста',
24
- removeformat: 'Удалить формат',
25
- cleanstyles: 'Удалить стили MS Word',
26
- lists: 'Списки',
27
- unorderedlist: 'Обычный список',
28
- orderedlist: 'Нумерованный список',
29
- outdent: 'Уменьшить отступ',
30
- indent: 'Увеличить отступ',
31
- redo: 'Повтор',
32
- undo: 'Отмена',
33
- cut: 'Кат / Врезка',
34
- cancel: 'Отменить',
35
- insert: 'Вставить',
36
- save: 'Сохранить',
37
- _delete: 'Удалить',
38
- insert_table: 'Вставить таблицу',
39
- insert_row_above: 'Добавить строку сверху',
40
- insert_row_below: 'Добавить строку снизу',
41
- insert_column_left: 'Добавить столбец слева',
42
- insert_column_right: 'Добавить столбец справа',
43
- delete_column: 'Удалить столбец',
44
- delete_row: 'Удалить строку',
45
- delete_table: 'Удалить таблицу',
46
- Rows: 'Строки',
47
- Columns: 'Столбцы',
48
- add_head: 'Добавить заголовок',
49
- delete_head: 'Удалить заголовок',
50
- title: 'Подсказка',
51
- image_view: 'Скачать изображение',
52
- image_position: 'Обтекание текстом',
53
- left: 'слева',
54
- right: 'справа',
55
- image_web_link: 'Cсылка на изображение',
56
- text: 'Текст',
57
- mailto: 'Эл. почта',
58
- web: 'URL',
59
- video_html_code: 'Код видео ролика',
60
- file: 'Файл',
61
- upload: 'Загрузить',
62
- download: 'Скачать',
63
- choose: 'Выбрать',
64
- or_choose: 'Или выберите',
65
- drop_file_here: 'Перетащите файл сюда',
66
- align_left: 'По левому краю',
67
- align_center: 'По центру',
68
- align_right: 'По правому краю',
69
- align_justify: 'Выровнять текст по ширине',
70
- horizontalrule: 'Горизонтальная линейка',
71
- fullscreen: 'Во весь экран',
72
- deleted: 'Зачеркнутый',
73
- none: 'Нет',
74
- anchor: 'Якорь'
75
- };