enjoy_cms 0.3.7.4 → 0.4.0.beta3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.ruby-version +1 -1
- data/Gemfile.lock +62 -111
- data/app/assets/javascripts/{enjoy_cms → enjoy/cms}/flash.coffee +0 -0
- data/app/assets/javascripts/enjoy/cms/init.coffee +1 -0
- data/app/assets/javascripts/{enjoy_cms → enjoy/cms}/map.coffee +0 -0
- data/app/assets/javascripts/enjoy/cms.coffee +11 -0
- data/app/assets/javascripts/enjoy/rails_admin/cms.ui.coffee +26 -0
- data/app/assets/javascripts/{enjoy_cms → enjoy}/rails_admin/custom/ui.coffee +0 -0
- data/app/assets/javascripts/rails_admin/custom/ui.coffee +2 -2
- data/app/assets/stylesheets/{enjoy_cms → enjoy/cms}/flash.sass +0 -0
- data/app/assets/stylesheets/{enjoy_cms → enjoy/cms}/normalize.scss +0 -0
- data/app/assets/stylesheets/{enjoy_cms → enjoy/cms}/powered.sass +0 -0
- data/app/assets/stylesheets/{enjoy_cms.sass → enjoy/cms.sass} +3 -1
- data/app/assets/stylesheets/enjoy/rails_admin/cms.ui.sass +117 -0
- data/{lib/enjoy/controllers/sitemap_data.rb → app/assets/stylesheets/enjoy/rails_admin/custom/ui.sass} +0 -0
- data/app/assets/stylesheets/rails_admin/custom/theming.sass +2 -0
- data/app/controllers/concerns/enjoy/errors.rb +1 -1
- data/app/controllers/enjoy/registrations_controller.rb +20 -0
- data/app/controllers/enjoy/sessions_controller.rb +19 -0
- data/app/helpers/enjoy/home_helper.rb +2 -0
- data/app/helpers/enjoy/powered_helper.rb +1 -1
- data/app/models/concerns/enjoy/html_field.rb +3 -0
- data/app/views/blocks/_favicon.html.slim +60 -21
- data/app/views/devise/registrations/edit.html.slim +2 -2
- data/app/views/devise/registrations/new.html.slim +9 -3
- data/app/views/devise/sessions/new.html.slim +8 -2
- data/app/views/devise/shared/_links.html.slim +4 -4
- data/app/views/{errors → enjoy/errors}/_base.html.slim +0 -0
- data/app/views/{errors → enjoy/errors}/error_403.html.slim +0 -0
- data/app/views/{errors → enjoy/errors}/error_404.html.slim +0 -0
- data/app/views/{errors → enjoy/errors}/error_500.html.slim +0 -0
- data/app/views/{simple_captcha → enjoy/simple_captcha}/_simple_captcha.html.slim +0 -0
- data/app/views/layouts/application.html.slim +8 -4
- data/app/views/layouts/enjoy/devise/confirmations.html.slim +27 -0
- data/app/views/layouts/enjoy/devise/passwords.html.slim +27 -0
- data/app/views/layouts/enjoy/devise/registrations.html.slim +27 -0
- data/app/views/layouts/enjoy/devise/sessions.html.slim +27 -0
- data/app/views/layouts/enjoy/devise/unlocks.html.slim +27 -0
- data/app/views/rails_admin/main/_setting_value.html.haml +104 -0
- data/app/views/shared/_messages.html.slim +1 -1
- data/config/initializers/simple_captcha.rb +29 -20
- data/config/locales/en.enjoy.yml +1 -1
- data/config/locales/ru.enjoy.yml +0 -7
- data/config/locales/ru.models.yml +2 -39
- data/enjoy_cms.gemspec +7 -20
- data/lib/enjoy/configuration.rb +24 -40
- data/lib/enjoy/controller.rb +5 -3
- data/lib/enjoy/engine.rb +28 -28
- data/lib/enjoy/migration.rb +0 -19
- data/lib/enjoy/model.rb +5 -2
- data/lib/enjoy/rails_admin_ext/config.rb +112 -0
- data/lib/enjoy/rails_admin_ext/enjoy_hash.rb +0 -2
- data/lib/enjoy/rails_admin_ext/enjoy_slugs.rb +31 -0
- data/lib/enjoy/rails_admin_ext/group_patch.rb +2 -1
- data/lib/enjoy/rails_admin_settings_patch.rb +7 -0
- data/lib/enjoy/routes.rb +1 -26
- data/lib/enjoy/version.rb +1 -1
- data/lib/enjoy_cms.rb +25 -71
- data/lib/filename_to_slug.rb +20 -22
- data/lib/generators/enjoy/{ability_generator.rb → cms/ability_generator.rb} +3 -3
- data/lib/generators/enjoy/{admin_generator.rb → cms/admin_generator.rb} +2 -2
- data/lib/generators/enjoy/cms/application_generator.rb +14 -0
- data/lib/generators/enjoy/cms/assets_generator.rb +35 -0
- data/lib/generators/enjoy/{config/install_generator.rb → cms/config_generator.rb} +3 -3
- data/lib/generators/enjoy/cms/gemfile_generator.rb +13 -0
- data/lib/generators/enjoy/{layout_generator.rb → cms/layout_generator.rb} +2 -2
- data/lib/generators/enjoy/cms/paperclip_optimizer_generator.rb +13 -0
- data/lib/generators/enjoy/cms/rack_generator.rb +12 -0
- data/lib/generators/enjoy/cms/robots_generator.rb +12 -0
- data/lib/generators/enjoy/cms/scripts_generator.rb +25 -0
- data/lib/generators/enjoy/cms/templates/Gemfile.erb +69 -0
- data/lib/generators/enjoy/cms/templates/ability.erb +45 -0
- data/lib/generators/enjoy/{templates → cms/templates}/admin.erb +5 -26
- data/lib/generators/enjoy/cms/templates/application.erb +42 -0
- data/lib/generators/enjoy/cms/templates/assets/javascripts/application.coffee.erb +1 -0
- data/lib/generators/enjoy/cms/templates/assets/stylesheets/application.sass.erb +15 -0
- data/lib/generators/enjoy/cms/templates/assets/stylesheets/enjoy/rails_admin/custom/ui.sass.erb +106 -0
- data/lib/generators/enjoy/cms/templates/enjoy_cms.erb +28 -0
- data/lib/generators/enjoy/cms/templates/paperclip_optimizer.erb +80 -0
- data/lib/generators/enjoy/cms/templates/rack.erb +15 -0
- data/lib/generators/enjoy/cms/templates/robots.txt.erb +4 -0
- data/lib/generators/enjoy/cms/templates/scripts/assets_precompile.sh +3 -0
- data/lib/generators/enjoy/cms/templates/scripts/bundle_production.sh +4 -0
- data/lib/generators/enjoy/cms/templates/scripts/db_dump.sh.erb +3 -0
- data/lib/generators/enjoy/cms/templates/scripts/db_restore.sh +3 -0
- data/lib/generators/enjoy/cms/templates/scripts/full_assets_precompile.sh +4 -0
- data/lib/generators/enjoy/cms/templates/scripts/restart_thru_kill.sh +3 -0
- data/lib/generators/enjoy/cms/templates/scripts/send_hup.sh +3 -0
- data/lib/generators/enjoy/cms/templates/scripts/send_usr2.sh +3 -0
- data/lib/generators/enjoy/cms/templates/unicorn.erb +57 -0
- data/lib/generators/enjoy/cms/templates/unicorn.god.erb +59 -0
- data/lib/generators/enjoy/cms/unicorn_god_generator.rb +15 -0
- data/lib/generators/enjoy/{utils.rb → cms/utils.rb} +1 -1
- data/lib/rails_admin/custom_show_in_app.rb +13 -13
- data/template.rb +197 -543
- metadata +73 -325
- data/app/assets/javascripts/enjoy_cms/contacts.coffee +0 -11
- data/app/assets/javascripts/enjoy_cms/rails_admin/cms.ui.coffee +0 -6
- data/app/assets/javascripts/enjoy_cms.coffee +0 -7
- data/app/controllers/concerns/enjoy/blocksetable.rb +0 -37
- data/app/controllers/concerns/enjoy/decorators/contacts.rb +0 -5
- data/app/controllers/concerns/enjoy/decorators/news.rb +0 -5
- data/app/controllers/concerns/enjoy/decorators/pages.rb +0 -5
- data/app/controllers/concerns/enjoy/decorators/search.rb +0 -5
- data/app/controllers/concerns/enjoy/nav_menu.rb +0 -91
- data/app/controllers/concerns/enjoy/seo_pages.rb +0 -90
- data/app/controllers/enjoy/contacts_controller.rb +0 -7
- data/app/controllers/enjoy/news_controller.rb +0 -7
- data/app/controllers/enjoy/pages_controller.rb +0 -7
- data/app/controllers/enjoy/search_controller.rb +0 -8
- data/app/mailers/enjoy/contact_mailer.rb +0 -17
- data/app/models/concerns/enjoy/connectable.rb +0 -36
- data/app/models/concerns/enjoy/decorators/contact_message.rb +0 -5
- data/app/models/concerns/enjoy/decorators/embedded_gallery_image.rb +0 -5
- data/app/models/concerns/enjoy/decorators/gallery.rb +0 -5
- data/app/models/concerns/enjoy/decorators/gallery_image.rb +0 -5
- data/app/models/concerns/enjoy/decorators/menu.rb +0 -5
- data/app/models/concerns/enjoy/decorators/news.rb +0 -5
- data/app/models/concerns/enjoy/decorators/page.rb +0 -5
- data/app/models/concerns/enjoy/decorators/page_block.rb +0 -5
- data/app/models/concerns/enjoy/decorators/page_blockset.rb +0 -5
- data/app/models/concerns/enjoy/decorators/seo.rb +0 -5
- data/app/models/concerns/enjoy/decorators/sitemap_data.rb +0 -5
- data/app/models/concerns/enjoy/mongoid_paperclip.rb +0 -51
- data/app/models/concerns/enjoy/seoable.rb +0 -36
- data/app/models/concerns/enjoy/sitemap_data_field.rb +0 -17
- data/app/models/enjoy/contact_message.rb +0 -16
- data/app/models/enjoy/embedded_gallery_image.rb +0 -16
- data/app/models/enjoy/gallery.rb +0 -13
- data/app/models/enjoy/gallery_image.rb +0 -13
- data/app/models/enjoy/menu.rb +0 -16
- data/app/models/enjoy/news.rb +0 -16
- data/app/models/enjoy/page.rb +0 -16
- data/app/models/enjoy/page_block.rb +0 -13
- data/app/models/enjoy/page_blockset.rb +0 -13
- data/app/models/enjoy/seo.rb +0 -16
- data/app/models/enjoy/sitemap_data.rb +0 -16
- data/app/views/enjoy/contact_mailer/new_message_email.html.slim +0 -15
- data/app/views/enjoy/contacts/_form.html.slim +0 -7
- data/app/views/enjoy/contacts/_form_with_wrapper.html.slim +0 -2
- data/app/views/enjoy/contacts/_success.html.slim +0 -3
- data/app/views/enjoy/contacts/index.html.slim +0 -4
- data/app/views/enjoy/contacts/new.html.slim +0 -4
- data/app/views/enjoy/contacts/sent.html.slim +0 -3
- data/app/views/enjoy/news/index.html.slim +0 -9
- data/app/views/enjoy/news/show.html.slim +0 -8
- data/app/views/enjoy/pages/show.html.slim +0 -1
- data/app/views/enjoy/search/index.html.slim +0 -19
- data/app/views/rails_admin/main/_enjoy_connectable.html.slim +0 -56
- data/config/locales/ru.kaminari.yml +0 -17
- data/config/locales/ru.simple_captcha.yml +0 -3
- data/config/locales/ru.simple_form.yml +0 -9
- data/lib/enjoy/admin/contact_message.rb +0 -42
- data/lib/enjoy/admin/embedded_gallery_image.rb +0 -38
- data/lib/enjoy/admin/gallery.rb +0 -44
- data/lib/enjoy/admin/gallery_image.rb +0 -31
- data/lib/enjoy/admin/menu.rb +0 -27
- data/lib/enjoy/admin/news.rb +0 -89
- data/lib/enjoy/admin/page.rb +0 -96
- data/lib/enjoy/admin/page_block.rb +0 -49
- data/lib/enjoy/admin/page_blockset.rb +0 -50
- data/lib/enjoy/admin/seo.rb +0 -41
- data/lib/enjoy/admin/sitemap_data.rb +0 -29
- data/lib/enjoy/controllers/contacts.rb +0 -86
- data/lib/enjoy/controllers/news.rb +0 -36
- data/lib/enjoy/controllers/pages.rb +0 -22
- data/lib/enjoy/controllers/search.rb +0 -62
- data/lib/enjoy/elastic_search.rb +0 -31
- data/lib/enjoy/models/active_record/contact_message.rb +0 -14
- data/lib/enjoy/models/active_record/menu.rb +0 -17
- data/lib/enjoy/models/active_record/news.rb +0 -26
- data/lib/enjoy/models/active_record/page.rb +0 -20
- data/lib/enjoy/models/active_record/seo.rb +0 -17
- data/lib/enjoy/models/active_record/sitemap_data.rb +0 -11
- data/lib/enjoy/models/contact_message.rb +0 -41
- data/lib/enjoy/models/embedded_gallery_image.rb +0 -13
- data/lib/enjoy/models/gallery.rb +0 -21
- data/lib/enjoy/models/gallery_image.rb +0 -19
- data/lib/enjoy/models/menu.rb +0 -23
- data/lib/enjoy/models/mongoid/contact_message.rb +0 -23
- data/lib/enjoy/models/mongoid/embedded_gallery_image.rb +0 -24
- data/lib/enjoy/models/mongoid/gallery.rb +0 -32
- data/lib/enjoy/models/mongoid/gallery_image.rb +0 -29
- data/lib/enjoy/models/mongoid/menu.rb +0 -20
- data/lib/enjoy/models/mongoid/news.rb +0 -37
- data/lib/enjoy/models/mongoid/page.rb +0 -49
- data/lib/enjoy/models/mongoid/page_block.rb +0 -56
- data/lib/enjoy/models/mongoid/page_blockset.rb +0 -20
- data/lib/enjoy/models/mongoid/seo.rb +0 -35
- data/lib/enjoy/models/mongoid/sitemap_data.rb +0 -25
- data/lib/enjoy/models/news.rb +0 -58
- data/lib/enjoy/models/page.rb +0 -92
- data/lib/enjoy/models/page_block.rb +0 -22
- data/lib/enjoy/models/page_blockset.rb +0 -24
- data/lib/enjoy/models/seo.rb +0 -17
- data/lib/enjoy/models/sitemap_data.rb +0 -17
- data/lib/enjoy/rails_admin_ext/enjoy_connectable.rb +0 -33
- data/lib/enjoy/rails_admin_ext/menu.rb +0 -147
- data/lib/generators/enjoy/capify_generator.rb +0 -39
- data/lib/generators/enjoy/config/templates/enjoy_cms.erb +0 -27
- data/lib/generators/enjoy/migration_generator.rb +0 -18
- data/lib/generators/enjoy/templates/Capfile +0 -17
- data/lib/generators/enjoy/templates/ability.erb +0 -48
- data/lib/generators/enjoy/templates/deploy.erb +0 -47
- data/lib/generators/enjoy/templates/dl.erb +0 -30
- data/lib/generators/enjoy/templates/migration_contact_messages.rb +0 -15
- data/lib/generators/enjoy/templates/migration_news.rb +0 -26
- data/lib/generators/enjoy/templates/migration_pages.rb +0 -45
- data/lib/generators/enjoy/templates/migration_seos.rb +0 -14
- data/lib/generators/enjoy/templates/production.erb +0 -8
- data/lib/generators/enjoy/templates/unicorn.erb +0 -66
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a5d6147bb0eb040d5049c6ec15332854109a4bb
|
4
|
+
data.tar.gz: ac05ab418b17b705a7541eb7b8ca7e2819445495
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1122136245369984ddb261ea6d1d3092eda5a8dab2d07367b2c1bf5f89767c35c173e7aaa66d1b85215563129f0bc6a1a650073316d9b2151bf26c764e579a6b
|
7
|
+
data.tar.gz: f0405c8bc242b332325098247b6c88fd5df0ed3fea92c0afaf70b8997106afd73a4f8df1121e5a29776e4a20cb60838356dba3b822e6df3680507fb2a9f8e6ee
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.3.1
|
data/Gemfile.lock
CHANGED
@@ -1,79 +1,60 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
enjoy_cms (0.
|
5
|
-
ack_rails_admin_jcrop
|
6
|
-
addressable
|
4
|
+
enjoy_cms (0.4.0.beta3)
|
7
5
|
ckeditor
|
8
6
|
coffee-rails
|
9
7
|
devise
|
10
8
|
geocoder
|
11
|
-
glebtv-simple_captcha
|
12
9
|
jquery-rails
|
13
10
|
kaminari
|
14
|
-
rails (= 4.2.
|
11
|
+
rails (= 4.2.6)
|
15
12
|
rails_admin (~> 0.8.1)
|
16
|
-
rails_admin_mongoid_localize_field
|
17
13
|
rails_admin_nested_set
|
18
14
|
rails_admin_settings
|
19
|
-
rails_admin_sort_embedded
|
20
15
|
rails_admin_toggleable
|
21
|
-
simple-navigation
|
22
16
|
simple_form
|
23
|
-
sitemap_generator
|
24
|
-
smart_excerpt
|
25
|
-
stringex
|
26
|
-
thor
|
27
|
-
turbolinks
|
28
|
-
validates_email_format_of
|
29
|
-
x-real-ip
|
30
17
|
|
31
18
|
GEM
|
32
19
|
remote: https://rubygems.org/
|
33
20
|
specs:
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
actionmailer (4.2.4)
|
39
|
-
actionpack (= 4.2.4)
|
40
|
-
actionview (= 4.2.4)
|
41
|
-
activejob (= 4.2.4)
|
21
|
+
actionmailer (4.2.6)
|
22
|
+
actionpack (= 4.2.6)
|
23
|
+
actionview (= 4.2.6)
|
24
|
+
activejob (= 4.2.6)
|
42
25
|
mail (~> 2.5, >= 2.5.4)
|
43
26
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
44
|
-
actionpack (4.2.
|
45
|
-
actionview (= 4.2.
|
46
|
-
activesupport (= 4.2.
|
27
|
+
actionpack (4.2.6)
|
28
|
+
actionview (= 4.2.6)
|
29
|
+
activesupport (= 4.2.6)
|
47
30
|
rack (~> 1.6)
|
48
31
|
rack-test (~> 0.6.2)
|
49
32
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
50
33
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
51
|
-
actionview (4.2.
|
52
|
-
activesupport (= 4.2.
|
34
|
+
actionview (4.2.6)
|
35
|
+
activesupport (= 4.2.6)
|
53
36
|
builder (~> 3.1)
|
54
37
|
erubis (~> 2.7.0)
|
55
38
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
56
39
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
57
|
-
activejob (4.2.
|
58
|
-
activesupport (= 4.2.
|
40
|
+
activejob (4.2.6)
|
41
|
+
activesupport (= 4.2.6)
|
59
42
|
globalid (>= 0.3.0)
|
60
|
-
activemodel (4.2.
|
61
|
-
activesupport (= 4.2.
|
43
|
+
activemodel (4.2.6)
|
44
|
+
activesupport (= 4.2.6)
|
62
45
|
builder (~> 3.1)
|
63
|
-
activerecord (4.2.
|
64
|
-
activemodel (= 4.2.
|
65
|
-
activesupport (= 4.2.
|
46
|
+
activerecord (4.2.6)
|
47
|
+
activemodel (= 4.2.6)
|
48
|
+
activesupport (= 4.2.6)
|
66
49
|
arel (~> 6.0)
|
67
|
-
activesupport (4.2.
|
50
|
+
activesupport (4.2.6)
|
68
51
|
i18n (~> 0.7)
|
69
52
|
json (~> 1.7, >= 1.7.7)
|
70
53
|
minitest (~> 5.1)
|
71
54
|
thread_safe (~> 0.3, >= 0.3.4)
|
72
55
|
tzinfo (~> 1.1)
|
73
|
-
addressable (2.4.0)
|
74
56
|
arel (6.0.3)
|
75
57
|
bcrypt (3.1.11)
|
76
|
-
bson (4.0.4)
|
77
58
|
builder (3.2.2)
|
78
59
|
ckeditor (4.1.6)
|
79
60
|
cocaine
|
@@ -82,32 +63,29 @@ GEM
|
|
82
63
|
activesupport (>= 3.0)
|
83
64
|
cocaine (0.5.8)
|
84
65
|
climate_control (>= 0.0.3, < 1.0)
|
85
|
-
coffee-rails (4.
|
66
|
+
coffee-rails (4.2.1)
|
86
67
|
coffee-script (>= 2.2.0)
|
87
|
-
railties (>= 4.0.0, < 5.
|
68
|
+
railties (>= 4.0.0, < 5.2.x)
|
88
69
|
coffee-script (2.4.1)
|
89
70
|
coffee-script-source
|
90
71
|
execjs
|
91
72
|
coffee-script-source (1.10.0)
|
92
|
-
concurrent-ruby (1.0.
|
93
|
-
devise (
|
73
|
+
concurrent-ruby (1.0.2)
|
74
|
+
devise (4.2.0)
|
94
75
|
bcrypt (~> 3.0)
|
95
76
|
orm_adapter (~> 0.1)
|
96
|
-
railties (>=
|
77
|
+
railties (>= 4.1.0, < 5.1)
|
97
78
|
responders
|
98
|
-
thread_safe (~> 0.1)
|
99
79
|
warden (~> 1.2.3)
|
100
80
|
erubis (2.7.0)
|
101
|
-
execjs (2.
|
102
|
-
font-awesome-rails (4.
|
81
|
+
execjs (2.7.0)
|
82
|
+
font-awesome-rails (4.6.3.1)
|
103
83
|
railties (>= 3.2, < 5.1)
|
104
|
-
geocoder (1.3.
|
105
|
-
glebtv-simple_captcha (0.6.7)
|
84
|
+
geocoder (1.3.7)
|
106
85
|
globalid (0.3.6)
|
107
86
|
activesupport (>= 4.1.0)
|
108
87
|
haml (4.0.7)
|
109
88
|
tilt
|
110
|
-
htmlentities (4.3.4)
|
111
89
|
i18n (0.7.0)
|
112
90
|
jquery-rails (4.1.1)
|
113
91
|
rails-dom-testing (>= 1, < 3)
|
@@ -116,45 +94,40 @@ GEM
|
|
116
94
|
jquery-ui-rails (5.0.5)
|
117
95
|
railties (>= 3.2.16)
|
118
96
|
json (1.8.3)
|
119
|
-
kaminari (0.
|
97
|
+
kaminari (0.17.0)
|
120
98
|
actionpack (>= 3.0.0)
|
121
99
|
activesupport (>= 3.0.0)
|
122
100
|
loofah (2.0.3)
|
123
101
|
nokogiri (>= 1.5.9)
|
124
|
-
mail (2.6.
|
125
|
-
mime-types (>= 1.16, <
|
126
|
-
mime-types (
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
bson (~> 4.0)
|
132
|
-
mongoid (5.1.1)
|
133
|
-
activemodel (~> 4.0)
|
134
|
-
mongo (~> 2.1)
|
135
|
-
origin (~> 2.2)
|
136
|
-
tzinfo (>= 0.3.37)
|
102
|
+
mail (2.6.4)
|
103
|
+
mime-types (>= 1.16, < 4)
|
104
|
+
mime-types (3.1)
|
105
|
+
mime-types-data (~> 3.2015)
|
106
|
+
mime-types-data (3.2016.0521)
|
107
|
+
mini_portile2 (2.1.0)
|
108
|
+
minitest (5.9.0)
|
137
109
|
nested_form (0.3.2)
|
138
|
-
nokogiri (1.6.
|
139
|
-
mini_portile2 (~> 2.
|
140
|
-
|
110
|
+
nokogiri (1.6.8)
|
111
|
+
mini_portile2 (~> 2.1.0)
|
112
|
+
pkg-config (~> 1.1.7)
|
141
113
|
orm_adapter (0.5.0)
|
114
|
+
pkg-config (1.1.7)
|
142
115
|
rack (1.6.4)
|
143
116
|
rack-pjax (0.8.0)
|
144
117
|
nokogiri (~> 1.5)
|
145
118
|
rack (~> 1.1)
|
146
119
|
rack-test (0.6.3)
|
147
120
|
rack (>= 1.0)
|
148
|
-
rails (4.2.
|
149
|
-
actionmailer (= 4.2.
|
150
|
-
actionpack (= 4.2.
|
151
|
-
actionview (= 4.2.
|
152
|
-
activejob (= 4.2.
|
153
|
-
activemodel (= 4.2.
|
154
|
-
activerecord (= 4.2.
|
155
|
-
activesupport (= 4.2.
|
121
|
+
rails (4.2.6)
|
122
|
+
actionmailer (= 4.2.6)
|
123
|
+
actionpack (= 4.2.6)
|
124
|
+
actionview (= 4.2.6)
|
125
|
+
activejob (= 4.2.6)
|
126
|
+
activemodel (= 4.2.6)
|
127
|
+
activerecord (= 4.2.6)
|
128
|
+
activesupport (= 4.2.6)
|
156
129
|
bundler (>= 1.3.0, < 2.0)
|
157
|
-
railties (= 4.2.
|
130
|
+
railties (= 4.2.6)
|
158
131
|
sprockets-rails
|
159
132
|
rails-deprecated_sanitizer (1.0.3)
|
160
133
|
activesupport (>= 4.2.0.alpha)
|
@@ -178,67 +151,45 @@ GEM
|
|
178
151
|
remotipart (~> 1.0)
|
179
152
|
safe_yaml (~> 1.0)
|
180
153
|
sass-rails (>= 4.0, < 6)
|
181
|
-
|
182
|
-
haml
|
183
|
-
mongoid (>= 3.0)
|
184
|
-
rails (>= 3.0)
|
185
|
-
rails_admin (>= 0.5)
|
186
|
-
rails_admin_nested_set (0.5.0)
|
154
|
+
rails_admin_nested_set (0.5.1)
|
187
155
|
rails_admin
|
188
156
|
rails_admin_settings (1.1.3)
|
189
|
-
|
190
|
-
rails_admin
|
191
|
-
rails_admin_toggleable (0.6.0)
|
157
|
+
rails_admin_toggleable (0.7.1)
|
192
158
|
rails_admin
|
193
|
-
railties (4.2.
|
194
|
-
actionpack (= 4.2.
|
195
|
-
activesupport (= 4.2.
|
159
|
+
railties (4.2.6)
|
160
|
+
actionpack (= 4.2.6)
|
161
|
+
activesupport (= 4.2.6)
|
196
162
|
rake (>= 0.8.7)
|
197
163
|
thor (>= 0.18.1, < 2.0)
|
198
|
-
rake (11.
|
164
|
+
rake (11.2.2)
|
199
165
|
remotipart (1.2.1)
|
200
|
-
responders (2.
|
166
|
+
responders (2.2.0)
|
201
167
|
railties (>= 4.2.0, < 5.1)
|
202
168
|
safe_yaml (1.0.4)
|
203
|
-
sass (3.4.
|
204
|
-
sass-rails (5.0.
|
205
|
-
railties (>= 4.0.0, <
|
169
|
+
sass (3.4.22)
|
170
|
+
sass-rails (5.0.5)
|
171
|
+
railties (>= 4.0.0, < 6)
|
206
172
|
sass (~> 3.1)
|
207
173
|
sprockets (>= 2.8, < 4.0)
|
208
174
|
sprockets-rails (>= 2.0, < 4.0)
|
209
175
|
tilt (>= 1.1, < 3)
|
210
|
-
simple-navigation (4.0.3)
|
211
|
-
activesupport (>= 2.3.2)
|
212
176
|
simple_form (3.2.1)
|
213
177
|
actionpack (> 4, < 5.1)
|
214
178
|
activemodel (> 4, < 5.1)
|
215
|
-
|
216
|
-
builder
|
217
|
-
smart_excerpt (0.1.5)
|
218
|
-
activesupport
|
219
|
-
htmlentities
|
220
|
-
sprockets (3.5.2)
|
179
|
+
sprockets (3.6.3)
|
221
180
|
concurrent-ruby (~> 1.0)
|
222
181
|
rack (> 1, < 3)
|
223
|
-
sprockets-rails (3.
|
182
|
+
sprockets-rails (3.1.1)
|
224
183
|
actionpack (>= 4.0)
|
225
184
|
activesupport (>= 4.0)
|
226
185
|
sprockets (>= 3.0.0)
|
227
|
-
stringex (2.6.0)
|
228
186
|
thor (0.19.1)
|
229
187
|
thread_safe (0.3.5)
|
230
|
-
tilt (2.0.
|
231
|
-
turbolinks (2.5.3)
|
232
|
-
coffee-rails
|
188
|
+
tilt (2.0.5)
|
233
189
|
tzinfo (1.2.2)
|
234
190
|
thread_safe (~> 0.1)
|
235
|
-
validates_email_format_of (1.6.3)
|
236
|
-
i18n
|
237
191
|
warden (1.2.6)
|
238
192
|
rack (>= 1.0)
|
239
|
-
x-real-ip (0.2.1)
|
240
|
-
activesupport
|
241
|
-
rack
|
242
193
|
|
243
194
|
PLATFORMS
|
244
195
|
ruby
|
@@ -249,4 +200,4 @@ DEPENDENCIES
|
|
249
200
|
rake
|
250
201
|
|
251
202
|
BUNDLED WITH
|
252
|
-
1.
|
203
|
+
1.12.5
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
window.enjoy_cms ||= {}
|
File without changes
|
@@ -0,0 +1,26 @@
|
|
1
|
+
window.enjoy_cms ||= {}
|
2
|
+
window.enjoy_cms.multiselect_dblclick = (selector)->
|
3
|
+
$(document).delegate selector + ' .ra-multiselect-left select option', 'dblclick', (e)->
|
4
|
+
$(e.currentTarget).closest('.ra-multiselect').find('.ra-multiselect-center .ra-multiselect-item-add').click()
|
5
|
+
|
6
|
+
$(document).delegate selector + ' .ra-multiselect-right select option', 'dblclick', (e)->
|
7
|
+
$(e.currentTarget).closest('.ra-multiselect').find('.ra-multiselect-center .ra-multiselect-item-remove').click()
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
$(document).delegate '.sidebar-nav .nav .dropdown-header', 'click', (e)->
|
13
|
+
e.preventDefault()
|
14
|
+
_target = $(e.currentTarget).toggleClass('opened')
|
15
|
+
li = _target.next()
|
16
|
+
loop
|
17
|
+
li.toggleClass('visible')
|
18
|
+
li = li.next()
|
19
|
+
break if li.length == 0 or li.hasClass('dropdown-header')
|
20
|
+
|
21
|
+
$(document).on 'pjax:complete ready', ()->
|
22
|
+
active_nav_element = $(".sidebar-nav .nav .active")
|
23
|
+
if active_nav_element.length > 0
|
24
|
+
_parent = active_nav_element.prevAll(".dropdown-header:first")
|
25
|
+
if _parent.length > 0 and !_parent.hasClass('opened')
|
26
|
+
_parent.click()
|
File without changes
|
@@ -1,2 +1,2 @@
|
|
1
|
-
#= require
|
2
|
-
#= require
|
1
|
+
#= require enjoy/rails_admin/cms.ui
|
2
|
+
#= require enjoy/rails_admin/custom/ui
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,117 @@
|
|
1
|
+
.navbar-brand
|
2
|
+
margin-left: 0 !important
|
3
|
+
|
4
|
+
.input-small
|
5
|
+
width: 150px
|
6
|
+
|
7
|
+
.container-fluid
|
8
|
+
input[type=text]
|
9
|
+
width: 380px !important
|
10
|
+
input.ra-filtering-select-input[type=text]
|
11
|
+
width: 180px !important
|
12
|
+
input.hasDatepicker
|
13
|
+
width: 180px !important
|
14
|
+
|
15
|
+
.sidebar-nav
|
16
|
+
a
|
17
|
+
padding: 6px 10px !important
|
18
|
+
.dropdown-header
|
19
|
+
padding: 10px 0px 3px 9px
|
20
|
+
|
21
|
+
.label-important
|
22
|
+
background-color: #d9534f
|
23
|
+
.alert-notice
|
24
|
+
color: #5bc0de
|
25
|
+
|
26
|
+
.page-header
|
27
|
+
display: none
|
28
|
+
.breadcrumb
|
29
|
+
margin-top: 20px
|
30
|
+
|
31
|
+
.control-group
|
32
|
+
clear: both
|
33
|
+
|
34
|
+
.container-fluid
|
35
|
+
padding-left: 0
|
36
|
+
> .row
|
37
|
+
margin: 51px 0px 0px 0px !important
|
38
|
+
|
39
|
+
.last.links
|
40
|
+
a
|
41
|
+
display: inline-block
|
42
|
+
padding: 3px
|
43
|
+
font-size: 20px
|
44
|
+
|
45
|
+
.remove_nested_fields
|
46
|
+
opacity: 1 !important
|
47
|
+
|
48
|
+
body.rails_admin .modal
|
49
|
+
margin: 0 auto !important
|
50
|
+
.modal-dialog
|
51
|
+
width: 990px !important
|
52
|
+
|
53
|
+
input[type=checkbox]
|
54
|
+
width: 30px !important
|
55
|
+
|
56
|
+
.nav.root_links
|
57
|
+
|
58
|
+
> li
|
59
|
+
display: inline-block
|
60
|
+
|
61
|
+
.dropdown-header
|
62
|
+
border-top: 2px solid #777777
|
63
|
+
text-align: right
|
64
|
+
|
65
|
+
&:first-child
|
66
|
+
border-top: none
|
67
|
+
|
68
|
+
.bank_row .logo_field, #edit_bank img
|
69
|
+
background: #ccc !important
|
70
|
+
|
71
|
+
.ui-menu-item
|
72
|
+
border: 1px solid transparent
|
73
|
+
|
74
|
+
.content > .alert
|
75
|
+
margin-top: 20px
|
76
|
+
|
77
|
+
.badge-important
|
78
|
+
background: red
|
79
|
+
.badge-success
|
80
|
+
background: green
|
81
|
+
|
82
|
+
.sidebar-nav
|
83
|
+
// margin-top: 51px
|
84
|
+
i
|
85
|
+
margin-right: 5px
|
86
|
+
|
87
|
+
.nav
|
88
|
+
li
|
89
|
+
display: none
|
90
|
+
&.dropdown-header
|
91
|
+
cursor: pointer
|
92
|
+
display: block
|
93
|
+
&.opened
|
94
|
+
&.visible
|
95
|
+
display: block
|
96
|
+
|
97
|
+
|
98
|
+
body.rails_admin .table td.paperclip_type, body.rails_admin .table td.carrierwave_type, body.rails_admin .table td.jcrop_type
|
99
|
+
img
|
100
|
+
max-width: 150px
|
101
|
+
max-height: 100p
|
102
|
+
|
103
|
+
|
104
|
+
#list
|
105
|
+
.input-group
|
106
|
+
.input-group-btn
|
107
|
+
.btn-info
|
108
|
+
height: 33px
|
109
|
+
|
110
|
+
.table-condensed
|
111
|
+
> tbody, > thead
|
112
|
+
> tr
|
113
|
+
> td
|
114
|
+
padding: 6px 4px 0px 5px
|
115
|
+
|
116
|
+
&.toggle_type
|
117
|
+
padding-top: 14px
|
File without changes
|
@@ -84,7 +84,7 @@ module Enjoy::Errors
|
|
84
84
|
end
|
85
85
|
|
86
86
|
def render_error(code = 500)
|
87
|
-
render template: "errors/error_#{code}", formats: [:html], handlers: [:slim], layout: Enjoy.config.error_layout, status: code
|
87
|
+
render template: "enjoy/errors/error_#{code}", formats: [:html], handlers: [:slim], layout: Enjoy.config.error_layout, status: code
|
88
88
|
end
|
89
89
|
|
90
90
|
def rails_admin?
|
@@ -0,0 +1,20 @@
|
|
1
|
+
class Enjoy::RegistrationsController < Devise::RegistrationsController
|
2
|
+
prepend_before_action :check_recaptcha, only: [:create]
|
3
|
+
|
4
|
+
private
|
5
|
+
def check_recaptcha
|
6
|
+
if Enjoy.config.recaptcha_support
|
7
|
+
if verify_recaptcha
|
8
|
+
true
|
9
|
+
else
|
10
|
+
self.resource = resource_class.new sign_up_params
|
11
|
+
self.resource.valid?
|
12
|
+
respond_with_navigational(resource) { render :new }
|
13
|
+
end
|
14
|
+
|
15
|
+
else
|
16
|
+
true
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
class Enjoy::SessionsController < Devise::SessionsController
|
2
|
+
prepend_before_action :check_recaptcha, only: [:create]
|
3
|
+
|
4
|
+
private
|
5
|
+
def check_recaptcha
|
6
|
+
if Enjoy.config.recaptcha_support
|
7
|
+
if verify_recaptcha
|
8
|
+
true
|
9
|
+
else
|
10
|
+
self.resource = resource_class.new sign_in_params
|
11
|
+
respond_with_navigational(resource) { render :new }
|
12
|
+
end
|
13
|
+
|
14
|
+
else
|
15
|
+
true
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|