* Initial basic work * Bulk of related work, including find/replace on the inputs * Adjust some tests * Adjust some specs * Fix a few more tests * Clean up tests * Adjust tests * Test fiddle * Adjust crop back to be a param * Update tests * Set proper defaults * Fix some styling * Adjust enrichment logic and tests * Adjust form JS * Update test snapshot * Clean up formatting * Fix spec name * Adjust some css and defaults * Adjust translation for image provider options * Switch from fill to fill-down * Proper fallback image * Fix tests * Update app/services/images/optimizer.rb Co-authored-by: Mac Siri <mac@forem.com> --------- Co-authored-by: Mac Siri <mac@forem.com>
52 lines
2.2 KiB
Ruby
52 lines
2.2 KiB
Ruby
module Constants
|
|
module Settings
|
|
module UserExperience
|
|
def self.details
|
|
{
|
|
default_font: {
|
|
description: I18n.t("lib.constants.settings.user_experience.default_font.description")
|
|
},
|
|
default_locale: {
|
|
description: I18n.t("lib.constants.settings.user_experience.default_locale.description")
|
|
},
|
|
feed_strategy: {
|
|
description: I18n.t("lib.constants.settings.user_experience.feed_strategy.description"),
|
|
placeholder: I18n.t("lib.constants.settings.user_experience.feed_strategy.placeholder")
|
|
},
|
|
feed_style: {
|
|
description: I18n.t("lib.constants.settings.user_experience.feed_style.description"),
|
|
placeholder: I18n.t("lib.constants.settings.user_experience.feed_style.placeholder")
|
|
},
|
|
cover_image_height: {
|
|
description: I18n.t("lib.constants.settings.user_experience.cover_image_height.description"),
|
|
placeholder: I18n.t("lib.constants.settings.user_experience.cover_image_height.placeholder")
|
|
},
|
|
cover_image_fit: {
|
|
description: I18n.t("lib.constants.settings.user_experience.cover_image_fit.description"),
|
|
placeholder: I18n.t("lib.constants.settings.user_experience.cover_image_fit.placeholder")
|
|
},
|
|
home_feed_minimum_score: {
|
|
description: I18n.t("lib.constants.settings.user_experience.home_feed.description"),
|
|
placeholder: "0"
|
|
},
|
|
index_minimum_score: {
|
|
description: I18n.t("lib.constants.settings.user_experience.index_minimum_score.description"),
|
|
placeholder: "0"
|
|
},
|
|
index_minimum_date: {
|
|
description: I18n.t("lib.constants.settings.user_experience.index_minimum_date.description"),
|
|
placeholder: "1500000000"
|
|
},
|
|
primary_brand_color_hex: {
|
|
description: I18n.t("lib.constants.settings.user_experience.primary_hex.description"),
|
|
placeholder: "#0a0a0a"
|
|
},
|
|
tag_feed_minimum_score: {
|
|
description: I18n.t("lib.constants.settings.user_experience.tag_feed.description"),
|
|
placeholder: "0"
|
|
}
|
|
}
|
|
end
|
|
end
|
|
end
|
|
end
|