Merge branch 'master' into docs-update

This commit is contained in:
Kim Gardner
2017-07-27 11:05:06 -04:00
committed by GitHub
142 changed files with 204 additions and 314 deletions
+2 -2
View File
@@ -26,10 +26,10 @@ Tag Definitions must be created in order for the system to determine what tags a
Tag Definitions do not contain any logic themselves but provide information that other parts of the system can use to specify which models a tag can be applied to (models) and perform authorization logic (permissions).
Take the tag created by `coral-plugin-offtopic` as an example.
Take the tag created by `talk-plugin-offtopic` as an example.
```
// coral-plugin-offtopic/index.js
// talk-plugin-offtopic/index.js
module.exports = {
tags: [
{
+2 -2
View File
@@ -134,7 +134,7 @@ In this example we add our reaction component to the `commentReaction` Slot
```js
import React from 'react';
import {withReaction} from 'coral-plugin-api';
import {withReaction} from 'talk-plugin-api';
class LoveButton extends React.Component {
handleClick = () => {
@@ -177,7 +177,7 @@ This feature introduces `withReaction` HOC. `withReaction` takes, as argument,
* `count` - The reaction count
For full reference: Please, check `coral-plugin-love`: [LoveButton.js](https://github.com/coralproject/talk/blob/master/plugins/coral-plugin-love/client/LoveButton.js)
For full reference: Please, check `talk-plugin-love`: [LoveButton.js](https://github.com/coralproject/talk/blob/master/plugins/talk-plugin-love/client/LoveButton.js)
### Comment Stream
+1 -1
View File
@@ -43,7 +43,7 @@ We can easily trigger `Talk` actions in our plugin Components.
import React, {Component} from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {addTag, removeTag} from 'coral-plugin-commentbox/actions';
import {addTag, removeTag} from 'talk-plugin-commentbox/actions';
class MyButton extends Component {
render() {