From ceba418ee39bdfa24b7095a0fb3213353367440d Mon Sep 17 00:00:00 2001 From: Igor Lobanov Date: Sat, 1 Oct 2022 13:56:47 +0200 Subject: [PATCH 1/3] topics hover fix --- src/components/Nav/Topics.scss | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/Nav/Topics.scss b/src/components/Nav/Topics.scss index e5decc94..a0fe24b6 100644 --- a/src/components/Nav/Topics.scss +++ b/src/components/Nav/Topics.scss @@ -42,7 +42,6 @@ } a:hover { - font-weight: 500; color: white; } } From 659813bcbf0bc3966001e9127f2e0c3bcda15a2f Mon Sep 17 00:00:00 2001 From: Igor Lobanov Date: Fri, 30 Sep 2022 16:22:33 +0200 Subject: [PATCH 2/3] auth fix --- src/components/Article/FullArticle.tsx | 11 ++-- src/components/Author/Card.tsx | 10 ++-- src/components/Feed/Sidebar.tsx | 9 ++- src/components/Nav/AuthModal.tsx | 79 ++++++++++++++++---------- src/components/Nav/Header.tsx | 5 +- src/components/Nav/Private.tsx | 5 +- src/components/Nav/ProfileModal.tsx | 24 ++++---- src/components/Topic/Card.tsx | 54 +++++++++++------- src/components/Topic/Full.tsx | 8 +-- src/components/Views/AllAuthors.tsx | 9 +-- src/components/Views/AllTopics.tsx | 7 +-- src/components/Views/Feed.tsx | 8 +-- src/locales/ru.json | 6 +- src/stores/auth.ts | 41 +++++++++---- src/stores/zine/articles.ts | 2 +- src/utils/apiClient.ts | 47 ++++++++++++--- 16 files changed, 202 insertions(+), 123 deletions(-) diff --git a/src/components/Article/FullArticle.tsx b/src/components/Article/FullArticle.tsx index 317acc88..643d17ec 100644 --- a/src/components/Article/FullArticle.tsx +++ b/src/components/Article/FullArticle.tsx @@ -7,8 +7,7 @@ import { createEffect, createMemo, createSignal, For, onMount, Show } from 'soli import type { Author, Reaction, Shout } from '../../graphql/types.gen' import { t } from '../../utils/intl' import { showModal } from '../../stores/ui' -import { useStore } from '@nanostores/solid' -import { session } from '../../stores/auth' +import { useAuthStore } from '../../stores/auth' import { incrementView } from '../../stores/zine/articles' import { renderMarkdown } from '@astrojs/markdown-remark' import { markdownOptions } from '../../../mdx.config' @@ -41,7 +40,7 @@ const formatDate = (date: Date) => { export const FullArticle = (props: ArticleProps) => { const [body, setBody] = createSignal(props.article.body?.startsWith('<') ? props.article.body : '') - const auth = useStore(session) + const { session } = useAuthStore() createEffect(() => { if (body() || !props.article.body) { @@ -180,12 +179,12 @@ export const FullArticle = (props: ArticleProps) => { )} - +
{t('To leave a comment you please')} {
- +