fixing-editor
This commit is contained in:
parent
2801ab0ef9
commit
4570e50806
|
@ -168,5 +168,5 @@ export default (path?: string): ProseMirrorExtension => ({
|
|||
image: (node, view, getPos) => {
|
||||
return new ImageView(node, view, getPos, view.state.schema, path)
|
||||
}
|
||||
}
|
||||
} as any
|
||||
})
|
||||
|
|
|
@ -91,5 +91,5 @@ export default (): ProseMirrorExtension => ({
|
|||
todo_item: (node: any, view, getPos) => {
|
||||
return new TodoItemView(node, view, getPos)
|
||||
}
|
||||
}
|
||||
} as any
|
||||
})
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { keymap } from 'prosemirror-keymap'
|
||||
import { ProseMirrorExtension } from './helpers'
|
||||
import type { ProseMirrorExtension } from './helpers'
|
||||
import { Schema } from 'prosemirror-model'
|
||||
import base from './extension/base'
|
||||
import markdown from './extension/markdown'
|
||||
|
@ -15,7 +15,7 @@ import dragHandle from './extension/drag-handle'
|
|||
import pasteMarkdown from './extension/paste-markdown'
|
||||
import table from './extension/table'
|
||||
import collab from './extension/collab'
|
||||
import { Config, YOptions } from '../store'
|
||||
import type { Config, YOptions } from '../store'
|
||||
import selectionMenu from './extension/selection'
|
||||
|
||||
interface Props {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// in a separate file to avoid circular dependencies
|
||||
import type { Author, Shout, Topic } from '../graphql/types.gen'
|
||||
import type { Author, Chat, Shout, Topic } from '../graphql/types.gen'
|
||||
|
||||
// all the things (she said) that could be passed from the server
|
||||
export type PageProps = {
|
||||
|
@ -16,4 +16,5 @@ export type PageProps = {
|
|||
searchQuery?: string
|
||||
// other types?
|
||||
searchResults?: Shout[]
|
||||
chats?: Chat[]
|
||||
}
|
||||
|
|
|
@ -11,5 +11,5 @@ initRouter(pathname, search)
|
|||
---
|
||||
|
||||
<Zine>
|
||||
<Root client:load />
|
||||
<Root chats={chatrooms} client:load />
|
||||
</Zine>
|
||||
|
|
|
@ -313,6 +313,7 @@ export const apiClient = {
|
|||
await privateGraphQLClient.mutation(incrementView, { shout: articleSlug })
|
||||
},
|
||||
getInboxes: async (payload = {}) => {
|
||||
await privateGraphQLClient.query(myChats, payload)
|
||||
const resp = await privateGraphQLClient.query(myChats, payload).toPromise()
|
||||
return resp.data.myChats
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user