Linter fix
This commit is contained in:
parent
6a94474732
commit
11cbdd47af
|
@ -22,4 +22,4 @@ async function run() {
|
||||||
await browser.close()
|
await browser.close()
|
||||||
}
|
}
|
||||||
|
|
||||||
run()
|
await run()
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { For, createSignal, Show, onMount, createEffect } from 'solid-js'
|
import { For, createSignal, Show, onMount, createEffect, createMemo } from 'solid-js'
|
||||||
import type { Author } from '../../graphql/types.gen'
|
import type { Author } from '../../graphql/types.gen'
|
||||||
import { AuthorCard } from '../Author/Card'
|
import { AuthorCard } from '../Author/Card'
|
||||||
import { Icon } from '../_shared/Icon'
|
import { Icon } from '../_shared/Icon'
|
||||||
|
@ -70,12 +70,10 @@ export const InboxView = () => {
|
||||||
const [cashedAuthors, setCashedAuthors] = createSignal<Author[]>([])
|
const [cashedAuthors, setCashedAuthors] = createSignal<Author[]>([])
|
||||||
const [postMessageText, setPostMessageText] = createSignal('')
|
const [postMessageText, setPostMessageText] = createSignal('')
|
||||||
const [loading, setLoading] = createSignal<boolean>(false)
|
const [loading, setLoading] = createSignal<boolean>(false)
|
||||||
const [currentSlug, setCurrentSlug] = createSignal<Author['slug'] | null>()
|
// const [currentSlug, setCurrentSlug] = createSignal<Author['slug'] | null>()
|
||||||
|
|
||||||
const { session } = useSession()
|
const { session } = useSession()
|
||||||
createEffect(() => {
|
const currentSlug = createMemo(() => session()?.user?.slug)
|
||||||
setCurrentSlug(session()?.user?.slug)
|
|
||||||
})
|
|
||||||
|
|
||||||
// Поиск по диалогам
|
// Поиск по диалогам
|
||||||
const getQuery = (query) => {
|
const getQuery = (query) => {
|
||||||
|
|
|
@ -7,7 +7,9 @@ import type {
|
||||||
LoadShoutsOptions,
|
LoadShoutsOptions,
|
||||||
QueryLoadChatsArgs,
|
QueryLoadChatsArgs,
|
||||||
QueryLoadAuthorsByArgs,
|
QueryLoadAuthorsByArgs,
|
||||||
QueryLoadMessagesByArgs
|
QueryLoadMessagesByArgs,
|
||||||
|
MutationCreateChatArgs,
|
||||||
|
MutationCreateMessageArgs
|
||||||
} from '../graphql/types.gen'
|
} from '../graphql/types.gen'
|
||||||
import { publicGraphQLClient } from '../graphql/publicGraphQLClient'
|
import { publicGraphQLClient } from '../graphql/publicGraphQLClient'
|
||||||
import { getToken, privateGraphQLClient } from '../graphql/privateGraphQLClient'
|
import { getToken, privateGraphQLClient } from '../graphql/privateGraphQLClient'
|
||||||
|
@ -223,12 +225,12 @@ export const apiClient = {
|
||||||
|
|
||||||
// CUDL
|
// CUDL
|
||||||
|
|
||||||
createChat: async ({ title, members }) => {
|
createChat: async (options: MutationCreateChatArgs) => {
|
||||||
return await privateGraphQLClient.mutation(createChat, { title: title, members: members }).toPromise()
|
return await privateGraphQLClient.mutation(createChat, options).toPromise()
|
||||||
},
|
},
|
||||||
|
|
||||||
createMessage: async ({ chat, body }) => {
|
createMessage: async (options: MutationCreateMessageArgs) => {
|
||||||
return await privateGraphQLClient.mutation(createChat, { chat: chat, body: body }).toPromise()
|
return await privateGraphQLClient.mutation(createChat, options).toPromise()
|
||||||
},
|
},
|
||||||
|
|
||||||
updateReaction: async ({ reaction }) => {
|
updateReaction: async ({ reaction }) => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user