DEV: Use angle bracket syntax (#167)

This commit is contained in:
Isaac Janzen 2023-05-28 09:32:27 -05:00 committed by GitHub
parent bf41ea9aa7
commit e365ced531
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 33 additions and 33 deletions

View File

@ -53,9 +53,9 @@
{{/unless}}
{{#if creating}}
{{create-coupon-form
cancel=(action "closeCreateForm")
create=(action "createNewCoupon")
}}
<CreateCouponForm
@cancel={{action "closeCreateForm"}}
@create={{action "createNewCoupon"}}
/>
{{/if}}
{{/if}}

View File

@ -4,10 +4,10 @@
<div class="subscribe-buttons">
{{#each orderedPlans as |plan|}}
{{payment-plan
plan=plan
selectedPlan=selectedPlan
clickPlan=(action "clickPlan")
}}
<PaymentPlan
@plan={{plan}}
@selectedPlan={{selectedPlan}}
@clickPlan={{action "clickPlan"}}
/>
{{/each}}
</div>

View File

@ -2,6 +2,6 @@
<p>{{i18n "discourse_subscriptions.subscribe.no_products"}}</p>
{{else}}
{{#each products as |product|}}
{{product-item product=product isLoggedIn=isLoggedIn}}
<ProductItem @product={{product}} @isLoggedIn={{isLoggedIn}} />
{{/each}}
{{/if}}

View File

@ -1 +1 @@
{{campaign-banner connectorName="above-main-container"}}
<CampaignBanner @connectorName="above-main-container" />

View File

@ -1 +1 @@
{{campaign-banner connectorName="after-topic-footer-buttons"}}
<CampaignBanner @connectorName="after-topic-footer-buttons" />

View File

@ -1 +1 @@
{{campaign-banner connectorName="before-topic-list"}}
<CampaignBanner @connectorName="before-topic-list" />

View File

@ -1,5 +1,5 @@
{{#unless isLoggedIn}}
{{login-required}}
<LoginRequired />
{{/unless}}
{{product-list products=model isLoggedIn=isLoggedIn}}
<ProductList @products={{model}} @isLoggedIn={{isLoggedIn}} />

View File

@ -19,16 +19,16 @@
<hr />
{{payment-options plans=model.plans selectedPlan=selectedPlan}}
<PaymentOptions @plans={{model.plans}} @selectedPlan={{selectedPlan}} />
<hr />
{{subscribe-card cardElement=cardElement}}
<SubscribeCard @cardElement={{cardElement}} />
{{#if loading}}
{{loading-spinner}}
{{else if isAnonymous}}
{{login-required}}
<LoginRequired />
{{else}}
<Input
@type="text"
@ -40,10 +40,10 @@
class="subscribe-name"
/>
<div class="address-fields">
{{subscribe-country-select
value=cardholderAddress.country
onChange=(action "changeCountry")
}}
<SubscribeCountrySelect
@value={{cardholderAddress.country}}
@onChange={{action "changeCountry"}}
/>
<Input
@type="text"
name="cardholder_postal_code"
@ -74,15 +74,15 @@
class="subscribe-address-city"
/>
{{#if isCountryUS}}
{{subscribe-us-state-select
value=cardholderAddress.state
onChange=(action "changeState")
}}
<SubscribeUsStateSelect
@value={{cardholderAddress.state}}
@onChange={{action "changeState"}}
/>
{{else if isCountryCA}}
{{subscribe-ca-province-select
value=cardholderAddress.state
onChange=(action "changeState")
}}
<SubscribeCaProvinceSelect
@value={{cardholderAddress.state}}
@onChange={{action "changeState"}}
/>
{{else}}
<Input
@type="text"

View File

@ -5,7 +5,7 @@
<div class="form-vertical">
<div class="control-group">
{{subscribe-card cardElement=cardElement class="input-xxlarge"}}
<SubscribeCard @cardElement={{cardElement}} class="input-xxlarge" />
</div>
<SaveControls

View File

@ -5,6 +5,6 @@
"author": "Discourse",
"license": "MIT",
"devDependencies": {
"eslint-config-discourse": "^3.1.0"
"eslint-config-discourse": "^3.4.0"
}
}

View File

@ -1145,7 +1145,7 @@ escape-string-regexp@^4.0.0:
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
eslint-config-discourse@^3.1.0:
eslint-config-discourse@^3.4.0:
version "3.4.0"
resolved "https://registry.yarnpkg.com/eslint-config-discourse/-/eslint-config-discourse-3.4.0.tgz#636a1824bca48c90aeac5bee2f8d7b993609191f"
integrity sha512-9jwu8GQPDOxAO0ByV6RbInu5r39HrFvbAHQRJ8YoGg2fuvHcX+p7fYcxEWj64LhmF4qD55cAGhN0Gmj10RVjoQ==