A platform for community discussion. Free, open, simple.
DEV: Fix/LTTF require-tagless-components lint (#37422)
Jarek Radosz6b000b00448e
diff --git a/eslint.config.mjs b/eslint.config.mjsindex b15c681c5e2..c9213407289 100644--- a/eslint.config.mjs+++ b/eslint.config.mjs@@ -9,6 +9,7 @@ export default ["discourse/no-route-template": "error","ember/no-classic-components": "error","ember/no-side-effects": "error",+ "ember/require-tagless-components": "error","qunit/no-loose-assertions": "error",},},diff --git a/frontend/discourse/admin/components/admin-backups-logs.gjs b/frontend/discourse/admin/components/admin-backups-logs.gjsindex 0c1438b6b8a..cbed48f7bd8 100644--- a/frontend/discourse/admin/components/admin-backups-logs.gjs+++ b/frontend/discourse/admin/components/admin-backups-logs.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { scheduleOnce } from "@ember/runloop";import { classNames } from "@ember-decorators/component";diff --git a/frontend/discourse/admin/components/admin-form-row.gjs b/frontend/discourse/admin/components/admin-form-row.gjsindex 51bcc3c8744..473dee14054 100644--- a/frontend/discourse/admin/components/admin-form-row.gjs+++ b/frontend/discourse/admin/components/admin-form-row.gjs@@ -1,30 +1,32 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import concatClass from "discourse/helpers/concat-class";import { eq } from "discourse/truth-helpers";import { i18n } from "discourse-i18n";-@classNames("row")+@tagName("")export default class AdminFormRow extends Component {<template>- <div class="form-element label-area">- {{#if this.label}}- <label- class={{concatClass (if (eq @type "checkbox") "checkbox-label")}}- >{{i18n this.label}}</label>- {{else}}- - {{/if}}- </div>- <div class="form-element input-area">- {{#if this.wrapLabel}}- <label- class={{concatClass (if (eq @type "checkbox") "checkbox-label")}}- >{{yield}}</label>- {{else}}- {{yield}}- {{/if}}+ <div class="row" ...attributes>+ <div class="form-element label-area">+ {{#if this.label}}+ <label+ class={{concatClass (if (eq @type "checkbox") "checkbox-label")}}+ >{{i18n this.label}}</label>+ {{else}}+ + {{/if}}+ </div>+ <div class="form-element input-area">+ {{#if this.wrapLabel}}+ <label+ class={{concatClass (if (eq @type "checkbox") "checkbox-label")}}+ >{{yield}}</label>+ {{else}}+ {{yield}}+ {{/if}}+ </div></div></template>}diff --git a/frontend/discourse/admin/components/admin-penalty-post-action.gjs b/frontend/discourse/admin/components/admin-penalty-post-action.gjsindex 4f3b10f530b..ed9e245e1aa 100644--- a/frontend/discourse/admin/components/admin-penalty-post-action.gjs+++ b/frontend/discourse/admin/components/admin-penalty-post-action.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import { tracked } from "@glimmer/tracking";import Component, { Input, Textarea } from "@ember/component";import { on } from "@ember/modifier";diff --git a/frontend/discourse/admin/components/admin-report-counters.gjs b/frontend/discourse/admin/components/admin-report-counters.gjsindex a38853bf237..5ba1e0f9402 100644--- a/frontend/discourse/admin/components/admin-report-counters.gjs+++ b/frontend/discourse/admin/components/admin-report-counters.gjs@@ -1,47 +1,54 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { attributeBindings, classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import icon from "discourse/helpers/d-icon";import number from "discourse/helpers/number";-@classNames("admin-report-counters")-@attributeBindings("model.description:title")+@tagName("")export default class AdminReportCounters extends Component {<template>- <div class="cell title">- {{#if this.model.icon}}- {{icon this.model.icon}}- {{/if}}- <a href={{this.model.reportUrl}}>{{this.model.title}}</a>- </div>-- <div class="cell value today-count">{{number this.model.todayCount}}</div>-<div- class="cell value yesterday-count {{this.model.yesterdayTrend}}"- title={{this.model.yesterdayCountTitle}}+ title={{this.model.description}}+ class="admin-report-counters"+ ...attributes>- {{number this.model.yesterdayCount}}- {{icon this.model.yesterdayTrendIcon}}- </div>+ <div class="cell title">+ {{#if this.model.icon}}+ {{icon this.model.icon}}+ {{/if}}+ <a href={{this.model.reportUrl}}>{{this.model.title}}</a>+ </div>- <div- class="cell value sevendays-count {{this.model.sevenDaysTrend}}"- title={{this.model.sevenDaysCountTitle}}- >- {{number this.model.lastSevenDaysCount}}- {{icon this.model.sevenDaysTrendIcon}}- </div>+ <div class="cell value today-count">+ {{number this.model.todayCount}}+ </div>- <div- class="cell value thirty-days-count {{this.model.thirtyDaysTrend}}"- title={{this.model.thirtyDaysCountTitle}}- >- {{number this.model.lastThirtyDaysCount}}+ <div+ class="cell value yesterday-count {{this.model.yesterdayTrend}}"+ title={{this.model.yesterdayCountTitle}}+ >+ {{number this.model.yesterdayCount}}+ {{icon this.model.yesterdayTrendIcon}}+ </div>++ <div+ class="cell value sevendays-count {{this.model.sevenDaysTrend}}"+ title={{this.model.sevenDaysCountTitle}}+ >+ {{number this.model.lastSevenDaysCount}}+ {{icon this.model.sevenDaysTrendIcon}}+ </div>++ <div+ class="cell value thirty-days-count {{this.model.thirtyDaysTrend}}"+ title={{this.model.thirtyDaysCountTitle}}+ >+ {{number this.model.lastThirtyDaysCount}}- {{#if this.model.canDisplayTrendIcon}}- {{icon this.model.thirtyDaysTrendIcon}}- {{/if}}+ {{#if this.model.canDisplayTrendIcon}}+ {{icon this.model.thirtyDaysTrendIcon}}+ {{/if}}+ </div></div></template>}diff --git a/frontend/discourse/admin/components/admin-report-inline-table.gjs b/frontend/discourse/admin/components/admin-report-inline-table.gjsindex 42712a43a87..00264af5f85 100644--- a/frontend/discourse/admin/components/admin-report-inline-table.gjs+++ b/frontend/discourse/admin/components/admin-report-inline-table.gjs@@ -1,26 +1,28 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import icon from "discourse/helpers/d-icon";import number from "discourse/helpers/number";-@classNames("admin-report-inline-table")+@tagName("")export default class AdminReportInlineTable extends Component {<template>- <div class="table-container">- {{#each this.model.data as |data|}}- <a class="table-cell user-{{data.key}}" href={{data.url}}>- <span class="label">- {{#if data.icon}}- {{icon data.icon}}- {{/if}}- {{data.x}}- </span>- <span class="value">- {{number data.y}}- </span>- </a>- {{/each}}+ <div class="admin-report-inline-table" ...attributes>+ <div class="table-container">+ {{#each this.model.data as |data|}}+ <a class="table-cell user-{{data.key}}" href={{data.url}}>+ <span class="label">+ {{#if data.icon}}+ {{icon data.icon}}+ {{/if}}+ {{data.x}}+ </span>+ <span class="value">+ {{number data.y}}+ </span>+ </a>+ {{/each}}+ </div></div></template>}diff --git a/frontend/discourse/admin/components/admin-report-storage-stats.gjs b/frontend/discourse/admin/components/admin-report-storage-stats.gjsindex c65dc67ffa5..d63d7ba1cd7 100644--- a/frontend/discourse/admin/components/admin-report-storage-stats.gjs+++ b/frontend/discourse/admin/components/admin-report-storage-stats.gjs@@ -2,7 +2,7 @@import Component from "@ember/component";import { alias } from "@ember/object/computed";import { htmlSafe } from "@ember/template";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import icon from "discourse/helpers/d-icon";import formatDate from "discourse/helpers/format-date";import { setting } from "discourse/lib/computed";@@ -10,7 +10,7 @@ import discourseComputed from "discourse/lib/decorators";import getUrl from "discourse/lib/get-url";import I18n, { i18n } from "discourse-i18n";-@classNames("admin-report-storage-stats")+@tagName("")export default class AdminReportStorageStats extends Component {@setting("backup_location") backupLocation;@@ -49,59 +49,64 @@ export default class AdminReportStorageStats extends Component {}<template>- {{#if this.showBackupStats}}- <div class="backups">- <h3 class="storage-stats-title">- <a href={{getUrl "/admin/backups"}}>{{icon "box-archive"}}- {{i18n "admin.dashboard.backups"}}</a>- </h3>- <p>- {{#if this.backupStats.free_bytes}}+ <div class="admin-report-storage-stats" ...attributes>+ {{#if this.showBackupStats}}+ <div class="backups">+ <h3 class="storage-stats-title">+ <a href={{getUrl "/admin/backups"}}>{{icon "box-archive"}}+ {{i18n "admin.dashboard.backups"}}</a>+ </h3>+ <p>+ {{#if this.backupStats.free_bytes}}+ {{i18n+ "admin.dashboard.space_used_and_free"+ usedSize=this.usedBackupSpace+ freeSize=this.freeBackupSpace+ }}+ {{else}}+ {{i18n+ "admin.dashboard.space_used"+ usedSize=this.usedBackupSpace+ }}+ {{/if}}++ <br />{{i18n- "admin.dashboard.space_used_and_free"- usedSize=this.usedBackupSpace- freeSize=this.freeBackupSpace+ "admin.dashboard.backup_count"+ count=this.backupStats.count+ location=this.backupLocationName}}- {{else}}- {{i18n "admin.dashboard.space_used" usedSize=this.usedBackupSpace}}- {{/if}}-- <br />- {{i18n- "admin.dashboard.backup_count"- count=this.backupStats.count- location=this.backupLocationName- }}- {{#if this.backupStats.last_backup_taken_at}}- <br />- {{htmlSafe- (i18n- "admin.dashboard.lastest_backup"- date=(formatDate- this.backupStats.last_backup_taken_at leaveAgo="true"+ {{#if this.backupStats.last_backup_taken_at}}+ <br />+ {{htmlSafe+ (i18n+ "admin.dashboard.lastest_backup"+ date=(formatDate+ this.backupStats.last_backup_taken_at leaveAgo="true"+ ))- )+ }}+ {{/if}}+ </p>+ </div>+ {{/if}}++ <div class="uploads">+ <h3 class="storage-stats-title">{{icon "upload"}}+ {{i18n "admin.dashboard.uploads"}}</h3>+ <p>+ {{#if this.uploadStats.free_bytes}}+ {{i18n+ "admin.dashboard.space_used_and_free"+ usedSize=this.usedUploadSpace+ freeSize=this.freeUploadSpace}}+ {{else}}+ {{i18n "admin.dashboard.space_used" usedSize=this.usedUploadSpace}}{{/if}}</p></div>- {{/if}}-- <div class="uploads">- <h3 class="storage-stats-title">{{icon "upload"}}- {{i18n "admin.dashboard.uploads"}}</h3>- <p>- {{#if this.uploadStats.free_bytes}}- {{i18n- "admin.dashboard.space_used_and_free"- usedSize=this.usedUploadSpace- freeSize=this.freeUploadSpace- }}- {{else}}- {{i18n "admin.dashboard.space_used" usedSize=this.usedUploadSpace}}- {{/if}}- </p></div></template>}diff --git a/frontend/discourse/admin/components/admin-report-table-cell.gjs b/frontend/discourse/admin/components/admin-report-table-cell.gjsindex b17f33837e2..38429e51d0d 100644--- a/frontend/discourse/admin/components/admin-report-table-cell.gjs+++ b/frontend/discourse/admin/components/admin-report-table-cell.gjs@@ -2,18 +2,11 @@import Component from "@ember/component";import { alias } from "@ember/object/computed";import { htmlSafe } from "@ember/template";-import {- attributeBindings,- classNameBindings,- classNames,- tagName,-} from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";+import concatClass from "discourse/helpers/concat-class";import discourseComputed from "discourse/lib/decorators";-@tagName("td")-@classNames("admin-report-table-cell")-@classNameBindings("type", "property")-@attributeBindings("value:title")+@tagName("")export default class AdminReportTableCell extends Component {options = null;@@ -27,5 +20,13 @@ export default class AdminReportTableCell extends Component {return label.compute(data, options || {});}- <template>{{htmlSafe this.formattedValue}}</template>+ <template>+ <td+ title={{this.value}}+ class={{concatClass "admin-report-table-cell" this.type this.property}}+ ...attributes+ >+ {{htmlSafe this.formattedValue}}+ </td>+ </template>}diff --git a/frontend/discourse/admin/components/admin-report-table-row.gjs b/frontend/discourse/admin/components/admin-report-table-row.gjsindex 3ec0be1c308..a914bbd15a4 100644--- a/frontend/discourse/admin/components/admin-report-table-row.gjs+++ b/frontend/discourse/admin/components/admin-report-table-row.gjs@@ -1,20 +1,21 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import AdminReportTableCell from "discourse/admin/components/admin-report-table-cell";-@tagName("tr")-@classNames("admin-report-table-row")+@tagName("")export default class AdminReportTableRow extends Component {options = null;<template>- {{#each this.labels as |label|}}- <AdminReportTableCell- @label={{label}}- @data={{this.data}}- @options={{this.options}}- />- {{/each}}+ <tr class="admin-report-table-row" ...attributes>+ {{#each this.labels as |label|}}+ <AdminReportTableCell+ @label={{label}}+ @data={{this.data}}+ @options={{this.options}}+ />+ {{/each}}+ </tr></template>}diff --git a/frontend/discourse/admin/components/admin-report-table.gjs b/frontend/discourse/admin/components/admin-report-table.gjsindex 728edd5a51c..ad0b9cd9e6e 100644--- a/frontend/discourse/admin/components/admin-report-table.gjs+++ b/frontend/discourse/admin/components/admin-report-table.gjs@@ -3,18 +3,18 @@ import Component from "@ember/component";import { fn } from "@ember/helper";import { action } from "@ember/object";import { alias } from "@ember/object/computed";-import { classNameBindings, classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import AdminReportTableHeader from "discourse/admin/components/admin-report-table-header";import AdminReportTableRow from "discourse/admin/components/admin-report-table-row";import DButton from "discourse/components/d-button";+import concatClass from "discourse/helpers/concat-class";import discourseComputed from "discourse/lib/decorators";import { makeArray } from "discourse/lib/helpers";import { i18n } from "discourse-i18n";const PAGES_LIMIT = 8;-@classNameBindings("sortable", "twoColumns")-@classNames("admin-report-table")+@tagName("")export default class AdminReportTable extends Component {sortable = false;sortDirection = 1;@@ -191,90 +191,99 @@ export default class AdminReportTable extends Component {}<template>- <table class="table">- <thead>- <tr>- {{#each this.model.computedLabels as |label|}}- <AdminReportTableHeader- @showSortingUI={{this.showSortingUI}}- @currentSortDirection={{this.sortDirection}}- @currentSortLabel={{this.sortLabel}}- @label={{label}}- @sortByLabel={{fn this.sortByLabel label}}- />- {{else}}- {{#each this.model.data as |data|}}- <th>{{data.x}}</th>+ <div+ class={{concatClass+ "admin-report-table"+ (if this.sortable "sortable")+ (if this.twoColumns "two-columns")+ }}+ ...attributes+ >+ <table class="table">+ <thead>+ <tr>+ {{#each this.model.computedLabels as |label|}}+ <AdminReportTableHeader+ @showSortingUI={{this.showSortingUI}}+ @currentSortDirection={{this.sortDirection}}+ @currentSortLabel={{this.sortLabel}}+ @label={{label}}+ @sortByLabel={{fn this.sortByLabel label}}+ />+ {{else}}+ {{#each this.model.data as |data|}}+ <th>{{data.x}}</th>+ {{/each}}{{/each}}+ </tr>+ </thead>+ <tbody>+ {{#each this.paginatedData as |data|}}+ <AdminReportTableRow+ @data={{data}}+ @labels={{this.model.computedLabels}}+ @options={{this.options}}+ />{{/each}}- </tr>- </thead>- <tbody>- {{#each this.paginatedData as |data|}}- <AdminReportTableRow- @data={{data}}- @labels={{this.model.computedLabels}}- @options={{this.options}}- />- {{/each}}- {{#if this.showTotalForSample}}- <tr class="total-row">- <td colspan={{this.totalsForSample.length}}>- {{i18n "admin.dashboard.reports.totals_for_sample"}}- </td>- </tr>- <tr class="admin-report-table-row">- {{#each this.totalsForSample as |total|}}+ {{#if this.showTotalForSample}}+ <tr class="total-row">+ <td colspan={{this.totalsForSample.length}}>+ {{i18n "admin.dashboard.reports.totals_for_sample"}}+ </td>+ </tr>+ <tr class="admin-report-table-row">+ {{#each this.totalsForSample as |total|}}+ <td+ class="admin-report-table-cell+ {{total.type}}+ {{total.property}}"+ >+ {{total.formattedValue}}+ </td>+ {{/each}}+ </tr>+ {{/if}}++ {{#if this.showTotal}}+ <tr class="total-row">+ <td colspan="2">+ {{i18n "admin.dashboard.reports.total"}}+ </td>+ </tr>+ <tr class="admin-report-table-row">+ <td class="admin-report-table-cell date x">—</td><td- class="admin-report-table-cell- {{total.type}}- {{total.property}}"- >- {{total.formattedValue}}+ class="admin-report-table-cell number y"+ >{{this.formattedTotal}}</td>+ </tr>+ {{/if}}++ {{#if this.showAverage}}+ <tr class="total-row">+ <td colspan="2">+ {{i18n "admin.dashboard.reports.average_for_sample"}}</td>- {{/each}}- </tr>- {{/if}}-- {{#if this.showTotal}}- <tr class="total-row">- <td colspan="2">- {{i18n "admin.dashboard.reports.total"}}- </td>- </tr>- <tr class="admin-report-table-row">- <td class="admin-report-table-cell date x">—</td>- <td- class="admin-report-table-cell number y"- >{{this.formattedTotal}}</td>- </tr>- {{/if}}-- {{#if this.showAverage}}- <tr class="total-row">- <td colspan="2">- {{i18n "admin.dashboard.reports.average_for_sample"}}- </td>- </tr>- <tr class="admin-report-table-row">- <td class="admin-report-table-cell date x">—</td>- <td- class="admin-report-table-cell number y"- >{{this.averageForSample}}</td>- </tr>- {{/if}}- </tbody>- </table>-- <div class="pagination">- {{#each this.pages as |pageState|}}- <DButton- @translatedLabel={{pageState.page}}- @action={{fn this.changePage pageState.index}}- class={{pageState.class}}- />- {{/each}}+ </tr>+ <tr class="admin-report-table-row">+ <td class="admin-report-table-cell date x">—</td>+ <td+ class="admin-report-table-cell number y"+ >{{this.averageForSample}}</td>+ </tr>+ {{/if}}+ </tbody>+ </table>++ <div class="pagination">+ {{#each this.pages as |pageState|}}+ <DButton+ @translatedLabel={{pageState.page}}+ @action={{fn this.changePage pageState.index}}+ class={{pageState.class}}+ />+ {{/each}}+ </div></div></template>}diff --git a/frontend/discourse/admin/components/admin-theme-editor.gjs b/frontend/discourse/admin/components/admin-theme-editor.gjsindex 95ef5d126f0..c9f94b07f72 100644--- a/frontend/discourse/admin/components/admin-theme-editor.gjs+++ b/frontend/discourse/admin/components/admin-theme-editor.gjs@@ -8,6 +8,7 @@ import { LinkTo } from "@ember/routing";import { next } from "@ember/runloop";import { service } from "@ember/service";import { htmlSafe } from "@ember/template";+import { tagName } from "@ember-decorators/component";import AceEditor from "discourse/components/ace-editor";import icon from "discourse/helpers/d-icon";import { fmt } from "discourse/lib/computed";@@ -32,6 +33,7 @@ const ADVANCED_FIELDS = ["body_tag",];+@tagName("")export default class AdminThemeEditor extends Component {@service router;@@ -164,106 +166,108 @@ export default class AdminThemeEditor extends Component {}<template>- {{#if (gt this.visibleTargets.length 1)}}- <div class="edit-main-nav admin-controls">+ <div ...attributes>+ {{#if (gt this.visibleTargets.length 1)}}+ <div class="edit-main-nav admin-controls">+ <nav>+ <ul class="nav nav-pills target">+ {{#each this.visibleTargets as |target|}}+ <li>+ <LinkTo+ @route={{this.editRouteName}}+ @models={{array this.theme.id target.name this.fieldName}}+ @replace={{true}}+ title={{this.field.title}}+ class={{if target.edited "edited" "blank"}}+ >+ {{#if target.error}}{{icon "triangle-exclamation"}}{{/if}}+ {{#if target.icon}}{{icon target.icon}}{{/if}}+ {{i18n (concat "admin.customize.theme." target.name)}}+ </LinkTo>+ </li>+ {{/each}}+ <li class="spacer"></li>+ <li>+ <label>+ <Input+ @type="checkbox"+ @checked={{this.showAdvanced}}+ {{on "click" this.toggleShowAdvanced}}+ />+ {{i18n "admin.customize.theme.show_advanced"}}+ </label>+ </li>+ </ul>+ </nav>+ </div>+ {{/if}}++ <div class="admin-controls"><nav>- <ul class="nav nav-pills target">- {{#each this.visibleTargets as |target|}}+ <ul class="nav nav-pills fields">+ {{#each this.visibleFields as |field|}}<li><LinkTo@route={{this.editRouteName}}- @models={{array this.theme.id target.name this.fieldName}}+ @models={{array+ this.theme.id+ this.currentTargetName+ field.name+ }}@replace={{true}}- title={{this.field.title}}- class={{if target.edited "edited" "blank"}}+ title={{field.title}}+ class={{if field.edited "edited" "blank"}}>- {{#if target.error}}{{icon "triangle-exclamation"}}{{/if}}- {{#if target.icon}}{{icon target.icon}}{{/if}}- {{i18n (concat "admin.customize.theme." target.name)}}+ {{#if field.error}}{{icon "triangle-exclamation"}}{{/if}}+ {{#if field.icon}}{{icon field.icon}}{{/if}}+ {{field.translatedName}}</LinkTo></li>{{/each}}+<li class="spacer"></li><li>- <label>- <Input- @type="checkbox"- @checked={{this.showAdvanced}}- {{on "click" this.toggleShowAdvanced}}- />- {{i18n "admin.customize.theme.show_advanced"}}- </label>+ {{#if (lte this.visibleTargets.length 1)}}+ <label>+ <Input+ @type="checkbox"+ @checked={{this.showAdvanced}}+ {{on "click" this.toggleShowAdvanced}}+ />+ {{i18n "admin.customize.theme.show_advanced"}}+ </label>+ {{/if}}+ <a href {{on "click" this.toggleMaximize}} class="no-text">+ {{icon this.maximizeIcon}}+ </a></li></ul></nav></div>- {{/if}}-- <div class="admin-controls">- <nav>- <ul class="nav nav-pills fields">- {{#each this.visibleFields as |field|}}- <li>- <LinkTo- @route={{this.editRouteName}}- @models={{array- this.theme.id- this.currentTargetName- field.name- }}- @replace={{true}}- title={{field.title}}- class={{if field.edited "edited" "blank"}}- >- {{#if field.error}}{{icon "triangle-exclamation"}}{{/if}}- {{#if field.icon}}{{icon field.icon}}{{/if}}- {{field.translatedName}}- </LinkTo>- </li>- {{/each}}- <li class="spacer"></li>- <li>- {{#if (lte this.visibleTargets.length 1)}}- <label>- <Input- @type="checkbox"- @checked={{this.showAdvanced}}- {{on "click" this.toggleShowAdvanced}}- />- {{i18n "admin.customize.theme.show_advanced"}}- </label>- {{/if}}- <a href {{on "click" this.toggleMaximize}} class="no-text">- {{icon this.maximizeIcon}}- </a>- </li>- </ul>- </nav>- </div>+ {{#if this.error}}+ <pre class="field-error">{{this.error}}</pre>+ {{/if}}- {{#if this.error}}- <pre class="field-error">{{this.error}}</pre>- {{/if}}+ {{#if this.warning}}+ <pre class="field-warning">{{htmlSafe this.warning}}</pre>+ {{/if}}- {{#if this.warning}}- <pre class="field-warning">{{htmlSafe this.warning}}</pre>- {{/if}}+ <div class="field-info">+ {{this.currentField.title}}+ </div>- <div class="field-info">- {{this.currentField.title}}+ <AceEditor+ @content={{this.activeSection}}+ @onChange={{fn (mut this.activeSection)}}+ @editorId={{this.editorId}}+ @mode={{this.activeSectionMode}}+ @autofocus="true"+ @placeholder={{this.placeholder}}+ @htmlPlaceholder={{true}}+ @save={{this.save}}+ @setWarning={{this.setWarning}}+ /></div>-- <AceEditor- @content={{this.activeSection}}- @onChange={{fn (mut this.activeSection)}}- @editorId={{this.editorId}}- @mode={{this.activeSectionMode}}- @autofocus="true"- @placeholder={{this.placeholder}}- @htmlPlaceholder={{true}}- @save={{this.save}}- @setWarning={{this.setWarning}}- /></template>}diff --git a/frontend/discourse/admin/components/color-input.gjs b/frontend/discourse/admin/components/color-input.gjsindex f4dbebf86b1..e9e43ae2350 100644--- a/frontend/discourse/admin/components/color-input.gjs+++ b/frontend/discourse/admin/components/color-input.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { on } from "@ember/modifier";import { action, computed } from "@ember/object";diff --git a/frontend/discourse/admin/components/edit-category-panel.gjs b/frontend/discourse/admin/components/edit-category-panel.gjsindex e813396ea79..217c0b516a7 100644--- a/frontend/discourse/admin/components/edit-category-panel.gjs+++ b/frontend/discourse/admin/components/edit-category-panel.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { equal } from "@ember/object/computed";import { getOwner } from "@ember/owner";diff --git a/frontend/discourse/admin/components/edit-category-tab.gjs b/frontend/discourse/admin/components/edit-category-tab.gjsindex a2e438f4bda..ee55f27647a 100644--- a/frontend/discourse/admin/components/edit-category-tab.gjs+++ b/frontend/discourse/admin/components/edit-category-tab.gjs@@ -5,7 +5,8 @@ import { action } from "@ember/object";import { empty } from "@ember/object/computed";import { scheduleOnce } from "@ember/runloop";import { underscore } from "@ember/string";-import { classNameBindings, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";+import concatClass from "discourse/helpers/concat-class";import { addUniqueValueToArray } from "discourse/lib/array-tools";import { propertyEqual } from "discourse/lib/computed";import discourseComputed from "discourse/lib/decorators";@@ -13,8 +14,7 @@ import getURL from "discourse/lib/get-url";import DiscourseURL from "discourse/lib/url";import { i18n } from "discourse-i18n";-@tagName("li")-@classNameBindings("active", "tabClassName")+@tagName("")export default class EditCategoryTab extends Component {@empty("params.slug") newCategory;@propertyEqual("selectedTab", "tab") active;@@ -54,10 +54,13 @@ export default class EditCategoryTab extends Component {}<template>- <a- href- {{on "click" this.select}}- class={{if this.active "active"}}- >{{this.title}}</a>+ <li+ class={{concatClass (if this.active "active") this.tabClassName}}+ ...attributes+ >+ <a href {{on "click" this.select}} class={{if this.active "active"}}>+ {{this.title}}+ </a>+ </li></template>}diff --git a/frontend/discourse/admin/components/email-styles-editor.gjs b/frontend/discourse/admin/components/email-styles-editor.gjsindex 7a39002c5c0..6457bf38a1f 100644--- a/frontend/discourse/admin/components/email-styles-editor.gjs+++ b/frontend/discourse/admin/components/email-styles-editor.gjs@@ -4,11 +4,13 @@ import { fn } from "@ember/helper";import { action, computed } from "@ember/object";import { reads } from "@ember/object/computed";import { service } from "@ember/service";+import { tagName } from "@ember-decorators/component";import AceEditor from "discourse/components/ace-editor";import DButton from "discourse/components/d-button";import discourseComputed from "discourse/lib/decorators";import { i18n } from "discourse-i18n";+@tagName("")export default class EmailStylesEditor extends Component {@service dialog;@@ -53,22 +55,24 @@ export default class EmailStylesEditor extends Component {}<template>- <AceEditor- @content={{this.editorContents}}- @onChange={{fn (mut this.editorContents)}}- @mode={{this.currentEditorMode}}- @editorId={{this.editorId}}- @save={{@save}}- />+ <div ...attributes>+ <AceEditor+ @content={{this.editorContents}}+ @onChange={{fn (mut this.editorContents)}}+ @mode={{this.currentEditorMode}}+ @editorId={{this.editorId}}+ @save={{@save}}+ />- <div class="admin-footer">- <div class="buttons">- <DButton- @action={{this.reset}}- @disabled={{this.resetDisabled}}- @label="admin.customize.email_style.reset"- class="btn-default"- />+ <div class="admin-footer">+ <div class="buttons">+ <DButton+ @action={{this.reset}}+ @disabled={{this.resetDisabled}}+ @label="admin.customize.email_style.reset"+ class="btn-default"+ />+ </div></div></div></template>diff --git a/frontend/discourse/admin/components/emoji-uploader.gjs b/frontend/discourse/admin/components/emoji-uploader.gjsindex 5747da29331..46eadb40e68 100644--- a/frontend/discourse/admin/components/emoji-uploader.gjs+++ b/frontend/discourse/admin/components/emoji-uploader.gjs@@ -7,6 +7,7 @@ import { notEmpty } from "@ember/object/computed";import { getOwner } from "@ember/owner";import didInsert from "@ember/render-modifiers/modifiers/did-insert";import { isEmpty } from "@ember/utils";+import { tagName } from "@ember-decorators/component";import DButton from "discourse/components/d-button";import withEventValue from "discourse/helpers/with-event-value";import { uniqueItemsFromArray } from "discourse/lib/array-tools";@@ -17,6 +18,7 @@ import { i18n } from "discourse-i18n";const DEFAULT_GROUP = "default";+@tagName("")export default class EmojiUploader extends Component {uppyUpload = new UppyUpload(getOwner(this), {id: "emoji-uploader",@@ -56,7 +58,6 @@ export default class EmojiUploader extends Component {group = "default";emojiGroups = null;newEmojiGroups = null;- tagName = null;didReceiveAttrs() {super.didReceiveAttrs(...arguments);diff --git a/frontend/discourse/admin/components/flag-user.gjs b/frontend/discourse/admin/components/flag-user.gjsindex 399729d3bbc..f63e3d3a616 100644--- a/frontend/discourse/admin/components/flag-user.gjs+++ b/frontend/discourse/admin/components/flag-user.gjs@@ -2,34 +2,38 @@import Component from "@ember/component";import { array } from "@ember/helper";import { LinkTo } from "@ember/routing";+import { tagName } from "@ember-decorators/component";import ageWithTooltip from "discourse/helpers/age-with-tooltip";import avatar from "discourse/helpers/avatar";+@tagName("")export default class FlagUser extends Component {<template>- <div class="flag-user">- <LinkTo- @route="adminUser"- @models={{array this.user.id this.user.username}}- class="flag-user-avatar"- >- {{avatar this.user imageSize="small"}}- </LinkTo>- <div class="flag-user-details">- <div class="flag-user-who">- <LinkTo- @route="adminUser"- @models={{array this.user.id this.user.username}}- class="flag-user-username"- >- {{this.user.username}}- </LinkTo>- <div class="flag-user-date">- {{ageWithTooltip this.date}}+ <div ...attributes>+ <div class="flag-user">+ <LinkTo+ @route="adminUser"+ @models={{array this.user.id this.user.username}}+ class="flag-user-avatar"+ >+ {{avatar this.user imageSize="small"}}+ </LinkTo>+ <div class="flag-user-details">+ <div class="flag-user-who">+ <LinkTo+ @route="adminUser"+ @models={{array this.user.id this.user.username}}+ class="flag-user-username"+ >+ {{this.user.username}}+ </LinkTo>+ <div class="flag-user-date">+ {{ageWithTooltip this.date}}+ </div>+ </div>+ <div class="flag-user-extra">+ {{yield}}</div>- </div>- <div class="flag-user-extra">- {{yield}}</div></div></div>diff --git a/frontend/discourse/admin/components/images-uploader.gjs b/frontend/discourse/admin/components/images-uploader.gjsindex 18a857d5817..e2c9f54be68 100644--- a/frontend/discourse/admin/components/images-uploader.gjs+++ b/frontend/discourse/admin/components/images-uploader.gjs@@ -7,7 +7,7 @@ import icon from "discourse/helpers/d-icon";import UppyUpload from "discourse/lib/uppy/uppy-upload";import { i18n } from "discourse-i18n";-@tagName("span")+@tagName("")export default class ImagesUploader extends Component {uppyUpload = new UppyUpload(getOwner(this), {id: "images-uploader",@@ -29,24 +29,26 @@ export default class ImagesUploader extends Component {}<template>- <label- class="btn"- disabled={{this.uploadingOrProcessing}}- title={{i18n "admin.site_settings.uploaded_image_list.upload.title"}}- >- {{icon "far-image"}} {{this.uploadButtonText}}- <input- {{didInsert this.uppyUpload.setup}}- class="hidden-upload-field"- disabled={{this.uppyUpload.uploading}}- type="file"- accept="image/*"- multiple- />- </label>- {{#if this.uploadingOrProcessing}}- <span>{{i18n "upload_selector.uploading"}}- {{this.uppyUpload.uploadProgress}}%</span>- {{/if}}+ <span ...attributes>+ <label+ class="btn"+ disabled={{this.uploadingOrProcessing}}+ title={{i18n "admin.site_settings.uploaded_image_list.upload.title"}}+ >+ {{icon "far-image"}} {{this.uploadButtonText}}+ <input+ {{didInsert this.uppyUpload.setup}}+ class="hidden-upload-field"+ disabled={{this.uppyUpload.uploading}}+ type="file"+ accept="image/*"+ multiple+ />+ </label>+ {{#if this.uploadingOrProcessing}}+ <span>{{i18n "upload_selector.uploading"}}+ {{this.uppyUpload.uploadProgress}}%</span>+ {{/if}}+ </span></template>}diff --git a/frontend/discourse/admin/components/report-filters/filter.js b/frontend/discourse/admin/components/report-filters/filter.jsindex 6aa1dfcf6b8..cdc7798e2c4 100644--- a/frontend/discourse/admin/components/report-filters/filter.js+++ b/frontend/discourse/admin/components/report-filters/filter.js@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { action } from "@ember/object";diff --git a/frontend/discourse/admin/components/report-filters/group.gjs b/frontend/discourse/admin/components/report-filters/group.gjsindex a6e458b9035..4948b4dbfee 100644--- a/frontend/discourse/admin/components/report-filters/group.gjs+++ b/frontend/discourse/admin/components/report-filters/group.gjs@@ -1,10 +1,10 @@import { hash } from "@ember/helper";import { computed } from "@ember/object";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import FilterComponent from "discourse/admin/components/report-filters/filter";import ComboBox from "discourse/select-kit/components/combo-box";-@classNames("group-filter")+@tagName("")export default class Group extends FilterComponent {@computedget groupOptions() {@@ -19,17 +19,19 @@ export default class Group extends FilterComponent {}<template>- <ComboBox- @valueProperty="value"- @content={{this.groupOptions}}- @value={{this.groupId}}- @onChange={{this.onChange}}- @options={{hash- allowAny=this.filter.allow_any- autoInsertNoneItem=this.filter.auto_insert_none_item- filterable=true- none="admin.dashboard.reports.groups"- }}- />+ <div class="group-filter" ...attributes>+ <ComboBox+ @valueProperty="value"+ @content={{this.groupOptions}}+ @value={{this.groupId}}+ @onChange={{this.onChange}}+ @options={{hash+ allowAny=this.filter.allow_any+ autoInsertNoneItem=this.filter.auto_insert_none_item+ filterable=true+ none="admin.dashboard.reports.groups"+ }}+ />+ </div></template>}diff --git a/frontend/discourse/admin/components/screened-ip-address-form.gjs b/frontend/discourse/admin/components/screened-ip-address-form.gjsindex 897b1c3325c..87558117d3b 100644--- a/frontend/discourse/admin/components/screened-ip-address-form.gjs+++ b/frontend/discourse/admin/components/screened-ip-address-form.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { fn } from "@ember/helper";import { action } from "@ember/object";diff --git a/frontend/discourse/admin/components/setting-validation-message.gjs b/frontend/discourse/admin/components/setting-validation-message.gjsindex c87bfb4892d..e1c33b1e34c 100644--- a/frontend/discourse/admin/components/setting-validation-message.gjs+++ b/frontend/discourse/admin/components/setting-validation-message.gjs@@ -1,12 +1,16 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";+import { tagName } from "@ember-decorators/component";import icon from "discourse/helpers/d-icon";+@tagName("")export default class SettingValidationMessage extends Component {<template>- <div class="validation-error {{unless this.message 'hidden'}}">- {{icon "xmark"}}- {{this.message}}+ <div ...attributes>+ <div class="validation-error {{unless this.message 'hidden'}}">+ {{icon "xmark"}}+ {{this.message}}+ </div></div></template>}diff --git a/frontend/discourse/admin/components/site-customization-change-details.gjs b/frontend/discourse/admin/components/site-customization-change-details.gjsindex 449ba76def3..e109919825f 100644--- a/frontend/discourse/admin/components/site-customization-change-details.gjs+++ b/frontend/discourse/admin/components/site-customization-change-details.gjs@@ -1,64 +1,68 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";+import { tagName } from "@ember-decorators/component";import SiteCustomizationChangeField from "discourse/admin/components/site-customization-change-field";import { i18n } from "discourse-i18n";+@tagName("")export default class SiteCustomizationChangeDetails extends Component {<template>- <section class="field">- <b>{{i18n "admin.customize.enabled"}}</b>:- {{this.change.enabled}}- </section>+ <div ...attributes>+ <section class="field">+ <b>{{i18n "admin.customize.enabled"}}</b>:+ {{this.change.enabled}}+ </section>- <SiteCustomizationChangeField- @field={{this.change.stylesheet}}- @name="admin.customize.css"- />- <SiteCustomizationChangeField- @icon="mobile"- @field={{this.change.mobile_stylesheet}}- @name="admin.customize.css"- />+ <SiteCustomizationChangeField+ @field={{this.change.stylesheet}}+ @name="admin.customize.css"+ />+ <SiteCustomizationChangeField+ @icon="mobile"+ @field={{this.change.mobile_stylesheet}}+ @name="admin.customize.css"+ />- <SiteCustomizationChangeField- @field={{this.change.header}}- @name="admin.customize.header"- />- <SiteCustomizationChangeField- @icon="mobile"- @field={{this.change.mobile_header}}- @name="admin.customize.header"- />+ <SiteCustomizationChangeField+ @field={{this.change.header}}+ @name="admin.customize.header"+ />+ <SiteCustomizationChangeField+ @icon="mobile"+ @field={{this.change.mobile_header}}+ @name="admin.customize.header"+ />- <SiteCustomizationChangeField- @field={{this.change.top}}- @name="admin.customize.top"- />- <SiteCustomizationChangeField- @icon="mobile"- @field={{this.change.mobile_top}}- @name="admin.customize.top"- />+ <SiteCustomizationChangeField+ @field={{this.change.top}}+ @name="admin.customize.top"+ />+ <SiteCustomizationChangeField+ @icon="mobile"+ @field={{this.change.mobile_top}}+ @name="admin.customize.top"+ />- <SiteCustomizationChangeField- @field={{this.change.footer}}- @name="admin.customize.footer"- />- <SiteCustomizationChangeField- @icon="mobile"- @field={{this.change.mobile_footer}}- @name="admin.customize.footer"- />+ <SiteCustomizationChangeField+ @field={{this.change.footer}}+ @name="admin.customize.footer"+ />+ <SiteCustomizationChangeField+ @icon="mobile"+ @field={{this.change.mobile_footer}}+ @name="admin.customize.footer"+ />- <SiteCustomizationChangeField- @icon="file-text-o"- @field={{this.change.head_tag}}- @name="admin.customize.head_tag.text"- />- <SiteCustomizationChangeField- @icon="file-text-o"- @field={{this.change.body_tag}}- @name="admin.customize.body_tag.text"- />+ <SiteCustomizationChangeField+ @icon="file-text-o"+ @field={{this.change.head_tag}}+ @name="admin.customize.head_tag.text"+ />+ <SiteCustomizationChangeField+ @icon="file-text-o"+ @field={{this.change.body_tag}}+ @name="admin.customize.body_tag.text"+ />+ </div></template>}diff --git a/frontend/discourse/admin/components/site-customization-change-field.gjs b/frontend/discourse/admin/components/site-customization-change-field.gjsindex 9731aa7f72a..b087329a8ac 100644--- a/frontend/discourse/admin/components/site-customization-change-field.gjs+++ b/frontend/discourse/admin/components/site-customization-change-field.gjs@@ -1,18 +1,22 @@/* eslint-disable ember/no-classic-components */import Component, { Textarea } from "@ember/component";+import { tagName } from "@ember-decorators/component";import { i18n } from "discourse-i18n";+@tagName("")export default class SiteCustomizationChangeField extends Component {<template>- {{#if this.field}}- <section class="field">- <b>{{i18n this.name}}</b>: ({{i18n- "character_count"- count=this.field.length- }})- <br />- <Textarea @value={{this.field}} class="plain" />- </section>- {{/if}}+ <div ...attributes>+ {{#if this.field}}+ <section class="field">+ <b>{{i18n this.name}}</b>: ({{i18n+ "character_count"+ count=this.field.length+ }})+ <br />+ <Textarea @value={{this.field}} class="plain" />+ </section>+ {{/if}}+ </div></template>}diff --git a/frontend/discourse/admin/components/site-settings/enum.gjs b/frontend/discourse/admin/components/site-settings/enum.gjsindex 2653188d563..2678c6602d5 100644--- a/frontend/discourse/admin/components/site-settings/enum.gjs+++ b/frontend/discourse/admin/components/site-settings/enum.gjs@@ -1,23 +1,27 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { fn, hash } from "@ember/helper";+import { tagName } from "@ember-decorators/component";import ComboBox from "discourse/select-kit/components/combo-box";+@tagName("")export default class Enum extends Component {<template>- <ComboBox- @content={{this.setting.validValues}}- @value={{this.value}}- @onChange={{fn (mut this.value)}}- @valueProperty={{this.setting.computedValueProperty}}- @nameProperty={{this.setting.computedNameProperty}}- @options={{hash- castInteger=true- allowAny=this.setting.allowsNone- disabled=@disabled- }}- />+ <div ...attributes>+ <ComboBox+ @content={{this.setting.validValues}}+ @value={{this.value}}+ @onChange={{fn (mut this.value)}}+ @valueProperty={{this.setting.computedValueProperty}}+ @nameProperty={{this.setting.computedNameProperty}}+ @options={{hash+ castInteger=true+ allowAny=this.setting.allowsNone+ disabled=@disabled+ }}+ />- {{this.preview}}+ {{this.preview}}+ </div></template>}diff --git a/frontend/discourse/admin/components/site-settings/group-list.gjs b/frontend/discourse/admin/components/site-settings/group-list.gjsindex 3e1f0564913..a10192021f5 100644--- a/frontend/discourse/admin/components/site-settings/group-list.gjs+++ b/frontend/discourse/admin/components/site-settings/group-list.gjs@@ -1,8 +1,10 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { action, computed } from "@ember/object";+import { tagName } from "@ember-decorators/component";import ListSetting from "discourse/select-kit/components/list-setting";+@tagName("")export default class GroupList extends Component {tokenSeparator = "|";nameProperty = "name";@@ -26,14 +28,16 @@ export default class GroupList extends Component {}<template>- <ListSetting- @value={{this.settingValue}}- @choices={{this.groupChoices}}- @settingName="name"- @mandatoryValues={{this.setting.mandatory_values}}- @nameProperty={{this.nameProperty}}- @valueProperty={{this.valueProperty}}- @onChange={{this.onChangeGroupListSetting}}- />+ <div ...attributes>+ <ListSetting+ @value={{this.settingValue}}+ @choices={{this.groupChoices}}+ @settingName="name"+ @mandatoryValues={{this.setting.mandatory_values}}+ @nameProperty={{this.nameProperty}}+ @valueProperty={{this.valueProperty}}+ @onChange={{this.onChangeGroupListSetting}}+ />+ </div></template>}diff --git a/frontend/discourse/admin/components/site-settings/host-list.gjs b/frontend/discourse/admin/components/site-settings/host-list.gjsindex cc296ff7c24..7775997108b 100644--- a/frontend/discourse/admin/components/site-settings/host-list.gjs+++ b/frontend/discourse/admin/components/site-settings/host-list.gjs@@ -2,8 +2,10 @@import Component from "@ember/component";import { hash } from "@ember/helper";import { action, computed } from "@ember/object";+import { tagName } from "@ember-decorators/component";import ListSetting from "discourse/select-kit/components/list-setting";+@tagName("")export default class HostList extends Component {tokenSeparator = "|";choices = null;@@ -23,12 +25,14 @@ export default class HostList extends Component {}<template>- <ListSetting- @value={{this.settingValue}}- @settingName={{this.setting.setting}}- @choices={{this.settingValue}}- @onChange={{this.onChange}}- @options={{hash allowAny=this.allowAny disabled=@disabled}}- />+ <div ...attributes>+ <ListSetting+ @value={{this.settingValue}}+ @settingName={{this.setting.setting}}+ @choices={{this.settingValue}}+ @onChange={{this.onChange}}+ @options={{hash allowAny=this.allowAny disabled=@disabled}}+ />+ </div></template>}diff --git a/frontend/discourse/admin/components/site-settings/list.gjs b/frontend/discourse/admin/components/site-settings/list.gjsindex ac1bd689185..65bdd482917 100644--- a/frontend/discourse/admin/components/site-settings/list.gjs+++ b/frontend/discourse/admin/components/site-settings/list.gjs@@ -1,14 +1,18 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";+import { tagName } from "@ember-decorators/component";import ValueList from "discourse/admin/components/value-list";+@tagName("")export default class List extends Component {<template>- <ValueList- @values={{this.value}}- @inputDelimiter="|"- @choices={{this.setting.choices}}- @disabled={{@disabled}}- />+ <div ...attributes>+ <ValueList+ @values={{this.value}}+ @inputDelimiter="|"+ @choices={{this.setting.choices}}+ @disabled={{@disabled}}+ />+ </div></template>}diff --git a/frontend/discourse/admin/components/site-settings/named-list.gjs b/frontend/discourse/admin/components/site-settings/named-list.gjsindex 21656e3c58a..d4fc3289786 100644--- a/frontend/discourse/admin/components/site-settings/named-list.gjs+++ b/frontend/discourse/admin/components/site-settings/named-list.gjs@@ -2,8 +2,10 @@import Component from "@ember/component";import { hash } from "@ember/helper";import { action, computed } from "@ember/object";+import { tagName } from "@ember-decorators/component";import ListSetting from "discourse/select-kit/components/list-setting";+@tagName("")export default class NamedList extends Component {tokenSeparator = "|";@@ -35,14 +37,16 @@ export default class NamedList extends Component {}<template>- <ListSetting- @value={{this.settingValue}}- @settingName={{this.setting.setting}}- @choices={{this.settingChoices}}- @nameProperty="name"- @valueProperty="value"- @onChange={{this.onChangeListSetting}}- @options={{hash allowAny=this.allowAny}}- />+ <div ...attributes>+ <ListSetting+ @value={{this.settingValue}}+ @settingName={{this.setting.setting}}+ @choices={{this.settingChoices}}+ @nameProperty="name"+ @valueProperty="value"+ @onChange={{this.onChangeListSetting}}+ @options={{hash allowAny=this.allowAny}}+ />+ </div></template>}diff --git a/frontend/discourse/admin/components/site-settings/simple-list.gjs b/frontend/discourse/admin/components/site-settings/simple-list.gjsindex ca9331e7ef0..0a4de884659 100644--- a/frontend/discourse/admin/components/site-settings/simple-list.gjs+++ b/frontend/discourse/admin/components/site-settings/simple-list.gjs@@ -1,8 +1,10 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { action } from "@ember/object";+import { tagName } from "@ember-decorators/component";import SimpleList from "discourse/admin/components/simple-list";+@tagName("")export default class SiteSettingSimpleList extends Component {inputDelimiter = "|";@@ -12,12 +14,14 @@ export default class SiteSettingSimpleList extends Component {}<template>- <SimpleList- @values={{this.value}}- @inputDelimiter={{this.inputDelimiter}}- @onChange={{this.onChange}}- @choices={{this.setting.choices}}- @allowAny={{this.setting.allow_any}}- />+ <div ...attributes>+ <SimpleList+ @values={{this.value}}+ @inputDelimiter={{this.inputDelimiter}}+ @onChange={{this.onChange}}+ @choices={{this.setting.choices}}+ @allowAny={{this.setting.allow_any}}+ />+ </div></template>}diff --git a/frontend/discourse/admin/components/site-settings/string.gjs b/frontend/discourse/admin/components/site-settings/string.gjsindex 0d5a0087508..2f4be09d7a9 100644--- a/frontend/discourse/admin/components/site-settings/string.gjs+++ b/frontend/discourse/admin/components/site-settings/string.gjs@@ -1,29 +1,33 @@/* eslint-disable ember/no-classic-components */import Component, { Input, Textarea } from "@ember/component";+import { tagName } from "@ember-decorators/component";import TextField from "discourse/components/text-field";+@tagName("")export default class String extends Component {<template>- {{#if this.setting.textarea}}- <Textarea- @value={{this.value}}- class="input-setting-textarea"- @disabled={{@disabled}}- />- {{else if this.isSecret}}- <Input- @type="password"- @value={{this.value}}- class="input-setting-string"- autocomplete="new-password"- @disabled={{@disabled}}- />- {{else}}- <TextField- @value={{this.value}}- @classNames="input-setting-string"- @disabled={{@disabled}}- />- {{/if}}+ <div ...attributes>+ {{#if this.setting.textarea}}+ <Textarea+ @value={{this.value}}+ class="input-setting-textarea"+ @disabled={{@disabled}}+ />+ {{else if this.isSecret}}+ <Input+ @type="password"+ @value={{this.value}}+ class="input-setting-string"+ autocomplete="new-password"+ @disabled={{@disabled}}+ />+ {{else}}+ <TextField+ @value={{this.value}}+ @classNames="input-setting-string"+ @disabled={{@disabled}}+ />+ {{/if}}+ </div></template>}diff --git a/frontend/discourse/admin/components/site-settings/tag-group-list.gjs b/frontend/discourse/admin/components/site-settings/tag-group-list.gjsindex 6c0ab462140..d36da5a703f 100644--- a/frontend/discourse/admin/components/site-settings/tag-group-list.gjs+++ b/frontend/discourse/admin/components/site-settings/tag-group-list.gjs@@ -2,9 +2,11 @@import Component from "@ember/component";import { hash } from "@ember/helper";import { action } from "@ember/object";+import { tagName } from "@ember-decorators/component";import discourseComputed from "discourse/lib/decorators";import TagGroupChooser from "discourse/select-kit/components/tag-group-chooser";+@tagName("")export default class TagGroupList extends Component {@discourseComputed("value")selectedTagGroups(value) {@@ -17,13 +19,15 @@ export default class TagGroupList extends Component {}<template>- <TagGroupChooser- @tagGroups={{this.selectedTagGroups}}- @onChange={{this.onTagGroupChange}}- @options={{hash- filterPlaceholder="category.required_tag_group.placeholder"- disabled=@disabled- }}- />+ <div ...attributes>+ <TagGroupChooser+ @tagGroups={{this.selectedTagGroups}}+ @onChange={{this.onTagGroupChange}}+ @options={{hash+ filterPlaceholder="category.required_tag_group.placeholder"+ disabled=@disabled+ }}+ />+ </div></template>}diff --git a/frontend/discourse/admin/components/site-settings/tag-list.gjs b/frontend/discourse/admin/components/site-settings/tag-list.gjsindex 38b95393e43..43edf75764a 100644--- a/frontend/discourse/admin/components/site-settings/tag-list.gjs+++ b/frontend/discourse/admin/components/site-settings/tag-list.gjs@@ -2,9 +2,11 @@import Component from "@ember/component";import { hash } from "@ember/helper";import { action } from "@ember/object";+import { tagName } from "@ember-decorators/component";import discourseComputed from "discourse/lib/decorators";import TagChooser from "discourse/select-kit/components/tag-chooser";+@tagName("")export default class TagList extends Component {@discourseComputed("value")selectedTags(value) {@@ -17,12 +19,14 @@ export default class TagList extends Component {}<template>- <TagChooser- @tags={{this.selectedTags}}- @onChange={{this.changeSelectedTags}}- @everyTag={{true}}- @unlimitedTagCount={{true}}- @options={{hash allowAny=false disabled=@disabled}}- />+ <div ...attributes>+ <TagChooser+ @tags={{this.selectedTags}}+ @onChange={{this.changeSelectedTags}}+ @everyTag={{true}}+ @unlimitedTagCount={{true}}+ @options={{hash allowAny=false disabled=@disabled}}+ />+ </div></template>}diff --git a/frontend/discourse/admin/components/site-settings/uploaded-image-list.gjs b/frontend/discourse/admin/components/site-settings/uploaded-image-list.gjsindex e99fe8075c5..da85da959d1 100644--- a/frontend/discourse/admin/components/site-settings/uploaded-image-list.gjs+++ b/frontend/discourse/admin/components/site-settings/uploaded-image-list.gjs@@ -3,9 +3,11 @@ import Component from "@ember/component";import { fn, hash } from "@ember/helper";import { action } from "@ember/object";import { service } from "@ember/service";+import { tagName } from "@ember-decorators/component";import UploadedImageListModal from "discourse/admin/components/modal/uploaded-image-list";import DButton from "discourse/components/d-button";+@tagName("")export default class UploadedImageList extends Component {@service modal;@@ -21,13 +23,15 @@ export default class UploadedImageList extends Component {}<template>- <DButton- @label="admin.site_settings.uploaded_image_list.label"- @action={{fn- this.showUploadModal- (hash value=this.value setting=this.setting)- }}- @disabled={{@disabled}}- />+ <div ...attributes>+ <DButton+ @label="admin.site_settings.uploaded_image_list.label"+ @action={{fn+ this.showUploadModal+ (hash value=this.value setting=this.setting)+ }}+ @disabled={{@disabled}}+ />+ </div></template>}diff --git a/frontend/discourse/admin/components/site-settings/url-list.gjs b/frontend/discourse/admin/components/site-settings/url-list.gjsindex 132381b494d..9701cd3e5ec 100644--- a/frontend/discourse/admin/components/site-settings/url-list.gjs+++ b/frontend/discourse/admin/components/site-settings/url-list.gjs@@ -1,13 +1,17 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";+import { tagName } from "@ember-decorators/component";import ValueList from "discourse/admin/components/value-list";+@tagName("")export default class UrlList extends Component {<template>- <ValueList- @disabled={{@disabled}}- @values={{this.value}}- @addKey="admin.site_settings.add_url"- />+ <div ...attributes>+ <ValueList+ @disabled={{@disabled}}+ @values={{this.value}}+ @addKey="admin.site_settings.add_url"+ />+ </div></template>}diff --git a/frontend/discourse/admin/components/site-settings/value-list.gjs b/frontend/discourse/admin/components/site-settings/value-list.gjsindex f33abdf8928..9d343935909 100644--- a/frontend/discourse/admin/components/site-settings/value-list.gjs+++ b/frontend/discourse/admin/components/site-settings/value-list.gjs@@ -1,9 +1,13 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";+import { tagName } from "@ember-decorators/component";import ValueList from "discourse/admin/components/value-list";+@tagName("")export default class SiteSettingValueList extends Component {<template>- <ValueList @disabled={{@disabled}} @values={{this.value}} />+ <div ...attributes>+ <ValueList @disabled={{@disabled}} @values={{this.value}} />+ </div></template>}diff --git a/frontend/discourse/admin/components/value-list.gjs b/frontend/discourse/admin/components/value-list.gjsindex 7eedd47e965..d0a6348f543 100644--- a/frontend/discourse/admin/components/value-list.gjs+++ b/frontend/discourse/admin/components/value-list.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component, { Input } from "@ember/component";import { fn, hash } from "@ember/helper";import { on } from "@ember/modifier";diff --git a/frontend/discourse/admin/components/watched-word-form.gjs b/frontend/discourse/admin/components/watched-word-form.gjsindex 81ccc03401f..0acb6451ac2 100644--- a/frontend/discourse/admin/components/watched-word-form.gjs+++ b/frontend/discourse/admin/components/watched-word-form.gjs@@ -4,7 +4,7 @@ import { fn, hash } from "@ember/helper";import { action } from "@ember/object";import { empty, equal } from "@ember/object/computed";import { isEmpty } from "@ember/utils";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import { observes } from "@ember-decorators/object";import WatchedWord from "discourse/admin/models/watched-word";import DButton from "discourse/components/d-button";@@ -15,8 +15,7 @@ import TagChooser from "discourse/select-kit/components/tag-chooser";import WatchedWords from "discourse/select-kit/components/watched-words";import { i18n } from "discourse-i18n";-@tagName("form")-@classNames("watched-word-form")+@tagName("")export default class WatchedWordForm extends Component {formSubmitted = false;actionKey = null;@@ -132,111 +131,113 @@ export default class WatchedWordForm extends Component {}<template>- <div class="watched-word-input">- <label for="watched-word">{{i18n- "admin.watched_words.form.label"- }}</label>- <WatchedWords- @id="watched-words"- @value={{this.words}}- @onChange={{fn (mut this.words)}}- @options={{hash- filterPlaceholder=this.placeholderKey- disabled=this.formSubmitted- }}- />- </div>-- {{#if this.canReplace}}+ <form class="watched-word-form" ...attributes><div class="watched-word-input">- <label for="watched-replacement">{{i18n- "admin.watched_words.form.replace_label"+ <label for="watched-word">{{i18n+ "admin.watched_words.form.label"}}</label>- <TextField- @id="watched-replacement"- @value={{this.replacement}}- @disabled={{this.formSubmitted}}- @autocorrect="off"- @autocapitalize="off"- @placeholderKey="admin.watched_words.form.replace_placeholder"- class="watched-word-input-field"+ <WatchedWords+ @id="watched-words"+ @value={{this.words}}+ @onChange={{fn (mut this.words)}}+ @options={{hash+ filterPlaceholder=this.placeholderKey+ disabled=this.formSubmitted+ }}/></div>- {{/if}}- {{#if this.canTag}}- <div class="watched-word-input">- <label for="watched-tag">{{i18n- "admin.watched_words.form.tag_label"- }}</label>- <TagChooser- @id="watched-tag"- @tags={{this.selectedTags}}- @onChange={{this.changeSelectedTags}}- @everyTag={{true}}- @options={{hash allowAny=true disabled=this.formSubmitted}}- class="watched-word-input-field"- />- </div>- {{/if}}-- {{#if this.canLink}}- <div class="watched-word-input">- <label for="watched-link">{{i18n- "admin.watched_words.form.link_label"- }}</label>- <TextField- @id="watched-link"- @value={{this.replacement}}- @disabled={{this.formSubmitted}}- @autocorrect="off"- @autocapitalize="off"- @placeholderKey="admin.watched_words.form.link_placeholder"- class="watched-word-input-field"- />- </div>- {{/if}}-- <div class="watched-word-input">- <label for="watched-case-sensitivity">{{i18n- "admin.watched_words.form.case_sensitivity_label"- }}</label>- <label class="case-sensitivity-checkbox checkbox-label">- <Input- @type="checkbox"- @checked={{this.isCaseSensitive}}- disabled={{this.formSubmitted}}- />- {{i18n "admin.watched_words.form.case_sensitivity_description"}}- </label>- </div>+ {{#if this.canReplace}}+ <div class="watched-word-input">+ <label for="watched-replacement">{{i18n+ "admin.watched_words.form.replace_label"+ }}</label>+ <TextField+ @id="watched-replacement"+ @value={{this.replacement}}+ @disabled={{this.formSubmitted}}+ @autocorrect="off"+ @autocapitalize="off"+ @placeholderKey="admin.watched_words.form.replace_placeholder"+ class="watched-word-input-field"+ />+ </div>+ {{/if}}++ {{#if this.canTag}}+ <div class="watched-word-input">+ <label for="watched-tag">{{i18n+ "admin.watched_words.form.tag_label"+ }}</label>+ <TagChooser+ @id="watched-tag"+ @tags={{this.selectedTags}}+ @onChange={{this.changeSelectedTags}}+ @everyTag={{true}}+ @options={{hash allowAny=true disabled=this.formSubmitted}}+ class="watched-word-input-field"+ />+ </div>+ {{/if}}++ {{#if this.canLink}}+ <div class="watched-word-input">+ <label for="watched-link">{{i18n+ "admin.watched_words.form.link_label"+ }}</label>+ <TextField+ @id="watched-link"+ @value={{this.replacement}}+ @disabled={{this.formSubmitted}}+ @autocorrect="off"+ @autocapitalize="off"+ @placeholderKey="admin.watched_words.form.link_placeholder"+ class="watched-word-input-field"+ />+ </div>+ {{/if}}- {{#if this.canReplace}}<div class="watched-word-input">- <label for="watched-html">{{i18n- "admin.watched_words.form.html_label"+ <label for="watched-case-sensitivity">{{i18n+ "admin.watched_words.form.case_sensitivity_label"}}</label>- <label class="html-checkbox checkbox-label">+ <label class="case-sensitivity-checkbox checkbox-label"><Input@type="checkbox"- @checked={{this.isHtml}}+ @checked={{this.isCaseSensitive}}disabled={{this.formSubmitted}}/>- {{i18n "admin.watched_words.form.html_description"}}+ {{i18n "admin.watched_words.form.case_sensitivity_description"}}</label></div>- {{/if}}-- <DButton- @action={{this.submitForm}}- @disabled={{this.submitDisabled}}- @label="admin.watched_words.form.add"- type="submit"- class="btn-primary"- />-- {{#if this.showMessage}}- <span class="success-message">{{this.message}}</span>- {{/if}}++ {{#if this.canReplace}}+ <div class="watched-word-input">+ <label for="watched-html">{{i18n+ "admin.watched_words.form.html_label"+ }}</label>+ <label class="html-checkbox checkbox-label">+ <Input+ @type="checkbox"+ @checked={{this.isHtml}}+ disabled={{this.formSubmitted}}+ />+ {{i18n "admin.watched_words.form.html_description"}}+ </label>+ </div>+ {{/if}}++ <DButton+ @action={{this.submitForm}}+ @disabled={{this.submitDisabled}}+ @label="admin.watched_words.form.add"+ type="submit"+ class="btn-primary"+ />++ {{#if this.showMessage}}+ <span class="success-message">{{this.message}}</span>+ {{/if}}+ </form></template>}diff --git a/frontend/discourse/admin/components/watched-word-uploader.gjs b/frontend/discourse/admin/components/watched-word-uploader.gjsindex a23c1c2d8ed..9dc68bf5ab5 100644--- a/frontend/discourse/admin/components/watched-word-uploader.gjs+++ b/frontend/discourse/admin/components/watched-word-uploader.gjs@@ -4,12 +4,12 @@ import { alias } from "@ember/object/computed";import { getOwner } from "@ember/owner";import didInsert from "@ember/render-modifiers/modifiers/did-insert";import { service } from "@ember/service";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import icon from "discourse/helpers/d-icon";import UppyUpload from "discourse/lib/uppy/uppy-upload";import { i18n } from "discourse-i18n";-@classNames("watched-words-uploader")+@tagName("")export default class WatchedWordUploader extends Component {@service dialog;@@ -31,15 +31,17 @@ export default class WatchedWordUploader extends Component {@alias("uppyUpload.uploading") addDisabled;<template>- <label class="btn btn-default {{if this.addDisabled 'disabled'}}">- {{icon "upload"}}- {{i18n "admin.watched_words.form.upload"}}- <input- {{didInsert this.uppyUpload.setup}}- class="hidden-upload-field"- disabled={{this.addDisabled}}- type="file"- />- </label>+ <div class="watched-words-uploader" ...attributes>+ <label class="btn btn-default {{if this.addDisabled 'disabled'}}">+ {{icon "upload"}}+ {{i18n "admin.watched_words.form.upload"}}+ <input+ {{didInsert this.uppyUpload.setup}}+ class="hidden-upload-field"+ disabled={{this.addDisabled}}+ type="file"+ />+ </label>+ </div></template>}diff --git a/frontend/discourse/admin/templates/admin-customize-themes/edit.gjs b/frontend/discourse/admin/templates/admin-customize-themes/edit.gjsindex e5a5ae4c0d4..aaa4984f7a5 100644--- a/frontend/discourse/admin/templates/admin-customize-themes/edit.gjs+++ b/frontend/discourse/admin/templates/admin-customize-themes/edit.gjs@@ -35,7 +35,7 @@ export default <template>@fieldAdded={{@controller.fieldAdded}}@maximized={{@controller.maximized}}@save={{@controller.save}}- @class="editor-container"+ class="editor-container"/><div class="admin-footer">diff --git a/frontend/discourse/app/components/anonymous-topic-footer-buttons.gjs b/frontend/discourse/app/components/anonymous-topic-footer-buttons.gjsindex e7a907e8add..e8636fd8bad 100644--- a/frontend/discourse/app/components/anonymous-topic-footer-buttons.gjs+++ b/frontend/discourse/app/components/anonymous-topic-footer-buttons.gjs@@ -2,17 +2,14 @@import Component from "@ember/component";import { concat } from "@ember/helper";import { compare } from "@ember/utils";-import { attributeBindings } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import DButton from "discourse/components/d-button";import concatClass from "discourse/helpers/concat-class";import routeAction from "discourse/helpers/route-action";import { getTopicFooterButtons } from "discourse/lib/register-topic-footer-button";-@attributeBindings("role")+@tagName("")export default class AnonymousTopicFooterButtons extends Component {- elementId = "topic-footer-buttons";- role = "region";-get allButtons() {return getTopicFooterButtons(this);}@@ -29,29 +26,31 @@ export default class AnonymousTopicFooterButtons extends Component {}<template>- <div class="topic-footer-main-buttons">- {{#each this.buttons key="id" as |button|}}+ <div role="region" id="topic-footer-buttons" ...attributes>+ <div class="topic-footer-main-buttons">+ {{#each this.buttons key="id" as |button|}}+ <DButton+ @action={{button.action}}+ @icon={{button.icon}}+ @translatedLabel={{button.label}}+ @translatedTitle={{button.title}}+ @translatedAriaLabel={{button.ariaLabel}}+ @disabled={{button.disabled}}+ id={{concat "topic-footer-button-" button.id}}+ class={{concatClass+ "btn-default"+ "topic-footer-button"+ button.classNames+ }}+ />+ {{/each}}<DButton- @action={{button.action}}- @icon={{button.icon}}- @translatedLabel={{button.label}}- @translatedTitle={{button.title}}- @translatedAriaLabel={{button.ariaLabel}}- @disabled={{button.disabled}}- id={{concat "topic-footer-button-" button.id}}- class={{concatClass- "btn-default"- "topic-footer-button"- button.classNames- }}+ @icon="reply"+ @action={{routeAction "showLogin"}}+ @label="topic.reply.title"+ class="btn-primary"/>- {{/each}}- <DButton- @icon="reply"- @action={{routeAction "showLogin"}}- @label="topic.reply.title"- class="btn-primary"- />+ </div></div></template>}diff --git a/frontend/discourse/app/components/avatar-uploader.gjs b/frontend/discourse/app/components/avatar-uploader.gjsindex d3bf8fc341f..d7fddf546ef 100644--- a/frontend/discourse/app/components/avatar-uploader.gjs+++ b/frontend/discourse/app/components/avatar-uploader.gjs@@ -10,7 +10,7 @@ import discourseComputed from "discourse/lib/decorators";import UppyUpload from "discourse/lib/uppy/uppy-upload";import { i18n } from "discourse-i18n";-@tagName("span")+@tagName("")export default class AvatarUploader extends Component {uppyUpload = new UppyUpload(getOwner(this), {id: "avatar-uploader",@@ -52,30 +52,32 @@ export default class AvatarUploader extends Component {}<template>- <input- id="custom-profile-upload"- {{didInsert this.uppyUpload.setup}}- class="hidden-upload-field"- disabled={{this.uploading}}- type="file"- accept="image/*"- aria-hidden="true"- />- <DButton- @translatedLabel={{this.uploadLabel}}- @icon="far-image"- @disabled={{this.uploading}}- @action={{this.chooseImage}}- @title="user.change_avatar.upload_title"- class="btn-default avatar-uploader__button"- data-uploaded={{this.customAvatarUploaded}}- data-avatar-upload-id={{this.uploadedAvatarId}}- />+ <span ...attributes>+ <input+ id="custom-profile-upload"+ {{didInsert this.uppyUpload.setup}}+ class="hidden-upload-field"+ disabled={{this.uploading}}+ type="file"+ accept="image/*"+ aria-hidden="true"+ />+ <DButton+ @translatedLabel={{this.uploadLabel}}+ @icon="far-image"+ @disabled={{this.uploading}}+ @action={{this.chooseImage}}+ @title="user.change_avatar.upload_title"+ class="btn-default avatar-uploader__button"+ data-uploaded={{this.customAvatarUploaded}}+ data-avatar-upload-id={{this.uploadedAvatarId}}+ />- {{#if this.imageIsNotASquare}}- <div class="warning">{{i18n- "user.change_avatar.image_is_not_a_square"- }}</div>- {{/if}}+ {{#if this.imageIsNotASquare}}+ <div class="warning">{{i18n+ "user.change_avatar.image_is_not_a_square"+ }}</div>+ {{/if}}+ </span></template>}diff --git a/frontend/discourse/app/components/basic-topic-list.gjs b/frontend/discourse/app/components/basic-topic-list.gjsindex f602bb4e664..017f49eed1f 100644--- a/frontend/discourse/app/components/basic-topic-list.gjs+++ b/frontend/discourse/app/components/basic-topic-list.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { alias, not } from "@ember/object/computed";import { service } from "@ember/service";diff --git a/frontend/discourse/app/components/bookmark-list.gjs b/frontend/discourse/app/components/bookmark-list.gjsindex 5588b3f3804..a91f145b949 100644--- a/frontend/discourse/app/components/bookmark-list.gjs+++ b/frontend/discourse/app/components/bookmark-list.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { on } from "@ember/modifier";import { action } from "@ember/object";diff --git a/frontend/discourse/app/components/bread-crumbs.gjs b/frontend/discourse/app/components/bread-crumbs.gjsindex 05be5403d7f..82ad6021460 100644--- a/frontend/discourse/app/components/bread-crumbs.gjs+++ b/frontend/discourse/app/components/bread-crumbs.gjs@@ -3,10 +3,11 @@ import Component from "@ember/component";import { hash } from "@ember/helper";import { filter } from "@ember/object/computed";import { compare } from "@ember/utils";-import { classNameBindings, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";// A breadcrumb including category drop downsimport PluginOutlet from "discourse/components/plugin-outlet";import categoryVariables from "discourse/helpers/category-variables";+import concatClass from "discourse/helpers/concat-class";import lazyHash from "discourse/helpers/lazy-hash";import discourseComputed from "discourse/lib/decorators";import deprecated from "discourse/lib/deprecated";@@ -15,8 +16,7 @@ import TagDrop from "discourse/select-kit/components/tag-drop";import TagsIntersectionChooser from "discourse/select-kit/components/tags-intersection-chooser";import deprecatedOutletArgument from "../helpers/deprecated-outlet-argument";-@tagName("ol")-@classNameBindings("hidden:hidden", ":category-breadcrumb")+@tagName("")export default class BreadCrumbs extends Component {editingCategory = false;editingCategoryTab = null;@@ -137,104 +137,109 @@ export default class BreadCrumbs extends Component {}<template>- <PluginOutlet- @name="bread-crumbs-left"- @connectorTagName="li"- @outletArgs={{lazyHash- tag=this.tag- additionalTags=this.additionalTags- noSubcategories=this.noSubcategories- showTagsSection=this.showTagsSection- currentCategory=this.category- categoryBreadcrumbs=this.categoryBreadcrumbs- editingCategory=this.editingCategory- editingCategoryTab=this.editingCategoryTab- }}- @deprecatedArgs={{lazyHash- tagId=(deprecatedOutletArgument- value=this.tag.name- message="The argument 'tagId' is deprecated on the outlet 'bread-crumbs-left', use 'tag.name' instead"- id="discourse.plugin-connector.deprecated-arg.bread-crumbs-left"- since="2025.12.0-latest"- dropFrom="2026.2.0-latest"- silence="discourse.header-service-topic"- )- }}- />-- {{#each this.categoryBreadcrumbs as |breadcrumb|}}- {{#if breadcrumb.hasOptions}}- <li- style={{if- breadcrumb.category- (categoryVariables breadcrumb.category)- }}- >- <CategoryDrop- @category={{breadcrumb.category}}- @categories={{breadcrumb.options}}- @tag={{this.tag}}- @editingCategory={{this.editingCategory}}- @editingCategoryTab={{this.editingCategoryTab}}- @options={{hash- parentCategory=breadcrumb.parentCategory- subCategory=breadcrumb.isSubcategory- noSubcategories=breadcrumb.noSubcategories+ <ol+ class={{concatClass "category-breadcrumb" (if this.hidden "hidden")}}+ ...attributes+ >+ <PluginOutlet+ @name="bread-crumbs-left"+ @connectorTagName="li"+ @outletArgs={{lazyHash+ tag=this.tag+ additionalTags=this.additionalTags+ noSubcategories=this.noSubcategories+ showTagsSection=this.showTagsSection+ currentCategory=this.category+ categoryBreadcrumbs=this.categoryBreadcrumbs+ editingCategory=this.editingCategory+ editingCategoryTab=this.editingCategoryTab+ }}+ @deprecatedArgs={{lazyHash+ tagId=(deprecatedOutletArgument+ value=this.tag.name+ message="The argument 'tagId' is deprecated on the outlet 'bread-crumbs-left', use 'tag.name' instead"+ id="discourse.plugin-connector.deprecated-arg.bread-crumbs-left"+ since="2025.12.0-latest"+ dropFrom="2026.2.0-latest"+ silence="discourse.header-service-topic"+ )+ }}+ />++ {{#each this.categoryBreadcrumbs as |breadcrumb|}}+ {{#if breadcrumb.hasOptions}}+ <li+ style={{if+ breadcrumb.category+ (categoryVariables breadcrumb.category)}}- class={{if- breadcrumb.isSubcategory- "category-breadcrumb__subcategory-selector"- "category-breadcrumb__category-selector"- }}- />- </li>- {{/if}}- {{/each}}-- {{#if this.showTagsSection}}- {{#if this.additionalTags}}- <li>- <TagsIntersectionChooser- @currentCategory={{this.category}}- @mainTag={{this.tag.name}}- @additionalTags={{this.additionalTags}}- @options={{hash categoryId=this.category.id}}- />- </li>- {{else}}- <li>- <TagDrop- @currentCategory={{this.category}}- @noSubcategories={{this.noSubcategories}}- @tag={{this.tag}}- />- </li>+ >+ <CategoryDrop+ @category={{breadcrumb.category}}+ @categories={{breadcrumb.options}}+ @tag={{this.tag}}+ @editingCategory={{this.editingCategory}}+ @editingCategoryTab={{this.editingCategoryTab}}+ @options={{hash+ parentCategory=breadcrumb.parentCategory+ subCategory=breadcrumb.isSubcategory+ noSubcategories=breadcrumb.noSubcategories+ }}+ class={{if+ breadcrumb.isSubcategory+ "category-breadcrumb__subcategory-selector"+ "category-breadcrumb__category-selector"+ }}+ />+ </li>+ {{/if}}+ {{/each}}++ {{#if this.showTagsSection}}+ {{#if this.additionalTags}}+ <li>+ <TagsIntersectionChooser+ @currentCategory={{this.category}}+ @mainTag={{this.tag.name}}+ @additionalTags={{this.additionalTags}}+ @options={{hash categoryId=this.category.id}}+ />+ </li>+ {{else}}+ <li>+ <TagDrop+ @currentCategory={{this.category}}+ @noSubcategories={{this.noSubcategories}}+ @tag={{this.tag}}+ />+ </li>+ {{/if}}{{/if}}- {{/if}}-- <PluginOutlet- @name="bread-crumbs-right"- @connectorTagName="li"- @outletArgs={{lazyHash- tag=this.tag- additionalTags=this.additionalTags- noSubcategories=this.noSubcategories- showTagsSection=this.showTagsSection- currentCategory=this.category- categoryBreadcrumbs=this.categoryBreadcrumbs- editingCategory=this.editingCategory- editingCategoryTab=this.editingCategoryTab- }}- @deprecatedArgs={{lazyHash- tagId=(deprecatedOutletArgument- value=this.tag.name- message="The argument 'tagId' is deprecated on the outlet 'bread-crumbs-right', use 'tag.name' instead"- id="discourse.plugin-connector.deprecated-arg.bread-crumbs-right"- since="2025.12.0-latest"- dropFrom="2026.2.0-latest"- silence="discourse.header-service-topic"- )- }}- />++ <PluginOutlet+ @name="bread-crumbs-right"+ @connectorTagName="li"+ @outletArgs={{lazyHash+ tag=this.tag+ additionalTags=this.additionalTags+ noSubcategories=this.noSubcategories+ showTagsSection=this.showTagsSection+ currentCategory=this.category+ categoryBreadcrumbs=this.categoryBreadcrumbs+ editingCategory=this.editingCategory+ editingCategoryTab=this.editingCategoryTab+ }}+ @deprecatedArgs={{lazyHash+ tagId=(deprecatedOutletArgument+ value=this.tag.name+ message="The argument 'tagId' is deprecated on the outlet 'bread-crumbs-right', use 'tag.name' instead"+ id="discourse.plugin-connector.deprecated-arg.bread-crumbs-right"+ since="2025.12.0-latest"+ dropFrom="2026.2.0-latest"+ silence="discourse.header-service-topic"+ )+ }}+ />+ </ol></template>}diff --git a/frontend/discourse/app/components/card-contents-base.js b/frontend/discourse/app/components/card-contents-base.jsindex 35854347b8d..eb9c801d2b8 100644--- a/frontend/discourse/app/components/card-contents-base.js+++ b/frontend/discourse/app/components/card-contents-base.js@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { alias, match } from "@ember/object/computed";import { next, schedule, throttle } from "@ember/runloop";diff --git a/frontend/discourse/app/components/categories-and-latest-topics.gjs b/frontend/discourse/app/components/categories-and-latest-topics.gjsindex 156e5ce3a88..2380f9bc549 100644--- a/frontend/discourse/app/components/categories-and-latest-topics.gjs+++ b/frontend/discourse/app/components/categories-and-latest-topics.gjs@@ -1,25 +1,27 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import CategoriesOnly from "discourse/components/categories-only";import CategoriesTopicList from "discourse/components/categories-topic-list";import PluginOutlet from "discourse/components/plugin-outlet";-@classNames("categories-and-latest")+@tagName("")export default class CategoriesAndLatestTopics extends Component {<template>- <div class="column categories">- <CategoriesOnly @categories={{this.categories}} />- </div>+ <div class="categories-and-latest" ...attributes>+ <div class="column categories">+ <CategoriesOnly @categories={{this.categories}} />+ </div>- <div class="column">- <CategoriesTopicList- @topics={{this.topics}}- @filter="latest"- class="latest-topic-list"- />- </div>+ <div class="column">+ <CategoriesTopicList+ @topics={{this.topics}}+ @filter="latest"+ class="latest-topic-list"+ />+ </div>- <PluginOutlet @name="extra-categories-column" @connectorTagName="div" />+ <PluginOutlet @name="extra-categories-column" @connectorTagName="div" />+ </div></template>}diff --git a/frontend/discourse/app/components/categories-and-top-topics.gjs b/frontend/discourse/app/components/categories-and-top-topics.gjsindex 19643f47a65..7063ae94d71 100644--- a/frontend/discourse/app/components/categories-and-top-topics.gjs+++ b/frontend/discourse/app/components/categories-and-top-topics.gjs@@ -1,25 +1,27 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import CategoriesOnly from "discourse/components/categories-only";import CategoriesTopicList from "discourse/components/categories-topic-list";import PluginOutlet from "discourse/components/plugin-outlet";-@classNames("categories-and-top")+@tagName("")export default class CategoriesAndTopTopics extends Component {<template>- <div class="column categories">- <CategoriesOnly @categories={{this.categories}} />- </div>+ <div class="categories-and-top" ...attributes>+ <div class="column categories">+ <CategoriesOnly @categories={{this.categories}} />+ </div>- <div class="column">- <CategoriesTopicList- @topics={{this.topics}}- @filter="top"- class="top-topic-list"- />- </div>+ <div class="column">+ <CategoriesTopicList+ @topics={{this.topics}}+ @filter="top"+ class="top-topic-list"+ />+ </div>- <PluginOutlet @name="extra-categories-column" @connectorTagName="div" />+ <PluginOutlet @name="extra-categories-column" @connectorTagName="div" />+ </div></template>}diff --git a/frontend/discourse/app/components/categories-boxes-topic.gjs b/frontend/discourse/app/components/categories-boxes-topic.gjsindex 54dddb6b405..f86e4521ef0 100644--- a/frontend/discourse/app/components/categories-boxes-topic.gjs+++ b/frontend/discourse/app/components/categories-boxes-topic.gjs@@ -1,12 +1,11 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { htmlSafe } from "@ember/template";-import { attributeBindings, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import icon from "discourse/helpers/d-icon";import discourseComputed from "discourse/lib/decorators";-@tagName("li")-@attributeBindings("topic.id:data-topic-id")+@tagName("")export default class CategoriesBoxesTopic extends Component {@discourseComputed("topic.pinned", "topic.closed", "topic.archived")topicStatusIcon(pinned, closed, archived) {@@ -20,10 +19,12 @@ export default class CategoriesBoxesTopic extends Component {}<template>- {{icon this.topicStatusIcon}}+ <li data-topic-id={{this.topic.id}} ...attributes>+ {{icon this.topicStatusIcon}}- <a href={{this.topic.lastUnreadUrl}} class="title">- {{htmlSafe this.topic.fancyTitle}}- </a>+ <a href={{this.topic.lastUnreadUrl}} class="title">+ {{htmlSafe this.topic.fancyTitle}}+ </a>+ </li></template>}diff --git a/frontend/discourse/app/components/categories-boxes-with-topics.gjs b/frontend/discourse/app/components/categories-boxes-with-topics.gjsindex 6941e8ad5a0..e2e15487313 100644--- a/frontend/discourse/app/components/categories-boxes-with-topics.gjs+++ b/frontend/discourse/app/components/categories-boxes-with-topics.gjs@@ -2,20 +2,17 @@import Component from "@ember/component";import { htmlSafe } from "@ember/template";import { isEmpty } from "@ember/utils";-import { classNameBindings, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import CategoriesBoxesTopic from "discourse/components/categories-boxes-topic";import CategoryLogo from "discourse/components/category-logo";import CategoryTitleBefore from "discourse/components/category-title-before";import PluginOutlet from "discourse/components/plugin-outlet";import categoryColorVariable from "discourse/helpers/category-color-variable";import { categoryBadgeHTML } from "discourse/helpers/category-link";+import concatClass from "discourse/helpers/concat-class";import lazyHash from "discourse/helpers/lazy-hash";-@tagName("section")-@classNameBindings(- ":category-boxes-with-topics",- "anyLogos:with-logos:no-logos"-)+@tagName("")export default class CategoriesBoxesWithTopics extends Component {get anyLogos() {return this.categories.some((c) => {@@ -33,47 +30,55 @@ export default class CategoriesBoxesWithTopics extends Component {}<template>- {{#each this.categories as |c|}}- <div- data-notification-level={{c.notificationLevelString}}- style={{categoryColorVariable c.color}}- class="category category-box category-box-{{c.slug}}- {{if c.isMuted 'muted'}}"- >- <div class="category-box-inner">- <div class="category-box-heading">- <a class="parent-box-link" href={{c.url}}>- {{#unless c.isMuted}}- {{#if c.uploaded_logo.url}}- <CategoryLogo @category={{c}} />- {{/if}}- {{/unless}}-- <h3>- <CategoryTitleBefore @category={{c}} />- {{this.categoryName c}}- </h3>- </a>- </div>+ <section+ class={{concatClass+ "category-boxes-with-topics"+ (if this.anyLogos "with-logos" "no-logos")+ }}+ ...attributes+ >+ {{#each this.categories as |c|}}+ <div+ data-notification-level={{c.notificationLevelString}}+ style={{categoryColorVariable c.color}}+ class="category category-box category-box-{{c.slug}}+ {{if c.isMuted 'muted'}}"+ >+ <div class="category-box-inner">+ <div class="category-box-heading">+ <a class="parent-box-link" href={{c.url}}>+ {{#unless c.isMuted}}+ {{#if c.uploaded_logo.url}}+ <CategoryLogo @category={{c}} />+ {{/if}}+ {{/unless}}- {{#unless c.isMuted}}- <div class="featured-topics">- {{#if c.topics}}- <ul>- {{#each c.topics as |topic|}}- <CategoriesBoxesTopic @topic={{topic}} />- {{/each}}- </ul>- {{/if}}+ <h3>+ <CategoryTitleBefore @category={{c}} />+ {{this.categoryName c}}+ </h3>+ </a></div>- {{/unless}}- <PluginOutlet- @name="category-box-below-each-category"- @outletArgs={{lazyHash category=c}}- />+ {{#unless c.isMuted}}+ <div class="featured-topics">+ {{#if c.topics}}+ <ul>+ {{#each c.topics as |topic|}}+ <CategoriesBoxesTopic @topic={{topic}} />+ {{/each}}+ </ul>+ {{/if}}+ </div>+ {{/unless}}++ <PluginOutlet+ @name="category-box-below-each-category"+ @outletArgs={{lazyHash category=c}}+ />+ </div></div>- </div>- {{/each}}+ {{/each}}+ </section></template>}diff --git a/frontend/discourse/app/components/categories-boxes.gjs b/frontend/discourse/app/components/categories-boxes.gjsindex e856737ba3e..150a8c50333 100644--- a/frontend/discourse/app/components/categories-boxes.gjs+++ b/frontend/discourse/app/components/categories-boxes.gjs@@ -2,7 +2,7 @@import Component from "@ember/component";import { htmlSafe } from "@ember/template";import { isEmpty } from "@ember/utils";-import { classNameBindings, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import CategoryLogo from "discourse/components/category-logo";import CategoryTitleBefore from "discourse/components/category-title-before";import CategoryTitleLink from "discourse/components/category-title-link";@@ -13,15 +13,11 @@ import categoryColorVariable from "discourse/helpers/category-color-variable";import categoryLink, {categoryBadgeHTML,} from "discourse/helpers/category-link";+import concatClass from "discourse/helpers/concat-class";import dirSpan from "discourse/helpers/dir-span";import lazyHash from "discourse/helpers/lazy-hash";-@tagName("section")-@classNameBindings(- ":category-boxes",- "anyLogos:with-logos:no-logos",- "hasSubcategories:with-subcategories"-)+@tagName("")export default class CategoriesBoxes extends Component {get anyLogos() {return this.categories.some((c) => !isEmpty(c.get("uploaded_logo.url")));@@ -41,125 +37,134 @@ export default class CategoriesBoxes extends Component {}<template>- <PluginOutlet- @name="categories-boxes-wrapper"- @outletArgs={{lazyHash categories=this.categories}}+ <section+ class={{concatClass+ "category-boxes"+ (if this.anyLogos "with-logos" "no-logos")+ (if this.hasSubcategories "with-subcategories")+ }}+ ...attributes>- {{#each this.categories as |c|}}- <PluginOutlet- @name="category-box-before-each-box"- @outletArgs={{lazyHash category=c}}- />-- <div- style={{categoryColorVariable c.color}}- data-category-id={{c.id}}- data-notification-level={{c.notificationLevelString}}- data-url={{c.url}}- class="category category-box category-box-{{c.slug}}- {{if c.isMuted 'muted'}}"- >- <div class="category-box-inner">- {{#unless c.isMuted}}- <div class="category-logo">- {{#if c.uploaded_logo.url}}- <CategoryLogo @category={{c}} />- {{/if}}- </div>- {{/unless}}-- <div class="category-details">- <div class="category-box-heading">- <a class="parent-box-link" href={{c.url}}>- <h3>- <CategoryTitleBefore @category={{c}} />- {{this.categoryName c}}- </h3>- </a>- </div>+ <PluginOutlet+ @name="categories-boxes-wrapper"+ @outletArgs={{lazyHash categories=this.categories}}+ >+ {{#each this.categories as |c|}}+ <PluginOutlet+ @name="category-box-before-each-box"+ @outletArgs={{lazyHash category=c}}+ />+ <div+ style={{categoryColorVariable c.color}}+ data-category-id={{c.id}}+ data-notification-level={{c.notificationLevelString}}+ data-url={{c.url}}+ class="category category-box category-box-{{c.slug}}+ {{if c.isMuted 'muted'}}"+ >+ <div class="category-box-inner">{{#unless c.isMuted}}- <div class="description">- <DecoratedHtml- @html={{dirSpan c.description_excerpt htmlSafe="true"}}- />+ <div class="category-logo">+ {{#if c.uploaded_logo.url}}+ <CategoryLogo @category={{c}} />+ {{/if}}</div>+ {{/unless}}++ <div class="category-details">+ <div class="category-box-heading">+ <a class="parent-box-link" href={{c.url}}>+ <h3>+ <CategoryTitleBefore @category={{c}} />+ {{this.categoryName c}}+ </h3>+ </a>+ </div>++ {{#unless c.isMuted}}+ <div class="description">+ <DecoratedHtml+ @html={{dirSpan c.description_excerpt htmlSafe="true"}}+ />+ </div>- {{#if c.isGrandParent}}- {{#each c.subcategories as |subcategory|}}- <div- data-category-id={{subcategory.id}}- data-notification-level={{subcategory.notificationLevelString}}- style={{borderColor subcategory.color}}- class="subcategory with-subcategories- {{if- subcategory.uploaded_logo.url- 'has-logo'- 'no-logo'- }}"- >- <div class="subcategory-box-inner">- <CategoryTitleLink- @tagName="h4"- @category={{subcategory}}- />- {{#if subcategory.subcategories}}- <div class="subcategories">- {{#each- subcategory.subcategories- as |subsubcategory|- }}- {{#unless subsubcategory.isMuted}}- <span class="subcategory">- <CategoryTitleBefore- @category={{subsubcategory}}- />- {{categoryLink- subsubcategory- hideParent="true"- }}- </span>- {{/unless}}- {{/each}}- </div>- {{/if}}+ {{#if c.isGrandParent}}+ {{#each c.subcategories as |subcategory|}}+ <div+ data-category-id={{subcategory.id}}+ data-notification-level={{subcategory.notificationLevelString}}+ style={{borderColor subcategory.color}}+ class="subcategory with-subcategories+ {{if+ subcategory.uploaded_logo.url+ 'has-logo'+ 'no-logo'+ }}"+ >+ <div class="subcategory-box-inner">+ <CategoryTitleLink+ @tagName="h4"+ @category={{subcategory}}+ />+ {{#if subcategory.subcategories}}+ <div class="subcategories">+ {{#each+ subcategory.subcategories+ as |subsubcategory|+ }}+ {{#unless subsubcategory.isMuted}}+ <span class="subcategory">+ <CategoryTitleBefore+ @category={{subsubcategory}}+ />+ {{categoryLink+ subsubcategory+ hideParent="true"+ }}+ </span>+ {{/unless}}+ {{/each}}+ </div>+ {{/if}}+ </div></div>- </div>- {{/each}}- {{else if c.subcategories}}- <div class="subcategories">- {{#each c.subcategories as |sc|}}- <a class="subcategory" href={{sc.url}}>- {{#if sc.uploaded_logo.url}}- <span class="subcategory-image-placeholder">- <CategoryLogo @category={{sc}} />- </span>- {{/if}}- {{categoryLink sc hideParent="true"}}- </a>{{/each}}- </div>- {{/if}}- {{/unless}}- </div>+ {{else if c.subcategories}}+ <div class="subcategories">+ {{#each c.subcategories as |sc|}}+ <a class="subcategory" href={{sc.url}}>+ {{#if sc.uploaded_logo.url}}+ <span class="subcategory-image-placeholder">+ <CategoryLogo @category={{sc}} />+ </span>+ {{/if}}+ {{categoryLink sc hideParent="true"}}+ </a>+ {{/each}}+ </div>+ {{/if}}+ {{/unless}}+ </div>- <PluginOutlet- @name="category-box-below-each-category"- @outletArgs={{lazyHash category=c}}- />+ <PluginOutlet+ @name="category-box-below-each-category"+ @outletArgs={{lazyHash category=c}}+ />+ </div></div>- </div>- <PluginOutlet- @name="category-box-after-each-box"- @outletArgs={{lazyHash category=c}}- />- {{/each}}- </PluginOutlet>+ <PluginOutlet+ @name="category-box-after-each-box"+ @outletArgs={{lazyHash category=c}}+ />+ {{/each}}+ </PluginOutlet>- <PluginOutlet- @name="category-boxes-after-boxes"- @outletArgs={{lazyHash category=this.c}}- />+ <PluginOutlet+ @name="category-boxes-after-boxes"+ @outletArgs={{lazyHash category=this.c}}+ />+ </section></template>}diff --git a/frontend/discourse/app/components/categories-topic-list.gjs b/frontend/discourse/app/components/categories-topic-list.gjsindex 88b6093a96f..4080769351e 100644--- a/frontend/discourse/app/components/categories-topic-list.gjs+++ b/frontend/discourse/app/components/categories-topic-list.gjs@@ -1,6 +1,7 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { concat } from "@ember/helper";+import { tagName } from "@ember-decorators/component";import PluginOutlet from "discourse/components/plugin-outlet";import LatestTopicListItem from "discourse/components/topic-list/latest-topic-list-item";import getUrl from "discourse/lib/get-url";@@ -8,43 +9,46 @@ import { eq } from "discourse/truth-helpers";import { i18n } from "discourse-i18n";// Exists so plugins can use it+@tagName("")export default class CategoriesTopicList extends Component {<template>- <div role="heading" aria-level="2" class="table-heading">- {{i18n (concat "filters." this.filter ".title")}}- <PluginOutlet- @name="categories-topics-table-heading"- @connectorTagName="div"- />- </div>+ <div ...attributes>+ <div role="heading" aria-level="2" class="table-heading">+ {{i18n (concat "filters." this.filter ".title")}}+ <PluginOutlet+ @name="categories-topics-table-heading"+ @connectorTagName="div"+ />+ </div>- {{#if this.topics}}- {{#each this.topics as |t|}}- <LatestTopicListItem @topic={{t}} />- {{/each}}+ {{#if this.topics}}+ {{#each this.topics as |t|}}+ <LatestTopicListItem @topic={{t}} />+ {{/each}}- <div class="more-topics">- {{#if- (eq- this.siteSettings.desktop_category_page_style- "categories_and_latest_topics_created_date"- )- }}- <a- href={{getUrl (concat "/" this.filter "?order=created")}}- class="btn btn-default pull-right"- >{{i18n "more"}}</a>- {{else}}- <a- href={{getUrl (concat "/" this.filter)}}- class="btn btn-default pull-right"- >{{i18n "more"}}</a>- {{/if}}- </div>- {{else}}- <div class="no-topics">- <h3>{{i18n (concat "topics.none." this.filter)}}</h3>- </div>- {{/if}}+ <div class="more-topics">+ {{#if+ (eq+ this.siteSettings.desktop_category_page_style+ "categories_and_latest_topics_created_date"+ )+ }}+ <a+ href={{getUrl (concat "/" this.filter "?order=created")}}+ class="btn btn-default pull-right"+ >{{i18n "more"}}</a>+ {{else}}+ <a+ href={{getUrl (concat "/" this.filter)}}+ class="btn btn-default pull-right"+ >{{i18n "more"}}</a>+ {{/if}}+ </div>+ {{else}}+ <div class="no-topics">+ <h3>{{i18n (concat "topics.none." this.filter)}}</h3>+ </div>+ {{/if}}+ </div></template>}diff --git a/frontend/discourse/app/components/categories-with-featured-topics.gjs b/frontend/discourse/app/components/categories-with-featured-topics.gjsindex 17065c37406..356697a72e8 100644--- a/frontend/discourse/app/components/categories-with-featured-topics.gjs+++ b/frontend/discourse/app/components/categories-with-featured-topics.gjs@@ -1,9 +1,13 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";+import { tagName } from "@ember-decorators/component";import CategoriesOnly from "discourse/components/categories-only";+@tagName("")export default class CategoriesWithFeaturedTopics extends Component {<template>- <CategoriesOnly @categories={{this.categories}} @showTopics="true" />+ <div ...attributes>+ <CategoriesOnly @categories={{this.categories}} @showTopics="true" />+ </div></template>}diff --git a/frontend/discourse/app/components/category-name-fields.gjs b/frontend/discourse/app/components/category-name-fields.gjsindex 13ada286508..4b0e4a2ea23 100644--- a/frontend/discourse/app/components/category-name-fields.gjs+++ b/frontend/discourse/app/components/category-name-fields.gjs@@ -1,37 +1,41 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";+import { tagName } from "@ember-decorators/component";import PluginOutlet from "discourse/components/plugin-outlet";import TextField from "discourse/components/text-field";import lazyHash from "discourse/helpers/lazy-hash";import { i18n } from "discourse-i18n";+@tagName("")export default class CategoryNameFields extends Component {<template>- <PluginOutlet- @name="category-name-fields-details"- @outletArgs={{lazyHash category=this.category}}- >- <section class="field category-name-fields">- {{#unless this.category.isUncategorizedCategory}}+ <div ...attributes>+ <PluginOutlet+ @name="category-name-fields-details"+ @outletArgs={{lazyHash category=this.category}}+ >+ <section class="field category-name-fields">+ {{#unless this.category.isUncategorizedCategory}}+ <section class="field-item">+ <label>{{i18n "category.name"}}</label>+ <TextField+ @value={{this.category.name}}+ @placeholderKey="category.name_placeholder"+ @maxlength="50"+ class="category-name"+ />+ </section>+ {{/unless}}<section class="field-item">- <label>{{i18n "category.name"}}</label>+ <label>{{i18n "category.slug"}}</label><TextField- @value={{this.category.name}}- @placeholderKey="category.name_placeholder"- @maxlength="50"- class="category-name"+ @value={{this.category.slug}}+ @placeholderKey="category.slug_placeholder"+ @maxlength="255"/></section>- {{/unless}}- <section class="field-item">- <label>{{i18n "category.slug"}}</label>- <TextField- @value={{this.category.slug}}- @placeholderKey="category.slug_placeholder"- @maxlength="255"- /></section>- </section>- </PluginOutlet>+ </PluginOutlet>+ </div></template>}diff --git a/frontend/discourse/app/components/category-unread.gjs b/frontend/discourse/app/components/category-unread.gjsindex 9e542ebbe8d..40a00cc577a 100644--- a/frontend/discourse/app/components/category-unread.gjs+++ b/frontend/discourse/app/components/category-unread.gjs@@ -1,31 +1,36 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";+import element from "discourse/helpers/element";+import { or } from "discourse/truth-helpers";import { i18n } from "discourse-i18n";-@tagName("span")-@classNames("category__badges")+@tagName("")export default class CategoryUnread extends Component {<template>- {{#if this.unreadTopicsCount}}- <a- href={{this.category.unreadUrl}}- title={{i18n "topic.unread_topics" count=this.unreadTopicsCount}}- class="badge new-posts badge-notification"- >{{i18n- "filters.unread.lower_title_with_count"- count=this.unreadTopicsCount- }}</a>- {{/if}}- {{#if this.newTopicsCount}}- <a- href={{this.category.newUrl}}- title={{i18n "topic.new_topics" count=this.newTopicsCount}}- class="badge new-posts badge-notification"- >{{i18n- "filters.new.lower_title_with_count"- count=this.newTopicsCount- }}</a>- {{/if}}+ {{#let (element (or @tagName "span")) as |TagName|}}+ <TagName class="category__badges" ...attributes>+ {{#if this.unreadTopicsCount}}+ <a+ href={{this.category.unreadUrl}}+ title={{i18n "topic.unread_topics" count=this.unreadTopicsCount}}+ class="badge new-posts badge-notification"+ >{{i18n+ "filters.unread.lower_title_with_count"+ count=this.unreadTopicsCount+ }}</a>+ {{/if}}+ {{#if this.newTopicsCount}}+ <a+ href={{this.category.newUrl}}+ title={{i18n "topic.new_topics" count=this.newTopicsCount}}+ class="badge new-posts badge-notification"+ >{{i18n+ "filters.new.lower_title_with_count"+ count=this.newTopicsCount+ }}</a>+ {{/if}}+ </TagName>+ {{/let}}</template>}diff --git a/frontend/discourse/app/components/color-picker-choice.js b/frontend/discourse/app/components/color-picker-choice.jsindex 15fa96c4c40..70fe300c16d 100644--- a/frontend/discourse/app/components/color-picker-choice.js+++ b/frontend/discourse/app/components/color-picker-choice.js@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { htmlSafe } from "@ember/template";import {diff --git a/frontend/discourse/app/components/color-picker.gjs b/frontend/discourse/app/components/color-picker.gjsindex 6e935dd3f22..bc25ce7ac0c 100644--- a/frontend/discourse/app/components/color-picker.gjs+++ b/frontend/discourse/app/components/color-picker.gjs@@ -1,13 +1,12 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { action } from "@ember/object";-import { attributeBindings, classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import ColorPickerChoice from "discourse/components/color-picker-choice";import icon from "discourse/helpers/d-icon";import { i18n } from "discourse-i18n";-@classNames("colors-container")-@attributeBindings("role", "ariaLabel:aria-label")+@tagName("")export default class ColorPicker extends Component {role = "group";@@ -26,15 +25,22 @@ export default class ColorPicker extends Component {}<template>- {{#each this.colors as |c|}}- <ColorPickerChoice- @color={{c}}- @usedColors={{this.usedColors}}- @selectColor={{this.selectColor}}- @ariaLabel={{this.getColorLabel c}}- >- {{icon "check"}}- </ColorPickerChoice>- {{/each}}+ <div+ role={{this.role}}+ aria-label={{this.ariaLabel}}+ class="colors-container"+ ...attributes+ >+ {{#each this.colors as |c|}}+ <ColorPickerChoice+ @color={{c}}+ @usedColors={{this.usedColors}}+ @selectColor={{this.selectColor}}+ @ariaLabel={{this.getColorLabel c}}+ >+ {{icon "check"}}+ </ColorPickerChoice>+ {{/each}}+ </div></template>}diff --git a/frontend/discourse/app/components/composer-action-title.gjs b/frontend/discourse/app/components/composer-action-title.gjsindex 76affeb795e..de07b2c6f8b 100644--- a/frontend/discourse/app/components/composer-action-title.gjs+++ b/frontend/discourse/app/components/composer-action-title.gjs@@ -4,7 +4,7 @@ import { hash } from "@ember/helper";import { alias } from "@ember/object/computed";import { service } from "@ember/service";import { htmlSafe } from "@ember/template";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import PostLanguageSelector from "discourse/components/post-language-selector";import discourseComputed from "discourse/lib/decorators";import escape from "discourse/lib/escape";@@ -29,7 +29,7 @@ const TITLES = {[ADD_TRANSLATION]: "composer.translations.title",};-@classNames("composer-action-title")+@tagName("")export default class ComposerActionTitle extends Component {@service currentUser;@service siteSettings;@@ -117,29 +117,31 @@ export default class ComposerActionTitle extends Component {}<template>- <ComposerActions- @composerModel={{this.model}}- @replyOptions={{this.model.replyOptions}}- @canWhisper={{this.canWhisper}}- @canUnlistTopic={{this.canUnlistTopic}}- @action={{this.model.action}}- @tabindex={{this.tabindex}}- @topic={{this.model.topic}}- @post={{this.model.post}}- @whisper={{this.model.whisper}}- @noBump={{this.model.noBump}}- @options={{hash mobilePlacementStrategy="fixed"}}- />-- <span class="action-title" role="heading" aria-level="1">- {{this.actionTitle}}- </span>-- {{#if this.showPostLanguageSelector}}- <PostLanguageSelector+ <div class="composer-action-title" ...attributes>+ <ComposerActions@composerModel={{this.model}}- @selectedLanguage={{this.model.locale}}+ @replyOptions={{this.model.replyOptions}}+ @canWhisper={{this.canWhisper}}+ @canUnlistTopic={{this.canUnlistTopic}}+ @action={{this.model.action}}+ @tabindex={{this.tabindex}}+ @topic={{this.model.topic}}+ @post={{this.model.post}}+ @whisper={{this.model.whisper}}+ @noBump={{this.model.noBump}}+ @options={{hash mobilePlacementStrategy="fixed"}}/>- {{/if}}++ <span class="action-title" role="heading" aria-level="1">+ {{this.actionTitle}}+ </span>++ {{#if this.showPostLanguageSelector}}+ <PostLanguageSelector+ @composerModel={{this.model}}+ @selectedLanguage={{this.model.locale}}+ />+ {{/if}}+ </div></template>}diff --git a/frontend/discourse/app/components/composer-body.js b/frontend/discourse/app/components/composer-body.jsindex 0014ab2f922..7df31a9b2bc 100644--- a/frontend/discourse/app/components/composer-body.js+++ b/frontend/discourse/app/components/composer-body.js@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { cancel, schedule } from "@ember/runloop";import { dasherize } from "@ember/string";diff --git a/frontend/discourse/app/components/composer-editor.gjs b/frontend/discourse/app/components/composer-editor.gjsindex 9aa9f436e4c..ea3507f09fe 100644--- a/frontend/discourse/app/components/composer-editor.gjs+++ b/frontend/discourse/app/components/composer-editor.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import { tracked } from "@glimmer/tracking";import Component from "@ember/component";import { hash } from "@ember/helper";diff --git a/frontend/discourse/app/components/composer-messages.gjs b/frontend/discourse/app/components/composer-messages.gjsindex 349fa4c9bab..4563af3e298 100644--- a/frontend/discourse/app/components/composer-messages.gjs+++ b/frontend/discourse/app/components/composer-messages.gjs@@ -5,9 +5,10 @@ import { fn } from "@ember/helper";import EmberObject, { action } from "@ember/object";import { not } from "@ember/object/computed";import { schedule } from "@ember/runloop";-import { classNameBindings } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import ComposerMessage from "discourse/components/composer-message";import ShareTopic from "discourse/components/modal/share-topic";+import concatClass from "discourse/helpers/concat-class";import { ajax } from "discourse/lib/ajax";import {addUniqueValueToArray,@@ -21,7 +22,7 @@ import { trackedArray } from "../lib/tracked-tools";let _messagesCache = {};-@classNameBindings(":composer-popup-container", "hidden")+@tagName("")export default class ComposerMessages extends Component {@tracked showShareModal;@trackedArray similarTopics = null;@@ -349,19 +350,24 @@ export default class ComposerMessages extends Component {}<template>- {{#each this.messages as |message|}}- <ComposerMessage- @message={{message}}- @closeMessage={{this.closeMessage}}- @shareModal={{fn (mut this.showShareModal) true}}- @switchPM={{this.switchPM}}- />- {{#if this.showShareModal}}- <ShareTopic- @closeModal={{fn (mut this.showShareModal) false}}- @model={{this.shareModalData}}+ <div+ class={{concatClass "composer-popup-container" (if this.hidden "hidden")}}+ ...attributes+ >+ {{#each this.messages as |message|}}+ <ComposerMessage+ @message={{message}}+ @closeMessage={{this.closeMessage}}+ @shareModal={{fn (mut this.showShareModal) true}}+ @switchPM={{this.switchPM}}/>- {{/if}}- {{/each}}+ {{#if this.showShareModal}}+ <ShareTopic+ @closeModal={{fn (mut this.showShareModal) false}}+ @model={{this.shareModalData}}+ />+ {{/if}}+ {{/each}}+ </div></template>}diff --git a/frontend/discourse/app/components/composer-title.gjs b/frontend/discourse/app/components/composer-title.gjsindex c0c7fa50c51..0c813f17060 100644--- a/frontend/discourse/app/components/composer-title.gjs+++ b/frontend/discourse/app/components/composer-title.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import EmberObject from "@ember/object";import { alias, or } from "@ember/object/computed";diff --git a/frontend/discourse/app/components/composer-user-selector.gjs b/frontend/discourse/app/components/composer-user-selector.gjsindex fbf41f06377..39b51e7bf17 100644--- a/frontend/discourse/app/components/composer-user-selector.gjs+++ b/frontend/discourse/app/components/composer-user-selector.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { hash } from "@ember/helper";import { action } from "@ember/object";diff --git a/frontend/discourse/app/components/conditional-loading-section.gjs b/frontend/discourse/app/components/conditional-loading-section.gjsindex c8a66ca7b1f..c47152987a0 100644--- a/frontend/discourse/app/components/conditional-loading-section.gjs+++ b/frontend/discourse/app/components/conditional-loading-section.gjs@@ -1,20 +1,28 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { classNameBindings, classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";+import concatClass from "discourse/helpers/concat-class";import { i18n } from "discourse-i18n";-@classNames("conditional-loading-section")-@classNameBindings("isLoading")+@tagName("")export default class ConditionalLoadingSection extends Component {isLoading = false;title = i18n("conditional_loading_section.loading");<template>- {{#if this.isLoading}}- <span class="title">{{this.title}}</span>- <div class="spinner {{this.size}}"></div>- {{else}}- {{yield}}- {{/if}}+ <div+ class={{concatClass+ "conditional-loading-section"+ (if this.isLoading "is-loading")+ }}+ ...attributes+ >+ {{#if this.isLoading}}+ <span class="title">{{this.title}}</span>+ <div class="spinner {{this.size}}"></div>+ {{else}}+ {{yield}}+ {{/if}}+ </div></template>}diff --git a/frontend/discourse/app/components/create-invite-uploader.gjs b/frontend/discourse/app/components/create-invite-uploader.gjsindex ca6c1467a48..e99a7fae081 100644--- a/frontend/discourse/app/components/create-invite-uploader.gjs+++ b/frontend/discourse/app/components/create-invite-uploader.gjs@@ -7,7 +7,7 @@ import { tagName } from "@ember-decorators/component";import discourseComputed from "discourse/lib/decorators";import UppyUpload from "discourse/lib/uppy/uppy-upload";-@tagName("div")+@tagName("")export default class CreateInviteUploader extends Component {uppyUpload = new UppyUpload(getOwner(this), {id: "create-invite-uploader",@@ -35,16 +35,18 @@ export default class CreateInviteUploader extends Component {}<template>- {{yield- (hash- data=this.data- uploading=this.uploading- uploadProgress=this.uploadProgress- uploaded=this.uploaded- submitDisabled=this.submitDisabled- startUpload=this.startUpload- )- this.uppyUpload.setup- }}+ <div ...attributes>+ {{yield+ (hash+ data=this.data+ uploading=this.uploading+ uploadProgress=this.uploadProgress+ uploaded=this.uploaded+ submitDisabled=this.submitDisabled+ startUpload=this.startUpload+ )+ this.uppyUpload.setup+ }}+ </div></template>}diff --git a/frontend/discourse/app/components/d-editor.gjs b/frontend/discourse/app/components/d-editor.gjsindex 80f4da4f94c..a13cc8a2d94 100644--- a/frontend/discourse/app/components/d-editor.gjs+++ b/frontend/discourse/app/components/d-editor.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import { tracked } from "@glimmer/tracking";import Component from "@ember/component";import { on } from "@ember/modifier";diff --git a/frontend/discourse/app/components/date-input.gjs b/frontend/discourse/app/components/date-input.gjsindex bff5f8fa3b4..e5b28485ce4 100644--- a/frontend/discourse/app/components/date-input.gjs+++ b/frontend/discourse/app/components/date-input.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component, { Input } from "@ember/component";import { on } from "@ember/modifier";import { action, computed } from "@ember/object";diff --git a/frontend/discourse/app/components/date-picker.gjs b/frontend/discourse/app/components/date-picker.gjsindex 789a4e81636..56b36c41be4 100644--- a/frontend/discourse/app/components/date-picker.gjs+++ b/frontend/discourse/app/components/date-picker.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component, { Input } from "@ember/component";import { computed } from "@ember/object";import { schedule } from "@ember/runloop";diff --git a/frontend/discourse/app/components/date-time-input-range.gjs b/frontend/discourse/app/components/date-time-input-range.gjsindex 9fd46e85f5d..285edb60d08 100644--- a/frontend/discourse/app/components/date-time-input-range.gjs+++ b/frontend/discourse/app/components/date-time-input-range.gjs@@ -2,11 +2,11 @@import Component from "@ember/component";import { fn, hash } from "@ember/helper";import { action } from "@ember/object";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import DateTimeInput from "discourse/components/date-time-input";import { i18n } from "discourse-i18n";-@classNames("d-date-time-input-range")+@tagName("")export default class DateTimeInputRange extends Component {from = null;to = null;@@ -50,25 +50,27 @@ export default class DateTimeInputRange extends Component {}<template>- <DateTimeInput- @date={{this.from}}- @onChange={{fn this.onChangeRanges (hash prop="from")}}- @showTime={{this.showFromTime}}- @placeholder={{i18n "dates.from_placeholder"}}- @timezone={{@timezone}}- class="from"- />+ <div class="d-date-time-input-range" ...attributes>+ <DateTimeInput+ @date={{this.from}}+ @onChange={{fn this.onChangeRanges (hash prop="from")}}+ @showTime={{this.showFromTime}}+ @placeholder={{i18n "dates.from_placeholder"}}+ @timezone={{@timezone}}+ class="from"+ />- <DateTimeInput- @date={{this.to}}- @relativeDate={{this.from}}- @onChange={{fn this.onChangeRanges (hash prop="to")}}- @timeFirst={{this.toTimeFirst}}- @showTime={{this.showToTime}}- @clearable={{this.clearable}}- @placeholder={{i18n "dates.to_placeholder"}}- @timezone={{@timezone}}- class="to"- />+ <DateTimeInput+ @date={{this.to}}+ @relativeDate={{this.from}}+ @onChange={{fn this.onChangeRanges (hash prop="to")}}+ @timeFirst={{this.toTimeFirst}}+ @showTime={{this.showToTime}}+ @clearable={{this.clearable}}+ @placeholder={{i18n "dates.to_placeholder"}}+ @timezone={{@timezone}}+ class="to"+ />+ </div></template>}diff --git a/frontend/discourse/app/components/date-time-input.gjs b/frontend/discourse/app/components/date-time-input.gjsindex a1c521f1bcf..3a4d985cd29 100644--- a/frontend/discourse/app/components/date-time-input.gjs+++ b/frontend/discourse/app/components/date-time-input.gjs@@ -1,12 +1,12 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { action, computed } from "@ember/object";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import DButton from "discourse/components/d-button";import DateInput from "discourse/components/date-input";import TimeInput from "discourse/components/time-input";-@classNames("d-date-time-input")+@tagName("")export default class DateTimeInput extends Component {date = null;relativeDate = null;@@ -79,40 +79,42 @@ export default class DateTimeInput extends Component {}<template>- {{#unless this.timeFirst}}- <DateInput- @date={{this.date}}- @placeholder={{this.placeholder}}- @relativeDate={{this.relativeDate}}- @onChange={{this.onChangeDate}}- @useGlobalPickerContainer={{this.useGlobalPickerContainer}}- />- {{/unless}}+ <div class="d-date-time-input" ...attributes>+ {{#unless this.timeFirst}}+ <DateInput+ @date={{this.date}}+ @placeholder={{this.placeholder}}+ @relativeDate={{this.relativeDate}}+ @onChange={{this.onChangeDate}}+ @useGlobalPickerContainer={{this.useGlobalPickerContainer}}+ />+ {{/unless}}- {{#if this.showTime}}- <TimeInput- @date={{this.date}}- @relativeDate={{this.relativeDate}}- @onChange={{this.onChangeTime}}- />- {{/if}}+ {{#if this.showTime}}+ <TimeInput+ @date={{this.date}}+ @relativeDate={{this.relativeDate}}+ @onChange={{this.onChangeTime}}+ />+ {{/if}}- {{#if this.timeFirst}}- <DateInput- @date={{this.date}}- @placeholder={{this.placeholder}}- @relativeDate={{this.relativeDate}}- @onChange={{this.onChangeDate}}- @useGlobalPickerContainer={{this.useGlobalPickerContainer}}- />- {{/if}}+ {{#if this.timeFirst}}+ <DateInput+ @date={{this.date}}+ @placeholder={{this.placeholder}}+ @relativeDate={{this.relativeDate}}+ @onChange={{this.onChangeDate}}+ @useGlobalPickerContainer={{this.useGlobalPickerContainer}}+ />+ {{/if}}- {{#if this.clearable}}- <DButton- @icon="xmark"- @action={{this.onClear}}- class="btn-default clear-date-time"- />- {{/if}}+ {{#if this.clearable}}+ <DButton+ @icon="xmark"+ @action={{this.onClear}}+ class="btn-default clear-date-time"+ />+ {{/if}}+ </div></template>}diff --git a/frontend/discourse/app/components/directory-item.gjs b/frontend/discourse/app/components/directory-item.gjsindex f343bc70893..f4e3d9f2116 100644--- a/frontend/discourse/app/components/directory-item.gjs+++ b/frontend/discourse/app/components/directory-item.gjs@@ -1,13 +1,9 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import {- attributeBindings,- classNameBindings,- classNames,- tagName,-} from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import DirectoryItemUserFieldValue from "discourse/components/directory-item-user-field-value";import UserInfo from "discourse/components/user-info";+import concatClass from "discourse/helpers/concat-class";import icon from "discourse/helpers/d-icon";import directoryColumnIsUserField from "discourse/helpers/directory-column-is-user-field";import directoryItemLabel from "discourse/helpers/directory-item-label";@@ -16,54 +12,58 @@ import formatDuration from "discourse/helpers/format-duration";import { propertyEqual } from "discourse/lib/computed";import { i18n } from "discourse-i18n";-@tagName("div")-@classNames("directory-table__row")-@classNameBindings("me")-@attributeBindings("role")+@tagName("")export default class DirectoryItem extends Component {- role = "row";-@propertyEqual("item.user.id", "currentUser.id") me;columns = null;<template>- <div class="directory-table__cell" role="rowheader">- <UserInfo @user={{this.item.user}} @headingLevel={{3}} />- </div>+ <div+ role="row"+ class={{concatClass "directory-table__row" (if this.me "me")}}+ ...attributes+ >+ <div class="directory-table__cell" role="rowheader">+ <UserInfo @user={{this.item.user}} @headingLevel={{3}} />+ </div>++ {{#each this.columns as |column|}}+ {{#if (directoryColumnIsUserField column=column)}}+ <div class="directory-table__cell--user-field" role="cell">+ <span class="directory-table__label">+ <span>{{column.name}}</span>+ </span>+ <DirectoryItemUserFieldValue+ @item={{this.item}}+ @column={{column}}+ />+ </div>+ {{else}}+ <div class="directory-table__cell" role="cell">+ <span class="directory-table__label">+ <span>+ {{#if column.icon}}+ {{icon column.icon}}+ {{/if}}+ {{directoryItemLabel item=this.item column=column}}+ </span>+ </span>+ {{directoryItemValue item=this.item column=column}}+ </div>+ {{/if}}++ {{/each}}- {{#each this.columns as |column|}}- {{#if (directoryColumnIsUserField column=column)}}- <div class="directory-table__cell--user-field" role="cell">+ {{#if this.showTimeRead}}+ <div class="directory-table__cell time-read" role="cell"><span class="directory-table__label">- <span>{{column.name}}</span>+ <span>{{i18n "directory.time_read"}}</span></span>- <DirectoryItemUserFieldValue @item={{this.item}} @column={{column}} />- </div>- {{else}}- <div class="directory-table__cell" role="cell">- <span class="directory-table__label">- <span>- {{#if column.icon}}- {{icon column.icon}}- {{/if}}- {{directoryItemLabel item=this.item column=column}}- </span>+ <span class="directory-table__value">+ {{formatDuration this.item.time_read}}</span>- {{directoryItemValue item=this.item column=column}}</div>{{/if}}-- {{/each}}-- {{#if this.showTimeRead}}- <div class="directory-table__cell time-read" role="cell">- <span class="directory-table__label">- <span>{{i18n "directory.time_read"}}</span>- </span>- <span class="directory-table__value">- {{formatDuration this.item.time_read}}- </span>- </div>- {{/if}}+ </div></template>}diff --git a/frontend/discourse/app/components/discourse-linked-text.gjs b/frontend/discourse/app/components/discourse-linked-text.gjsindex 441a10a0e6b..622dc4758b0 100644--- a/frontend/discourse/app/components/discourse-linked-text.gjs+++ b/frontend/discourse/app/components/discourse-linked-text.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { htmlSafe } from "@ember/template";import { tagName } from "@ember-decorators/component";diff --git a/frontend/discourse/app/components/discourse-root.js b/frontend/discourse/app/components/discourse-root.jsindex 5f0b6c4fe4a..efacda837e2 100644--- a/frontend/discourse/app/components/discourse-root.js+++ b/frontend/discourse/app/components/discourse-root.js@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { classNames, tagName } from "@ember-decorators/component";diff --git a/frontend/discourse/app/components/discourse-tag-bound.gjs b/frontend/discourse/app/components/discourse-tag-bound.gjsindex 9266e0d995c..365d0527c6d 100644--- a/frontend/discourse/app/components/discourse-tag-bound.gjs+++ b/frontend/discourse/app/components/discourse-tag-bound.gjs@@ -1,16 +1,11 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import {- attributeBindings,- classNameBindings,- tagName,-} from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";+import concatClass from "discourse/helpers/concat-class";import discourseComputed from "discourse/lib/decorators";import getURL from "discourse/lib/get-url";-@tagName("a")-@classNameBindings(":discourse-tag", "style", "tagClass")-@attributeBindings("href")+@tagName("")export default class DiscourseTagBound extends Component {@discourseComputed("tagRecord.id")tagClass(tagRecordId) {@@ -22,5 +17,11 @@ export default class DiscourseTagBound extends Component {return getURL("/tag/" + tagRecordId);}- <template>{{this.tagRecord.id}}</template>+ <template>+ <a+ href={{this.href}}+ class={{concatClass "discourse-tag" this.style this.tagClass}}+ ...attributes+ >{{this.tagRecord.id}}</a>+ </template>}diff --git a/frontend/discourse/app/components/discourse-topic.js b/frontend/discourse/app/components/discourse-topic.jsindex 5baf3b16402..11ac55cd202 100644--- a/frontend/discourse/app/components/discourse-topic.js+++ b/frontend/discourse/app/components/discourse-topic.js@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { alias } from "@ember/object/computed";import { getOwner } from "@ember/owner";diff --git a/frontend/discourse/app/components/discovery-topics-list.js b/frontend/discourse/app/components/discovery-topics-list.jsindex 54f3ff2f7a9..fb027337fc7 100644--- a/frontend/discourse/app/components/discovery-topics-list.js+++ b/frontend/discourse/app/components/discovery-topics-list.js@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { service } from "@ember/service";import { classNames } from "@ember-decorators/component";diff --git a/frontend/discourse/app/components/ember-text-field.gjs b/frontend/discourse/app/components/ember-text-field.gjsindex 7520e7ab757..9063097b201 100644--- a/frontend/discourse/app/components/ember-text-field.gjs+++ b/frontend/discourse/app/components/ember-text-field.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components *//* eslint-disable ember/no-classic-classes */import { MUTABLE_CELL } from "@ember/-internals/views";import Component from "@ember/component";diff --git a/frontend/discourse/app/components/featured-topic.gjs b/frontend/discourse/app/components/featured-topic.gjsindex 5717cdcf384..b4c591615ac 100644--- a/frontend/discourse/app/components/featured-topic.gjs+++ b/frontend/discourse/app/components/featured-topic.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { htmlSafe } from "@ember/template";import {diff --git a/frontend/discourse/app/components/flag-selection.gjs b/frontend/discourse/app/components/flag-selection.gjsindex d9b2c11cc2f..fa74d83ec6c 100644--- a/frontend/discourse/app/components/flag-selection.gjs+++ b/frontend/discourse/app/components/flag-selection.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { next } from "@ember/runloop";import { observes } from "@ember-decorators/object";diff --git a/frontend/discourse/app/components/future-date-input.gjs b/frontend/discourse/app/components/future-date-input.gjsindex 15bdd232da3..da81ec19f45 100644--- a/frontend/discourse/app/components/future-date-input.gjs+++ b/frontend/discourse/app/components/future-date-input.gjs@@ -4,6 +4,7 @@ import { fn, hash } from "@ember/helper";import { on } from "@ember/modifier";import { action } from "@ember/object";import { and, empty, equal } from "@ember/object/computed";+import { tagName } from "@ember-decorators/component";import DatePickerFuture from "discourse/components/date-picker-future";import icon from "discourse/helpers/d-icon";import withEventValue from "discourse/helpers/with-event-value";@@ -20,6 +21,7 @@ import FutureDateInputSelector, {} from "discourse/select-kit/components/future-date-input-selector";import { i18n } from "discourse-i18n";+@tagName("")export default class FutureDateInput extends Component {selection = null;includeDateTime = true;@@ -133,7 +135,7 @@ export default class FutureDateInput extends Component {}<template>- <div class="future-date-input">+ <div class="future-date-input" ...attributes>{{#unless this.noRelativeOptions}}<div class="control-group"><label class={{this.labelClasses}}>diff --git a/frontend/discourse/app/components/google-search.gjs b/frontend/discourse/app/components/google-search.gjsindex a08dbe2875f..87af0411962 100644--- a/frontend/discourse/app/components/google-search.gjs+++ b/frontend/discourse/app/components/google-search.gjs@@ -1,15 +1,15 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { alias } from "@ember/object/computed";-import { classNameBindings, classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import PluginOutlet from "discourse/components/plugin-outlet";+import concatClass from "discourse/helpers/concat-class";import lazyHash from "discourse/helpers/lazy-hash";import discourseComputed from "discourse/lib/decorators";import getURL from "discourse/lib/get-url";import { i18n } from "discourse-i18n";-@classNames("google-search-form")-@classNameBindings("hidden:hidden")+@tagName("")export default class GoogleSearch extends Component {@alias("siteSettings.login_required") hidden;@@ -19,23 +19,32 @@ export default class GoogleSearch extends Component {}<template>- <PluginOutlet- @name="google-search"- @outletArgs={{lazyHash searchTerm=this.searchTerm siteUrl=this.siteUrl}}- @defaultGlimmer={{true}}+ <div+ class={{concatClass "google-search-form" (if this.hidden "hidden")}}+ ...attributes>- <form action="//google.com/search" id="google-search" class="inline-form">- <input- type="text"- name="q"- aria-label={{i18n "search.search_google"}}- value={{@searchTerm}}- />- <input name="as_sitesearch" value={{@siteUrl}} type="hidden" />- <button class="btn btn-primary" type="submit">{{i18n- "search.search_google_button"- }}</button>- </form>- </PluginOutlet>+ <PluginOutlet+ @name="google-search"+ @outletArgs={{lazyHash searchTerm=this.searchTerm siteUrl=this.siteUrl}}+ @defaultGlimmer={{true}}+ >+ <form+ action="//google.com/search"+ id="google-search"+ class="inline-form"+ >+ <input+ type="text"+ name="q"+ aria-label={{i18n "search.search_google"}}+ value={{@searchTerm}}+ />+ <input name="as_sitesearch" value={{@siteUrl}} type="hidden" />+ <button class="btn btn-primary" type="submit">{{i18n+ "search.search_google_button"+ }}</button>+ </form>+ </PluginOutlet>+ </div></template>}diff --git a/frontend/discourse/app/components/group-card.gjs b/frontend/discourse/app/components/group-card.gjsindex ea1a6aab1b5..11f139b303d 100644--- a/frontend/discourse/app/components/group-card.gjs+++ b/frontend/discourse/app/components/group-card.gjs@@ -41,7 +41,6 @@ const GroupCard = <template><div class="group-membership"><GroupMembershipButton- @tagName=""@model={{@group}}@showLogin={{routeAction "showLogin"}}>diff --git a/frontend/discourse/app/components/group-flair-inputs.gjs b/frontend/discourse/app/components/group-flair-inputs.gjsindex ec2cbe7a929..a7c563318f3 100644--- a/frontend/discourse/app/components/group-flair-inputs.gjs+++ b/frontend/discourse/app/components/group-flair-inputs.gjs@@ -2,7 +2,7 @@import Component from "@ember/component";import { fn, hash } from "@ember/helper";import { action } from "@ember/object";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import { observes, on } from "@ember-decorators/object";import $ from "jquery";import AvatarFlair from "discourse/components/avatar-flair";@@ -18,7 +18,7 @@ import IconPicker from "discourse/select-kit/components/icon-picker";import { or } from "discourse/truth-helpers";import { i18n } from "discourse-i18n";-@classNames("group-flair-inputs")+@tagName("")export default class GroupFlairInputs extends Component {@discourseComputeddemoAvatarUrl() {@@ -103,115 +103,117 @@ export default class GroupFlairInputs extends Component {}<template>- <div class="control-group">- <label class="control-label" for="flair_url">{{i18n- "groups.flair_url"- }}</label>-- <div class="radios">- <label class="radio-label" for="avatar-flair-icon">- <RadioButton- @name="avatar-flair-icon"- @id="avatar-flair-icon"- @value="icon"- @selection={{this.model.flair_type}}- />- {{i18n "groups.flair_type.icon"}}- </label>-- <label class="radio-label" for="avatar-flair-image">- <RadioButton- @name="avatar-flair-image"- @id="avatar-flair-image"- @value="image"- @selection={{this.model.flair_type}}- />- {{i18n "groups.flair_type.image"}}- </label>- </div>+ <div class="group-flair-inputs" ...attributes>+ <div class="control-group">+ <label class="control-label" for="flair_url">{{i18n+ "groups.flair_url"+ }}</label>- {{#if this.flairPreviewIcon}}- <IconPicker- @name="icon"- @value={{this.model.flair_icon}}- @options={{hash maximum=1}}- @onChange={{fn (mut this.model.flair_icon)}}- />- {{else if this.flairPreviewImage}}- <UppyImageUploader- @imageUrl={{this.flairImageUrl}}- @onUploadDone={{this.setFlairImage}}- @onUploadDeleted={{this.removeFlairImage}}- @type="group_flair"- @id="group-flair-uploader"- class="no-repeat contain-image"- />- <div class="control-instructions">- {{i18n "groups.flair_upload_description"}}+ <div class="radios">+ <label class="radio-label" for="avatar-flair-icon">+ <RadioButton+ @name="avatar-flair-icon"+ @id="avatar-flair-icon"+ @value="icon"+ @selection={{this.model.flair_type}}+ />+ {{i18n "groups.flair_type.icon"}}+ </label>++ <label class="radio-label" for="avatar-flair-image">+ <RadioButton+ @name="avatar-flair-image"+ @id="avatar-flair-image"+ @value="image"+ @selection={{this.model.flair_type}}+ />+ {{i18n "groups.flair_type.image"}}+ </label></div>- {{/if}}- </div>- <div class="control-group">- <label class="control-label" for="flair_bg_color">{{i18n- "groups.flair_bg_color"- }}</label>-- <TextField- @name="flair_bg_color"- @value={{this.model.flair_bg_color}}- @placeholderKey="groups.flair_bg_color_placeholder"- class="group-flair-bg-color input-xxlarge"- />- </div>+ {{#if this.flairPreviewIcon}}+ <IconPicker+ @name="icon"+ @value={{this.model.flair_icon}}+ @options={{hash maximum=1}}+ @onChange={{fn (mut this.model.flair_icon)}}+ />+ {{else if this.flairPreviewImage}}+ <UppyImageUploader+ @imageUrl={{this.flairImageUrl}}+ @onUploadDone={{this.setFlairImage}}+ @onUploadDeleted={{this.removeFlairImage}}+ @type="group_flair"+ @id="group-flair-uploader"+ class="no-repeat contain-image"+ />+ <div class="control-instructions">+ {{i18n "groups.flair_upload_description"}}+ </div>+ {{/if}}+ </div>- {{#if this.flairPreviewIcon}}<div class="control-group">- <label class="control-label" for="flair_color">{{i18n- "groups.flair_color"+ <label class="control-label" for="flair_bg_color">{{i18n+ "groups.flair_bg_color"}}</label><TextField- @name="flair_color"- @value={{this.model.flair_color}}- @placeholderKey="groups.flair_color_placeholder"- class="group-flair-color input-xxlarge"+ @name="flair_bg_color"+ @value={{this.model.flair_bg_color}}+ @placeholderKey="groups.flair_bg_color_placeholder"+ class="group-flair-bg-color input-xxlarge"/></div>- {{/if}}-- <div class="control-group">- <label class="control-label">{{this.flairPreviewLabel}}</label>-- <div class="avatar-flair-preview">- <div class="avatar-wrapper">- <img- width="45"- height="45"- src={{this.demoAvatarUrl}}- class="avatar actor"- alt++ {{#if this.flairPreviewIcon}}+ <div class="control-group">+ <label class="control-label" for="flair_color">{{i18n+ "groups.flair_color"+ }}</label>++ <TextField+ @name="flair_color"+ @value={{this.model.flair_color}}+ @placeholderKey="groups.flair_color_placeholder"+ class="group-flair-color input-xxlarge"/></div>+ {{/if}}- {{#if- (or- this.model.flair_icon- this.flairImageUrl- this.model.flairBackgroundHexColor- )- }}- <AvatarFlair- @flairName={{this.model.name}}- @flairUrl={{if- this.flairPreviewIcon+ <div class="control-group">+ <label class="control-label">{{this.flairPreviewLabel}}</label>++ <div class="avatar-flair-preview">+ <div class="avatar-wrapper">+ <img+ width="45"+ height="45"+ src={{this.demoAvatarUrl}}+ class="avatar actor"+ alt+ />+ </div>++ {{#if+ (orthis.model.flair_icon- (if this.flairPreviewImage this.flairImageUrl "")- }}- @flairBgColor={{this.model.flairBackgroundHexColor}}- @flairColor={{this.model.flairHexColor}}- />- {{/if}}+ this.flairImageUrl+ this.model.flairBackgroundHexColor+ )+ }}+ <AvatarFlair+ @flairName={{this.model.name}}+ @flairUrl={{if+ this.flairPreviewIcon+ this.model.flair_icon+ (if this.flairPreviewImage this.flairImageUrl "")+ }}+ @flairBgColor={{this.model.flairBackgroundHexColor}}+ @flairColor={{this.model.flairHexColor}}+ />+ {{/if}}+ </div></div></div></template>diff --git a/frontend/discourse/app/components/group-manage-save-button.gjs b/frontend/discourse/app/components/group-manage-save-button.gjsindex d1f3ac7df22..c646636423e 100644--- a/frontend/discourse/app/components/group-manage-save-button.gjs+++ b/frontend/discourse/app/components/group-manage-save-button.gjs@@ -2,6 +2,7 @@import Component from "@ember/component";import { action } from "@ember/object";import { service } from "@ember/service";+import { tagName } from "@ember-decorators/component";import DButton from "discourse/components/d-button";import GroupFlairVisibilityWarning from "discourse/components/group-flair-visibility-warning";import GroupDefaultNotificationsModal from "discourse/components/modal/group-default-notifications";@@ -12,6 +13,7 @@ import { defaultHomepage } from "discourse/lib/utilities";import { or } from "discourse/truth-helpers";import { i18n } from "discourse-i18n";+@tagName("")export default class GroupManageSaveButton extends Component {@service currentUser;@service dialog;@@ -115,18 +117,20 @@ export default class GroupManageSaveButton extends Component {}<template>- <GroupFlairVisibilityWarning @model={{this.model}} />-- <div class="control-group buttons group-manage-save-button">- <DButton- @action={{this.save}}- @disabled={{or this.disabled this.saving}}- @translatedLabel={{this.savingText}}- class="btn-primary group-manage-save"- />- {{#if this.saved}}- <span>{{i18n "saved"}}</span>- {{/if}}+ <div ...attributes>+ <GroupFlairVisibilityWarning @model={{this.model}} />++ <div class="control-group buttons group-manage-save-button">+ <DButton+ @action={{this.save}}+ @disabled={{or this.disabled this.saving}}+ @translatedLabel={{this.savingText}}+ class="btn-primary group-manage-save"+ />+ {{#if this.saved}}+ <span>{{i18n "saved"}}</span>+ {{/if}}+ </div></div></template>}diff --git a/frontend/discourse/app/components/group-member.gjs b/frontend/discourse/app/components/group-member.gjsindex 6d12a1e3dab..ea4958cd543 100644--- a/frontend/discourse/app/components/group-member.gjs+++ b/frontend/discourse/app/components/group-member.gjs@@ -2,11 +2,11 @@import Component from "@ember/component";import { on } from "@ember/modifier";import { action } from "@ember/object";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import avatar from "discourse/helpers/avatar";import icon from "discourse/helpers/d-icon";-@classNames("item")+@tagName("")export default class GroupMember extends Component {@actionremove(event) {@@ -15,14 +15,16 @@ export default class GroupMember extends Component {}<template>- <a href={{this.member.adminPath}}>- {{avatar this.member imageSize="small"}}- </a>- <span>{{this.member.username}}</span>- {{#unless this.automatic}}- <a href {{on "click" this.remove}} class="remove">- {{icon "xmark"}}+ <div class="item" ...attributes>+ <a href={{this.member.adminPath}}>+ {{avatar this.member imageSize="small"}}</a>- {{/unless}}+ <span>{{this.member.username}}</span>+ {{#unless this.automatic}}+ <a href {{on "click" this.remove}} class="remove">+ {{icon "xmark"}}+ </a>+ {{/unless}}+ </div></template>}diff --git a/frontend/discourse/app/components/group-membership-button.gjs b/frontend/discourse/app/components/group-membership-button.gjsindex 5edcf12e629..afb0c240452 100644--- a/frontend/discourse/app/components/group-membership-button.gjs+++ b/frontend/discourse/app/components/group-membership-button.gjs@@ -2,14 +2,14 @@import Component from "@ember/component";import { action } from "@ember/object";import { service } from "@ember/service";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import DButton from "discourse/components/d-button";import { popupAjaxError } from "discourse/lib/ajax-error";import discourseComputed from "discourse/lib/decorators";import { i18n } from "discourse-i18n";import RequestGroupMembershipForm from "./modal/request-group-membership-form";-@classNames("group-membership-button")+@tagName("")export default class GroupMembershipButton extends Component {@service appEvents;@service currentUser;@@ -98,32 +98,34 @@ export default class GroupMembershipButton extends Component {}<template>- {{#if this.canJoinGroup}}- <DButton- @action={{this.joinGroup}}- @icon="user-plus"- @label="groups.join"- @disabled={{this.updatingMembership}}- class="btn-default group-index-join"- />- {{else if this.canLeaveGroup}}- <DButton- @action={{this.leaveGroup}}- @icon="user-xmark"- @label="groups.leave"- @disabled={{this.updatingMembership}}- class="btn-danger group-index-leave"- />- {{else if this.canRequestMembership}}- <DButton- @action={{this.showRequestMembershipForm}}- @disabled={{this.loading}}- @icon="user-plus"- @label="groups.request"- class="btn-default group-index-request"- />- {{else}}- {{yield}}- {{/if}}+ <div class="group-membership-button" ...attributes>+ {{#if this.canJoinGroup}}+ <DButton+ @action={{this.joinGroup}}+ @icon="user-plus"+ @label="groups.join"+ @disabled={{this.updatingMembership}}+ class="btn-default group-index-join"+ />+ {{else if this.canLeaveGroup}}+ <DButton+ @action={{this.leaveGroup}}+ @icon="user-xmark"+ @label="groups.leave"+ @disabled={{this.updatingMembership}}+ class="btn-danger group-index-leave"+ />+ {{else if this.canRequestMembership}}+ <DButton+ @action={{this.showRequestMembershipForm}}+ @disabled={{this.loading}}+ @icon="user-plus"+ @label="groups.request"+ class="btn-default group-index-request"+ />+ {{else}}+ {{yield}}+ {{/if}}+ </div></template>}diff --git a/frontend/discourse/app/components/groups-form-interaction-fields.gjs b/frontend/discourse/app/components/groups-form-interaction-fields.gjsindex 152af906db4..f4ce63bfcea 100644--- a/frontend/discourse/app/components/groups-form-interaction-fields.gjs+++ b/frontend/discourse/app/components/groups-form-interaction-fields.gjs@@ -2,6 +2,7 @@import Component, { Input } from "@ember/component";import { fn, hash } from "@ember/helper";import { or } from "@ember/object/computed";+import { tagName } from "@ember-decorators/component";import PluginOutlet from "discourse/components/plugin-outlet";import TextField from "discourse/components/text-field";import DTooltip from "discourse/float-kit/components/d-tooltip";@@ -12,6 +13,7 @@ import ComboBox from "discourse/select-kit/components/combo-box";import NotificationsButton from "discourse/select-kit/components/notifications-button";import { i18n } from "discourse-i18n";+@tagName("")export default class GroupsFormInteractionFields extends Component {@or("model.members_visibility_level",@@ -101,155 +103,157 @@ export default class GroupsFormInteractionFields extends Component {}<template>- {{#if this.canAdminGroup}}+ <div ...attributes>+ {{#if this.canAdminGroup}}+ <div class="control-group">+ <label class="control-label">+ {{i18n "admin.groups.manage.interaction.visibility"}}+ </label>+ <label>+ {{i18n "admin.groups.manage.interaction.visibility_levels.title"}}+ </label>++ <ComboBox+ @name="alias"+ @valueProperty="value"+ @value={{this.model.visibility_level}}+ @content={{this.visibilityLevelOptions}}+ @onChange={{fn (mut this.model.visibility_level)}}+ @options={{hash castInteger=true}}+ class="groups-form-visibility-level"+ />++ <div class="control-instructions">+ {{i18n+ "admin.groups.manage.interaction.visibility_levels.description"+ }}+ </div>+ </div>++ <div class="control-group">+ <label>+ {{i18n+ "admin.groups.manage.interaction.members_visibility_levels.title"+ }}+ </label>++ <ComboBox+ @name="alias"+ @valueProperty="value"+ @value={{this.membersVisibilityLevel}}+ @content={{this.visibilityLevelOptions}}+ @onChange={{fn (mut this.model.members_visibility_level)}}+ class="groups-form-members-visibility-level"+ />++ {{#if this.membersVisibilityPrivate}}+ <div class="control-instructions">+ {{i18n+ "admin.groups.manage.interaction.members_visibility_levels.description"+ }}+ </div>+ {{/if}}+ </div>+ {{/if}}+<div class="control-group"><label class="control-label">- {{i18n "admin.groups.manage.interaction.visibility"}}- </label>- <label>- {{i18n "admin.groups.manage.interaction.visibility_levels.title"}}+ {{i18n "groups.manage.interaction.posting"}}</label>+ <label for="alias">{{i18n "groups.alias_levels.mentionable"}}</label><ComboBox@name="alias"@valueProperty="value"- @value={{this.model.visibility_level}}- @content={{this.visibilityLevelOptions}}- @onChange={{fn (mut this.model.visibility_level)}}- @options={{hash castInteger=true}}- class="groups-form-visibility-level"+ @value={{this.mentionableLevel}}+ @content={{this.aliasLevelOptions}}+ @onChange={{fn (mut this.model.mentionable_level)}}+ class="groups-form-mentionable-level"/>-- <div class="control-instructions">- {{i18n- "admin.groups.manage.interaction.visibility_levels.description"- }}- </div></div><div class="control-group">- <label>- {{i18n- "admin.groups.manage.interaction.members_visibility_levels.title"- }}- </label>+ <label for="alias">{{i18n "groups.alias_levels.messageable"}}</label><ComboBox@name="alias"@valueProperty="value"- @value={{this.membersVisibilityLevel}}- @content={{this.visibilityLevelOptions}}- @onChange={{fn (mut this.model.members_visibility_level)}}- class="groups-form-members-visibility-level"+ @value={{this.messageableLevel}}+ @content={{this.aliasLevelOptions}}+ @onChange={{fn (mut this.model.messageable_level)}}+ class="groups-form-messageable-level"/>-- {{#if this.membersVisibilityPrivate}}- <div class="control-instructions">- {{i18n- "admin.groups.manage.interaction.members_visibility_levels.description"- }}- </div>- {{/if}}</div>- {{/if}}- <div class="control-group">- <label class="control-label">- {{i18n "groups.manage.interaction.posting"}}- </label>- <label for="alias">{{i18n "groups.alias_levels.mentionable"}}</label>-- <ComboBox- @name="alias"- @valueProperty="value"- @value={{this.mentionableLevel}}- @content={{this.aliasLevelOptions}}- @onChange={{fn (mut this.model.mentionable_level)}}- class="groups-form-mentionable-level"- />- </div>+ {{#if this.canAdminGroup}}+ <div class="control-group">+ <label>+ <Input+ @type="checkbox"+ @checked={{this.model.publish_read_state}}+ class="groups-form-publish-read-state"+ />- <div class="control-group">- <label for="alias">{{i18n "groups.alias_levels.messageable"}}</label>-- <ComboBox- @name="alias"- @valueProperty="value"- @value={{this.messageableLevel}}- @content={{this.aliasLevelOptions}}- @onChange={{fn (mut this.model.messageable_level)}}- class="groups-form-messageable-level"- />- </div>+ {{i18n "admin.groups.manage.interaction.publish_read_state"}}+ </label>+ </div>+ {{/if}}- {{#if this.canAdminGroup}}- <div class="control-group">- <label>- <Input- @type="checkbox"- @checked={{this.model.publish_read_state}}- class="groups-form-publish-read-state"+ {{#if this.showEmailSettings}}+ <div class="control-group">+ <label class="control-label">+ {{i18n "admin.groups.manage.interaction.email"}}+ </label>+ <label for="incoming_email">+ {{i18n "admin.groups.manage.interaction.incoming_email"}}+ </label>++ <TextField+ @name="incoming_email"+ @value={{this.model.incoming_email}}+ @placeholderKey="admin.groups.manage.interaction.incoming_email_placeholder"+ class="input-xxlarge groups-form-incoming-email"/>- {{i18n "admin.groups.manage.interaction.publish_read_state"}}- </label>- </div>- {{/if}}+ <DTooltip+ @icon="circle-info"+ @content={{i18n+ "admin.groups.manage.interaction.incoming_email_tooltip"+ }}+ />- {{#if this.showEmailSettings}}- <div class="control-group">- <label class="control-label">- {{i18n "admin.groups.manage.interaction.email"}}- </label>- <label for="incoming_email">- {{i18n "admin.groups.manage.interaction.incoming_email"}}- </label>+ <span>+ <PluginOutlet+ @name="group-email-in"+ @connectorTagName="div"+ @outletArgs={{lazyHash model=this.model}}+ />+ </span>+ </div>+ {{/if}}- <TextField- @name="incoming_email"- @value={{this.model.incoming_email}}- @placeholderKey="admin.groups.manage.interaction.incoming_email_placeholder"- class="input-xxlarge groups-form-incoming-email"- />+ <label class="control-label">+ {{i18n "groups.manage.interaction.notification"}}+ </label>- <DTooltip- @icon="circle-info"- @content={{i18n- "admin.groups.manage.interaction.incoming_email_tooltip"- }}- />+ <div class="control-group">+ <label>{{i18n "groups.notification_level"}}</label>- <span>- <PluginOutlet- @name="group-email-in"- @connectorTagName="div"- @outletArgs={{lazyHash model=this.model}}- />- </span>+ <NotificationsButton+ @value={{this.defaultNotificationLevel}}+ @options={{hash i18nPrefix="groups.notifications"}}+ @onChange={{fn (mut this.model.default_notification_level)}}+ class="groups-form-default-notification-level"+ /></div>- {{/if}}-- <label class="control-label">- {{i18n "groups.manage.interaction.notification"}}- </label>- <div class="control-group">- <label>{{i18n "groups.notification_level"}}</label>-- <NotificationsButton- @value={{this.defaultNotificationLevel}}- @options={{hash i18nPrefix="groups.notifications"}}- @onChange={{fn (mut this.model.default_notification_level)}}- class="groups-form-default-notification-level"- />+ <span>+ <PluginOutlet+ @name="groups-interaction-custom-options"+ @connectorTagName="div"+ @outletArgs={{lazyHash model=this.model}}+ />+ </span></div>-- <span>- <PluginOutlet- @name="groups-interaction-custom-options"- @connectorTagName="div"- @outletArgs={{lazyHash model=this.model}}- />- </span></template>}diff --git a/frontend/discourse/app/components/groups-form-membership-fields.gjs b/frontend/discourse/app/components/groups-form-membership-fields.gjsindex d253361ecfe..59da29210a4 100644--- a/frontend/discourse/app/components/groups-form-membership-fields.gjs+++ b/frontend/discourse/app/components/groups-form-membership-fields.gjs@@ -4,6 +4,7 @@ import { fn, hash } from "@ember/helper";import { on } from "@ember/modifier";import { action, computed } from "@ember/object";import { not, or as computedOr, readOnly } from "@ember/object/computed";+import { tagName } from "@ember-decorators/component";import ExpandingTextArea from "discourse/components/expanding-text-area";import GroupFlairInputs from "discourse/components/group-flair-inputs";import PluginOutlet from "discourse/components/plugin-outlet";@@ -15,6 +16,7 @@ import ComboBox from "discourse/select-kit/components/combo-box";import ListSetting from "discourse/select-kit/components/list-setting";import { i18n } from "discourse-i18n";+@tagName("")export default class GroupsFormMembershipFields extends Component {tokenSeparator = "|";@@ -103,159 +105,167 @@ export default class GroupsFormMembershipFields extends Component {}<template>- <div class="control-group">- <label class="control-label">{{i18n- "groups.manage.membership.access"- }}</label>-- <label>- <Input- @type="checkbox"- class="group-form-public-admission"- @checked={{this.model.public_admission}}- disabled={{this.disablePublicSetting}}- />-- {{i18n "groups.public_admission"}}- </label>-- <label>- <Input- @type="checkbox"- class="group-form-public-exit"- @checked={{this.model.public_exit}}- />-- {{i18n "groups.public_exit"}}- </label>-- <label>- <Input- @type="checkbox"- class="group-form-allow-membership-requests"- @checked={{this.model.allow_membership_requests}}- disabled={{this.disableMembershipRequestSetting}}- />-- {{i18n "groups.allow_membership_requests"}}- </label>-- {{#if this.model.allow_membership_requests}}- <div>- <label for="membership-request-template">- {{i18n "groups.membership_request_template"}}- </label>-- <ExpandingTextArea- {{on- "input"- (withEventValue (fn (mut this.model.membership_request_template)))- }}- value={{this.model.membership_request_template}}- name="membership-request-template"- class="group-form-membership-request-template input-xxlarge"- />- </div>- {{/if}}- </div>-- {{#if this.model.can_admin_group}}+ <div ...attributes><div class="control-group"><label class="control-label">{{i18n- "admin.groups.manage.membership.automatic"+ "groups.manage.membership.access"}}</label>- <label for="automatic_membership">- {{i18n- "admin.groups.manage.membership.automatic_membership_email_domains"- }}- </label>+ <label>+ <Input+ @type="checkbox"+ class="group-form-public-admission"+ @checked={{this.model.public_admission}}+ disabled={{this.disablePublicSetting}}+ />- <ListSetting- @name="automatic_membership"- @value={{this.emailDomains}}- @choices={{this.emailDomains}}- @settingName="name"- @nameProperty={{null}}- @valueProperty={{null}}- @onChange={{this.onChangeEmailDomainsSetting}}- @options={{hash allowAny=true}}- class="group-form-automatic-membership-automatic"- />-- {{#if this.showAssociatedGroups}}- <label for="automatic_membership_associated_groups">- {{i18n- "admin.groups.manage.membership.automatic_membership_associated_groups"- }}- </label>+ {{i18n "groups.public_admission"}}+ </label>- <ListSetting- @name="automatic_membership_associated_groups"- @value={{this.model.associatedGroupIds}}- @choices={{this.associatedGroups}}- @settingName="name"- @nameProperty="label"- @valueProperty="id"- @onChange={{fn (mut this.model.associated_group_ids)}}- class="group-form-automatic-membership-associated-groups"+ <label>+ <Input+ @type="checkbox"+ class="group-form-public-exit"+ @checked={{this.model.public_exit}}/>- {{/if}}- </div>-- <span>- <PluginOutlet- @name="groups-form-membership-below-automatic"- @connectorTagName="div"- @outletArgs={{lazyHash model=this.model}}- />- </span>- <div class="control-group">- <label class="control-label">{{i18n- "admin.groups.manage.membership.effects"- }}</label>- <label for="grant_trust_level">{{i18n- "admin.groups.manage.membership.trust_levels_title"- }}</label>+ {{i18n "groups.public_exit"}}+ </label>- <ComboBox- @name="grant_trust_level"- @valueProperty="value"- @value={{this.groupTrustLevel}}- @content={{this.trustLevelOptions}}- @onChange={{fn (mut this.model.grant_trust_level)}}- class="groups-form-grant-trust-level"- /><label><Input@type="checkbox"- @checked={{this.model.primary_group}}- class="groups-form-primary-group"+ class="group-form-allow-membership-requests"+ @checked={{this.model.allow_membership_requests}}+ disabled={{this.disableMembershipRequestSetting}}/>- {{i18n "admin.groups.manage.membership.primary_group"}}+ {{i18n "groups.allow_membership_requests"}}</label>++ {{#if this.model.allow_membership_requests}}+ <div>+ <label for="membership-request-template">+ {{i18n "groups.membership_request_template"}}+ </label>++ <ExpandingTextArea+ {{on+ "input"+ (withEventValue+ (fn (mut this.model.membership_request_template))+ )+ }}+ value={{this.model.membership_request_template}}+ name="membership-request-template"+ class="group-form-membership-request-template input-xxlarge"+ />+ </div>+ {{/if}}</div>- <div class="control-group">- <label class="control-label" for="title">- {{i18n "admin.groups.default_title"}}- </label>+ {{#if this.model.can_admin_group}}+ <div class="control-group">+ <label class="control-label">{{i18n+ "admin.groups.manage.membership.automatic"+ }}</label>- <Input @value={{this.model.title}} name="title" class="input-xxlarge" />+ <label for="automatic_membership">+ {{i18n+ "admin.groups.manage.membership.automatic_membership_email_domains"+ }}+ </label>- <div class="control-instructions">- {{i18n "admin.groups.default_title_description"}}+ <ListSetting+ @name="automatic_membership"+ @value={{this.emailDomains}}+ @choices={{this.emailDomains}}+ @settingName="name"+ @nameProperty={{null}}+ @valueProperty={{null}}+ @onChange={{this.onChangeEmailDomainsSetting}}+ @options={{hash allowAny=true}}+ class="group-form-automatic-membership-automatic"+ />++ {{#if this.showAssociatedGroups}}+ <label for="automatic_membership_associated_groups">+ {{i18n+ "admin.groups.manage.membership.automatic_membership_associated_groups"+ }}+ </label>++ <ListSetting+ @name="automatic_membership_associated_groups"+ @value={{this.model.associatedGroupIds}}+ @choices={{this.associatedGroups}}+ @settingName="name"+ @nameProperty="label"+ @valueProperty="id"+ @onChange={{fn (mut this.model.associated_group_ids)}}+ class="group-form-automatic-membership-associated-groups"+ />+ {{/if}}</div>- </div>- {{/if}}- {{#if this.canEdit}}- <div class="control-group">- <GroupFlairInputs @model={{this.model}} />- </div>+ <span>+ <PluginOutlet+ @name="groups-form-membership-below-automatic"+ @connectorTagName="div"+ @outletArgs={{lazyHash model=this.model}}+ />+ </span>++ <div class="control-group">+ <label class="control-label">{{i18n+ "admin.groups.manage.membership.effects"+ }}</label>+ <label for="grant_trust_level">{{i18n+ "admin.groups.manage.membership.trust_levels_title"+ }}</label>++ <ComboBox+ @name="grant_trust_level"+ @valueProperty="value"+ @value={{this.groupTrustLevel}}+ @content={{this.trustLevelOptions}}+ @onChange={{fn (mut this.model.grant_trust_level)}}+ class="groups-form-grant-trust-level"+ />+ <label>+ <Input+ @type="checkbox"+ @checked={{this.model.primary_group}}+ class="groups-form-primary-group"+ />++ {{i18n "admin.groups.manage.membership.primary_group"}}+ </label>+ </div>++ <div class="control-group">+ <label class="control-label" for="title">+ {{i18n "admin.groups.default_title"}}+ </label>++ <Input+ @value={{this.model.title}}+ name="title"+ class="input-xxlarge"+ />- {{/if}}+ <div class="control-instructions">+ {{i18n "admin.groups.default_title_description"}}+ </div>+ </div>+ {{/if}}++ {{#if this.canEdit}}+ <div class="control-group">+ <GroupFlairInputs @model={{this.model}} />+ </div>++ {{/if}}+ </div></template>}diff --git a/frontend/discourse/app/components/groups-form-profile-fields.gjs b/frontend/discourse/app/components/groups-form-profile-fields.gjsindex 327dfdd4789..ff93513c291 100644--- a/frontend/discourse/app/components/groups-form-profile-fields.gjs+++ b/frontend/discourse/app/components/groups-form-profile-fields.gjs@@ -3,6 +3,7 @@ import Component from "@ember/component";import EmberObject from "@ember/object";import { not } from "@ember/object/computed";import { isEmpty } from "@ember/utils";+import { tagName } from "@ember-decorators/component";import { observes } from "@ember-decorators/object";import DEditor from "discourse/components/d-editor";import GroupFlairInputs from "discourse/components/group-flair-inputs";@@ -16,6 +17,7 @@ import discourseComputed from "discourse/lib/decorators";import Group from "discourse/models/group";import { i18n } from "discourse-i18n";+@tagName("")export default class GroupsFormProfileFields extends Component {disableSave = null;nameInput = null;@@ -120,59 +122,63 @@ export default class GroupsFormProfileFields extends Component {}<template>- {{#if this.canEdit}}- {{#if this.currentUser.can_create_group}}+ <div ...attributes>+ {{#if this.canEdit}}+ {{#if this.currentUser.can_create_group}}+ <div class="control-group">+ <label class="control-label" for="name">{{i18n+ "groups.name"+ }}</label>++ <TextField+ @name="name"+ @value={{this.nameInput}}+ @placeholderKey="admin.groups.name_placeholder"+ class="input-xxlarge group-form-name"+ />++ <InputTip @validation={{this.nameValidation}} />+ </div>+ {{/if}}+<div class="control-group">- <label class="control-label" for="name">{{i18n "groups.name"}}</label>+ <label class="control-label" for="full_name">{{i18n+ "groups.manage.full_name"+ }}</label><TextField- @name="name"- @value={{this.nameInput}}- @placeholderKey="admin.groups.name_placeholder"- class="input-xxlarge group-form-name"+ @name="full_name"+ @value={{this.model.full_name}}+ class="input-xxlarge group-form-full-name"/>-- <InputTip @validation={{this.nameValidation}} /></div>{{/if}}<div class="control-group">- <label class="control-label" for="full_name">{{i18n- "groups.manage.full_name"- }}</label>-- <TextField- @name="full_name"- @value={{this.model.full_name}}- class="input-xxlarge group-form-full-name"+ <label class="control-label" for="bio">{{i18n "groups.bio"}}</label>+ <DEditor+ @value={{this.model.bio_raw}}+ class="group-form-bio input-xxlarge"/></div>- {{/if}}-- <div class="control-group">- <label class="control-label" for="bio">{{i18n "groups.bio"}}</label>- <DEditor- @value={{this.model.bio_raw}}- class="group-form-bio input-xxlarge"- />- </div>- {{#if this.model.automatic}}- <div class="control-group">- <GroupFlairInputs @model={{this.model}} />- </div>- {{/if}}+ {{#if this.model.automatic}}+ <div class="control-group">+ <GroupFlairInputs @model={{this.model}} />+ </div>+ {{/if}}- {{#if this.canEdit}}- {{yield}}+ {{#if this.canEdit}}+ {{yield}}- <span>- <PluginOutlet- @name="group-edit"- @connectorTagName="div"- @outletArgs={{lazyHash group=this.model}}- />- </span>- {{/if}}+ <span>+ <PluginOutlet+ @name="group-edit"+ @connectorTagName="div"+ @outletArgs={{lazyHash group=this.model}}+ />+ </span>+ {{/if}}+ </div></template>}diff --git a/frontend/discourse/app/components/ignored-user-list-item.gjs b/frontend/discourse/app/components/ignored-user-list-item.gjsindex e50274d1219..c3732e2be08 100644--- a/frontend/discourse/app/components/ignored-user-list-item.gjs+++ b/frontend/discourse/app/components/ignored-user-list-item.gjs@@ -5,7 +5,7 @@ import { action } from "@ember/object";import { tagName } from "@ember-decorators/component";import DButton from "discourse/components/d-button";-@tagName("div")+@tagName("")export default class IgnoredUserListItem extends Component {items = null;@@ -15,13 +15,15 @@ export default class IgnoredUserListItem extends Component {}<template>- <div class="ignored-user-list-item">- <span class="ignored-user-name">{{this.item}}</span>- <DButton- @action={{fn this.removeIgnoredUser this.item}}- @icon="xmark"- class="remove-ignored-user no-text btn-icon"- />+ <div ...attributes>+ <div class="ignored-user-list-item">+ <span class="ignored-user-name">{{this.item}}</span>+ <DButton+ @action={{fn this.removeIgnoredUser this.item}}+ @icon="xmark"+ class="remove-ignored-user no-text btn-icon"+ />+ </div></div></template>}diff --git a/frontend/discourse/app/components/invite-panel.gjs b/frontend/discourse/app/components/invite-panel.gjsindex 49eb4130800..e63aee29957 100644--- a/frontend/discourse/app/components/invite-panel.gjs+++ b/frontend/discourse/app/components/invite-panel.gjs@@ -6,6 +6,7 @@ import { alias, and, equal, readOnly } from "@ember/object/computed";import { service } from "@ember/service";import { htmlSafe } from "@ember/template";import { isEmpty } from "@ember/utils";+import { tagName } from "@ember-decorators/component";import DButton from "discourse/components/d-button";import DiscourseLinkedText from "discourse/components/discourse-linked-text";import GeneratedInviteLink from "discourse/components/generated-invite-link";@@ -18,6 +19,7 @@ import EmailGroupUserChooser from "discourse/select-kit/components/email-group-uimport GroupChooser from "discourse/select-kit/components/group-chooser";import { i18n } from "discourse-i18n";+@tagName("")export default class InvitePanel extends Component {@service site;@service toasts;@@ -463,116 +465,118 @@ export default class InvitePanel extends Component {}<template>- {{#if this.inviteModel.error}}- <div class="alert alert-error">- {{htmlSafe this.errorMessage}}- </div>- {{/if}}-- <div class="body">- {{#if this.inviteModel.finished}}- {{#if this.inviteModel.inviteLink}}- <GeneratedInviteLink- @link={{this.inviteModel.inviteLink}}- @email={{this.invitee}}- />- {{/if}}- {{else}}- <div class="invite-user-control">- <label class="instructions">{{this.inviteInstructions}}</label>- <div class="invite-user-input-wrapper">- {{#if this.allowExistingMembers}}- <EmailGroupUserChooser- @value={{this.invitee}}- @onChange={{this.updateInvitee}}- @options={{hash- maximum=1- allowEmails=this.canInviteViaEmail- excludeCurrentUser=true- includeMessageableGroups=this.isPM- filterPlaceholder=this.placeholderKey- fullWidthWrap=true- }}- class="invite-user-input"- />- {{else}}- <TextField- @value={{this.invitee}}- @placeholderKey="topic.invite_reply.email_placeholder"- class="email-or-username-input"- />- {{/if}}- {{#if this.capabilities.hasContactPicker}}- <DButton- @icon="address-book"- @action={{this.searchContact}}- class="btn-primary open-contact-picker"- />- {{/if}}- </div>+ <div ...attributes>+ {{#if this.inviteModel.error}}+ <div class="alert alert-error">+ {{htmlSafe this.errorMessage}}</div>+ {{/if}}- {{#if this.showGroups}}- <div class="group-access-control">- <label class="instructions {{this.showGroupsClass}}">- {{i18n "topic.automatically_add_to_groups"}}- </label>- <GroupChooser- @content={{this.allGroups}}- @value={{this.groupIds}}- @labelProperty="name"- @onChange={{fn (mut this.groupIds)}}+ <div class="body">+ {{#if this.inviteModel.finished}}+ {{#if this.inviteModel.inviteLink}}+ <GeneratedInviteLink+ @link={{this.inviteModel.inviteLink}}+ @email={{this.invitee}}/>+ {{/if}}+ {{else}}+ <div class="invite-user-control">+ <label class="instructions">{{this.inviteInstructions}}</label>+ <div class="invite-user-input-wrapper">+ {{#if this.allowExistingMembers}}+ <EmailGroupUserChooser+ @value={{this.invitee}}+ @onChange={{this.updateInvitee}}+ @options={{hash+ maximum=1+ allowEmails=this.canInviteViaEmail+ excludeCurrentUser=true+ includeMessageableGroups=this.isPM+ filterPlaceholder=this.placeholderKey+ fullWidthWrap=true+ }}+ class="invite-user-input"+ />+ {{else}}+ <TextField+ @value={{this.invitee}}+ @placeholderKey="topic.invite_reply.email_placeholder"+ class="email-or-username-input"+ />+ {{/if}}+ {{#if this.capabilities.hasContactPicker}}+ <DButton+ @icon="address-book"+ @action={{this.searchContact}}+ class="btn-primary open-contact-picker"+ />+ {{/if}}+ </div></div>- {{/if}}- {{#if this.showCustomMessage}}- <div class="show-custom-message-control">- <label class="instructions">- <DiscourseLinkedText- @action={{this.showCustomMessageBox}}- @text="invite.custom_message"- class="optional"- />- </label>- {{#if this.hasCustomMessage}}- <Textarea- @value={{this.customMessage}}- placeholder={{this.customMessagePlaceholder}}+ {{#if this.showGroups}}+ <div class="group-access-control">+ <label class="instructions {{this.showGroupsClass}}">+ {{i18n "topic.automatically_add_to_groups"}}+ </label>+ <GroupChooser+ @content={{this.allGroups}}+ @value={{this.groupIds}}+ @labelProperty="name"+ @onChange={{fn (mut this.groupIds)}}/>- {{/if}}- </div>+ </div>+ {{/if}}++ {{#if this.showCustomMessage}}+ <div class="show-custom-message-control">+ <label class="instructions">+ <DiscourseLinkedText+ @action={{this.showCustomMessageBox}}+ @text="invite.custom_message"+ class="optional"+ />+ </label>+ {{#if this.hasCustomMessage}}+ <Textarea+ @value={{this.customMessage}}+ placeholder={{this.customMessagePlaceholder}}+ />+ {{/if}}+ </div>+ {{/if}}{{/if}}- {{/if}}- {{#if this.showApprovalMessage}}- <label class="instructions approval-notice">- {{i18n "invite.approval_not_required"}}- </label>- {{/if}}- </div>+ {{#if this.showApprovalMessage}}+ <label class="instructions approval-notice">+ {{i18n "invite.approval_not_required"}}+ </label>+ {{/if}}+ </div>- <div class="footer">- {{#if this.inviteModel.finished}}- <DButton @action={{@closeModal}} @label="close" class="btn-primary" />- {{else}}- <DButton- @icon={{this.inviteIcon}}- @action={{this.createInvite}}- @disabled={{this.disabled}}- @label={{this.buttonTitle}}- class="btn-primary send-invite"- />- {{#if this.showCopyInviteButton}}+ <div class="footer">+ {{#if this.inviteModel.finished}}+ <DButton @action={{@closeModal}} @label="close" class="btn-primary" />+ {{else}}<DButton- @icon="link"- @action={{this.generateInviteLink}}- @disabled={{this.disabledCopyLink}}- @label="user.invited.generate_link"- class="btn-primary generate-invite-link"+ @icon={{this.inviteIcon}}+ @action={{this.createInvite}}+ @disabled={{this.disabled}}+ @label={{this.buttonTitle}}+ class="btn-primary send-invite"/>+ {{#if this.showCopyInviteButton}}+ <DButton+ @icon="link"+ @action={{this.generateInviteLink}}+ @disabled={{this.disabledCopyLink}}+ @label="user.invited.generate_link"+ class="btn-primary generate-invite-link"+ />+ {{/if}}{{/if}}- {{/if}}+ </div></div></template>}diff --git a/frontend/discourse/app/components/link-to-input.gjs b/frontend/discourse/app/components/link-to-input.gjsindex 380ea9acc17..3c156beb28b 100644--- a/frontend/discourse/app/components/link-to-input.gjs+++ b/frontend/discourse/app/components/link-to-input.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { schedule } from "@ember/runloop";import $ from "jquery";diff --git a/frontend/discourse/app/components/links-redirect.js b/frontend/discourse/app/components/links-redirect.jsindex 377a878cbd1..6b9c3f0fc8a 100644--- a/frontend/discourse/app/components/links-redirect.js+++ b/frontend/discourse/app/components/links-redirect.js@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { getOwner } from "@ember/owner";import ClickTrack from "discourse/lib/click-track";diff --git a/frontend/discourse/app/components/login-buttons.gjs b/frontend/discourse/app/components/login-buttons.gjsindex 8eb6549319a..37fc4c4b2b8 100644--- a/frontend/discourse/app/components/login-buttons.gjs+++ b/frontend/discourse/app/components/login-buttons.gjs@@ -2,20 +2,19 @@import Component from "@ember/component";import { fn } from "@ember/helper";import { on } from "@ember/modifier";-import { classNameBindings } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import GoogleIcon from "discourse/components/google-icon";import PasskeyLoginButton from "discourse/components/passkey-login-button";import PluginOutlet from "discourse/components/plugin-outlet";+import concatClass from "discourse/helpers/concat-class";import icon from "discourse/helpers/d-icon";import discourseComputed from "discourse/lib/decorators";import { isWebauthnSupported } from "discourse/lib/webauthn";import { findAll } from "discourse/models/login-method";import { i18n } from "discourse-i18n";-@classNameBindings("hidden", "multiple")+@tagName("")export default class LoginButtons extends Component {- elementId = "login-buttons";-@discourseComputed("buttons.length","showLoginWithEmailLink",@@ -46,50 +45,59 @@ export default class LoginButtons extends Component {}<template>- {{#each this.buttons as |b|}}- {{#if b.isDiscourseID}}- <div class="discourse-id__wrapper">+ <div+ id="login-buttons"+ class={{concatClass+ (if this.hidden "hidden")+ (if this.multiple "multiple")+ }}+ ...attributes+ >+ {{#each this.buttons as |b|}}+ {{#if b.isDiscourseID}}+ <div class="discourse-id__wrapper">+ <button+ type="button"+ class="btn btn-social {{b.name}}"+ {{on "click" (fn this.externalLogin b)}}+ aria-label={{b.screenReaderTitle}}+ >+ {{icon b.icon}}+ <span class="btn-social-title">{{b.title}}</span>+ </button>+ <div class="btn-discourse-id__suffix">+ <span class="btn-discourse-id__description">+ {{i18n "login.works_with"}}</span>+ {{icon "fab-google"}}+ {{icon "fab-apple"}}+ {{icon "fab-facebook"}}+ {{icon "fab-github"}}+ </div>+ </div>+ {{else}}<buttontype="button"class="btn btn-social {{b.name}}"{{on "click" (fn this.externalLogin b)}}aria-label={{b.screenReaderTitle}}>- {{icon b.icon}}+ {{#if b.isGoogle}}+ <GoogleIcon />+ {{else if b.icon}}+ {{icon b.icon}}+ {{else}}+ {{icon "right-to-bracket"}}+ {{/if}}<span class="btn-social-title">{{b.title}}</span></button>- <div class="btn-discourse-id__suffix">- <span class="btn-discourse-id__description">- {{i18n "login.works_with"}}</span>- {{icon "fab-google"}}- {{icon "fab-apple"}}- {{icon "fab-facebook"}}- {{icon "fab-github"}}- </div>- </div>- {{else}}- <button- type="button"- class="btn btn-social {{b.name}}"- {{on "click" (fn this.externalLogin b)}}- aria-label={{b.screenReaderTitle}}- >- {{#if b.isGoogle}}- <GoogleIcon />- {{else if b.icon}}- {{icon b.icon}}- {{else}}- {{icon "right-to-bracket"}}- {{/if}}- <span class="btn-social-title">{{b.title}}</span>- </button>- {{/if}}- {{/each}}+ {{/if}}+ {{/each}}- {{#if this.showPasskeysButton}}- <PasskeyLoginButton @passkeyLogin={{this.passkeyLogin}} />- {{/if}}+ {{#if this.showPasskeysButton}}+ <PasskeyLoginButton @passkeyLogin={{this.passkeyLogin}} />+ {{/if}}- <PluginOutlet @name="after-login-buttons" />+ <PluginOutlet @name="after-login-buttons" />+ </div></template>}diff --git a/frontend/discourse/app/components/mobile-category-topic.gjs b/frontend/discourse/app/components/mobile-category-topic.gjsindex a2ddf807cbd..fcdbedb8bd0 100644--- a/frontend/discourse/app/components/mobile-category-topic.gjs+++ b/frontend/discourse/app/components/mobile-category-topic.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/require-tagless-components, ember/no-classic-components */import Component from "@ember/component";import { classNameBindings, tagName } from "@ember-decorators/component";import $ from "jquery";diff --git a/frontend/discourse/app/components/mobile-nav.gjs b/frontend/discourse/app/components/mobile-nav.gjsindex 754c39e2117..babc27d8440 100644--- a/frontend/discourse/app/components/mobile-nav.gjs+++ b/frontend/discourse/app/components/mobile-nav.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { on } from "@ember/modifier";import { action } from "@ember/object";diff --git a/frontend/discourse/app/components/modal/history/revisions.gjs b/frontend/discourse/app/components/modal/history/revisions.gjsindex 53bc5f5e3e6..e7db2316a88 100644--- a/frontend/discourse/app/components/modal/history/revisions.gjs+++ b/frontend/discourse/app/components/modal/history/revisions.gjs@@ -5,6 +5,7 @@ import didInsert from "@ember/render-modifiers/modifiers/did-insert";import didUpdate from "@ember/render-modifiers/modifiers/did-update";import { service } from "@ember/service";import { htmlSafe } from "@ember/template";+import { tagName } from "@ember-decorators/component";import LinksRedirect from "discourse/components/links-redirect";import PluginOutlet from "discourse/components/plugin-outlet";import Avatar from "discourse/helpers/bound-avatar-template";@@ -23,6 +24,7 @@ function tagClasses(tagChanges, state, className) {}, {});}+@tagName("")export default class Revisions extends Component {@service languageNameLookup;@@ -64,6 +66,7 @@ export default class Revisions extends Component {id="revisions"data-post-id={{@model.post_id}}class={{@hiddenClasses}}+ ...attributes>{{#if @model.locale_changes}}<div class="row revision__locale">diff --git a/frontend/discourse/app/components/modal/revise-and-reject-post-reviewable.gjs b/frontend/discourse/app/components/modal/revise-and-reject-post-reviewable.gjsindex 8f1af4d5fc6..8d00086eb03 100644--- a/frontend/discourse/app/components/modal/revise-and-reject-post-reviewable.gjs+++ b/frontend/discourse/app/components/modal/revise-and-reject-post-reviewable.gjs@@ -75,7 +75,7 @@ export default class ReviseAndRejectPostReviewable extends Component {><:body><div class="revise-and-reject-reviewable__queued-post">- <ReviewableQueuedPost @reviewable={{@model.reviewable}} @tagName="" />+ <ReviewableQueuedPost @reviewable={{@model.reviewable}} /></div><div class="control-group">diff --git a/frontend/discourse/app/components/modal/share-topic.gjs b/frontend/discourse/app/components/modal/share-topic.gjsindex a27635a3fd2..2e37161a307 100644--- a/frontend/discourse/app/components/modal/share-topic.gjs+++ b/frontend/discourse/app/components/modal/share-topic.gjs@@ -4,6 +4,7 @@ import { action } from "@ember/object";import { readOnly } from "@ember/object/computed";import { getOwner } from "@ember/owner";import { service } from "@ember/service";+import { tagName } from "@ember-decorators/component";import CopyButton from "discourse/components/copy-button";import DButton from "discourse/components/d-button";import DModal from "discourse/components/d-modal";@@ -18,6 +19,7 @@ import Sharing from "discourse/lib/sharing";import Category from "discourse/models/category";import { i18n } from "discourse-i18n";+@tagName("")export default class ShareTopicModal extends Component {@service modal;diff --git a/frontend/discourse/app/components/modal/sidebar-section-form.gjs b/frontend/discourse/app/components/modal/sidebar-section-form.gjsindex 5d290bfae79..f3d945aad85 100644--- a/frontend/discourse/app/components/modal/sidebar-section-form.gjs+++ b/frontend/discourse/app/components/modal/sidebar-section-form.gjs@@ -6,6 +6,7 @@ import { on } from "@ember/modifier";import { action } from "@ember/object";import { service } from "@ember/service";import { isEmpty } from "@ember/utils";+import { tagName } from "@ember-decorators/component";import DButton from "discourse/components/d-button";import DModal from "discourse/components/d-modal";import SectionFormLink from "discourse/components/sidebar/section-form-link";@@ -218,6 +219,7 @@ class SectionLink {}}+@tagName("")export default class SidebarSectionForm extends Component {@service dialog;@service router;diff --git a/frontend/discourse/app/components/mount-widget.gjs b/frontend/discourse/app/components/mount-widget.gjsindex 8521dbbf70b..7f98a7dc5cf 100644--- a/frontend/discourse/app/components/mount-widget.gjs+++ b/frontend/discourse/app/components/mount-widget.gjs@@ -7,6 +7,7 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";+import { tagName } from "@ember-decorators/component";import { warnWidgetsDecommissioned } from "discourse/widgets/widget";export {@@ -15,6 +16,7 @@ export {warnWidgetsDecommissioned as resetWidgetCleanCallbacks,} from "discourse/widgets/widget";+@tagName("")export default class MountWidget extends Component {init() {super.init(...arguments);@@ -22,6 +24,8 @@ export default class MountWidget extends Component {}<template>- {{! No-op. The widget rendering system was decommissioned }}+ <div ...attributes>+ {{! No-op. The widget rendering system was decommissioned }}+ </div></template>}diff --git a/frontend/discourse/app/components/navigation-item.gjs b/frontend/discourse/app/components/navigation-item.gjsindex 3c88337f91a..2e3b0d56d40 100644--- a/frontend/discourse/app/components/navigation-item.gjs+++ b/frontend/discourse/app/components/navigation-item.gjs@@ -2,23 +2,12 @@import { tracked } from "@glimmer/tracking";import Component from "@ember/component";import { dependentKeyCompat } from "@ember/object/compat";-import {- attributeBindings,- classNameBindings,- tagName,-} from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";+import concatClass from "discourse/helpers/concat-class";import discourseComputed from "discourse/lib/decorators";import { filterTypeForMode } from "discourse/lib/filter-mode";-@tagName("li")-@classNameBindings(- "active",- "content.hasIcon:has-icon",- "content.classNames",- "isHidden:hidden",- "content.name"-)-@attributeBindings("content.title:title")+@tagName("")export default class NavigationItem extends Component {@tracked filterMode;@@ -99,15 +88,27 @@ export default class NavigationItem extends Component {}<template>- <a- href={{this.hrefLink}}- class={{this.activeClass}}- aria-current={{if this.activeClass "page"}}+ <li+ title={{this.content.title}}+ class={{concatClass+ (if this.active "active")+ (if this.content.hasIcon "has-icon")+ this.content.classNames+ (if this.isHidden "hidden")+ this.content.name+ }}+ ...attributes>- {{#if this.hasIcon}}- <span class={{this.content.name}}></span>- {{/if}}- {{this.content.displayName}}- </a>+ <a+ href={{this.hrefLink}}+ class={{this.activeClass}}+ aria-current={{if this.activeClass "page"}}+ >+ {{#if this.hasIcon}}+ <span class={{this.content.name}}></span>+ {{/if}}+ {{this.content.displayName}}+ </a>+ </li></template>}diff --git a/frontend/discourse/app/components/pick-files-button.gjs b/frontend/discourse/app/components/pick-files-button.gjsindex cc4023c108a..bd38ab37ab6 100644--- a/frontend/discourse/app/components/pick-files-button.gjs+++ b/frontend/discourse/app/components/pick-files-button.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { action } from "@ember/object";import didInsert from "@ember/render-modifiers/modifiers/did-insert";diff --git a/frontend/discourse/app/components/plugin-connector.js b/frontend/discourse/app/components/plugin-connector.jsindex 2c2679b36f2..36334964801 100644--- a/frontend/discourse/app/components/plugin-connector.js+++ b/frontend/discourse/app/components/plugin-connector.js@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { computed, defineProperty } from "@ember/object";import { afterRender } from "discourse/lib/decorators";diff --git a/frontend/discourse/app/components/popup-input-tip.gjs b/frontend/discourse/app/components/popup-input-tip.gjsindex 5b229585ab7..f1a71a9b17d 100644--- a/frontend/discourse/app/components/popup-input-tip.gjs+++ b/frontend/discourse/app/components/popup-input-tip.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { not, or, reads } from "@ember/object/computed";import { service } from "@ember/service";diff --git a/frontend/discourse/app/components/radio-button.js b/frontend/discourse/app/components/radio-button.jsindex 438e11aab54..153dd922834 100644--- a/frontend/discourse/app/components/radio-button.js+++ b/frontend/discourse/app/components/radio-button.js@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { attributeBindings, tagName } from "@ember-decorators/component";import $ from "jquery";diff --git a/frontend/discourse/app/components/reviewable-conversation-post.gjs b/frontend/discourse/app/components/reviewable-conversation-post.gjsindex 4954e6f61e2..aef40132ac5 100644--- a/frontend/discourse/app/components/reviewable-conversation-post.gjs+++ b/frontend/discourse/app/components/reviewable-conversation-post.gjs@@ -3,22 +3,26 @@ import Component from "@ember/component";import { gte } from "@ember/object/computed";import { LinkTo } from "@ember/routing";import { htmlSafe } from "@ember/template";+import { tagName } from "@ember-decorators/component";+@tagName("")export default class ReviewableConversationPost extends Component {@gte("index", 1) showUsername;<template>- {{#if this.post}}- <div class="reviewable-conversation-post">- {{#if this.showUsername}}- <LinkTo- @route="user"- @model={{this.post.user}}- class="username"- >@{{this.post.user.username}}</LinkTo>- {{/if}}- {{htmlSafe this.post.excerpt}}- </div>- {{/if}}+ <div ...attributes>+ {{#if this.post}}+ <div class="reviewable-conversation-post">+ {{#if this.showUsername}}+ <LinkTo+ @route="user"+ @model={{this.post.user}}+ class="username"+ >@{{this.post.user.username}}</LinkTo>+ {{/if}}+ {{htmlSafe this.post.excerpt}}+ </div>+ {{/if}}+ </div></template>}diff --git a/frontend/discourse/app/components/reviewable-field-editor.gjs b/frontend/discourse/app/components/reviewable-field-editor.gjsindex 381773b8483..05545592fbe 100644--- a/frontend/discourse/app/components/reviewable-field-editor.gjs+++ b/frontend/discourse/app/components/reviewable-field-editor.gjs@@ -1,7 +1,9 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";+import { tagName } from "@ember-decorators/component";import DEditor from "discourse/components/d-editor";+@tagName("")export default class ReviewableFieldEditor extends Component {<template><DEditor @value={{this.value}} @change={{this.valueChanged}} />diff --git a/frontend/discourse/app/components/reviewable-field-tags.gjs b/frontend/discourse/app/components/reviewable-field-tags.gjsindex f2d9160ad71..3091c1cc929 100644--- a/frontend/discourse/app/components/reviewable-field-tags.gjs+++ b/frontend/discourse/app/components/reviewable-field-tags.gjs@@ -2,19 +2,20 @@import Component from "@ember/component";import { hash } from "@ember/helper";import { action } from "@ember/object";+import { tagName } from "@ember-decorators/component";import MiniTagChooser from "discourse/select-kit/components/mini-tag-chooser";+@tagName("")export default class ReviewableFieldTags extends Component {@actiononChange(tags) {this.set("value", tags);- this.valueChanged &&- this.valueChanged({- target: {- value: tags,- },- });+ this.valueChanged?.({+ target: {+ value: tags,+ },+ });}<template>diff --git a/frontend/discourse/app/components/reviewable-field-text.gjs b/frontend/discourse/app/components/reviewable-field-text.gjsindex 1815a9cde10..3102d4e784f 100644--- a/frontend/discourse/app/components/reviewable-field-text.gjs+++ b/frontend/discourse/app/components/reviewable-field-text.gjs@@ -1,7 +1,9 @@/* eslint-disable ember/no-classic-components */import Component, { Input } from "@ember/component";import { on } from "@ember/modifier";+import { tagName } from "@ember-decorators/component";+@tagName("")export default class ReviewableFieldText extends Component {<template><Inputdiff --git a/frontend/discourse/app/components/reviewable-field-textarea.gjs b/frontend/discourse/app/components/reviewable-field-textarea.gjsindex fa7c55a9560..a985def23e1 100644--- a/frontend/discourse/app/components/reviewable-field-textarea.gjs+++ b/frontend/discourse/app/components/reviewable-field-textarea.gjs@@ -1,7 +1,9 @@/* eslint-disable ember/no-classic-components */import Component, { Textarea } from "@ember/component";import { on } from "@ember/modifier";+import { tagName } from "@ember-decorators/component";+@tagName("")export default class ReviewableFieldTextarea extends Component {<template><Textareadiff --git a/frontend/discourse/app/components/reviewable-field.gjs b/frontend/discourse/app/components/reviewable-field.gjsindex 14202c80eb6..078756a9928 100644--- a/frontend/discourse/app/components/reviewable-field.gjs+++ b/frontend/discourse/app/components/reviewable-field.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";export default class ReviewableField extends Component {diff --git a/frontend/discourse/app/components/reviewable-flagged-post.gjs b/frontend/discourse/app/components/reviewable-flagged-post.gjsindex 60833d7f5bf..c3edfa1defc 100644--- a/frontend/discourse/app/components/reviewable-flagged-post.gjs+++ b/frontend/discourse/app/components/reviewable-flagged-post.gjs@@ -49,8 +49,8 @@ export default class ReviewableFlaggedPost extends Component {<template><div class="flagged-post-header">- <ReviewableTopicLink @reviewable={{@reviewable}} @tagName="" />- <ReviewablePostEdits @reviewable={{@reviewable}} @tagName="" />+ <ReviewableTopicLink @reviewable={{@reviewable}} />+ <ReviewablePostEdits @reviewable={{@reviewable}} /></div><div class="post-contents-wrapper">@@ -59,7 +59,6 @@ export default class ReviewableFlaggedPost extends Component {<ReviewablePostHeader@reviewable={{@reviewable}}@createdBy={{@reviewable.target_created_by}}- @tagName=""/><divclass="post-body {{if this.isCollapsed 'is-collapsed'}}"diff --git a/frontend/discourse/app/components/reviewable-histories.gjs b/frontend/discourse/app/components/reviewable-histories.gjsindex 303d4d35ea2..90ec34f3933 100644--- a/frontend/discourse/app/components/reviewable-histories.gjs+++ b/frontend/discourse/app/components/reviewable-histories.gjs@@ -1,12 +1,14 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { filterBy } from "@ember/object/computed";+import { tagName } from "@ember-decorators/component";import UserLink from "discourse/components/user-link";import avatar from "discourse/helpers/avatar";import formatDate from "discourse/helpers/format-date";import reviewableHistoryDescription from "discourse/helpers/reviewable-history-description";import { i18n } from "discourse-i18n";+@tagName("")export default class ReviewableHistories extends Component {@filterBy("histories", "created", false) filteredHistories;diff --git a/frontend/discourse/app/components/reviewable-item.gjs b/frontend/discourse/app/components/reviewable-item.gjsindex 5614639d78c..5f36682f43f 100644--- a/frontend/discourse/app/components/reviewable-item.gjs+++ b/frontend/discourse/app/components/reviewable-item.gjs@@ -583,7 +583,6 @@ export default class ReviewableItem extends Component {as |FieldComponent|}}<FieldComponent- @tagName=""@value={{editableValue this.reviewable f.id}}@tagCategoryId={{this.tagCategoryId}}@valueChanged={{fn this.valueChanged f.id}}@@ -598,8 +597,8 @@ export default class ReviewableItem extends Component {(lookupComponent this this.reviewableComponent)as |ReviewableComponent|}}- <ReviewableComponent @reviewable={{this.reviewable}} @tagName="">- <ReviewableScores @reviewable={{this.reviewable}} @tagName="" />+ <ReviewableComponent @reviewable={{this.reviewable}}>+ <ReviewableScores @reviewable={{this.reviewable}} /></ReviewableComponent>{{/let}}{{/if}}diff --git a/frontend/discourse/app/components/reviewable-post-edits.gjs b/frontend/discourse/app/components/reviewable-post-edits.gjsindex eafa0fb84f8..8fd8e3ecbeb 100644--- a/frontend/discourse/app/components/reviewable-post-edits.gjs+++ b/frontend/discourse/app/components/reviewable-post-edits.gjs@@ -3,6 +3,7 @@ import Component from "@ember/component";import { action } from "@ember/object";import { gt } from "@ember/object/computed";import { service } from "@ember/service";+import { tagName } from "@ember-decorators/component";import DButton from "discourse/components/d-button";import HistoryModal from "discourse/components/modal/history";import { historyHeat } from "discourse/components/post/meta-data/edits-indicator";@@ -10,6 +11,7 @@ import discourseComputed from "discourse/lib/decorators";import { longDate } from "discourse/lib/formatter";import { i18n } from "discourse-i18n";+@tagName("")export default class ReviewablePostEdits extends Component {@service modal;diff --git a/frontend/discourse/app/components/reviewable-post-header.gjs b/frontend/discourse/app/components/reviewable-post-header.gjsindex 7c5a8875c47..dee4531ed8d 100644--- a/frontend/discourse/app/components/reviewable-post-header.gjs+++ b/frontend/discourse/app/components/reviewable-post-header.gjs@@ -1,27 +1,27 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { concat } from "@ember/helper";+import { tagName } from "@ember-decorators/component";import ReviewableCreatedByName from "discourse/components/reviewable-created-by-name";import icon from "discourse/helpers/d-icon";import { i18n } from "discourse-i18n";+@tagName("")export default class ReviewablePostHeader extends Component {<template>- <div class="reviewable-post-header">- <ReviewableCreatedByName @user={{this.createdBy}} />- {{#if this.reviewable.reply_to_post_number}}- <a- href={{concat- this.reviewable.topic_url- "/"- this.reviewable.reply_to_post_number- }}- class="reviewable-reply-to"- >- {{icon "share"}}- <span>{{i18n "review.in_reply_to"}}</span>- </a>- {{/if}}- </div>+ <ReviewableCreatedByName @user={{this.createdBy}} />+ {{#if this.reviewable.reply_to_post_number}}+ <a+ href={{concat+ this.reviewable.topic_url+ "/"+ this.reviewable.reply_to_post_number+ }}+ class="reviewable-reply-to"+ >+ {{icon "share"}}+ <span>{{i18n "review.in_reply_to"}}</span>+ </a>+ {{/if}}</template>}diff --git a/frontend/discourse/app/components/reviewable-post.gjs b/frontend/discourse/app/components/reviewable-post.gjsindex 38773ffd541..a48f10bd0a5 100644--- a/frontend/discourse/app/components/reviewable-post.gjs+++ b/frontend/discourse/app/components/reviewable-post.gjs@@ -1,5 +1,6 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";+import { tagName } from "@ember-decorators/component";import ReviewableCreatedBy from "discourse/components/reviewable-created-by";import ReviewablePostEdits from "discourse/components/reviewable-post-edits";import ReviewablePostHeader from "discourse/components/reviewable-post-header";@@ -7,11 +8,12 @@ import ReviewableTopicLink from "discourse/components/reviewable-topic-link";import highlightWatchedWords from "discourse/lib/highlight-watched-words";import { i18n } from "discourse-i18n";+@tagName("")export default class ReviewablePost extends Component {<template><div class="flagged-post-header">- <ReviewableTopicLink @reviewable={{this.reviewable}} @tagName="" />- <ReviewablePostEdits @reviewable={{this.reviewable}} @tagName="" />+ <ReviewableTopicLink @reviewable={{this.reviewable}} />+ <ReviewablePostEdits @reviewable={{this.reviewable}} /></div><div class="post-contents-wrapper">@@ -20,7 +22,6 @@ export default class ReviewablePost extends Component {<ReviewablePostHeader@reviewable={{this.reviewable}}@createdBy={{this.reviewable.target_created_by}}- @tagName=""/><div class="post-body">{{#if this.reviewable.blank_post}}diff --git a/frontend/discourse/app/components/reviewable-queued-post.gjs b/frontend/discourse/app/components/reviewable-queued-post.gjsindex 0a0afe86dab..25f75398eb8 100644--- a/frontend/discourse/app/components/reviewable-queued-post.gjs+++ b/frontend/discourse/app/components/reviewable-queued-post.gjs@@ -65,7 +65,7 @@ export default class ReviewableQueuedPost extends Component {}<template>- <ReviewableTopicLink @reviewable={{@reviewable}} @tagName="">+ <ReviewableTopicLink @reviewable={{@reviewable}}><div class="title-text">{{icon "square-plus" title="review.new_topic"}}{{highlightWatchedWords @reviewable.payload.title @reviewable}}@@ -86,7 +86,6 @@ export default class ReviewableQueuedPost extends Component {<ReviewablePostHeader@reviewable={{@reviewable}}@createdBy={{@reviewable.target_created_by}}- @tagName=""/><CookTextdiff --git a/frontend/discourse/app/components/reviewable-refresh/item.gjs b/frontend/discourse/app/components/reviewable-refresh/item.gjsindex 26ff31bdaca..a12ea15bff1 100644--- a/frontend/discourse/app/components/reviewable-refresh/item.gjs+++ b/frontend/discourse/app/components/reviewable-refresh/item.gjs@@ -763,7 +763,6 @@ export default class ReviewableItem extends Component {as |FieldComponent|}}<FieldComponent- @tagName=""@value={{editableValue this.reviewable f.id}}@tagCategoryId={{this.tagCategoryId}}@valueChanged={{fn this.valueChanged f.id}}@@ -779,10 +778,7 @@ export default class ReviewableItem extends Component {(lookupComponent this this.reviewableComponent)as |ReviewableComponent|}}- <ReviewableComponent- @reviewable={{this.reviewable}}- @tagName=""- />+ <ReviewableComponent @reviewable={{this.reviewable}} />{{/let}}{{/if}}</div>diff --git a/frontend/discourse/app/components/reviewable-refresh/post.gjs b/frontend/discourse/app/components/reviewable-refresh/post.gjsindex d042191c4d2..2788e4f836e 100644--- a/frontend/discourse/app/components/reviewable-refresh/post.gjs+++ b/frontend/discourse/app/components/reviewable-refresh/post.gjs@@ -53,8 +53,8 @@ export default class ReviewablePost extends Component {<div class="review-item__meta-label">{{this.metaLabel}}</div><div class="review-item__meta-topic-title">- <ReviewableTopicLink @reviewable={{@reviewable}} @tagName="" />- <ReviewablePostEdits @reviewable={{@reviewable}} @tagName="" />+ <ReviewableTopicLink @reviewable={{@reviewable}} />+ <ReviewablePostEdits @reviewable={{@reviewable}} /></div><div class="review-item__meta-label">{{this.userLabel}}</div>diff --git a/frontend/discourse/app/components/reviewable-refresh/queued-post.gjs b/frontend/discourse/app/components/reviewable-refresh/queued-post.gjsindex 4b686aafdeb..fefae1bcd03 100644--- a/frontend/discourse/app/components/reviewable-refresh/queued-post.gjs+++ b/frontend/discourse/app/components/reviewable-refresh/queued-post.gjs@@ -33,12 +33,12 @@ export default class ReviewableQueuedPost extends Component {<div class="review-item__meta-label">{{i18n "review.topic_label"}}</div><div class="review-item__meta-topic-title">- <ReviewableTopicLink @reviewable={{@reviewable}} @tagName="">+ <ReviewableTopicLink @reviewable={{@reviewable}}><div class="title-text">{{highlightWatchedWords @reviewable.payload.title @reviewable}}</div>{{categoryBadge @reviewable.category}}- <ReviewableTags @tags={{@reviewable.payload.tags}} @tagName="" />+ <ReviewableTags @tags={{@reviewable.payload.tags}} />{{#if @reviewable.payload.via_email}}<a href {{on "click" this.showRawEmail}} class="show-raw-email">{{icon "envelope" title="post.via_email"}}diff --git a/frontend/discourse/app/components/reviewable-refresh/topic-link.gjs b/frontend/discourse/app/components/reviewable-refresh/topic-link.gjsindex 550097d79cd..ecc1d86bf8e 100644--- a/frontend/discourse/app/components/reviewable-refresh/topic-link.gjs+++ b/frontend/discourse/app/components/reviewable-refresh/topic-link.gjs@@ -55,7 +55,7 @@ import { i18n } from "discourse-i18n";{{/if}}<div class="reviewable-topic-link__details-tags">- <ReviewableTags @tags={{@reviewable.topic_tags}} @tagName="" />+ <ReviewableTags @tags={{@reviewable.topic_tags}} /></div></div>{{else if (has-block)}}diff --git a/frontend/discourse/app/components/reviewable-refresh/user.gjs b/frontend/discourse/app/components/reviewable-refresh/user.gjsindex dfa2320b8e4..f2bb1af196e 100644--- a/frontend/discourse/app/components/reviewable-refresh/user.gjs+++ b/frontend/discourse/app/components/reviewable-refresh/user.gjs@@ -1,10 +1,12 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";+import { tagName } from "@ember-decorators/component";import LegacyReviewableUser from "../reviewable-user";+@tagName("")export default class ReviewableUser extends Component {<template>- <div class="review-item__meta-content">+ <div class="review-item__meta-content" ...attributes><LegacyReviewableUser @reviewable={{@reviewable}}>{{yield}}</LegacyReviewableUser>diff --git a/frontend/discourse/app/components/reviewable-scores.gjs b/frontend/discourse/app/components/reviewable-scores.gjsindex ca68f6a6882..3259b694cbc 100644--- a/frontend/discourse/app/components/reviewable-scores.gjs+++ b/frontend/discourse/app/components/reviewable-scores.gjs@@ -1,10 +1,12 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { htmlSafe } from "@ember/template";+import { tagName } from "@ember-decorators/component";import ReviewableConversationPost from "discourse/components/reviewable-conversation-post";import ReviewableScore from "discourse/components/reviewable-score";import { i18n } from "discourse-i18n";+@tagName("")export default class ReviewableScores extends Component {<template>{{#if this.reviewable.reviewable_scores}}@@ -52,7 +54,6 @@ export default class ReviewableScores extends Component {</div>{{/if}}{{/each}}-{{/if}}</template>}diff --git a/frontend/discourse/app/components/reviewable-topic-link.gjs b/frontend/discourse/app/components/reviewable-topic-link.gjsindex 3bd8ba6ff5b..055a8d1b24b 100644--- a/frontend/discourse/app/components/reviewable-topic-link.gjs+++ b/frontend/discourse/app/components/reviewable-topic-link.gjs@@ -2,43 +2,43 @@import Component from "@ember/component";import { array } from "@ember/helper";import { LinkTo } from "@ember/routing";+import { tagName } from "@ember-decorators/component";import ReviewableTags from "discourse/components/reviewable-tags";import TopicStatus from "discourse/components/topic-status";import categoryBadge from "discourse/helpers/category-badge";import highlightWatchedWords from "discourse/lib/highlight-watched-words";import { i18n } from "discourse-i18n";+@tagName("")export default class ReviewableTopicLink extends Component {<template>- <div class="post-topic">- {{#if this.reviewable.topic}}- <TopicStatus- @topic={{this.reviewable.topic}}- @showPrivateMessageIcon={{true}}- />- <a- href={{this.reviewable.target_url}}- class="title-text"- >{{highlightWatchedWords- this.reviewable.topic.fancyTitle- this.reviewable- }}</a>- {{categoryBadge this.reviewable.category}}- <ReviewableTags- @topic={{this.reviewable.topic}}- @tags={{this.reviewable.topic_tags}}- />- {{else if (has-block)}}- {{yield}}- {{else}}- <span class="title-text">- {{i18n "review.topics.deleted"}}- <LinkTo- @route="topic"- @models={{array "-" this.reviewable.removed_topic_id}}- >{{i18n "review.topics.original"}}</LinkTo>- </span>- {{/if}}- </div>+ {{#if this.reviewable.topic}}+ <TopicStatus+ @topic={{this.reviewable.topic}}+ @showPrivateMessageIcon={{true}}+ />+ <a+ href={{this.reviewable.target_url}}+ class="title-text"+ >{{highlightWatchedWords+ this.reviewable.topic.fancyTitle+ this.reviewable+ }}</a>+ {{categoryBadge this.reviewable.category}}+ <ReviewableTags+ @topic={{this.reviewable.topic}}+ @tags={{this.reviewable.topic_tags}}+ />+ {{else if (has-block)}}+ {{yield}}+ {{else}}+ <span class="title-text">+ {{i18n "review.topics.deleted"}}+ <LinkTo+ @route="topic"+ @models={{array "-" this.reviewable.removed_topic_id}}+ >{{i18n "review.topics.original"}}</LinkTo>+ </span>+ {{/if}}</template>}diff --git a/frontend/discourse/app/components/reviewable-user.gjs b/frontend/discourse/app/components/reviewable-user.gjsindex afa6c852fe7..3c44c7a32b8 100644--- a/frontend/discourse/app/components/reviewable-user.gjs+++ b/frontend/discourse/app/components/reviewable-user.gjs@@ -4,6 +4,7 @@ import { concat } from "@ember/helper";import { on } from "@ember/modifier";import { action } from "@ember/object";import { service } from "@ember/service";+import { tagName } from "@ember-decorators/component";import ScrubRejectedUserModal from "discourse/admin/components/modal/scrub-rejected-user";import ReviewableField from "discourse/components/reviewable-field";import rawDate from "discourse/helpers/raw-date";@@ -14,6 +15,7 @@ import getUrl from "discourse/lib/get-url";import { REJECTED } from "discourse/models/reviewable";import { i18n } from "discourse-i18n";+@tagName("")export default class ReviewableUser extends Component {@service currentUser;@service modal;@@ -153,7 +155,6 @@ export default class ReviewableUser extends Component {@classes="reviewable-user-details user-field"@name={{f.name}}@value={{f.value}}- @tagName=""/>{{/each}}{{/if}}@@ -161,6 +162,7 @@ export default class ReviewableUser extends Component {{{yield}}</div>+{{#if this.canScrubRejectedUser}}<div class="scrub-rejected-user"><buttondiff --git a/frontend/discourse/app/components/save-controls.gjs b/frontend/discourse/app/components/save-controls.gjsindex 8b98aed3959..5d11239d84f 100644--- a/frontend/discourse/app/components/save-controls.gjs+++ b/frontend/discourse/app/components/save-controls.gjs@@ -1,12 +1,12 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { or } from "@ember/object/computed";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import DButton from "discourse/components/d-button";import discourseComputed from "discourse/lib/decorators";import { i18n } from "discourse-i18n";-@classNames("controls", "save-button")+@tagName("")export default class SaveControls extends Component {@or("model.isSaving", "saveDisabled") buttonDisabled;@@ -21,16 +21,18 @@ export default class SaveControls extends Component {}<template>- <DButton- @action={{this.action}}- @disabled={{this.buttonDisabled}}- @label={{this.savingText}}- class="btn-primary save-changes"- />- {{#if this.saved}}- <span class="saved">{{i18n "saved"}}</span>- {{/if}}+ <div class="controls save-button" ...attributes>+ <DButton+ @action={{this.action}}+ @disabled={{this.buttonDisabled}}+ @label={{this.savingText}}+ class="btn-primary save-changes"+ />+ {{#if this.saved}}+ <span class="saved">{{i18n "saved"}}</span>+ {{/if}}- {{yield}}+ {{yield}}+ </div></template>}diff --git a/frontend/discourse/app/components/search-advanced-options.gjs b/frontend/discourse/app/components/search-advanced-options.gjsindex 89bbf1c1fa3..a8a7543908d 100644--- a/frontend/discourse/app/components/search-advanced-options.gjs+++ b/frontend/discourse/app/components/search-advanced-options.gjs@@ -3,11 +3,7 @@ import Component, { Input } from "@ember/component";import { hash } from "@ember/helper";import { on } from "@ember/modifier";import { action } from "@ember/object";-import {- attributeBindings,- classNames,- tagName,-} from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import DButton from "discourse/components/d-button";import DateInput from "discourse/components/date-input";import PluginOutlet from "discourse/components/plugin-outlet";@@ -119,9 +115,7 @@ export function addAdvancedSearchOptions(options) {_extraOptions.push(options);}-@tagName("details")-@attributeBindings("expandFilters:open")-@classNames("advanced-filters")+@tagName("")export default class SearchAdvancedOptions extends Component {category = null;@@ -736,233 +730,237 @@ export default class SearchAdvancedOptions extends Component {<template>{{! template-lint-disable no-nested-interactive }}- <summary>- {{i18n "search.advanced.title"}}- </summary>- <div class="search-advanced-filters">- <div class="search-advanced-options">- <PluginOutlet- @name="advanced-search-options-above"- @connectorTagName="div"- @outletArgs={{lazyHash- searchedTerms=this.searchedTerms- onChangeSearchedTermField=this.onChangeSearchedTermField- }}- />-- <div class="control-group advanced-search-category">- <label class="control-label">{{i18n- "search.advanced.in_category.label"- }}</label>- <div class="controls">- <SearchAdvancedCategoryChooser- @id="search-in-category"- @value={{this.searchedTerms.category.id}}- @onChange={{this.onChangeSearchTermForCategory}}- />+ <details open={{this.expandFilters}} class="advanced-filters" ...attributes>+ <summary>+ {{i18n "search.advanced.title"}}+ </summary>+ <div class="search-advanced-filters">+ <div class="search-advanced-options">+ <PluginOutlet+ @name="advanced-search-options-above"+ @connectorTagName="div"+ @outletArgs={{lazyHash+ searchedTerms=this.searchedTerms+ onChangeSearchedTermField=this.onChangeSearchedTermField+ }}+ />++ <div class="control-group advanced-search-category">+ <label class="control-label">{{i18n+ "search.advanced.in_category.label"+ }}</label>+ <div class="controls">+ <SearchAdvancedCategoryChooser+ @id="search-in-category"+ @value={{this.searchedTerms.category.id}}+ @onChange={{this.onChangeSearchTermForCategory}}+ />+ </div></div>- </div>- {{#if this.siteSettings.tagging_enabled}}- <div class="control-group advanced-search-tags">+ {{#if this.siteSettings.tagging_enabled}}+ <div class="control-group advanced-search-tags">+ <label class="control-label">{{i18n+ "search.advanced.with_tags.label"+ }}</label>+ <div class="controls">+ <TagChooser+ @id="search-with-tags"+ @tags={{this.searchedTerms.tags}}+ @everyTag={{true}}+ @unlimitedTagCount={{true}}+ @onChange={{this.onChangeSearchTermForTags}}+ @options={{hash+ allowAny=false+ headerAriaLabel=(i18n+ "search.advanced.with_tags.aria_label"+ )+ }}+ />+ {{#if this.showAllTagsCheckbox}}+ <section class="field">+ <label>+ <Input+ @type="checkbox"+ class="all-tags"+ @checked={{this.searchedTerms.special.all_tags}}+ {{on "click" this.onChangeSearchTermForAllTags}}+ />+ {{i18n "search.advanced.filters.all_tags"}}+ </label>+ </section>+ {{/if}}+ </div>+ </div>+ {{/if}}++ <div class="control-group advanced-search-topics-posts"><label class="control-label">{{i18n- "search.advanced.with_tags.label"+ "search.advanced.filters.label"}}</label><div class="controls">- <TagChooser- @id="search-with-tags"- @tags={{this.searchedTerms.tags}}- @everyTag={{true}}- @unlimitedTagCount={{true}}- @onChange={{this.onChangeSearchTermForTags}}+ <MultiSelect+ @id="search-in-options"+ @valueProperty="value"+ @content={{this.inOptions}}+ @value={{this.searchedTerms.in}}+ @onChange={{this.onChangeSearchTermForIn}}@options={{hash- allowAny=false- headerAriaLabel=(i18n "search.advanced.with_tags.aria_label")+ headerAriaLabel=(i18n "search.advanced.filters.label")}}/>- {{#if this.showAllTagsCheckbox}}- <section class="field">- <label>- <Input- @type="checkbox"- class="all-tags"- @checked={{this.searchedTerms.special.all_tags}}- {{on "click" this.onChangeSearchTermForAllTags}}- />- {{i18n "search.advanced.filters.all_tags"}}- </label>- </section>- {{/if}}</div></div>- {{/if}}- <div class="control-group advanced-search-topics-posts">- <label class="control-label">{{i18n- "search.advanced.filters.label"- }}</label>- <div class="controls">- <MultiSelect- @id="search-in-options"- @valueProperty="value"- @content={{this.inOptions}}- @value={{this.searchedTerms.in}}- @onChange={{this.onChangeSearchTermForIn}}- @options={{hash- headerAriaLabel=(i18n "search.advanced.filters.label")- }}- />+ <div class="control-group advanced-search-topic-status">+ <label class="control-label">{{i18n+ "search.advanced.statuses.label"+ }}</label>+ <div class="controls">+ <ComboBox+ @id="search-status-options"+ @valueProperty="value"+ @content={{this.statusOptions}}+ @value={{this.searchedTerms.status}}+ @onChange={{this.onChangeSearchTermForStatus}}+ @options={{hash+ none="user.locale.any"+ headerAriaLabel=(i18n "search.advanced.statuses.label")+ clearable=true+ }}+ />+ </div></div>- </div>- <div class="control-group advanced-search-topic-status">- <label class="control-label">{{i18n- "search.advanced.statuses.label"- }}</label>- <div class="controls">- <ComboBox- @id="search-status-options"- @valueProperty="value"- @content={{this.statusOptions}}- @value={{this.searchedTerms.status}}- @onChange={{this.onChangeSearchTermForStatus}}- @options={{hash- none="user.locale.any"- headerAriaLabel=(i18n "search.advanced.statuses.label")- clearable=true- }}- />+ <div class="control-group advanced-search-posted-by">+ <label class="control-label">+ {{i18n "search.advanced.posted_by.label"}}+ </label>+ <div class="controls">+ <UserChooser+ @id="search-posted-by"+ @value={{this.searchedTerms.username}}+ @onChange={{this.onChangeSearchTermForUsername}}+ @options={{hash+ headerAriaLabel=(i18n "search.advanced.posted_by.aria_label")+ maximum=1+ excludeCurrentUser=false+ }}+ />+ </div></div>- </div>- <div class="control-group advanced-search-posted-by">- <label class="control-label">- {{i18n "search.advanced.posted_by.label"}}- </label>- <div class="controls">- <UserChooser- @id="search-posted-by"- @value={{this.searchedTerms.username}}- @onChange={{this.onChangeSearchTermForUsername}}- @options={{hash- headerAriaLabel=(i18n "search.advanced.posted_by.aria_label")- maximum=1- excludeCurrentUser=false- }}- />+ <div class="control-group advanced-search-posted-date">+ <label class="control-label">{{i18n+ "search.advanced.post.time.label"+ }}</label>+ <div class="controls inline-form">+ <ComboBox+ @id="postTime"+ @valueProperty="value"+ @content={{this.postTimeOptions}}+ @value={{this.searchedTerms.time.when}}+ @onChange={{this.onChangeWhenTime}}+ />+ <DateInput+ @date={{this.searchedTerms.time.days}}+ @onChange={{this.onChangeWhenDate}}+ @inputId="search-post-date"+ aria-label={{i18n "search.advanced.post.time.aria_label"}}+ />+ </div></div>- </div>- <div class="control-group advanced-search-posted-date">- <label class="control-label">{{i18n- "search.advanced.post.time.label"- }}</label>- <div class="controls inline-form">- <ComboBox- @id="postTime"- @valueProperty="value"- @content={{this.postTimeOptions}}- @value={{this.searchedTerms.time.when}}- @onChange={{this.onChangeWhenTime}}- />- <DateInput- @date={{this.searchedTerms.time.days}}- @onChange={{this.onChangeWhenDate}}- @inputId="search-post-date"- aria-label={{i18n "search.advanced.post.time.aria_label"}}- />- </div>+ <PluginOutlet+ @name="advanced-search-options-below"+ @connectorTagName="div"+ @outletArgs={{lazyHash+ searchedTerms=this.searchedTerms+ onChangeSearchedTermField=this.onChangeSearchedTermField+ }}+ /></div>- <PluginOutlet- @name="advanced-search-options-below"- @connectorTagName="div"- @outletArgs={{lazyHash- searchedTerms=this.searchedTerms- onChangeSearchedTermField=this.onChangeSearchedTermField- }}- />- </div>-- <details class="search-advanced-additional-options">- <summary>- {{i18n "search.advanced.additional_options.label"}}- </summary>- <div class="count-group control-group">- {{! TODO: Using a label here fails no-nested-interactive lint rule }}- <span class="control-label">{{i18n- "search.advanced.post.count.label"- }}</span>- <div class="controls">- <Input- @type="number"- @value={{readonly this.searchedTerms.min_posts}}- class="input-small"- id="search-min-post-count"- placeholder={{i18n "search.advanced.post.min.placeholder"}}- aria-label={{i18n "search.advanced.post.min.aria_label"}}- {{on- "input"- (withEventValue this.onChangeSearchTermMinPostCount)- }}- />- {{icon "left-right"}}- <Input- @type="number"- @value={{readonly this.searchedTerms.max_posts}}- class="input-small"- id="search-max-post-count"- placeholder={{i18n "search.advanced.post.max.placeholder"}}- aria-label={{i18n "search.advanced.post.max.aria_label"}}- {{on- "input"- (withEventValue this.onChangeSearchTermMaxPostCount)- }}- />+ <details class="search-advanced-additional-options">+ <summary>+ {{i18n "search.advanced.additional_options.label"}}+ </summary>+ <div class="count-group control-group">+ {{! TODO: Using a label here fails no-nested-interactive lint rule }}+ <span class="control-label">{{i18n+ "search.advanced.post.count.label"+ }}</span>+ <div class="controls">+ <Input+ @type="number"+ @value={{readonly this.searchedTerms.min_posts}}+ class="input-small"+ id="search-min-post-count"+ placeholder={{i18n "search.advanced.post.min.placeholder"}}+ aria-label={{i18n "search.advanced.post.min.aria_label"}}+ {{on+ "input"+ (withEventValue this.onChangeSearchTermMinPostCount)+ }}+ />+ {{icon "left-right"}}+ <Input+ @type="number"+ @value={{readonly this.searchedTerms.max_posts}}+ class="input-small"+ id="search-max-post-count"+ placeholder={{i18n "search.advanced.post.max.placeholder"}}+ aria-label={{i18n "search.advanced.post.max.aria_label"}}+ {{on+ "input"+ (withEventValue this.onChangeSearchTermMaxPostCount)+ }}+ />+ </div></div>- </div>- <div class="count-group control-group">- {{! TODO: Using a label here fails no-nested-interactive lint rule }}- <span class="control-label">{{i18n- "search.advanced.views.label"- }}</span>- <div class="controls">- <Input- @type="number"- @value={{readonly this.searchedTerms.min_views}}- class="input-small"- id="search-min-views"- placeholder={{i18n "search.advanced.min_views.placeholder"}}- aria-label={{i18n "search.advanced.min_views.aria_label"}}- {{on "input" (withEventValue this.onChangeSearchTermMinViews)}}- />- {{icon "left-right"}}- <Input- @type="number"- @value={{readonly this.searchedTerms.max_views}}- class="input-small"- id="search-max-views"- placeholder={{i18n "search.advanced.max_views.placeholder"}}- aria-label={{i18n "search.advanced.max_views.aria_label"}}- {{on "input" (withEventValue this.onChangeSearchTermMaxViews)}}+ <div class="count-group control-group">+ {{! TODO: Using a label here fails no-nested-interactive lint rule }}+ <span class="control-label">{{i18n+ "search.advanced.views.label"+ }}</span>+ <div class="controls">+ <Input+ @type="number"+ @value={{readonly this.searchedTerms.min_views}}+ class="input-small"+ id="search-min-views"+ placeholder={{i18n "search.advanced.min_views.placeholder"}}+ aria-label={{i18n "search.advanced.min_views.aria_label"}}+ {{on "input" (withEventValue this.onChangeSearchTermMinViews)}}+ />+ {{icon "left-right"}}+ <Input+ @type="number"+ @value={{readonly this.searchedTerms.max_views}}+ class="input-small"+ id="search-max-views"+ placeholder={{i18n "search.advanced.max_views.placeholder"}}+ aria-label={{i18n "search.advanced.max_views.aria_label"}}+ {{on "input" (withEventValue this.onChangeSearchTermMaxViews)}}+ />+ </div>+ </div>+ </details>++ {{#if this.site.mobileView}}+ <div class="second-search-button">+ <DButton+ @action={{this.search}}+ @icon="magnifying-glass"+ @label="search.search_button"+ @ariaLabel="search.search_button"+ @disabled={{this.searchButtonDisabled}}+ class="btn-primary search-cta"/></div>- </div>- </details>-- {{#if this.site.mobileView}}- <div class="second-search-button">- <DButton- @action={{this.search}}- @icon="magnifying-glass"- @label="search.search_button"- @ariaLabel="search.search_button"- @disabled={{this.searchButtonDisabled}}- class="btn-primary search-cta"- />- </div>- {{/if}}- </div>+ {{/if}}+ </div>+ </details></template>}diff --git a/frontend/discourse/app/components/search-result-entry.gjs b/frontend/discourse/app/components/search-result-entry.gjsindex 30d3c5db2de..84e2c3d69cb 100644--- a/frontend/discourse/app/components/search-result-entry.gjs+++ b/frontend/discourse/app/components/search-result-entry.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { fn } from "@ember/helper";import { on } from "@ember/modifier";diff --git a/frontend/discourse/app/components/second-factor-form.gjs b/frontend/discourse/app/components/second-factor-form.gjsindex cad1f2c2177..af0ba3cb0d8 100644--- a/frontend/discourse/app/components/second-factor-form.gjs+++ b/frontend/discourse/app/components/second-factor-form.gjs@@ -3,10 +3,12 @@ import Component from "@ember/component";import { on } from "@ember/modifier";import { action } from "@ember/object";import { htmlSafe } from "@ember/template";+import { tagName } from "@ember-decorators/component";import discourseComputed from "discourse/lib/decorators";import { SECOND_FACTOR_METHODS } from "discourse/models/user";import { i18n } from "discourse-i18n";+@tagName("")export default class SecondFactorForm extends Component {@discourseComputed("secondFactorMethod")secondFactorTitle(secondFactorMethod) {@@ -67,7 +69,7 @@ export default class SecondFactorForm extends Component {}<template>- <div id="second-factor">+ <div id="second-factor" ...attributes><h3>{{this.secondFactorTitle}}</h3>{{#if this.optionalText}}diff --git a/frontend/discourse/app/components/selected-posts.gjs b/frontend/discourse/app/components/selected-posts.gjsindex 06ac090a2bd..e91a88dc231 100644--- a/frontend/discourse/app/components/selected-posts.gjs+++ b/frontend/discourse/app/components/selected-posts.gjs@@ -1,76 +1,80 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { on } from "@ember/modifier";+import { tagName } from "@ember-decorators/component";import CountI18n from "discourse/components/count-i18n";import DButton from "discourse/components/d-button";import routeAction from "discourse/helpers/route-action";import { i18n } from "discourse-i18n";+@tagName("")export default class SelectedPosts extends Component {<template>- <p>- <CountI18n- @key="topic.multi_select.description"- @count={{this.selectedPostsCount}}- />- </p>-- {{#if this.canSelectAll}}+ <div ...attributes><p>- <a class="select-all" href {{on "click" this.selectAll}}>- {{i18n "topic.multi_select.select_all"}}- </a>+ <CountI18n+ @key="topic.multi_select.description"+ @count={{this.selectedPostsCount}}+ /></p>- {{/if}}- {{#if this.canDeselectAll}}- <p>- <a href {{on "click" this.deselectAll}}>- {{i18n "topic.multi_select.deselect_all"}}- </a>- </p>- {{/if}}+ {{#if this.canSelectAll}}+ <p>+ <a class="select-all" href {{on "click" this.selectAll}}>+ {{i18n "topic.multi_select.select_all"}}+ </a>+ </p>+ {{/if}}++ {{#if this.canDeselectAll}}+ <p>+ <a href {{on "click" this.deselectAll}}>+ {{i18n "topic.multi_select.deselect_all"}}+ </a>+ </p>+ {{/if}}- {{#if this.canDeleteSelected}}- <DButton- @action={{this.deleteSelected}}- @icon="trash-can"- @label="topic.multi_select.delete"- class="btn-danger"- />- {{/if}}+ {{#if this.canDeleteSelected}}+ <DButton+ @action={{this.deleteSelected}}+ @icon="trash-can"+ @label="topic.multi_select.delete"+ class="btn-danger"+ />+ {{/if}}- {{#if this.canMergeTopic}}- <DButton- @action={{routeAction "moveToTopic"}}- @icon="right-from-bracket"- @label="topic.move_to.action"- class="btn-primary move-to-topic"- />- {{/if}}+ {{#if this.canMergeTopic}}+ <DButton+ @action={{routeAction "moveToTopic"}}+ @icon="right-from-bracket"+ @label="topic.move_to.action"+ class="btn-primary move-to-topic"+ />+ {{/if}}- {{#if this.canChangeOwner}}- <DButton- @action={{routeAction "changeOwner"}}- @icon="user"- @label="topic.change_owner.action"- class="btn-primary"- />- {{/if}}+ {{#if this.canChangeOwner}}+ <DButton+ @action={{routeAction "changeOwner"}}+ @icon="user"+ @label="topic.change_owner.action"+ class="btn-primary"+ />+ {{/if}}- {{#if this.canMergePosts}}- <DButton- @action={{this.mergePosts}}- @icon="up-down"- @label="topic.merge_posts.action"- class="btn-primary"- />- {{/if}}+ {{#if this.canMergePosts}}+ <DButton+ @action={{this.mergePosts}}+ @icon="up-down"+ @label="topic.merge_posts.action"+ class="btn-primary"+ />+ {{/if}}- <p class="cancel">- <a href {{on "click" this.toggleMultiSelect}}>- {{i18n "topic.multi_select.cancel"}}- </a>- </p>+ <p class="cancel">+ <a href {{on "click" this.toggleMultiSelect}}>+ {{i18n "topic.multi_select.cancel"}}+ </a>+ </p>+ </div></template>}diff --git a/frontend/discourse/app/components/signup-cta.gjs b/frontend/discourse/app/components/signup-cta.gjsindex b3e2443fe8f..d784df6c136 100644--- a/frontend/discourse/app/components/signup-cta.gjs+++ b/frontend/discourse/app/components/signup-cta.gjs@@ -2,6 +2,7 @@import Component from "@ember/component";import { action } from "@ember/object";import { htmlSafe } from "@ember/template";+import { tagName } from "@ember-decorators/component";import { on } from "@ember-decorators/object";import DButton from "discourse/components/d-button";import replaceEmoji from "discourse/helpers/replace-emoji";@@ -9,6 +10,7 @@ import routeAction from "discourse/helpers/route-action";import discourseLater from "discourse/lib/later";import { i18n } from "discourse-i18n";+@tagName("")export default class SignupCta extends Component {@actionhideForSession() {@@ -31,7 +33,7 @@ export default class SignupCta extends Component {}<template>- <div class="signup-cta alert alert-info">+ <div class="signup-cta alert alert-info" ...attributes>{{#if this.session.hideSignupCta}}<h3>{{i18n "signup_cta.hidden_for_session"}}</h3>{{else}}diff --git a/frontend/discourse/app/components/slow-mode-info.gjs b/frontend/discourse/app/components/slow-mode-info.gjsindex e2d39b692e9..c2ebcece118 100644--- a/frontend/discourse/app/components/slow-mode-info.gjs+++ b/frontend/discourse/app/components/slow-mode-info.gjs@@ -1,6 +1,7 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { action } from "@ember/object";+import { tagName } from "@ember-decorators/component";import DButton from "discourse/components/d-button";import icon from "discourse/helpers/d-icon";import { durationTextFromSeconds } from "discourse/helpers/slow-mode";@@ -9,6 +10,7 @@ import discourseComputed from "discourse/lib/decorators";import Topic from "discourse/models/topic";import { i18n } from "discourse-i18n";+@tagName("")export default class SlowModeInfo extends Component {@discourseComputed("topic.slow_mode_seconds")durationText(seconds) {diff --git a/frontend/discourse/app/components/subcategories-with-featured-topics.gjs b/frontend/discourse/app/components/subcategories-with-featured-topics.gjsindex 749da3b2866..f95a944d4d4 100644--- a/frontend/discourse/app/components/subcategories-with-featured-topics.gjs+++ b/frontend/discourse/app/components/subcategories-with-featured-topics.gjs@@ -1,78 +1,82 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { htmlSafe } from "@ember/template";+import { tagName } from "@ember-decorators/component";import CategoryTitleLink from "discourse/components/category-title-link";import ParentCategoryRow from "discourse/components/parent-category-row";import PluginOutlet from "discourse/components/plugin-outlet";import lazyHash from "discourse/helpers/lazy-hash";import { i18n } from "discourse-i18n";+@tagName("")export default class SubcategoriesWithFeaturedTopics extends Component {<template>- {{#each this.categories as |category|}}- {{#if this.site.mobileView}}- <PluginOutlet- @name="mobile-subcategories-with-featured-topics-list"- @outletArgs={{lazyHash category=category}}- >- <div class="category-list subcategory-list with-topics">- <div class="parent-category">- <CategoryTitleLink @category={{category}} />- <span class="stat" title={{category.statTitle}}>{{htmlSafe- category.stat- }}</span>+ <div ...attributes>+ {{#each this.categories as |category|}}+ {{#if this.site.mobileView}}+ <PluginOutlet+ @name="mobile-subcategories-with-featured-topics-list"+ @outletArgs={{lazyHash category=category}}+ >+ <div class="category-list subcategory-list with-topics">+ <div class="parent-category">+ <CategoryTitleLink @category={{category}} />+ <span class="stat" title={{category.statTitle}}>{{htmlSafe+ category.stat+ }}</span>+ </div>+ <div class="subcategories">+ {{#each category.serializedSubcategories as |subCategory|}}+ <ParentCategoryRow+ @category={{subCategory}}+ @showTopics={{true}}+ />+ {{else}}+ {{! No subcategories... so just show the parent to avoid confusion }}+ <ParentCategoryRow+ @category={{category}}+ @showTopics={{true}}+ />+ {{/each}}+ </div></div>- <div class="subcategories">- {{#each category.serializedSubcategories as |subCategory|}}- <ParentCategoryRow- @category={{subCategory}}- @showTopics={{true}}- />- {{else}}- {{! No subcategories... so just show the parent to avoid confusion }}- <ParentCategoryRow- @category={{category}}- @showTopics={{true}}- />- {{/each}}- </div>- </div>- </PluginOutlet>- {{else}}- <PluginOutlet- @name="subcategories-with-featured-topics-list"- @outletArgs={{lazyHash category=category}}- >- <table class="category-list subcategory-list with-topics">- <thead>- <tr>- <th class="parent-category">- <CategoryTitleLink @category={{category}} />- <span class="stat" title={{category.statTitle}}>{{htmlSafe- category.stat- }}</span>- </th>- <th class="topics">{{i18n "categories.topics"}}</th>- <th class="latest">{{i18n "categories.latest"}}</th>- </tr>- </thead>- <tbody aria-labelledby="categories-only-category">- {{#each category.serializedSubcategories as |subCategory|}}- <ParentCategoryRow- @category={{subCategory}}- @showTopics={{true}}- />- {{else}}- {{! No subcategories... so just show the parent to avoid confusion }}- <ParentCategoryRow- @category={{category}}- @showTopics={{true}}- />- {{/each}}- </tbody>- </table>- </PluginOutlet>- {{/if}}- {{/each}}+ </PluginOutlet>+ {{else}}+ <PluginOutlet+ @name="subcategories-with-featured-topics-list"+ @outletArgs={{lazyHash category=category}}+ >+ <table class="category-list subcategory-list with-topics">+ <thead>+ <tr>+ <th class="parent-category">+ <CategoryTitleLink @category={{category}} />+ <span class="stat" title={{category.statTitle}}>{{htmlSafe+ category.stat+ }}</span>+ </th>+ <th class="topics">{{i18n "categories.topics"}}</th>+ <th class="latest">{{i18n "categories.latest"}}</th>+ </tr>+ </thead>+ <tbody aria-labelledby="categories-only-category">+ {{#each category.serializedSubcategories as |subCategory|}}+ <ParentCategoryRow+ @category={{subCategory}}+ @showTopics={{true}}+ />+ {{else}}+ {{! No subcategories... so just show the parent to avoid confusion }}+ <ParentCategoryRow+ @category={{category}}+ @showTopics={{true}}+ />+ {{/each}}+ </tbody>+ </table>+ </PluginOutlet>+ {{/if}}+ {{/each}}+ </div></template>}diff --git a/frontend/discourse/app/components/tag-list.gjs b/frontend/discourse/app/components/tag-list.gjsindex 2e1cbd8e6f9..ff76e82c6ef 100644--- a/frontend/discourse/app/components/tag-list.gjs+++ b/frontend/discourse/app/components/tag-list.gjs@@ -1,20 +1,16 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { sort } from "@ember/object/computed";-import { classNameBindings } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import CategoryTitleLink from "discourse/components/category-title-link";+import concatClass from "discourse/helpers/concat-class";import icon from "discourse/helpers/d-icon";import discourseTag from "discourse/helpers/discourse-tag";import discourseComputed from "discourse/lib/decorators";import Category from "discourse/models/category";import { i18n } from "discourse-i18n";-@classNameBindings(- ":tags-list",- ":tag-list",- "categoryClass",- "tagGroupNameClass"-)+@tagName("")export default class TagList extends Component {isPrivateMessage = false;@@ -47,35 +43,45 @@ export default class TagList extends Component {}<template>- {{#if this.title}}- <h3>{{this.title}}</h3>- {{/if}}- {{#if this.category}}- <CategoryTitleLink @category={{this.category}} />- {{/if}}- {{#if this.tagGroupName}}- <h3>{{this.tagGroupName}}</h3>- {{/if}}- {{#each this.sortedTags as |tag|}}- <div class="tag-box">- {{discourseTag- tag.name- description=tag.description- isPrivateMessage=this.isPrivateMessage- pmOnly=tag.pmOnly- tagsForUser=this.tagsForUser- }}- {{#if tag.pmOnly}}- {{icon "envelope"}}- {{/if}}- {{#if tag.totalCount}}- <span class="tag-count">- x- {{tag.totalCount}}- </span>- {{/if}}- </div>- {{/each}}- <div class="clearfix"></div>+ <div+ class={{concatClass+ "tags-list"+ "tag-list"+ this.categoryClass+ this.tagGroupNameClass+ }}+ ...attributes+ >+ {{#if this.title}}+ <h3>{{this.title}}</h3>+ {{/if}}+ {{#if this.category}}+ <CategoryTitleLink @category={{this.category}} />+ {{/if}}+ {{#if this.tagGroupName}}+ <h3>{{this.tagGroupName}}</h3>+ {{/if}}+ {{#each this.sortedTags as |tag|}}+ <div class="tag-box">+ {{discourseTag+ tag.name+ description=tag.description+ isPrivateMessage=this.isPrivateMessage+ pmOnly=tag.pmOnly+ tagsForUser=this.tagsForUser+ }}+ {{#if tag.pmOnly}}+ {{icon "envelope"}}+ {{/if}}+ {{#if tag.totalCount}}+ <span class="tag-count">+ x+ {{tag.totalCount}}+ </span>+ {{/if}}+ </div>+ {{/each}}+ <div class="clearfix"></div>+ </div></template>}diff --git a/frontend/discourse/app/components/tap-tile-grid.gjs b/frontend/discourse/app/components/tap-tile-grid.gjsindex cfdbf146972..9714719e044 100644--- a/frontend/discourse/app/components/tap-tile-grid.gjs+++ b/frontend/discourse/app/components/tap-tile-grid.gjs@@ -1,11 +1,15 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { hash } from "@ember/helper";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";-@classNames("tap-tile-grid")+@tagName("")export default class TapTileGrid extends Component {activeTile = null;- <template>{{yield (hash activeTile=this.activeTile)}}</template>+ <template>+ <div class="tap-tile-grid" ...attributes>+ {{yield (hash activeTile=this.activeTile)}}+ </div>+ </template>}diff --git a/frontend/discourse/app/components/tap-tile.gjs b/frontend/discourse/app/components/tap-tile.gjsindex baea23ecfee..ff85060106e 100644--- a/frontend/discourse/app/components/tap-tile.gjs+++ b/frontend/discourse/app/components/tap-tile.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { reads } from "@ember/object/computed";import {diff --git a/frontend/discourse/app/components/textarea.gjs b/frontend/discourse/app/components/textarea.gjsindex eb4f952c04a..62737fd473e 100644--- a/frontend/discourse/app/components/textarea.gjs+++ b/frontend/discourse/app/components/textarea.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import { MUTABLE_CELL } from "@ember/-internals/views";import Component from "@ember/component";import { get, set } from "@ember/object";diff --git a/frontend/discourse/app/components/time-input.gjs b/frontend/discourse/app/components/time-input.gjsindex 18864734d5a..e11d5bad4e3 100644--- a/frontend/discourse/app/components/time-input.gjs+++ b/frontend/discourse/app/components/time-input.gjs@@ -4,7 +4,7 @@ import { hash } from "@ember/helper";import { action, computed } from "@ember/object";import { htmlSafe } from "@ember/template";import { isPresent } from "@ember/utils";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import ComboBox from "discourse/select-kit/components/combo-box";function convertMinutes(num) {@@ -36,7 +36,7 @@ function convertMinutesToDurationString(n) {return output;}-@classNames("d-time-input")+@tagName("")export default class TimeInput extends Component {hours = null;minutes = null;@@ -189,17 +189,19 @@ export default class TimeInput extends Component {}<template>- <ComboBox- @value={{this.time}}- @content={{this.timeOptions}}- @onChange={{this.onChangeTime}}- @options={{hash- translatedNone="--:--"- allowAny=true- filterable=false- autoInsertNoneItem=false- translatedFilterPlaceholder="--:--"- }}- />+ <div class="d-time-input" ...attributes>+ <ComboBox+ @value={{this.time}}+ @content={{this.timeOptions}}+ @onChange={{this.onChangeTime}}+ @options={{hash+ translatedNone="--:--"+ allowAny=true+ filterable=false+ autoInsertNoneItem=false+ translatedFilterPlaceholder="--:--"+ }}+ />+ </div></template>}diff --git a/frontend/discourse/app/components/topic-category.gjs b/frontend/discourse/app/components/topic-category.gjsindex a86ec56a6a1..39e48dc10d1 100644--- a/frontend/discourse/app/components/topic-category.gjs+++ b/frontend/discourse/app/components/topic-category.gjs@@ -1,5 +1,6 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";+import { tagName } from "@ember-decorators/component";import PluginOutlet from "discourse/components/plugin-outlet";import boundCategoryLink from "discourse/helpers/bound-category-link";import discourseTags from "discourse/helpers/discourse-tags";@@ -7,32 +8,35 @@ import lazyHash from "discourse/helpers/lazy-hash";import topicFeaturedLink from "discourse/helpers/topic-featured-link";// Injections don't occur without a class+@tagName("")export default class TopicCategory extends Component {<template>- {{#unless this.topic.isPrivateMessage}}- {{boundCategoryLink- this.topic.category- ancestors=this.topic.category.predecessors- hideParent=true- }}- {{/unless}}- <div class="topic-header-extra">- {{#if this.siteSettings.tagging_enabled}}- <div class="list-tags">- {{discourseTags this.topic mode="list" tags=this.topic.tags}}- </div>- {{/if}}- {{#if this.siteSettings.topic_featured_link_enabled}}- {{topicFeaturedLink this.topic}}- {{/if}}- </div>+ <div ...attributes>+ {{#unless this.topic.isPrivateMessage}}+ {{boundCategoryLink+ this.topic.category+ ancestors=this.topic.category.predecessors+ hideParent=true+ }}+ {{/unless}}+ <div class="topic-header-extra">+ {{#if this.siteSettings.tagging_enabled}}+ <div class="list-tags">+ {{discourseTags this.topic mode="list" tags=this.topic.tags}}+ </div>+ {{/if}}+ {{#if this.siteSettings.topic_featured_link_enabled}}+ {{topicFeaturedLink this.topic}}+ {{/if}}+ </div>- <span>- <PluginOutlet- @name="topic-category"- @connectorTagName="div"- @outletArgs={{lazyHash topic=this.topic category=this.topic.category}}- />- </span>+ <span>+ <PluginOutlet+ @name="topic-category"+ @connectorTagName="div"+ @outletArgs={{lazyHash topic=this.topic category=this.topic.category}}+ />+ </span>+ </div></template>}diff --git a/frontend/discourse/app/components/topic-entrance.gjs b/frontend/discourse/app/components/topic-entrance.gjsindex 7411fa4dcd0..519584372b2 100644--- a/frontend/discourse/app/components/topic-entrance.gjs+++ b/frontend/discourse/app/components/topic-entrance.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { action } from "@ember/object";import { scheduleOnce } from "@ember/runloop";diff --git a/frontend/discourse/app/components/topic-footer-buttons.gjs b/frontend/discourse/app/components/topic-footer-buttons.gjsindex aa71a25b0dc..9e9c07db1b9 100644--- a/frontend/discourse/app/components/topic-footer-buttons.gjs+++ b/frontend/discourse/app/components/topic-footer-buttons.gjs@@ -5,7 +5,7 @@ import { computed } from "@ember/object";import { alias, or } from "@ember/object/computed";import { getOwner } from "@ember/owner";import { compare } from "@ember/utils";-import { attributeBindings } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import BookmarkMenu from "discourse/components/bookmark-menu";import DButton from "discourse/components/d-button";import DropdownMenu from "discourse/components/dropdown-menu";@@ -31,12 +31,8 @@ function bind(fn, context) {return fn.bind(context);}-@attributeBindings("role", "aria-label")+@tagName("")export default class TopicFooterButtons extends Component {- elementId = "topic-footer-buttons";- role = "region";- "aria-label" = i18n("topic.footer_buttons.region_label");-@alias("currentUser.can_send_private_messages") canSendPms;@alias("topic.details.can_invite_to") canInviteTo;@alias("currentUser.user_option.enable_defer") canDefer;@@ -116,188 +112,197 @@ export default class TopicFooterButtons extends Component {}<template>- <div class="topic-footer-main-buttons">- <div class="topic-footer-main-buttons__actions">- <TopicAdminMenu- @topic={{this.topic}}- @toggleMultiSelect={{this.toggleMultiSelect}}- @showTopicSlowModeUpdate={{this.showTopicSlowModeUpdate}}- @deleteTopic={{this.deleteTopic}}- @recoverTopic={{this.recoverTopic}}- @toggleFeaturedOnProfile={{this.toggleFeaturedOnProfile}}- @toggleClosed={{this.toggleClosed}}- @toggleArchived={{this.toggleArchived}}- @toggleVisibility={{this.toggleVisibility}}- @showTopicTimerModal={{this.showTopicTimerModal}}- @showFeatureTopic={{this.showFeatureTopic}}- @showChangeTimestamp={{this.showChangeTimestamp}}- @resetBumpDate={{this.resetBumpDate}}- @convertToPublicTopic={{this.convertToPublicTopic}}- @convertToPrivateMessage={{this.convertToPrivateMessage}}- @buttonClasses="topic-footer-button"- />+ <div+ role="region"+ aria-label={{i18n "topic.footer_buttons.region_label"}}+ id="topic-footer-buttons"+ ...attributes+ >+ <div class="topic-footer-main-buttons">+ <div class="topic-footer-main-buttons__actions">+ <TopicAdminMenu+ @topic={{this.topic}}+ @toggleMultiSelect={{this.toggleMultiSelect}}+ @showTopicSlowModeUpdate={{this.showTopicSlowModeUpdate}}+ @deleteTopic={{this.deleteTopic}}+ @recoverTopic={{this.recoverTopic}}+ @toggleFeaturedOnProfile={{this.toggleFeaturedOnProfile}}+ @toggleClosed={{this.toggleClosed}}+ @toggleArchived={{this.toggleArchived}}+ @toggleVisibility={{this.toggleVisibility}}+ @showTopicTimerModal={{this.showTopicTimerModal}}+ @showFeatureTopic={{this.showFeatureTopic}}+ @showChangeTimestamp={{this.showChangeTimestamp}}+ @resetBumpDate={{this.resetBumpDate}}+ @convertToPublicTopic={{this.convertToPublicTopic}}+ @convertToPrivateMessage={{this.convertToPrivateMessage}}+ @buttonClasses="topic-footer-button"+ />- {{#each this.inlineActionables key="id" as |actionable|}}- {{#if (eq actionable.type "inline-button")}}- {{#if (eq actionable.id "bookmark")}}- <BookmarkMenu- @showLabel={{this.showBookmarkLabel}}- @bookmarkManager={{this.topicBookmarkManager}}- @buttonClasses="btn-default topic-footer-button"- />+ {{#each this.inlineActionables key="id" as |actionable|}}+ {{#if (eq actionable.type "inline-button")}}+ {{#if (eq actionable.id "bookmark")}}+ <BookmarkMenu+ @showLabel={{this.showBookmarkLabel}}+ @bookmarkManager={{this.topicBookmarkManager}}+ @buttonClasses="btn-default topic-footer-button"+ />+ {{else}}+ <DButton+ @action={{actionable.action}}+ @icon={{actionable.icon}}+ @translatedLabel={{actionable.label}}+ @translatedTitle={{actionable.title}}+ @translatedAriaLabel={{actionable.ariaLabel}}+ @disabled={{actionable.disabled}}+ id={{concat "topic-footer-button-" actionable.id}}+ class={{concatClass+ "btn-default"+ "topic-footer-button"+ actionable.classNames+ }}+ />+ {{/if}}{{else}}+ <DropdownSelectBox+ @id={{concat "topic-footer-dropdown-" actionable.id}}+ @value={{actionable.value}}+ @content={{actionable.content}}+ @onChange={{bind actionable.action this}}+ @options={{hash+ icon=actionable.icon+ none=actionable.noneItem+ disabled=actionable.disabled+ }}+ class={{concatClass+ "topic-footer-dropdown"+ actionable.classNames+ }}+ />+ {{/if}}+ {{/each}}++ {{#if this.site.mobileView}}+ {{#if this.loneDropdownButton}}<DButton- @action={{actionable.action}}- @icon={{actionable.icon}}- @translatedLabel={{actionable.label}}- @translatedTitle={{actionable.title}}- @translatedAriaLabel={{actionable.ariaLabel}}- @disabled={{actionable.disabled}}- id={{concat "topic-footer-button-" actionable.id}}+ @action={{this.loneDropdownButton.action}}+ @icon={{this.loneDropdownButton.icon}}+ @translatedLabel={{this.loneDropdownButton.label}}+ @translatedTitle={{this.loneDropdownButton.title}}+ @translatedAriaLabel={{this.loneDropdownButton.ariaLabel}}+ @disabled={{this.loneDropdownButton.disabled}}+ id={{concat "topic-footer-button-" this.loneDropdownButton.id}}class={{concatClass"btn-default""topic-footer-button"- actionable.classNames+ this.loneDropdownButton.classNames}}/>+ {{else if (gt this.dropdownButtons.length 1)}}+ <DMenu+ @modalForMobile={{true}}+ @identifier="topic-footer-mobile-dropdown"+ class="topic-footer-button btn-default"+ >+ <:trigger>+ {{icon "ellipsis-vertical"}}+ </:trigger>+ <:content>+ <DropdownMenu as |dropdown|>+ {{#each this.dropdownButtons key="id" as |button|}}+ <dropdown.item>+ <DButton+ @action={{button.action}}+ @icon={{button.icon}}+ @translatedLabel={{button.label}}+ @translatedTitle={{button.title}}+ @translatedAriaLabel={{button.ariaLabel}}+ @disabled={{button.disabled}}+ id={{concat "topic-footer-button-" button.id}}+ class={{concatClass+ "btn-default"+ "topic-footer-button"+ button.classNames+ }}+ />+ </dropdown.item>+ {{/each}}+ </DropdownMenu>+ </:content>+ </DMenu>{{/if}}- {{else}}- <DropdownSelectBox- @id={{concat "topic-footer-dropdown-" actionable.id}}- @value={{actionable.value}}- @content={{actionable.content}}- @onChange={{bind actionable.action this}}- @options={{hash- icon=actionable.icon- none=actionable.noneItem- disabled=actionable.disabled- }}- class={{concatClass- "topic-footer-dropdown"- actionable.classNames- }}- />- {{/if}}- {{/each}}-- {{#if this.site.mobileView}}- {{#if this.loneDropdownButton}}- <DButton- @action={{this.loneDropdownButton.action}}- @icon={{this.loneDropdownButton.icon}}- @translatedLabel={{this.loneDropdownButton.label}}- @translatedTitle={{this.loneDropdownButton.title}}- @translatedAriaLabel={{this.loneDropdownButton.ariaLabel}}- @disabled={{this.loneDropdownButton.disabled}}- id={{concat "topic-footer-button-" this.loneDropdownButton.id}}- class={{concatClass- "btn-default"- "topic-footer-button"- this.loneDropdownButton.classNames- }}- />- {{else if (gt this.dropdownButtons.length 1)}}- <DMenu- @modalForMobile={{true}}- @identifier="topic-footer-mobile-dropdown"- class="topic-footer-button btn-default"- >- <:trigger>- {{icon "ellipsis-vertical"}}- </:trigger>- <:content>- <DropdownMenu as |dropdown|>- {{#each this.dropdownButtons key="id" as |button|}}- <dropdown.item>- <DButton- @action={{button.action}}- @icon={{button.icon}}- @translatedLabel={{button.label}}- @translatedTitle={{button.title}}- @translatedAriaLabel={{button.ariaLabel}}- @disabled={{button.disabled}}- id={{concat "topic-footer-button-" button.id}}- class={{concatClass- "btn-default"- "topic-footer-button"- button.classNames- }}- />- </dropdown.item>- {{/each}}- </DropdownMenu>- </:content>- </DMenu>- {{/if}}-- <PinnedButton- @pinned={{this.topic.pinned}}- @topic={{this.topic}}- @appendReason={{false}}- />- {{#if this.showNotificationsButton}}- <TopicNotificationsButton+ <PinnedButton+ @pinned={{this.topic.pinned}}@topic={{this.topic}}@appendReason={{false}}/>- {{/if}}- {{/if}}- </div>- <PluginOutlet- @name="topic-footer-main-buttons-before-create"- @outletArgs={{lazyHash topic=this.topic}}- @connectorTagName="span"- />+ {{#if this.showNotificationsButton}}+ <TopicNotificationsButton+ @topic={{this.topic}}+ @appendReason={{false}}+ />+ {{/if}}+ {{/if}}+ </div>- {{#if this.topic.details.can_create_post}}- <DButton- @icon="reply"- @action={{this.replyToPost}}- @label="topic.reply.title"- @title="topic.reply.help"- class="btn-primary create topic-footer-button"+ <PluginOutlet+ @name="topic-footer-main-buttons-before-create"+ @outletArgs={{lazyHash topic=this.topic}}+ @connectorTagName="span"/>- {{/if}}- <PluginOutlet- @name="after-topic-footer-main-buttons"- @outletArgs={{lazyHash topic=this.topic}}- @connectorTagName="span"- />- </div>+ {{#if this.topic.details.can_create_post}}+ <DButton+ @icon="reply"+ @action={{this.replyToPost}}+ @label="topic.reply.title"+ @title="topic.reply.help"+ class="btn-primary create topic-footer-button"+ />+ {{/if}}- {{#if this.site.desktopView}}- <PinnedButton- @pinned={{this.topic.pinned}}- @topic={{this.topic}}- @appendReason={{true}}- />+ <PluginOutlet+ @name="after-topic-footer-main-buttons"+ @outletArgs={{lazyHash topic=this.topic}}+ @connectorTagName="span"+ />+ </div>- {{#if this.showNotificationsButton}}- <TopicNotificationsButton+ {{#if this.site.desktopView}}+ <PinnedButton+ @pinned={{this.topic.pinned}}@topic={{this.topic}}- @expanded={{true}}- class="notifications-button-footer"+ @appendReason={{true}}/>- {{#if this.showNotificationUserTip}}- <UserTip- @id="topic_notification_levels"- @triggerSelector=".notifications-button-footer [data-identifier='notifications-tracking']"- @titleText={{i18n "user_tips.topic_notification_levels.title"}}- @contentText={{i18n "user_tips.topic_notification_levels.content"}}- @priority={{800}}+ {{#if this.showNotificationsButton}}+ <TopicNotificationsButton+ @topic={{this.topic}}+ @expanded={{true}}+ class="notifications-button-footer"/>++ {{#if this.showNotificationUserTip}}+ <UserTip+ @id="topic_notification_levels"+ @triggerSelector=".notifications-button-footer [data-identifier='notifications-tracking']"+ @titleText={{i18n "user_tips.topic_notification_levels.title"}}+ @contentText={{i18n+ "user_tips.topic_notification_levels.content"+ }}+ @priority={{800}}+ />+ {{/if}}{{/if}}{{/if}}- {{/if}}- <PluginOutlet- @name="after-topic-footer-buttons"- @outletArgs={{lazyHash topic=this.topic}}- @connectorTagName="span"- />+ <PluginOutlet+ @name="after-topic-footer-buttons"+ @outletArgs={{lazyHash topic=this.topic}}+ @connectorTagName="span"+ />+ </div></template>}diff --git a/frontend/discourse/app/components/topic-navigation.gjs b/frontend/discourse/app/components/topic-navigation.gjsindex 3acde3be9d8..66a7345ab3c 100644--- a/frontend/discourse/app/components/topic-navigation.gjs+++ b/frontend/discourse/app/components/topic-navigation.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import EmberObject from "@ember/object";import { next } from "@ember/runloop";diff --git a/frontend/discourse/app/components/topic-progress.gjs b/frontend/discourse/app/components/topic-progress.gjsindex c6e7a7e42d7..69c8148746e 100644--- a/frontend/discourse/app/components/topic-progress.gjs+++ b/frontend/discourse/app/components/topic-progress.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { action } from "@ember/object";import { alias } from "@ember/object/computed";diff --git a/frontend/discourse/app/components/topic-timer-info.gjs b/frontend/discourse/app/components/topic-timer-info.gjsindex 16dee910aa6..fa356f7d970 100644--- a/frontend/discourse/app/components/topic-timer-info.gjs+++ b/frontend/discourse/app/components/topic-timer-info.gjs@@ -2,7 +2,7 @@import Component from "@ember/component";import { cancel, next } from "@ember/runloop";import { htmlSafe } from "@ember/template";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import { on } from "@ember-decorators/object";import DButton from "discourse/components/d-button";import { DELETE_REPLIES_TYPE } from "discourse/components/modal/edit-topic-timer";@@ -13,7 +13,7 @@ import discourseLater from "discourse/lib/later";import Category from "discourse/models/category";import { i18n } from "discourse-i18n";-@classNames("topic-timer-info")+@tagName("")export default class TopicTimerInfo extends Component {clockIcon = htmlSafe(`${iconHTML("far-clock")}`);trashLabel = i18n("post.controls.remove_timer");@@ -164,31 +164,33 @@ export default class TopicTimerInfo extends Component {}<template>- {{#if this.showTopicTimer}}- <h3 class="topic-timer-heading">- <span title={{this.title}}>- {{this.clockIcon}}- {{this.notice}}- </span>- <div class="topic-timer-modify">- {{#if this.showEdit}}- <DButton- @title="post.controls.edit_timer"- @icon="pencil"- @action={{this.showTopicTimerModal}}- class="topic-timer-edit no-text"- />- {{/if}}- {{#if this.showTrashCan}}- <DButton- @title="post.controls.remove_timer"- @icon="trash-can"- @action={{this.removeTopicTimer}}- class="topic-timer-remove no-text"- />- {{/if}}- </div>- </h3>- {{/if}}+ <div class="topic-timer-info" ...attributes>+ {{#if this.showTopicTimer}}+ <h3 class="topic-timer-heading">+ <span title={{this.title}}>+ {{this.clockIcon}}+ {{this.notice}}+ </span>+ <div class="topic-timer-modify">+ {{#if this.showEdit}}+ <DButton+ @title="post.controls.edit_timer"+ @icon="pencil"+ @action={{this.showTopicTimerModal}}+ class="topic-timer-edit no-text"+ />+ {{/if}}+ {{#if this.showTrashCan}}+ <DButton+ @title="post.controls.remove_timer"+ @icon="trash-can"+ @action={{this.removeTopicTimer}}+ class="topic-timer-remove no-text"+ />+ {{/if}}+ </div>+ </h3>+ {{/if}}+ </div></template>}diff --git a/frontend/discourse/app/components/user-fields/base.js b/frontend/discourse/app/components/user-fields/base.jsindex 327fd064cbd..a27153fac4f 100644--- a/frontend/discourse/app/components/user-fields/base.js+++ b/frontend/discourse/app/components/user-fields/base.js@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { classNameBindings } from "@ember-decorators/component";import discourseComputed from "discourse/lib/decorators";diff --git a/frontend/discourse/app/components/user-info.gjs b/frontend/discourse/app/components/user-info.gjsindex 28493a62230..c30734d7ad6 100644--- a/frontend/discourse/app/components/user-info.gjs+++ b/frontend/discourse/app/components/user-info.gjs@@ -1,10 +1,7 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { alias } from "@ember/object/computed";-import {- attributeBindings,- classNameBindings,-} from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import PluginOutlet from "discourse/components/plugin-outlet";import UserAvatarFlair from "discourse/components/user-avatar-flair";import UserStatusMessage from "discourse/components/user-status-message";@@ -17,8 +14,7 @@ import { prioritizeNameInUx } from "discourse/lib/settings";import { userPath } from "discourse/lib/url";import { and } from "discourse/truth-helpers";-@classNameBindings(":user-info", "size")-@attributeBindings("dataUsername:data-username")+@tagName("")export default class UserInfo extends Component {size = "small";includeLink = true;@@ -47,75 +43,81 @@ export default class UserInfo extends Component {}<template>- {{#if this.includeAvatar}}- <div class="user-image">- <div class="user-image-inner">- <a- href={{this.userPath}}- data-user-card={{@user.username}}- aria-hidden="true"- >{{avatar @user imageSize="large"}}</a>- <UserAvatarFlair @user={{@user}} />- </div>- </div>- {{/if}}- <div class="user-detail">- <div- class={{concatClass- "name-line"- (if @showStatus "--show-status")- (if this.nameFirst "--name-first")- }}- >- <span class="username-wrapper">- {{#if this.includeLink}}+ <div+ data-username={{this.dataUsername}}+ class={{concatClass "user-info" this.size}}+ ...attributes+ >+ {{#if this.includeAvatar}}+ <div class="user-image">+ <div class="user-image-inner"><ahref={{this.userPath}}data-user-card={{@user.username}}- role={{if @headingLevel "heading"}}- aria-level={{@headingLevel}}- >- <span class="username">{{formatUsername @user.username}}</span>- </a>- {{else}}- <span class="username">{{formatUsername @user.username}}</span>- {{/if}}- {{#if (and @showStatus @user.status)}}- <UserStatusMessage- @status={{@user.status}}- @showDescription={{@showStatusDescription}}- />- {{/if}}- </span>- {{#if @user.name}}- <span class="name-wrapper">+ aria-hidden="true"+ >{{avatar @user imageSize="large"}}</a>+ <UserAvatarFlair @user={{@user}} />+ </div>+ </div>+ {{/if}}+ <div class="user-detail">+ <div+ class={{concatClass+ "name-line"+ (if @showStatus "--show-status")+ (if this.nameFirst "--name-first")+ }}+ >+ <span class="username-wrapper">{{#if this.includeLink}}- <a href={{this.userPath}} data-user-card={{@user.username}}>- <span class="name">{{@user.name}}</span>+ <a+ href={{this.userPath}}+ data-user-card={{@user.username}}+ role={{if @headingLevel "heading"}}+ aria-level={{@headingLevel}}+ >+ <span class="username">{{formatUsername @user.username}}</span></a>{{else}}- <span class="name">{{@user.name}}</span>+ <span class="username">{{formatUsername @user.username}}</span>+ {{/if}}+ {{#if (and @showStatus @user.status)}}+ <UserStatusMessage+ @status={{@user.status}}+ @showDescription={{@showStatusDescription}}+ />{{/if}}</span>+ {{#if @user.name}}+ <span class="name-wrapper">+ {{#if this.includeLink}}+ <a href={{this.userPath}} data-user-card={{@user.username}}>+ <span class="name">{{@user.name}}</span>+ </a>+ {{else}}+ <span class="name">{{@user.name}}</span>+ {{/if}}+ </span>+ {{/if}}+ <PluginOutlet+ @name="after-user-name"+ @connectorTagName="span"+ @outletArgs={{lazyHash user=this.user}}+ />+ </div>+ <div class="title">{{@user.title}}</div>+ {{#if (has-block)}}+ <div class="details">+ {{yield}}+ </div>{{/if}}- <PluginOutlet- @name="after-user-name"- @connectorTagName="span"- @outletArgs={{lazyHash user=this.user}}- /></div>- <div class="title">{{@user.title}}</div>- {{#if (has-block)}}- <div class="details">- {{yield}}- </div>- {{/if}}- </div>- <PluginOutlet- @name="after-user-info"- @connectorTagName="div"- @outletArgs={{lazyHash user=this.user}}- />+ <PluginOutlet+ @name="after-user-info"+ @connectorTagName="div"+ @outletArgs={{lazyHash user=this.user}}+ />+ </div></template>}diff --git a/frontend/discourse/app/components/user-notification-schedule.gjs b/frontend/discourse/app/components/user-notification-schedule.gjsindex 007c9007c36..207b49edc22 100644--- a/frontend/discourse/app/components/user-notification-schedule.gjs+++ b/frontend/discourse/app/components/user-notification-schedule.gjs@@ -1,6 +1,7 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import EmberObject, { action } from "@ember/object";+import { tagName } from "@ember-decorators/component";import PreferenceCheckbox from "discourse/components/preference-checkbox";import UserNotificationScheduleDay from "discourse/components/user-notification-schedule-day";import discourseComputed from "discourse/lib/decorators";@@ -78,6 +79,7 @@ class Day extends EmberObject {}}+@tagName("")export default class UserNotificationSchedule extends Component {days = null;@@ -142,6 +144,7 @@ export default class UserNotificationSchedule extends Component {<divclass="control-group notification-schedule"data-setting-name="user-notification-schedule"+ ...attributes><label class="control-label">{{i18n"user.notification_schedule.title"diff --git a/frontend/discourse/app/components/user-profile-avatar.gjs b/frontend/discourse/app/components/user-profile-avatar.gjsindex 969f8151b28..17620c33556 100644--- a/frontend/discourse/app/components/user-profile-avatar.gjs+++ b/frontend/discourse/app/components/user-profile-avatar.gjs@@ -1,10 +1,12 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";+import { tagName } from "@ember-decorators/component";import PluginOutlet from "discourse/components/plugin-outlet";import UserAvatarFlair from "discourse/components/user-avatar-flair";import boundAvatar from "discourse/helpers/bound-avatar";import lazyHash from "discourse/helpers/lazy-hash";+@tagName("")export default class UserProfileAvatar extends Component {<template><PluginOutletdiff --git a/frontend/discourse/app/components/user-summary-topic.gjs b/frontend/discourse/app/components/user-summary-topic.gjsindex 3c38b0d0e04..32a1de91c35 100644--- a/frontend/discourse/app/components/user-summary-topic.gjs+++ b/frontend/discourse/app/components/user-summary-topic.gjs@@ -8,29 +8,31 @@ import formatDate from "discourse/helpers/format-date";import lazyHash from "discourse/helpers/lazy-hash";import number from "discourse/helpers/number";-@tagName("li")+@tagName("")export default class UserSummaryTopic extends Component {<template>- <PluginOutlet- @name="user-summary-topic-wrapper"- @outletArgs={{lazyHash- topic=@topic- url=@url- createdAt=@createdAt- likes=@likes- }}- >- <span class="topic-info">- {{formatDate @createdAt format="tiny" noTitle="true"}}- {{#if @likes}}- ·- {{icon "heart"}} <span class="like-count">{{number- @likes- }}</span>- {{/if}}- </span>- <br />- <a href={{@url}}>{{htmlSafe @topic.fancyTitle}}</a>- </PluginOutlet>+ <li ...attributes>+ <PluginOutlet+ @name="user-summary-topic-wrapper"+ @outletArgs={{lazyHash+ topic=@topic+ url=@url+ createdAt=@createdAt+ likes=@likes+ }}+ >+ <span class="topic-info">+ {{formatDate @createdAt format="tiny" noTitle="true"}}+ {{#if @likes}}+ ·+ {{icon "heart"}} <span class="like-count">{{number+ @likes+ }}</span>+ {{/if}}+ </span>+ <br />+ <a href={{@url}}>{{htmlSafe @topic.fancyTitle}}</a>+ </PluginOutlet>+ </li></template>}diff --git a/frontend/discourse/app/components/user-summary-user.gjs b/frontend/discourse/app/components/user-summary-user.gjsindex 1dc7db6b8aa..b6b591a3724 100644--- a/frontend/discourse/app/components/user-summary-user.gjs+++ b/frontend/discourse/app/components/user-summary-user.gjs@@ -5,12 +5,14 @@ import UserInfo from "discourse/components/user-info";import icon from "discourse/helpers/d-icon";import number from "discourse/helpers/number";-@tagName("li")+@tagName("")export default class UserSummaryUser extends Component {<template>- <UserInfo @user={{@user}}>- {{icon @icon}}- <span class={{@countClass}}>{{number @user.count}}</span>- </UserInfo>+ <li ...attributes>+ <UserInfo @user={{@user}}>+ {{icon @icon}}+ <span class={{@countClass}}>{{number @user.count}}</span>+ </UserInfo>+ </li></template>}diff --git a/frontend/discourse/app/components/user-summary-users-list.gjs b/frontend/discourse/app/components/user-summary-users-list.gjsindex 2f219caa339..6ebf181cd46 100644--- a/frontend/discourse/app/components/user-summary-users-list.gjs+++ b/frontend/discourse/app/components/user-summary-users-list.gjs@@ -1,18 +1,22 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { concat } from "@ember/helper";+import { tagName } from "@ember-decorators/component";import { i18n } from "discourse-i18n";+@tagName("")export default class UserSummaryUsersList extends Component {<template>- {{#if this.users}}- <ul>- {{#each this.users as |user|}}- {{yield user}}- {{/each}}- </ul>- {{else}}- <p>{{i18n (concat "user.summary." this.none)}}</p>- {{/if}}+ <div ...attributes>+ {{#if this.users}}+ <ul>+ {{#each this.users as |user|}}+ {{yield user}}+ {{/each}}+ </ul>+ {{else}}+ <p>{{i18n (concat "user.summary." this.none)}}</p>+ {{/if}}+ </div></template>}diff --git a/frontend/discourse/app/static/wizard/components/fields/text.gjs b/frontend/discourse/app/static/wizard/components/fields/text.gjsindex 6df62034ab7..04bd93ad92d 100644--- a/frontend/discourse/app/static/wizard/components/fields/text.gjs+++ b/frontend/discourse/app/static/wizard/components/fields/text.gjs@@ -1,14 +1,18 @@/* eslint-disable ember/no-classic-components */import Component, { Input } from "@ember/component";+import { tagName } from "@ember-decorators/component";+@tagName("")export default class Text extends Component {<template>- <Input- id={{this.field.id}}- @value={{this.field.value}}- class="wizard-container__text-input"- placeholder={{this.field.placeholder}}- tabindex="9"- />+ <div ...attributes>+ <Input+ id={{this.field.id}}+ @value={{this.field.value}}+ class="wizard-container__text-input"+ placeholder={{this.field.placeholder}}+ tabindex="9"+ />+ </div></template>}diff --git a/frontend/discourse/app/templates/group.gjs b/frontend/discourse/app/templates/group.gjsindex a5967b32854..19250836272 100644--- a/frontend/discourse/app/templates/group.gjs+++ b/frontend/discourse/app/templates/group.gjs@@ -68,7 +68,6 @@ export default <template><div class="group-details-button"><GroupMembershipButton- @tagName=""@model={{@controller.model}}@showLogin={{routeAction "showLogin"}}/>diff --git a/frontend/discourse/app/templates/topic.gjs b/frontend/discourse/app/templates/topic.gjsindex c43612960aa..be9ccdc7694 100644--- a/frontend/discourse/app/templates/topic.gjs+++ b/frontend/discourse/app/templates/topic.gjs@@ -562,7 +562,6 @@ export default <template><SlowModeInfo@topic={{@controller.model}}@user={{@controller.currentUser}}- @tagName=""/><TopicTimerInfodiff --git a/frontend/discourse/app/templates/user.gjs b/frontend/discourse/app/templates/user.gjsindex aecc84f0dcf..9ee68015b0d 100644--- a/frontend/discourse/app/templates/user.gjs+++ b/frontend/discourse/app/templates/user.gjs@@ -179,10 +179,9 @@ export default <template>@name="before-user-profile-avatar"@outletArgs={{lazyHash [email protected]}}/>- <UserProfileAvatar @user={{@controller.model}} @tagName="" />+ <UserProfileAvatar @user={{@controller.model}} /><div class="primary-textual"><div class="user-profile-names">-<divclass="{{if @controller.nameFirst 'full-name' 'username'}}user-profile-names__primary"diff --git a/frontend/discourse/select-kit/components/select-kit.js b/frontend/discourse/select-kit/components/select-kit.jsindex ed36d68fb4c..456b9ff31f2 100644--- a/frontend/discourse/select-kit/components/select-kit.js+++ b/frontend/discourse/select-kit/components/select-kit.js@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import EmberObject, { computed, get } from "@ember/object";import { guidFor } from "@ember/object/internals";diff --git a/frontend/discourse/select-kit/components/select-kit/select-kit-body.gjs b/frontend/discourse/select-kit/components/select-kit/select-kit-body.gjsindex 4a8c3a3e0b9..3bf1f216c0f 100644--- a/frontend/discourse/select-kit/components/select-kit/select-kit-body.gjs+++ b/frontend/discourse/select-kit/components/select-kit/select-kit-body.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { computed } from "@ember/object";import { next } from "@ember/runloop";diff --git a/frontend/discourse/select-kit/components/select-kit/select-kit-filter.gjs b/frontend/discourse/select-kit/components/select-kit/select-kit-filter.gjsindex e87d8d51c91..99776556e7e 100644--- a/frontend/discourse/select-kit/components/select-kit/select-kit-filter.gjs+++ b/frontend/discourse/select-kit/components/select-kit/select-kit-filter.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component, { Input } from "@ember/component";import { on } from "@ember/modifier";import { action, computed } from "@ember/object";diff --git a/frontend/discourse/select-kit/components/select-kit/select-kit-header.js b/frontend/discourse/select-kit/components/select-kit/select-kit-header.jsindex cd67b052c87..ed37e6c34e2 100644--- a/frontend/discourse/select-kit/components/select-kit/select-kit-header.js+++ b/frontend/discourse/select-kit/components/select-kit/select-kit-header.js@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { computed } from "@ember/object";import {diff --git a/frontend/discourse/select-kit/components/select-kit/select-kit-row.gjs b/frontend/discourse/select-kit/components/select-kit/select-kit-row.gjsindex faa85539c52..cd2be6c7ee7 100644--- a/frontend/discourse/select-kit/components/select-kit/select-kit-row.gjs+++ b/frontend/discourse/select-kit/components/select-kit/select-kit-row.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { action, computed } from "@ember/object";import { reads } from "@ember/object/computed";diff --git a/frontend/discourse/tests/integration/components/emoji-uploader-test.gjs b/frontend/discourse/tests/integration/components/emoji-uploader-test.gjsindex 00a44c1d2b9..723c9adb43d 100644--- a/frontend/discourse/tests/integration/components/emoji-uploader-test.gjs+++ b/frontend/discourse/tests/integration/components/emoji-uploader-test.gjs@@ -41,7 +41,6 @@ module("Integration | Component | emoji-uploader", function (hooks) {await render(<template><EmojiUploader- @id="emoji-uploader"@emojiGroups={{this.emojiGroups}}@done={{this.doneUpload}}/>@@ -67,7 +66,6 @@ module("Integration | Component | emoji-uploader", function (hooks) {await render(<template><EmojiUploader- @id="emoji-uploader"@emojiGroups={{this.emojiGroups}}@done={{this.doneUpload}}/>@@ -100,7 +98,6 @@ module("Integration | Component | emoji-uploader", function (hooks) {await render(<template><EmojiUploader- @id="emoji-uploader"@emojiGroups={{this.emojiGroups}}@done={{this.doneUpload}}/>@@ -137,7 +134,6 @@ module("Integration | Component | emoji-uploader", function (hooks) {await render(<template><EmojiUploader- @id="emoji-uploader"@emojiGroups={{this.emojiGroups}}@createdBy={{this.createdBy}}@done={{this.doneUpload}}diff --git a/plugins/chat/assets/javascripts/discourse/components/channel-name/index.gjs b/plugins/chat/assets/javascripts/discourse/components/channel-name/index.gjsindex 6954760dd30..85eb8eb1dd5 100644--- a/plugins/chat/assets/javascripts/discourse/components/channel-name/index.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/channel-name/index.gjs@@ -81,8 +81,6 @@ export default class ChatChannelName extends Component {<PluginOutlet@name="after-chat-channel-username"@outletArgs={{if this.showPluginOutlet (lazyHash user=@user)}}- @tagName=""- @connectorTagName=""/>{{#if (has-block)}}diff --git a/plugins/chat/assets/javascripts/discourse/components/channels-list-direct.gjs b/plugins/chat/assets/javascripts/discourse/components/channels-list-direct.gjsindex 29f10d1fca0..85fe430b786 100644--- a/plugins/chat/assets/javascripts/discourse/components/channels-list-direct.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/channels-list-direct.gjs@@ -137,7 +137,6 @@ export default class ChannelsListDirect extends Component {<PluginOutlet@name="below-direct-chat-channels"- @tagName=""@outletArgs={{lazyHash inSidebar=this.inSidebar}}/></template>diff --git a/plugins/chat/assets/javascripts/discourse/components/channels-list-public.gjs b/plugins/chat/assets/javascripts/discourse/components/channels-list-public.gjsindex b5c7d0ec246..ff7929410eb 100644--- a/plugins/chat/assets/javascripts/discourse/components/channels-list-public.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/channels-list-public.gjs@@ -125,7 +125,6 @@ export default class ChannelsListPublic extends Component {<PluginOutlet@name="below-public-chat-channels"- @tagName=""@outletArgs={{lazyHash inSidebar=this.inSidebar}}/></template>diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-composer-uploads.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-composer-uploads.gjsindex 3e046fb1cbe..590f955331f 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat-composer-uploads.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat-composer-uploads.gjs@@ -4,7 +4,7 @@ import { fn } from "@ember/helper";import { action } from "@ember/object";import { getOwner } from "@ember/owner";import { service } from "@ember/service";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import PickFilesButton from "discourse/components/pick-files-button";import { removeValueFromArray } from "discourse/lib/array-tools";import { bind } from "discourse/lib/decorators";@@ -15,7 +15,7 @@ import UppyMediaOptimization from "discourse/lib/uppy-media-optimization-plugin"import { clipboardHelpers } from "discourse/lib/utilities";import ChatComposerUpload from "discourse/plugins/chat/discourse/components/chat-composer-upload";-@classNames("chat-composer-uploads")+@tagName("")export default class ChatComposerUploads extends Component {@service capabilities;@service mediaOptimizationWorker;@@ -147,30 +147,32 @@ export default class ChatComposerUploads extends Component {}<template>- {{#if this.showUploadsContainer}}- <div class="chat-composer-uploads-container">- {{#each this.uploads as |upload|}}- <ChatComposerUpload- @upload={{upload}}- @isDone={{true}}- @onCancel={{fn this.removeUpload upload}}- />- {{/each}}-- {{#each this.inProgressUploads as |upload|}}- <ChatComposerUpload- @upload={{upload}}- @onCancel={{fn this.cancelUploading upload}}- />- {{/each}}- </div>- {{/if}}-- <PickFilesButton- @allowMultiple={{true}}- @fileInputId={{this.fileUploadElementId}}- @fileInputClass="hidden-upload-field"- @registerFileInput={{this.uppyUpload.setup}}- />+ <div class="chat-composer-uploads" ...attributes>+ {{#if this.showUploadsContainer}}+ <div class="chat-composer-uploads-container">+ {{#each this.uploads as |upload|}}+ <ChatComposerUpload+ @upload={{upload}}+ @isDone={{true}}+ @onCancel={{fn this.removeUpload upload}}+ />+ {{/each}}++ {{#each this.inProgressUploads as |upload|}}+ <ChatComposerUpload+ @upload={{upload}}+ @onCancel={{fn this.cancelUploading upload}}+ />+ {{/each}}+ </div>+ {{/if}}++ <PickFilesButton+ @allowMultiple={{true}}+ @fileInputId={{this.fileUploadElementId}}+ @fileInputClass="hidden-upload-field"+ @registerFileInput={{this.uppyUpload.setup}}+ />+ </div></template>}diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-message/blocks/elements/button.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-message/blocks/elements/button.gjsindex cf2a8bb4895..8a4535a5e1c 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat-message/blocks/elements/button.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat-message/blocks/elements/button.gjs@@ -21,10 +21,10 @@ export default class Button extends Component {<template><DButton- @id={{@definition.action_id}}@isLoading={{this.interacting}}@translatedLabel={{replaceEmoji @definition.text.text}}@action={{this.createInteraction}}+ id={{@definition.action_id}}class={{concatClass"block__button"(if @definition.style (concat "btn-" @definition.style))diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-to-topic-selector.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-to-topic-selector.gjsindex 35f8f73d0b0..bcde067db88 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat-to-topic-selector.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat-to-topic-selector.gjs@@ -3,6 +3,7 @@ import Component from "@ember/component";import { fn } from "@ember/helper";import { alias, equal } from "@ember/object/computed";import { htmlSafe } from "@ember/template";+import { tagName } from "@ember-decorators/component";import ChooseTopic from "discourse/components/choose-topic";import RadioButton from "discourse/components/radio-button";import TextField from "discourse/components/text-field";@@ -16,6 +17,7 @@ export const NEW_TOPIC_SELECTION = "new_topic";export const EXISTING_TOPIC_SELECTION = "existing_topic";export const NEW_MESSAGE_SELECTION = "new_message";+@tagName("")export default class ChatToTopicSelector extends Component {newTopicSelection = NEW_TOPIC_SELECTION;existingTopicSelection = EXISTING_TOPIC_SELECTION;@@ -51,7 +53,7 @@ export default class ChatToTopicSelector extends Component {}<template>- <div class="chat-to-topic-selector">+ <div class="chat-to-topic-selector" ...attributes><div class="radios"><label class="radio-label" for="move-to-new-topic"><RadioButtondiff --git a/plugins/chat/assets/javascripts/discourse/components/reviewable-chat-message.gjs b/plugins/chat/assets/javascripts/discourse/components/reviewable-chat-message.gjsindex 31e1c84b325..dfc8206f5ef 100644--- a/plugins/chat/assets/javascripts/discourse/components/reviewable-chat-message.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/reviewable-chat-message.gjs@@ -41,7 +41,6 @@ export default class ReviewableChatMessage extends Component {<ReviewablePostHeader@reviewable={{@reviewable}}@createdBy={{@reviewable.target_created_by}}- @tagName=""/><div class="post-body">diff --git a/plugins/chat/assets/javascripts/discourse/components/reviewable-refresh/chat-message.gjs b/plugins/chat/assets/javascripts/discourse/components/reviewable-refresh/chat-message.gjsindex 104ec9cb6d1..02298ae1ddf 100644--- a/plugins/chat/assets/javascripts/discourse/components/reviewable-refresh/chat-message.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/reviewable-refresh/chat-message.gjs@@ -44,7 +44,7 @@ export default class ReviewableRefreshChatMessage extends Component {<ChannelTitle @channel={{this.channel}} /></LinkTo>{{else}}- <ReviewableTopicLink @reviewable={{@reviewable}} @tagName="" />+ <ReviewableTopicLink @reviewable={{@reviewable}} />{{/if}}</div>diff --git a/plugins/discourse-adplugin/admin/assets/javascripts/admin/components/house-ads-list-setting.gjs b/plugins/discourse-adplugin/admin/assets/javascripts/admin/components/house-ads-list-setting.gjsindex ce79266e3df..f34d75207a8 100644--- a/plugins/discourse-adplugin/admin/assets/javascripts/admin/components/house-ads-list-setting.gjs+++ b/plugins/discourse-adplugin/admin/assets/javascripts/admin/components/house-ads-list-setting.gjs@@ -1,12 +1,12 @@import { action } from "@ember/object";import { mapBy } from "@ember/object/computed";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import DButton from "discourse/components/d-button";import { makeArray } from "discourse/lib/helpers";import HouseAdsChooser from "./house-ads-chooser";import HouseAdsSetting from "./house-ads-setting";-@classNames("house-ads-setting house-ads-list-setting")+@tagName("")export default class HouseAdsListSetting extends HouseAdsSetting {@mapBy("allAds", "name") adNames;@@ -17,18 +17,20 @@ export default class HouseAdsListSetting extends HouseAdsSetting {}<template>- <label for={{this.name}}>{{this.title}}</label>- <HouseAdsChooser- @settingValue={{this.adValue}}- @choices={{this.adNames}}- @onChange={{this.changeAdValue}}- />- <div class="setting-controls">- {{#if this.changed}}- <DButton class="ok" @action={{this.save}} @icon="check" />- <DButton class="cancel" @action={{this.cancel}} @icon="xmark" />- {{/if}}+ <div class="house-ads-setting house-ads-list-setting" ...attributes>+ <label for={{this.name}}>{{this.title}}</label>+ <HouseAdsChooser+ @settingValue={{this.adValue}}+ @choices={{this.adNames}}+ @onChange={{this.changeAdValue}}+ />+ <div class="setting-controls">+ {{#if this.changed}}+ <DButton class="ok" @action={{this.save}} @icon="check" />+ <DButton class="cancel" @action={{this.cancel}} @icon="xmark" />+ {{/if}}+ </div>+ <p class="help">{{this.help}}</p></div>- <p class="help">{{this.help}}</p></template>}diff --git a/plugins/discourse-adplugin/admin/assets/javascripts/admin/components/house-ads-setting.gjs b/plugins/discourse-adplugin/admin/assets/javascripts/admin/components/house-ads-setting.gjsindex 34e33bf9b10..0645a8a46b5 100644--- a/plugins/discourse-adplugin/admin/assets/javascripts/admin/components/house-ads-setting.gjs+++ b/plugins/discourse-adplugin/admin/assets/javascripts/admin/components/house-ads-setting.gjs@@ -1,7 +1,7 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { action } from "@ember/object";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import DButton from "discourse/components/d-button";import TextField from "discourse/components/text-field";import { ajax } from "discourse/lib/ajax";@@ -9,7 +9,7 @@ import { popupAjaxError } from "discourse/lib/ajax-error";import { i18n as computedI18n, propertyNotEqual } from "discourse/lib/computed";import { i18n } from "discourse-i18n";-@classNames("house-ads-setting")+@tagName("")export default class HouseAdsSetting extends Component {adValue = "";saving = false;@@ -65,14 +65,16 @@ export default class HouseAdsSetting extends Component {}<template>- <label for={{this.name}}>{{this.title}}</label>- <TextField @value={{this.adValue}} @classNames="house-ads-text-input" />- <div class="setting-controls">- {{#if this.changed}}- <DButton class="ok" @action={{this.save}} @icon="check" />- <DButton class="cancel" @action={{this.cancel}} @icon="xmark" />- {{/if}}+ <div class="house-ads-setting" ...attributes>+ <label for={{this.name}}>{{this.title}}</label>+ <TextField @value={{this.adValue}} @classNames="house-ads-text-input" />+ <div class="setting-controls">+ {{#if this.changed}}+ <DButton class="ok" @action={{this.save}} @icon="check" />+ <DButton class="cancel" @action={{this.cancel}} @icon="xmark" />+ {{/if}}+ </div>+ <p class="help">{{this.help}}</p></div>- <p class="help">{{this.help}}</p></template>}diff --git a/plugins/discourse-adplugin/assets/javascripts/discourse/components/ad-component.js b/plugins/discourse-adplugin/assets/javascripts/discourse/components/ad-component.jsindex 27203653a66..0d8da5a717e 100644--- a/plugins/discourse-adplugin/assets/javascripts/discourse/components/ad-component.js+++ b/plugins/discourse-adplugin/assets/javascripts/discourse/components/ad-component.js@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { alias, or } from "@ember/object/computed";import { service } from "@ember/service";diff --git a/plugins/discourse-adplugin/assets/javascripts/discourse/components/amazon-product-links.gjs b/plugins/discourse-adplugin/assets/javascripts/discourse/components/amazon-product-links.gjsindex 4f15c095e11..c51d7affbcc 100644--- a/plugins/discourse-adplugin/assets/javascripts/discourse/components/amazon-product-links.gjs+++ b/plugins/discourse-adplugin/assets/javascripts/discourse/components/amazon-product-links.gjs@@ -1,11 +1,11 @@import { and } from "@ember/object/computed";import { htmlSafe } from "@ember/template";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import discourseComputed from "discourse/lib/decorators";import { i18n } from "discourse-i18n";import AdComponent from "./ad-component";-@classNames("amazon-product-links")+@tagName("")export default class AmazonProductLinks extends AdComponent {@and("showAmazonAds", "showToGroups", "showAfterPost", "showOnCurrentPage")showAd;@@ -199,39 +199,41 @@ export default class AmazonProductLinks extends AdComponent {}<template>- {{#if this.showAd}}- {{#if this.site.mobileView}}- <div- class="amazon-product-links-label"- style={{this.adTitleStyleMobile}}- ><h2>{{i18n "adplugin.advertisement_label"}}</h2></div>- <iframe- style={{this.adWrapperStyleMobile}}- marginwidth="0"- marginheight="0"- scrolling="no"- frameborder="0"- src={{this.userInputMobile}}- title={{i18n "adplugin.advertisement_label"}}- >- </iframe>- {{else}}- <div class="amazon-product-links-label"><h2>{{i18n- "adplugin.advertisement_label"- }}</h2></div>- <div class="container" align="center">+ <div class="amazon-product-links" ...attributes>+ {{#if this.showAd}}+ {{#if this.site.mobileView}}+ <div+ class="amazon-product-links-label"+ style={{this.adTitleStyleMobile}}+ ><h2>{{i18n "adplugin.advertisement_label"}}</h2></div><iframe- style={{this.adWrapperStyle}}+ style={{this.adWrapperStyleMobile}}marginwidth="0"marginheight="0"scrolling="no"frameborder="0"- src={{this.userInput}}+ src={{this.userInputMobile}}title={{i18n "adplugin.advertisement_label"}}></iframe>- </div>+ {{else}}+ <div class="amazon-product-links-label"><h2>{{i18n+ "adplugin.advertisement_label"+ }}</h2></div>+ <div class="container" align="center">+ <iframe+ style={{this.adWrapperStyle}}+ marginwidth="0"+ marginheight="0"+ scrolling="no"+ frameborder="0"+ src={{this.userInput}}+ title={{i18n "adplugin.advertisement_label"}}+ >+ </iframe>+ </div>+ {{/if}}{{/if}}- {{/if}}+ </div></template>}diff --git a/plugins/discourse-adplugin/assets/javascripts/discourse/components/google-adsense.gjs b/plugins/discourse-adplugin/assets/javascripts/discourse/components/google-adsense.gjsindex 704cec78cbd..3283b63e746 100644--- a/plugins/discourse-adplugin/assets/javascripts/discourse/components/google-adsense.gjs+++ b/plugins/discourse-adplugin/assets/javascripts/discourse/components/google-adsense.gjs@@ -1,7 +1,8 @@import { scheduleOnce } from "@ember/runloop";import { htmlSafe } from "@ember/template";-import { classNameBindings } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import RSVP from "rsvp";+import concatClass from "discourse/helpers/concat-class";import discourseComputed from "discourse/lib/decorators";import { isTesting } from "discourse/lib/environment";import loadScript from "discourse/lib/load-script";@@ -99,11 +100,7 @@ const MOBILE_SETTINGS = {},};-@classNameBindings(- ":google-adsense",- "classForSlot",- "isResponsive:adsense-responsive"-)+@tagName("")export default class GoogleAdsense extends AdComponent {loadedGoogletag = false;publisher_id = null;@@ -260,24 +257,33 @@ export default class GoogleAdsense extends AdComponent {}<template>- {{#if this.showAd}}- <div class="google-adsense-label"><h2>{{i18n- "adplugin.advertisement_label"- }}</h2></div>- <div- class="google-adsense-content"- id={{if this.isResponsive "google-adsense__responsive"}}- style={{this.adWrapperStyle}}- >- <ins- class="adsbygoogle"- style={{this.adInsStyle}}- data-ad-client="ca-pub-{{this.publisher_id}}"- data-ad-slot={{this.ad_code}}- data-ad-format={{this.autoAdFormat}}+ <div+ class={{concatClass+ "google-adsense"+ this.classForSlot+ (if this.isResponsive "adsense-responsive")+ }}+ ...attributes+ >+ {{#if this.showAd}}+ <div class="google-adsense-label"><h2>{{i18n+ "adplugin.advertisement_label"+ }}</h2></div>+ <div+ class="google-adsense-content"+ id={{if this.isResponsive "google-adsense__responsive"}}+ style={{this.adWrapperStyle}}>- </ins>- </div>- {{/if}}+ <ins+ class="adsbygoogle"+ style={{this.adInsStyle}}+ data-ad-client="ca-pub-{{this.publisher_id}}"+ data-ad-slot={{this.ad_code}}+ data-ad-format={{this.autoAdFormat}}+ >+ </ins>+ </div>+ {{/if}}+ </div></template>}diff --git a/plugins/discourse-adplugin/assets/javascripts/discourse/components/google-dfp-ad.gjs b/plugins/discourse-adplugin/assets/javascripts/discourse/components/google-dfp-ad.gjsindex 74189d2c964..2cb3d4fe5ed 100644--- a/plugins/discourse-adplugin/assets/javascripts/discourse/components/google-dfp-ad.gjs+++ b/plugins/discourse-adplugin/assets/javascripts/discourse/components/google-dfp-ad.gjs@@ -1,8 +1,9 @@import { alias } from "@ember/object/computed";import { htmlSafe } from "@ember/template";-import { classNameBindings, classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import { on } from "@ember-decorators/object";import RSVP from "rsvp";+import concatClass from "discourse/helpers/concat-class";import discourseComputed from "discourse/lib/decorators";import { isTesting } from "discourse/lib/environment";import loadScript from "discourse/lib/load-script";@@ -244,8 +245,7 @@ function loadGoogle() {return _promise;}-@classNameBindings("adUnitClass")-@classNames("google-dfp-ad")+@tagName("")export default class GoogleDfpAd extends AdComponent {loadedGoogletag = false;lastAdRefresh = null;@@ -441,27 +441,29 @@ export default class GoogleDfpAd extends AdComponent {}<template>- {{#if this.showAd}}- {{#if this.site.mobileView}}- <div class="google-dfp-ad-label" style={{this.adTitleStyleMobile}}><h2- >{{i18n "adplugin.advertisement_label"}}</h2></div>- <div- id={{this.divId}}- style={{this.adWrapperStyle}}- class="dfp-ad-unit"- align="center"- ></div>- {{else}}- <div class="google-dfp-ad-label"><h2>{{i18n- "adplugin.advertisement_label"- }}</h2></div>- <div- id={{this.divId}}- style={{this.adWrapperStyle}}- class="dfp-ad-unit"- align="center"- ></div>+ <div class={{concatClass "google-dfp-ad" this.adUnitClass}} ...attributes>+ {{#if this.showAd}}+ {{#if this.site.mobileView}}+ <div class="google-dfp-ad-label" style={{this.adTitleStyleMobile}}><h2+ >{{i18n "adplugin.advertisement_label"}}</h2></div>+ <div+ id={{this.divId}}+ style={{this.adWrapperStyle}}+ class="dfp-ad-unit"+ align="center"+ ></div>+ {{else}}+ <div class="google-dfp-ad-label"><h2>{{i18n+ "adplugin.advertisement_label"+ }}</h2></div>+ <div+ id={{this.divId}}+ style={{this.adWrapperStyle}}+ class="dfp-ad-unit"+ align="center"+ ></div>+ {{/if}}{{/if}}- {{/if}}+ </div></template>}diff --git a/plugins/discourse-adplugin/assets/javascripts/discourse/components/house-ad.gjs b/plugins/discourse-adplugin/assets/javascripts/discourse/components/house-ad.gjsindex 519fcaf4e9c..fc2f4741859 100644--- a/plugins/discourse-adplugin/assets/javascripts/discourse/components/house-ad.gjs+++ b/plugins/discourse-adplugin/assets/javascripts/discourse/components/house-ad.gjs@@ -1,10 +1,7 @@import { htmlSafe } from "@ember/template";import { isBlank } from "@ember/utils";-import {- attributeBindings,- classNameBindings,- classNames,-} from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";+import concatClass from "discourse/helpers/concat-class";import discourseComputed from "discourse/lib/decorators";import AdComponent from "./ad-component";@@ -16,9 +13,7 @@ const adIndex = {topic_list_between: null,};-@classNames("house-creative")-@classNameBindings("adUnitClass")-@attributeBindings("colspanAttribute:colspan")+@tagName("")export default class HouseAd extends AdComponent {adHtml = "";currentAd = null;@@ -185,8 +180,14 @@ export default class HouseAd extends AdComponent {}<template>- {{#if this.showAd}}- {{htmlSafe this.adHtml}}- {{/if}}+ <div+ colspan={{this.colspanAttribute}}+ class={{concatClass "house-creative" this.adUnitClass}}+ ...attributes+ >+ {{#if this.showAd}}+ {{htmlSafe this.adHtml}}+ {{/if}}+ </div></template>}diff --git a/plugins/discourse-adplugin/assets/javascripts/discourse/connectors/after-topic-list-item/discourse-adplugin.gjs b/plugins/discourse-adplugin/assets/javascripts/discourse/connectors/after-topic-list-item/discourse-adplugin.gjsindex bd9df5d79ef..8cd64d1f85e 100644--- a/plugins/discourse-adplugin/assets/javascripts/discourse/connectors/after-topic-list-item/discourse-adplugin.gjs+++ b/plugins/discourse-adplugin/assets/javascripts/discourse/connectors/after-topic-list-item/discourse-adplugin.gjs@@ -1,11 +1,10 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import { slotContenders } from "discourse/plugins/discourse-adplugin/discourse/components/ad-slot";import AdSlot from "../../components/ad-slot";-@tagName("tr")-@classNames("after-topic-list-item-outlet", "discourse-adplugin")+@tagName("")export default class DiscourseAdplugin extends Component {static shouldRender(args, context) {return (@@ -20,11 +19,13 @@ export default class DiscourseAdplugin extends Component {}<template>- <AdSlot- @placement="topic-list-between"- @category={{this.category.slug}}- @indexNumber={{this.index}}- @childTagName="td"- />+ <tr class="after-topic-list-item-outlet discourse-adplugin" ...attributes>+ <AdSlot+ @placement="topic-list-between"+ @category={{this.category.slug}}+ @indexNumber={{this.index}}+ @childTagName="td"+ />+ </tr></template>}diff --git a/plugins/discourse-adplugin/assets/javascripts/discourse/connectors/discovery-list-container-top/discourse-adplugin.gjs b/plugins/discourse-adplugin/assets/javascripts/discourse/connectors/discovery-list-container-top/discourse-adplugin.gjsindex d28fc18b5ad..4c2a8ddb5e0 100644--- a/plugins/discourse-adplugin/assets/javascripts/discourse/connectors/discovery-list-container-top/discourse-adplugin.gjs+++ b/plugins/discourse-adplugin/assets/javascripts/discourse/connectors/discovery-list-container-top/discourse-adplugin.gjs@@ -1,12 +1,16 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import AdSlot from "../../components/ad-slot";-@tagName("span")-@classNames("discovery-list-container-top-outlet", "discourse-adplugin")+@tagName("")export default class DiscourseAdplugin extends Component {<template>- <AdSlot @placement="topic-list-top" @category={{this.category.slug}} />+ <span+ class="discovery-list-container-top-outlet discourse-adplugin"+ ...attributes+ >+ <AdSlot @placement="topic-list-top" @category={{this.category.slug}} />+ </span></template>}diff --git a/plugins/discourse-adplugin/assets/javascripts/discourse/connectors/topic-above-post-stream/discourse-adplugin.gjs b/plugins/discourse-adplugin/assets/javascripts/discourse/connectors/topic-above-post-stream/discourse-adplugin.gjsindex 6df49b9fecf..ce849e3a039 100644--- a/plugins/discourse-adplugin/assets/javascripts/discourse/connectors/topic-above-post-stream/discourse-adplugin.gjs+++ b/plugins/discourse-adplugin/assets/javascripts/discourse/connectors/topic-above-post-stream/discourse-adplugin.gjs@@ -1,15 +1,19 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import AdSlot from "../../components/ad-slot";-@tagName("div")-@classNames("topic-above-post-stream-outlet", "discourse-adplugin")+@tagName("")export default class DiscourseAdplugin extends Component {<template>- <AdSlot- @placement="topic-above-post-stream"- @category={{this.model.category.slug}}- />+ <div+ class="topic-above-post-stream-outlet discourse-adplugin"+ ...attributes+ >+ <AdSlot+ @placement="topic-above-post-stream"+ @category={{this.model.category.slug}}+ />+ </div></template>}diff --git a/plugins/discourse-adplugin/assets/javascripts/discourse/connectors/topic-above-suggested/discourse-adplugin.gjs b/plugins/discourse-adplugin/assets/javascripts/discourse/connectors/topic-above-suggested/discourse-adplugin.gjsindex cf22be92208..eb7094dde25 100644--- a/plugins/discourse-adplugin/assets/javascripts/discourse/connectors/topic-above-suggested/discourse-adplugin.gjs+++ b/plugins/discourse-adplugin/assets/javascripts/discourse/connectors/topic-above-suggested/discourse-adplugin.gjs@@ -1,15 +1,16 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import AdSlot from "../../components/ad-slot";-@tagName("div")-@classNames("topic-above-suggested-outlet", "discourse-adplugin")+@tagName("")export default class DiscourseAdplugin extends Component {<template>- <AdSlot- @placement="topic-above-suggested"- @category={{this.model.category.slug}}- />+ <div class="topic-above-suggested-outlet discourse-adplugin" ...attributes>+ <AdSlot+ @placement="topic-above-suggested"+ @category={{this.model.category.slug}}+ />+ </div></template>}diff --git a/plugins/discourse-ai/assets/javascripts/discourse/components/admin-report-emotion.gjs b/plugins/discourse-ai/assets/javascripts/discourse/components/admin-report-emotion.gjsindex e75419ec4f3..5477c1c1fc3 100644--- a/plugins/discourse-ai/assets/javascripts/discourse/components/admin-report-emotion.gjs+++ b/plugins/discourse-ai/assets/javascripts/discourse/components/admin-report-emotion.gjs@@ -1,12 +1,11 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { attributeBindings, classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import icon from "discourse/helpers/d-icon";import number from "discourse/helpers/number";import getURL from "discourse/lib/get-url";-@classNames("admin-report-counters")-@attributeBindings("model.description:title")+@tagName("")export default class AdminReportEmotion extends Component {get todayLink() {let date = moment().format("YYYY-MM-DD");@@ -41,50 +40,56 @@ export default class AdminReportEmotion extends Component {}<template>- <div class="cell title">- {{#if this.model.icon}}- {{icon this.model.icon}}- {{/if}}- {{this.model.title}}- </div>-- <div class="cell value today-count">- <a href={{this.todayLink}}>- {{number this.model.todayCount}}- </a>- </div>-<div- class="cell value yesterday-count {{this.model.yesterdayTrend}}"- title={{this.model.yesterdayCountTitle}}+ title={{this.model.description}}+ class="admin-report-counters"+ ...attributes>- <a href={{this.yesterdayLink}}>- {{number this.model.yesterdayCount}}- </a>- {{icon this.model.yesterdayTrendIcon}}- </div>+ <div class="cell title">+ {{#if this.model.icon}}+ {{icon this.model.icon}}+ {{/if}}+ {{this.model.title}}+ </div>- <div- class="cell value sevendays-count {{this.model.sevenDaysTrend}}"- title={{this.model.sevenDaysCountTitle}}- >- <a href={{this.lastSevenDaysLink}}>- {{number this.model.lastSevenDaysCount}}- </a>- {{icon this.model.sevenDaysTrendIcon}}- </div>+ <div class="cell value today-count">+ <a href={{this.todayLink}}>+ {{number this.model.todayCount}}+ </a>+ </div>- <div- class="cell value thirty-days-count {{this.model.thirtyDaysTrend}}"- title={{this.model.thirtyDaysCountTitle}}- >+ <div+ class="cell value yesterday-count {{this.model.yesterdayTrend}}"+ title={{this.model.yesterdayCountTitle}}+ >+ <a href={{this.yesterdayLink}}>+ {{number this.model.yesterdayCount}}+ </a>+ {{icon this.model.yesterdayTrendIcon}}+ </div>++ <div+ class="cell value sevendays-count {{this.model.sevenDaysTrend}}"+ title={{this.model.sevenDaysCountTitle}}+ >+ <a href={{this.lastSevenDaysLink}}>+ {{number this.model.lastSevenDaysCount}}+ </a>+ {{icon this.model.sevenDaysTrendIcon}}+ </div>++ <div+ class="cell value thirty-days-count {{this.model.thirtyDaysTrend}}"+ title={{this.model.thirtyDaysCountTitle}}+ >- <a href={{this.lastThirtyDaysLink}}>- {{number this.model.lastThirtyDaysCount}}- </a>- {{#if this.model.canDisplayTrendIcon}}- {{icon this.model.thirtyDaysTrendIcon}}- {{/if}}+ <a href={{this.lastThirtyDaysLink}}>+ {{number this.model.lastThirtyDaysCount}}+ </a>+ {{#if this.model.canDisplayTrendIcon}}+ {{icon this.model.thirtyDaysTrendIcon}}+ {{/if}}+ </div></div></template>}diff --git a/plugins/discourse-ai/assets/javascripts/discourse/components/ai-bot-conversations.gjs b/plugins/discourse-ai/assets/javascripts/discourse/components/ai-bot-conversations.gjsindex d8eb4dee7b1..2cb472877d0 100644--- a/plugins/discourse-ai/assets/javascripts/discourse/components/ai-bot-conversations.gjs+++ b/plugins/discourse-ai/assets/javascripts/discourse/components/ai-bot-conversations.gjs@@ -10,6 +10,7 @@ import { scheduleOnce } from "@ember/runloop";import { service } from "@ember/service";import { htmlSafe } from "@ember/template";import { TrackedArray } from "@ember-compat/tracked-built-ins";+import { tagName } from "@ember-decorators/component";import { modifier } from "ember-modifier";import DButton from "discourse/components/d-button";import PluginOutlet from "discourse/components/plugin-outlet";@@ -33,6 +34,7 @@ import DAutocompleteModifier from "discourse/modifiers/d-autocomplete";import { i18n } from "discourse-i18n";import AiPersonaLlmSelector from "discourse/plugins/discourse-ai/discourse/components/ai-persona-llm-selector";+@tagName("")export default class AiBotConversations extends Component {@service aiCredits;@service aiBotConversationsHiddenSubmit;@@ -367,7 +369,7 @@ export default class AiBotConversations extends Component {}<template>- <div class="ai-bot-conversations">+ <div class="ai-bot-conversations" ...attributes>{{bodyClass "ai-bot-conversations-page"}}<AiPersonaLlmSelector@showLabels={{true}}diff --git a/plugins/discourse-ai/assets/javascripts/discourse/components/rag-uploader.gjs b/plugins/discourse-ai/assets/javascripts/discourse/components/rag-uploader.gjsindex f2e529b2235..0aae2368e72 100644--- a/plugins/discourse-ai/assets/javascripts/discourse/components/rag-uploader.gjs+++ b/plugins/discourse-ai/assets/javascripts/discourse/components/rag-uploader.gjs@@ -7,6 +7,7 @@ import { action } from "@ember/object";import { getOwner } from "@ember/owner";import didInsert from "@ember/render-modifiers/modifiers/did-insert";import { service } from "@ember/service";+import { tagName } from "@ember-decorators/component";import DButton from "discourse/components/d-button";import icon from "discourse/helpers/d-icon";import { ajax } from "discourse/lib/ajax";@@ -17,6 +18,7 @@ import UppyUpload from "discourse/lib/uppy/uppy-upload";import { i18n } from "discourse-i18n";import RagUploadProgress from "./rag-upload-progress";+@tagName("")export default class RagUploader extends Component {@service appEvents;@@ -128,7 +130,7 @@ export default class RagUploader extends Component {}<template>- <div class="rag-uploader">+ <div class="rag-uploader" ...attributes>{{#if @allowImages}}<p>{{i18n "discourse_ai.rag.uploads.description_with_images"}}</p>{{else}}diff --git a/plugins/discourse-ai/assets/javascripts/discourse/components/reviewable-ai-chat-message.gjs b/plugins/discourse-ai/assets/javascripts/discourse/components/reviewable-ai-chat-message.gjsindex 332b9f04fbf..cdef8c29fb4 100644--- a/plugins/discourse-ai/assets/javascripts/discourse/components/reviewable-ai-chat-message.gjs+++ b/plugins/discourse-ai/assets/javascripts/discourse/components/reviewable-ai-chat-message.gjs@@ -34,15 +34,11 @@ export default class ReviewableAiChatMessage extends Component {{{/if}}<div class="post-contents-wrapper">- <ReviewableCreatedBy- @user={{@reviewable.target_created_by}}- @tagName=""- />+ <ReviewableCreatedBy @user={{@reviewable.target_created_by}} /><div class="post-contents"><ReviewablePostHeader@reviewable={{@reviewable}}@createdBy={{@reviewable.target_created_by}}- @tagName=""/><div class="post-body">diff --git a/plugins/discourse-ai/assets/javascripts/discourse/components/reviewable-ai-post.gjs b/plugins/discourse-ai/assets/javascripts/discourse/components/reviewable-ai-post.gjsindex c4bdf046f65..48a35cccf4b 100644--- a/plugins/discourse-ai/assets/javascripts/discourse/components/reviewable-ai-post.gjs+++ b/plugins/discourse-ai/assets/javascripts/discourse/components/reviewable-ai-post.gjs@@ -8,17 +8,16 @@ import ModelAccuracies from "./model-accuracies";const ReviewableAiPost = <template><div class="flagged-post-header">- <ReviewableTopicLink @reviewable={{@reviewable}} @tagName="" />- <ReviewablePostEdits @reviewable={{@reviewable}} @tagName="" />+ <ReviewableTopicLink @reviewable={{@reviewable}} />+ <ReviewablePostEdits @reviewable={{@reviewable}} /></div><div class="post-contents-wrapper">- <ReviewableCreatedBy @user={{@reviewable.target_created_by}} @tagName="" />+ <ReviewableCreatedBy @user={{@reviewable.target_created_by}} /><div class="post-contents"><ReviewablePostHeader@reviewable={{@reviewable}}@createdBy={{@reviewable.target_created_by}}- @tagName=""/><div class="post-body">{{#if @reviewable.blank_post}}diff --git a/plugins/discourse-ai/assets/javascripts/discourse/components/reviewable-refresh/ai-chat-message.gjs b/plugins/discourse-ai/assets/javascripts/discourse/components/reviewable-refresh/ai-chat-message.gjsindex f815f6c7e95..b6126611d89 100644--- a/plugins/discourse-ai/assets/javascripts/discourse/components/reviewable-refresh/ai-chat-message.gjs+++ b/plugins/discourse-ai/assets/javascripts/discourse/components/reviewable-refresh/ai-chat-message.gjs@@ -45,7 +45,7 @@ export default class ReviewableRefreshAiChatMessage extends Component {<ChannelTitle @channel={{this.channel}} /></LinkTo>{{else}}- <ReviewableTopicLink @reviewable={{@reviewable}} @tagName="" />+ <ReviewableTopicLink @reviewable={{@reviewable}} />{{/if}}</div>diff --git a/plugins/discourse-assign/assets/javascripts/discourse/components/remind-assigns-frequency.gjs b/plugins/discourse-assign/assets/javascripts/discourse/components/remind-assigns-frequency.gjsindex 7072729be19..f402402181c 100644--- a/plugins/discourse-assign/assets/javascripts/discourse/components/remind-assigns-frequency.gjs+++ b/plugins/discourse-assign/assets/javascripts/discourse/components/remind-assigns-frequency.gjs@@ -1,10 +1,12 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { fn } from "@ember/helper";+import { tagName } from "@ember-decorators/component";import discourseComputed from "discourse/lib/decorators";import ComboBox from "discourse/select-kit/components/combo-box";import { i18n } from "discourse-i18n";+@tagName("")export default class RemindAssignsFrequency extends Component {@discourseComputed("user.custom_fields.remind_assigns_frequency",@@ -32,21 +34,23 @@ export default class RemindAssignsFrequency extends Component {}<template>- {{#if this.siteSettings.assign_enabled}}- <div class="controls controls-dropdown">- <label>{{i18n- "discourse_assign.reminders_frequency.description"- }}</label>- <ComboBox- @id="remind-assigns-frequency"- @valueProperty="value"- @content={{this.availableFrequencies}}- @value={{this.selectedFrequency}}- @onChange={{fn- (mut this.user.custom_fields.remind_assigns_frequency)- }}- />- </div>- {{/if}}+ <div ...attributes>+ {{#if this.siteSettings.assign_enabled}}+ <div class="controls controls-dropdown">+ <label>{{i18n+ "discourse_assign.reminders_frequency.description"+ }}</label>+ <ComboBox+ @id="remind-assigns-frequency"+ @valueProperty="value"+ @content={{this.availableFrequencies}}+ @value={{this.selectedFrequency}}+ @onChange={{fn+ (mut this.user.custom_fields.remind_assigns_frequency)+ }}+ />+ </div>+ {{/if}}+ </div></template>}diff --git a/plugins/discourse-assign/assets/javascripts/discourse/connectors/above-review-filters/assigned-to-filter.gjs b/plugins/discourse-assign/assets/javascripts/discourse/connectors/above-review-filters/assigned-to-filter.gjsindex 324da82984e..18c4677d08a 100644--- a/plugins/discourse-assign/assets/javascripts/discourse/connectors/above-review-filters/assigned-to-filter.gjs+++ b/plugins/discourse-assign/assets/javascripts/discourse/connectors/above-review-filters/assigned-to-filter.gjs@@ -3,11 +3,11 @@ import Component from "@ember/component";import { hash } from "@ember/helper";import { action } from "@ember/object";import { service } from "@ember/service";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import EmailGroupUserChooser from "discourse/select-kit/components/email-group-user-chooser";import { i18n } from "discourse-i18n";-@classNames("assigned-to-filter")+@tagName("")export default class AssignedToFilter extends Component {static shouldRender(args) {return args.additionalFilters;@@ -29,22 +29,24 @@ export default class AssignedToFilter extends Component {}<template>- <div class="reviewable-filter discourse-assign-assign-to-filter">- <label class="filter-label">- {{i18n "review.assigned_to"}}- </label>+ <div class="assigned-to-filter" ...attributes>+ <div class="reviewable-filter discourse-assign-assign-to-filter">+ <label class="filter-label">+ {{i18n "review.assigned_to"}}+ </label>- <EmailGroupUserChooser- @value={{this.outletArgs.additionalFilters.assigned_to}}- @onChange={{this.updateAssignedTo}}- @options={{hash- maximum=1- fullWidthWrap=true- includeGroups=false- groupMembersOf=this.allowedGroups- }}- autocomplete="off"- />+ <EmailGroupUserChooser+ @value={{this.outletArgs.additionalFilters.assigned_to}}+ @onChange={{this.updateAssignedTo}}+ @options={{hash+ maximum=1+ fullWidthWrap=true+ includeGroups=false+ groupMembersOf=this.allowedGroups+ }}+ autocomplete="off"+ />+ </div></div></template>}diff --git a/plugins/discourse-assign/assets/javascripts/discourse/connectors/advanced-search-options-below/assigned-advanced-search.gjs b/plugins/discourse-assign/assets/javascripts/discourse/connectors/advanced-search-options-below/assigned-advanced-search.gjsindex b72da4564c5..b62536057f9 100644--- a/plugins/discourse-assign/assets/javascripts/discourse/connectors/advanced-search-options-below/assigned-advanced-search.gjs+++ b/plugins/discourse-assign/assets/javascripts/discourse/connectors/advanced-search-options-below/assigned-advanced-search.gjs@@ -2,11 +2,11 @@import Component from "@ember/component";import { hash } from "@ember/helper";import { action } from "@ember/object";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import EmailGroupUserChooser from "discourse/select-kit/components/email-group-user-chooser";import { i18n } from "discourse-i18n";-@classNames("assigned-advanced-search")+@tagName("")export default class AssignedAdvancedSearch extends Component {static shouldRender(args, { currentUser }) {return currentUser?.can_assign;@@ -22,22 +22,24 @@ export default class AssignedAdvancedSearch extends Component {}<template>- <div class="control-group">- <label class="control-label" for="search-assigned-to">- {{i18n "search.advanced.assigned.label"}}- </label>+ <div class="assigned-advanced-search" ...attributes>+ <div class="control-group">+ <label class="control-label" for="search-assigned-to">+ {{i18n "search.advanced.assigned.label"}}+ </label>- <div class="controls">- <EmailGroupUserChooser- @value={{this.outletArgs.searchedTerms.assigned}}- @onChange={{this.onChangeAssigned}}- @options={{hash- maximum=1- excludeCurrentUser=false- includeGroups=true- customSearchOptions=(hash assignableGroups=true)- }}- />+ <div class="controls">+ <EmailGroupUserChooser+ @value={{this.outletArgs.searchedTerms.assigned}}+ @onChange={{this.onChangeAssigned}}+ @options={{hash+ maximum=1+ excludeCurrentUser=false+ includeGroups=true+ customSearchOptions=(hash assignableGroups=true)+ }}+ />+ </div></div></div></template>diff --git a/plugins/discourse-assign/assets/javascripts/discourse/connectors/category-custom-settings/assign-settings.gjs b/plugins/discourse-assign/assets/javascripts/discourse/connectors/category-custom-settings/assign-settings.gjsindex d5d18a539cb..d7f42f3f6a7 100644--- a/plugins/discourse-assign/assets/javascripts/discourse/connectors/category-custom-settings/assign-settings.gjs+++ b/plugins/discourse-assign/assets/javascripts/discourse/connectors/category-custom-settings/assign-settings.gjs@@ -2,10 +2,10 @@import Component, { Input } from "@ember/component";import { on } from "@ember/modifier";import { action } from "@ember/object";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import { i18n } from "discourse-i18n";-@classNames("assign-settings")+@tagName("")export default class AssignSettings extends Component {@actiononChangeSetting(event) {@@ -16,21 +16,23 @@ export default class AssignSettings extends Component {}<template>- <h3>{{i18n "discourse_assign.assign.title"}}</h3>+ <div class="assign-settings" ...attributes>+ <h3>{{i18n "discourse_assign.assign.title"}}</h3>- <section class="field">- <div class="enable-accepted-answer">- <label class="checkbox-label">- <Input- @type="checkbox"- @checked={{readonly- this.outletArgs.category.enable_unassigned_filter- }}- {{on "change" this.onChangeSetting}}- />- {{i18n "discourse_assign.add_unassigned_filter"}}- </label>- </div>- </section>+ <section class="field">+ <div class="enable-accepted-answer">+ <label class="checkbox-label">+ <Input+ @type="checkbox"+ @checked={{readonly+ this.outletArgs.category.enable_unassigned_filter+ }}+ {{on "change" this.onChangeSetting}}+ />+ {{i18n "discourse_assign.add_unassigned_filter"}}+ </label>+ </div>+ </section>+ </div></template>}diff --git a/plugins/discourse-assign/assets/javascripts/discourse/connectors/group-reports-nav-item/assigned-topic-list.gjs b/plugins/discourse-assign/assets/javascripts/discourse/connectors/group-reports-nav-item/assigned-topic-list.gjsindex a63d7054558..a716c656db6 100644--- a/plugins/discourse-assign/assets/javascripts/discourse/connectors/group-reports-nav-item/assigned-topic-list.gjs+++ b/plugins/discourse-assign/assets/javascripts/discourse/connectors/group-reports-nav-item/assigned-topic-list.gjs@@ -1,10 +1,9 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import GroupAssignedMenuItem from "../../components/group-assigned-menu-item";-@tagName("li")-@classNames("group-reports-nav-item-outlet", "assigned-topic-list")+@tagName("")export default class AssignedTopicList extends Component {static shouldRender(args, context) {return (@@ -14,5 +13,9 @@ export default class AssignedTopicList extends Component {);}- <template><GroupAssignedMenuItem @group={{this.group}} /></template>+ <template>+ <li class="group-reports-nav-item-outlet assigned-topic-list" ...attributes>+ <GroupAssignedMenuItem @group={{this.group}} />+ </li>+ </template>}diff --git a/plugins/discourse-assign/assets/javascripts/discourse/connectors/user-activity-bottom/assigned-list.gjs b/plugins/discourse-assign/assets/javascripts/discourse/connectors/user-activity-bottom/assigned-list.gjsindex bf18f3ce940..f2355d46618 100644--- a/plugins/discourse-assign/assets/javascripts/discourse/connectors/user-activity-bottom/assigned-list.gjs+++ b/plugins/discourse-assign/assets/javascripts/discourse/connectors/user-activity-bottom/assigned-list.gjs@@ -1,19 +1,20 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { LinkTo } from "@ember/routing";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import icon from "discourse/helpers/d-icon";import { i18n } from "discourse-i18n";-@tagName("li")-@classNames("user-activity-bottom-outlet", "assigned-list")+@tagName("")export default class AssignedList extends Component {<template>- {{#if this.currentUser.can_assign}}- <LinkTo @route="userActivity.assigned">- {{icon "user-plus"}}- {{i18n "discourse_assign.assigned"}}- </LinkTo>- {{/if}}+ <li class="user-activity-bottom-outlet assigned-list" ...attributes>+ {{#if this.currentUser.can_assign}}+ <LinkTo @route="userActivity.assigned">+ {{icon "user-plus"}}+ {{i18n "discourse_assign.assigned"}}+ </LinkTo>+ {{/if}}+ </li></template>}diff --git a/plugins/discourse-assign/assets/javascripts/discourse/connectors/user-preferences-notifications/remind-assigns-frequency.gjs b/plugins/discourse-assign/assets/javascripts/discourse/connectors/user-preferences-notifications/remind-assigns-frequency.gjsindex 3a683758bec..0511fc0cfd1 100644--- a/plugins/discourse-assign/assets/javascripts/discourse/connectors/user-preferences-notifications/remind-assigns-frequency.gjs+++ b/plugins/discourse-assign/assets/javascripts/discourse/connectors/user-preferences-notifications/remind-assigns-frequency.gjs@@ -1,14 +1,20 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import RemindAssignsFrequency from "../../components/remind-assigns-frequency";-@tagName("div")-@classNames("user-preferences-notifications-outlet", "remind-assigns-frequency")+@tagName("")export default class RemindAssignsFrequencyConnector extends Component {static shouldRender(args, context) {return context.currentUser?.can_assign;}- <template><RemindAssignsFrequency @user={{this.model}} /></template>+ <template>+ <div+ class="user-preferences-notifications-outlet remind-assigns-frequency"+ ...attributes+ >+ <RemindAssignsFrequency @user={{this.model}} />+ </div>+ </template>}diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/components/emoji-images.gjs b/plugins/discourse-cakeday/assets/javascripts/discourse/components/emoji-images.gjsindex ee3ff8197b8..6b0eb363277 100644--- a/plugins/discourse-cakeday/assets/javascripts/discourse/components/emoji-images.gjs+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/components/emoji-images.gjs@@ -1,13 +1,13 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { htmlSafe } from "@ember/template";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import icon from "discourse/helpers/d-icon";import computed from "discourse/lib/decorators";import { emojiUnescape } from "discourse/lib/text";import { i18n } from "discourse-i18n";-@classNames("emoji-images")+@tagName("")export default class EmojiImages extends Component {@computed("list")emojiHTML(list) {@@ -22,14 +22,16 @@ export default class EmojiImages extends Component {}<template>- {{#if this.siteSettings.enable_emoji}}- <div title={{this.titleText}}>- {{#each this.emojiHTML as |html|}}- {{htmlSafe html}}- {{/each}}- </div>- {{else}}- {{icon "cake-candles" title=this.titleText}}- {{/if}}+ <div class="emoji-images" ...attributes>+ {{#if this.siteSettings.enable_emoji}}+ <div title={{this.titleText}}>+ {{#each this.emojiHTML as |html|}}+ {{htmlSafe html}}+ {{/each}}+ </div>+ {{else}}+ {{icon "cake-candles" title=this.titleText}}+ {{/if}}+ </div></template>}diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/connectors/user-card-post-names/user-card-cakeday.gjs b/plugins/discourse-cakeday/assets/javascripts/discourse/connectors/user-card-post-names/user-card-cakeday.gjsindex e825e3ae705..3b7fa58db45 100644--- a/plugins/discourse-cakeday/assets/javascripts/discourse/connectors/user-card-post-names/user-card-cakeday.gjs+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/connectors/user-card-post-names/user-card-cakeday.gjs@@ -1,6 +1,6 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import {birthday,birthdayTitle,@@ -9,8 +9,7 @@ import {} from "discourse/plugins/discourse-cakeday/discourse/lib/cakeday";import EmojiImages from "../../components/emoji-images";-@tagName("div")-@classNames("user-card-post-names-outlet", "user-card-cakeday")+@tagName("")export default class UserCardCakeday extends Component {init() {super.init(...arguments);@@ -22,21 +21,23 @@ export default class UserCardCakeday extends Component {}<template>- {{#if this.siteSettings.cakeday_birthday_enabled}}- {{#if this.isBirthday}}- <EmojiImages- @list={{this.siteSettings.cakeday_birthday_emoji}}- @title={{this.birthdayTitle}}- />+ <div class="user-card-post-names-outlet user-card-cakeday" ...attributes>+ {{#if this.siteSettings.cakeday_birthday_enabled}}+ {{#if this.isBirthday}}+ <EmojiImages+ @list={{this.siteSettings.cakeday_birthday_emoji}}+ @title={{this.birthdayTitle}}+ />+ {{/if}}{{/if}}- {{/if}}- {{#if this.siteSettings.cakeday_enabled}}- {{#if this.isCakeday}}- <EmojiImages- @list={{this.siteSettings.cakeday_emoji}}- @title={{this.cakedayTitle}}- />+ {{#if this.siteSettings.cakeday_enabled}}+ {{#if this.isCakeday}}+ <EmojiImages+ @list={{this.siteSettings.cakeday_emoji}}+ @title={{this.cakedayTitle}}+ />+ {{/if}}{{/if}}- {{/if}}+ </div></template>}diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/connectors/user-custom-preferences/user-date-of-birth-input.gjs b/plugins/discourse-cakeday/assets/javascripts/discourse/connectors/user-custom-preferences/user-date-of-birth-input.gjsindex 4407f68fe5a..3c1310847ae 100644--- a/plugins/discourse-cakeday/assets/javascripts/discourse/connectors/user-custom-preferences/user-date-of-birth-input.gjs+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/connectors/user-custom-preferences/user-date-of-birth-input.gjs@@ -1,12 +1,11 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { fn, hash } from "@ember/helper";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import ComboBox from "discourse/select-kit/components/combo-box";import { i18n } from "discourse-i18n";-@tagName("div")-@classNames("user-custom-preferences-outlet", "user-date-of-birth-input")+@tagName("")export default class UserDateOfBirthInput extends Component {init() {super.init(...arguments);@@ -46,31 +45,38 @@ export default class UserDateOfBirthInput extends Component {}<template>- {{#if this.siteSettings.cakeday_birthday_enabled}}- <div class="control-group">- <label class="control-label">{{i18n "user.date_of_birth.label"}}</label>- <div class="controls">- <ComboBox- @content={{this.months}}- @value={{this.month}}- @valueAttribute="value"- @valueProperty="value"- @none="cakeday.none"- @options={{hash clearable=true autoInsertNoneItem=false}}- @onChange={{fn (mut this.month)}}- />+ <div+ class="user-custom-preferences-outlet user-date-of-birth-input"+ ...attributes+ >+ {{#if this.siteSettings.cakeday_birthday_enabled}}+ <div class="control-group">+ <label class="control-label">{{i18n+ "user.date_of_birth.label"+ }}</label>+ <div class="controls">+ <ComboBox+ @content={{this.months}}+ @value={{this.month}}+ @valueAttribute="value"+ @valueProperty="value"+ @none="cakeday.none"+ @options={{hash clearable=true autoInsertNoneItem=false}}+ @onChange={{fn (mut this.month)}}+ />- <ComboBox- @content={{this.days}}- @value={{this.day}}- @valueProperty={{null}}- @nameProperty={{null}}- @none="cakeday.none"- @options={{hash clearable=true autoInsertNoneItem=false}}- @onChange={{fn (mut this.day)}}- />+ <ComboBox+ @content={{this.days}}+ @value={{this.day}}+ @valueProperty={{null}}+ @nameProperty={{null}}+ @none="cakeday.none"+ @options={{hash clearable=true autoInsertNoneItem=false}}+ @onChange={{fn (mut this.day)}}+ />+ </div></div>- </div>- {{/if}}+ {{/if}}+ </div></template>}diff --git a/plugins/discourse-calendar/assets/javascripts/discourse/components/bulk-invite-sample-csv-file.gjs b/plugins/discourse-calendar/assets/javascripts/discourse/components/bulk-invite-sample-csv-file.gjsindex 00002a2eaee..b9b90246565 100644--- a/plugins/discourse-calendar/assets/javascripts/discourse/components/bulk-invite-sample-csv-file.gjs+++ b/plugins/discourse-calendar/assets/javascripts/discourse/components/bulk-invite-sample-csv-file.gjs@@ -1,8 +1,10 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { action } from "@ember/object";+import { tagName } from "@ember-decorators/component";import DButton from "discourse/components/d-button";+@tagName("")export default class BulkInviteSampleCsvFile extends Component {@actiondownloadSampleCsv() {@@ -28,9 +30,11 @@ export default class BulkInviteSampleCsvFile extends Component {}<template>- <DButton- @label="discourse_post_event.bulk_invite_modal.download_sample_csv"- @action={{this.downloadSampleCsv}}- />+ <div ...attributes>+ <DButton+ @label="discourse_post_event.bulk_invite_modal.download_sample_csv"+ @action={{this.downloadSampleCsv}}+ />+ </div></template>}diff --git a/plugins/discourse-data-explorer/assets/javascripts/discourse/connectors/group-reports-nav-item/nav-item.gjs b/plugins/discourse-data-explorer/assets/javascripts/discourse/connectors/group-reports-nav-item/nav-item.gjsindex 160fda63fdc..8ef645bc205 100644--- a/plugins/discourse-data-explorer/assets/javascripts/discourse/connectors/group-reports-nav-item/nav-item.gjs+++ b/plugins/discourse-data-explorer/assets/javascripts/discourse/connectors/group-reports-nav-item/nav-item.gjs@@ -1,20 +1,21 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { LinkTo } from "@ember/routing";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import icon from "discourse/helpers/d-icon";import { i18n } from "discourse-i18n";-@tagName("li")-@classNames("group-reports-nav-item-outlet", "nav-item")+@tagName("")export default class NavItem extends Component {static shouldRender(args) {return args.group.has_visible_data_explorer_queries;}<template>- <LinkTo @route="group.reports">- {{icon "chart-bar"}}{{i18n "group.reports"}}- </LinkTo>+ <li class="group-reports-nav-item-outlet nav-item" ...attributes>+ <LinkTo @route="group.reports">+ {{icon "chart-bar"}}{{i18n "group.reports"}}+ </LinkTo>+ </li></template>}diff --git a/plugins/discourse-gamification/assets/javascripts/discourse/components/gamification-score.gjs b/plugins/discourse-gamification/assets/javascripts/discourse/components/gamification-score.gjsindex dbc322650e1..50bbb588f27 100644--- a/plugins/discourse-gamification/assets/javascripts/discourse/components/gamification-score.gjs+++ b/plugins/discourse-gamification/assets/javascripts/discourse/components/gamification-score.gjs@@ -1,23 +1,24 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { LinkTo } from "@ember/routing";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import fullnumber from "../helpers/fullnumber";-@tagName("span")-@classNames("gamification-score")+@tagName("")export default class GamificationScore extends Component {<template>- {{#if this.site.default_gamification_leaderboard_id}}- <LinkTo- @route="gamificationLeaderboard.byName"- @model={{this.site.default_gamification_leaderboard_id}}- class="gamification-score__link"- >+ <span class="gamification-score" ...attributes>+ {{#if this.site.default_gamification_leaderboard_id}}+ <LinkTo+ @route="gamificationLeaderboard.byName"+ @model={{this.site.default_gamification_leaderboard_id}}+ class="gamification-score__link"+ >+ {{fullnumber this.model.gamification_score}}+ </LinkTo>+ {{else}}{{fullnumber this.model.gamification_score}}- </LinkTo>- {{else}}- {{fullnumber this.model.gamification_score}}- {{/if}}+ {{/if}}+ </span></template>}diff --git a/plugins/discourse-gamification/assets/javascripts/discourse/connectors/user-card-metadata/gamification-score.gjs b/plugins/discourse-gamification/assets/javascripts/discourse/connectors/user-card-metadata/gamification-score.gjsindex 5c2264b475f..b102da942ed 100644--- a/plugins/discourse-gamification/assets/javascripts/discourse/connectors/user-card-metadata/gamification-score.gjs+++ b/plugins/discourse-gamification/assets/javascripts/discourse/connectors/user-card-metadata/gamification-score.gjs@@ -1,16 +1,17 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import { i18n } from "discourse-i18n";import GamificationScore from "../../components/gamification-score";-@tagName("div")-@classNames("user-card-metadata-outlet", "gamification-score")+@tagName("")export default class GamificationScoreConnector extends Component {<template>- {{#if this.user.gamification_score}}- <span class="desc">{{i18n "gamification.score"}} </span>- <span><GamificationScore @model={{this.user}} /></span>- {{/if}}+ <div class="user-card-metadata-outlet gamification-score" ...attributes>+ {{#if this.user.gamification_score}}+ <span class="desc">{{i18n "gamification.score"}} </span>+ <span><GamificationScore @model={{this.user}} /></span>+ {{/if}}+ </div></template>}diff --git a/plugins/discourse-hcaptcha/assets/javascripts/discourse/connectors/create-account-after-user-fields/hcaptcha-fields-connector.gjs b/plugins/discourse-hcaptcha/assets/javascripts/discourse/connectors/create-account-after-user-fields/hcaptcha-fields-connector.gjsindex 13e68192268..b5bc2546bf8 100644--- a/plugins/discourse-hcaptcha/assets/javascripts/discourse/connectors/create-account-after-user-fields/hcaptcha-fields-connector.gjs+++ b/plugins/discourse-hcaptcha/assets/javascripts/discourse/connectors/create-account-after-user-fields/hcaptcha-fields-connector.gjs@@ -1,17 +1,18 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import HCaptcha from "../../components/h-captcha";@tagName("")-@classNames(- "create-account-after-user-fields-outlet",- "hcaptcha-fields-connector"-)export default class HcaptchaFieldsConnector extends Component {<template>- <div class="input-group">- <HCaptcha @siteKey={{this.siteSettings.hcaptcha_site_key}} />+ <div+ class="create-account-after-user-fields-outlet hcaptcha-fields-connector"+ ...attributes+ >+ <div class="input-group">+ <HCaptcha @siteKey={{this.siteSettings.hcaptcha_site_key}} />+ </div></div></template>}diff --git a/plugins/discourse-local-dates/assets/javascripts/discourse/components/modal/local-dates-create.gjs b/plugins/discourse-local-dates/assets/javascripts/discourse/components/modal/local-dates-create.gjsindex ff6fda8b0f2..b9b113dcf32 100644--- a/plugins/discourse-local-dates/assets/javascripts/discourse/components/modal/local-dates-create.gjs+++ b/plugins/discourse-local-dates/assets/javascripts/discourse/components/modal/local-dates-create.gjs@@ -6,6 +6,7 @@ import EmberObject, { action } from "@ember/object";import { notEmpty } from "@ember/object/computed";import { schedule } from "@ember/runloop";import { htmlSafe } from "@ember/template";+import { tagName } from "@ember-decorators/component";import { observes } from "@ember-decorators/object";import CalendarDateTimeInput from "discourse/components/calendar-date-time-input";import DButton from "discourse/components/d-button";@@ -23,6 +24,7 @@ import TimezoneInput from "discourse/select-kit/components/timezone-input";import { i18n } from "discourse-i18n";import generateDateMarkup from "discourse/plugins/discourse-local-dates/lib/local-date-markup-generator";+@tagName("")export default class LocalDatesCreate extends Component {timeFormat = "HH:mm:ss";dateFormat = "YYYY-MM-DD";diff --git a/plugins/discourse-patreon/assets/javascripts/discourse/connectors/admin-user-details/patreon.gjs b/plugins/discourse-patreon/assets/javascripts/discourse/connectors/admin-user-details/patreon.gjsindex 82a666f1611..a96112278b5 100644--- a/plugins/discourse-patreon/assets/javascripts/discourse/connectors/admin-user-details/patreon.gjs+++ b/plugins/discourse-patreon/assets/javascripts/discourse/connectors/admin-user-details/patreon.gjs@@ -2,15 +2,14 @@import Component from "@ember/component";import { action } from "@ember/object";import { htmlSafe } from "@ember/template";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import DButton from "discourse/components/d-button";import icon from "discourse/helpers/d-icon";import { ajax } from "discourse/lib/ajax";import { userPath } from "discourse/lib/url";import { i18n } from "discourse-i18n";-@tagName("div")-@classNames("admin-user-details-outlet", "patreon")+@tagName("")export default class Patreon extends Component {static shouldRender(args, context) {return context.siteSettings.patreon_enabled && args.model.patreon_id;@@ -46,66 +45,74 @@ export default class Patreon extends Component {}<template>- <section class="details">- <h1>{{i18n "patreon.title"}}</h1>- <div class="display-row">- <div class="field">{{i18n "patreon.field.id"}}</div>- <div class="value">{{this.model.patreon_id}}</div>- </div>- {{#if this.model.patreon_email_exists}}+ <div class="admin-user-details-outlet patreon" ...attributes>+ <section class="details">+ <h1>{{i18n "patreon.title"}}</h1><div class="display-row">- <div class="field">{{i18n "patreon.field.email"}}</div>+ <div class="field">{{i18n "patreon.field.id"}}</div>+ <div class="value">{{this.model.patreon_id}}</div>+ </div>+ {{#if this.model.patreon_email_exists}}+ <div class="display-row">+ <div class="field">{{i18n "patreon.field.email"}}</div>+ <div class="value">+ {{#if this.patreon_email}}+ {{this.patreon_email}}+ {{else}}+ <DButton+ @action={{this.checkPatreonEmail}}+ @icon="far-envelope"+ @label="admin.users.check_email.text"+ @title="admin.users.check_email.title"+ class="btn-default"+ />+ {{/if}}+ </div>+ </div>+ {{/if}}+ {{#if this.model.patreon_amount_cents}}+ <div class="display-row">+ <div class="field">{{i18n "patreon.field.amount_cents"}}</div>+ <div class="value">{{this.model.patreon_amount_cents}}</div>+ </div>+ {{/if}}+ {{#if this.model.patreon_rewards}}+ <div class="display-row">+ <div class="field">{{i18n "patreon.field.rewards"}}</div>+ <div class="value">{{this.model.patreon_rewards}}</div>+ </div>+ {{/if}}+ {{#if this.model.patreon_declined_since}}+ <div class="display-row">+ <div class="field">{{i18n "patreon.field.declined_since"}}</div>+ <div class="value">{{htmlSafe+ this.format-date+ this.model.patreon_declined_since+ }}</div>+ </div>+ {{/if}}+ <div class="display-row">+ <div class="field">{{i18n "patreon.field.more_details.label"}}</div><div class="value">- {{#if this.patreon_email}}- {{this.patreon_email}}+ <a+ rel="noopener noreferrer"+ target="_blank"+ href={{this.patron_url}}+ >+ {{icon "up-right-from-square"}}+ </a>+ </div>+ <div class="controls">+ {{#if this.model.patreon_email}}+ {{i18n "patreon.field.more_details.help_text.email_available"}}{{else}}- <DButton- @action={{this.checkPatreonEmail}}- @icon="far-envelope"- @label="admin.users.check_email.text"- @title="admin.users.check_email.title"- class="btn-default"- />+ {{i18n+ "patreon.field.more_details.help_text.email_not_available"+ }}{{/if}}</div></div>- {{/if}}- {{#if this.model.patreon_amount_cents}}- <div class="display-row">- <div class="field">{{i18n "patreon.field.amount_cents"}}</div>- <div class="value">{{this.model.patreon_amount_cents}}</div>- </div>- {{/if}}- {{#if this.model.patreon_rewards}}- <div class="display-row">- <div class="field">{{i18n "patreon.field.rewards"}}</div>- <div class="value">{{this.model.patreon_rewards}}</div>- </div>- {{/if}}- {{#if this.model.patreon_declined_since}}- <div class="display-row">- <div class="field">{{i18n "patreon.field.declined_since"}}</div>- <div class="value">{{htmlSafe- this.format-date- this.model.patreon_declined_since- }}</div>- </div>- {{/if}}- <div class="display-row">- <div class="field">{{i18n "patreon.field.more_details.label"}}</div>- <div class="value">- <a rel="noopener noreferrer" target="_blank" href={{this.patron_url}}>- {{icon "up-right-from-square"}}- </a>- </div>- <div class="controls">- {{#if this.model.patreon_email}}- {{i18n "patreon.field.more_details.help_text.email_available"}}- {{else}}- {{i18n "patreon.field.more_details.help_text.email_not_available"}}- {{/if}}- </div>- </div>- </section>+ </section>+ </div></template>}diff --git a/plugins/discourse-patreon/assets/javascripts/discourse/connectors/topic-above-footer-buttons/patreon.gjs b/plugins/discourse-patreon/assets/javascripts/discourse/connectors/topic-above-footer-buttons/patreon.gjsindex b409d73e106..9a1840e6006 100644--- a/plugins/discourse-patreon/assets/javascripts/discourse/connectors/topic-above-footer-buttons/patreon.gjs+++ b/plugins/discourse-patreon/assets/javascripts/discourse/connectors/topic-above-footer-buttons/patreon.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { on } from "@ember/modifier";import { action } from "@ember/object";diff --git a/plugins/discourse-post-voting/assets/javascripts/discourse/components/reviewable-post-voting-comment.gjs b/plugins/discourse-post-voting/assets/javascripts/discourse/components/reviewable-post-voting-comment.gjsindex 1fc5b358339..35d298ac041 100644--- a/plugins/discourse-post-voting/assets/javascripts/discourse/components/reviewable-post-voting-comment.gjs+++ b/plugins/discourse-post-voting/assets/javascripts/discourse/components/reviewable-post-voting-comment.gjs@@ -33,15 +33,12 @@ export default class ReviewablePostVotingComment extends Component {</div><div class="post-contents-wrapper">- <ReviewableCreatedBy- @user={{@reviewable.target_created_by}}- @tagName=""- />+ <ReviewableCreatedBy @user={{@reviewable.target_created_by}} />+<div class="post-contents"><ReviewablePostHeader@reviewable={{@reviewable}}@createdBy={{@reviewable.target_created_by}}- @tagName=""/><div class="post-body">diff --git a/plugins/discourse-post-voting/assets/javascripts/discourse/components/reviewable-refresh/post-voting-comment.gjs b/plugins/discourse-post-voting/assets/javascripts/discourse/components/reviewable-refresh/post-voting-comment.gjsindex 84748a0c121..eda4afa4e62 100644--- a/plugins/discourse-post-voting/assets/javascripts/discourse/components/reviewable-refresh/post-voting-comment.gjs+++ b/plugins/discourse-post-voting/assets/javascripts/discourse/components/reviewable-refresh/post-voting-comment.gjs@@ -9,8 +9,8 @@ export default <template><div class="review-item__meta-label">{{i18n "review.posted_in"}}</div><div class="review-item__meta-topic-title">- <ReviewableTopicLink @reviewable={{@reviewable}} @tagName="" />- <ReviewablePostEdits @reviewable={{@reviewable}} @tagName="" />+ <ReviewableTopicLink @reviewable={{@reviewable}} />+ <ReviewablePostEdits @reviewable={{@reviewable}} /></div><div class="review-item__meta-label">{{i18n "review.review_user"}}</div>diff --git a/plugins/discourse-post-voting/assets/javascripts/discourse/connectors/category-custom-settings/post-voting-category-settings.gjs b/plugins/discourse-post-voting/assets/javascripts/discourse/connectors/category-custom-settings/post-voting-category-settings.gjsindex e811bbfe471..064236dd225 100644--- a/plugins/discourse-post-voting/assets/javascripts/discourse/connectors/category-custom-settings/post-voting-category-settings.gjs+++ b/plugins/discourse-post-voting/assets/javascripts/discourse/connectors/category-custom-settings/post-voting-category-settings.gjs@@ -1,30 +1,34 @@/* eslint-disable ember/no-classic-components */import Component, { Input } from "@ember/component";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import { i18n } from "discourse-i18n";@tagName("")-@classNames("category-custom-settings-outlet", "post-voting-category-settings")export default class PostVotingCategorySettings extends Component {<template>- <h3>{{i18n "category.post_voting_settings_heading"}}</h3>- <section class="field">- <label>- <Input- id="create-as-post-voting-default"- @type="checkbox"- @checked={{this.category.custom_fields.create_as_post_voting_default}}- />- {{i18n "category.create_as_post_voting_default"}}- </label>- <label>- <Input- id="only-post-voting-in-this-category"- @type="checkbox"- @checked={{this.category.custom_fields.only_post_voting_in_this_category}}- />- {{i18n "category.only_post_voting_in_this_category"}}- </label>- </section>+ <div+ class="category-custom-settings-outlet post-voting-category-settings"+ ...attributes+ >+ <h3>{{i18n "category.post_voting_settings_heading"}}</h3>+ <section class="field">+ <label>+ <Input+ id="create-as-post-voting-default"+ @type="checkbox"+ @checked={{this.category.custom_fields.create_as_post_voting_default}}+ />+ {{i18n "category.create_as_post_voting_default"}}+ </label>+ <label>+ <Input+ id="only-post-voting-in-this-category"+ @type="checkbox"+ @checked={{this.category.custom_fields.only_post_voting_in_this_category}}+ />+ {{i18n "category.only_post_voting_in_this_category"}}+ </label>+ </section>+ </div></template>}diff --git a/plugins/discourse-reactions/assets/javascripts/discourse/connectors/user-activity-bottom/discourse-reactions-user-activity-reactions.gjs b/plugins/discourse-reactions/assets/javascripts/discourse/connectors/user-activity-bottom/discourse-reactions-user-activity-reactions.gjsindex d8abef6331e..a91ba4e3521 100644--- a/plugins/discourse-reactions/assets/javascripts/discourse/connectors/user-activity-bottom/discourse-reactions-user-activity-reactions.gjs+++ b/plugins/discourse-reactions/assets/javascripts/discourse/connectors/user-activity-bottom/discourse-reactions-user-activity-reactions.gjs@@ -1,22 +1,23 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { LinkTo } from "@ember/routing";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import icon from "discourse/helpers/d-icon";import { i18n } from "discourse-i18n";-@tagName("li")-@classNames(- "user-activity-bottom-outlet",- "discourse-reactions-user-activity-reactions"-)+@tagName("")export default class DiscourseReactionsUserActivityReactions extends Component {<template>- {{#if this.siteSettings.discourse_reactions_enabled}}- <LinkTo @route="userActivity.reactions">- {{icon "far-face-smile"}}- <span>{{i18n "discourse_reactions.reactions_title"}}</span>- </LinkTo>- {{/if}}+ <li+ class="user-activity-bottom-outlet discourse-reactions-user-activity-reactions"+ ...attributes+ >+ {{#if this.siteSettings.discourse_reactions_enabled}}+ <LinkTo @route="userActivity.reactions">+ {{icon "far-face-smile"}}+ <span>{{i18n "discourse_reactions.reactions_title"}}</span>+ </LinkTo>+ {{/if}}+ </li></template>}diff --git a/plugins/discourse-reactions/assets/javascripts/discourse/connectors/user-notifications-bottom/discourse-reactions-user-notification-reactions.gjs b/plugins/discourse-reactions/assets/javascripts/discourse/connectors/user-notifications-bottom/discourse-reactions-user-notification-reactions.gjsindex 75076f309c0..5c9b3e49b5f 100644--- a/plugins/discourse-reactions/assets/javascripts/discourse/connectors/user-notifications-bottom/discourse-reactions-user-notification-reactions.gjs+++ b/plugins/discourse-reactions/assets/javascripts/discourse/connectors/user-notifications-bottom/discourse-reactions-user-notification-reactions.gjs@@ -1,22 +1,23 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { LinkTo } from "@ember/routing";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import icon from "discourse/helpers/d-icon";import { i18n } from "discourse-i18n";-@tagName("li")-@classNames(- "user-notifications-bottom-outlet",- "discourse-reactions-user-notification-reactions"-)+@tagName("")export default class DiscourseReactionsUserNotificationReactions extends Component {<template>- {{#if this.siteSettings.discourse_reactions_enabled}}- <LinkTo @route="userNotifications.reactionsReceived">- {{icon "far-face-smile"}}- <span>{{i18n "discourse_reactions.reactions_title"}}</span>- </LinkTo>- {{/if}}+ <li+ class="user-notifications-bottom-outlet discourse-reactions-user-notification-reactions"+ ...attributes+ >+ {{#if this.siteSettings.discourse_reactions_enabled}}+ <LinkTo @route="userNotifications.reactionsReceived">+ {{icon "far-face-smile"}}+ <span>{{i18n "discourse_reactions.reactions_title"}}</span>+ </LinkTo>+ {{/if}}+ </li></template>}diff --git a/plugins/discourse-solved/assets/javascripts/discourse/connectors/category-custom-settings/solved-settings.gjs b/plugins/discourse-solved/assets/javascripts/discourse/connectors/category-custom-settings/solved-settings.gjsindex 9e1543734a4..9c4081e2b47 100644--- a/plugins/discourse-solved/assets/javascripts/discourse/connectors/category-custom-settings/solved-settings.gjs+++ b/plugins/discourse-solved/assets/javascripts/discourse/connectors/category-custom-settings/solved-settings.gjs@@ -3,12 +3,11 @@ import Component from "@ember/component";import { fn } from "@ember/helper";import { on } from "@ember/modifier";import { action } from "@ember/object";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import withEventValue from "discourse/helpers/with-event-value";import { i18n } from "discourse-i18n";@tagName("")-@classNames("category-custom-settings-outlet", "solved-settings")export default class SolvedSettings extends Component {@actiononChangeSetting(value) {@@ -19,44 +18,46 @@ export default class SolvedSettings extends Component {}<template>- <h3>{{i18n "solved.title"}}</h3>+ <div class="category-custom-settings-outlet solved-settings" ...attributes>+ <h3>{{i18n "solved.title"}}</h3>- {{#unless this.siteSettings.allow_solved_on_all_topics}}- <section class="field">- <div class="enable-accepted-answer">- <label class="checkbox-label">- <input- {{on- "change"- (withEventValue this.onChangeSetting "target.checked")- }}- checked={{this.category.enable_accepted_answers}}- type="checkbox"- />- {{i18n "solved.allow_accepted_answers"}}- </label>- </div>- </section>- {{/unless}}+ {{#unless this.siteSettings.allow_solved_on_all_topics}}+ <section class="field">+ <div class="enable-accepted-answer">+ <label class="checkbox-label">+ <input+ {{on+ "change"+ (withEventValue this.onChangeSetting "target.checked")+ }}+ checked={{this.category.enable_accepted_answers}}+ type="checkbox"+ />+ {{i18n "solved.allow_accepted_answers"}}+ </label>+ </div>+ </section>+ {{/unless}}- <section class="field auto-close-solved-topics">- <label for="auto-close-solved-topics">- {{i18n "solved.solved_topics_auto_close_hours"}}- </label>- <input- {{on- "input"- (withEventValue- (fn- (mut this.category.custom_fields.solved_topics_auto_close_hours)+ <section class="field auto-close-solved-topics">+ <label for="auto-close-solved-topics">+ {{i18n "solved.solved_topics_auto_close_hours"}}+ </label>+ <input+ {{on+ "input"+ (withEventValue+ (fn+ (mut this.category.custom_fields.solved_topics_auto_close_hours)+ ))- )- }}- value={{this.category.custom_fields.solved_topics_auto_close_hours}}- type="number"- min="0"- id="auto-close-solved-topics"- />- </section>+ }}+ value={{this.category.custom_fields.solved_topics_auto_close_hours}}+ type="number"+ min="0"+ id="auto-close-solved-topics"+ />+ </section>+ </div></template>}diff --git a/plugins/discourse-solved/assets/javascripts/discourse/connectors/topic-navigation/no-answer.gjs b/plugins/discourse-solved/assets/javascripts/discourse/connectors/topic-navigation/no-answer.gjsindex 64a2e175b39..c9eda4adb70 100644--- a/plugins/discourse-solved/assets/javascripts/discourse/connectors/topic-navigation/no-answer.gjs+++ b/plugins/discourse-solved/assets/javascripts/discourse/connectors/topic-navigation/no-answer.gjs@@ -1,7 +1,7 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { later } from "@ember/runloop";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import TopicNavigationPopup from "discourse/components/topic-navigation-popup";import { isTesting } from "discourse/lib/environment";import { i18n } from "discourse-i18n";@@ -11,8 +11,7 @@ const MAX_DURATION_WITH_NO_ANSWER = ONE_WEEK;const DISPLAY_DELAY = isTesting() ? 0 : 2000;const CONFETTI_PARTICLE_COUNT = 50;-@tagName("div")-@classNames("topic-navigation-outlet", "no-answer")+@tagName("")export default class NoAnswer extends Component {static shouldRender(args, context) {return !context.site.mobileView;@@ -33,7 +32,7 @@ export default class NoAnswer extends Component {);later(() => {- if (!this.element || this.isDestroying || this.isDestroyed) {+ if (this.isDestroying || this.isDestroyed) {return;}const topic = this.topic;@@ -85,21 +84,23 @@ export default class NoAnswer extends Component {}<template>- {{#if this.showConfetti}}- <div class="solved-confetti">- {{#each this.confettiParticles}}- <div class="solved-confetti-particle"></div>- {{/each}}- </div>- {{/if}}- {{#if this.show}}- <TopicNavigationPopup- @popupId="solved-notice"- @dismissDuration={{this.oneWeek}}- >- <h2>{{i18n "solved.no_answer.title"}}</h2>- <p>{{i18n "solved.no_answer.description"}}</p>- </TopicNavigationPopup>- {{/if}}+ <div class="topic-navigation-outlet no-answer" ...attributes>+ {{#if this.showConfetti}}+ <div class="solved-confetti">+ {{#each this.confettiParticles}}+ <div class="solved-confetti-particle"></div>+ {{/each}}+ </div>+ {{/if}}+ {{#if this.show}}+ <TopicNavigationPopup+ @popupId="solved-notice"+ @dismissDuration={{this.oneWeek}}+ >+ <h2>{{i18n "solved.no_answer.title"}}</h2>+ <p>{{i18n "solved.no_answer.description"}}</p>+ </TopicNavigationPopup>+ {{/if}}+ </div></template>}diff --git a/plugins/discourse-solved/assets/javascripts/discourse/connectors/user-card-metadata/accepted-answers.gjs b/plugins/discourse-solved/assets/javascripts/discourse/connectors/user-card-metadata/accepted-answers.gjsindex 39b78c8bca9..13588fc2e18 100644--- a/plugins/discourse-solved/assets/javascripts/discourse/connectors/user-card-metadata/accepted-answers.gjs+++ b/plugins/discourse-solved/assets/javascripts/discourse/connectors/user-card-metadata/accepted-answers.gjs@@ -1,15 +1,16 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import { i18n } from "discourse-i18n";-@tagName("div")-@classNames("user-card-metadata-outlet", "accepted-answers")+@tagName("")export default class AcceptedAnswers extends Component {<template>- {{#if this.user.accepted_answers}}- <span class="desc">{{i18n "solutions"}}</span>- <span>{{this.user.accepted_answers}}</span>- {{/if}}+ <div class="user-card-metadata-outlet accepted-answers" ...attributes>+ {{#if this.user.accepted_answers}}+ <span class="desc">{{i18n "solutions"}}</span>+ <span>{{this.user.accepted_answers}}</span>+ {{/if}}+ </div></template>}diff --git a/plugins/discourse-subscriptions/assets/javascripts/discourse/components/campaign-banner.gjs b/plugins/discourse-subscriptions/assets/javascripts/discourse/components/campaign-banner.gjsindex 5a772c84b61..09cd8a59e56 100644--- a/plugins/discourse-subscriptions/assets/javascripts/discourse/components/campaign-banner.gjs+++ b/plugins/discourse-subscriptions/assets/javascripts/discourse/components/campaign-banner.gjs@@ -7,7 +7,7 @@ import { LinkTo } from "@ember/routing";import { later } from "@ember/runloop";import { service } from "@ember/service";import { htmlSafe } from "@ember/template";-import { classNameBindings } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import { observes } from "@ember-decorators/object";import ConditionalLoadingSpinner from "discourse/components/conditional-loading-spinner";import DButton from "discourse/components/d-button";@@ -21,7 +21,7 @@ import formatCurrency from "../helpers/format-currency";const SIDEBAR_BODY_CLASS = "subscription-campaign-sidebar";-@classNameBindings("isGoalMet:goal-met")+@tagName("")export default class CampaignBanner extends Component {@service router;@@ -222,89 +222,158 @@ export default class CampaignBanner extends Component {}<template>- {{#if this.shouldShow}}- <div- class="campaign-banner"- style={{htmlSafe (concat "box-shadow: 5px 5px #" this.dropShadowColor)}}- >- <DButton @icon="xmark" @action={{this.dismissBanner}} class="close" />-+ <div class={{if this.isGoalMet "goal-met"}} ...attributes>+ {{#if this.shouldShow}}<div- class="campaign-banner-info"- style={{htmlSafe this.bannerInfoStyle}}+ class="campaign-banner"+ style={{htmlSafe+ (concat "box-shadow: 5px 5px #" this.dropShadowColor)+ }}>- {{#if this.isGoalMet}}- <h2 class="campaign-banner-info-header">- {{i18n "discourse_subscriptions.campaign.success_title"}}- </h2>-- <p class="campaign-banner-info-description">- {{i18n "discourse_subscriptions.campaign.success_body"}}- </p>- {{else}}- <h2 class="campaign-banner-info-header">- {{i18n "discourse_subscriptions.campaign.title"}}- </h2>-- <p class="campaign-banner-info-description">- {{i18n "discourse_subscriptions.campaign.body"}}- </p>-- {{#if this.product}}- <LinkTo- @route="subscribe.show"- @model={{this.product}}- @disabled={{this.product.subscribed}}- class="btn btn-primary campaign-banner-info-button"- >- {{icon "far-heart"}}- {{icon "heart" class="hover-heart"}}- {{i18n "discourse_subscriptions.campaign.button"}}- </LinkTo>+ <DButton @icon="xmark" @action={{this.dismissBanner}} class="close" />++ <div+ class="campaign-banner-info"+ style={{htmlSafe this.bannerInfoStyle}}+ >+ {{#if this.isGoalMet}}+ <h2 class="campaign-banner-info-header">+ {{i18n "discourse_subscriptions.campaign.success_title"}}+ </h2>++ <p class="campaign-banner-info-description">+ {{i18n "discourse_subscriptions.campaign.success_body"}}+ </p>{{else}}- <LinkTo- @route={{this.subscribeRoute}}- class="btn btn-primary campaign-banner-info-button"- >- {{icon "far-heart"}}- {{icon "heart" class="hover-heart"}}- {{i18n "discourse_subscriptions.campaign.button"}}- </LinkTo>- {{/if}}- {{/if}}- </div>+ <h2 class="campaign-banner-info-header">+ {{i18n "discourse_subscriptions.campaign.title"}}+ </h2>- <div class="campaign-banner-progress">- {{#if this.isGoalMet}}- <div class="fireworks">- <div class="before"></div>- <div class="after"></div>- </div>-- <div class="campaign-banner-progress-success"></div>-- {{#if this.subscriberGoal}}- <p class="campaign-banner-progress-description">- {{htmlSafe- (i18n- "discourse_subscriptions.campaign.goal_comparison"- current=this.subscribers- goal=this.goalTarget- )- }}- {{i18n "discourse_subscriptions.campaign.subscribers"}}+ <p class="campaign-banner-info-description">+ {{i18n "discourse_subscriptions.campaign.body"}}</p>++ {{#if this.product}}+ <LinkTo+ @route="subscribe.show"+ @model={{this.product}}+ @disabled={{this.product.subscribed}}+ class="btn btn-primary campaign-banner-info-button"+ >+ {{icon "far-heart"}}+ {{icon "heart" class="hover-heart"}}+ {{i18n "discourse_subscriptions.campaign.button"}}+ </LinkTo>+ {{else}}+ <LinkTo+ @route={{this.subscribeRoute}}+ class="btn btn-primary campaign-banner-info-button"+ >+ {{icon "far-heart"}}+ {{icon "heart" class="hover-heart"}}+ {{i18n "discourse_subscriptions.campaign.button"}}+ </LinkTo>+ {{/if}}+ {{/if}}+ </div>++ <div class="campaign-banner-progress">+ {{#if this.isGoalMet}}+ <div class="fireworks">+ <div class="before"></div>+ <div class="after"></div>+ </div>++ <div class="campaign-banner-progress-success"></div>++ {{#if this.subscriberGoal}}+ <p class="campaign-banner-progress-description">+ {{htmlSafe+ (i18n+ "discourse_subscriptions.campaign.goal_comparison"+ current=this.subscribers+ goal=this.goalTarget+ )+ }}+ {{i18n "discourse_subscriptions.campaign.subscribers"}}+ </p>+ {{else}}+ <p class="campaign-banner-progress-description">+ {{htmlSafe+ (i18n+ "discourse_subscriptions.campaign.goal_comparison"+ current=(formatCurrency this.currency this.amountRaised)+ goal=(formatCurrency this.currency this.goalTarget)+ )+ }}+ {{i18n "discourse_subscriptions.campaign.raised"}}+ </p>++ {{#if this.showContributors}}+ <ConditionalLoadingSpinner+ @condition={{this.loading}}+ @size="small"+ >+ <div class="campaign-banner-progress-users">+ <p class="campaign-banner-progress-users-title">+ <strong>+ {{i18n+ "discourse_subscriptions.campaign.recent_contributors"+ }}+ </strong>+ </p>++ <div class="campaign-banner-progress-users-avatars">+ {{#each this.contributors as |contributor|}}+ {{avatar+ contributor+ avatarTemplatePath="avatar_template"+ usernamePath="username"+ namePath="name"+ imageSize="small"+ }}+ {{/each}}+ </div>+ </div>+ </ConditionalLoadingSpinner>+ {{/if}}+ {{/if}}{{else}}- <p class="campaign-banner-progress-description">- {{htmlSafe- (i18n- "discourse_subscriptions.campaign.goal_comparison"- current=(formatCurrency this.currency this.amountRaised)- goal=(formatCurrency this.currency this.goalTarget)- )- }}- {{i18n "discourse_subscriptions.campaign.raised"}}- </p>+ {{#if this.subscriberGoal}}+ <progress+ class="campaign-banner-progress-bar"+ value={{this.subscribers}}+ max={{this.siteSettings.discourse_subscriptions_campaign_goal}}+ ></progress>++ <p class="campaign-banner-progress-description">+ {{htmlSafe+ (i18n+ "discourse_subscriptions.campaign.goal_comparison"+ current=this.subscribers+ goal=this.goalTarget+ )+ }}+ {{i18n "discourse_subscriptions.campaign.subscribers"}}+ </p>+ {{else}}+ <progress+ class="campaign-banner-progress-bar"+ value={{this.amountRaised}}+ max={{this.siteSettings.discourse_subscriptions_campaign_goal}}+ ></progress>++ <p class="campaign-banner-progress-description">+ {{htmlSafe+ (i18n+ "discourse_subscriptions.campaign.goal_comparison"+ current=(formatCurrency this.currency this.amountRaised)+ goal=(formatCurrency this.currency this.goalTarget)+ )+ }}+ {{i18n "discourse_subscriptions.campaign.raised"}}+ </p>+ {{/if}}{{#if this.showContributors}}<ConditionalLoadingSpinner@@ -335,74 +404,9 @@ export default class CampaignBanner extends Component {</ConditionalLoadingSpinner>{{/if}}{{/if}}- {{else}}- {{#if this.subscriberGoal}}- <progress- class="campaign-banner-progress-bar"- value={{this.subscribers}}- max={{this.siteSettings.discourse_subscriptions_campaign_goal}}- ></progress>-- <p class="campaign-banner-progress-description">- {{htmlSafe- (i18n- "discourse_subscriptions.campaign.goal_comparison"- current=this.subscribers- goal=this.goalTarget- )- }}- {{i18n "discourse_subscriptions.campaign.subscribers"}}- </p>- {{else}}- <progress- class="campaign-banner-progress-bar"- value={{this.amountRaised}}- max={{this.siteSettings.discourse_subscriptions_campaign_goal}}- ></progress>-- <p class="campaign-banner-progress-description">- {{htmlSafe- (i18n- "discourse_subscriptions.campaign.goal_comparison"- current=(formatCurrency this.currency this.amountRaised)- goal=(formatCurrency this.currency this.goalTarget)- )- }}- {{i18n "discourse_subscriptions.campaign.raised"}}- </p>- {{/if}}-- {{#if this.showContributors}}- <ConditionalLoadingSpinner- @condition={{this.loading}}- @size="small"- >- <div class="campaign-banner-progress-users">- <p class="campaign-banner-progress-users-title">- <strong>- {{i18n- "discourse_subscriptions.campaign.recent_contributors"- }}- </strong>- </p>-- <div class="campaign-banner-progress-users-avatars">- {{#each this.contributors as |contributor|}}- {{avatar- contributor- avatarTemplatePath="avatar_template"- usernamePath="username"- namePath="name"- imageSize="small"- }}- {{/each}}- </div>- </div>- </ConditionalLoadingSpinner>- {{/if}}- {{/if}}+ </div></div>- </div>- {{/if}}+ {{/if}}+ </div></template>}diff --git a/plugins/discourse-subscriptions/assets/javascripts/discourse/components/create-coupon-form.gjs b/plugins/discourse-subscriptions/assets/javascripts/discourse/components/create-coupon-form.gjsindex 4dd03de5aee..b2452d78d67 100644--- a/plugins/discourse-subscriptions/assets/javascripts/discourse/components/create-coupon-form.gjs+++ b/plugins/discourse-subscriptions/assets/javascripts/discourse/components/create-coupon-form.gjs@@ -3,12 +3,14 @@ import Component, { Input } from "@ember/component";import { fn } from "@ember/helper";import { on } from "@ember/modifier";import { action } from "@ember/object";+import { tagName } from "@ember-decorators/component";import DButton from "discourse/components/d-button";import withEventValue from "discourse/helpers/with-event-value";import discourseComputed from "discourse/lib/decorators";import ComboBox from "discourse/select-kit/components/combo-box";import { i18n } from "discourse-i18n";+@tagName("")export default class CreateCouponForm extends Component {discountType = "amount";discount = null;@@ -41,7 +43,7 @@ export default class CreateCouponForm extends Component {}<template>- <div class="create-coupon-form">+ <div class="create-coupon-form" ...attributes><form class="form-horizontal"><p><label for="promo_code">diff --git a/plugins/discourse-subscriptions/assets/javascripts/discourse/components/payment-options.gjs b/plugins/discourse-subscriptions/assets/javascripts/discourse/components/payment-options.gjsindex edef6e21ed7..3a4e1cba100 100644--- a/plugins/discourse-subscriptions/assets/javascripts/discourse/components/payment-options.gjs+++ b/plugins/discourse-subscriptions/assets/javascripts/discourse/components/payment-options.gjs@@ -1,10 +1,12 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { action } from "@ember/object";+import { tagName } from "@ember-decorators/component";import discourseComputed from "discourse/lib/decorators";import { i18n } from "discourse-i18n";import PaymentPlan from "./payment-plan";+@tagName("")export default class PaymentOptions extends Component {@discourseComputed("plans")orderedPlans(plans) {@@ -26,18 +28,20 @@ export default class PaymentOptions extends Component {}<template>- <p>- {{i18n "discourse_subscriptions.plans.select"}}- </p>+ <div ...attributes>+ <p>+ {{i18n "discourse_subscriptions.plans.select"}}+ </p>- <div class="subscribe-buttons">- {{#each this.orderedPlans as |plan|}}- <PaymentPlan- @plan={{plan}}- @selectedPlan={{this.selectedPlan}}- @clickPlan={{this.clickPlan}}- />- {{/each}}+ <div class="subscribe-buttons">+ {{#each this.orderedPlans as |plan|}}+ <PaymentPlan+ @plan={{plan}}+ @selectedPlan={{this.selectedPlan}}+ @clickPlan={{this.clickPlan}}+ />+ {{/each}}+ </div></div></template>}diff --git a/plugins/discourse-subscriptions/assets/javascripts/discourse/components/product-item.gjs b/plugins/discourse-subscriptions/assets/javascripts/discourse/components/product-item.gjsindex 254ce9ca651..53dc38e5ef2 100644--- a/plugins/discourse-subscriptions/assets/javascripts/discourse/components/product-item.gjs+++ b/plugins/discourse-subscriptions/assets/javascripts/discourse/components/product-item.gjs@@ -2,64 +2,66 @@import Component from "@ember/component";import { LinkTo } from "@ember/routing";import { htmlSafe } from "@ember/template";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import { i18n } from "discourse-i18n";-@classNames("product")+@tagName("")export default class ProductItem extends Component {<template>- <h2>{{this.product.name}}</h2>+ <div class="product" ...attributes>+ <h2>{{this.product.name}}</h2>- <p class="product-description">- {{htmlSafe this.product.description}}- </p>+ <p class="product-description">+ {{htmlSafe this.product.description}}+ </p>- {{#if this.isLoggedIn}}- <div class="product-purchase">- {{#if this.product.repurchaseable}}- <LinkTo- @route="subscribe.show"- @model={{this.product.id}}- class="btn btn-primary"- >- {{i18n "discourse_subscriptions.subscribe.title"}}- </LinkTo>-- {{#if this.product.subscribed}}- <LinkTo- @route="user.billing.subscriptions"- @model={{this.currentUser.username}}- class="billing-link"- >- {{i18n "discourse_subscriptions.subscribe.view_past"}}- </LinkTo>- {{/if}}- {{else}}- {{#if this.product.subscribed}}- <span class="purchased">- ✓- {{i18n "discourse_subscriptions.subscribe.purchased"}}- </span>-- <LinkTo- @route="user.billing.subscriptions"- @model={{this.currentUser.username}}- class="billing-link"- >- {{i18n "discourse_subscriptions.subscribe.go_to_billing"}}- </LinkTo>- {{else}}+ {{#if this.isLoggedIn}}+ <div class="product-purchase">+ {{#if this.product.repurchaseable}}<LinkTo@route="subscribe.show"@model={{this.product.id}}- @disabled={{this.product.subscribed}}class="btn btn-primary">{{i18n "discourse_subscriptions.subscribe.title"}}</LinkTo>++ {{#if this.product.subscribed}}+ <LinkTo+ @route="user.billing.subscriptions"+ @model={{this.currentUser.username}}+ class="billing-link"+ >+ {{i18n "discourse_subscriptions.subscribe.view_past"}}+ </LinkTo>+ {{/if}}+ {{else}}+ {{#if this.product.subscribed}}+ <span class="purchased">+ ✓+ {{i18n "discourse_subscriptions.subscribe.purchased"}}+ </span>++ <LinkTo+ @route="user.billing.subscriptions"+ @model={{this.currentUser.username}}+ class="billing-link"+ >+ {{i18n "discourse_subscriptions.subscribe.go_to_billing"}}+ </LinkTo>+ {{else}}+ <LinkTo+ @route="subscribe.show"+ @model={{this.product.id}}+ @disabled={{this.product.subscribed}}+ class="btn btn-primary"+ >+ {{i18n "discourse_subscriptions.subscribe.title"}}+ </LinkTo>+ {{/if}}{{/if}}- {{/if}}- </div>- {{/if}}+ </div>+ {{/if}}+ </div></template>}diff --git a/plugins/discourse-subscriptions/assets/javascripts/discourse/components/product-list.gjs b/plugins/discourse-subscriptions/assets/javascripts/discourse/components/product-list.gjsindex d5db906bd89..35e482da07b 100644--- a/plugins/discourse-subscriptions/assets/javascripts/discourse/components/product-list.gjs+++ b/plugins/discourse-subscriptions/assets/javascripts/discourse/components/product-list.gjs@@ -1,12 +1,12 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { isEmpty } from "@ember/utils";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import discourseComputed from "discourse/lib/decorators";import { i18n } from "discourse-i18n";import ProductItem from "./product-item";-@classNames("product-list")+@tagName("")export default class ProductList extends Component {@discourseComputed("products")emptyProducts(products) {@@ -14,12 +14,14 @@ export default class ProductList extends Component {}<template>- {{#if this.emptyProducts}}- <p>{{i18n "discourse_subscriptions.subscribe.no_products"}}</p>- {{else}}- {{#each this.products as |product|}}- <ProductItem @product={{product}} @isLoggedIn={{this.isLoggedIn}} />- {{/each}}- {{/if}}+ <div class="product-list" ...attributes>+ {{#if this.emptyProducts}}+ <p>{{i18n "discourse_subscriptions.subscribe.no_products"}}</p>+ {{else}}+ {{#each this.products as |product|}}+ <ProductItem @product={{product}} @isLoggedIn={{this.isLoggedIn}} />+ {{/each}}+ {{/if}}+ </div></template>}diff --git a/plugins/discourse-subscriptions/assets/javascripts/discourse/connectors/above-main-container/subscriptions-campaign.gjs b/plugins/discourse-subscriptions/assets/javascripts/discourse/connectors/above-main-container/subscriptions-campaign.gjsindex b186ed9c266..28c04f63230 100644--- a/plugins/discourse-subscriptions/assets/javascripts/discourse/connectors/above-main-container/subscriptions-campaign.gjs+++ b/plugins/discourse-subscriptions/assets/javascripts/discourse/connectors/above-main-container/subscriptions-campaign.gjs@@ -1,10 +1,9 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import CampaignBanner from "../../components/campaign-banner";-@tagName("div")-@classNames("above-main-container-outlet", "subscriptions-campaign")+@tagName("")export default class SubscriptionsCampaign extends Component {static shouldRender(args, context) {const { siteSettings } = context;@@ -16,5 +15,12 @@ export default class SubscriptionsCampaign extends Component {);}- <template><CampaignBanner @connectorName="above-main-container" /></template>+ <template>+ <div+ class="above-main-container-outlet subscriptions-campaign"+ ...attributes+ >+ <CampaignBanner @connectorName="above-main-container" />+ </div>+ </template>}diff --git a/plugins/discourse-subscriptions/assets/javascripts/discourse/connectors/after-topic-footer-buttons/subscriptions-campaign-topic-footer.gjs b/plugins/discourse-subscriptions/assets/javascripts/discourse/connectors/after-topic-footer-buttons/subscriptions-campaign-topic-footer.gjsindex f89a44a739a..046a1d34996 100644--- a/plugins/discourse-subscriptions/assets/javascripts/discourse/connectors/after-topic-footer-buttons/subscriptions-campaign-topic-footer.gjs+++ b/plugins/discourse-subscriptions/assets/javascripts/discourse/connectors/after-topic-footer-buttons/subscriptions-campaign-topic-footer.gjs@@ -1,13 +1,9 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import CampaignBanner from "../../components/campaign-banner";-@tagName("span")-@classNames(- "after-topic-footer-buttons-outlet",- "subscriptions-campaign-topic-footer"-)+@tagName("")export default class SubscriptionsCampaignTopicFooter extends Component {static shouldRender(args, context) {const { siteSettings } = context;@@ -17,6 +13,11 @@ export default class SubscriptionsCampaignTopicFooter extends Component {}<template>- <CampaignBanner @connectorName="after-topic-footer-buttons" />+ <span+ class="after-topic-footer-buttons-outlet subscriptions-campaign-topic-footer"+ ...attributes+ >+ <CampaignBanner @connectorName="after-topic-footer-buttons" />+ </span></template>}diff --git a/plugins/discourse-subscriptions/assets/javascripts/discourse/connectors/before-topic-list/subscriptions-campaign-sidebar.gjs b/plugins/discourse-subscriptions/assets/javascripts/discourse/connectors/before-topic-list/subscriptions-campaign-sidebar.gjsindex 6067b487f9b..a8db6f10052 100644--- a/plugins/discourse-subscriptions/assets/javascripts/discourse/connectors/before-topic-list/subscriptions-campaign-sidebar.gjs+++ b/plugins/discourse-subscriptions/assets/javascripts/discourse/connectors/before-topic-list/subscriptions-campaign-sidebar.gjs@@ -1,10 +1,9 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import CampaignBanner from "../../components/campaign-banner";-@tagName("div")-@classNames("before-topic-list-outlet", "subscriptions-campaign-sidebar")+@tagName("")export default class SubscriptionsCampaignSidebar extends Component {static shouldRender(args, context) {const { siteSettings } = context;@@ -14,5 +13,12 @@ export default class SubscriptionsCampaignSidebar extends Component {return bannerLocation === "Sidebar" && !mobileView;}- <template><CampaignBanner @connectorName="before-topic-list" /></template>+ <template>+ <div+ class="before-topic-list-outlet subscriptions-campaign-sidebar"+ ...attributes+ >+ <CampaignBanner @connectorName="before-topic-list" />+ </div>+ </template>}diff --git a/plugins/discourse-subscriptions/assets/javascripts/discourse/connectors/user-main-nav/billing.gjs b/plugins/discourse-subscriptions/assets/javascripts/discourse/connectors/user-main-nav/billing.gjsindex 1fa06fc29fc..7ff7c18689e 100644--- a/plugins/discourse-subscriptions/assets/javascripts/discourse/connectors/user-main-nav/billing.gjs+++ b/plugins/discourse-subscriptions/assets/javascripts/discourse/connectors/user-main-nav/billing.gjs@@ -2,17 +2,12 @@import Component from "@ember/component";import { LinkTo } from "@ember/routing";import { service } from "@ember/service";-import {- classNameBindings,- classNames,- tagName,-} from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";+import concatClass from "discourse/helpers/concat-class";import icon from "discourse/helpers/d-icon";import { i18n } from "discourse-i18n";-@tagName("li")-@classNames("user-main-nav-outlet", "billing")-@classNameBindings("viewingSelf::hidden")+@tagName("")export default class Billing extends Component {@service currentUser;@@ -25,9 +20,18 @@ export default class Billing extends Component {}<template>- <LinkTo @route="user.billing">- {{icon "far-credit-card"}}- <span>{{i18n "discourse_subscriptions.navigation.billing"}}</span>- </LinkTo>+ <li+ class={{concatClass+ "user-main-nav-outlet"+ "billing"+ (unless this.viewingSelf "hidden")+ }}+ ...attributes+ >+ <LinkTo @route="user.billing">+ {{icon "far-credit-card"}}+ <span>{{i18n "discourse_subscriptions.navigation.billing"}}</span>+ </LinkTo>+ </li></template>}diff --git a/plugins/discourse-templates/assets/javascripts/discourse/connectors/editor-preview/d-templates.gjs b/plugins/discourse-templates/assets/javascripts/discourse/connectors/editor-preview/d-templates.gjsindex defc82f6740..3720db9de12 100644--- a/plugins/discourse-templates/assets/javascripts/discourse/connectors/editor-preview/d-templates.gjs+++ b/plugins/discourse-templates/assets/javascripts/discourse/connectors/editor-preview/d-templates.gjs@@ -2,14 +2,14 @@import Component from "@ember/component";import { action } from "@ember/object";import { service } from "@ember/service";-import { classNames } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import DButton from "discourse/components/d-button";import FilterableList from "../../components/d-templates/filterable-list";const SELECTOR_EDITOR_PREVIEW ="#reply-control .d-editor-preview-wrapper > .d-editor-preview";-@classNames("d-templates")+@tagName("")export default class DTemplatesEditorPreview extends Component {static shouldRender(args, context) {return !context.site.mobileView;@@ -56,18 +56,20 @@ export default class DTemplatesEditorPreview extends Component {}<template>- {{#if this.templatesVisible}}- <div class="d-templates-container">- <DButton- @action={{this.hide}}- @icon="xmark"- class="modal-close close btn-flat"- />- <FilterableList- @onInsertTemplate={{this.onInsertTemplate}}- @onAfterInsertTemplate={{this.hide}}- />- </div>- {{/if}}+ <div class="d-templates" ...attributes>+ {{#if this.templatesVisible}}+ <div class="d-templates-container">+ <DButton+ @action={{this.hide}}+ @icon="xmark"+ class="modal-close close btn-flat"+ />+ <FilterableList+ @onInsertTemplate={{this.onInsertTemplate}}+ @onAfterInsertTemplate={{this.hide}}+ />+ </div>+ {{/if}}+ </div></template>}diff --git a/plugins/discourse-topic-voting/assets/javascripts/discourse/connectors/topic-above-post-stream/topic-title-voting.gjs b/plugins/discourse-topic-voting/assets/javascripts/discourse/connectors/topic-above-post-stream/topic-title-voting.gjsindex 50d1ad33cce..04c5875e5f9 100644--- a/plugins/discourse-topic-voting/assets/javascripts/discourse/connectors/topic-above-post-stream/topic-title-voting.gjs+++ b/plugins/discourse-topic-voting/assets/javascripts/discourse/connectors/topic-above-post-stream/topic-title-voting.gjs@@ -1,24 +1,28 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import routeAction from "discourse/helpers/route-action";import VoteBox from "../../components/vote-box";-@tagName("div")-@classNames("topic-above-post-stream-outlet", "topic-title-voting")+@tagName("")export default class TopicTitleVoting extends Component {<template>- {{#if this.model.can_vote}}- {{#if this.model.postStream.loaded}}- {{#if this.model.postStream.firstPostPresent}}- <div class="voting title-voting">- <VoteBox- @topic={{this.model}}- @showLogin={{routeAction "showLogin"}}- />- </div>+ <div+ class="topic-above-post-stream-outlet topic-title-voting"+ ...attributes+ >+ {{#if this.model.can_vote}}+ {{#if this.model.postStream.loaded}}+ {{#if this.model.postStream.firstPostPresent}}+ <div class="voting title-voting">+ <VoteBox+ @topic={{this.model}}+ @showLogin={{routeAction "showLogin"}}+ />+ </div>+ {{/if}}{{/if}}{{/if}}- {{/if}}+ </div></template>}diff --git a/plugins/discourse-zendesk-plugin/assets/javascripts/discourse-zendesk-plugin/connectors/after-topic-footer-buttons/zendesk-topic-actions.gjs b/plugins/discourse-zendesk-plugin/assets/javascripts/discourse-zendesk-plugin/connectors/after-topic-footer-buttons/zendesk-topic-actions.gjsindex bd9720204f2..a654b8850a2 100644--- a/plugins/discourse-zendesk-plugin/assets/javascripts/discourse-zendesk-plugin/connectors/after-topic-footer-buttons/zendesk-topic-actions.gjs+++ b/plugins/discourse-zendesk-plugin/assets/javascripts/discourse-zendesk-plugin/connectors/after-topic-footer-buttons/zendesk-topic-actions.gjs@@ -1,13 +1,12 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";import { action } from "@ember/object";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import DButton from "discourse/components/d-button";import { ajax } from "discourse/lib/ajax";import { i18n } from "discourse-i18n";-@tagName("span")-@classNames("after-topic-footer-buttons-outlet", "zendesk-topic-actions")+@tagName("")export default class ZendeskTopicActions extends Component {init() {super.init(...arguments);@@ -41,29 +40,34 @@ export default class ZendeskTopicActions extends Component {}<template>- {{#if this.currentUser.staff}}- {{#if this.valid_zendesk_credential}}- {{#if this.zendesk_id}}- <a- href={{this.zendesk_url}}- target="_blank"- class="btn-primary btn"- rel="noopener noreferrer"- >- <i class="fa fa-clone"></i>- {{i18n "topic.view_zendesk_issue"}}- </a>+ <span+ class="after-topic-footer-buttons-outlet zendesk-topic-actions"+ ...attributes+ >+ {{#if this.currentUser.staff}}+ {{#if this.valid_zendesk_credential}}+ {{#if this.zendesk_id}}+ <a+ href={{this.zendesk_url}}+ target="_blank"+ class="btn-primary btn"+ rel="noopener noreferrer"+ >+ <i class="fa fa-clone"></i>+ {{i18n "topic.view_zendesk_issue"}}+ </a>+ {{else}}+ <DButton+ class="btn-primary"+ @action={{this.createZendeskIssue}}+ @label="topic.create_zendesk_issue"+ @disabled={{this.dirty}}+ />+ {{/if}}{{else}}- <DButton- class="btn-primary"- @action={{this.createZendeskIssue}}- @label="topic.create_zendesk_issue"- @disabled={{this.dirty}}- />+ <p>{{i18n "zendesk.credentials_not_setup"}}</p>{{/if}}- {{else}}- <p>{{i18n "zendesk.credentials_not_setup"}}</p>{{/if}}- {{/if}}+ </span></template>}diff --git a/plugins/poll/assets/javascripts/discourse/components/modal/poll-breakdown.gjs b/plugins/poll/assets/javascripts/discourse/components/modal/poll-breakdown.gjsindex cfd3f299669..0ab5a2c21d2 100644--- a/plugins/poll/assets/javascripts/discourse/components/modal/poll-breakdown.gjs+++ b/plugins/poll/assets/javascripts/discourse/components/modal/poll-breakdown.gjs@@ -6,6 +6,7 @@ import { action } from "@ember/object";import { service } from "@ember/service";import { classify } from "@ember/string";import { htmlSafe } from "@ember/template";+import { tagName } from "@ember-decorators/component";import DModal from "discourse/components/d-modal";import concatClass from "discourse/helpers/concat-class";import { ajax } from "discourse/lib/ajax";@@ -17,6 +18,7 @@ import { i18n } from "discourse-i18n";import PollBreakdownChart from "discourse/plugins/poll/discourse/components/poll-breakdown-chart";import PollBreakdownOption from "discourse/plugins/poll/discourse/components/poll-breakdown-option";+@tagName("")export default class PollBreakdownModal extends Component {@service dialog;@service siteSettings;diff --git a/plugins/poll/assets/javascripts/discourse/components/poll-breakdown-chart.gjs b/plugins/poll/assets/javascripts/discourse/components/poll-breakdown-chart.gjsindex 821772aa7da..be3df0a4368 100644--- a/plugins/poll/assets/javascripts/discourse/components/poll-breakdown-chart.gjs+++ b/plugins/poll/assets/javascripts/discourse/components/poll-breakdown-chart.gjs@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import { mapBy } from "@ember/object/computed";import { next } from "@ember/runloop";diff --git a/plugins/styleguide/assets/javascripts/discourse/components/styleguide-icons.gjs b/plugins/styleguide/assets/javascripts/discourse/components/styleguide-icons.gjsindex 98c143c9bad..aa5f1e59378 100644--- a/plugins/styleguide/assets/javascripts/discourse/components/styleguide-icons.gjs+++ b/plugins/styleguide/assets/javascripts/discourse/components/styleguide-icons.gjs@@ -1,14 +1,13 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { classNames, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";import icon from "discourse/helpers/d-icon";import { uniqueItemsFromArray } from "discourse/lib/array-tools";import { afterRender } from "discourse/lib/decorators";import { REPLACEMENTS } from "discourse/lib/icon-library";import discourseLater from "discourse/lib/later";-@tagName("section")-@classNames("styleguide-icons")+@tagName("")export default class StyleguideIcons extends Component {iconIds = [];@@ -31,11 +30,13 @@ export default class StyleguideIcons extends Component {}<template>- {{#each this.iconIds as |id|}}- <div class="styleguide-icon">- {{icon id}}- <span>{{id}}</span>- </div>- {{/each}}+ <section class="styleguide-icons" ...attributes>+ {{#each this.iconIds as |id|}}+ <div class="styleguide-icon">+ {{icon id}}+ <span>{{id}}</span>+ </div>+ {{/each}}+ </section></template>}diff --git a/plugins/styleguide/assets/javascripts/discourse/components/styleguide-markdown.js b/plugins/styleguide/assets/javascripts/discourse/components/styleguide-markdown.jsindex e2d970514cf..ed6361b6471 100644--- a/plugins/styleguide/assets/javascripts/discourse/components/styleguide-markdown.js+++ b/plugins/styleguide/assets/javascripts/discourse/components/styleguide-markdown.js@@ -1,4 +1,4 @@-/* eslint-disable ember/no-classic-components */+/* eslint-disable ember/no-classic-components, ember/require-tagless-components */import Component from "@ember/component";import $ from "jquery";import { cook } from "discourse/lib/text";diff --git a/plugins/styleguide/assets/javascripts/discourse/components/styleguide-section.gjs b/plugins/styleguide/assets/javascripts/discourse/components/styleguide-section.gjsindex 09af9a97c72..e441e880852 100644--- a/plugins/styleguide/assets/javascripts/discourse/components/styleguide-section.gjs+++ b/plugins/styleguide/assets/javascripts/discourse/components/styleguide-section.gjs@@ -1,12 +1,12 @@/* eslint-disable ember/no-classic-components */import Component from "@ember/component";-import { classNameBindings, tagName } from "@ember-decorators/component";+import { tagName } from "@ember-decorators/component";+import concatClass from "discourse/helpers/concat-class";import computed from "discourse/lib/decorators";import { i18n } from "discourse-i18n";import sectionTitle from "discourse/plugins/styleguide/discourse/helpers/section-title";-@tagName("section")-@classNameBindings(":styleguide-section", "sectionClass")+@tagName("")export default class StyleguideSection extends Component {didReceiveAttrs() {super.didReceiveAttrs(...arguments);@@ -21,16 +21,21 @@ export default class StyleguideSection extends Component {}<template>- <h1 class="section-title">- {{#if this.section}}- {{sectionTitle this.section.id}}- {{else}}- {{i18n this.title}}- {{/if}}- </h1>+ <section+ class={{concatClass "styleguide-section" this.sectionClass}}+ ...attributes+ >+ <h1 class="section-title">+ {{#if this.section}}+ {{sectionTitle this.section.id}}+ {{else}}+ {{i18n this.title}}+ {{/if}}+ </h1>- <div class="styleguide-section-contents">- {{yield}}- </div>+ <div class="styleguide-section-contents">+ {{yield}}+ </div>+ </section></template>}