site = try_site.data;
initializeSite(site);
- if (path != "/setup" && !site.site_view.local_site.site_setup) {
+ if (path !== "/setup" && !site.site_view.local_site.site_setup) {
return res.redirect("/setup");
}
this.props.moderators
);
-
- const borderColor = this.props.node.depth
- ? colorList[(this.props.node.depth - 1) % colorList.length]
- : colorList[0];
const moreRepliesBorderColor = this.props.node.depth
? colorList[this.props.node.depth % colorList.length]
: colorList[0];
</div>
{showMoreChildren && (
<div
- className={`details ml-1 comment-node py-2 ${
- !this.props.noBorder ? "border-top border-light" : ""
- }`}
+ className={classNames("details ml-1 comment-node py-2", {
+ "border-top border-light": !this.props.noBorder,
+ })}
style={`border-left: 2px ${moreRepliesBorderColor} solid !important`}
>
<button
linkBtn(small = false) {
const cv = this.commentView;
+
const classnames = classNames("btn btn-link btn-animate text-muted", {
"btn-sm": small,
});
];
function hsl(num: number) {
- return `hsla(${num}, 35%, 50%, 1)`;
+ return `hsla(${num}, 35%, 50%, 0.5)`;
}
export function hostname(url: string): string {