About myself
This commit is contained in:
parent
bc4e82a8e6
commit
7d9f99f4b4
|
@ -117,19 +117,19 @@ export const ProfileSettingsPage = (props: PageProps) => {
|
||||||
<label for="presentation">{t('Introduce')}</label>
|
<label for="presentation">{t('Introduce')}</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/*Нет реализации полей на бэке*/}
|
<h4>{t('About myself')}</h4>
|
||||||
{/*<h4>{t('About myself')}</h4>*/}
|
<div class="pretty-form__item">
|
||||||
{/*<div class="pretty-form__item">*/}
|
<textarea
|
||||||
{/* <textarea*/}
|
name="about"
|
||||||
{/* name="about"*/}
|
id="about"
|
||||||
{/* id="about"*/}
|
placeholder={t('About myself')}
|
||||||
{/* placeholder={t('About myself')}*/}
|
value={form.about}
|
||||||
{/* value={form.about}*/}
|
onChange={(event) => updateFormField('about', event.currentTarget.value)}
|
||||||
{/* onChange={(event) => updateFormField('about', event.currentTarget.value)}*/}
|
/>
|
||||||
{/* />*/}
|
<label for="about">{t('About myself')}</label>
|
||||||
{/* <label for="about">{t('About myself')}</label>*/}
|
</div>
|
||||||
{/*</div>*/}
|
|
||||||
|
|
||||||
|
{/*Нет реализации полей на бэке*/}
|
||||||
{/*<h4>{t('How can I help/skills')}</h4>*/}
|
{/*<h4>{t('How can I help/skills')}</h4>*/}
|
||||||
{/*<div class="pretty-form__item">*/}
|
{/*<div class="pretty-form__item">*/}
|
||||||
{/* <input type="text" name="skills" id="skills" />*/}
|
{/* <input type="text" name="skills" id="skills" />*/}
|
||||||
|
|
|
@ -28,6 +28,7 @@ const useProfileForm = () => {
|
||||||
const [form, setForm] = createStore<ProfileInput>({
|
const [form, setForm] = createStore<ProfileInput>({
|
||||||
name: '',
|
name: '',
|
||||||
bio: '',
|
bio: '',
|
||||||
|
about: '',
|
||||||
slug: '',
|
slug: '',
|
||||||
userpic: '',
|
userpic: '',
|
||||||
links: []
|
links: []
|
||||||
|
@ -41,6 +42,7 @@ const useProfileForm = () => {
|
||||||
name: currentAuthor()?.name,
|
name: currentAuthor()?.name,
|
||||||
slug: currentAuthor()?.slug,
|
slug: currentAuthor()?.slug,
|
||||||
bio: currentAuthor()?.bio,
|
bio: currentAuthor()?.bio,
|
||||||
|
about: currentAuthor()?.about,
|
||||||
userpic: currentAuthor()?.userpic,
|
userpic: currentAuthor()?.userpic,
|
||||||
links: currentAuthor()?.links
|
links: currentAuthor()?.links
|
||||||
})
|
})
|
||||||
|
|
|
@ -7,6 +7,7 @@ export default gql`
|
||||||
slug
|
slug
|
||||||
name
|
name
|
||||||
bio
|
bio
|
||||||
|
about
|
||||||
userpic
|
userpic
|
||||||
communities
|
communities
|
||||||
links
|
links
|
||||||
|
|
|
@ -22,6 +22,7 @@ export type AuthResult = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Author = {
|
export type Author = {
|
||||||
|
about?: Maybe<Scalars['String']>
|
||||||
bio?: Maybe<Scalars['String']>
|
bio?: Maybe<Scalars['String']>
|
||||||
caption?: Maybe<Scalars['String']>
|
caption?: Maybe<Scalars['String']>
|
||||||
id: Scalars['Int']
|
id: Scalars['Int']
|
||||||
|
@ -54,9 +55,9 @@ export type AuthorsBy = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Chat = {
|
export type Chat = {
|
||||||
admins?: Maybe<Array<Maybe<Scalars['String']>>>
|
admins?: Maybe<Array<Maybe<Scalars['Int']>>>
|
||||||
createdAt: Scalars['Int']
|
createdAt: Scalars['Int']
|
||||||
createdBy: Scalars['String']
|
createdBy: Scalars['Int']
|
||||||
description?: Maybe<Scalars['String']>
|
description?: Maybe<Scalars['String']>
|
||||||
id: Scalars['String']
|
id: Scalars['String']
|
||||||
members?: Maybe<Array<Maybe<ChatMember>>>
|
members?: Maybe<Array<Maybe<ChatMember>>>
|
||||||
|
@ -65,7 +66,7 @@ export type Chat = {
|
||||||
title?: Maybe<Scalars['String']>
|
title?: Maybe<Scalars['String']>
|
||||||
unread?: Maybe<Scalars['Int']>
|
unread?: Maybe<Scalars['Int']>
|
||||||
updatedAt: Scalars['Int']
|
updatedAt: Scalars['Int']
|
||||||
users?: Maybe<Array<Maybe<Scalars['String']>>>
|
users?: Maybe<Array<Maybe<Scalars['Int']>>>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ChatInput = {
|
export type ChatInput = {
|
||||||
|
@ -78,6 +79,7 @@ export type ChatMember = {
|
||||||
id: Scalars['Int']
|
id: Scalars['Int']
|
||||||
lastSeen?: Maybe<Scalars['DateTime']>
|
lastSeen?: Maybe<Scalars['DateTime']>
|
||||||
name: Scalars['String']
|
name: Scalars['String']
|
||||||
|
online?: Maybe<Scalars['Boolean']>
|
||||||
slug: Scalars['String']
|
slug: Scalars['String']
|
||||||
userpic?: Maybe<Scalars['String']>
|
userpic?: Maybe<Scalars['String']>
|
||||||
}
|
}
|
||||||
|
@ -139,12 +141,13 @@ export type LoadShoutsOptions = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Message = {
|
export type Message = {
|
||||||
author: Scalars['String']
|
author: Scalars['Int']
|
||||||
body: Scalars['String']
|
body: Scalars['String']
|
||||||
chatId: Scalars['String']
|
chatId: Scalars['String']
|
||||||
createdAt: Scalars['Int']
|
createdAt: Scalars['Int']
|
||||||
id: Scalars['Int']
|
id: Scalars['Int']
|
||||||
replyTo?: Maybe<Scalars['String']>
|
replyTo?: Maybe<Scalars['String']>
|
||||||
|
seen?: Maybe<Scalars['Boolean']>
|
||||||
updatedAt?: Maybe<Scalars['Int']>
|
updatedAt?: Maybe<Scalars['Int']>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -353,6 +356,7 @@ export type Query = {
|
||||||
loadShout?: Maybe<Shout>
|
loadShout?: Maybe<Shout>
|
||||||
loadShouts: Array<Maybe<Shout>>
|
loadShouts: Array<Maybe<Shout>>
|
||||||
markdownBody: Scalars['String']
|
markdownBody: Scalars['String']
|
||||||
|
searchMessages: Result
|
||||||
searchRecipients: Result
|
searchRecipients: Result
|
||||||
signIn: AuthResult
|
signIn: AuthResult
|
||||||
signOut: AuthResult
|
signOut: AuthResult
|
||||||
|
@ -417,6 +421,12 @@ export type QueryMarkdownBodyArgs = {
|
||||||
body: Scalars['String']
|
body: Scalars['String']
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type QuerySearchMessagesArgs = {
|
||||||
|
by: MessagesBy
|
||||||
|
limit?: InputMaybe<Scalars['Int']>
|
||||||
|
offset?: InputMaybe<Scalars['Int']>
|
||||||
|
}
|
||||||
|
|
||||||
export type QuerySearchRecipientsArgs = {
|
export type QuerySearchRecipientsArgs = {
|
||||||
limit?: InputMaybe<Scalars['Int']>
|
limit?: InputMaybe<Scalars['Int']>
|
||||||
offset?: InputMaybe<Scalars['Int']>
|
offset?: InputMaybe<Scalars['Int']>
|
||||||
|
@ -620,19 +630,12 @@ export type Stat = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Subscription = {
|
export type Subscription = {
|
||||||
newMessage: Message
|
collabUpdate?: Maybe<Reaction>
|
||||||
onlineUpdated: Array<User>
|
newMessage?: Maybe<Message>
|
||||||
reactionUpdated: ReactionUpdating
|
|
||||||
shoutUpdated: Shout
|
|
||||||
userUpdated: User
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SubscriptionNewMessageArgs = {
|
export type SubscriptionCollabUpdateArgs = {
|
||||||
chats?: InputMaybe<Array<Scalars['Int']>>
|
collab: Scalars['Int']
|
||||||
}
|
|
||||||
|
|
||||||
export type SubscriptionReactionUpdatedArgs = {
|
|
||||||
shout: Scalars['String']
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Token = {
|
export type Token = {
|
||||||
|
@ -669,6 +672,7 @@ export type TopicStat = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type User = {
|
export type User = {
|
||||||
|
about?: Maybe<Scalars['String']>
|
||||||
bio?: Maybe<Scalars['String']>
|
bio?: Maybe<Scalars['String']>
|
||||||
communities?: Maybe<Array<Maybe<Scalars['Int']>>>
|
communities?: Maybe<Array<Maybe<Scalars['Int']>>>
|
||||||
createdAt: Scalars['DateTime']
|
createdAt: Scalars['DateTime']
|
||||||
|
|
Loading…
Reference in New Issue
Block a user