2020-03-13 15:44:24 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class Appearance < Grape::Entity
|
|
|
|
expose :title
|
|
|
|
expose :description
|
2023-04-23 21:23:45 +05:30
|
|
|
expose :pwa_name
|
|
|
|
expose :pwa_short_name
|
|
|
|
expose :pwa_description
|
2020-03-13 15:44:24 +05:30
|
|
|
|
|
|
|
expose :logo do |appearance, options|
|
|
|
|
appearance.logo.url
|
|
|
|
end
|
|
|
|
|
2023-03-17 16:20:25 +05:30
|
|
|
expose :pwa_icon do |appearance, options|
|
|
|
|
appearance.pwa_icon.url
|
|
|
|
end
|
|
|
|
|
2020-03-13 15:44:24 +05:30
|
|
|
expose :header_logo do |appearance, options|
|
|
|
|
appearance.header_logo.url
|
|
|
|
end
|
|
|
|
|
|
|
|
expose :favicon do |appearance, options|
|
|
|
|
appearance.favicon.url
|
|
|
|
end
|
|
|
|
|
|
|
|
expose :new_project_guidelines
|
2020-05-24 23:13:21 +05:30
|
|
|
expose :profile_image_guidelines
|
2020-03-13 15:44:24 +05:30
|
|
|
expose :header_message
|
|
|
|
expose :footer_message
|
|
|
|
expose :message_background_color
|
|
|
|
expose :message_font_color
|
|
|
|
expose :email_header_and_footer_enabled
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|