Standardize Image Placeholder Text in SiteConfig (#10992) [deploy]

* Standardizes image placeholder text in SiteConfig

* Adjusts image placeholder text URL per review suggestion

* Pulls image placeholder text out into a constant, IMAGE_PLACEHOLDER
This commit is contained in:
Julianna Tetreault 2020-10-21 10:57:27 -06:00 committed by GitHub
parent 4b33e08003
commit cfbb5a1763
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,7 @@
module Constants
module SiteConfig
IMAGE_PLACEHOLDER = "https://url/image.png".freeze
DETAILS = {
allow_email_password_registration: {
description: "People can sign up using their email and password",
@ -34,7 +36,7 @@ module Constants
placeholder: "Campaign sidebar enabled or not"
},
campaign_sidebar_image: {
description: "https://image.url",
description: IMAGE_PLACEHOLDER,
placeholder: "Used at the top of the campaign sidebar"
},
campaign_url: {
@ -107,7 +109,7 @@ module Constants
},
favicon_url: {
description: "Used as the site favicon",
placeholder: "https://image.url"
placeholder: IMAGE_PLACEHOLDER
},
feed_strategy: {
description: "Determines the main feed algorithm approach the app takes: basic or large_forem_experimental
@ -156,7 +158,7 @@ module Constants
},
logo_png: {
description: "Minimum 1024px, used for PWA etc.",
placeholder: "https://image.url/image.png"
placeholder: IMAGE_PLACEHOLDER
},
logo_svg: {
description: "Used as the SVG logo of the community",
@ -164,7 +166,7 @@ module Constants
},
main_social_image: {
description: "Used as the main image in social networks and OpenGraph",
placeholder: "https://image.url"
placeholder: IMAGE_PLACEHOLDER
},
mailchimp_api_key: {
description: "API key used to connect Mailchimp account. Found in Mailchimp backend",
@ -188,7 +190,7 @@ module Constants
},
mascot_footer_image_url: {
description: "Special cute mascot image used in the footer.",
placeholder: "https://image.url"
placeholder: IMAGE_PLACEHOLDER
},
mascot_footer_image_width: {
description: "The footer mascot width will resized to this value, defaults to 52",
@ -204,7 +206,7 @@ module Constants
},
mascot_image_url: {
description: "Used as the mascot image.",
placeholder: "https://image.url"
placeholder: IMAGE_PLACEHOLDER
},
mascot_user_id: {
description: "User ID of the Mascot account",
@ -216,15 +218,15 @@ module Constants
},
onboarding_background_image: {
description: "Background for onboarding splash page",
placeholder: "https://image.url"
placeholder: IMAGE_PLACEHOLDER
},
onboarding_logo_image: {
description: "Main onboarding display logo image",
placeholder: "https://image.url"
placeholder: IMAGE_PLACEHOLDER
},
onboarding_taskcard_image: {
description: "Used as the onboarding task-card image",
placeholder: "https://image.url"
placeholder: IMAGE_PLACEHOLDER
},
payment_pointer: {
description: "Used for site-wide web monetization. " \
@ -253,7 +255,7 @@ module Constants
},
secondary_logo_url: {
description: "Used as the secondary logo",
placeholder: "https://image.url"
placeholder: IMAGE_PLACEHOLDER
},
spam_trigger_terms: {
description: "Individual (case insensitive) phrases that trigger spam alerts, comma separated.",