mirror of
https://github.com/discourse/discourse-solved.git
synced 2026-09-18 07:22:14 -04:00
DEV: Update linting (#340)
This commit is contained in:
@@ -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 }) => {
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
&.expanded {
|
||||
.accepted,
|
||||
.unaccepted {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user