mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 04:04:04 +08:00
37 lines
766 B
JavaScript
37 lines
766 B
JavaScript
import MemberSinceInfo from './containers/MemberSinceInfo';
|
|
import translations from './translations.yml';
|
|
import { gql } from 'react-apollo';
|
|
|
|
export default {
|
|
slots: {
|
|
authorMenuInfos: [MemberSinceInfo],
|
|
},
|
|
translations,
|
|
fragments: {
|
|
CreateCommentResponse: gql`
|
|
fragment TalkMemberSince_CreateCommentResponse on CreateCommentResponse {
|
|
comment {
|
|
user {
|
|
created_at
|
|
}
|
|
}
|
|
}
|
|
`,
|
|
},
|
|
mutations: {
|
|
PostComment: () => ({
|
|
optimisticResponse: {
|
|
createComment: {
|
|
comment: {
|
|
user: {
|
|
created_at: new Date(),
|
|
__typename: 'User',
|
|
},
|
|
__typename: 'Comment',
|
|
},
|
|
},
|
|
},
|
|
}),
|
|
},
|
|
};
|