From eb3a9431f9d11725d45546bfc3db980ee9d3a8ad Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Thu, 20 Jul 2017 11:50:13 -0300 Subject: [PATCH] Renaming --- .eslintignore | 18 ++++---- .gitignore | 18 ++++---- bin/templates/plugin/client/translations.yml | 4 +- .../src/routes/Community/components/User.js | 2 +- .../src/components/Comment.js | 10 ++--- .../src/components/EditableCommentContent.js | 4 +- .../src/components/Stream.js | 8 ++-- client/coral-embed-stream/style/default.css | 44 +++++++++---------- client/coral-framework/reducers/index.js | 2 +- client/coral-plugin-author-name/AuthorName.js | 2 +- .../components/FlagButton.js | 2 +- client/coral-plugin-history/Comment.js | 2 +- client/coral-plugin-infobox/InfoBox.js | 2 +- client/coral-plugin-pubdate/PubDate.js | 2 +- .../coral-plugin-questionbox/QuestionBox.js | 2 +- client/coral-plugin-replies/ReplyBox.js | 4 +- client/coral-plugin-replies/ReplyButton.js | 2 +- client/coral-plugin-tag-label/TagLabel.js | 2 +- .../containers/ProfileContainer.js | 2 +- docs/architecture-tags.md | 4 +- docs/pages/plugins/client.md | 4 +- docs/plugins-client.md | 4 +- docs/plugins-experimental.md | 2 +- plugin-api/alpha/client/actions/index.js | 2 +- plugins.default.json | 18 ++++---- .../client/components/FakeComment.js | 30 ++++++------- .../client/components/CommentContent.js | 2 +- .../coral-plugin-comment-content/package.json | 2 +- plugins/coral-plugin-facebook-auth/README.md | 2 +- .../coral-plugin-facebook-auth/package.json | 2 +- .../coral-plugin-like/client/LikeButton.js | 4 +- .../coral-plugin-like/client/translations.yml | 4 +- .../coral-plugin-love/client/LoveButton.js | 4 +- .../coral-plugin-love/client/translations.yml | 4 +- .../client/components/OffTopicFilter.js | 2 +- .../client/components/styles.css | 2 +- .../client/containers/OffTopicFilter.js | 2 +- plugins/coral-plugin-offtopic/client/index.js | 2 +- .../client/RespectButton.js | 4 +- .../client/translations.yml | 4 +- .../client/components/ViewingOptions.js | 6 +-- test/e2e/pages/embedStreamPage.js | 32 +++++++------- test/e2e/tests/EmbedStreamTests.js | 38 ++++++++-------- views/article.ejs | 2 +- 44 files changed, 157 insertions(+), 157 deletions(-) diff --git a/.eslintignore b/.eslintignore index afa7bf16d..cd0b1a983 100644 --- a/.eslintignore +++ b/.eslintignore @@ -3,15 +3,15 @@ docs client/lib **/*.html plugins/* -!plugins/coral-plugin-facebook-auth -!plugins/coral-plugin-auth -!plugins/coral-plugin-respect -!plugins/coral-plugin-offtopic -!plugins/coral-plugin-like -!plugins/coral-plugin-mod -!plugins/coral-plugin-love -!plugins/coral-plugin-viewing-options -!plugins/coral-plugin-comment-content +!plugins/talk-plugin-facebook-auth +!plugins/talk-plugin-auth +!plugins/talk-plugin-respect +!plugins/talk-plugin-offtopic +!plugins/talk-plugin-like +!plugins/talk-plugin-mod +!plugins/talk-plugin-love +!plugins/talk-plugin-viewing-options +!plugins/talk-plugin-comment-content !plugins/talk-plugin-permalink !plugins/talk-plugin-featured-comments diff --git a/.gitignore b/.gitignore index bd8edcd94..83b62b259 100644 --- a/.gitignore +++ b/.gitignore @@ -16,15 +16,15 @@ coverage/ plugins.json plugins/* -!plugins/coral-plugin-facebook-auth -!plugins/coral-plugin-auth -!plugins/coral-plugin-respect -!plugins/coral-plugin-offtopic -!plugins/coral-plugin-like -!plugins/coral-plugin-mod -!plugins/coral-plugin-love -!plugins/coral-plugin-viewing-options -!plugins/coral-plugin-comment-content +!plugins/talk-plugin-facebook-auth +!plugins/talk-plugin-auth +!plugins/talk-plugin-respect +!plugins/talk-plugin-offtopic +!plugins/talk-plugin-like +!plugins/talk-plugin-mod +!plugins/talk-plugin-love +!plugins/talk-plugin-viewing-options +!plugins/talk-plugin-comment-content !plugins/talk-plugin-permalink !plugins/talk-plugin-featured-comments diff --git a/bin/templates/plugin/client/translations.yml b/bin/templates/plugin/client/translations.yml index d8407b801..8961fd6e7 100644 --- a/bin/templates/plugin/client/translations.yml +++ b/bin/templates/plugin/client/translations.yml @@ -4,11 +4,11 @@ # # ``` # en: -# coral-plugin-respect: +# talk-plugin-respect: # respect: Respect # respected: Respected # es: -# coral-plugin-respect: +# talk-plugin-respect: # respect: Respetar # respected: Respetado # ``` diff --git a/client/coral-admin/src/routes/Community/components/User.js b/client/coral-admin/src/routes/Community/components/User.js index b6a01f016..5aea161b5 100644 --- a/client/coral-admin/src/routes/Community/components/User.js +++ b/client/coral-admin/src/routes/Community/components/User.js @@ -2,7 +2,7 @@ import React from 'react'; import styles from './Community.css'; import ActionButton from './ActionButton'; -import {username} from 'coral-plugin-flags/helpers/flagReasons'; +import {username} from 'talk-plugin-flags/helpers/flagReasons'; import ActionsMenu from 'coral-admin/src/components/ActionsMenu'; import ActionsMenuItem from 'coral-admin/src/components/ActionsMenuItem'; diff --git a/client/coral-embed-stream/src/components/Comment.js b/client/coral-embed-stream/src/components/Comment.js index 8e0539279..54bbfea50 100644 --- a/client/coral-embed-stream/src/components/Comment.js +++ b/client/coral-embed-stream/src/components/Comment.js @@ -1,11 +1,11 @@ import React from 'react'; import PropTypes from 'prop-types'; -import AuthorName from 'coral-plugin-author-name/AuthorName'; -import TagLabel from 'coral-plugin-tag-label/TagLabel'; -import PubDate from 'coral-plugin-pubdate/PubDate'; -import {ReplyBox, ReplyButton} from 'coral-plugin-replies'; -import {FlagComment} from 'coral-plugin-flags'; +import AuthorName from 'talk-plugin-author-name/AuthorName'; +import TagLabel from 'talk-plugin-tag-label/TagLabel'; +import PubDate from 'talk-plugin-pubdate/PubDate'; +import {ReplyBox, ReplyButton} from 'talk-plugin-replies'; +import {FlagComment} from 'talk-plugin-flags'; import {can} from 'coral-framework/services/perms'; import {TransitionGroup} from 'react-transition-group'; import cn from 'classnames'; diff --git a/client/coral-embed-stream/src/components/EditableCommentContent.js b/client/coral-embed-stream/src/components/EditableCommentContent.js index 98be14d13..6512c8cdd 100644 --- a/client/coral-embed-stream/src/components/EditableCommentContent.js +++ b/client/coral-embed-stream/src/components/EditableCommentContent.js @@ -1,6 +1,6 @@ import React, {PropTypes} from 'react'; -import {notifyForNewCommentStatus} from 'coral-plugin-commentbox/CommentBox'; -import {CommentForm} from 'coral-plugin-commentbox/CommentForm'; +import {notifyForNewCommentStatus} from 'talk-plugin-commentbox/CommentBox'; +import {CommentForm} from 'talk-plugin-commentbox/CommentForm'; import styles from './Comment.css'; import {CountdownSeconds} from './CountdownSeconds'; import {getEditableUntilDate} from './util'; diff --git a/client/coral-embed-stream/src/components/Stream.js b/client/coral-embed-stream/src/components/Stream.js index 2a1381862..99ff760e8 100644 --- a/client/coral-embed-stream/src/components/Stream.js +++ b/client/coral-embed-stream/src/components/Stream.js @@ -4,15 +4,15 @@ import {StreamError} from './StreamError'; import Comment from '../components/Comment'; import SuspendedAccount from './SuspendedAccount'; import Slot from 'coral-framework/components/Slot'; -import InfoBox from 'coral-plugin-infobox/InfoBox'; +import InfoBox from 'talk-plugin-infobox/InfoBox'; import {can} from 'coral-framework/services/perms'; -import {ModerationLink} from 'coral-plugin-moderation'; +import {ModerationLink} from 'talk-plugin-moderation'; import RestrictedMessageBox from 'coral-framework/components/RestrictedMessageBox'; import t, {timeago} from 'coral-framework/services/i18n'; import {getSlotComponents} from 'coral-framework/helpers/plugins'; -import CommentBox from 'coral-plugin-commentbox/CommentBox'; -import QuestionBox from 'coral-plugin-questionbox/QuestionBox'; +import CommentBox from 'talk-plugin-commentbox/CommentBox'; +import QuestionBox from 'talk-plugin-questionbox/QuestionBox'; import {Button, TabBar, Tab, TabCount, TabContent, TabPane} from 'coral-ui'; import cn from 'classnames'; diff --git a/client/coral-embed-stream/style/default.css b/client/coral-embed-stream/style/default.css index 90a6250a3..055107b33 100644 --- a/client/coral-embed-stream/style/default.css +++ b/client/coral-embed-stream/style/default.css @@ -79,7 +79,7 @@ body { } /* Info Box Styles */ -.coral-plugin-infobox-info { +.talk-plugin-infobox-info { top: 0; border: 0; background: #DEEDFF; @@ -94,26 +94,26 @@ body { } -.coral-plugin-infobox-info em{ +.talk-plugin-infobox-info em{ font-style: italic; } -.coral-plugin-infobox-info strong{ +.talk-plugin-infobox-info strong{ font-weight: bold; } -.coral-plugin-infobox-info blockquote{ +.talk-plugin-infobox-info blockquote{ border-left: solid 2px #2a2a2a; padding-left: 10px; } -.coral-plugin-infobox-info a{ +.talk-plugin-infobox-info a{ color: #2a2a2a; } /* Question Box Styles */ -.coral-plugin-questionbox-info { +.talk-plugin-questionbox-info { top: 0; border: 0; background: #F0F0F0; @@ -129,7 +129,7 @@ body { display: flex; } -.coral-plugin-questionbox-icon.bubble{ +.talk-plugin-questionbox-icon.bubble{ position: absolute; top: 8px; left: 10px; @@ -138,7 +138,7 @@ body { z-index: 0; } -.coral-plugin-questionbox-icon.person{ +.talk-plugin-questionbox-icon.person{ z-index: 2; top: 12px; left: 12px; @@ -147,7 +147,7 @@ body { color: #262626; } -.coral-plugin-questionbox-box { +.talk-plugin-questionbox-box { position: relative; border: 0; color: white; @@ -161,7 +161,7 @@ body { vertical-align: middle; } -.coral-plugin-questionbox-content { +.talk-plugin-questionbox-content { padding: 5px; display: flex; align-items: center; @@ -231,26 +231,26 @@ body { position: relative; } -.coral-plugin-commentcontent-text { +.talk-plugin-commentcontent-text { margin-bottom: 7px; font-size: 16px; font-weight: 100; line-height: 1.3; } -.coral-plugin-author-name-text { +.talk-plugin-author-name-text { display: inline-block; margin: 10px 5px 10px 0; font-weight: bold; } -.coral-plugin-author-name-bio-flag { +.talk-plugin-author-name-bio-flag { float: right; } /* Tag Labels */ -.coral-plugin-tag-label { +.talk-plugin-tag-label { background-color: #4C1066; color: white; display: inline-block; @@ -293,44 +293,44 @@ button.comment__action-button[disabled], color: #F00; } -.coral-plugin-pubdate-text { +.talk-plugin-pubdate-text { display: inline-block; } /* Flag Styles */ -.coral-plugin-flags-popup-form { +.talk-plugin-flags-popup-form { margin-bottom: 10px; } -.coral-plugin-flags-popup-header { +.talk-plugin-flags-popup-header { font-weight: bolder; font-size: 1.33rem; margin-bottom: 10px; } -.coral-plugin-flags-popup-radio { +.talk-plugin-flags-popup-radio { margin:5px; } -.coral-plugin-flags-popup-radio-label { +.talk-plugin-flags-popup-radio-label { margin:5px; font-weight: 400; font-size: .9rem; } -.coral-plugin-flags-popup-counter { +.talk-plugin-flags-popup-counter { float: left; margin-top: 21px; color: #999; } -.coral-plugin-flags-popup-button { +.talk-plugin-flags-popup-button { float: right; margin-top: 10px; } -.coral-plugin-flags-reason-text { +.talk-plugin-flags-reason-text { margin-left: 20px; margin-top: 5px; width: 75%; diff --git a/client/coral-framework/reducers/index.js b/client/coral-framework/reducers/index.js index 8928cae93..f1ac580dc 100644 --- a/client/coral-framework/reducers/index.js +++ b/client/coral-framework/reducers/index.js @@ -1,7 +1,7 @@ import auth from './auth'; import user from './user'; import asset from './asset'; -import {reducer as commentBox} from '../../coral-plugin-commentbox'; +import {reducer as commentBox} from '../../talk-plugin-commentbox'; export default { auth, diff --git a/client/coral-plugin-author-name/AuthorName.js b/client/coral-plugin-author-name/AuthorName.js index 7d453d96f..89835a742 100644 --- a/client/coral-plugin-author-name/AuthorName.js +++ b/client/coral-plugin-author-name/AuthorName.js @@ -1,5 +1,5 @@ import React, {Component} from 'react'; -const packagename = 'coral-plugin-author-name'; +const packagename = 'talk-plugin-author-name'; export default class AuthorName extends Component { diff --git a/client/coral-plugin-flags/components/FlagButton.js b/client/coral-plugin-flags/components/FlagButton.js index 51b88391e..6b7e3cc56 100644 --- a/client/coral-plugin-flags/components/FlagButton.js +++ b/client/coral-plugin-flags/components/FlagButton.js @@ -8,7 +8,7 @@ import ClickOutside from 'coral-framework/components/ClickOutside'; import cn from 'classnames'; import styles from './styles.css'; -const name = 'coral-plugin-flags'; +const name = 'talk-plugin-flags'; export default class FlagButton extends Component { diff --git a/client/coral-plugin-history/Comment.js b/client/coral-plugin-history/Comment.js index 78d48c1e6..f90362e2d 100644 --- a/client/coral-plugin-history/Comment.js +++ b/client/coral-plugin-history/Comment.js @@ -2,7 +2,7 @@ import React, {PropTypes} from 'react'; import {Icon} from '../coral-ui'; import styles from './Comment.css'; import Slot from 'coral-framework/components/Slot'; -import PubDate from '../coral-plugin-pubdate/PubDate'; +import PubDate from '../talk-plugin-pubdate/PubDate'; import CommentContent from '../coral-embed-stream/src/components/CommentContent'; import t from 'coral-framework/services/i18n'; diff --git a/client/coral-plugin-infobox/InfoBox.js b/client/coral-plugin-infobox/InfoBox.js index dd94cfecd..3b9d7da75 100644 --- a/client/coral-plugin-infobox/InfoBox.js +++ b/client/coral-plugin-infobox/InfoBox.js @@ -1,7 +1,7 @@ import React from 'react'; import Markdown from './Markdown'; -const packagename = 'coral-plugin-infobox'; +const packagename = 'talk-plugin-infobox'; const InfoBox = ({enable, content}) =>
{timeago(created_at)} diff --git a/client/coral-plugin-questionbox/QuestionBox.js b/client/coral-plugin-questionbox/QuestionBox.js index 3ad439c2a..d22801bae 100644 --- a/client/coral-plugin-questionbox/QuestionBox.js +++ b/client/coral-plugin-questionbox/QuestionBox.js @@ -1,5 +1,5 @@ import React from 'react'; -const packagename = 'coral-plugin-questionbox'; +const packagename = 'talk-plugin-questionbox'; import Slot from 'coral-framework/components/Slot'; const QuestionBox = ({enable, content}) => diff --git a/client/coral-plugin-replies/ReplyBox.js b/client/coral-plugin-replies/ReplyBox.js index 7e0bd04d5..58cb0110d 100644 --- a/client/coral-plugin-replies/ReplyBox.js +++ b/client/coral-plugin-replies/ReplyBox.js @@ -1,7 +1,7 @@ import React, {Component, PropTypes} from 'react'; -import CommentBox from '../coral-plugin-commentbox/CommentBox'; +import CommentBox from '../talk-plugin-commentbox/CommentBox'; -const name = 'coral-plugin-replies'; +const name = 'talk-plugin-replies'; class ReplyBox extends Component { diff --git a/client/coral-plugin-replies/ReplyButton.js b/client/coral-plugin-replies/ReplyButton.js index b4c1ccfbc..8ea113c97 100644 --- a/client/coral-plugin-replies/ReplyButton.js +++ b/client/coral-plugin-replies/ReplyButton.js @@ -5,7 +5,7 @@ import t from 'coral-framework/services/i18n'; import cn from 'classnames'; import styles from './ReplyButton.css'; -const name = 'coral-plugin-replies'; +const name = 'talk-plugin-replies'; const ReplyButton = ({onClick}) => { return ( diff --git a/client/coral-plugin-tag-label/TagLabel.js b/client/coral-plugin-tag-label/TagLabel.js index 4a5d3632f..8c6f19a60 100644 --- a/client/coral-plugin-tag-label/TagLabel.js +++ b/client/coral-plugin-tag-label/TagLabel.js @@ -1,6 +1,6 @@ import React from 'react'; -const TagLabel = ({children}) =>
+const TagLabel = ({children}) =>
{children}
; diff --git a/client/coral-settings/containers/ProfileContainer.js b/client/coral-settings/containers/ProfileContainer.js index a4cb9459f..91de923b2 100644 --- a/client/coral-settings/containers/ProfileContainer.js +++ b/client/coral-settings/containers/ProfileContainer.js @@ -9,7 +9,7 @@ import {link} from 'coral-framework/services/pym'; import NotLoggedIn from '../components/NotLoggedIn'; import IgnoredUsers from '../components/IgnoredUsers'; import {Spinner} from 'coral-ui'; -import CommentHistory from 'coral-plugin-history/CommentHistory'; +import CommentHistory from 'talk-plugin-history/CommentHistory'; import {showSignInDialog, checkLogin} from 'coral-framework/actions/auth'; import t from 'coral-framework/services/i18n'; diff --git a/docs/architecture-tags.md b/docs/architecture-tags.md index 06c5d3498..1e4405509 100644 --- a/docs/architecture-tags.md +++ b/docs/architecture-tags.md @@ -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: [ { diff --git a/docs/pages/plugins/client.md b/docs/pages/plugins/client.md index dce2d58af..6c511079f 100644 --- a/docs/pages/plugins/client.md +++ b/docs/pages/plugins/client.md @@ -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 diff --git a/docs/plugins-client.md b/docs/plugins-client.md index 4f4e784ec..b9aae359d 100644 --- a/docs/plugins-client.md +++ b/docs/plugins-client.md @@ -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 diff --git a/docs/plugins-experimental.md b/docs/plugins-experimental.md index 766f5f050..b89f3741a 100644 --- a/docs/plugins-experimental.md +++ b/docs/plugins-experimental.md @@ -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() { diff --git a/plugin-api/alpha/client/actions/index.js b/plugin-api/alpha/client/actions/index.js index 8e8e11c0a..f6b2427a8 100644 --- a/plugin-api/alpha/client/actions/index.js +++ b/plugin-api/alpha/client/actions/index.js @@ -1,2 +1,2 @@ -export {addTag, removeTag} from 'coral-plugin-commentbox/actions'; +export {addTag, removeTag} from 'talk-plugin-commentbox/actions'; export {addCommentClassName, removeCommentClassName} from 'coral-embed-stream/src/actions/stream'; diff --git a/plugins.default.json b/plugins.default.json index 4a1ea3282..05da159b7 100644 --- a/plugins.default.json +++ b/plugins.default.json @@ -1,17 +1,17 @@ { "server": [ - "coral-plugin-auth", - "coral-plugin-respect", - "coral-plugin-offtopic", - "coral-plugin-facebook-auth", + "talk-plugin-auth", + "talk-plugin-respect", + "talk-plugin-offtopic", + "talk-plugin-facebook-auth", "talk-plugin-featured-comments" ], "client": [ - "coral-plugin-respect", - "coral-plugin-auth", - "coral-plugin-offtopic", - "coral-plugin-viewing-options", - "coral-plugin-comment-content", + "talk-plugin-respect", + "talk-plugin-auth", + "talk-plugin-offtopic", + "talk-plugin-viewing-options", + "talk-plugin-comment-content", "talk-plugin-permalink", "talk-plugin-featured-comments" ] diff --git a/plugins/coral-plugin-auth/client/components/FakeComment.js b/plugins/coral-plugin-auth/client/components/FakeComment.js index 5517b72aa..b6b4e7609 100644 --- a/plugins/coral-plugin-auth/client/components/FakeComment.js +++ b/plugins/coral-plugin-auth/client/components/FakeComment.js @@ -1,9 +1,9 @@ import React from 'react'; import t from 'coral-framework/services/i18n'; -import {ReplyButton} from 'coral-plugin-replies'; -import PubDate from 'coral-plugin-pubdate/PubDate'; +import {ReplyButton} from 'talk-plugin-replies'; +import PubDate from 'talk-plugin-pubdate/PubDate'; import Slot from 'coral-framework/components/Slot'; -import AuthorName from 'coral-plugin-author-name/AuthorName'; +import AuthorName from 'talk-plugin-author-name/AuthorName'; import styles from 'coral-embed-stream/src/components/Comment.css'; export const FakeComment = ({username, created_at, comment}) => ( @@ -13,13 +13,13 @@ export const FakeComment = ({username, created_at, comment}) => (
-
-
-
-
-
-
{ props.open ? ( -
+
    { React.Children.map(, (component) => { return React.createElement('li', { - className: 'coral-plugin-viewing-options-item' + className: 'talk-plugin-viewing-options-item' }, component); }) } diff --git a/test/e2e/pages/embedStreamPage.js b/test/e2e/pages/embedStreamPage.js index 536e58b38..75e9e0ecd 100644 --- a/test/e2e/pages/embedStreamPage.js +++ b/test/e2e/pages/embedStreamPage.js @@ -111,52 +111,52 @@ module.exports = { selector: '#coralStream #logout' }, commentBox: { - selector: '.coral-plugin-commentbox-textarea' + selector: '.talk-plugin-commentbox-textarea' }, postButton: { - selector: '#commentBox .coral-plugin-commentbox-button' + selector: '#commentBox .talk-plugin-commentbox-button' }, likeButton: { - selector: '.embed__stream .comment .coral-plugin-likes-container .coral-plugin-likes-button' + selector: '.embed__stream .comment .talk-plugin-likes-container .talk-plugin-likes-button' }, likeText: { - selector: '.embed__stream .comment .coral-plugin-likes-container .coral-plugin-likes-button .coral-plugin-likes-button-text' + selector: '.embed__stream .comment .talk-plugin-likes-container .talk-plugin-likes-button .talk-plugin-likes-button-text' }, likesCount: { - selector: '.embed__stream .comment .coral-plugin-likes-container .coral-plugin-likes-button .coral-plugin-likes-like-count' + selector: '.embed__stream .comment .talk-plugin-likes-container .talk-plugin-likes-button .talk-plugin-likes-like-count' }, flagButton: { - selector: '.embed__stream .comment .coral-plugin-flags-container .coral-plugin-flags-button' + selector: '.embed__stream .comment .talk-plugin-flags-container .talk-plugin-flags-button' }, flagPopUp: { - selector: '.embed__stream .comment .coral-plugin-flags-popup' + selector: '.embed__stream .comment .talk-plugin-flags-popup' }, flagCommentOption: { - selector: '.embed__stream .comment .coral-plugin-flags-popup .coral-plugin-flags-popup-radio-label[for="COMMENTS"]' + selector: '.embed__stream .comment .talk-plugin-flags-popup .talk-plugin-flags-popup-radio-label[for="COMMENTS"]' }, flagUsernameOption: { - selector: '.embed__stream .comment .coral-plugin-flags-popup .coral-plugin-flags-popup-radio-label[for="USERS"]' + selector: '.embed__stream .comment .talk-plugin-flags-popup .talk-plugin-flags-popup-radio-label[for="USERS"]' }, flagOtherOption: { - selector: '.embed__stream .comment .coral-plugin-flags-popup .coral-plugin-flags-popup-radio-label[for="other"]' + selector: '.embed__stream .comment .talk-plugin-flags-popup .talk-plugin-flags-popup-radio-label[for="other"]' }, flagHeaderMessage: { - selector: '.embed__stream .comment .coral-plugin-flags-popup .coral-plugin-flags-popup-header' + selector: '.embed__stream .comment .talk-plugin-flags-popup .talk-plugin-flags-popup-header' }, flagButtonText: { - selector: '.embed__stream .comment .coral-plugin-flags-button-text' + selector: '.embed__stream .comment .talk-plugin-flags-button-text' }, flagDoneButton: { - selector: '.embed__stream .comment .coral-plugin-flags-popup .coral-plugin-flags-popup-button' + selector: '.embed__stream .comment .talk-plugin-flags-popup .talk-plugin-flags-popup-button' }, permalinkButton: { - selector: '.embed__stream .comment .coral-plugin-permalinks-button' + selector: '.embed__stream .comment .talk-plugin-permalinks-button' }, permalinkPopUp: { - selector: '.embed__stream .comment .coral-plugin-permalinks-popover.active' + selector: '.embed__stream .comment .talk-plugin-permalinks-popover.active' }, permalinkInput: { - selector: '.embed__stream .comment .coral-plugin-permalinks-popover.active input' + selector: '.embed__stream .comment .talk-plugin-permalinks-popover.active input' }, registerButton: { selector: '#signInDialog #coralRegister' diff --git a/test/e2e/tests/EmbedStreamTests.js b/test/e2e/tests/EmbedStreamTests.js index ed1bc9c6f..0db0ad4d7 100644 --- a/test/e2e/tests/EmbedStreamTests.js +++ b/test/e2e/tests/EmbedStreamTests.js @@ -43,15 +43,15 @@ module.exports = { .click('#coralSignUpButton') .waitForElementVisible('#coralLogInButton', 10000) .click('#coralLogInButton') - .waitForElementVisible('.coral-plugin-commentbox-button', 4000) + .waitForElementVisible('.talk-plugin-commentbox-button', 4000) // Post a comment - .setValue('.coral-plugin-commentbox-textarea', mockComment) - .click('.coral-plugin-commentbox-button') - .waitForElementVisible('.embed__stream .coral-plugin-commentcontent-text', 1000) + .setValue('.talk-plugin-commentbox-textarea', mockComment) + .click('.talk-plugin-commentbox-button') + .waitForElementVisible('.embed__stream .talk-plugin-commentcontent-text', 1000) // Verify that it appears - .assert.containsText('.embed__stream .coral-plugin-commentcontent-text', mockComment); + .assert.containsText('.embed__stream .talk-plugin-commentcontent-text', mockComment); done(); }) .catch((err) => { @@ -70,9 +70,9 @@ module.exports = { .frame('coralStreamEmbed_iframe'); // Post a comment - client.waitForElementVisible('.coral-plugin-commentbox-button', 2000) - .setValue('.coral-plugin-commentbox-textarea', mockComment) - .click('.coral-plugin-commentbox-button'); + client.waitForElementVisible('.talk-plugin-commentbox-button', 2000) + .setValue('.talk-plugin-commentbox-textarea', mockComment) + .click('.talk-plugin-commentbox-button'); done(); }) .catch((err) => { @@ -92,17 +92,17 @@ module.exports = { .frame('coralStreamEmbed_iframe'); // Post a comment - client.waitForElementVisible('.coral-plugin-commentbox-button', 2000) - .setValue('.coral-plugin-commentbox-textarea', mockComment) - .click('.coral-plugin-commentbox-button') + client.waitForElementVisible('.talk-plugin-commentbox-button', 2000) + .setValue('.talk-plugin-commentbox-textarea', mockComment) + .click('.talk-plugin-commentbox-button') // Post a reply - .waitForElementVisible('.embed__stream .coral-plugin-replies-reply-button', 5000) - .click('.embed__stream .coral-plugin-replies-reply-button') + .waitForElementVisible('.embed__stream .talk-plugin-replies-reply-button', 5000) + .click('.embed__stream .talk-plugin-replies-reply-button') .waitForElementVisible('#replyText') .setValue('#replyText', mockReply) - .click('.embed__stream .coral-plugin-replies-textarea .coral-plugin-commentbox-button') + .click('.embed__stream .talk-plugin-replies-textarea .talk-plugin-commentbox-button') .waitForElementVisible('.embed__stream .reply', 20000) // Verify that it appears @@ -143,11 +143,11 @@ module.exports = { // .frame('coralStreamEmbed_iframe'); // // // Post a reply - // client.waitForElementVisible('.coral-plugin-replies-reply-button', 5000) - // .click('.coral-plugin-replies-reply-button') + // client.waitForElementVisible('.talk-plugin-replies-reply-button', 5000) + // .click('.talk-plugin-replies-reply-button') // .waitForElementVisible('#replyText') // .setValue('#replyText', mockReply) - // .click('.coral-plugin-replies-textarea button') + // .click('.talk-plugin-replies-textarea button') // .waitForElementVisible('#coral-notif', 1000) // // // Verify that it appears @@ -166,8 +166,8 @@ module.exports = { .frame('coralStreamEmbed_iframe'); // Verify that comment count is correct - client.waitForElementVisible('.coral-plugin-comment-count-text', 2000) - .assert.containsText('.coral-plugin-comment-count-text', '5 Comments'); + client.waitForElementVisible('.talk-plugin-comment-count-text', 2000) + .assert.containsText('.talk-plugin-comment-count-text', '5 Comments'); done(); }); }, diff --git a/views/article.ejs b/views/article.ejs index d803b6295..73e4fc86b 100644 --- a/views/article.ejs +++ b/views/article.ejs @@ -34,7 +34,7 @@ /** * You can disable rendering slot components of a plugin by doing: * - * 'coral-plugin-love': { + * 'talk-plugin-love': { * disable_components: true, * }, */