camaleon_cms 2.7.5 → 2.8.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of camaleon_cms might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +20 -20
- data/app/apps/plugins/attack/config/config.json +2 -2
- data/app/apps/plugins/front_cache/admin_controller.rb +4 -6
- data/app/apps/plugins/front_cache/config/config.json +1 -1
- data/app/apps/plugins/front_cache/config/locales/translation.yml +1 -1
- data/app/apps/plugins/front_cache/front_cache_helper.rb +3 -3
- data/app/apps/plugins/visibility_post/config/config.json +2 -2
- data/app/apps/themes/camaleon_first/assets/js/main.js +1 -1
- data/app/apps/themes/camaleon_first/views/index.html.erb +1 -1
- data/app/apps/themes/default/assets/js/main.js +1 -1
- data/app/apps/themes/new/assets/js/main.js +1 -1
- data/app/apps/themes/new/views/index.html.erb +4 -4
- data/app/apps/themes/new/views/layouts/_footer.html.erb +2 -2
- data/app/assets/javascripts/camaleon_cms/admin/admin-basic-manifest.js +2 -2
- data/app/assets/javascripts/camaleon_cms/admin/admin-manifest.js +1 -1
- data/app/assets/javascripts/camaleon_cms/admin/tinymce/langs/de.js +2 -2
- data/app/assets/javascripts/camaleon_cms/admin/tinymce/langs/en.js +2 -2
- data/app/assets/javascripts/camaleon_cms/admin/tinymce/langs/fr.js +2 -2
- data/app/assets/javascripts/camaleon_cms/admin/tinymce/langs/it.js +2 -2
- data/app/assets/javascripts/camaleon_cms/admin/tinymce/langs/nl.js +1 -1
- data/app/assets/javascripts/camaleon_cms/admin/tinymce/langs/pt-BR.js +2 -2
- data/app/assets/javascripts/camaleon_cms/admin/tinymce/langs/ru.js +2 -2
- data/app/assets/javascripts/camaleon_cms/admin/tinymce/langs/uk.js +2 -2
- data/app/assets/javascripts/camaleon_cms/admin/tinymce/langs/zh-CN.js +1 -1
- data/app/assets/javascripts/camaleon_cms/admin/uploader/_media_manager.js +2 -2
- data/app/controllers/camaleon_cms/admin/appearances/nav_menus_controller.rb +15 -10
- data/app/controllers/camaleon_cms/admin/installers_controller.rb +1 -1
- data/app/controllers/camaleon_cms/admin/settings_controller.rb +1 -1
- data/app/controllers/camaleon_cms/camaleon_controller.rb +8 -2
- data/app/decorators/camaleon_cms/application_decorator.rb +8 -0
- data/app/decorators/camaleon_cms/category_decorator.rb +1 -1
- data/app/decorators/camaleon_cms/post_decorator.rb +5 -5
- data/app/decorators/camaleon_cms/post_type_decorator.rb +3 -3
- data/app/decorators/camaleon_cms/term_taxonomy_decorator.rb +1 -1
- data/app/helpers/camaleon_cms/admin/category_helper.rb +1 -1
- data/app/helpers/camaleon_cms/frontend/nav_menu_helper.rb +12 -11
- data/app/helpers/camaleon_cms/html_helper.rb +6 -6
- data/app/helpers/camaleon_cms/plugins_helper.rb +1 -1
- data/app/helpers/camaleon_cms/session_helper.rb +1 -1
- data/app/helpers/camaleon_cms/short_code_helper.rb +1 -1
- data/app/helpers/camaleon_cms/site_helper.rb +1 -1
- data/app/helpers/camaleon_cms/theme_helper.rb +1 -1
- data/app/helpers/camaleon_cms/uploader_helper.rb +10 -5
- data/app/models/camaleon_cms/ability.rb +1 -1
- data/app/models/camaleon_cms/custom_field_group.rb +2 -2
- data/app/models/camaleon_cms/nav_menu.rb +1 -1
- data/app/models/camaleon_cms/post.rb +1 -1
- data/app/models/camaleon_cms/post_default.rb +1 -1
- data/app/models/camaleon_cms/post_type.rb +8 -8
- data/app/models/camaleon_cms/site.rb +1 -1
- data/app/models/camaleon_cms/term_taxonomy.rb +13 -0
- data/app/models/concerns/camaleon_cms/custom_fields_read.rb +11 -22
- data/app/models/concerns/camaleon_cms/site_default_settings.rb +1 -1
- data/app/uploaders/camaleon_cms_uploader.rb +5 -0
- data/app/validators/camaleon_cms/post_uniq_validator.rb +11 -12
- data/app/validators/camaleon_cms/uniq_validator.rb +9 -3
- data/app/views/camaleon_cms/admin/media/index.html.erb +1 -1
- data/app/views/camaleon_cms/admin/settings/_email_settings.html.erb +2 -2
- data/app/views/camaleon_cms/default_theme/index.html.erb +4 -4
- data/app/views/camaleon_cms/default_theme/sitemap.xml.builder +3 -3
- data/app/views/layouts/camaleon_cms/admin/_footer.html.erb +1 -1
- data/config/initializers/custom_initializers.rb +14 -0
- data/lib/camaleon_cms/engine.rb +1 -1
- data/lib/camaleon_cms/version.rb +1 -1
- data/lib/ext/hash.rb +1 -1
- data/lib/ext/string.rb +2 -2
- data/lib/generators/camaleon_cms/theme_template/assets/js/main.js +1 -1
- metadata +21 -7
@@ -10,7 +10,7 @@
|
|
10
10
|
<hr>
|
11
11
|
<div class="alert alert-info">Gmail Need Permissions:
|
12
12
|
<div class="pull-left">
|
13
|
-
<a href="
|
13
|
+
<a href="https://know.mailsbestfriend.com/smtp_error_password_command_failed_5345714-1194946499.shtml" target="_blank">Check
|
14
14
|
here.</a>
|
15
15
|
</div>
|
16
16
|
<div class="pull-right">
|
@@ -55,4 +55,4 @@
|
|
55
55
|
return false;
|
56
56
|
});
|
57
57
|
});
|
58
|
-
</script>
|
58
|
+
</script>
|
@@ -12,19 +12,19 @@
|
|
12
12
|
<!-- Wrapper for slides -->
|
13
13
|
<div class="carousel-inner">
|
14
14
|
<div class="item active">
|
15
|
-
<img src="
|
15
|
+
<img src="https://placehold.it/800x400" alt="...">
|
16
16
|
<div class="carousel-caption">
|
17
17
|
<h2>Heading</h2>
|
18
18
|
</div>
|
19
19
|
</div>
|
20
20
|
<div class="item">
|
21
|
-
<img src="
|
21
|
+
<img src="https://placehold.it/800x400" alt="...">
|
22
22
|
<div class="carousel-caption">
|
23
23
|
<h2>Heading</h2>
|
24
24
|
</div>
|
25
25
|
</div>
|
26
26
|
<div class="item">
|
27
|
-
<img src="
|
27
|
+
<img src="https://placehold.it/800x400" alt="...">
|
28
28
|
<div class="carousel-caption">
|
29
29
|
<h2>Heading</h2>
|
30
30
|
</div>
|
@@ -67,4 +67,4 @@
|
|
67
67
|
</div>
|
68
68
|
|
69
69
|
</div>
|
70
|
-
</section>
|
70
|
+
</section>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
xml.instruct! :xml, version: '1.0'
|
2
|
-
xml.urlset 'xmlns' => '
|
2
|
+
xml.urlset 'xmlns' => 'https://www.sitemaps.org/schemas/sitemap/0.9' do
|
3
3
|
current_site.get_languages.each_with_index do |lang, index|
|
4
|
-
lang = (index
|
4
|
+
lang = (index == 0 ? nil : lang)
|
5
5
|
xml.url do
|
6
6
|
xml.loc current_site.the_url(locale: lang)
|
7
7
|
xml.lastmod current_site.updated_at.to_date
|
@@ -54,7 +54,7 @@ xml.urlset 'xmlns' => 'http://www.sitemaps.org/schemas/sitemap/0.9' do
|
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
|
-
@r[:custom].
|
57
|
+
@r[:custom].each_value do |item|
|
58
58
|
xml.url do
|
59
59
|
xml.loc item[:url]
|
60
60
|
xml.lastmod item[:lastmod] || Date.today.to_s
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<footer class="main-footer" id="main-footer">
|
2
2
|
<div class="row">
|
3
|
-
<div class="col-md-6"><strong>Copyright © 2015 - <%= Time.now.year %> <a href="
|
3
|
+
<div class="col-md-6"><strong>Copyright © 2015 - <%= Time.now.year %> <a href="https://camaleon.website">Camaleon CMS.</a> </strong></div>
|
4
4
|
<div class="col-md-6 hidden-xs">
|
5
5
|
<div class="pull-left">
|
6
6
|
<a id="link_see_intro" href="#" onclick="init_intro(); return false;"><i class="fa fa-tv"></i> <%= I18n.t('camaleon_cms.see_intro') %>.</a>
|
@@ -9,4 +9,18 @@ Rails.application.config.to_prepare do |_config|
|
|
9
9
|
f = File.join(ap['path'], 'config', 'custom_models.rb')
|
10
10
|
eval(File.read(f)) if File.exist?(f)
|
11
11
|
end
|
12
|
+
|
13
|
+
# This block can be overridden in the app initializer to wrap the sleep and delete_file in an async job,
|
14
|
+
# something like this:
|
15
|
+
#
|
16
|
+
# CamaleonDeleteFileJob.set(wait: temporal_time).perform_later(file_key)
|
17
|
+
# # put this in app/jobs/camaleon_delete_file_job.rb:
|
18
|
+
# include CamaleonCms::UploaderHelper
|
19
|
+
# cama_uploader.delete_file(file_key)
|
20
|
+
CamaleonCmsUploader.delete_block do |settings, cama_uploader, file_key|
|
21
|
+
next unless Rails.env.test?
|
22
|
+
|
23
|
+
sleep(settings[:temporal_time])
|
24
|
+
cama_uploader.delete_file(file_key)
|
25
|
+
end
|
12
26
|
end
|
data/lib/camaleon_cms/engine.rb
CHANGED
@@ -59,7 +59,7 @@ module CamaleonCms
|
|
59
59
|
app.config.assets.paths << File.join($camaleon_engine_dir, 'app', 'assets', 'fonts')
|
60
60
|
app.config.encoding = 'utf-8'
|
61
61
|
|
62
|
-
# add prefix url, like:
|
62
|
+
# add prefix url, like: https://localhost.com/blog/
|
63
63
|
# config.action_controller.relative_url_root = PluginRoutes.system_info["relative_url_root"] if PluginRoutes.system_info["relative_url_root"].present?
|
64
64
|
|
65
65
|
# multiple route files
|
data/lib/camaleon_cms/version.rb
CHANGED
data/lib/ext/hash.rb
CHANGED
data/lib/ext/string.rb
CHANGED
@@ -66,11 +66,11 @@ class String
|
|
66
66
|
end
|
67
67
|
|
68
68
|
# parse string into domain
|
69
|
-
#
|
69
|
+
# https://owen.camaleon.website into owen.camaleon.website
|
70
70
|
def parse_domain
|
71
71
|
url = self
|
72
72
|
uri = URI.parse(url)
|
73
|
-
uri = URI.parse("
|
73
|
+
uri = URI.parse("https://#{url}") if uri.scheme.nil?
|
74
74
|
host = (uri.host || self).downcase
|
75
75
|
h = host.start_with?('www.') ? host[4..] : host
|
76
76
|
"#{h}#{":#{uri.port}" unless [80, 443].include?(uri.port)}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: camaleon_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Owen Peredo Diaz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -184,6 +184,20 @@ dependencies:
|
|
184
184
|
- - ">="
|
185
185
|
- !ruby/object:Gem::Version
|
186
186
|
version: '0'
|
187
|
+
- !ruby/object:Gem::Dependency
|
188
|
+
name: sprockets-rails
|
189
|
+
requirement: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - ">="
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: 3.5.1
|
194
|
+
type: :runtime
|
195
|
+
prerelease: false
|
196
|
+
version_requirements: !ruby/object:Gem::Requirement
|
197
|
+
requirements:
|
198
|
+
- - ">="
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: 3.5.1
|
187
201
|
- !ruby/object:Gem::Dependency
|
188
202
|
name: tinymce-rails
|
189
203
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1110,7 +1124,7 @@ files:
|
|
1110
1124
|
- lib/plugin_routes.rb
|
1111
1125
|
- lib/tasks/camaleon_cms/camaleon_tasks.rake
|
1112
1126
|
- lib/tasks/camaleon_cms/rspec_test.rake
|
1113
|
-
homepage:
|
1127
|
+
homepage: https://camaleon.website
|
1114
1128
|
licenses:
|
1115
1129
|
- MIT
|
1116
1130
|
metadata: {}
|
@@ -1122,17 +1136,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1122
1136
|
requirements:
|
1123
1137
|
- - ">="
|
1124
1138
|
- !ruby/object:Gem::Version
|
1125
|
-
version: '
|
1139
|
+
version: '3.0'
|
1126
1140
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1127
1141
|
requirements:
|
1128
1142
|
- - ">="
|
1129
1143
|
- !ruby/object:Gem::Version
|
1130
1144
|
version: '0'
|
1131
1145
|
requirements:
|
1132
|
-
- rails >= 6.
|
1133
|
-
- ruby >=
|
1146
|
+
- rails >= 6.1
|
1147
|
+
- ruby >= 3.0
|
1134
1148
|
- imagemagick
|
1135
|
-
rubygems_version: 3.5.
|
1149
|
+
rubygems_version: 3.5.11
|
1136
1150
|
signing_key:
|
1137
1151
|
specification_version: 4
|
1138
1152
|
summary: Camaleon is a CMS for Ruby on Rails as an alternative to Wordpress.
|