diff --git a/.gitignore b/.gitignore index b87f2b6d7..bd86e6906 100644 --- a/.gitignore +++ b/.gitignore @@ -18,5 +18,5 @@ plugins.json plugins/* !plugins/coral-plugin-facebook-auth !plugins/coral-plugin-respect -!plugins/coral-plugin-* +!plugins/coral-plugin-offtopic diff --git a/client/coral-embed-stream/src/Comment.js b/client/coral-embed-stream/src/Comment.js index ccd6b3d61..19840db33 100644 --- a/client/coral-embed-stream/src/Comment.js +++ b/client/coral-embed-stream/src/Comment.js @@ -189,7 +189,7 @@ class Comment extends React.Component { removeBest={removeBestTag} /> - +
diff --git a/plugins/coral-plugin-x/client/.babelrc b/plugins/coral-plugin-x/client/.babelrc deleted file mode 100644 index 60be246eb..000000000 --- a/plugins/coral-plugin-x/client/.babelrc +++ /dev/null @@ -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" - ] -} \ No newline at end of file diff --git a/plugins/coral-plugin-x/client/.eslintrc.json b/plugins/coral-plugin-x/client/.eslintrc.json deleted file mode 100644 index 9fe56bd14..000000000 --- a/plugins/coral-plugin-x/client/.eslintrc.json +++ /dev/null @@ -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"] }] - } -} diff --git a/plugins/coral-plugin-x/client/components/OffTopicBadge.js b/plugins/coral-plugin-x/client/components/OffTopicBadge.js deleted file mode 100644 index 647ff1ea9..000000000 --- a/plugins/coral-plugin-x/client/components/OffTopicBadge.js +++ /dev/null @@ -1,15 +0,0 @@ -import React, {Component} from 'react'; -import styles from './style.css'; - -class OffTopicBadge extends Component { - render() { - return ( - - OffTopicCheckbox - - ); - } -} - -export default OffTopicBadge; - diff --git a/plugins/coral-plugin-x/client/components/OffTopicCheckbox.js b/plugins/coral-plugin-x/client/components/OffTopicCheckbox.js deleted file mode 100644 index 715877b42..000000000 --- a/plugins/coral-plugin-x/client/components/OffTopicCheckbox.js +++ /dev/null @@ -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 ( -
- OffTopicCheckbox - - ); - } -} - -export default OffTopicCheckbox; - diff --git a/plugins/coral-plugin-x/client/components/style.css b/plugins/coral-plugin-x/client/components/style.css deleted file mode 100644 index 32f9a8959..000000000 --- a/plugins/coral-plugin-x/client/components/style.css +++ /dev/null @@ -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; -} diff --git a/plugins/coral-plugin-x/client/index.js b/plugins/coral-plugin-x/client/index.js deleted file mode 100644 index 920417f44..000000000 --- a/plugins/coral-plugin-x/client/index.js +++ /dev/null @@ -1,9 +0,0 @@ -import OffTopicCheckbox from './components/OffTopicCheckbox'; -import OffTopicBadge from './components/OffTopicBadge'; - -export default { - slots: { - commentBoxDetail: [OffTopicCheckbox], - commentInfoBar: [OffTopicBadge] - } -}; diff --git a/plugins/coral-plugin-x/client/translations.json b/plugins/coral-plugin-x/client/translations.json deleted file mode 100644 index 643f32ccf..000000000 --- a/plugins/coral-plugin-x/client/translations.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "en": { - "respect": "Respect", - "respected": "Respected" - }, - "es": { - "respect": "Respeto", - "respected": "Respetado" - } -} diff --git a/plugins/coral-plugin-x/index.js b/plugins/coral-plugin-x/index.js deleted file mode 100644 index 631f37565..000000000 --- a/plugins/coral-plugin-x/index.js +++ /dev/null @@ -1,2 +0,0 @@ -module.exports = { -}