redde 0.1.18 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +2 -0
- data/.hound.yml +2 -0
- data/.rubocop.yml +19 -0
- data/.travis.yml +5 -4
- data/Gemfile +8 -5
- data/MIT-LICENSE +20 -0
- data/README.md +96 -105
- data/Rakefile +20 -1
- data/app/assets/fonts/redde-admin.eot +0 -0
- data/app/assets/fonts/redde-admin.svg +12 -0
- data/app/assets/fonts/redde-admin.ttf +0 -0
- data/app/assets/fonts/redde-admin.woff +0 -0
- data/app/assets/images/redde/close-hover.svg +4 -0
- data/app/assets/images/redde/close.svg +6 -0
- data/app/assets/images/redde/enter.svg +4 -0
- data/app/assets/images/redde/eye.svg +5 -0
- data/app/assets/images/redde/eye_disactive.svg +5 -0
- data/app/assets/images/redde/main-menu/cog.svg +8 -0
- data/app/assets/images/redde/main-menu/cog_active.svg +8 -0
- data/app/assets/images/redde/main-menu/folder.svg +4 -0
- data/app/assets/images/redde/main-menu/folder_active.svg +4 -0
- data/app/assets/images/redde/main-menu/home.svg +4 -0
- data/app/assets/images/redde/main-menu/home_active.svg +4 -0
- data/app/assets/images/redde/main-menu/list.svg +4 -0
- data/app/assets/images/redde/main-menu/list_active.svg +4 -0
- data/app/assets/images/redde/next.svg +7 -0
- data/app/assets/images/redde/plus.svg +3 -0
- data/app/assets/images/redde/sel.svg +6 -0
- data/app/assets/images/redde/user.svg +12 -0
- data/app/assets/javascripts/redde/fileapi.js.coffee +17 -0
- data/app/assets/javascripts/redde/index.js.coffee +12 -0
- data/app/assets/javascripts/redde/redactor/index.coffee +8 -0
- 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
- data/{lib/generators/redde/layout/templates/assets/redactor/javascripts → app/assets/javascripts/redde}/redactor/redactor.js.erb +250 -250
- data/app/assets/javascripts/redde/sortTree/index.js.coffee +47 -0
- data/app/assets/javascripts/redde/sortable.coffee +47 -0
- data/{spec/dummy/app/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/error-msg.sass +4 -2
- data/app/assets/stylesheets/redde/blocks/flash-msg.sass +22 -0
- data/app/assets/stylesheets/redde/blocks/list-v2.sass +96 -0
- data/app/assets/stylesheets/redde/blocks/photos-uploader.sass +21 -0
- data/app/assets/stylesheets/redde/blocks/photos.sass +56 -0
- data/app/assets/stylesheets/redde/blocks/redde-form.sass +55 -0
- data/app/assets/stylesheets/redde/blocks/sort-tree.sass +46 -0
- data/app/assets/stylesheets/redde/defaults/btn.sass +30 -0
- data/app/assets/stylesheets/redde/defaults/del.sass +23 -0
- data/app/assets/stylesheets/redde/defaults/index.sass +87 -0
- data/app/assets/stylesheets/redde/defaults/inp.sass +20 -0
- data/app/assets/stylesheets/redde/defaults/reset.sass +25 -0
- data/app/assets/stylesheets/redde/defaults/sbm.sass +32 -0
- data/app/assets/stylesheets/redde/defaults/sel.sass +29 -0
- data/app/assets/stylesheets/redde/fonts.sass +42 -0
- data/app/assets/stylesheets/redde/index.scss +5 -0
- data/app/assets/stylesheets/redde/layouts/header.sass +63 -0
- data/app/assets/stylesheets/redde/layouts/main-menu.sass +63 -0
- data/app/assets/stylesheets/redde/layouts/main.sass +48 -0
- data/app/assets/stylesheets/redde/layouts/page-header.sass +34 -0
- data/app/assets/stylesheets/redde/layouts/page-sidebar.sass +9 -0
- data/app/assets/stylesheets/redde/mixins.sass +10 -0
- data/{spec/dummy/app/assets/stylesheets → app/assets/stylesheets/redde}/redactor/index.scss +46 -49
- data/app/assets/stylesheets/redde-admin/blocks/list-v2.sass +96 -0
- data/app/assets/stylesheets/redde-admin/defaults/del.sass +23 -0
- data/app/controllers/admin/base_controller.rb +81 -0
- data/{lib/generators/redde/layout/templates/controllers → app/controllers/admin}/managers_controller.rb +10 -6
- data/app/controllers/admin/redde_photos_controller.rb +31 -0
- data/app/controllers/admin/system_commands_controller.rb +11 -0
- data/app/form_builders/redde_form_builder.rb +106 -0
- data/app/helpers/redde/admin_helper.rb +33 -0
- data/app/helpers/redde/form_helper.rb +59 -0
- data/app/helpers/redde/index_helper.rb +61 -0
- data/{lib/redde/concerns/layout.rb → app/models/concerns/redde/layouts.rb} +1 -1
- data/app/models/concerns/redde/photoable.rb +5 -0
- data/{lib/redde/concerns → app/models/concerns/redde}/sluggable.rb +6 -3
- data/app/models/concerns/redde/tree_sortable.rb +40 -0
- data/{lib/redde/concerns → app/models/concerns/redde}/with_photo.rb +5 -5
- data/app/models/redde/photo.rb +16 -0
- data/app/models/redde/system_command.rb +43 -0
- data/{lib → app/models}/redde/url_generator.rb +7 -3
- data/{lib/generators/redde/photo/templates/uploader.rb → app/uploaders/photo_uploader.rb} +4 -4
- data/app/views/admin/base/_tree_item.html.haml +10 -0
- data/app/views/admin/base/edit.html.haml +21 -0
- data/app/views/admin/base/index.html.haml +68 -0
- data/app/views/admin/base/tree.html.haml +14 -0
- data/app/views/admin/managers/edit.html.haml +11 -0
- data/app/views/admin/managers/index.html.haml +17 -0
- data/{lib/generators/redde/layout/templates/base → app/views/admin/redde}/_header.html.haml +5 -6
- data/app/views/admin/redde/_main_menu.html.haml +12 -0
- data/app/views/admin/redde/_page_header.html.haml +3 -0
- data/app/views/admin/redde/_sidebar.html.haml +16 -0
- data/{lib/generators/redde/layout/templates/base → app/views/admin/redde}/_validate.haml +2 -2
- data/app/views/admin/redde_photos/_photo.haml +11 -0
- data/app/views/admin/redde_photos/_photos.haml +28 -0
- data/app/views/admin/system_commands/index.html.haml +25 -0
- data/app/views/kaminari/redde/_first_page.html.haml +9 -0
- data/app/views/kaminari/redde/_gap.html.haml +8 -0
- data/app/views/kaminari/redde/_last_page.html.haml +9 -0
- data/app/views/kaminari/redde/_next_page.html.haml +9 -0
- data/app/views/kaminari/redde/_page.html.haml +10 -0
- data/app/views/kaminari/redde/_paginator.html.haml +18 -0
- data/app/views/kaminari/redde/_prev_page.html.haml +9 -0
- data/{lib/generators/redde/layout/templates → app/views}/layouts/admin.html.haml +28 -29
- data/{lib/generators/redde/layout/templates → app/views}/layouts/login.html.haml +32 -32
- data/bin/rails +12 -0
- data/config/locales/paginate.ru.yml +9 -0
- data/config/routes.rb +8 -0
- data/db/migrate/20160121152706_create_redde_photos.rb +16 -0
- data/lib/generators/redde/layout/layout_generator.rb +3 -26
- data/lib/generators/redde/layout/templates/assets/javascripts/admin.js +1 -0
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin.css +15 -0
- data/lib/generators/redde/scaffold/scaffold_generator.rb +45 -8
- data/lib/generators/redde/scaffold/templates/controllers/controller.rb +2 -45
- data/lib/generators/redde/scaffold/templates/edit.html.haml +4 -9
- data/lib/generators/redde/scaffold/templates/index.html.haml +2 -6
- data/lib/generators/redde/scaffold/templates/ru.yml +14 -0
- data/lib/redde/engine.rb +16 -0
- data/lib/redde/version.rb +1 -1
- data/lib/redde.rb +20 -4
- data/lib/tasks/redde_tasks.rake +4 -0
- data/redde.gemspec +44 -22
- metadata +482 -455
- data/Guardfile +0 -24
- data/LICIENSE.md +0 -21
- data/lib/generators/redde/layout/templates/assets/images/admin/del.png +0 -0
- data/lib/generators/redde/layout/templates/assets/images/admin/folder_.png +0 -0
- data/lib/generators/redde/layout/templates/assets/javascripts/admin/index.js +0 -20
- data/lib/generators/redde/layout/templates/assets/redactor/javascripts/redactor/index.coffee +0 -4
- data/lib/generators/redde/layout/templates/assets/redactor/stylesheets/redactor/index.scss +0 -369
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/error-msg.sass +0 -47
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/notice.scss +0 -39
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/photos.scss +0 -31
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/sortable.sass +0 -44
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/custom/index.scss +0 -1
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/defaults/index.scss +0 -131
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/defaults/input.sass +0 -35
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/defaults/reset.sass +0 -33
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/defaults/table.scss +0 -24
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/index.scss +0 -6
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/header.sass +0 -50
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/launchbar.sass +0 -23
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/main.sass +0 -38
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/page-header.sass +0 -22
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/page-sidebar.sass +0 -24
- data/lib/generators/redde/layout/templates/base/_launchbar.html.haml +0 -11
- data/lib/generators/redde/layout/templates/base/_sidebar.html.haml +0 -14
- data/lib/generators/redde/layout/templates/controllers/base_controller.rb +0 -28
- data/lib/generators/redde/layout/templates/form_builders/redde_form_builder.rb +0 -63
- data/lib/generators/redde/layout/templates/helpers/admin_helper.rb +0 -94
- data/lib/generators/redde/photo/photo_generator.rb +0 -35
- data/lib/generators/redde/photo/templates/controller.rb +0 -20
- data/lib/generators/redde/photo/templates/create_photos.rb +0 -16
- data/lib/generators/redde/photo/templates/photo.rb +0 -4
- data/lib/generators/redde/photo/templates/photos/_photo.haml +0 -5
- data/lib/generators/redde/photo/templates/photos/_photos.haml +0 -19
- data/lib/generators/redde/photo/templates/photos/create.js.erb +0 -1
- data/lib/redde/concerns/photoable.rb +0 -17
- data/spec/dummy/.rspec +0 -1
- data/spec/dummy/README.rdoc +0 -28
- data/spec/dummy/Rakefile +0 -6
- data/spec/dummy/app/assets/images/admin/addphoto.png +0 -0
- data/spec/dummy/app/assets/images/admin/ajaxloader2.gif +0 -0
- data/spec/dummy/app/assets/images/admin/arrow_down.png +0 -0
- data/spec/dummy/app/assets/images/admin/arrow_enter.png +0 -0
- data/spec/dummy/app/assets/images/admin/arrow_right.png +0 -0
- data/spec/dummy/app/assets/images/admin/coins.png +0 -0
- data/spec/dummy/app/assets/images/admin/confirm.png +0 -0
- data/spec/dummy/app/assets/images/admin/del.png +0 -0
- data/spec/dummy/app/assets/images/admin/delete.png +0 -0
- data/spec/dummy/app/assets/images/admin/email.png +0 -0
- data/spec/dummy/app/assets/images/admin/error-label-triangle.png +0 -0
- data/spec/dummy/app/assets/images/admin/error.png +0 -0
- data/spec/dummy/app/assets/images/admin/favicon.png +0 -0
- data/spec/dummy/app/assets/images/admin/fio.png +0 -0
- data/spec/dummy/app/assets/images/admin/folder.png +0 -0
- data/spec/dummy/app/assets/images/admin/folder_.png +0 -0
- data/spec/dummy/app/assets/images/admin/icon_eye.gif +0 -0
- data/spec/dummy/app/assets/images/admin/lightbox/css/jquery.lightbox-0.5.css +0 -101
- data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-blank.gif +0 -0
- data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-btn-close.gif +0 -0
- data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-btn-next.gif +0 -0
- data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-btn-prev.gif +0 -0
- data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-ico-loading.gif +0 -0
- data/spec/dummy/app/assets/images/admin/lightbox/js/jquery.js +0 -32
- data/spec/dummy/app/assets/images/admin/lightbox/js/jquery.lightbox-0.5.js +0 -477
- data/spec/dummy/app/assets/images/admin/lightbox/js/jquery.lightbox-0.5.min.js +0 -42
- data/spec/dummy/app/assets/images/admin/lightbox/js/jquery.lightbox-0.5.pack.js +0 -14
- data/spec/dummy/app/assets/images/admin/logo.png +0 -0
- data/spec/dummy/app/assets/images/admin/logo_reddeshop.png +0 -0
- data/spec/dummy/app/assets/images/admin/move_handler.png +0 -0
- data/spec/dummy/app/assets/images/admin/phone.png +0 -0
- data/spec/dummy/app/assets/images/admin/photo_ico.png +0 -0
- data/spec/dummy/app/assets/images/admin/print.png +0 -0
- data/spec/dummy/app/assets/images/admin/refresh.png +0 -0
- data/spec/dummy/app/assets/images/admin/submit.png +0 -0
- data/spec/dummy/app/assets/images/admin/submit_hover.png +0 -0
- data/spec/dummy/app/assets/images/admin/view.png +0 -0
- data/spec/dummy/app/assets/images/admin/view_mk.png +0 -0
- data/spec/dummy/app/assets/images/redactor/icons.png +0 -0
- data/spec/dummy/app/assets/images/redactor/plugins/file.html +0 -3
- data/spec/dummy/app/assets/images/redactor/plugins/image.html +0 -39
- data/spec/dummy/app/assets/images/redactor/plugins/image_edit.html +0 -35
- data/spec/dummy/app/assets/images/redactor/plugins/link.html +0 -74
- data/spec/dummy/app/assets/images/redactor/plugins/table.html +0 -25
- data/spec/dummy/app/assets/images/redactor/plugins/video.html +0 -15
- data/spec/dummy/app/assets/javascripts/admin/jquery.mjs.nestedSortable.js +0 -429
- data/spec/dummy/app/assets/javascripts/admin.js +0 -21
- data/spec/dummy/app/assets/javascripts/application.js +0 -14
- data/spec/dummy/app/assets/javascripts/jquery-migrate-1.2.1.js +0 -521
- data/spec/dummy/app/assets/javascripts/redactor/langs/en.js +0 -76
- data/spec/dummy/app/assets/javascripts/redactor/langs/ru.js +0 -75
- data/spec/dummy/app/assets/javascripts/redactor/redactor.js.erb +0 -2248
- data/spec/dummy/app/assets/javascripts/redactor/toolbars/default.js +0 -219
- data/spec/dummy/app/assets/stylesheets/admin/blocks/list.scss +0 -22
- data/spec/dummy/app/assets/stylesheets/admin/blocks/notice.scss +0 -39
- data/spec/dummy/app/assets/stylesheets/admin/blocks/orders.scss +0 -22
- data/spec/dummy/app/assets/stylesheets/admin/blocks/paginate.sass +0 -28
- data/spec/dummy/app/assets/stylesheets/admin/blocks/pagination.scss +0 -28
- data/spec/dummy/app/assets/stylesheets/admin/blocks/partners.scss +0 -15
- data/spec/dummy/app/assets/stylesheets/admin/blocks/phead-tabs.sass +0 -27
- data/spec/dummy/app/assets/stylesheets/admin/blocks/photos.scss +0 -31
- data/spec/dummy/app/assets/stylesheets/admin/blocks/sortable.sass +0 -44
- data/spec/dummy/app/assets/stylesheets/admin/custom/index.scss +0 -1
- data/spec/dummy/app/assets/stylesheets/admin/defaults/index.scss +0 -131
- data/spec/dummy/app/assets/stylesheets/admin/defaults/input.sass +0 -35
- data/spec/dummy/app/assets/stylesheets/admin/defaults/reset.sass +0 -33
- data/spec/dummy/app/assets/stylesheets/admin/defaults/table.scss +0 -24
- data/spec/dummy/app/assets/stylesheets/admin/index.scss +0 -6
- data/spec/dummy/app/assets/stylesheets/admin/layouts/header.sass +0 -50
- data/spec/dummy/app/assets/stylesheets/admin/layouts/launchbar.sass +0 -23
- data/spec/dummy/app/assets/stylesheets/admin/layouts/login.sass +0 -25
- data/spec/dummy/app/assets/stylesheets/admin/layouts/main.sass +0 -38
- data/spec/dummy/app/assets/stylesheets/admin/layouts/page-header.sass +0 -22
- data/spec/dummy/app/assets/stylesheets/admin/layouts/page-sidebar.sass +0 -24
- data/spec/dummy/app/assets/stylesheets/admin/layouts/sidebar.sass +0 -30
- data/spec/dummy/app/assets/stylesheets/admin/shop/_filter.scss +0 -16
- data/spec/dummy/app/assets/stylesheets/admin/shop/_order-sh.scss +0 -59
- data/spec/dummy/app/assets/stylesheets/admin/shop/_pe.scss +0 -43
- data/spec/dummy/app/assets/stylesheets/redactor/wym.css +0 -136
- data/spec/dummy/app/controllers/admin/base_controller.rb +0 -28
- data/spec/dummy/app/controllers/admin/managers_controller.rb +0 -36
- data/spec/dummy/app/controllers/application_controller.rb +0 -6
- data/spec/dummy/app/controllers/articles_controller.rb +0 -8
- data/spec/dummy/app/controllers/managers/registrations_controller.rb +0 -21
- data/spec/dummy/app/helpers/admin_helper.rb +0 -94
- data/spec/dummy/app/models/article.rb +0 -4
- data/spec/dummy/app/models/article_category.rb +0 -2
- data/spec/dummy/app/models/photo.rb +0 -3
- data/spec/dummy/app/views/admin/base/_header.html.haml +0 -12
- data/spec/dummy/app/views/admin/base/_launchbar.html.haml +0 -11
- data/spec/dummy/app/views/admin/base/_sidebar.html.haml +0 -14
- data/spec/dummy/app/views/admin/base/_validate.haml +0 -8
- data/spec/dummy/app/views/admin/base/welcome.haml +0 -2
- data/spec/dummy/app/views/admin/photos/_photo.haml +0 -5
- data/spec/dummy/app/views/admin/photos/_photos.haml +0 -19
- data/spec/dummy/app/views/admin/photos/create.js.erb +0 -1
- data/spec/dummy/app/views/admin/photos/destroy.js.erb +0 -1
- data/spec/dummy/app/views/articles/show.html.haml +0 -2
- data/spec/dummy/app/views/layouts/admin.html.haml +0 -29
- data/spec/dummy/app/views/layouts/application.html.erb +0 -15
- data/spec/dummy/app/views/layouts/login.html.haml +0 -32
- data/spec/dummy/bin/bundle +0 -3
- data/spec/dummy/bin/rails +0 -4
- data/spec/dummy/bin/rake +0 -4
- data/spec/dummy/config/application.rb +0 -33
- data/spec/dummy/config/boot.rb +0 -5
- data/spec/dummy/config/database.yml +0 -25
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -29
- data/spec/dummy/config/environments/production.rb +0 -80
- data/spec/dummy/config/environments/test.rb +0 -36
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/dummy/config/initializers/inflections.rb +0 -16
- data/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/spec/dummy/config/initializers/secret_token.rb +0 -12
- data/spec/dummy/config/initializers/session_store.rb +0 -3
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/en.yml +0 -36
- data/spec/dummy/config/routes.rb +0 -4
- data/spec/dummy/config.ru +0 -4
- data/spec/dummy/db/migrate/20130908123351_create_articles.rb +0 -9
- data/spec/dummy/db/migrate/20140128152208_create_article_categories.rb +0 -11
- data/spec/dummy/db/migrate/20140607122532_create_photos.rb +0 -16
- data/spec/dummy/db/schema.rb +0 -98
- data/spec/dummy/public/404.html +0 -58
- data/spec/dummy/public/422.html +0 -58
- data/spec/dummy/public/500.html +0 -57
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/generators/layout_generator_spec.rb +0 -42
- data/spec/generators/photo_generator_spec.rb +0 -32
- data/spec/generators/scaffold_generator_spec.rb +0 -58
- data/spec/models/sluggable_spec.rb +0 -42
- data/spec/models/url_generator_spec.rb +0 -18
- data/spec/models/with_photo_spec.rb +0 -25
- data/spec/spec_helper.rb +0 -52
- /data/{lib/generators/redde/layout/templates/assets/redactor → app/assets}/images/.keep +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/addphoto.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/ajaxloader2.gif +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/arrow_down.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/arrow_enter.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/arrow_right.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/coins.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/confirm.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/delete.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/email.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/error.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/favicon.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/fio.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/icon_eye.gif +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/css/jquery.lightbox-0.5.css +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-blank.gif +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-btn-close.gif +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-btn-next.gif +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-btn-prev.gif +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-ico-loading.gif +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/js/jquery.js +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/js/jquery.lightbox-0.5.js +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/js/jquery.lightbox-0.5.min.js +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/js/jquery.lightbox-0.5.pack.js +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/logo_reddeshop.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/phone.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/photo_ico.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/print.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/refresh.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/submit.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/submit_hover.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/view.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/view_mk.png +0 -0
- /data/{lib/generators/redde/layout/templates/assets/images/admin → app/assets/images/redde}/error-label-triangle.png +0 -0
- /data/{lib/generators/redde/layout/templates/assets/images/admin → app/assets/images/redde}/folder.png +0 -0
- /data/{lib/generators/redde/layout/templates/assets/images/admin → app/assets/images/redde}/logo.png +0 -0
- /data/{lib/generators/redde/layout/templates/assets/images/admin/move_handler.png → app/assets/images/redde/move-handler.png} +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/icons.png +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/file.html +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/image.html +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/image_edit.html +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/link.html +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/table.html +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/video.html +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/javascripts → app/assets/javascripts/redde}/redactor/langs/en.js +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/javascripts → app/assets/javascripts/redde}/redactor/langs/ru.js +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/javascripts → app/assets/javascripts/redde}/redactor/toolbars/default.js +0 -0
- /data/{lib/generators/redde/layout/templates/assets/javascripts/admin → app/assets/javascripts/redde/sortTree}/jquery.mjs.nestedSortable.js +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/list.scss +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/orders.scss +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/paginate.sass +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/pagination.scss +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/partners.scss +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/phead-tabs.sass +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/layouts/login.sass +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/layouts/sidebar.sass +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/stylesheets → app/assets/stylesheets/redde}/redactor/wym.css +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/shop/_filter.scss +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/shop/_order-sh.scss +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/shop/_pe.scss +0 -0
- /data/{spec/dummy/app/assets/images → app/controllers}/.keep +0 -0
- /data/{lib/generators/redde/layout/templates → app}/controllers/managers/registrations_controller.rb +0 -0
- /data/{spec/dummy/app/models → app/helpers}/.keep +0 -0
- /data/{spec/dummy/lib/assets → app/mailers}/.keep +0 -0
- /data/{spec/dummy/log → app/models}/.keep +0 -0
- /data/{spec/dummy/app/assets/stylesheets/application.css.scss → app/views/.keep} +0 -0
- /data/{lib/generators/redde/layout/templates → app/views/admin}/base/welcome.haml +0 -0
- /data/{lib/generators/redde/photo/templates/photos → app/views/admin/redde_photos}/destroy.js.erb +0 -0
@@ -1,13 +1,15 @@
|
|
1
1
|
/*!
|
2
|
-
* jQuery Migrate - v1.
|
3
|
-
*
|
4
|
-
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors; Licensed MIT
|
2
|
+
* jQuery Migrate - v1.3.0 - 2016-01-13
|
3
|
+
* Copyright jQuery Foundation and other contributors
|
5
4
|
*/
|
6
5
|
(function( jQuery, window, undefined ) {
|
7
6
|
// See http://bugs.jquery.com/ticket/13335
|
8
7
|
// "use strict";
|
9
8
|
|
10
9
|
|
10
|
+
jQuery.migrateVersion = "1.3.0";
|
11
|
+
|
12
|
+
|
11
13
|
var warnedAbout = {};
|
12
14
|
|
13
15
|
// List of warnings already given; public read only
|
@@ -152,7 +154,7 @@ jQuery.attr = function( elem, name, value, pass ) {
|
|
152
154
|
|
153
155
|
// Warn only for attributes that can remain distinct from their properties post-1.9
|
154
156
|
if ( ruseDefault.test( lowerName ) ) {
|
155
|
-
migrateWarn( "jQuery.fn.attr('" + lowerName + "')
|
157
|
+
migrateWarn( "jQuery.fn.attr('" + lowerName + "') might use property instead of attribute" );
|
156
158
|
}
|
157
159
|
}
|
158
160
|
|
@@ -190,22 +192,24 @@ jQuery.attrHooks.value = {
|
|
190
192
|
var matched, browser,
|
191
193
|
oldInit = jQuery.fn.init,
|
192
194
|
oldParseJSON = jQuery.parseJSON,
|
195
|
+
rspaceAngle = /^\s*</,
|
193
196
|
// Note: XSS check is done below after string is trimmed
|
194
197
|
rquickExpr = /^([^<]*)(<[\w\W]+>)([^>]*)$/;
|
195
198
|
|
196
199
|
// $(html) "looks like html" rule change
|
197
200
|
jQuery.fn.init = function( selector, context, rootjQuery ) {
|
198
|
-
var match;
|
201
|
+
var match, ret;
|
199
202
|
|
200
203
|
if ( selector && typeof selector === "string" && !jQuery.isPlainObject( context ) &&
|
201
204
|
(match = rquickExpr.exec( jQuery.trim( selector ) )) && match[ 0 ] ) {
|
202
205
|
// This is an HTML string according to the "old" rules; is it still?
|
203
|
-
if (
|
206
|
+
if ( !rspaceAngle.test( selector ) ) {
|
204
207
|
migrateWarn("$(html) HTML strings must start with '<' character");
|
205
208
|
}
|
206
209
|
if ( match[ 3 ] ) {
|
207
210
|
migrateWarn("$(html) HTML text after last tag is ignored");
|
208
211
|
}
|
212
|
+
|
209
213
|
// Consistently reject any HTML-like string starting with a hash (#9521)
|
210
214
|
// Note that this may break jQuery 1.6.x code that otherwise would work.
|
211
215
|
if ( match[ 0 ].charAt( 0 ) === "#" ) {
|
@@ -218,17 +222,40 @@ jQuery.fn.init = function( selector, context, rootjQuery ) {
|
|
218
222
|
context = context.context;
|
219
223
|
}
|
220
224
|
if ( jQuery.parseHTML ) {
|
221
|
-
return oldInit.call( this,
|
222
|
-
|
225
|
+
return oldInit.call( this,
|
226
|
+
jQuery.parseHTML( match[ 2 ], context && context.ownerDocument ||
|
227
|
+
context || document, true ), context, rootjQuery );
|
228
|
+
}
|
229
|
+
}
|
230
|
+
|
231
|
+
// jQuery( "#" ) is a bogus ID selector, but it returned an empty set before jQuery 3.0
|
232
|
+
if ( selector === "#" ) {
|
233
|
+
migrateWarn( "jQuery( '#' ) is not a valid selector" );
|
234
|
+
selector = [];
|
235
|
+
}
|
236
|
+
|
237
|
+
ret = oldInit.apply( this, arguments );
|
238
|
+
|
239
|
+
// Fill in selector and context properties so .live() works
|
240
|
+
if ( selector && selector.selector !== undefined ) {
|
241
|
+
// A jQuery object, copy its properties
|
242
|
+
ret.selector = selector.selector;
|
243
|
+
ret.context = selector.context;
|
244
|
+
|
245
|
+
} else {
|
246
|
+
ret.selector = typeof selector === "string" ? selector : "";
|
247
|
+
if ( selector ) {
|
248
|
+
ret.context = selector.nodeType? selector : context || document;
|
223
249
|
}
|
224
250
|
}
|
225
|
-
|
251
|
+
|
252
|
+
return ret;
|
226
253
|
};
|
227
254
|
jQuery.fn.init.prototype = jQuery.fn;
|
228
255
|
|
229
256
|
// Let $.parseJSON(falsy_value) return null
|
230
257
|
jQuery.parseJSON = function( json ) {
|
231
|
-
if ( !json
|
258
|
+
if ( !json ) {
|
232
259
|
migrateWarn("jQuery.parseJSON requires a valid JSON string");
|
233
260
|
return null;
|
234
261
|
}
|
@@ -274,6 +301,11 @@ if ( !jQuery.browser ) {
|
|
274
301
|
// Warn if the code tries to get jQuery.browser
|
275
302
|
migrateWarnProp( jQuery, "browser", jQuery.browser, "jQuery.browser is deprecated" );
|
276
303
|
|
304
|
+
// jQuery.boxModel deprecated in 1.3, jQuery.support.boxModel deprecated in 1.7
|
305
|
+
jQuery.boxModel = jQuery.support.boxModel = (document.compatMode === "CSS1Compat");
|
306
|
+
migrateWarnProp( jQuery, "boxModel", jQuery.boxModel, "jQuery.boxModel is deprecated" );
|
307
|
+
migrateWarnProp( jQuery.support, "boxModel", jQuery.support.boxModel, "jQuery.support.boxModel is deprecated" );
|
308
|
+
|
277
309
|
jQuery.sub = function() {
|
278
310
|
function jQuerySub( selector, context ) {
|
279
311
|
return new jQuerySub.fn.init( selector, context );
|
@@ -284,11 +316,10 @@ jQuery.sub = function() {
|
|
284
316
|
jQuerySub.fn.constructor = jQuerySub;
|
285
317
|
jQuerySub.sub = this.sub;
|
286
318
|
jQuerySub.fn.init = function init( selector, context ) {
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
return jQuery.fn.init.call( this, selector, context, rootjQuerySub );
|
319
|
+
var instance = jQuery.fn.init.call( this, selector, context, rootjQuerySub );
|
320
|
+
return instance instanceof jQuerySub ?
|
321
|
+
instance :
|
322
|
+
jQuerySub( instance );
|
292
323
|
};
|
293
324
|
jQuerySub.fn.init.prototype = jQuerySub.fn;
|
294
325
|
var rootjQuerySub = jQuerySub(document);
|
@@ -296,6 +327,57 @@ jQuery.sub = function() {
|
|
296
327
|
return jQuerySub;
|
297
328
|
};
|
298
329
|
|
330
|
+
// The number of elements contained in the matched element set
|
331
|
+
jQuery.fn.size = function() {
|
332
|
+
migrateWarn( "jQuery.fn.size() is deprecated; use the .length property" );
|
333
|
+
return this.length;
|
334
|
+
};
|
335
|
+
|
336
|
+
|
337
|
+
var internalSwapCall = false;
|
338
|
+
|
339
|
+
// If this version of jQuery has .swap(), don't false-alarm on internal uses
|
340
|
+
if ( jQuery.swap ) {
|
341
|
+
jQuery.each( [ "height", "width", "reliableMarginRight" ], function( _, name ) {
|
342
|
+
var oldHook = jQuery.cssHooks[ name ] && jQuery.cssHooks[ name ].get;
|
343
|
+
|
344
|
+
if ( oldHook ) {
|
345
|
+
jQuery.cssHooks[ name ].get = function() {
|
346
|
+
var ret;
|
347
|
+
|
348
|
+
internalSwapCall = true;
|
349
|
+
ret = oldHook.apply( this, arguments );
|
350
|
+
internalSwapCall = false;
|
351
|
+
return ret;
|
352
|
+
};
|
353
|
+
}
|
354
|
+
});
|
355
|
+
}
|
356
|
+
|
357
|
+
jQuery.swap = function( elem, options, callback, args ) {
|
358
|
+
var ret, name,
|
359
|
+
old = {};
|
360
|
+
|
361
|
+
if ( !internalSwapCall ) {
|
362
|
+
migrateWarn( "jQuery.swap() is undocumented and deprecated" );
|
363
|
+
}
|
364
|
+
|
365
|
+
// Remember the old values, and insert the new ones
|
366
|
+
for ( name in options ) {
|
367
|
+
old[ name ] = elem.style[ name ];
|
368
|
+
elem.style[ name ] = options[ name ];
|
369
|
+
}
|
370
|
+
|
371
|
+
ret = callback.apply( elem, args || [] );
|
372
|
+
|
373
|
+
// Revert the old values
|
374
|
+
for ( name in options ) {
|
375
|
+
elem.style[ name ] = old[ name ];
|
376
|
+
}
|
377
|
+
|
378
|
+
return ret;
|
379
|
+
};
|
380
|
+
|
299
381
|
|
300
382
|
// Ensure that $.ajax gets the new parseJSON defined in core.js
|
301
383
|
jQuery.ajaxSetup({
|
@@ -324,13 +406,7 @@ jQuery.fn.data = function( name ) {
|
|
324
406
|
};
|
325
407
|
|
326
408
|
|
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
|
-
};
|
409
|
+
var rscriptType = /\/(java|ecma)script/i;
|
334
410
|
|
335
411
|
// Since jQuery.clean is used internally on older versions, we only shim if it's missing
|
336
412
|
if ( !jQuery.clean ) {
|
@@ -388,6 +464,7 @@ var eventAdd = jQuery.event.add,
|
|
388
464
|
oldToggle = jQuery.fn.toggle,
|
389
465
|
oldLive = jQuery.fn.live,
|
390
466
|
oldDie = jQuery.fn.die,
|
467
|
+
oldLoad = jQuery.fn.load,
|
391
468
|
ajaxEvents = "ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",
|
392
469
|
rajaxEvent = new RegExp( "\\b(?:" + ajaxEvents + ")\\b" ),
|
393
470
|
rhoverHack = /(?:^|\s)hover(\.\S+|)\b/,
|
@@ -422,17 +499,34 @@ jQuery.event.remove = function( elem, types, handler, selector, mappedTypes ){
|
|
422
499
|
eventRemove.call( this, elem, hoverHack( types ) || "", handler, selector, mappedTypes );
|
423
500
|
};
|
424
501
|
|
425
|
-
jQuery.
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
502
|
+
jQuery.each( [ "load", "unload", "error" ], function( _, name ) {
|
503
|
+
|
504
|
+
jQuery.fn[ name ] = function() {
|
505
|
+
var args = Array.prototype.slice.call( arguments, 0 );
|
506
|
+
migrateWarn( "jQuery.fn." + name + "() is deprecated" );
|
507
|
+
|
508
|
+
// If this is an ajax load() the first arg should be the string URL;
|
509
|
+
// technically this could also be the "Anything" arg of the event .load()
|
510
|
+
// which just goes to show why this dumb signature has been deprecated!
|
511
|
+
// jQuery custom builds that exclude the Ajax module justifiably die here.
|
512
|
+
if ( name === "load" && typeof arguments[ 0 ] === "string" ) {
|
513
|
+
return oldLoad.apply( this, arguments );
|
514
|
+
}
|
515
|
+
|
516
|
+
args.splice( 0, 0, name );
|
517
|
+
if ( arguments.length ) {
|
518
|
+
return this.bind.apply( this, args );
|
519
|
+
}
|
520
|
+
|
521
|
+
// Use .triggerHandler here because:
|
522
|
+
// - load and unload events don't need to bubble, only applied to window or image
|
523
|
+
// - error event should not bubble to window, although it does pre-1.7
|
524
|
+
// See http://bugs.jquery.com/ticket/11820
|
525
|
+
this.triggerHandler.apply( this, args );
|
526
|
+
return this;
|
527
|
+
};
|
528
|
+
|
529
|
+
});
|
436
530
|
|
437
531
|
jQuery.fn.toggle = function( fn, fn2 ) {
|
438
532
|
|
@@ -501,7 +595,7 @@ jQuery.each( ajaxEvents.split("|"),
|
|
501
595
|
// The document needs no shimming; must be !== for oldIE
|
502
596
|
if ( elem !== document ) {
|
503
597
|
jQuery.event.add( document, name + "." + jQuery.guid, function() {
|
504
|
-
jQuery.event.trigger( name,
|
598
|
+
jQuery.event.trigger( name, Array.prototype.slice.call( arguments, 1 ), elem, true );
|
505
599
|
});
|
506
600
|
jQuery._data( this, name, jQuery.guid++ );
|
507
601
|
}
|
@@ -517,5 +611,92 @@ jQuery.each( ajaxEvents.split("|"),
|
|
517
611
|
}
|
518
612
|
);
|
519
613
|
|
614
|
+
jQuery.event.special.ready = {
|
615
|
+
setup: function() { migrateWarn( "'ready' event is deprecated" ); }
|
616
|
+
};
|
617
|
+
|
618
|
+
var oldSelf = jQuery.fn.andSelf || jQuery.fn.addBack,
|
619
|
+
oldFind = jQuery.fn.find;
|
620
|
+
|
621
|
+
jQuery.fn.andSelf = function() {
|
622
|
+
migrateWarn("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()");
|
623
|
+
return oldSelf.apply( this, arguments );
|
624
|
+
};
|
625
|
+
|
626
|
+
jQuery.fn.find = function( selector ) {
|
627
|
+
var ret = oldFind.apply( this, arguments );
|
628
|
+
ret.context = this.context;
|
629
|
+
ret.selector = this.selector ? this.selector + " " + selector : selector;
|
630
|
+
return ret;
|
631
|
+
};
|
632
|
+
|
633
|
+
|
634
|
+
// jQuery 1.6 did not support Callbacks, do not warn there
|
635
|
+
if ( jQuery.Callbacks ) {
|
636
|
+
|
637
|
+
var oldDeferred = jQuery.Deferred,
|
638
|
+
tuples = [
|
639
|
+
// action, add listener, callbacks, .then handlers, final state
|
640
|
+
[ "resolve", "done", jQuery.Callbacks("once memory"),
|
641
|
+
jQuery.Callbacks("once memory"), "resolved" ],
|
642
|
+
[ "reject", "fail", jQuery.Callbacks("once memory"),
|
643
|
+
jQuery.Callbacks("once memory"), "rejected" ],
|
644
|
+
[ "notify", "progress", jQuery.Callbacks("memory"),
|
645
|
+
jQuery.Callbacks("memory") ]
|
646
|
+
];
|
647
|
+
|
648
|
+
jQuery.Deferred = function( func ) {
|
649
|
+
var deferred = oldDeferred(),
|
650
|
+
promise = deferred.promise();
|
651
|
+
|
652
|
+
deferred.pipe = promise.pipe = function( /* fnDone, fnFail, fnProgress */ ) {
|
653
|
+
var fns = arguments;
|
654
|
+
|
655
|
+
migrateWarn( "deferred.pipe() is deprecated" );
|
656
|
+
|
657
|
+
return jQuery.Deferred(function( newDefer ) {
|
658
|
+
jQuery.each( tuples, function( i, tuple ) {
|
659
|
+
var fn = jQuery.isFunction( fns[ i ] ) && fns[ i ];
|
660
|
+
// deferred.done(function() { bind to newDefer or newDefer.resolve })
|
661
|
+
// deferred.fail(function() { bind to newDefer or newDefer.reject })
|
662
|
+
// deferred.progress(function() { bind to newDefer or newDefer.notify })
|
663
|
+
deferred[ tuple[1] ](function() {
|
664
|
+
var returned = fn && fn.apply( this, arguments );
|
665
|
+
if ( returned && jQuery.isFunction( returned.promise ) ) {
|
666
|
+
returned.promise()
|
667
|
+
.done( newDefer.resolve )
|
668
|
+
.fail( newDefer.reject )
|
669
|
+
.progress( newDefer.notify );
|
670
|
+
} else {
|
671
|
+
newDefer[ tuple[ 0 ] + "With" ](
|
672
|
+
this === promise ? newDefer.promise() : this,
|
673
|
+
fn ? [ returned ] : arguments
|
674
|
+
);
|
675
|
+
}
|
676
|
+
});
|
677
|
+
});
|
678
|
+
fns = null;
|
679
|
+
}).promise();
|
680
|
+
|
681
|
+
};
|
682
|
+
|
683
|
+
deferred.isResolved = function() {
|
684
|
+
migrateWarn( "deferred.isResolved is deprecated" );
|
685
|
+
return deferred.state() === "resolved";
|
686
|
+
};
|
687
|
+
|
688
|
+
deferred.isRejected = function() {
|
689
|
+
migrateWarn( "deferred.isRejected is deprecated" );
|
690
|
+
return deferred.state() === "rejected";
|
691
|
+
};
|
692
|
+
|
693
|
+
if ( func ) {
|
694
|
+
func.call( deferred, deferred );
|
695
|
+
}
|
696
|
+
|
697
|
+
return deferred;
|
698
|
+
};
|
699
|
+
|
700
|
+
}
|
520
701
|
|
521
702
|
})( jQuery, window );
|