This commit is contained in:
Belen Curcio
2017-04-11 14:47:39 -03:00
parent 536b2ed371
commit 5d81429673
10 changed files with 2 additions and 126 deletions
+1 -1
View File
@@ -18,5 +18,5 @@ plugins.json
plugins/*
!plugins/coral-plugin-facebook-auth
!plugins/coral-plugin-respect
!plugins/coral-plugin-*
!plugins/coral-plugin-offtopic
+1 -1
View File
@@ -189,7 +189,7 @@ class Comment extends React.Component {
removeBest={removeBestTag} />
</IfUserCanModifyBest>
</ActionButton>
<Slot fill="commentDetail" commentId={comment.id} />
<Slot fill="commentDetail" comment={comment} commentId={comment.id} inline/>
</div>
<div className="commentActionsRight comment__action-container">
<ActionButton>
-14
View File
@@ -1,14 +0,0 @@
{
"presets": [
"es2015"
],
"plugins": [
"add-module-exports",
"transform-class-properties",
"transform-decorators-legacy",
"transform-object-assign",
"transform-object-rest-spread",
"transform-async-to-generator",
"transform-react-jsx"
]
}
@@ -1,23 +0,0 @@
{
"env": {
"browser": true,
"es6": true,
"mocha": true
},
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
}
},
"parser": "babel-eslint",
"plugins": [
"react"
],
"rules": {
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"no-console": ["warn", { "allow": ["warn", "error"] }]
}
}
@@ -1,15 +0,0 @@
import React, {Component} from 'react';
import styles from './style.css';
class OffTopicBadge extends Component {
render() {
return (
<span className={styles.badge}>
OffTopicCheckbox
</span>
);
}
}
export default OffTopicBadge;
@@ -1,21 +0,0 @@
import React, {Component} from 'react';
import styles from './style.css';
class OffTopicCheckbox extends Component {
constructor () {
this.state = {
checked: false;
}
}
render() {
return (
<div className={styles.respect}>
OffTopicCheckbox
<input type
</div>
);
}
}
export default OffTopicCheckbox;
@@ -1,30 +0,0 @@
.respect {
display: inline-block;
}
.button {
color: #2a2a2a;
margin: 5px 10px 5px 0px;
background: none;
padding: 0px;
border: none;
font-size: inherit;
&:hover {
color: #767676;
cursor: pointer;
}
&.respected {
color: #c98211;
&:hover {
color: #e59614;
cursor: pointer;
}
}
}
.icon {
padding: 0 5px;
}
-9
View File
@@ -1,9 +0,0 @@
import OffTopicCheckbox from './components/OffTopicCheckbox';
import OffTopicBadge from './components/OffTopicBadge';
export default {
slots: {
commentBoxDetail: [OffTopicCheckbox],
commentInfoBar: [OffTopicBadge]
}
};
@@ -1,10 +0,0 @@
{
"en": {
"respect": "Respect",
"respected": "Respected"
},
"es": {
"respect": "Respeto",
"respected": "Respetado"
}
}
-2
View File
@@ -1,2 +0,0 @@
module.exports = {
}