From 12cac3827cf8214dd09657895a04837659f37196 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Wed, 20 Nov 2024 17:34:34 +0000 Subject: [PATCH] DEV: Update linting (#247) --- .../discourse/components/campaign-banner.hbs | 57 +- .../components/create-coupon-form.hbs | 12 +- .../discourse/components/payment-options.hbs | 4 +- .../discourse/components/payment-plan.hbs | 5 +- .../discourse/components/product-item.hbs | 22 +- .../discourse/components/product-list.hbs | 6 +- ...lugins-discourse-subscriptions-coupons.hbs | 10 +- ...gins-discourse-subscriptions-dashboard.hbs | 4 +- ...ns-discourse-subscriptions-plans-index.hbs | 2 +- ...discourse-subscriptions-products-index.hbs | 6 +- ...subscriptions-products-show-plans-show.hbs | 50 +- ...-discourse-subscriptions-products-show.hbs | 24 +- ...-discourse-subscriptions-subscriptions.hbs | 6 +- .../admin/plugins-discourse-subscriptions.hbs | 13 +- .../connectors/user-main-nav/billing.hbs | 2 +- .../discourse/templates/subscribe/index.hbs | 4 +- .../discourse/templates/subscribe/show.hbs | 43 +- .../discourse/templates/user/billing.hbs | 2 +- .../templates/user/billing/payments.hbs | 4 +- .../user/billing/subscriptions/card.hbs | 8 +- .../user/billing/subscriptions/index.hbs | 4 +- package.json | 2 +- pnpm-lock.yaml | 497 +++++++++--------- 23 files changed, 394 insertions(+), 393 deletions(-) diff --git a/assets/javascripts/discourse/components/campaign-banner.hbs b/assets/javascripts/discourse/components/campaign-banner.hbs index d0d4043..ad2a409 100644 --- a/assets/javascripts/discourse/components/campaign-banner.hbs +++ b/assets/javascripts/discourse/components/campaign-banner.hbs @@ -1,12 +1,12 @@ -{{#if shouldShow}} +{{#if this.shouldShow}}
- {{#if isGoalMet}} + {{#if this.isGoalMet}}

{{i18n "discourse_subscriptions.campaign.success_title"}}

@@ -23,11 +23,11 @@ {{i18n "discourse_subscriptions.campaign.body"}}

- {{#if product}} + {{#if this.product}} {{d-icon "far-heart"}} @@ -48,7 +48,7 @@
- {{#if isGoalMet}} + {{#if this.isGoalMet}}
@@ -56,13 +56,13 @@
- {{#if subscriberGoal}} + {{#if this.subscriberGoal}}

{{html-safe (i18n "discourse_subscriptions.campaign.goal_comparison" - current=subscribers - goal=goalTarget + current=this.subscribers + goal=this.goalTarget ) }} {{i18n "discourse_subscriptions.campaign.subscribers"}} @@ -72,15 +72,18 @@ {{html-safe (i18n "discourse_subscriptions.campaign.goal_comparison" - current=(format-currency currency amountRaised) - goal=(format-currency currency goalTarget) + current=(format-currency this.currency this.amountRaised) + goal=(format-currency this.currency this.goalTarget) ) }} {{i18n "discourse_subscriptions.campaign.raised"}}

- {{#if showContributors}} - + {{#if this.showContributors}} +

@@ -91,7 +94,7 @@

- {{#each contributors as |contributor|}} + {{#each this.contributors as |contributor|}} {{avatar contributor avatarTemplatePath="avatar_template" @@ -106,19 +109,19 @@ {{/if}} {{/if}} {{else}} - {{#if subscriberGoal}} + {{#if this.subscriberGoal}}

{{html-safe (i18n "discourse_subscriptions.campaign.goal_comparison" - current=subscribers - goal=goalTarget + current=this.subscribers + goal=this.goalTarget ) }} {{i18n "discourse_subscriptions.campaign.subscribers"}} @@ -126,24 +129,24 @@ {{else}}

{{html-safe (i18n "discourse_subscriptions.campaign.goal_comparison" - current=(format-currency currency amountRaised) - goal=(format-currency currency goalTarget) + current=(format-currency this.currency this.amountRaised) + goal=(format-currency this.currency this.goalTarget) ) }} {{i18n "discourse_subscriptions.campaign.raised"}}

{{/if}} - {{#if showContributors}} - + {{#if this.showContributors}} +

@@ -154,7 +157,7 @@

- {{#each contributors as |contributor|}} + {{#each this.contributors as |contributor|}} {{avatar contributor avatarTemplatePath="avatar_template" diff --git a/assets/javascripts/discourse/components/create-coupon-form.hbs b/assets/javascripts/discourse/components/create-coupon-form.hbs index bae0168..0560f35 100644 --- a/assets/javascripts/discourse/components/create-coupon-form.hbs +++ b/assets/javascripts/discourse/components/create-coupon-form.hbs @@ -4,7 +4,7 @@ - +

@@ -12,15 +12,15 @@ {{i18n "discourse_subscriptions.admin.coupons.discount"}}

@@ -28,7 +28,7 @@ - +

diff --git a/assets/javascripts/discourse/components/payment-options.hbs b/assets/javascripts/discourse/components/payment-options.hbs index 6966262..623495d 100644 --- a/assets/javascripts/discourse/components/payment-options.hbs +++ b/assets/javascripts/discourse/components/payment-options.hbs @@ -3,10 +3,10 @@