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