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.5.0'

Class Method Summary collapse

Class Method Details

.page_typeObject



21
22
23
24
# File 'lib/pageflow/vr.rb', line 21

def self.page_type
  Pageflow::React.create_page_type('vr',
                                   thumbnail_candidates: PAGE_TYPE_THUMBNAIL_CANDIDATES)
end

.pluginObject



17
18
19
# File 'lib/pageflow/vr.rb', line 17

def self.plugin
  Vr::Plugin.new
end

.routes(router) ⇒ Object



26
27
28
29
30
# File 'lib/pageflow/vr.rb', line 26

def self.routes(router)
  router.instance_eval do
    mount Pageflow::Vr::Engine, at: '/pageflow_vr'
  end
end