fixed-reset-template

This commit is contained in:
Untone 2024-02-16 22:11:04 +03:00
parent 59db2c598d
commit 52b2a6d16c
9 changed files with 24 additions and 24 deletions

View File

@ -311,7 +311,7 @@ export const AuthorCard = (props: Props) => {
<TopicBadge
isFollowed={{
loaded: Boolean(authorSubs()),
value: isOwnerSubscribed(subscription.id),
value: isOwnerSubscribed(subscription.id)
}}
topic={subscription}
/>

View File

@ -93,7 +93,7 @@ export const Editor = (props: Props) => {
url: 'wss://hocuspocus.discours.io',
name: docName,
document: yDocs[docName],
token: session()?.access_token || '',
token: session()?.access_token || ''
})
}

View File

@ -171,7 +171,7 @@ export const LoginForm = () => {
class="link"
onClick={() =>
changeSearchParams({
mode: 'send-reset-link',
mode: 'send-reset-link'
})
}
>

View File

@ -99,7 +99,7 @@ export const RegisterForm = () => {
email: cleanEmail,
password: password(),
confirm_password: password(),
redirect_uri: window.location.origin,
redirect_uri: window.location.origin
}
const { errors } = await signUp(opts)
if (errors) return
@ -114,7 +114,7 @@ export const RegisterForm = () => {
const handleResendLink = async (_ev) => {
const response: GenericResponse = await resendVerifyEmail({
email: email(),
identifier: 'basic_signup',
identifier: 'basic_signup'
})
setIsSuccess(response?.message === 'Verification email has been sent. Please check your inbox')
}
@ -131,7 +131,7 @@ export const RegisterForm = () => {
{t('resend confirmation link')}
</span>
</>
),
)
}))
break
@ -144,7 +144,7 @@ export const RegisterForm = () => {
{t('enter')}
</span>
</>
),
)
}))
break
case 'registered':
@ -157,7 +157,7 @@ export const RegisterForm = () => {
{t('Set the new password').toLocaleLowerCase()}
</span>
</>
),
)
}))
break
default:
@ -187,7 +187,7 @@ export const RegisterForm = () => {
</Show>
<div
class={clsx('pretty-form__item', {
'pretty-form__item--error': validationErrors().fullName,
'pretty-form__item--error': validationErrors().fullName
})}
>
<input
@ -206,7 +206,7 @@ export const RegisterForm = () => {
<div
class={clsx('pretty-form__item', {
'pretty-form__item--error': validationErrors().email && !emailStatus(),
'pretty-form__item--error': validationErrors().email && !emailStatus()
})}
>
<input
@ -250,7 +250,7 @@ export const RegisterForm = () => {
class={styles.authLink}
onClick={() =>
changeSearchParams({
mode: 'login',
mode: 'login'
})
}
>

View File

@ -155,7 +155,7 @@ export const HeaderAuth = (props: Props) => {
{renderIconedButton({
value: t('Publish'),
icon: 'publish',
action: () => publishShout(form),
action: () => publishShout(form)
})}
</div>

View File

@ -46,8 +46,8 @@ export const TopicBadge = (props: Props) => {
() => props.isFollowed,
() => {
setIsFollowed(props.isFollowed.value)
},
),
}
)
)
const title = () =>
@ -61,11 +61,11 @@ export const TopicBadge = (props: Props) => {
href={`/topic/${props.topic.slug}`}
class={clsx(styles.picture, {
[styles.withImage]: props.topic.pic,
[styles.smallSize]: isMobileView(),
[styles.smallSize]: isMobileView()
})}
style={
props.topic.pic && {
'background-image': `url('${getImageUrl(props.topic.pic, { width: 40, height: 40 })}')`,
'background-image': `url('${getImageUrl(props.topic.pic, { width: 40, height: 40 })}')`
}
}
/>

View File

@ -193,7 +193,7 @@ export const AllTopics = (props: Props) => {
topic={topic}
isFollowed={{
loaded: filteredResults().length > 0,
value: isOwnerSubscribed(topic.slug),
value: isOwnerSubscribed(topic.slug)
}}
showStat={true}
/>

View File

@ -327,7 +327,7 @@ export const SessionProvider = (props: {
console.debug('[context.session] calling is_registered for ', email)
try {
const response = await authorizer().graphqlQuery({
query: `query { is_registered(email: "${email}") { message }}`,
query: `query { is_registered(email: "${email}") { message }}`
})
// console.log(response)
return response?.data?.is_registered?.message
@ -376,7 +376,7 @@ export const SessionProvider = (props: {
forgotPassword,
changePassword,
oauth,
isRegistered,
isRegistered
}
const value: SessionContextType = {
authError,
@ -386,7 +386,7 @@ export const SessionProvider = (props: {
author,
...actions,
isAuthenticated,
resendVerifyEmail,
resendVerifyEmail
}
return <SessionContext.Provider value={value}>{props.children}</SessionContext.Provider>

View File

@ -8,7 +8,7 @@
font-family: Helvetica, Arial, sans-serif;
font-size: 24px;
">
{{username}}, здравствуйте!
Приветствуем!
</span>
</h1>
</td>
@ -27,10 +27,10 @@
</p>
<p style="margin: 15px 0">
Чтобы сменить пароль для входа в Дискурс, перейдите по
Чтобы задать пароль для входа в Дискурс, перейдите по
<a href="{{verification_url}}" style="color: #2638d9; font-weight: bold">
этой ссылке</a>. Она сработает всего один раз и приведет вас на страницу, где вы сможете
установить новый пароль.
задать новый пароль.
</p>
<p style="margin: 15px 0">
@ -83,4 +83,4 @@
</table>
</td>
</tr>
</tbody>
</tbody>