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
@@ -0,0 +1,123 @@
|
|
1
|
+
en:
|
2
|
+
activerecord:
|
3
|
+
attributes:
|
4
|
+
doorkeeper/application:
|
5
|
+
name: 'Name'
|
6
|
+
redirect_uri: 'Redirect URI'
|
7
|
+
errors:
|
8
|
+
models:
|
9
|
+
doorkeeper/application:
|
10
|
+
attributes:
|
11
|
+
redirect_uri:
|
12
|
+
fragment_present: 'cannot contain a fragment.'
|
13
|
+
invalid_uri: 'must be a valid URI.'
|
14
|
+
relative_uri: 'must be an absolute URI.'
|
15
|
+
secured_uri: 'must be an HTTPS/SSL URI.'
|
16
|
+
|
17
|
+
doorkeeper:
|
18
|
+
applications:
|
19
|
+
confirmations:
|
20
|
+
destroy: 'Are you sure?'
|
21
|
+
buttons:
|
22
|
+
edit: 'Edit'
|
23
|
+
destroy: 'Destroy'
|
24
|
+
submit: 'Submit'
|
25
|
+
cancel: 'Cancel'
|
26
|
+
authorize: 'Authorize'
|
27
|
+
form:
|
28
|
+
error: 'Whoops! Check your form for possible errors'
|
29
|
+
help:
|
30
|
+
redirect_uri: 'Use one line per URI'
|
31
|
+
native_redirect_uri: 'Use %{native_redirect_uri} for local tests'
|
32
|
+
scopes: 'Separate scopes with spaces. Leave blank to use the default scopes.'
|
33
|
+
edit:
|
34
|
+
title: 'Edit application'
|
35
|
+
index:
|
36
|
+
title: 'Your applications'
|
37
|
+
new: 'New Application'
|
38
|
+
name: 'Name'
|
39
|
+
callback_url: 'Callback URL'
|
40
|
+
new:
|
41
|
+
title: 'New Application'
|
42
|
+
show:
|
43
|
+
title: 'Application: %{name}'
|
44
|
+
application_id: 'Application Id'
|
45
|
+
secret: 'Secret'
|
46
|
+
scopes: 'Scopes'
|
47
|
+
callback_urls: 'Callback urls'
|
48
|
+
actions: 'Actions'
|
49
|
+
|
50
|
+
authorizations:
|
51
|
+
buttons:
|
52
|
+
authorize: 'Authorize'
|
53
|
+
deny: 'Deny'
|
54
|
+
error:
|
55
|
+
title: 'An error has occurred'
|
56
|
+
new:
|
57
|
+
title: 'Authorization required'
|
58
|
+
prompt: 'Authorize %{client_name} to use your account?'
|
59
|
+
able_to: 'This application will be able to'
|
60
|
+
show:
|
61
|
+
title: 'Authorization code'
|
62
|
+
|
63
|
+
authorized_applications:
|
64
|
+
confirmations:
|
65
|
+
revoke: 'Are you sure?'
|
66
|
+
buttons:
|
67
|
+
revoke: 'Revoke'
|
68
|
+
index:
|
69
|
+
title: 'Your authorized applications'
|
70
|
+
application: 'Application'
|
71
|
+
created_at: 'Created At'
|
72
|
+
date_format: '%Y-%m-%d %H:%M:%S'
|
73
|
+
|
74
|
+
errors:
|
75
|
+
messages:
|
76
|
+
# Common error messages
|
77
|
+
invalid_request: 'The request is missing a required parameter, includes an unsupported parameter value, or is otherwise malformed.'
|
78
|
+
invalid_redirect_uri: 'The redirect uri included is not valid.'
|
79
|
+
unauthorized_client: 'The client is not authorized to perform this request using this method.'
|
80
|
+
access_denied: 'The resource owner or authorization server denied the request.'
|
81
|
+
invalid_scope: 'The requested scope is invalid, unknown, or malformed.'
|
82
|
+
server_error: 'The authorization server encountered an unexpected condition which prevented it from fulfilling the request.'
|
83
|
+
temporarily_unavailable: 'The authorization server is currently unable to handle the request due to a temporary overloading or maintenance of the server.'
|
84
|
+
|
85
|
+
#configuration error messages
|
86
|
+
credential_flow_not_configured: 'Resource Owner Password Credentials flow failed due to Doorkeeper.configure.resource_owner_from_credentials being unconfigured.'
|
87
|
+
resource_owner_authenticator_not_configured: 'Resource Owner find failed due to Doorkeeper.configure.resource_owner_authenticator being unconfiged.'
|
88
|
+
|
89
|
+
# Access grant errors
|
90
|
+
unsupported_response_type: 'The authorization server does not support this response type.'
|
91
|
+
|
92
|
+
# Access token errors
|
93
|
+
invalid_client: 'Client authentication failed due to unknown client, no client authentication included, or unsupported authentication method.'
|
94
|
+
invalid_grant: 'The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.'
|
95
|
+
unsupported_grant_type: 'The authorization grant type is not supported by the authorization server.'
|
96
|
+
|
97
|
+
# Password Access token errors
|
98
|
+
invalid_resource_owner: 'The provided resource owner credentials are not valid, or resource owner cannot be found'
|
99
|
+
|
100
|
+
invalid_token:
|
101
|
+
revoked: "The access token was revoked"
|
102
|
+
expired: "The access token expired"
|
103
|
+
unknown: "The access token is invalid"
|
104
|
+
|
105
|
+
flash:
|
106
|
+
applications:
|
107
|
+
create:
|
108
|
+
notice: 'Application created.'
|
109
|
+
destroy:
|
110
|
+
notice: 'Application deleted.'
|
111
|
+
update:
|
112
|
+
notice: 'Application updated.'
|
113
|
+
authorized_applications:
|
114
|
+
destroy:
|
115
|
+
notice: 'Application revoked.'
|
116
|
+
|
117
|
+
layouts:
|
118
|
+
admin:
|
119
|
+
nav:
|
120
|
+
oauth2_provider: 'OAuth2 Provider'
|
121
|
+
applications: 'Applications'
|
122
|
+
application:
|
123
|
+
title: 'OAuth authorization required'
|
data/config/routes.rb
CHANGED
@@ -1,4 +1,16 @@
|
|
1
1
|
Rails.application.routes.draw do
|
2
|
+
use_doorkeeper
|
3
|
+
|
4
|
+
namespace :api do
|
5
|
+
get 'account' => 'api#account'
|
6
|
+
|
7
|
+
namespace :v1 do
|
8
|
+
get 'categories' => 'category#categories'
|
9
|
+
get 'posts' => 'post#index'
|
10
|
+
get 'pages' => 'page#index'
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
2
14
|
# root "application#index"
|
3
15
|
default_url_options :host => PluginRoutes.system_info["base_domain"]
|
4
16
|
|
data/config/routes/admin.rb
CHANGED
@@ -11,9 +11,6 @@ Rails.application.routes.draw do
|
|
11
11
|
match 'register' => 'sessions#register', via: [:get, :post, :patch]
|
12
12
|
match 'api/:method', action: :api, via: [:get, :post], as: :api
|
13
13
|
|
14
|
-
# grid editor administration
|
15
|
-
resources :grid_editor
|
16
|
-
|
17
14
|
resources :post_type , as: :post_type do
|
18
15
|
resources :posts, controller: 'posts' do
|
19
16
|
# resources :comments
|
@@ -0,0 +1,45 @@
|
|
1
|
+
class DoorkeeperConfiguration < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table "oauth_access_grants", force: :cascade do |t|
|
5
|
+
t.integer "resource_owner_id", null: false
|
6
|
+
t.integer "application_id", null: false
|
7
|
+
t.string "token", null: false
|
8
|
+
t.integer "expires_in", null: false
|
9
|
+
t.text "redirect_uri", null: false
|
10
|
+
t.datetime "created_at", null: false
|
11
|
+
t.datetime "revoked_at"
|
12
|
+
t.string "scopes"
|
13
|
+
end
|
14
|
+
|
15
|
+
add_index "oauth_access_grants", ["token"], name: "index_oauth_access_grants_on_token", unique: true, using: :btree
|
16
|
+
|
17
|
+
create_table "oauth_access_tokens", force: :cascade do |t|
|
18
|
+
t.integer "resource_owner_id"
|
19
|
+
t.integer "application_id"
|
20
|
+
t.string "token", null: false
|
21
|
+
t.string "refresh_token"
|
22
|
+
t.integer "expires_in"
|
23
|
+
t.datetime "revoked_at"
|
24
|
+
t.datetime "created_at", null: false
|
25
|
+
t.string "scopes"
|
26
|
+
end
|
27
|
+
|
28
|
+
add_index "oauth_access_tokens", ["refresh_token"], name: "index_oauth_access_tokens_on_refresh_token", unique: true, using: :btree
|
29
|
+
add_index "oauth_access_tokens", ["resource_owner_id"], name: "index_oauth_access_tokens_on_resource_owner_id", using: :btree
|
30
|
+
add_index "oauth_access_tokens", ["token"], name: "index_oauth_access_tokens_on_token", unique: true, using: :btree
|
31
|
+
|
32
|
+
create_table "oauth_applications", force: :cascade do |t|
|
33
|
+
t.string "name", null: false
|
34
|
+
t.string "uid", null: false
|
35
|
+
t.string "secret", null: false
|
36
|
+
t.text "redirect_uri", null: false
|
37
|
+
t.string "scopes", default: "", null: false
|
38
|
+
t.datetime "created_at"
|
39
|
+
t.datetime "updated_at"
|
40
|
+
end
|
41
|
+
|
42
|
+
add_index "oauth_applications", ["uid"], name: "index_oauth_applications_on_uid", unique: true, using: :btree
|
43
|
+
|
44
|
+
end
|
45
|
+
end
|
data/lib/camaleon_cms/engine.rb
CHANGED
@@ -12,6 +12,8 @@ require 'protected_attributes'
|
|
12
12
|
require 'rufus-scheduler'
|
13
13
|
require 'will_paginate'
|
14
14
|
require 'will_paginate-bootstrap'
|
15
|
+
require 'doorkeeper'
|
16
|
+
require 'responders'
|
15
17
|
|
16
18
|
$camaleon_engine_dir = File.expand_path("../../../", __FILE__)
|
17
19
|
require File.join($camaleon_engine_dir, "lib", "plugin_routes").to_s
|
data/lib/camaleon_cms/version.rb
CHANGED
data/lib/generators/camaleon_cms/gem_plugin_template/app/models/plugins/my_plugin/my_plugin.rb
CHANGED
@@ -1,12 +1,7 @@
|
|
1
|
-
# class Plugins::PluginClass::
|
1
|
+
# class Plugins::PluginClass::PluginClass < ActiveRecord::Base
|
2
2
|
# attr_accessible :path, :browser_key
|
3
3
|
# belongs_to :site
|
4
4
|
|
5
5
|
# here create your models normally
|
6
6
|
# notice: your tables in database will be plugins_pluginKey in plural (check rails documentation)
|
7
|
-
# end
|
8
|
-
|
9
|
-
# here your default models customization
|
10
|
-
# Site.class_eval do
|
11
|
-
# has_many :pluginKey, class_name: "Plugins::PluginClass::Models::PluginClass"
|
12
7
|
# end
|
@@ -4,9 +4,4 @@
|
|
4
4
|
|
5
5
|
# here create your models normally
|
6
6
|
# notice: your tables in database will be plugins_pluginKey in plural (check rails documentation)
|
7
|
-
# end
|
8
|
-
|
9
|
-
# here your default models customization
|
10
|
-
# Site.class_eval do
|
11
|
-
# has_many :pluginKey, class_name: "Plugins::PluginClass::Models::PluginClass"
|
12
7
|
# end
|
data/lib/plugin_routes.rb
CHANGED
@@ -105,14 +105,15 @@ class PluginRoutes
|
|
105
105
|
|
106
106
|
# reload routes
|
107
107
|
def self.reload
|
108
|
-
@@_vars.each {|v| class_variable_set("@@cache_#{v}", nil) }
|
108
|
+
@@_vars.each { |v| class_variable_set("@@cache_#{v}", nil) }
|
109
109
|
# WPRails::Application.routes_reloader.reload!
|
110
110
|
Rails.application.reload_routes!
|
111
111
|
end
|
112
112
|
|
113
113
|
# return all enabled plugins []
|
114
114
|
def self.enabled_plugins(site)
|
115
|
-
r = cache_variable("enable_plugins_site_#{site.id}")
|
115
|
+
r = cache_variable("enable_plugins_site_#{site.id}")
|
116
|
+
return r unless r.nil?
|
116
117
|
res = []
|
117
118
|
enabled_ps = site.plugins.active.pluck(:slug)
|
118
119
|
all_plugins.each do |plugin|
|
@@ -126,14 +127,15 @@ class PluginRoutes
|
|
126
127
|
# theme_slug: current theme slug
|
127
128
|
def self.enabled_apps(site, theme_slug = nil)
|
128
129
|
theme_slug = theme_slug || site.get_theme_slug
|
129
|
-
r = cache_variable("enabled_apps_#{site.id}_#{theme_slug}")
|
130
|
-
|
130
|
+
r = cache_variable("enabled_apps_#{site.id}_#{theme_slug}")
|
131
|
+
return r unless r.nil?
|
132
|
+
res = [system_info] + enabled_plugins(site) + [theme_info(theme_slug)]
|
131
133
|
cache_variable("enabled_apps_#{site.id}_#{theme_slug}", res)
|
132
134
|
end
|
133
135
|
|
134
136
|
# return all enabled apps as []: system, themes, plugins
|
135
137
|
def self.all_enabled_apps
|
136
|
-
[system_info
|
138
|
+
[system_info] + all_enabled_themes + all_enabled_plugins
|
137
139
|
end
|
138
140
|
|
139
141
|
# return all enabled themes (a theme is enabled if at least one site is assigned)
|
@@ -149,7 +151,8 @@ class PluginRoutes
|
|
149
151
|
|
150
152
|
# return all enabled plugins (a theme is enabled if at least one site has installed)
|
151
153
|
def self.all_enabled_plugins
|
152
|
-
r = cache_variable("all_enabled_plugins")
|
154
|
+
r = cache_variable("all_enabled_plugins")
|
155
|
+
return r unless r.nil?
|
153
156
|
res, enabled_ps = [], []
|
154
157
|
get_sites.each { |site| enabled_ps += site.plugins.active.pluck(:slug) }
|
155
158
|
all_plugins.each do |plugin|
|
@@ -172,7 +175,8 @@ class PluginRoutes
|
|
172
175
|
|
173
176
|
# all helpers of enabled plugins
|
174
177
|
def self.plugin_helpers
|
175
|
-
r = cache_variable("plugins_helper")
|
178
|
+
r = cache_variable("plugins_helper")
|
179
|
+
return r unless r.nil?
|
176
180
|
res = []
|
177
181
|
all_enabled_apps.each do |settings|
|
178
182
|
res += settings["helpers"] if settings["helpers"].present?
|
@@ -327,4 +331,4 @@ class PluginRoutes
|
|
327
331
|
rescue
|
328
332
|
Gem.available?(name)
|
329
333
|
end
|
330
|
-
end
|
334
|
+
end
|
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: 1.0.
|
4
|
+
version: 1.0.5
|
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: 2015-
|
11
|
+
date: 2015-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack-page_caching
|
@@ -192,6 +192,34 @@ dependencies:
|
|
192
192
|
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: doorkeeper
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - "~>"
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '3.0'
|
202
|
+
type: :runtime
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - "~>"
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '3.0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: responders
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - "~>"
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '2.0'
|
216
|
+
type: :runtime
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - "~>"
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '2.0'
|
195
223
|
description: Camaleon CMS is a dynamic and advanced content management system based
|
196
224
|
on Ruby on Rails 4 as an alternative to Wordpress.
|
197
225
|
email:
|
@@ -390,7 +418,6 @@ files:
|
|
390
418
|
- app/assets/javascripts/admin/form-builder/vendor.js
|
391
419
|
- app/assets/javascripts/admin/form/cropper.min.js
|
392
420
|
- app/assets/javascripts/admin/form/jquery.form.js
|
393
|
-
- app/assets/javascripts/admin/grid-editor.js
|
394
421
|
- app/assets/javascripts/admin/i18n.js
|
395
422
|
- app/assets/javascripts/admin/introjs/intro.min.js
|
396
423
|
- app/assets/javascripts/admin/it.js
|
@@ -450,12 +477,9 @@ files:
|
|
450
477
|
- app/assets/javascripts/admin/translator.js
|
451
478
|
- app/assets/javascripts/admin/underscore.js
|
452
479
|
- app/assets/javascripts/admin/widgets.js
|
453
|
-
- app/assets/javascripts/audio/alert.mp3
|
454
|
-
- app/assets/javascripts/audio/fail.mp3
|
455
480
|
- app/assets/javascripts/bootstrap.min.js
|
456
481
|
- app/assets/javascripts/elfinder_front.js
|
457
482
|
- app/assets/javascripts/gibberish-aes.js
|
458
|
-
- app/assets/javascripts/jquery-1.11.3.min.js
|
459
483
|
- app/assets/stylesheets/admin/admin-basic-manifest.css
|
460
484
|
- app/assets/stylesheets/admin/admin-manifest.css
|
461
485
|
- app/assets/stylesheets/admin/bootstrap-datepicker.css.scss
|
@@ -483,7 +507,6 @@ files:
|
|
483
507
|
- app/assets/stylesheets/admin/elfinder/images/ui-bg_highlight-soft_75_cccccc_1x100.png
|
484
508
|
- app/assets/stylesheets/admin/elfinder/images/ui-icons_222222_256x240.png
|
485
509
|
- app/assets/stylesheets/admin/form-builder/formbuilder.css
|
486
|
-
- app/assets/stylesheets/admin/grid-editor.css.scss
|
487
510
|
- app/assets/stylesheets/admin/img/bg.png
|
488
511
|
- app/assets/stylesheets/admin/img/colorpicker/alpha.png
|
489
512
|
- app/assets/stylesheets/admin/img/colorpicker/hue.png
|
@@ -530,33 +553,6 @@ files:
|
|
530
553
|
- app/assets/stylesheets/admin/tageditor/jquery.tag-editor.css.scss
|
531
554
|
- app/assets/stylesheets/admin/widgets.css.scss
|
532
555
|
- app/assets/stylesheets/bootstrap.min.css.scss
|
533
|
-
- app/assets/stylesheets/tinymce/plugins/youtubeIframe/css/style.css
|
534
|
-
- app/assets/stylesheets/tinymce/plugins/youtubeIframe/editor_plugin.js
|
535
|
-
- app/assets/stylesheets/tinymce/plugins/youtubeIframe/editor_plugin_src.js
|
536
|
-
- app/assets/stylesheets/tinymce/plugins/youtubeIframe/img/youtube.png
|
537
|
-
- app/assets/stylesheets/tinymce/plugins/youtubeIframe/index.html
|
538
|
-
- app/assets/stylesheets/tinymce/plugins/youtubeIframe/js/scripts.js
|
539
|
-
- app/assets/stylesheets/tinymce/plugins/youtubeIframe/js/scripts_src.js
|
540
|
-
- app/assets/stylesheets/tinymce/plugins/youtubeIframe/langs/en.js
|
541
|
-
- app/assets/stylesheets/tinymce/plugins/youtubeIframe/langs/en_dlg.js
|
542
|
-
- app/assets/stylesheets/tinymce/plugins/youtubeIframe/langs/es.js
|
543
|
-
- app/assets/stylesheets/tinymce/plugins/youtubeIframe/langs/es_dlg.js
|
544
|
-
- app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/bootstrap.css
|
545
|
-
- app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/content.css
|
546
|
-
- app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/dialog.css
|
547
|
-
- app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/img/butt2.png
|
548
|
-
- app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/img/button-bg.png
|
549
|
-
- app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/img/buttons.png
|
550
|
-
- app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/img/down_arrow.gif
|
551
|
-
- app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/img/fade-butt.png
|
552
|
-
- app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/img/icons.png
|
553
|
-
- app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/img/items.gif
|
554
|
-
- app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/img/menu-arrow.png
|
555
|
-
- app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/img/menu-check.png
|
556
|
-
- app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/img/progress.gif
|
557
|
-
- app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/img/tabs.gif
|
558
|
-
- app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/img/toolbarbg.png
|
559
|
-
- app/assets/stylesheets/tinymce/themes/advanced/skins/bootstrap/ui.css
|
560
556
|
- app/controllers/admin/appearances/nav_menus_controller.rb
|
561
557
|
- app/controllers/admin/appearances/themes_controller.rb
|
562
558
|
- app/controllers/admin/appearances/widgets/assign_controller.rb
|
@@ -565,7 +561,6 @@ files:
|
|
565
561
|
- app/controllers/admin/appearances_controller.rb
|
566
562
|
- app/controllers/admin/categories_controller.rb
|
567
563
|
- app/controllers/admin/comments_controller.rb
|
568
|
-
- app/controllers/admin/grid_editor_controller.rb
|
569
564
|
- app/controllers/admin/installers_controller.rb
|
570
565
|
- app/controllers/admin/media_controller.rb
|
571
566
|
- app/controllers/admin/plugins_controller.rb
|
@@ -580,6 +575,10 @@ files:
|
|
580
575
|
- app/controllers/admin/user_roles_controller.rb
|
581
576
|
- app/controllers/admin/users_controller.rb
|
582
577
|
- app/controllers/admin_controller.rb
|
578
|
+
- app/controllers/api/api_controller.rb
|
579
|
+
- app/controllers/api/v1/category_controller.rb
|
580
|
+
- app/controllers/api/v1/page_controller.rb
|
581
|
+
- app/controllers/api/v1/post_controller.rb
|
583
582
|
- app/controllers/apps/plugins_admin_controller.rb
|
584
583
|
- app/controllers/apps/plugins_front_controller.rb
|
585
584
|
- app/controllers/apps/themes_admin_controller.rb
|
@@ -678,8 +677,6 @@ files:
|
|
678
677
|
- app/views/admin/comments/index.html.erb
|
679
678
|
- app/views/admin/comments/reply.html.erb
|
680
679
|
- app/views/admin/dashboard/index.html.erb
|
681
|
-
- app/views/admin/grid_editor/form.html.erb
|
682
|
-
- app/views/admin/grid_editor/index.html.erb
|
683
680
|
- app/views/admin/installers/form.html.erb
|
684
681
|
- app/views/admin/installers/welcome.html.erb
|
685
682
|
- app/views/admin/media/iframe.html.erb
|
@@ -790,6 +787,7 @@ files:
|
|
790
787
|
- app/views/default_theme/single.html.erb
|
791
788
|
- app/views/default_theme/single.rss.builder
|
792
789
|
- app/views/default_theme/sitemap.html.erb
|
790
|
+
- app/views/default_theme/sitemap.xml.builder
|
793
791
|
- app/views/html_mailer/mailer.html.erb
|
794
792
|
- app/views/layouts/admin.html.erb
|
795
793
|
- app/views/layouts/admin/_ajax.html.erb
|
@@ -808,6 +806,7 @@ files:
|
|
808
806
|
- config/initializers/assets.rb
|
809
807
|
- config/initializers/cache_helper.rb
|
810
808
|
- config/initializers/custom_initializers.rb
|
809
|
+
- config/initializers/doorkeeper.rb
|
811
810
|
- config/initializers/elfinder.rb
|
812
811
|
- config/initializers/mobu.rb
|
813
812
|
- config/initializers/page_caching.rb
|
@@ -820,6 +819,7 @@ files:
|
|
820
819
|
- config/locales/ar.yml
|
821
820
|
- config/locales/common.yml
|
822
821
|
- config/locales/de.yml
|
822
|
+
- config/locales/doorkeeper.en.yml
|
823
823
|
- config/locales/en.yml
|
824
824
|
- config/locales/es.yml
|
825
825
|
- config/locales/fr.yml
|
@@ -831,10 +831,10 @@ files:
|
|
831
831
|
- config/routes.rb
|
832
832
|
- config/routes/admin.rb
|
833
833
|
- config/routes/frontend.rb
|
834
|
-
- config/sitemap.rb
|
835
834
|
- config/system.json
|
836
835
|
- db/migrate/20150611161134_post_table_into_utf8.rb
|
837
836
|
- db/migrate/20150926095310_rename_column_posts.rb
|
837
|
+
- db/migrate/20150930115030_doorkeeper_configuration.rb
|
838
838
|
- lib/camaleon_cms.rb
|
839
839
|
- lib/camaleon_cms/engine.rb
|
840
840
|
- lib/camaleon_cms/version.rb
|
@@ -866,14 +866,6 @@ files:
|
|
866
866
|
- lib/generators/camaleon_cms/gem_plugin_template/app/views/plugins/my_plugin/layouts/readme.txt
|
867
867
|
- lib/generators/camaleon_cms/gem_plugin_template/config/camaleon_plugin.json
|
868
868
|
- lib/generators/camaleon_cms/gem_theme_generator.rb
|
869
|
-
- lib/generators/camaleon_cms/gem_theme_template/app/controllers/plugins/my_plugin/admin_controller.rb
|
870
|
-
- lib/generators/camaleon_cms/gem_theme_template/app/controllers/plugins/my_plugin/front_controller.rb
|
871
|
-
- lib/generators/camaleon_cms/gem_theme_template/app/helpers/plugins/my_plugin/main_helper.rb
|
872
|
-
- lib/generators/camaleon_cms/gem_theme_template/app/models/plugins/my_plugin/my_plugin.rb
|
873
|
-
- lib/generators/camaleon_cms/gem_theme_template/app/views/plugins/my_plugin/admin/index.html.erb
|
874
|
-
- lib/generators/camaleon_cms/gem_theme_template/app/views/plugins/my_plugin/front/index.html.erb
|
875
|
-
- lib/generators/camaleon_cms/gem_theme_template/app/views/plugins/my_plugin/layouts/readme.txt
|
876
|
-
- lib/generators/camaleon_cms/gem_theme_template/config/camaleon_plugin.json
|
877
869
|
- lib/generators/camaleon_cms/install_generator.rb
|
878
870
|
- lib/generators/camaleon_cms/install_template/apps/plugins/readme.txt
|
879
871
|
- lib/generators/camaleon_cms/install_template/apps/themes/readme.txt
|