build fix, lint, minor fix

This commit is contained in:
bniwredyc 2023-04-04 02:09:56 +02:00
parent a822edd6f7
commit 547ea6d687
6 changed files with 10 additions and 12 deletions

View File

@ -1,8 +1,6 @@
{ {
"extends": [ "extends": [
"stylelint-config-standard-scss", "stylelint-config-standard-scss"
"stylelint-config-prettier-scss",
"stylelint-config-css-modules"
], ],
"plugins": [ "plugins": [
"stylelint-order", "stylelint-order",

View File

@ -125,7 +125,7 @@ export const CommentsTree = (props: Props) => {
onClick={() => { onClick={() => {
setCommentsOrder('newOnly') setCommentsOrder('newOnly')
}} }}
className={styles.commentsViewSwitcherButton} class={styles.commentsViewSwitcherButton}
/> />
</li> </li>
</Show> </Show>
@ -136,7 +136,7 @@ export const CommentsTree = (props: Props) => {
onClick={() => { onClick={() => {
setCommentsOrder('createdAt') setCommentsOrder('createdAt')
}} }}
className={styles.commentsViewSwitcherButton} class={styles.commentsViewSwitcherButton}
/> />
</li> </li>
<li classList={{ selected: commentsOrder() === 'rating' }}> <li classList={{ selected: commentsOrder() === 'rating' }}>
@ -146,7 +146,7 @@ export const CommentsTree = (props: Props) => {
onClick={() => { onClick={() => {
setCommentsOrder('rating') setCommentsOrder('rating')
}} }}
className={styles.commentsViewSwitcherButton} class={styles.commentsViewSwitcherButton}
/> />
</li> </li>
</ul> </ul>

View File

@ -1,7 +1,7 @@
import { capitalize, formatDate } from '../../utils' import { capitalize, formatDate } from '../../utils'
import { Icon } from '../_shared/Icon' import { Icon } from '../_shared/Icon'
import { AuthorCard } from '../Author/Card' import { AuthorCard } from '../Author/Card'
import { createEffect, createMemo, createSignal, For, Match, onMount, Show, Switch } from 'solid-js' import { createMemo, createSignal, For, Match, onMount, Show, Switch } from 'solid-js'
import type { Author, Shout } from '../../graphql/types.gen' import type { Author, Shout } from '../../graphql/types.gen'
import MD from './MD' import MD from './MD'
import { SharePopup } from './SharePopup' import { SharePopup } from './SharePopup'
@ -13,7 +13,7 @@ import { useSession } from '../../context/session'
import VideoPlayer from './VideoPlayer' import VideoPlayer from './VideoPlayer'
import Slider from '../_shared/Slider' import Slider from '../_shared/Slider'
import { getPagePath } from '@nanostores/router' import { getPagePath } from '@nanostores/router'
import { router, useRouter } from '../../stores/router' import { router } from '../../stores/router'
import { useReactions } from '../../context/reactions' import { useReactions } from '../../context/reactions'
import { Title } from '@solidjs/meta' import { Title } from '@solidjs/meta'
import { useLocalize } from '../../context/localize' import { useLocalize } from '../../context/localize'

View File

@ -18,7 +18,7 @@ export const EditorBubbleMenu = (props: BubbleMenuProps) => {
const [listBubbleOpen, setListBubbleOpen] = createSignal<boolean>(false) const [listBubbleOpen, setListBubbleOpen] = createSignal<boolean>(false)
const [linkEditorOpen, setLinkEditorOpen] = createSignal<boolean>(false) const [linkEditorOpen, setLinkEditorOpen] = createSignal<boolean>(false)
const isActive = (name: string, attributes?: {}) => const isActive = (name: string, attributes?: unknown) =>
createEditorTransaction( createEditorTransaction(
() => props.editor, () => props.editor,
(editor) => { (editor) => {

View File

@ -29,7 +29,7 @@ export const ProfilePopup = (props: ProfilePopupProps) => {
<a href="#">{t('Subscriptions')}</a> <a href="#">{t('Subscriptions')}</a>
</li> </li>
<li> <li>
<a href={`${getPagePath(router, 'author', { slug: userSlug() })}/?by=commented`}> <a href={`${getPagePath(router, 'author', { slug: user().slug })}/?by=commented`}>
{t('Comments')} {t('Comments')}
</a> </a>
</li> </li>

View File

@ -10,7 +10,7 @@ type Props = {
loading?: boolean loading?: boolean
disabled?: boolean disabled?: boolean
onClick?: () => void onClick?: () => void
className?: string | '' class?: string
} }
export const Button = (props: Props) => { export const Button = (props: Props) => {
@ -26,7 +26,7 @@ export const Button = (props: Props) => {
{ {
[styles.loading]: props.loading [styles.loading]: props.loading
}, },
props.className props.class
)} )}
> >
{props.value} {props.value}