From 574500ba081e7934874906cc7aa2675e443a4a99 Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Fri, 14 Jun 2019 13:24:55 -0400 Subject: [PATCH] Run Prettier --- .../discourse/components/carbonads-ad.js.es6 | 4 +--- .../discourse/components/google-dfp-ad.js.es6 | 18 +++++++--------- assets/stylesheets/adplugin.scss | 21 ++++++++++--------- 3 files changed, 19 insertions(+), 24 deletions(-) diff --git a/assets/javascripts/discourse/components/carbonads-ad.js.es6 b/assets/javascripts/discourse/components/carbonads-ad.js.es6 index 24f6c55..b184333 100644 --- a/assets/javascripts/discourse/components/carbonads-ad.js.es6 +++ b/assets/javascripts/discourse/components/carbonads-ad.js.es6 @@ -1,7 +1,5 @@ import AdComponent from "discourse/plugins/discourse-adplugin/discourse/components/ad-component"; -import { - default as computed -} from "ember-addons/ember-computed-decorators"; +import { default as computed } from "ember-addons/ember-computed-decorators"; const serve_id = Discourse.SiteSettings.carbonads_serve_id, placement = Discourse.SiteSettings.carbonads_placement; diff --git a/assets/javascripts/discourse/components/google-dfp-ad.js.es6 b/assets/javascripts/discourse/components/google-dfp-ad.js.es6 index ba0b530..55b9631 100755 --- a/assets/javascripts/discourse/components/google-dfp-ad.js.es6 +++ b/assets/javascripts/discourse/components/google-dfp-ad.js.es6 @@ -44,10 +44,7 @@ function keyParse(word) { function custom_targeting(key_array, value_array, adSlot) { for (var i = 0; i < key_array.length; i++) { if (key_array[i]) { - adSlot.setTargeting( - key_array[i], - valueParse(value_array[i]) - ); + adSlot.setTargeting(key_array[i], valueParse(value_array[i])); } } } @@ -139,12 +136,11 @@ function defineSlot(divId, placement, settings, isMobile, categoryTarget) { config = DESKTOP_SETTINGS[placement]; } - ad = window.googletag - .defineSlot( - "/" + settings.dfp_publisher_id + "/" + settings[config.code], - [size.width, size.height], - divId - ); + ad = window.googletag.defineSlot( + "/" + settings.dfp_publisher_id + "/" + settings[config.code], + [size.width, size.height], + divId + ); custom_targeting( keyParse(settings[config.targeting_keys]), @@ -205,7 +201,7 @@ function loadGoogle() { }); }); - window.googletag = window.googletag || {cmd: []}; + window.googletag = window.googletag || { cmd: [] }; return _promise; } diff --git a/assets/stylesheets/adplugin.scss b/assets/stylesheets/adplugin.scss index 9e7bad3..8fa4d5f 100644 --- a/assets/stylesheets/adplugin.scss +++ b/assets/stylesheets/adplugin.scss @@ -41,7 +41,7 @@ color: #858a8c; text-transform: uppercase; font-size: 12px; - font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: normal; } @@ -54,8 +54,7 @@ padding: 0 11px; } -@media all -and (max-width : 775px) { +@media all and (max-width: 775px) { .google-adsense.adsense-post-bottom { box-sizing: border-box; width: 100%; @@ -68,7 +67,7 @@ and (max-width : 775px) { clear: both; } -.amazon-product-links .amazon-unit { +.amazon-product-links .amazon-unit { margin: 0 auto; } @@ -82,7 +81,7 @@ and (max-width : 775px) { color: #858a8c; text-transform: uppercase; font-size: 12px; - font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: normal; } @@ -96,12 +95,13 @@ and (max-width : 775px) { color: #858a8c; text-transform: uppercase; font-size: 12px; - font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: normal; } .google-dfp-ad.dfp-ad-post-bottom { - .google-dfp-ad-label, .dfp-ad-unit { + .google-dfp-ad-label, + .dfp-ad-unit { margin: 0 0 0 52px; } } @@ -151,7 +151,7 @@ and (max-width : 775px) { margin-right: 4px; padding: 2px 6px; border-radius: 3px; - background-color: $tertiary; + background-color: $tertiary; color: $secondary; } @@ -225,7 +225,7 @@ and (max-width : 775px) { right: 0; // You can also set the position to the "left" with the value of calc(130px + carbon-text’s font size). If the font-size is 12px, you’ll want to set the left value as 142px. It’ll align the .carbon-text with .carbon-poweredby bottom: 0; display: block; - font-size: .8em; + font-size: 0.8em; text-transform: uppercase; line-height: 1; letter-spacing: 1px; @@ -252,7 +252,8 @@ and (max-width : 775px) { font-size: $font-down-1; clear: both; } - .house-ads-chooser, .house-ads-text-input { + .house-ads-chooser, + .house-ads-text-input { float: left; margin-right: 20px; }