Module: Pageflow::Vr
- Defined in:
- lib/pageflow-vr.rb,
lib/pageflow/vr/engine.rb,
lib/pageflow/vr/plugin.rb,
lib/pageflow/vr/version.rb,
lib/pageflow/vr/projection_auto_detection.rb,
app/controllers/pageflow/vr/static_files_controller.rb
Defined Under Namespace
Classes: Engine, Plugin, ProjectionAutoDetection, StaticFilesController
Constant Summary
collapse
- PAGE_TYPE_THUMBNAIL_CANDIDATES =
[
{
attribute: 'thumbnail_image_id',
file_collection: 'image_files'
},
{
attribute: 'video_id',
file_collection: 'video_files'
}
]
- VERSION =
'1.0.0'
Class Method Summary
collapse
Class Method Details
.page_type ⇒ Object
20
21
22
23
|
# File 'lib/pageflow-vr.rb', line 20
def self.page_type
Pageflow::React.create_page_type('vr',
thumbnail_candidates: PAGE_TYPE_THUMBNAIL_CANDIDATES)
end
|
.plugin ⇒ Object
16
17
18
|
# File 'lib/pageflow-vr.rb', line 16
def self.plugin
Vr::Plugin.new
end
|
.routes(router) ⇒ Object
25
26
27
28
29
|
# File 'lib/pageflow-vr.rb', line 25
def self.routes(router)
router.instance_eval do
mount Pageflow::Vr::Engine, at: '/pageflow_vr'
end
end
|