Sha256: fbc1ddf6c175384370452cc6c157f1a356c0ce67f846f8e6d5195db5c88f6a2b

Contents?: true

Size: 710 Bytes

Versions: 25

Compression:

Stored size: 710 Bytes

Contents

# frozen_string_literal: true

json.key_format! camelize: :lower
json.deep_format_keys!
json.call(theme, :id, :name, :description)
json.sections theme.sections do |section|
  json.call(section, :id, :name, :category, :site_scoped, :singleton, :viewport_fixed_position,
            :insert_button, :insert_at, :max_width_pane,
            :blocks_label, :blocks_presentation, :sample)
  json.settings section.settings.as_json
  json.blocks section.blocks.as_json
  json.theme_id theme.id
  json.screenshot_path services.fetch_section_screenshot_url.call(section: section)
end
json.section_categories theme.section_categories.as_json
json.icons theme.icons || []
json.style_settings theme.style_settings.as_json

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
maglevcms-1.8.0 app/views/maglev/api/themes/_show.json.jbuilder
maglevcms-1.7.3 app/views/maglev/api/themes/_show.json.jbuilder
maglevcms-1.7.2 app/views/maglev/api/themes/_show.json.jbuilder
maglevcms-1.7.1 app/views/maglev/api/themes/_show.json.jbuilder
maglevcms-1.7.0 app/views/maglev/api/themes/_show.json.jbuilder
maglevcms-1.6.1 app/views/maglev/api/themes/_show.json.jbuilder
maglevcms-1.6.0 app/views/maglev/api/themes/_show.json.jbuilder
maglevcms-1.5.1 app/views/maglev/api/themes/_show.json.jbuilder
maglevcms-1.4.0 app/views/maglev/api/themes/_show.json.jbuilder
maglevcms-1.3.0 app/views/maglev/api/themes/_show.json.jbuilder
maglevcms-1.2.2 app/views/maglev/api/themes/_show.json.jbuilder
maglevcms-1.2.1 app/views/maglev/api/themes/_show.json.jbuilder
maglevcms-1.2.0 app/views/maglev/api/themes/_show.json.jbuilder
maglevcms-1.1.7 app/views/maglev/api/themes/_show.json.jbuilder
maglevcms-1.1.6 app/views/maglev/api/themes/_show.json.jbuilder
maglevcms-1.1.5 app/views/maglev/api/themes/_show.json.jbuilder
maglevcms-1.1.4 app/views/maglev/api/themes/_show.json.jbuilder
maglevcms-1.1.3 app/views/maglev/api/themes/_show.json.jbuilder
maglevcms-1.1.2 app/views/maglev/api/themes/_show.json.jbuilder
maglevcms-1.1.1 app/views/maglev/api/themes/_show.json.jbuilder