mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
Renaming
This commit is contained in:
@@ -29,10 +29,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: [
|
||||
{
|
||||
|
||||
@@ -132,7 +132,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 = () => {
|
||||
@@ -175,7 +175,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
|
||||
|
||||
|
||||
@@ -132,7 +132,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 = () => {
|
||||
@@ -175,7 +175,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
|
||||
|
||||
|
||||
@@ -46,7 +46,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() {
|
||||
|
||||
Reference in New Issue
Block a user