camaleon_cms 1.0.4 → 1.0.5
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/app/assets/javascripts/admin/actions.js +14 -3
- data/app/assets/javascripts/admin/admin-manifest.js +1 -4
- data/app/assets/javascripts/admin/custom_fields.js +2 -2
- data/app/assets/javascripts/admin/data.js +68 -102
- data/app/assets/javascripts/admin/libraries.js +46 -87
- data/app/assets/javascripts/admin/modal.js +15 -3
- data/app/assets/javascripts/admin/post.js +2 -2
- data/app/assets/stylesheets/admin/admin-manifest.css +1 -2
- data/app/assets/stylesheets/admin/custom_admin.css.scss +3 -1
- data/app/controllers/admin/sessions_controller.rb +21 -14
- data/app/controllers/admin/users_controller.rb +7 -4
- data/app/controllers/api/api_controller.rb +28 -0
- data/app/controllers/api/v1/category_controller.rb +7 -0
- data/app/controllers/api/v1/page_controller.rb +8 -0
- data/app/controllers/api/v1/post_controller.rb +8 -0
- data/app/controllers/concerns/frontend_concern.rb +1 -17
- data/app/decorators/category_decorator.rb +1 -1
- data/app/helpers/camaleon_helper.rb +15 -0
- data/app/helpers/html_helper.rb +1 -0
- data/app/helpers/session_helper.rb +18 -3
- data/app/models/site.rb +17 -11
- data/app/views/admin/posts/_sidebar.html.erb +9 -7
- data/app/views/admin/posts/form.html.erb +4 -1
- data/app/views/admin/sessions/register.html.erb +8 -6
- data/app/views/admin/settings/custom_fields/_render.html.erb +3 -2
- data/app/views/admin/settings/custom_fields/fields/audio.html.erb +1 -1
- data/app/views/admin/settings/custom_fields/fields/checkbox.html.erb +1 -1
- data/app/views/admin/settings/custom_fields/fields/checkboxes.html.erb +1 -1
- data/app/views/admin/settings/custom_fields/fields/colorpicker.html.erb +1 -1
- data/app/views/admin/settings/custom_fields/fields/date.html.erb +1 -1
- data/app/views/admin/settings/custom_fields/fields/editor.html.erb +1 -1
- data/app/views/admin/settings/custom_fields/fields/email.html.erb +1 -1
- data/app/views/admin/settings/custom_fields/fields/field_attrs.html.erb +2 -2
- data/app/views/admin/settings/custom_fields/fields/file.html.erb +1 -1
- data/app/views/admin/settings/custom_fields/fields/image.html.erb +1 -1
- data/app/views/admin/settings/custom_fields/fields/numeric.html.erb +1 -1
- data/app/views/admin/settings/custom_fields/fields/phone.html.erb +1 -1
- data/app/views/admin/settings/custom_fields/fields/posts.html.erb +1 -1
- data/app/views/admin/settings/custom_fields/fields/radio.html.erb +1 -1
- data/app/views/admin/settings/custom_fields/fields/select.html.erb +1 -1
- data/app/views/admin/settings/custom_fields/fields/text_area.html.erb +1 -1
- data/app/views/admin/settings/custom_fields/fields/text_box.html.erb +1 -1
- data/app/views/admin/settings/custom_fields/fields/url.html.erb +1 -1
- data/app/views/admin/settings/custom_fields/fields/users.html.erb +1 -1
- data/app/views/admin/settings/custom_fields/fields/video.html.erb +1 -1
- data/app/views/admin/settings/custom_fields/index.html.erb +54 -8
- data/app/views/admin/settings/site.html.erb +170 -151
- data/app/views/admin/users/form.html.erb +19 -23
- data/app/views/default_theme/sitemap.html.erb +19 -0
- data/app/views/default_theme/sitemap.xml.builder +48 -0
- data/app/views/layouts/admin.html.erb +3 -13
- data/app/views/layouts/admin/_footer.html.erb +10 -3
- data/app/views/layouts/admin/_header.html.erb +1 -1
- data/config/initializers/doorkeeper.rb +128 -0
- data/config/initializers/rufus_cron.rb +3 -3
- data/config/initializers/sass.rb +0 -62
- data/config/locales/admin/en.yml +3 -2
- data/config/locales/admin/es.yml +2 -0
- data/config/locales/admin/js.yml +9 -38
- data/config/locales/doorkeeper.en.yml +123 -0
- data/config/routes.rb +12 -0
- data/config/routes/admin.rb +0 -3
- data/db/migrate/20150930115030_doorkeeper_configuration.rb +45 -0
- data/lib/camaleon_cms/engine.rb +2 -0
- data/lib/camaleon_cms/version.rb +1 -1
- data/lib/generators/camaleon_cms/gem_plugin_template/app/models/plugins/my_plugin/my_plugin.rb +1 -6
- data/lib/generators/cplugin_template/app/apps/plugins/my_plugin/models/my_plugin.rb +0 -5
- data/lib/generators/ctheme_template/app/apps/themes/my_theme/assets/js/main.js +1 -1
- data/lib/plugin_routes.rb +12 -8
- metadata +38 -46
- data/app/assets/javascripts/admin/grid-editor.js +0 -532
- data/app/assets/javascripts/audio/alert.mp3 +0 -0
- data/app/assets/javascripts/audio/fail.mp3 +0 -0
- data/app/assets/javascripts/jquery-1.11.3.min.js +0 -5
- data/app/assets/stylesheets/admin/grid-editor.css.scss +0 -15
- data/app/assets/stylesheets/tinymce/plugins/youtubeIframe/css/style.css +0 -84
- data/app/assets/stylesheets/tinymce/plugins/youtubeIframe/editor_plugin.js +0 -1
- data/app/assets/stylesheets/tinymce/plugins/youtubeIframe/editor_plugin_src.js +0 -90
- data/app/assets/stylesheets/tinymce/plugins/youtubeIframe/img/youtube.png +0 -0
- data/app/assets/stylesheets/tinymce/plugins/youtubeIframe/index.html +0 -86
- data/app/assets/stylesheets/tinymce/plugins/youtubeIframe/js/scripts.js +0 -1
- data/app/assets/stylesheets/tinymce/plugins/youtubeIframe/js/scripts_src.js +0 -81
- data/app/assets/stylesheets/tinymce/plugins/youtubeIframe/langs/en.js +0 -3
- data/app/assets/stylesheets/tinymce/plugins/youtubeIframe/langs/en_dlg.js +0 -12
- data/app/assets/stylesheets/tinymce/plugins/youtubeIframe/langs/es.js +0 -3
- data/app/assets/stylesheets/tinymce/plugins/youtubeIframe/langs/es_dlg.js +0 -12
- data/app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/bootstrap.css +0 -2228
- data/app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/content.css +0 -189
- data/app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/dialog.css +0 -295
- data/app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/img/butt2.png +0 -0
- data/app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/img/button-bg.png +0 -0
- data/app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/img/buttons.png +0 -0
- data/app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/img/down_arrow.gif +0 -0
- data/app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/img/fade-butt.png +0 -0
- data/app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/img/icons.png +0 -0
- data/app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/img/items.gif +0 -0
- data/app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/img/menu-arrow.png +0 -0
- data/app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/img/menu-check.png +0 -0
- data/app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/img/progress.gif +0 -0
- data/app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/img/tabs.gif +0 -0
- data/app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/img/toolbarbg.png +0 -0
- data/app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/ui.css +0 -1163
- data/app/controllers/admin/grid_editor_controller.rb +0 -55
- data/app/views/admin/grid_editor/form.html.erb +0 -31
- data/app/views/admin/grid_editor/index.html.erb +0 -29
- data/config/sitemap.rb +0 -56
- data/lib/generators/camaleon_cms/gem_theme_template/app/controllers/plugins/my_plugin/admin_controller.rb +0 -8
- data/lib/generators/camaleon_cms/gem_theme_template/app/controllers/plugins/my_plugin/front_controller.rb +0 -8
- data/lib/generators/camaleon_cms/gem_theme_template/app/helpers/plugins/my_plugin/main_helper.rb +0 -22
- data/lib/generators/camaleon_cms/gem_theme_template/app/models/plugins/my_plugin/my_plugin.rb +0 -12
- data/lib/generators/camaleon_cms/gem_theme_template/app/views/plugins/my_plugin/admin/index.html.erb +0 -2
- data/lib/generators/camaleon_cms/gem_theme_template/app/views/plugins/my_plugin/front/index.html.erb +0 -2
- data/lib/generators/camaleon_cms/gem_theme_template/app/views/plugins/my_plugin/layouts/readme.txt +0 -2
- data/lib/generators/camaleon_cms/gem_theme_template/config/camaleon_plugin.json +0 -21
@@ -123,35 +123,31 @@
|
|
123
123
|
</div>
|
124
124
|
</div>
|
125
125
|
</div>
|
126
|
-
<% end %>
|
127
|
-
<div class="col-md-3">
|
128
|
-
<div class="panel panel-default form-horizontal">
|
129
|
-
<div class="panel-body">
|
130
|
-
<h3><span class="fa fa-info-circle"></span> <%= t('admin.table.quick_info')%></h3>
|
131
|
-
<p><%= t('admin.message.quick_info')%></p>
|
132
|
-
</div>
|
133
|
-
<div class="panel-body form-group-separated">
|
134
|
-
<div class="form-group">
|
135
|
-
<label class="col-md-4 col-xs-5 control-label"><%= t('admin.table.last_visit')%></label>
|
136
|
-
<div class="col-md-8 col-xs-7 line-height-30"><%= @user.last_login_at %></div>
|
137
|
-
</div>
|
138
|
-
<div class="form-group">
|
139
|
-
<label class="col-md-4 col-xs-5 control-label"><%= t('admin.table.registration')%></label>
|
140
|
-
<div class="col-md-8 col-xs-7 line-height-30"><%= @user.created_at %></div>
|
141
|
-
</div>
|
142
126
|
|
143
|
-
|
127
|
+
<div class="col-md-3">
|
144
128
|
<div class="panel panel-default form-horizontal">
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
129
|
+
<div class="panel-body">
|
130
|
+
<h3><span class="fa fa-info-circle"></span> <%= t('admin.table.quick_info')%></h3>
|
131
|
+
<p><%= t('admin.message.quick_info')%></p>
|
132
|
+
</div>
|
133
|
+
<div class="panel-body form-group-separated">
|
134
|
+
<div class="form-group">
|
135
|
+
<label class="col-md-4 col-xs-5 control-label"><%= t('admin.table.last_visit')%></label>
|
136
|
+
<div class="col-md-8 col-xs-7 line-height-30"><%= @user.last_login_at %></div>
|
137
|
+
</div>
|
138
|
+
<div class="form-group">
|
139
|
+
<label class="col-md-4 col-xs-5 control-label"><%= t('admin.table.registration')%></label>
|
140
|
+
<div class="col-md-8 col-xs-7 line-height-30"><%= @user.created_at %></div>
|
141
|
+
</div>
|
149
142
|
|
150
|
-
|
143
|
+
</div>
|
151
144
|
</div>
|
145
|
+
|
146
|
+
<%= r = { html: ''}; hooks_run('user_update_more_actions_form', r); raw(r[:html]); %>
|
152
147
|
</div>
|
153
|
-
|
148
|
+
<% end %>
|
154
149
|
|
150
|
+
<%= r = { html: ''}; hooks_run('user_update_more_actions', r); raw(r[:html]); %>
|
155
151
|
</div>
|
156
152
|
|
157
153
|
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<ul>
|
2
|
+
<li>
|
3
|
+
<h2><a href="<%= current_site.the_url %>"><%= current_site.the_title %></a></h2>
|
4
|
+
</li>
|
5
|
+
<% current_site.post_types.decorate.each do |ptype| %>
|
6
|
+
<li>
|
7
|
+
<h3><a href="<%= ptype.the_title %>"><%= ptype.the_title %></a></h3>
|
8
|
+
<% if ptype.manage_categories? %>
|
9
|
+
<%= raw(cama_sitemap_cats_generator(ptype.the_categories)) %>
|
10
|
+
<% else %>
|
11
|
+
<ul>
|
12
|
+
<% ptype.the_posts.decorate.each do |post| %>
|
13
|
+
<li><a href='<%= post.the_url %>'><%= post.the_title %></a></li>
|
14
|
+
<% end %>
|
15
|
+
</ul>
|
16
|
+
<% end %>
|
17
|
+
</li>
|
18
|
+
<% end %>
|
19
|
+
</ul>
|
@@ -0,0 +1,48 @@
|
|
1
|
+
xml.instruct! :xml, :version => "1.0"
|
2
|
+
xml.urlset "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do
|
3
|
+
current_site.get_languages.each_with_index do |lang, index| lang = (index == 0 ? nil : lang);
|
4
|
+
xml.url do
|
5
|
+
xml.loc current_site.the_url(locale: lang)
|
6
|
+
xml.lastmod current_site.updated_at
|
7
|
+
xml.changefreq "daily"
|
8
|
+
xml.priority "1.0"
|
9
|
+
end
|
10
|
+
|
11
|
+
for post in current_site.the_posts.decorate do
|
12
|
+
xml.url do
|
13
|
+
xml.loc post.the_url(locale: lang)
|
14
|
+
xml.lastmod post.updated_at
|
15
|
+
xml.changefreq "monthly"
|
16
|
+
xml.priority "0.5"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
for cat in current_site.full_categories.no_empty.decorate do
|
21
|
+
xml.url do
|
22
|
+
xml.loc cat.the_url(locale: lang)
|
23
|
+
xml.lastmod cat.updated_at
|
24
|
+
xml.changefreq "monthly"
|
25
|
+
xml.priority "0.5"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
for ptype in current_site.post_types.decorate do
|
30
|
+
xml.url do
|
31
|
+
xml.loc ptype.the_url(locale: lang)
|
32
|
+
xml.lastmod ptype.updated_at
|
33
|
+
xml.changefreq "monthly"
|
34
|
+
xml.priority "0.5"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
for tag in current_site.post_tags.decorate do
|
39
|
+
xml.url do
|
40
|
+
xml.loc tag.the_url(locale: lang)
|
41
|
+
xml.lastmod tag.updated_at
|
42
|
+
xml.changefreq "monthly"
|
43
|
+
xml.priority "0.5"
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
@@ -4,10 +4,8 @@
|
|
4
4
|
<head>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
6
6
|
<title><%= raw admin_title_draw %></title>
|
7
|
-
|
8
7
|
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
9
8
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
10
|
-
|
11
9
|
<%= stylesheet_link_tag "admin/admin-manifest", media: "all" %>
|
12
10
|
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
|
13
11
|
<script>
|
@@ -15,21 +13,16 @@
|
|
15
13
|
var NO_IMAGE_URL = '<%= asset_url("image-not-found.png") %>';
|
16
14
|
var CURRENT_LOCALE = '<%= current_locale %>';
|
17
15
|
var ADMIN_TRANSLATIONS = <%= raw current_site.get_languages.to_json %>;
|
18
|
-
|
19
|
-
window.run = [];
|
20
|
-
var tinymce_assets = {language_url: "<%= asset_path("admin/tinymce/langs/#{current_locale}.js") %>", custom_css: <%= r = {css_assets: []}; hooks_run("tinymce_custom_css", r); raw(r[:css_assets].to_json); %>};
|
16
|
+
var tinymce_global_settings = {language_url: "<%= asset_path("admin/tinymce/langs/#{current_locale}.js") %>", custom_css: [], custom_toolbar: [], post_render: [], init: [], setups: []};
|
21
17
|
var I18n_data = <%= I18n.backend.send(:translations)[current_locale.to_sym][:admin][:js].to_json.html_safe %>
|
22
18
|
</script>
|
23
19
|
<%= javascript_include_tag "admin/admin-manifest" %>
|
24
20
|
<%= javascript_include_tag "admin/#{current_locale}.js" if current_locale != "en" %> <!-- validator translations -->
|
25
21
|
<%= javascript_include_tag "admin/elfinder/i18n/elfinder.#{current_locale}.js" if current_locale != "en" %> <!-- elfinder translations -->
|
26
22
|
<%= raw the_head({}, false) %>
|
27
|
-
|
28
|
-
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
29
|
-
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
30
23
|
<!--[if lt IE 9]>
|
31
|
-
|
32
|
-
|
24
|
+
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
25
|
+
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
33
26
|
<![endif]-->
|
34
27
|
</head>
|
35
28
|
<body class="hold-transition skin-blue sidebar-mini" data-intro="<%= current_site.get_option("save_intro") %>">
|
@@ -57,10 +50,7 @@
|
|
57
50
|
</div>
|
58
51
|
|
59
52
|
<%= render partial: "layouts/admin/footer" %>
|
60
|
-
<%= raw content_after_draw %>
|
61
53
|
</div>
|
62
|
-
|
63
|
-
<script> jQuery(function () { while (run.length > 0) { (run.shift())(); } }); </script>
|
64
54
|
<%= raw content_after_draw %>
|
65
55
|
</body>
|
66
56
|
</html>
|
@@ -1,6 +1,13 @@
|
|
1
1
|
<footer class="main-footer">
|
2
|
-
<div class="
|
3
|
-
<
|
2
|
+
<div class="row">
|
3
|
+
<div class="col-md-6"><strong>Copyright © 2015-2016 <a href="http://camaleon.tuzitio.com">Camaleon CMS.</a> </strong>.</div>
|
4
|
+
<div class="col-md-6 hidden-xs">
|
5
|
+
<div class="pull-left">
|
6
|
+
<a id="link_see_intro" href="#" onclick="init_intro(); return false;"><i class="fa fa-tv"></i> See Intro.</a>
|
7
|
+
</div>
|
8
|
+
<div class="pull-right">
|
9
|
+
<b>Version</b><%= CamaleonCms::VERSION %>
|
10
|
+
</div>
|
11
|
+
</div>
|
4
12
|
</div>
|
5
|
-
<strong>Copyright © 2015-2016 <a href="http://camaleon.tuzitio.com">Camaleon CMS.</a> </strong>.
|
6
13
|
</footer>
|
@@ -18,7 +18,7 @@
|
|
18
18
|
<%= r = {html: ""}; hooks_run("admin_notifications", r); raw(r[:html]); %>
|
19
19
|
<li><a target="_blank" href="<%= current_site.the_url %>"><i class="fa fa-eye"></i> <%= t("common.visit") %></a></li>
|
20
20
|
<li class="dropdown user user-menu">
|
21
|
-
<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-
|
21
|
+
<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-intro2='<%= t("admin.intro.profile") %>' data-position='left'>
|
22
22
|
<img src="<%= current_user.the_avatar %>" class="user-image" alt="User Image">
|
23
23
|
<span class="hidden-xs"><%= current_user.fullname %></span>
|
24
24
|
<span class="caret"></span>
|
@@ -0,0 +1,128 @@
|
|
1
|
+
include SessionHelper
|
2
|
+
include SiteHelper
|
3
|
+
include HooksHelper
|
4
|
+
|
5
|
+
Doorkeeper.configure do
|
6
|
+
# Change the ORM that doorkeeper will use (needs plugins)
|
7
|
+
orm :active_record
|
8
|
+
default_scopes :public, :admin, :client
|
9
|
+
|
10
|
+
resource_owner_from_credentials do |routes|
|
11
|
+
login_user_with_password(params[:username], params[:password])
|
12
|
+
end
|
13
|
+
|
14
|
+
# This block will be called to check whether the resource owner is authenticated or not.
|
15
|
+
# resource_owner_authenticator do
|
16
|
+
# User.find_by_id(session[:current_user_id]) || redirect_to(login_url)
|
17
|
+
# fail "Please configure doorkeeper resource_owner_authenticator block located in #{__FILE__}"
|
18
|
+
# Put your resource owner authentication logic here.
|
19
|
+
# Example implementation:
|
20
|
+
# User.find_by_id(session[:user_id]) || redirect_to(new_user_session_url)
|
21
|
+
# end
|
22
|
+
|
23
|
+
# If you want to restrict access to the web interface for adding oauth authorized applications, you need to declare the block below.
|
24
|
+
admin_authenticator do
|
25
|
+
begin
|
26
|
+
authorize! :manager, :comments
|
27
|
+
rescue CanCan::AccessDenied
|
28
|
+
redirect_to admin_dashboard_path
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
# Authorization Code expiration time (default 10 minutes).
|
33
|
+
# authorization_code_expires_in 10.minutes
|
34
|
+
|
35
|
+
# Access token expiration time (default 2 hours).
|
36
|
+
# If you want to disable expiration, set this to nil.
|
37
|
+
# access_token_expires_in 2.hours
|
38
|
+
|
39
|
+
# Assign a custom TTL for implicit grants.
|
40
|
+
# custom_access_token_expires_in do |oauth_client|
|
41
|
+
# oauth_client.application.additional_settings.implicit_oauth_expiration
|
42
|
+
# end
|
43
|
+
|
44
|
+
# Use a custom class for generating the access token.
|
45
|
+
# https://github.com/doorkeeper-gem/doorkeeper#custom-access-token-generator
|
46
|
+
# access_token_generator "::Doorkeeper::JWT"
|
47
|
+
|
48
|
+
# Reuse access token for the same resource owner within an application (disabled by default)
|
49
|
+
# Rationale: https://github.com/doorkeeper-gem/doorkeeper/issues/383
|
50
|
+
# reuse_access_token
|
51
|
+
|
52
|
+
# Issue access tokens with refresh token (disabled by default)
|
53
|
+
# use_refresh_token
|
54
|
+
|
55
|
+
# Provide support for an owner to be assigned to each registered application (disabled by default)
|
56
|
+
# Optional parameter :confirmation => true (default false) if you want to enforce ownership of
|
57
|
+
# a registered application
|
58
|
+
# Note: you must also run the rails g doorkeeper:application_owner generator to provide the necessary support
|
59
|
+
# enable_application_owner :confirmation => false
|
60
|
+
|
61
|
+
# Define access token scopes for your provider
|
62
|
+
# For more information go to
|
63
|
+
# https://github.com/doorkeeper-gem/doorkeeper/wiki/Using-Scopes
|
64
|
+
# default_scopes :public
|
65
|
+
# optional_scopes :write, :update
|
66
|
+
|
67
|
+
# Change the way client credentials are retrieved from the request object.
|
68
|
+
# By default it retrieves first from the `HTTP_AUTHORIZATION` header, then
|
69
|
+
# falls back to the `:client_id` and `:client_secret` params from the `params` object.
|
70
|
+
# Check out the wiki for more information on customization
|
71
|
+
# client_credentials :from_basic, :from_params
|
72
|
+
|
73
|
+
# Change the way access token is authenticated from the request object.
|
74
|
+
# By default it retrieves first from the `HTTP_AUTHORIZATION` header, then
|
75
|
+
# falls back to the `:access_token` or `:bearer_token` params from the `params` object.
|
76
|
+
# Check out the wiki for more information on customization
|
77
|
+
# access_token_methods :from_bearer_authorization, :from_access_token_param, :from_bearer_param
|
78
|
+
|
79
|
+
# Change the native redirect uri for client apps
|
80
|
+
# When clients register with the following redirect uri, they won't be redirected to any server and the authorization code will be displayed within the provider
|
81
|
+
# The value can be any string. Use nil to disable this feature. When disabled, clients must provide a valid URL
|
82
|
+
# (Similar behaviour: https://developers.google.com/accounts/docs/OAuth2InstalledApp#choosingredirecturi)
|
83
|
+
#
|
84
|
+
# native_redirect_uri 'urn:ietf:wg:oauth:2.0:oob'
|
85
|
+
|
86
|
+
# Forces the usage of the HTTPS protocol in non-native redirect uris (enabled
|
87
|
+
# by default in non-development environments). OAuth2 delegates security in
|
88
|
+
# communication to the HTTPS protocol so it is wise to keep this enabled.
|
89
|
+
#
|
90
|
+
# force_ssl_in_redirect_uri !Rails.env.development?
|
91
|
+
|
92
|
+
# Specify what grant flows are enabled in array of Strings. The valid
|
93
|
+
# strings and the flows they enable are:
|
94
|
+
|
95
|
+
#
|
96
|
+
# "authorization_code" => Authorization Code Grant Flow
|
97
|
+
# "implicit" => Implicit Grant Flow
|
98
|
+
# "password" => Resource Owner Password Credentials Grant Flow
|
99
|
+
# "client_credentials" => Client Credentials Grant Flow
|
100
|
+
#
|
101
|
+
# If not specified, Doorkeeper enables authorization_code and
|
102
|
+
# client_credentials.
|
103
|
+
#
|
104
|
+
# implicit and password grant flows have risks that you should understand
|
105
|
+
# before enabling:
|
106
|
+
# http://tools.ietf.org/html/rfc6819#section-4.4.2
|
107
|
+
# http://tools.ietf.org/html/rfc6819#section-4.4.3
|
108
|
+
#
|
109
|
+
grant_flows %w(password)
|
110
|
+
|
111
|
+
# Under some circumstances you might want to have applications auto-approved,
|
112
|
+
# so that the user skips the authorization step.
|
113
|
+
# For example if dealing with a trusted application.
|
114
|
+
skip_authorization do |resource_owner, client|
|
115
|
+
# client.superapp? or resource_owner.admin?
|
116
|
+
true
|
117
|
+
end
|
118
|
+
|
119
|
+
# skip_authorization do |resource_owner, client|
|
120
|
+
# client.superapp? or resource_owner.admin?
|
121
|
+
# true
|
122
|
+
# end
|
123
|
+
|
124
|
+
# WWW-Authenticate Realm (default "Doorkeeper").
|
125
|
+
# realm "Doorkeeper"
|
126
|
+
|
127
|
+
# configuration.token_grant_types << 'password'
|
128
|
+
end
|
@@ -15,9 +15,9 @@ end
|
|
15
15
|
|
16
16
|
if loaded_rufus
|
17
17
|
$scheduler = Rufus::Scheduler.singleton
|
18
|
-
$scheduler.cron '00 05 * * *' do
|
19
|
-
|
20
|
-
end
|
18
|
+
# $scheduler.cron '00 05 * * *' do
|
19
|
+
#
|
20
|
+
# end
|
21
21
|
|
22
22
|
sites = Site.all rescue []
|
23
23
|
sites.each do |site|
|
data/config/initializers/sass.rb
CHANGED
@@ -1,65 +1,3 @@
|
|
1
|
-
# module Sass::Script::Functions
|
2
|
-
# # similar to asset_path with prefix for current theme asset
|
3
|
-
# # def theme_path(path, options = {})
|
4
|
-
# # asset_path("#{get_theme_prefix}#{path}", options)
|
5
|
-
# # end
|
6
|
-
#
|
7
|
-
# # similar to asset_url with prefix for current theme asset
|
8
|
-
# def theme_asset(path, options = {})
|
9
|
-
# asset_url("#{get_theme_prefix}#{path}", options)
|
10
|
-
# end
|
11
|
-
#
|
12
|
-
# # similar to asset_url with prefix for current theme asset
|
13
|
-
# def asset_owencio(path, options = {})
|
14
|
-
# puts "*****************************"
|
15
|
-
# puts "*****************************"
|
16
|
-
# puts "*****************************"
|
17
|
-
# puts "*****************************"
|
18
|
-
# puts "*****************************"
|
19
|
-
# puts "*****************************"
|
20
|
-
# puts "*****************************"
|
21
|
-
# puts "*****************************"
|
22
|
-
# puts "*****************************"
|
23
|
-
# puts "*****************************"
|
24
|
-
# puts "*****************************"
|
25
|
-
# puts "*****************************"
|
26
|
-
# asset_url("#{get_theme_prefix}#{path}", options)
|
27
|
-
# Autoload::Sass::Script::String.new("url(#{asset_path("#{get_theme_prefix}#{path}", options)})")
|
28
|
-
# end
|
29
|
-
#
|
30
|
-
# # # similar to asset_path with prefix for current plugin asset
|
31
|
-
# # def plugin_path(path, options = {})
|
32
|
-
# # asset_path("#{get_plugin_prefix}#{path}", options)
|
33
|
-
# # end
|
34
|
-
#
|
35
|
-
# # similar to asset_url with prefix for current plugin asset
|
36
|
-
# def plugin_asset(path, options = {})
|
37
|
-
# asset_url("#{get_plugin_prefix}#{path}", options)
|
38
|
-
# end
|
39
|
-
#
|
40
|
-
# private
|
41
|
-
# # get plugin asset prefix
|
42
|
-
# def get_plugin_prefix
|
43
|
-
# file = sprockets_context.filename
|
44
|
-
# res = ""
|
45
|
-
# if file.include?("/app/apps/plugins/")
|
46
|
-
# res = "themes/#{file.split("/app/apps/plugins/").last.split("/").first}/assets/"
|
47
|
-
# end
|
48
|
-
# res
|
49
|
-
# end
|
50
|
-
#
|
51
|
-
# # get theme asset prefix
|
52
|
-
# def get_theme_prefix
|
53
|
-
# file = sprockets_context.filename
|
54
|
-
# res = ""
|
55
|
-
# if file.include?("/app/apps/themes/")
|
56
|
-
# res = "themes/#{file.split("/app/apps/themes/").last.split("/").first}/assets/"
|
57
|
-
# end
|
58
|
-
# res
|
59
|
-
# end
|
60
|
-
# end
|
61
|
-
|
62
|
-
|
63
1
|
module Sprockets
|
64
2
|
# Processor engine class for the SASS/SCSS compiler. Depends on the `sass` gem.
|
65
3
|
#
|
data/config/locales/admin/en.yml
CHANGED
@@ -318,7 +318,8 @@ en:
|
|
318
318
|
author: "Author Name"
|
319
319
|
seo_setting: "Seo Settings"
|
320
320
|
email_settings: "Email Settings (SMTP)"
|
321
|
-
|
321
|
+
security:
|
322
|
+
captcha_user_register: "Enable captcha on user registration?"
|
322
323
|
message:
|
323
324
|
language_updated: 'Your languages was configured.'
|
324
325
|
site_updated: 'The site has been updated.'
|
@@ -587,7 +588,7 @@ en:
|
|
587
588
|
not_registered_widgets: 'There are no registered widgets'
|
588
589
|
intro:
|
589
590
|
profile: "In this place you can see your profile options."
|
590
|
-
content: "This block contains all content groups of your site. Each content can have different structure configured in settings =>
|
591
|
+
content: "This block contains all content groups of your site. Each content can have different structure configured in settings => Content Groups"
|
591
592
|
#dashboard: "In this section you can see "
|
592
593
|
media: "This section manage your all your public media files"
|
593
594
|
comments: "This section manage all the comments of your contents"
|
data/config/locales/admin/es.yml
CHANGED
@@ -316,6 +316,8 @@ es:
|
|
316
316
|
author: "Nombre de Autor"
|
317
317
|
seo_setting: "Posicionamiento Web."
|
318
318
|
email_settings: "Configuración de Correo (SMTP)"
|
319
|
+
security:
|
320
|
+
captcha_user_register: "¿Activar captcha en el registro de usuarios?"
|
319
321
|
message:
|
320
322
|
language_updated: 'Tus idiomas se han configurado.'
|
321
323
|
site_updated: 'El sitio ha sido actualizado.'
|
data/config/locales/admin/js.yml
CHANGED
@@ -19,6 +19,7 @@ en:
|
|
19
19
|
permalink: 'Permalink'
|
20
20
|
recover: 'Recovering...'
|
21
21
|
type_contents: 'Type Contents'
|
22
|
+
confirm_del: "Are you sure to delete this item?"
|
22
23
|
|
23
24
|
button:
|
24
25
|
edit: "Edit"
|
@@ -29,18 +30,8 @@ en:
|
|
29
30
|
add_tag: 'Add Tag'
|
30
31
|
close: 'Close'
|
31
32
|
settings: 'Settings'
|
32
|
-
|
33
|
-
|
34
|
-
use_tpl: "Use Template"
|
35
|
-
save_tpl: "Save as template"
|
36
|
-
list: "List of templates"
|
37
|
-
text_editor: "Text Editor"
|
38
|
-
blocks: "Blocks"
|
39
|
-
contents: "Content Elements"
|
40
|
-
toggle_editor: "Are you sure to leave this editor?"
|
41
|
-
del_block: "Are you sure to delete this block?"
|
42
|
-
del_content: "Are you sure to delete this content?"
|
43
|
-
clear_editor: "Are you sure to clear the editor?"
|
33
|
+
save: "Save"
|
34
|
+
submit: "Submit"
|
44
35
|
|
45
36
|
es:
|
46
37
|
admin:
|
@@ -70,6 +61,7 @@ es:
|
|
70
61
|
processing: 'Procesando...'
|
71
62
|
type_contents: 'Tipo de Contenidos'
|
72
63
|
upload_image: 'Subir Imagen'
|
64
|
+
confirm_del: "Esta seguro de eliminar este item?"
|
73
65
|
button:
|
74
66
|
edit: "Edit"
|
75
67
|
accept: "Accept"
|
@@ -79,19 +71,8 @@ es:
|
|
79
71
|
close: 'Cerrar'
|
80
72
|
add_tag: 'Agregar Etiqueta'
|
81
73
|
settings: 'Configuración'
|
82
|
-
|
83
|
-
|
84
|
-
templates: "Plantillas"
|
85
|
-
use_tpl: "Use Template"
|
86
|
-
save_tpl: "Guardar como plnatilla"
|
87
|
-
list: "Lista de plantillas"
|
88
|
-
text_editor: "Editor de Texto"
|
89
|
-
blocks: "Bloques"
|
90
|
-
contents: "Contenidos"
|
91
|
-
toggle_editor: "Esta seguro de abandonar este editor?"
|
92
|
-
del_block: "Esta seguro de eliminar este bloque?"
|
93
|
-
del_content: "Esta seguro de eliminar este contenido?"
|
94
|
-
clear_editor: "Esta seguro de limpiar el editor?"
|
74
|
+
save: "Guardar"
|
75
|
+
submit: "Ingresar"
|
95
76
|
|
96
77
|
it:
|
97
78
|
admin:
|
@@ -123,6 +104,7 @@ it:
|
|
123
104
|
processing: 'Caricamento...'
|
124
105
|
type_contents: 'Type Contents'
|
125
106
|
upload_image: 'Carica Immagine'
|
107
|
+
confirm_del: "Sei sicuro di voler eliminare l'articolo?"
|
126
108
|
button:
|
127
109
|
edit: "Edit"
|
128
110
|
accept: "Accept"
|
@@ -132,16 +114,5 @@ it:
|
|
132
114
|
add_tag: 'Aggiungi Tag'
|
133
115
|
close: 'Chiudi'
|
134
116
|
settings: 'Impostazioni'
|
135
|
-
|
136
|
-
|
137
|
-
templates: "Modelli"
|
138
|
-
use_tpl: "Use Template"
|
139
|
-
save_tpl: "Salva come modello"
|
140
|
-
list: "Elenco dei modelli"
|
141
|
-
text_editor: "Editor di testo"
|
142
|
-
blocks: "Blocchi"
|
143
|
-
contents: "Contenuto"
|
144
|
-
toggle_editor: "Sei sicuro di voler lasciare questo editor?"
|
145
|
-
del_block: "Sei sicuro di voler eliminare questo blocco?"
|
146
|
-
del_content: "Sei sicuro di voler cancellare questo contenuto?"
|
147
|
-
clear_editor: "Sei sicuro di voler cancellare l'editor?"
|
117
|
+
save: "Salvare"
|
118
|
+
submit: "Presentare"
|