diff --git a/.eslintignore b/.eslintignore index 47a26f579..a9543d933 100644 --- a/.eslintignore +++ b/.eslintignore @@ -3,3 +3,4 @@ dist docs node_modules public + diff --git a/.gitignore b/.gitignore index deb8d25a4..5efed2e0c 100644 --- a/.gitignore +++ b/.gitignore @@ -60,6 +60,8 @@ plugins/* !plugins/talk-plugin-subscriber !plugins/talk-plugin-toxic-comments !plugins/talk-plugin-viewing-options +!plugins/talk-plugin-rich-text +!plugins/talk-plugin-rich-text-pell **/node_modules/* yarn-error.log diff --git a/Dockerfile b/Dockerfile index 4d0fea440..0b7c8caa4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,10 @@ COPY . /usr/src/app # Ensure the runtime of the container is in production mode. ENV NODE_ENV production +# Store the current git revision. +ARG REVISION_HASH +ENV REVISION_HASH=${REVISION_HASH} + # Install app dependencies and build static assets. RUN yarn global add node-gyp && \ yarn install --frozen-lockfile && \ diff --git a/client/coral-admin/src/components/UserDetailComment.css b/client/coral-admin/src/components/UserDetailComment.css index 75b968625..71cc19640 100644 --- a/client/coral-admin/src/components/UserDetailComment.css +++ b/client/coral-admin/src/components/UserDetailComment.css @@ -78,6 +78,12 @@ font-weight: 300; font-size: 16px; max-width: 360px; + + blockquote { + font-size: inherit; + line-height: inherit; + letter-spacing: inherit; + } } .sideActions { diff --git a/client/coral-admin/src/components/UserDetailComment.js b/client/coral-admin/src/components/UserDetailComment.js index 2d98edcb3..ba185a9df 100644 --- a/client/coral-admin/src/components/UserDetailComment.js +++ b/client/coral-admin/src/components/UserDetailComment.js @@ -1,7 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; +import Slot from 'coral-framework/components/Slot'; import { Link } from 'react-router'; - import { Icon } from 'coral-ui'; import CommentDetails from './CommentDetails'; import styles from './UserDetailComment.css'; @@ -33,9 +33,17 @@ class UserDetailComment extends React.Component { toggleSelect, className, data, - root: { settings: { wordlist: { banned, suspect } } }, + root: { settings }, } = this.props; + const queryData = { root, comment }; + + const formatterSettings = { + suspectWords: settings.wordlist.suspect, + bannedWords: settings.wordlist.banned, + body: comment.body, + }; + return (
  • -
    - +
    diff --git a/client/coral-embed-stream/src/tabs/stream/components/Comment.js b/client/coral-embed-stream/src/tabs/stream/components/Comment.js index f46630e97..c495b54f9 100644 --- a/client/coral-embed-stream/src/tabs/stream/components/Comment.js +++ b/client/coral-embed-stream/src/tabs/stream/components/Comment.js @@ -4,7 +4,7 @@ import PropTypes from 'prop-types'; import TagLabel from './TagLabel'; import CommentTimestamp from 'coral-framework/components/CommentTimestamp'; import ReplyButton from './ReplyButton'; -import ReplyBox from './ReplyBox'; +import ReplyBox from '../containers/ReplyBox'; import FlagComment from './FlagComment'; import { can } from 'coral-framework/services/perms'; import { TransitionGroup } from 'react-transition-group'; @@ -22,7 +22,7 @@ import CommentContent from 'coral-framework/components/CommentContent'; import Slot from 'coral-framework/components/Slot'; import CommentTombstone from './CommentTombstone'; import InactiveCommentLabel from './InactiveCommentLabel'; -import { EditableCommentContent } from './EditableCommentContent'; +import EditableCommentContent from '../containers/EditableCommentContent'; import { getActionSummary, iPerformedThisAction, @@ -372,9 +372,12 @@ export default class Comment extends React.Component { maxCharCount, notify, charCountEnable, + root, } = this.props; return ( -
    +
    {this.props.buttonContainerStart} {typeof this.props.onCancel === 'function' && (