Sha256: 3400897d53d718b5c2b6fb6fa1ed271154f5de8ddda7268b45e5bbebf18ce231

Contents?: true

Size: 786 Bytes

Versions: 11

Compression:

Stored size: 786 Bytes

Contents

json.theme do
  json.assets do
    json.logo_desktop scrolled_theme_asset_path(theme, 'logoDesktop.svg',
                                                theme_file_role: :logo_desktop)
    json.logo_mobile scrolled_theme_asset_path(theme, 'logoMobile.svg',
                                               theme_file_role: :logo_mobile)
    json.unmute scrolled_theme_asset_path(theme, 'unmute.mp3')

    json.icons({})
    json.icons do
      theme.options.fetch(:custom_icons, []).each do |icon_name|
        json.set!(icon_name,
                  scrolled_theme_asset_path(theme, "icons/#{icon_name}.svg",
                                            relative_url: true))
      end
    end
  end
  json.options(theme.options.deep_transform_keys { |key| key.to_s.camelize(:lower) })
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pageflow-17.0.4 entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_theme.json.jbuilder
pageflow-17.0.3 entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_theme.json.jbuilder
pageflow-17.0.2 entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_theme.json.jbuilder
pageflow-17.0.1 entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_theme.json.jbuilder
pageflow-17.0.0 entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_theme.json.jbuilder
pageflow-16.2.0 entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_theme.json.jbuilder
pageflow-16.1.0 entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_theme.json.jbuilder
pageflow-16.0.0 entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_theme.json.jbuilder
pageflow-15.8.0 entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_theme.json.jbuilder
pageflow-15.7.1 entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_theme.json.jbuilder
pageflow-15.7.0 entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_theme.json.jbuilder