Linter fixies

This commit is contained in:
ilya-bkv 2023-04-29 16:54:15 +03:00
parent e39b6f4068
commit b30e3c3141
4 changed files with 29 additions and 13 deletions

View File

@ -234,19 +234,26 @@
"You've confirmed email": "You've confirmed email",
"You've reached a non-existed page": "You've reached a non-existed page",
"Your name will appear on your profile page and as your signature in publications, comments and responses.": "Your name will appear on your profile page and as your signature in publications, comments and responses",
"accomplices": "accomplices",
"actions": "actions",
"all topics": "all topics",
"author": "author",
"authors": "authors",
"bookmarks": "bookmarks",
"cancel": "Cancel",
"collections": "collections",
"community": "community",
"discussion": "discourse",
"discussions": "discussions",
"drafts": "drafts",
"email not confirmed": "email not confirmed",
"enter": "enter",
"feed": "feed",
"follower": "follower",
"general feed": "general tape",
"invalid password": "invalid password",
"my feed": "my ribbon",
"notifications": "notifications",
"personal data usage and email notifications": "to process personal data and receive email notifications",
"post": "post",
"register": "register",

View File

@ -247,10 +247,12 @@
"You've reached a non-existed page": "Вы попали на несуществующую страницу",
"You've successfully logged out": "Вы успешно вышли из аккаунта",
"Your name will appear on your profile page and as your signature in publications, comments and responses.": "Ваше имя появится на странице вашего профиля и как ваша подпись в публикациях, комментариях и откликах",
"accomplices": "соучастники",
"actions": "действия",
"all topics": "все темы",
"author": "автор",
"authors": "авторы",
"bookmarks": "закладки",
"cancel": "Отмена",
"collections": "коллекции",
"community": "сообщество",
@ -258,11 +260,16 @@
"create_group": "Создать группу",
"discourse_theme": "Тема дискурса",
"discussion": "дискурс",
"discussions": "дискуссии",
"drafts": "черновики",
"email not confirmed": "email не подтвержден",
"enter": "войдите",
"feed": "лента",
"follower": "подписчик",
"general feed": "общая лента",
"invalid password": "некорректный пароль",
"my feed": "моя лента",
"notifications": "уведомления",
"or": "или",
"personal data usage and email notifications": "на обработку персональных данных и на получение почтовых уведомлений",
"post": "пост",

View File

@ -1,3 +1,4 @@
import { Show } from 'solid-js'
import { clsx } from 'clsx'
import { Button } from '../../_shared/Button'
import { Icon } from '../../_shared/Icon'

View File

@ -83,17 +83,19 @@ export const Sidebar = (props: FeedSidebarProps) => {
return (
<div class={styles.sidebar}>
<ul>
{menuItems.map((item: ListItem, index) => (
<li key={index}>
<a href="#">
<span class={styles.sidebarItemName}>
{item.icon && <Icon name={item.icon} class={styles.icon} />}
<strong>{item.title}</strong>
{item.counter && <span class={styles.counter}>18</span>}
</span>
</a>
</li>
))}
<For each={menuItems}>
{(item: ListItem, index) => (
<li key={index}>
<a href="#">
<span class={styles.sidebarItemName}>
{item.icon && <Icon name={item.icon} class={styles.icon} />}
<strong>{item.title}</strong>
{item.counter && <span class={styles.counter}>18</span>}
</span>
</a>
</li>
)}
</For>
<For each={session()?.news?.authors}>
{(authorSlug: string) => (
<li>
@ -107,12 +109,11 @@ export const Sidebar = (props: FeedSidebarProps) => {
</li>
)}
</For>
<For each={session()?.news?.topics}>
{(topicSlug: string) => (
<li>
<a href={`/author/${topicSlug}`} classList={{ [styles.unread]: checkTopicIsSeen(topicSlug) }}>
{topicEntities()[topicSlug]?.title ? topicEntities()[topicSlug]?.title : topicSlug}
{topicEntities()[topicSlug]?.title ?? topicSlug}
</a>
</li>
)}