Skip to content

Commit

Permalink
DEV: Update linting (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaylorhq authored Nov 20, 2024
1 parent 125fbf5 commit 4609bf9
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 17 deletions.
12 changes: 6 additions & 6 deletions javascripts/discourse/templates/components/top-contributor.hbs
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<div class="top-contributors-container-contributor">
<div class="top-contributors-container-contributor-name">
<span data-user-card={{user.username}} class="user">
<span data-user-card={{this.user.username}} class="user">
{{avatar
user
this.user
avatarTemplatePath="avatar_template"
usernamePath="username"
namePath="name"
imageSize="small"
}}
{{#if (and (theme-setting "use_full_name") user.name)}}
{{user.name}}
{{#if (and (theme-setting "use_full_name") this.user.name)}}
{{this.user.name}}
{{else}}
{{html-safe user.username}}
{{html-safe this.user.username}}
{{/if}}
</span>
</div>

<div class="top-contributors-container-contributor-likes">
{{d-icon "heart"}}
{{likes}}
{{this.likes}}
</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{{#unless site.mobileView}}
{{#if isDiscoveryList}}
{{#unless hideSidebar}}
{{#unless this.site.mobileView}}
{{#if this.isDiscoveryList}}
{{#unless this.hideSidebar}}
<div class="discourse-top-contributors">
<h1 class="top-contributors-heading">
{{theme-i18n "top_contributors.title"}}
</h1>

<div class="top-contributors-container">
{{#each topContributors as |user|}}
{{#each this.topContributors as |user|}}
{{top-contributor data=user}}
{{/each}}

<div class="top-contributors-container-link">
<a href={{viewAllPath}}>
<a href={{this.viewAllPath}}>
{{theme-i18n "top_contributors.view_all"}}
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"devDependencies": {
"@discourse/lint-configs": "2.0.1",
"@discourse/lint-configs": "2.2.1",
"ember-template-lint": "6.0.0",
"eslint": "9.14.0",
"prettier": "2.8.8"
Expand Down
23 changes: 18 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4609bf9

Please sign in to comment.