cmor_cms_backend 0.0.55.pre → 0.0.56.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/cmor/cms/backend/content_boxes_controller.rb +6 -0
- data/app/controllers/cmor/cms/backend/layouts_controller.rb +5 -0
- data/app/controllers/cmor/cms/backend/navigation_items_controller.rb +5 -0
- data/app/controllers/cmor/cms/backend/navigations_controller.rb +6 -0
- data/app/controllers/cmor/cms/backend/pages_controller.rb +5 -0
- data/app/controllers/cmor/cms/backend/partials_controller.rb +5 -0
- data/app/controllers/cmor/cms/backend/templates_controller.rb +5 -0
- data/config/routes.rb +12 -2
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49824efb09ba8fcec635c50a8f3919afb5c25d0d90635c7cfbd8db310ae243b4
|
4
|
+
data.tar.gz: 201829b3dc94f47ca905e1c7d68790a83bca355d773eff9e7740d5e1612f6fac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 984ec0877888d6f131ee4106125ca685a208558e3fa6021a14174f5ae3ae2ae33e71d21555830754ec38787ca4cfe07a41ebe49d7a6d85c6752515f0754de4f8
|
7
|
+
data.tar.gz: 8876ed4b3fd5e850263825bccc1e1f3384e5b8b2a9fafbe3ff50fb1cacb031b94fe3cf044ba9dd1c1d7e76582953b5628fb5b855b4087cac2ebf8c8e34b61d9d
|
@@ -1,8 +1,14 @@
|
|
1
1
|
class Cmor::Cms::Backend::ContentBoxesController < Cmor::Core::Backend::ResourcesController::Base
|
2
|
+
include Cmor::Transports::ResourcesController::ExportConcern if Cmor::Core.features?(:cmor_transports)
|
3
|
+
|
2
4
|
def self.resource_class
|
3
5
|
Cmor::Cms::ContentBox
|
4
6
|
end
|
5
7
|
|
8
|
+
def self.available_rest_actions
|
9
|
+
super + [:export]
|
10
|
+
end
|
11
|
+
|
6
12
|
private
|
7
13
|
|
8
14
|
def permitted_params
|
@@ -2,12 +2,17 @@ module Cmor
|
|
2
2
|
module Cms
|
3
3
|
module Backend
|
4
4
|
class LayoutsController < Cmor::Core::Backend::ResourcesController::Base
|
5
|
+
include Cmor::Transports::ResourcesController::ExportConcern if Cmor::Core.features?(:cmor_transports)
|
5
6
|
include Rao::ResourcesController::ActsAsPublishedConcern
|
6
7
|
|
7
8
|
def self.resource_class
|
8
9
|
Cmor::Cms::Layout
|
9
10
|
end
|
10
11
|
|
12
|
+
def self.available_rest_actions
|
13
|
+
super + [:export]
|
14
|
+
end
|
15
|
+
|
11
16
|
private
|
12
17
|
|
13
18
|
def permitted_params
|
@@ -4,11 +4,16 @@ module Cmor
|
|
4
4
|
class NavigationItemsController < Cmor::Core::Backend::ResourcesController::Base
|
5
5
|
include Rao::ResourcesController::AwesomeNestedSetConcern
|
6
6
|
include Rao::ResourcesController::ActsAsPublishedConcern
|
7
|
+
include Cmor::Transports::ResourcesController::ExportConcern if Cmor::Core.features?(:cmor_transports)
|
7
8
|
|
8
9
|
def self.resource_class
|
9
10
|
Cmor::Cms::NavigationItem
|
10
11
|
end
|
11
12
|
|
13
|
+
def self.available_rest_actions
|
14
|
+
super + [:export]
|
15
|
+
end
|
16
|
+
|
12
17
|
private
|
13
18
|
|
14
19
|
def load_collection_scope
|
@@ -1,8 +1,14 @@
|
|
1
1
|
class Cmor::Cms::Backend::NavigationsController < Cmor::Core::Backend::ResourcesController::Base
|
2
|
+
include Cmor::Transports::ResourcesController::ExportConcern if Cmor::Core.features?(:cmor_transports)
|
3
|
+
|
2
4
|
def self.resource_class
|
3
5
|
Cmor::Cms::Navigation
|
4
6
|
end
|
5
7
|
|
8
|
+
def self.available_rest_actions
|
9
|
+
super + [:export]
|
10
|
+
end
|
11
|
+
|
6
12
|
private
|
7
13
|
|
8
14
|
def permitted_params
|
@@ -2,12 +2,17 @@ module Cmor
|
|
2
2
|
module Cms
|
3
3
|
module Backend
|
4
4
|
class PagesController < Cmor::Core::Backend::ResourcesController::Base
|
5
|
+
include Cmor::Transports::ResourcesController::ExportConcern if Cmor::Core.features?(:cmor_transports)
|
5
6
|
include Rao::ResourcesController::ActsAsPublishedConcern
|
6
7
|
|
7
8
|
def self.resource_class
|
8
9
|
Cmor::Cms::Page
|
9
10
|
end
|
10
11
|
|
12
|
+
def self.available_rest_actions
|
13
|
+
super + [:export]
|
14
|
+
end
|
15
|
+
|
11
16
|
private
|
12
17
|
|
13
18
|
def permitted_params
|
@@ -2,12 +2,17 @@ module Cmor
|
|
2
2
|
module Cms
|
3
3
|
module Backend
|
4
4
|
class PartialsController < Cmor::Core::Backend::ResourcesController::Base
|
5
|
+
include Cmor::Transports::ResourcesController::ExportConcern if Cmor::Core.features?(:cmor_transports)
|
5
6
|
include Rao::ResourcesController::ActsAsPublishedConcern
|
6
7
|
|
7
8
|
def self.resource_class
|
8
9
|
Cmor::Cms::Partial
|
9
10
|
end
|
10
11
|
|
12
|
+
def self.available_rest_actions
|
13
|
+
super + [:export]
|
14
|
+
end
|
15
|
+
|
11
16
|
private
|
12
17
|
|
13
18
|
def permitted_params
|
@@ -2,12 +2,17 @@ module Cmor
|
|
2
2
|
module Cms
|
3
3
|
module Backend
|
4
4
|
class TemplatesController < Cmor::Core::Backend::ResourcesController::Base
|
5
|
+
include Cmor::Transports::ResourcesController::ExportConcern if Cmor::Core.features?(:cmor_transports)
|
5
6
|
include Rao::ResourcesController::ActsAsPublishedConcern
|
6
7
|
|
7
8
|
def self.resource_class
|
8
9
|
Cmor::Cms::Template
|
9
10
|
end
|
10
11
|
|
12
|
+
def self.available_rest_actions
|
13
|
+
super + [:export]
|
14
|
+
end
|
15
|
+
|
11
16
|
private
|
12
17
|
|
13
18
|
def permitted_params
|
data/config/routes.rb
CHANGED
@@ -2,27 +2,37 @@ Cmor::Cms::Backend::Engine.routes.draw do
|
|
2
2
|
resources :add_homepages_service, only: [:create, :new]
|
3
3
|
resources :import_partials_service, only: [:create, :new]
|
4
4
|
|
5
|
-
resources :content_boxes
|
6
|
-
|
5
|
+
resources :content_boxes do
|
6
|
+
Cmor::Core::Backend::Routing::ResourcesRoutes.inject_routes(self)
|
7
|
+
end
|
8
|
+
|
9
|
+
resources :navigations do
|
10
|
+
Cmor::Core::Backend::Routing::ResourcesRoutes.inject_routes(self)
|
11
|
+
end
|
7
12
|
|
8
13
|
resources :navigation_items do
|
14
|
+
Cmor::Core::Backend::Routing::ResourcesRoutes.inject_routes(self)
|
9
15
|
post :toggle_published, on: :member
|
10
16
|
post :reposition, on: :member
|
11
17
|
end
|
12
18
|
|
13
19
|
resources :layouts do
|
20
|
+
Cmor::Core::Backend::Routing::ResourcesRoutes.inject_routes(self)
|
14
21
|
post :toggle_published, on: :member
|
15
22
|
end
|
16
23
|
|
17
24
|
resources :pages do
|
25
|
+
Cmor::Core::Backend::Routing::ResourcesRoutes.inject_routes(self)
|
18
26
|
post :toggle_published, on: :member
|
19
27
|
end
|
20
28
|
|
21
29
|
resources :partials do
|
30
|
+
Cmor::Core::Backend::Routing::ResourcesRoutes.inject_routes(self)
|
22
31
|
post :toggle_published, on: :member
|
23
32
|
end
|
24
33
|
|
25
34
|
resources :templates do
|
35
|
+
Cmor::Core::Backend::Routing::ResourcesRoutes.inject_routes(self)
|
26
36
|
post :toggle_published, on: :member
|
27
37
|
end
|
28
38
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmor_cms_backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.56.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.0.
|
33
|
+
version: 0.0.56.pre
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.0.
|
40
|
+
version: 0.0.56.pre
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: cmor_core_backend
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.0.
|
47
|
+
version: 0.0.56.pre
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.0.
|
54
|
+
version: 0.0.56.pre
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: sqlite3
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -324,14 +324,14 @@ dependencies:
|
|
324
324
|
requirements:
|
325
325
|
- - '='
|
326
326
|
- !ruby/object:Gem::Version
|
327
|
-
version: 0.0.
|
327
|
+
version: 0.0.56.pre
|
328
328
|
type: :runtime
|
329
329
|
prerelease: false
|
330
330
|
version_requirements: !ruby/object:Gem::Requirement
|
331
331
|
requirements:
|
332
332
|
- - '='
|
333
333
|
- !ruby/object:Gem::Version
|
334
|
-
version: 0.0.
|
334
|
+
version: 0.0.56.pre
|
335
335
|
description: Provides a Backend for CMOR CMS
|
336
336
|
email:
|
337
337
|
- roberto@vasquez-angel.de
|