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 confirmed email": "You've confirmed email",
"You've reached a non-existed page": "You've reached a non-existed page", "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", "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", "actions": "actions",
"all topics": "all topics", "all topics": "all topics",
"author": "author", "author": "author",
"authors": "authors", "authors": "authors",
"bookmarks": "bookmarks",
"cancel": "Cancel", "cancel": "Cancel",
"collections": "collections", "collections": "collections",
"community": "community", "community": "community",
"discussion": "discourse", "discussion": "discourse",
"discussions": "discussions",
"drafts": "drafts",
"email not confirmed": "email not confirmed", "email not confirmed": "email not confirmed",
"enter": "enter", "enter": "enter",
"feed": "feed", "feed": "feed",
"follower": "follower", "follower": "follower",
"general feed": "general tape",
"invalid password": "invalid password", "invalid password": "invalid password",
"my feed": "my ribbon",
"notifications": "notifications",
"personal data usage and email notifications": "to process personal data and receive email notifications", "personal data usage and email notifications": "to process personal data and receive email notifications",
"post": "post", "post": "post",
"register": "register", "register": "register",

View File

@ -247,10 +247,12 @@
"You've reached a non-existed page": "Вы попали на несуществующую страницу", "You've reached a non-existed page": "Вы попали на несуществующую страницу",
"You've successfully logged out": "Вы успешно вышли из аккаунта", "You've successfully logged out": "Вы успешно вышли из аккаунта",
"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": "соучастники",
"actions": "действия", "actions": "действия",
"all topics": "все темы", "all topics": "все темы",
"author": "автор", "author": "автор",
"authors": "авторы", "authors": "авторы",
"bookmarks": "закладки",
"cancel": "Отмена", "cancel": "Отмена",
"collections": "коллекции", "collections": "коллекции",
"community": "сообщество", "community": "сообщество",
@ -258,11 +260,16 @@
"create_group": "Создать группу", "create_group": "Создать группу",
"discourse_theme": "Тема дискурса", "discourse_theme": "Тема дискурса",
"discussion": "дискурс", "discussion": "дискурс",
"discussions": "дискуссии",
"drafts": "черновики",
"email not confirmed": "email не подтвержден", "email not confirmed": "email не подтвержден",
"enter": "войдите", "enter": "войдите",
"feed": "лента", "feed": "лента",
"follower": "подписчик", "follower": "подписчик",
"general feed": "общая лента",
"invalid password": "некорректный пароль", "invalid password": "некорректный пароль",
"my feed": "моя лента",
"notifications": "уведомления",
"or": "или", "or": "или",
"personal data usage and email notifications": "на обработку персональных данных и на получение почтовых уведомлений", "personal data usage and email notifications": "на обработку персональных данных и на получение почтовых уведомлений",
"post": "пост", "post": "пост",

View File

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

View File

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