mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
Merge branch 'master' into talk-provider
Conflicts: client/coral-embed-stream/src/containers/Embed.js plugin-api/beta/client/hocs/withReaction.js
This commit is contained in:
@@ -31,7 +31,6 @@ export default withFragments({
|
||||
name
|
||||
}
|
||||
}
|
||||
|
||||
user {
|
||||
id
|
||||
username
|
||||
|
||||
@@ -1,5 +1,16 @@
|
||||
import ModTag from '../components/ModTag';
|
||||
import {withTags} from 'plugin-api/beta/client/hocs';
|
||||
import {gql} from 'react-apollo';
|
||||
|
||||
export default withTags('featured')(ModTag);
|
||||
const fragments = {
|
||||
comment: gql`
|
||||
fragment TalkFeaturedComments_ModTag_comment on Comment {
|
||||
user {
|
||||
username
|
||||
}
|
||||
}
|
||||
`
|
||||
};
|
||||
|
||||
export default withTags('featured', {fragments})(ModTag);
|
||||
|
||||
|
||||
@@ -16,8 +16,8 @@ class TabPaneContainer extends React.Component {
|
||||
query: LOAD_MORE_QUERY,
|
||||
variables: {
|
||||
limit: 5,
|
||||
cursor: this.props.root.asset.featuredComments.endCursor,
|
||||
asset_id: this.props.root.asset.id,
|
||||
cursor: this.props.asset.featuredComments.endCursor,
|
||||
asset_id: this.props.asset.id,
|
||||
sort: 'REVERSE_CHRONOLOGICAL',
|
||||
excludeIgnored: this.props.data.variables.excludeIgnored,
|
||||
},
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
import {gql} from 'react-apollo';
|
||||
import Tag from '../components/Tag';
|
||||
import {withFragments} from 'plugin-api/beta/client/hocs';
|
||||
|
||||
export default withFragments({
|
||||
comment: gql`
|
||||
fragment TalkFeaturedComments_Tag_comment on Comment {
|
||||
tags {
|
||||
tag {
|
||||
name
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
})(Tag);
|
||||
@@ -1,5 +1,5 @@
|
||||
import Tab from './containers/Tab';
|
||||
import Tag from './components/Tag';
|
||||
import Tag from './containers/Tag';
|
||||
import Button from './components/Button';
|
||||
import TabPane from './containers/TabPane';
|
||||
import translations from './translations.yml';
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
import {gql} from 'react-apollo';
|
||||
import OffTopicTag from '../components/OffTopicTag';
|
||||
import {withFragments} from 'plugin-api/beta/client/hocs';
|
||||
|
||||
export default withFragments({
|
||||
comment: gql`
|
||||
fragment TalkOfftopic_OffTopicTag_comment on Comment {
|
||||
tags {
|
||||
tag {
|
||||
name
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
})(OffTopicTag);
|
||||
@@ -1,5 +1,5 @@
|
||||
import translations from './translations.json';
|
||||
import OffTopicTag from './components/OffTopicTag';
|
||||
import OffTopicTag from './containers/OffTopicTag';
|
||||
import OffTopicFilter from './containers/OffTopicFilter';
|
||||
import OffTopicCheckbox from './containers/OffTopicCheckbox';
|
||||
import reducer from './reducer';
|
||||
|
||||
@@ -28,9 +28,11 @@ export default class PermalinkButton extends React.Component {
|
||||
}
|
||||
|
||||
handleClickOutside = () => {
|
||||
this.setState({
|
||||
popoverOpen: false
|
||||
});
|
||||
if (this.state.popoverOpen) {
|
||||
this.setState({
|
||||
popoverOpen: false
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
copyPermalink = () => {
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
import {gql} from 'react-apollo';
|
||||
import PermalinkButton from '../components/PermalinkButton';
|
||||
import {withFragments} from 'plugin-api/beta/client/hocs';
|
||||
|
||||
export default withFragments({
|
||||
asset: gql`
|
||||
fragment TalkPermalink_Button_asset on Asset {
|
||||
url
|
||||
}
|
||||
`,
|
||||
comment: gql`
|
||||
fragment TalkPermalink_Button_comment on Comment {
|
||||
id
|
||||
}
|
||||
`
|
||||
})(PermalinkButton);
|
||||
@@ -1,4 +1,4 @@
|
||||
import PermalinkButton from './components/PermalinkButton';
|
||||
import PermalinkButton from './containers/PermalinkButton';
|
||||
|
||||
export default {
|
||||
slots: {
|
||||
|
||||
Reference in New Issue
Block a user