DEV: Update linting (#340)

This commit is contained in:
Jarek Radosz
2025-03-17 12:00:55 +00:00
committed by GitHub
parent 17d0f09ed1
commit 4e3521fd25
7 changed files with 1185 additions and 1323 deletions
@@ -1,6 +1,3 @@
import TopicListItem from "discourse/components/topic-list-item";
import discourseComputed from "discourse/lib/decorators";
import { withSilencedDeprecations } from "discourse/lib/deprecated";
import { withPluginApi } from "discourse/lib/plugin-api";
export default {
@@ -8,20 +5,6 @@ export default {
initialize() {
withPluginApi("1.39.0", (api) => {
// TODO: cvx - remove after the glimmer topic list transition
withSilencedDeprecations("discourse.hbr-topic-list-overrides", () => {
TopicListItem.reopen({
@discourseComputed()
unboundClassNames() {
let classList = this._super(...arguments);
if (this.topic.has_accepted_answer) {
classList += " status-solved";
}
return classList;
},
});
});
api.registerValueTransformer(
"topic-list-item-class",
({ value, context }) => {
+1
View File
@@ -10,6 +10,7 @@
white-space: nowrap;
}
}
&.expanded {
.accepted,
.unaccepted {
+5 -2
View File
@@ -4,6 +4,7 @@ $solved-color: green;
&.solved-status-filter {
min-width: auto;
margin-right: 0.5em;
.select-kit-header {
color: var(--primary-high);
}
@@ -18,6 +19,7 @@ $solved-color: green;
// anon text
.accepted-text {
white-space: nowrap;
.d-icon,
.accepted-label {
color: $solved-color;
@@ -36,10 +38,12 @@ $solved-color: green;
.post-controls span.accepted-text {
padding: 8px 10px;
font-size: $font-up-1;
span {
display: inline-block;
padding: 8px 1px;
}
.accepted-label {
margin-left: 7px;
}
@@ -53,9 +57,8 @@ $solved-color: green;
.by {
display: none;
}
margin-top: 20px;
margin-bottom: 0px;
margin-bottom: 0;
font-size: 13px;
}