profile-fix
This commit is contained in:
parent
603ebbb4a5
commit
2ff29b9e0f
|
@ -190,8 +190,8 @@
|
||||||
"Follow the topic": "Follow the topic",
|
"Follow the topic": "Follow the topic",
|
||||||
"follower": "follower",
|
"follower": "follower",
|
||||||
"Followers": "Followers",
|
"Followers": "Followers",
|
||||||
"followersWithCount": "{count} {count, plural, one {follower} other {followers}}",
|
"some followings": "{count, plural, =0 {no followings} one {{count} following} few {{count} followings} other {{count} followings}}",
|
||||||
"FollowersWithCount": "{count, plural, =0 {no followers} one {{count} follower} other {{count} followers}}",
|
"some followers": "{count, plural, =0 {no followers} one {{count} follower} other {{count} followers}}",
|
||||||
"Following": "Following",
|
"Following": "Following",
|
||||||
"Following...": "Following...",
|
"Following...": "Following...",
|
||||||
"Forgot password?": "Forgot password?",
|
"Forgot password?": "Forgot password?",
|
||||||
|
@ -258,7 +258,6 @@
|
||||||
"It's OK. Just enter your email to receive a link to change your password": "It's OK. Just enter your email to receive a link to change your password",
|
"It's OK. Just enter your email to receive a link to change your password": "It's OK. Just enter your email to receive a link to change your password",
|
||||||
"italic": "italic",
|
"italic": "italic",
|
||||||
"Italic": "Italic",
|
"Italic": "Italic",
|
||||||
"Join": "Join",
|
|
||||||
"Join our maillist": "To receive the best postings, just enter your email",
|
"Join our maillist": "To receive the best postings, just enter your email",
|
||||||
"Join our team of authors": "Join our team of authors",
|
"Join our team of authors": "Join our team of authors",
|
||||||
"Join our team of authors text": "Каждый месяц на Дискурсе публикуются десятки новых авторов. Станьте одним из них — предложите свой материал в журнал и присоединитесь к горизонтальной редакции",
|
"Join our team of authors text": "Каждый месяц на Дискурсе публикуются десятки новых авторов. Станьте одним из них — предложите свой материал в журнал и присоединитесь к горизонтальной редакции",
|
||||||
|
@ -438,14 +437,12 @@
|
||||||
"subscriber": "subscriber",
|
"subscriber": "subscriber",
|
||||||
"subscriber_rp": "subscriber",
|
"subscriber_rp": "subscriber",
|
||||||
"subscribers": "subscribers",
|
"subscribers": "subscribers",
|
||||||
"FollowersWithCount": "{count, plural, =0 {no followers} one {{count} follower} other {{count} followers}}",
|
|
||||||
"subscribing...": "subscribing...",
|
"subscribing...": "subscribing...",
|
||||||
"subscription": "subscription",
|
"subscription": "subscription",
|
||||||
"Subscription": "Subscription",
|
"Subscription": "Subscription",
|
||||||
"subscription_rp": "subscription",
|
"subscription_rp": "subscription",
|
||||||
"subscriptions": "subscriptions",
|
"subscriptions": "subscriptions",
|
||||||
"Subscriptions": "Subscriptions",
|
"Subscriptions": "Subscriptions",
|
||||||
"FollowsWithCount": "{count, plural, =0 {no subscriptions} one {{count} subscription} other {{count} subscriptions}}",
|
|
||||||
"Substrate": "Substrate",
|
"Substrate": "Substrate",
|
||||||
"Success": "Success",
|
"Success": "Success",
|
||||||
"Successfully authorized": "Authorization successful",
|
"Successfully authorized": "Authorization successful",
|
||||||
|
|
|
@ -28,7 +28,6 @@
|
||||||
"Alignment center": "По центру",
|
"Alignment center": "По центру",
|
||||||
"Alignment left": "По левому краю",
|
"Alignment left": "По левому краю",
|
||||||
"Alignment right": "По правому краю",
|
"Alignment right": "По правому краю",
|
||||||
"All": "Общая лента",
|
|
||||||
"All articles": "Все материалы",
|
"All articles": "Все материалы",
|
||||||
"All authors": "Все авторы",
|
"All authors": "Все авторы",
|
||||||
"All posts": "Все публикации",
|
"All posts": "Все публикации",
|
||||||
|
@ -198,8 +197,7 @@
|
||||||
"Follow the topic": "Подписаться на тему",
|
"Follow the topic": "Подписаться на тему",
|
||||||
"follower": "подписчик",
|
"follower": "подписчик",
|
||||||
"Followers": "Подписчики",
|
"Followers": "Подписчики",
|
||||||
"followersWithCount": "{count} {count, plural, one {подписчик} few {подписчика} other {подписчиков}}",
|
"some followers": "{count, plural, =0 {нет подписчиков} one {{count} подписчик} few {{count} подписчика} other {{count} подписчиков}}",
|
||||||
"FollowersWithCount": "{count, plural, =0 {нет подписчиков} one {{count} подписчик} few {{count} подписчика} other {{count} подписчиков}}",
|
|
||||||
"Following": "Вы подписаны",
|
"Following": "Вы подписаны",
|
||||||
"Following...": "Подписываем...",
|
"Following...": "Подписываем...",
|
||||||
"Forgot password?": "Забыли пароль?",
|
"Forgot password?": "Забыли пароль?",
|
||||||
|
@ -270,7 +268,6 @@
|
||||||
"It's OK. Just enter your email to receive a link to change your password": "Ничего страшного. Просто укажите свою почту, чтобы получить ссылку для смены пароля",
|
"It's OK. Just enter your email to receive a link to change your password": "Ничего страшного. Просто укажите свою почту, чтобы получить ссылку для смены пароля",
|
||||||
"italic": "курсив",
|
"italic": "курсив",
|
||||||
"Italic": "Курсив",
|
"Italic": "Курсив",
|
||||||
"Join": "Присоединиться",
|
|
||||||
"Join our maillist": "Чтобы получать рассылку лучших публикаций, просто укажите свою почту",
|
"Join our maillist": "Чтобы получать рассылку лучших публикаций, просто укажите свою почту",
|
||||||
"Join our team of authors": "Станьте автором",
|
"Join our team of authors": "Станьте автором",
|
||||||
"Join our team of authors text": "Каждый месяц на Дискурсе публикуются десятки новых авторов.<br/>Станьте одним из них — предложите свой материал в журнал и присоединитесь к горизонтальной редакции",
|
"Join our team of authors text": "Каждый месяц на Дискурсе публикуются десятки новых авторов.<br/>Станьте одним из них — предложите свой материал в журнал и присоединитесь к горизонтальной редакции",
|
||||||
|
@ -466,11 +463,10 @@
|
||||||
"subscriber": "подписчик",
|
"subscriber": "подписчик",
|
||||||
"subscriber_rp": "подписчика",
|
"subscriber_rp": "подписчика",
|
||||||
"subscribers": "подписчиков",
|
"subscribers": "подписчиков",
|
||||||
"FollowersWithCount": "{count, plural, =0 {нет подписчиков} one {{count} подписчик} few {{count} подписчика} other {{count} подписчиков}}",
|
|
||||||
"subscribing...": "Подписка...",
|
"subscribing...": "Подписка...",
|
||||||
"Subscription": "Подписка",
|
"Subscription": "Подписка",
|
||||||
"Subscriptions": "Подписки",
|
"Subscriptions": "Подписки",
|
||||||
"FollowsWithCount": "{count, plural, =0 {нет подписок} one {{count} подписка} few {{count} подписки} other {{count} подписок}}",
|
"some followings": "{count, plural, =0 {нет подписок} one {{count} подписка} few {{count} подписки} other {{count} подписок}}",
|
||||||
"Substrate": "Подложка",
|
"Substrate": "Подложка",
|
||||||
"Success": "Успешно",
|
"Success": "Успешно",
|
||||||
"Successfully authorized": "Авторизация успешна",
|
"Successfully authorized": "Авторизация успешна",
|
||||||
|
|
|
@ -124,7 +124,7 @@ export const AuthorBadge = (props: Props) => {
|
||||||
<div>{t('CommentsWithCount', { count: props.author.stat?.comments ?? 0 })}</div>
|
<div>{t('CommentsWithCount', { count: props.author.stat?.comments ?? 0 })}</div>
|
||||||
</Show>
|
</Show>
|
||||||
<Show when={props.author?.stat.followers > 0}>
|
<Show when={props.author?.stat.followers > 0}>
|
||||||
<div>{t('FollowersWithCount', { count: props.author.stat?.followers ?? 0 })}</div>
|
<div>{t('some followers', { count: props.author.stat?.followers ?? 0 })}</div>
|
||||||
</Show>
|
</Show>
|
||||||
</div>
|
</div>
|
||||||
</Show>
|
</Show>
|
||||||
|
|
|
@ -104,7 +104,7 @@ export const TopicBadge = (props: Props) => {
|
||||||
{t('authorsWithCount', { count: props.topic?.stat?.authors })}
|
{t('authorsWithCount', { count: props.topic?.stat?.authors })}
|
||||||
</span>
|
</span>
|
||||||
<span class={styles.statsItem}>
|
<span class={styles.statsItem}>
|
||||||
{t('FollowersWithCount', { count: props.topic?.stat?.followers })}
|
{t('some followers', { count: props.topic?.stat?.followers })}
|
||||||
</span>
|
</span>
|
||||||
<Show when={props.topic?.stat?.comments}>
|
<Show when={props.topic?.stat?.comments}>
|
||||||
<span class={styles.statsItem}>
|
<span class={styles.statsItem}>
|
||||||
|
|
|
@ -28,7 +28,7 @@ export const Subscribers = (props: Props) => {
|
||||||
</div>
|
</div>
|
||||||
</Show>
|
</Show>
|
||||||
<div class={styles.subscribersCounter}>
|
<div class={styles.subscribersCounter}>
|
||||||
{t('SubscriberWithCount', {
|
{t('some followers', {
|
||||||
count: props.followersAmount || props.followers.length || 0,
|
count: props.followersAmount || props.followers.length || 0,
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
|
@ -57,7 +57,7 @@ export const Subscribers = (props: Props) => {
|
||||||
</div>
|
</div>
|
||||||
</Show>
|
</Show>
|
||||||
<div class={styles.subscribersCounter}>
|
<div class={styles.subscribersCounter}>
|
||||||
{t('SubscriptionWithCount', {
|
{t('some followings', {
|
||||||
count: props.followingAmount || props.following?.length || 0,
|
count: props.followingAmount || props.following?.length || 0,
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -203,7 +203,7 @@ export const SessionProvider = (props: {
|
||||||
ssrLoadFrom: 'initial',
|
ssrLoadFrom: 'initial',
|
||||||
initialValue: null,
|
initialValue: null,
|
||||||
})
|
})
|
||||||
const author = createMemo(() => session().user?.app_data?.profile)
|
const author = createMemo(() => session()?.user?.app_data?.profile)
|
||||||
|
|
||||||
const checkSessionIsExpired = () => {
|
const checkSessionIsExpired = () => {
|
||||||
const expires_at_data = localStorage.getItem('expires_at')
|
const expires_at_data = localStorage.getItem('expires_at')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user