From eb3a9431f9d11725d45546bfc3db980ee9d3a8ad Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Thu, 20 Jul 2017 11:50:13 -0300 Subject: [PATCH 01/22] 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, * }, */ From 6ec33a0225a99992a1383d28e1dbe6d4e44ddb26 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Thu, 20 Jul 2017 11:52:36 -0300 Subject: [PATCH 02/22] Plugins renaming --- .../AuthorName.js | 0 .../styles.css | 0 .../CommentBox.js | 0 .../CommentForm.js | 0 .../__tests__/commentBox.spec.js | 0 .../actions.js | 0 .../constants.js | 0 .../index.js | 0 .../reducer.js | 0 .../styles.css | 0 .../components/FlagButton.js | 0 .../components/FlagComment.js | 0 .../components/styles.css | 0 .../helpers/flagReasons.js | 0 .../index.js | 0 .../Comment.css | 0 .../Comment.js | 0 .../CommentHistory.css | 0 .../CommentHistory.js | 0 .../InfoBox.js | 0 .../Markdown.js | 0 .../__tests__/infoBox.spec.js | 0 .../__tests__/markdown.spec.js | 0 .../ModerationLink.js | 0 .../index.js | 0 .../styles.css | 0 .../PubDate.js | 0 .../QuestionBox.js | 0 .../ReplyBox.js | 0 .../ReplyButton.css | 0 .../ReplyButton.js | 0 .../index.js | 0 .../TagLabel.js | 0 .../client/components/CommentContent.js | 24 ---- .../client/index.js | 7 -- .../coral-plugin-comment-content/package.json | 14 --- .../coral-plugin-comment-content/yarn.lock | 112 ------------------ plugins/coral-plugin-facebook-auth/README.md | 24 ---- plugins/coral-plugin-facebook-auth/index.js | 7 -- .../coral-plugin-facebook-auth/package.json | 9 -- .../server/passport.js | 27 ----- .../server/router.js | 20 ---- plugins/coral-plugin-facebook-auth/yarn.lock | 34 ------ .../coral-plugin-mod/client/components/Box.js | 9 -- .../client/components/Container.js | 32 ----- .../client/components/styles.css | 8 -- plugins/coral-plugin-mod/client/index.js | 7 -- plugins/coral-plugin-mod/index.js | 2 - plugins/coral-plugin-respect/client/.babelrc | 14 --- .../client/.eslintrc.json | 23 ---- .../client/.babelrc | 14 --- .../client/.eslintrc.json | 23 ---- plugins/coral-plugin-viewing-options/index.js | 1 - .../client/.babelrc | 0 .../client/.eslintrc.json | 0 .../client/components/ChangeUsername.js | 0 .../client/components/CreateUsernameDialog.js | 0 .../client/components/FakeComment.js | 0 .../client/components/ForgotContent.js | 0 .../client/components/SignDialog.js | 0 .../client/components/SignInButton.js | 0 .../client/components/SignInContainer.js | 0 .../client/components/SignInContent.js | 0 .../client/components/SignUpContent.js | 0 .../client/components/UserBox.js | 0 .../client/components/styles.css | 0 .../client/index.js | 0 .../client/translations.yml | 0 .../index.js | 0 .../client/.babelrc | 0 .../client/.eslintrc.json | 0 .../client/LikeButton.js | 0 .../client/index.js | 0 .../client/styles.css | 0 .../client/translations.yml | 0 .../index.js | 0 .../client/.babelrc | 0 .../client/.eslintrc.json | 0 .../client/LoveButton.js | 0 .../client/index.js | 0 .../client/styles.css | 0 .../client/translations.yml | 0 .../index.js | 0 .../client/.babelrc | 0 .../client/.eslintrc.json | 0 .../client/actions.js | 0 .../client/components/OffTopicCheckbox.js | 0 .../client/components/OffTopicFilter.js | 0 .../client/components/OffTopicTag.js | 0 .../client/components/styles.css | 0 .../client/constants.js | 0 .../client/containers/OffTopicCheckbox.js | 0 .../client/containers/OffTopicFilter.js | 0 .../client/index.js | 0 .../client/reducer.js | 0 .../client/translations.json | 0 .../index.js | 0 .../client/.babelrc | 0 .../client/.eslintrc.json | 0 .../client/Icon.js | 0 .../client/RespectButton.js | 0 .../client/index.js | 0 .../client/styles.css | 0 .../client/translations.yml | 0 .../index.js | 0 .../client/.babelrc | 0 .../client/.eslintrc.json | 0 .../client/actions.js | 0 .../client/components/ViewingOptions.css | 0 .../client/components/ViewingOptions.js | 0 .../client/constants.js | 0 .../client/containers/ViewingOptions.js | 0 .../client/index.js | 0 .../client/reducer.js | 0 .../index.js | 0 115 files changed, 411 deletions(-) rename client/{coral-plugin-author-name => talk-plugin-author-name}/AuthorName.js (100%) rename client/{coral-plugin-author-name => talk-plugin-author-name}/styles.css (100%) rename client/{coral-plugin-commentbox => talk-plugin-commentbox}/CommentBox.js (100%) rename client/{coral-plugin-commentbox => talk-plugin-commentbox}/CommentForm.js (100%) rename client/{coral-plugin-commentbox => talk-plugin-commentbox}/__tests__/commentBox.spec.js (100%) rename client/{coral-plugin-commentbox => talk-plugin-commentbox}/actions.js (100%) rename client/{coral-plugin-commentbox => talk-plugin-commentbox}/constants.js (100%) rename client/{coral-plugin-commentbox => talk-plugin-commentbox}/index.js (100%) rename client/{coral-plugin-commentbox => talk-plugin-commentbox}/reducer.js (100%) rename client/{coral-plugin-commentbox => talk-plugin-commentbox}/styles.css (100%) rename client/{coral-plugin-flags => talk-plugin-flags}/components/FlagButton.js (100%) rename client/{coral-plugin-flags => talk-plugin-flags}/components/FlagComment.js (100%) rename client/{coral-plugin-flags => talk-plugin-flags}/components/styles.css (100%) rename client/{coral-plugin-flags => talk-plugin-flags}/helpers/flagReasons.js (100%) rename client/{coral-plugin-flags => talk-plugin-flags}/index.js (100%) rename client/{coral-plugin-history => talk-plugin-history}/Comment.css (100%) rename client/{coral-plugin-history => talk-plugin-history}/Comment.js (100%) rename client/{coral-plugin-history => talk-plugin-history}/CommentHistory.css (100%) rename client/{coral-plugin-history => talk-plugin-history}/CommentHistory.js (100%) rename client/{coral-plugin-infobox => talk-plugin-infobox}/InfoBox.js (100%) rename client/{coral-plugin-infobox => talk-plugin-infobox}/Markdown.js (100%) rename client/{coral-plugin-infobox => talk-plugin-infobox}/__tests__/infoBox.spec.js (100%) rename client/{coral-plugin-infobox => talk-plugin-infobox}/__tests__/markdown.spec.js (100%) rename client/{coral-plugin-moderation => talk-plugin-moderation}/ModerationLink.js (100%) rename client/{coral-plugin-moderation => talk-plugin-moderation}/index.js (100%) rename client/{coral-plugin-moderation => talk-plugin-moderation}/styles.css (100%) rename client/{coral-plugin-pubdate => talk-plugin-pubdate}/PubDate.js (100%) rename client/{coral-plugin-questionbox => talk-plugin-questionbox}/QuestionBox.js (100%) rename client/{coral-plugin-replies => talk-plugin-replies}/ReplyBox.js (100%) rename client/{coral-plugin-replies => talk-plugin-replies}/ReplyButton.css (100%) rename client/{coral-plugin-replies => talk-plugin-replies}/ReplyButton.js (100%) rename client/{coral-plugin-replies => talk-plugin-replies}/index.js (100%) rename client/{coral-plugin-tag-label => talk-plugin-tag-label}/TagLabel.js (100%) delete mode 100644 plugins/coral-plugin-comment-content/client/components/CommentContent.js delete mode 100644 plugins/coral-plugin-comment-content/client/index.js delete mode 100644 plugins/coral-plugin-comment-content/package.json delete mode 100644 plugins/coral-plugin-comment-content/yarn.lock delete mode 100644 plugins/coral-plugin-facebook-auth/README.md delete mode 100644 plugins/coral-plugin-facebook-auth/index.js delete mode 100644 plugins/coral-plugin-facebook-auth/package.json delete mode 100644 plugins/coral-plugin-facebook-auth/server/passport.js delete mode 100644 plugins/coral-plugin-facebook-auth/server/router.js delete mode 100644 plugins/coral-plugin-facebook-auth/yarn.lock delete mode 100644 plugins/coral-plugin-mod/client/components/Box.js delete mode 100644 plugins/coral-plugin-mod/client/components/Container.js delete mode 100644 plugins/coral-plugin-mod/client/components/styles.css delete mode 100644 plugins/coral-plugin-mod/client/index.js delete mode 100644 plugins/coral-plugin-mod/index.js delete mode 100644 plugins/coral-plugin-respect/client/.babelrc delete mode 100644 plugins/coral-plugin-respect/client/.eslintrc.json delete mode 100644 plugins/coral-plugin-viewing-options/client/.babelrc delete mode 100644 plugins/coral-plugin-viewing-options/client/.eslintrc.json delete mode 100644 plugins/coral-plugin-viewing-options/index.js rename plugins/{coral-plugin-auth => talk-plugin-auth}/client/.babelrc (100%) rename plugins/{coral-plugin-auth => talk-plugin-auth}/client/.eslintrc.json (100%) rename plugins/{coral-plugin-auth => talk-plugin-auth}/client/components/ChangeUsername.js (100%) rename plugins/{coral-plugin-auth => talk-plugin-auth}/client/components/CreateUsernameDialog.js (100%) rename plugins/{coral-plugin-auth => talk-plugin-auth}/client/components/FakeComment.js (100%) rename plugins/{coral-plugin-auth => talk-plugin-auth}/client/components/ForgotContent.js (100%) rename plugins/{coral-plugin-auth => talk-plugin-auth}/client/components/SignDialog.js (100%) rename plugins/{coral-plugin-auth => talk-plugin-auth}/client/components/SignInButton.js (100%) rename plugins/{coral-plugin-auth => talk-plugin-auth}/client/components/SignInContainer.js (100%) rename plugins/{coral-plugin-auth => talk-plugin-auth}/client/components/SignInContent.js (100%) rename plugins/{coral-plugin-auth => talk-plugin-auth}/client/components/SignUpContent.js (100%) rename plugins/{coral-plugin-auth => talk-plugin-auth}/client/components/UserBox.js (100%) rename plugins/{coral-plugin-auth => talk-plugin-auth}/client/components/styles.css (100%) rename plugins/{coral-plugin-auth => talk-plugin-auth}/client/index.js (100%) rename plugins/{coral-plugin-auth => talk-plugin-auth}/client/translations.yml (100%) rename plugins/{coral-plugin-auth => talk-plugin-auth}/index.js (100%) rename plugins/{coral-plugin-comment-content => talk-plugin-like}/client/.babelrc (100%) rename plugins/{coral-plugin-comment-content => talk-plugin-like}/client/.eslintrc.json (100%) rename plugins/{coral-plugin-like => talk-plugin-like}/client/LikeButton.js (100%) rename plugins/{coral-plugin-like => talk-plugin-like}/client/index.js (100%) rename plugins/{coral-plugin-like => talk-plugin-like}/client/styles.css (100%) rename plugins/{coral-plugin-like => talk-plugin-like}/client/translations.yml (100%) rename plugins/{coral-plugin-like => talk-plugin-like}/index.js (100%) rename plugins/{coral-plugin-like => talk-plugin-love}/client/.babelrc (100%) rename plugins/{coral-plugin-like => talk-plugin-love}/client/.eslintrc.json (100%) rename plugins/{coral-plugin-love => talk-plugin-love}/client/LoveButton.js (100%) rename plugins/{coral-plugin-love => talk-plugin-love}/client/index.js (100%) rename plugins/{coral-plugin-love => talk-plugin-love}/client/styles.css (100%) rename plugins/{coral-plugin-love => talk-plugin-love}/client/translations.yml (100%) rename plugins/{coral-plugin-love => talk-plugin-love}/index.js (100%) rename plugins/{coral-plugin-love => talk-plugin-offtopic}/client/.babelrc (100%) rename plugins/{coral-plugin-love => talk-plugin-offtopic}/client/.eslintrc.json (100%) rename plugins/{coral-plugin-offtopic => talk-plugin-offtopic}/client/actions.js (100%) rename plugins/{coral-plugin-offtopic => talk-plugin-offtopic}/client/components/OffTopicCheckbox.js (100%) rename plugins/{coral-plugin-offtopic => talk-plugin-offtopic}/client/components/OffTopicFilter.js (100%) rename plugins/{coral-plugin-offtopic => talk-plugin-offtopic}/client/components/OffTopicTag.js (100%) rename plugins/{coral-plugin-offtopic => talk-plugin-offtopic}/client/components/styles.css (100%) rename plugins/{coral-plugin-offtopic => talk-plugin-offtopic}/client/constants.js (100%) rename plugins/{coral-plugin-offtopic => talk-plugin-offtopic}/client/containers/OffTopicCheckbox.js (100%) rename plugins/{coral-plugin-offtopic => talk-plugin-offtopic}/client/containers/OffTopicFilter.js (100%) rename plugins/{coral-plugin-offtopic => talk-plugin-offtopic}/client/index.js (100%) rename plugins/{coral-plugin-offtopic => talk-plugin-offtopic}/client/reducer.js (100%) rename plugins/{coral-plugin-offtopic => talk-plugin-offtopic}/client/translations.json (100%) rename plugins/{coral-plugin-offtopic => talk-plugin-offtopic}/index.js (100%) rename plugins/{coral-plugin-mod => talk-plugin-respect}/client/.babelrc (100%) rename plugins/{coral-plugin-mod => talk-plugin-respect}/client/.eslintrc.json (100%) rename plugins/{coral-plugin-respect => talk-plugin-respect}/client/Icon.js (100%) rename plugins/{coral-plugin-respect => talk-plugin-respect}/client/RespectButton.js (100%) rename plugins/{coral-plugin-respect => talk-plugin-respect}/client/index.js (100%) rename plugins/{coral-plugin-respect => talk-plugin-respect}/client/styles.css (100%) rename plugins/{coral-plugin-respect => talk-plugin-respect}/client/translations.yml (100%) rename plugins/{coral-plugin-respect => talk-plugin-respect}/index.js (100%) rename plugins/{coral-plugin-offtopic => talk-plugin-viewing-options}/client/.babelrc (100%) rename plugins/{coral-plugin-offtopic => talk-plugin-viewing-options}/client/.eslintrc.json (100%) rename plugins/{coral-plugin-viewing-options => talk-plugin-viewing-options}/client/actions.js (100%) rename plugins/{coral-plugin-viewing-options => talk-plugin-viewing-options}/client/components/ViewingOptions.css (100%) rename plugins/{coral-plugin-viewing-options => talk-plugin-viewing-options}/client/components/ViewingOptions.js (100%) rename plugins/{coral-plugin-viewing-options => talk-plugin-viewing-options}/client/constants.js (100%) rename plugins/{coral-plugin-viewing-options => talk-plugin-viewing-options}/client/containers/ViewingOptions.js (100%) rename plugins/{coral-plugin-viewing-options => talk-plugin-viewing-options}/client/index.js (100%) rename plugins/{coral-plugin-viewing-options => talk-plugin-viewing-options}/client/reducer.js (100%) rename plugins/{coral-plugin-comment-content => talk-plugin-viewing-options}/index.js (100%) diff --git a/client/coral-plugin-author-name/AuthorName.js b/client/talk-plugin-author-name/AuthorName.js similarity index 100% rename from client/coral-plugin-author-name/AuthorName.js rename to client/talk-plugin-author-name/AuthorName.js diff --git a/client/coral-plugin-author-name/styles.css b/client/talk-plugin-author-name/styles.css similarity index 100% rename from client/coral-plugin-author-name/styles.css rename to client/talk-plugin-author-name/styles.css diff --git a/client/coral-plugin-commentbox/CommentBox.js b/client/talk-plugin-commentbox/CommentBox.js similarity index 100% rename from client/coral-plugin-commentbox/CommentBox.js rename to client/talk-plugin-commentbox/CommentBox.js diff --git a/client/coral-plugin-commentbox/CommentForm.js b/client/talk-plugin-commentbox/CommentForm.js similarity index 100% rename from client/coral-plugin-commentbox/CommentForm.js rename to client/talk-plugin-commentbox/CommentForm.js diff --git a/client/coral-plugin-commentbox/__tests__/commentBox.spec.js b/client/talk-plugin-commentbox/__tests__/commentBox.spec.js similarity index 100% rename from client/coral-plugin-commentbox/__tests__/commentBox.spec.js rename to client/talk-plugin-commentbox/__tests__/commentBox.spec.js diff --git a/client/coral-plugin-commentbox/actions.js b/client/talk-plugin-commentbox/actions.js similarity index 100% rename from client/coral-plugin-commentbox/actions.js rename to client/talk-plugin-commentbox/actions.js diff --git a/client/coral-plugin-commentbox/constants.js b/client/talk-plugin-commentbox/constants.js similarity index 100% rename from client/coral-plugin-commentbox/constants.js rename to client/talk-plugin-commentbox/constants.js diff --git a/client/coral-plugin-commentbox/index.js b/client/talk-plugin-commentbox/index.js similarity index 100% rename from client/coral-plugin-commentbox/index.js rename to client/talk-plugin-commentbox/index.js diff --git a/client/coral-plugin-commentbox/reducer.js b/client/talk-plugin-commentbox/reducer.js similarity index 100% rename from client/coral-plugin-commentbox/reducer.js rename to client/talk-plugin-commentbox/reducer.js diff --git a/client/coral-plugin-commentbox/styles.css b/client/talk-plugin-commentbox/styles.css similarity index 100% rename from client/coral-plugin-commentbox/styles.css rename to client/talk-plugin-commentbox/styles.css diff --git a/client/coral-plugin-flags/components/FlagButton.js b/client/talk-plugin-flags/components/FlagButton.js similarity index 100% rename from client/coral-plugin-flags/components/FlagButton.js rename to client/talk-plugin-flags/components/FlagButton.js diff --git a/client/coral-plugin-flags/components/FlagComment.js b/client/talk-plugin-flags/components/FlagComment.js similarity index 100% rename from client/coral-plugin-flags/components/FlagComment.js rename to client/talk-plugin-flags/components/FlagComment.js diff --git a/client/coral-plugin-flags/components/styles.css b/client/talk-plugin-flags/components/styles.css similarity index 100% rename from client/coral-plugin-flags/components/styles.css rename to client/talk-plugin-flags/components/styles.css diff --git a/client/coral-plugin-flags/helpers/flagReasons.js b/client/talk-plugin-flags/helpers/flagReasons.js similarity index 100% rename from client/coral-plugin-flags/helpers/flagReasons.js rename to client/talk-plugin-flags/helpers/flagReasons.js diff --git a/client/coral-plugin-flags/index.js b/client/talk-plugin-flags/index.js similarity index 100% rename from client/coral-plugin-flags/index.js rename to client/talk-plugin-flags/index.js diff --git a/client/coral-plugin-history/Comment.css b/client/talk-plugin-history/Comment.css similarity index 100% rename from client/coral-plugin-history/Comment.css rename to client/talk-plugin-history/Comment.css diff --git a/client/coral-plugin-history/Comment.js b/client/talk-plugin-history/Comment.js similarity index 100% rename from client/coral-plugin-history/Comment.js rename to client/talk-plugin-history/Comment.js diff --git a/client/coral-plugin-history/CommentHistory.css b/client/talk-plugin-history/CommentHistory.css similarity index 100% rename from client/coral-plugin-history/CommentHistory.css rename to client/talk-plugin-history/CommentHistory.css diff --git a/client/coral-plugin-history/CommentHistory.js b/client/talk-plugin-history/CommentHistory.js similarity index 100% rename from client/coral-plugin-history/CommentHistory.js rename to client/talk-plugin-history/CommentHistory.js diff --git a/client/coral-plugin-infobox/InfoBox.js b/client/talk-plugin-infobox/InfoBox.js similarity index 100% rename from client/coral-plugin-infobox/InfoBox.js rename to client/talk-plugin-infobox/InfoBox.js diff --git a/client/coral-plugin-infobox/Markdown.js b/client/talk-plugin-infobox/Markdown.js similarity index 100% rename from client/coral-plugin-infobox/Markdown.js rename to client/talk-plugin-infobox/Markdown.js diff --git a/client/coral-plugin-infobox/__tests__/infoBox.spec.js b/client/talk-plugin-infobox/__tests__/infoBox.spec.js similarity index 100% rename from client/coral-plugin-infobox/__tests__/infoBox.spec.js rename to client/talk-plugin-infobox/__tests__/infoBox.spec.js diff --git a/client/coral-plugin-infobox/__tests__/markdown.spec.js b/client/talk-plugin-infobox/__tests__/markdown.spec.js similarity index 100% rename from client/coral-plugin-infobox/__tests__/markdown.spec.js rename to client/talk-plugin-infobox/__tests__/markdown.spec.js diff --git a/client/coral-plugin-moderation/ModerationLink.js b/client/talk-plugin-moderation/ModerationLink.js similarity index 100% rename from client/coral-plugin-moderation/ModerationLink.js rename to client/talk-plugin-moderation/ModerationLink.js diff --git a/client/coral-plugin-moderation/index.js b/client/talk-plugin-moderation/index.js similarity index 100% rename from client/coral-plugin-moderation/index.js rename to client/talk-plugin-moderation/index.js diff --git a/client/coral-plugin-moderation/styles.css b/client/talk-plugin-moderation/styles.css similarity index 100% rename from client/coral-plugin-moderation/styles.css rename to client/talk-plugin-moderation/styles.css diff --git a/client/coral-plugin-pubdate/PubDate.js b/client/talk-plugin-pubdate/PubDate.js similarity index 100% rename from client/coral-plugin-pubdate/PubDate.js rename to client/talk-plugin-pubdate/PubDate.js diff --git a/client/coral-plugin-questionbox/QuestionBox.js b/client/talk-plugin-questionbox/QuestionBox.js similarity index 100% rename from client/coral-plugin-questionbox/QuestionBox.js rename to client/talk-plugin-questionbox/QuestionBox.js diff --git a/client/coral-plugin-replies/ReplyBox.js b/client/talk-plugin-replies/ReplyBox.js similarity index 100% rename from client/coral-plugin-replies/ReplyBox.js rename to client/talk-plugin-replies/ReplyBox.js diff --git a/client/coral-plugin-replies/ReplyButton.css b/client/talk-plugin-replies/ReplyButton.css similarity index 100% rename from client/coral-plugin-replies/ReplyButton.css rename to client/talk-plugin-replies/ReplyButton.css diff --git a/client/coral-plugin-replies/ReplyButton.js b/client/talk-plugin-replies/ReplyButton.js similarity index 100% rename from client/coral-plugin-replies/ReplyButton.js rename to client/talk-plugin-replies/ReplyButton.js diff --git a/client/coral-plugin-replies/index.js b/client/talk-plugin-replies/index.js similarity index 100% rename from client/coral-plugin-replies/index.js rename to client/talk-plugin-replies/index.js diff --git a/client/coral-plugin-tag-label/TagLabel.js b/client/talk-plugin-tag-label/TagLabel.js similarity index 100% rename from client/coral-plugin-tag-label/TagLabel.js rename to client/talk-plugin-tag-label/TagLabel.js diff --git a/plugins/coral-plugin-comment-content/client/components/CommentContent.js b/plugins/coral-plugin-comment-content/client/components/CommentContent.js deleted file mode 100644 index cc42f1b8d..000000000 --- a/plugins/coral-plugin-comment-content/client/components/CommentContent.js +++ /dev/null @@ -1,24 +0,0 @@ -import React from 'react'; -import Linkify from 'react-linkify'; - -const name = 'talk-plugin-comment-content'; - -const CommentContent = ({comment}) => { - const textbreaks = comment.body.split('\n'); - return
    - { - textbreaks.map((line, i) => { - return ( - - - {line} - -
    -
    - ); - }) - } -
    ; -}; - -export default CommentContent; diff --git a/plugins/coral-plugin-comment-content/client/index.js b/plugins/coral-plugin-comment-content/client/index.js deleted file mode 100644 index e61cb51f4..000000000 --- a/plugins/coral-plugin-comment-content/client/index.js +++ /dev/null @@ -1,7 +0,0 @@ -import CommentContent from './components/CommentContent'; - -export default { - slots: { - commentContent: [CommentContent] - } -}; diff --git a/plugins/coral-plugin-comment-content/package.json b/plugins/coral-plugin-comment-content/package.json deleted file mode 100644 index 85250143c..000000000 --- a/plugins/coral-plugin-comment-content/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "talk-plugin-comment-content", - "version": "1.0.0", - "description": "", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "", - "license": "ISC", - "dependencies": { - "react-linkify": "^0.2.1" - } -} diff --git a/plugins/coral-plugin-comment-content/yarn.lock b/plugins/coral-plugin-comment-content/yarn.lock deleted file mode 100644 index 9f312c11d..000000000 --- a/plugins/coral-plugin-comment-content/yarn.lock +++ /dev/null @@ -1,112 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -asap@~2.0.3: - version "2.0.5" - resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.5.tgz#522765b50c3510490e52d7dcfe085ef9ba96958f" - -core-js@^1.0.0: - version "1.2.7" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" - -encoding@^0.1.11: - version "0.1.12" - resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb" - dependencies: - iconv-lite "~0.4.13" - -fbjs@^0.8.9: - version "0.8.12" - resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.12.tgz#10b5d92f76d45575fd63a217d4ea02bea2f8ed04" - dependencies: - core-js "^1.0.0" - isomorphic-fetch "^2.1.1" - loose-envify "^1.0.0" - object-assign "^4.1.0" - promise "^7.1.1" - setimmediate "^1.0.5" - ua-parser-js "^0.7.9" - -iconv-lite@~0.4.13: - version "0.4.18" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.18.tgz#23d8656b16aae6742ac29732ea8f0336a4789cf2" - -is-stream@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" - -isomorphic-fetch@^2.1.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9" - dependencies: - node-fetch "^1.0.1" - whatwg-fetch ">=0.10.0" - -js-tokens@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.1.tgz#08e9f132484a2c45a30907e9dc4d5567b7f114d7" - -linkify-it@^1.2.0: - version "1.2.4" - resolved "https://registry.yarnpkg.com/linkify-it/-/linkify-it-1.2.4.tgz#0773526c317c8fd13bd534ee1d180ff88abf881a" - dependencies: - uc.micro "^1.0.1" - -loose-envify@^1.0.0, loose-envify@^1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" - dependencies: - js-tokens "^3.0.0" - -node-fetch@^1.0.1: - version "1.7.1" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.1.tgz#899cb3d0a3c92f952c47f1b876f4c8aeabd400d5" - dependencies: - encoding "^0.1.11" - is-stream "^1.0.1" - -object-assign@^4.1.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - -promise@^7.1.1: - version "7.1.1" - resolved "https://registry.yarnpkg.com/promise/-/promise-7.1.1.tgz#489654c692616b8aa55b0724fa809bb7db49c5bf" - dependencies: - asap "~2.0.3" - -prop-types@^15.5.8: - version "15.5.10" - resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.10.tgz#2797dfc3126182e3a95e3dfbb2e893ddd7456154" - dependencies: - fbjs "^0.8.9" - loose-envify "^1.3.1" - -react-linkify@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/react-linkify/-/react-linkify-0.2.1.tgz#b28d3f9544539a622fec8d42b4800eb9d23bf981" - dependencies: - linkify-it "^1.2.0" - prop-types "^15.5.8" - tlds "^1.57.0" - -setimmediate@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" - -tlds@^1.57.0: - version "1.189.0" - resolved "https://registry.yarnpkg.com/tlds/-/tlds-1.189.0.tgz#b8cb46ea76dc2f4a01d45b8d907bf19a66e9f729" - -ua-parser-js@^0.7.9: - version "0.7.12" - resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.12.tgz#04c81a99bdd5dc52263ea29d24c6bf8d4818a4bb" - -uc.micro@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-1.0.3.tgz#7ed50d5e0f9a9fb0a573379259f2a77458d50192" - -whatwg-fetch@>=0.10.0: - version "2.0.3" - resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz#9c84ec2dcf68187ff00bc64e1274b442176e1c84" diff --git a/plugins/coral-plugin-facebook-auth/README.md b/plugins/coral-plugin-facebook-auth/README.md deleted file mode 100644 index 6faceed09..000000000 --- a/plugins/coral-plugin-facebook-auth/README.md +++ /dev/null @@ -1,24 +0,0 @@ -# talk-plugin-facebook-auth - -This plugin provides facebook authentication support for Talk. - -## Configuration - -This plugin looks for the following configuration from the environment: - -- `TALK_FACEBOOK_APP_ID` (*required*) - the Facebook app id for your Facebook -Login enabled app. -- `TALK_FACEBOOK_APP_SECRET` (*required*) - the Facebook app secret for your -Facebook Login enabled app. - -### License - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - - See the License for the specific language governing permissions and limitations under the License. diff --git a/plugins/coral-plugin-facebook-auth/index.js b/plugins/coral-plugin-facebook-auth/index.js deleted file mode 100644 index 3e7c61452..000000000 --- a/plugins/coral-plugin-facebook-auth/index.js +++ /dev/null @@ -1,7 +0,0 @@ -const passport = require('./server/passport'); -const router = require('./server/router'); - -module.exports = { - passport, - router -}; diff --git a/plugins/coral-plugin-facebook-auth/package.json b/plugins/coral-plugin-facebook-auth/package.json deleted file mode 100644 index ea841bc7d..000000000 --- a/plugins/coral-plugin-facebook-auth/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "talk-plugin-facebook-auth", - "version": "1.0.0", - "main": "index.js", - "license": "MIT", - "dependencies": { - "passport-facebook": "^2.1.1" - } -} diff --git a/plugins/coral-plugin-facebook-auth/server/passport.js b/plugins/coral-plugin-facebook-auth/server/passport.js deleted file mode 100644 index ae69ec4bd..000000000 --- a/plugins/coral-plugin-facebook-auth/server/passport.js +++ /dev/null @@ -1,27 +0,0 @@ -const FacebookStrategy = require('passport-facebook').Strategy; -const UsersService = require('services/users'); -const {ValidateUserLogin} = require('services/passport'); - -module.exports = (passport) => { - if (process.env.TALK_FACEBOOK_APP_ID && process.env.TALK_FACEBOOK_APP_SECRET && process.env.TALK_ROOT_URL) { - passport.use(new FacebookStrategy({ - clientID: process.env.TALK_FACEBOOK_APP_ID, - clientSecret: process.env.TALK_FACEBOOK_APP_SECRET, - callbackURL: `${process.env.TALK_ROOT_URL}/api/v1/auth/facebook/callback`, - passReqToCallback: true, - profileFields: ['id', 'displayName', 'picture.type(large)'] - }, async (req, accessToken, refreshToken, profile, done) => { - - let user; - try { - user = await UsersService.findOrCreateExternalUser(profile); - } catch (err) { - return done(err); - } - - return ValidateUserLogin(profile, user, done); - })); - } else if (process.env.NODE_ENV !== 'test') { - throw new Error('Facebook cannot be enabled, missing one of TALK_FACEBOOK_APP_ID, TALK_FACEBOOK_APP_SECRET, TALK_ROOT_URL'); - } -}; diff --git a/plugins/coral-plugin-facebook-auth/server/router.js b/plugins/coral-plugin-facebook-auth/server/router.js deleted file mode 100644 index 56fcd2ab2..000000000 --- a/plugins/coral-plugin-facebook-auth/server/router.js +++ /dev/null @@ -1,20 +0,0 @@ -module.exports = (router) => { - - const {passport, HandleAuthPopupCallback} = require('services/passport'); - - /** - * Facebook auth endpoint, this will redirect the user immediatly to facebook - * for authorization. - */ - router.get('/api/v1/auth/facebook', passport.authenticate('facebook', {display: 'popup', authType: 'rerequest', scope: ['public_profile']})); - - /** - * Facebook callback endpoint, this will send the user a html page designed to - * send back the user credentials upon sucesfull login. - */ - router.get('/api/v1/auth/facebook/callback', (req, res, next) => { - - // Perform the facebook login flow and pass the data back through the opener. - passport.authenticate('facebook', {session: false}, HandleAuthPopupCallback(req, res, next))(req, res, next); - }); -}; diff --git a/plugins/coral-plugin-facebook-auth/yarn.lock b/plugins/coral-plugin-facebook-auth/yarn.lock deleted file mode 100644 index a2886dfbe..000000000 --- a/plugins/coral-plugin-facebook-auth/yarn.lock +++ /dev/null @@ -1,34 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -oauth@0.9.x: - version "0.9.15" - resolved "https://registry.yarnpkg.com/oauth/-/oauth-0.9.15.tgz#bd1fefaf686c96b75475aed5196412ff60cfb9c1" - -passport-facebook@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/passport-facebook/-/passport-facebook-2.1.1.tgz#c39d0b52ae4d59163245a4e21a7b9b6321303311" - dependencies: - passport-oauth2 "1.x.x" - -passport-oauth2@1.x.x: - version "1.4.0" - resolved "https://registry.yarnpkg.com/passport-oauth2/-/passport-oauth2-1.4.0.tgz#f62f81583cbe12609be7ce6f160b9395a27b86ad" - dependencies: - oauth "0.9.x" - passport-strategy "1.x.x" - uid2 "0.0.x" - utils-merge "1.x.x" - -passport-strategy@1.x.x: - version "1.0.0" - resolved "https://registry.yarnpkg.com/passport-strategy/-/passport-strategy-1.0.0.tgz#b5539aa8fc225a3d1ad179476ddf236b440f52e4" - -uid2@0.0.x: - version "0.0.3" - resolved "https://registry.yarnpkg.com/uid2/-/uid2-0.0.3.tgz#483126e11774df2f71b8b639dcd799c376162b82" - -utils-merge@1.x.x: - version "1.0.0" - resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.0.tgz#0294fb922bb9375153541c4f7096231f287c8af8" diff --git a/plugins/coral-plugin-mod/client/components/Box.js b/plugins/coral-plugin-mod/client/components/Box.js deleted file mode 100644 index b072c8917..000000000 --- a/plugins/coral-plugin-mod/client/components/Box.js +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; -import styles from './styles.css'; - -export default (props) => ( -
    - Comment Status: {props.comment.status} -
    -); - diff --git a/plugins/coral-plugin-mod/client/components/Container.js b/plugins/coral-plugin-mod/client/components/Container.js deleted file mode 100644 index 9ba88bdde..000000000 --- a/plugins/coral-plugin-mod/client/components/Container.js +++ /dev/null @@ -1,32 +0,0 @@ -import React from 'react'; -import Box from './Box'; -import {Button} from 'plugin-api/beta/client/components/ui'; -import styles from './styles.css'; - -export default class Footer extends React.Component { - constructor() { - super(); - - this.state = { - show: false - }; - } - - handleClick = () => { - this.setState((state) => ({ - show: !state.show - })); - } - - render() { - const {show} = this.state; - return ( -
    - - {show ? : null} -
    - ); - } -} diff --git a/plugins/coral-plugin-mod/client/components/styles.css b/plugins/coral-plugin-mod/client/components/styles.css deleted file mode 100644 index 59bb63c3d..000000000 --- a/plugins/coral-plugin-mod/client/components/styles.css +++ /dev/null @@ -1,8 +0,0 @@ -.container { - padding: 0 14px 10px; -} - -.box { - font-size: 12px; - padding: 10px 14px; -} \ No newline at end of file diff --git a/plugins/coral-plugin-mod/client/index.js b/plugins/coral-plugin-mod/client/index.js deleted file mode 100644 index b0ea304f4..000000000 --- a/plugins/coral-plugin-mod/client/index.js +++ /dev/null @@ -1,7 +0,0 @@ -import Container from './components/Container'; - -export default { - slots: { - adminCommentDetailArea: [Container], - } -}; diff --git a/plugins/coral-plugin-mod/index.js b/plugins/coral-plugin-mod/index.js deleted file mode 100644 index 85dfb349b..000000000 --- a/plugins/coral-plugin-mod/index.js +++ /dev/null @@ -1,2 +0,0 @@ -module.exports = {}; - diff --git a/plugins/coral-plugin-respect/client/.babelrc b/plugins/coral-plugin-respect/client/.babelrc deleted file mode 100644 index 60be246eb..000000000 --- a/plugins/coral-plugin-respect/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-respect/client/.eslintrc.json b/plugins/coral-plugin-respect/client/.eslintrc.json deleted file mode 100644 index 9fe56bd14..000000000 --- a/plugins/coral-plugin-respect/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-viewing-options/client/.babelrc b/plugins/coral-plugin-viewing-options/client/.babelrc deleted file mode 100644 index 60be246eb..000000000 --- a/plugins/coral-plugin-viewing-options/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-viewing-options/client/.eslintrc.json b/plugins/coral-plugin-viewing-options/client/.eslintrc.json deleted file mode 100644 index 9fe56bd14..000000000 --- a/plugins/coral-plugin-viewing-options/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-viewing-options/index.js b/plugins/coral-plugin-viewing-options/index.js deleted file mode 100644 index f053ebf79..000000000 --- a/plugins/coral-plugin-viewing-options/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = {}; diff --git a/plugins/coral-plugin-auth/client/.babelrc b/plugins/talk-plugin-auth/client/.babelrc similarity index 100% rename from plugins/coral-plugin-auth/client/.babelrc rename to plugins/talk-plugin-auth/client/.babelrc diff --git a/plugins/coral-plugin-auth/client/.eslintrc.json b/plugins/talk-plugin-auth/client/.eslintrc.json similarity index 100% rename from plugins/coral-plugin-auth/client/.eslintrc.json rename to plugins/talk-plugin-auth/client/.eslintrc.json diff --git a/plugins/coral-plugin-auth/client/components/ChangeUsername.js b/plugins/talk-plugin-auth/client/components/ChangeUsername.js similarity index 100% rename from plugins/coral-plugin-auth/client/components/ChangeUsername.js rename to plugins/talk-plugin-auth/client/components/ChangeUsername.js diff --git a/plugins/coral-plugin-auth/client/components/CreateUsernameDialog.js b/plugins/talk-plugin-auth/client/components/CreateUsernameDialog.js similarity index 100% rename from plugins/coral-plugin-auth/client/components/CreateUsernameDialog.js rename to plugins/talk-plugin-auth/client/components/CreateUsernameDialog.js diff --git a/plugins/coral-plugin-auth/client/components/FakeComment.js b/plugins/talk-plugin-auth/client/components/FakeComment.js similarity index 100% rename from plugins/coral-plugin-auth/client/components/FakeComment.js rename to plugins/talk-plugin-auth/client/components/FakeComment.js diff --git a/plugins/coral-plugin-auth/client/components/ForgotContent.js b/plugins/talk-plugin-auth/client/components/ForgotContent.js similarity index 100% rename from plugins/coral-plugin-auth/client/components/ForgotContent.js rename to plugins/talk-plugin-auth/client/components/ForgotContent.js diff --git a/plugins/coral-plugin-auth/client/components/SignDialog.js b/plugins/talk-plugin-auth/client/components/SignDialog.js similarity index 100% rename from plugins/coral-plugin-auth/client/components/SignDialog.js rename to plugins/talk-plugin-auth/client/components/SignDialog.js diff --git a/plugins/coral-plugin-auth/client/components/SignInButton.js b/plugins/talk-plugin-auth/client/components/SignInButton.js similarity index 100% rename from plugins/coral-plugin-auth/client/components/SignInButton.js rename to plugins/talk-plugin-auth/client/components/SignInButton.js diff --git a/plugins/coral-plugin-auth/client/components/SignInContainer.js b/plugins/talk-plugin-auth/client/components/SignInContainer.js similarity index 100% rename from plugins/coral-plugin-auth/client/components/SignInContainer.js rename to plugins/talk-plugin-auth/client/components/SignInContainer.js diff --git a/plugins/coral-plugin-auth/client/components/SignInContent.js b/plugins/talk-plugin-auth/client/components/SignInContent.js similarity index 100% rename from plugins/coral-plugin-auth/client/components/SignInContent.js rename to plugins/talk-plugin-auth/client/components/SignInContent.js diff --git a/plugins/coral-plugin-auth/client/components/SignUpContent.js b/plugins/talk-plugin-auth/client/components/SignUpContent.js similarity index 100% rename from plugins/coral-plugin-auth/client/components/SignUpContent.js rename to plugins/talk-plugin-auth/client/components/SignUpContent.js diff --git a/plugins/coral-plugin-auth/client/components/UserBox.js b/plugins/talk-plugin-auth/client/components/UserBox.js similarity index 100% rename from plugins/coral-plugin-auth/client/components/UserBox.js rename to plugins/talk-plugin-auth/client/components/UserBox.js diff --git a/plugins/coral-plugin-auth/client/components/styles.css b/plugins/talk-plugin-auth/client/components/styles.css similarity index 100% rename from plugins/coral-plugin-auth/client/components/styles.css rename to plugins/talk-plugin-auth/client/components/styles.css diff --git a/plugins/coral-plugin-auth/client/index.js b/plugins/talk-plugin-auth/client/index.js similarity index 100% rename from plugins/coral-plugin-auth/client/index.js rename to plugins/talk-plugin-auth/client/index.js diff --git a/plugins/coral-plugin-auth/client/translations.yml b/plugins/talk-plugin-auth/client/translations.yml similarity index 100% rename from plugins/coral-plugin-auth/client/translations.yml rename to plugins/talk-plugin-auth/client/translations.yml diff --git a/plugins/coral-plugin-auth/index.js b/plugins/talk-plugin-auth/index.js similarity index 100% rename from plugins/coral-plugin-auth/index.js rename to plugins/talk-plugin-auth/index.js diff --git a/plugins/coral-plugin-comment-content/client/.babelrc b/plugins/talk-plugin-like/client/.babelrc similarity index 100% rename from plugins/coral-plugin-comment-content/client/.babelrc rename to plugins/talk-plugin-like/client/.babelrc diff --git a/plugins/coral-plugin-comment-content/client/.eslintrc.json b/plugins/talk-plugin-like/client/.eslintrc.json similarity index 100% rename from plugins/coral-plugin-comment-content/client/.eslintrc.json rename to plugins/talk-plugin-like/client/.eslintrc.json diff --git a/plugins/coral-plugin-like/client/LikeButton.js b/plugins/talk-plugin-like/client/LikeButton.js similarity index 100% rename from plugins/coral-plugin-like/client/LikeButton.js rename to plugins/talk-plugin-like/client/LikeButton.js diff --git a/plugins/coral-plugin-like/client/index.js b/plugins/talk-plugin-like/client/index.js similarity index 100% rename from plugins/coral-plugin-like/client/index.js rename to plugins/talk-plugin-like/client/index.js diff --git a/plugins/coral-plugin-like/client/styles.css b/plugins/talk-plugin-like/client/styles.css similarity index 100% rename from plugins/coral-plugin-like/client/styles.css rename to plugins/talk-plugin-like/client/styles.css diff --git a/plugins/coral-plugin-like/client/translations.yml b/plugins/talk-plugin-like/client/translations.yml similarity index 100% rename from plugins/coral-plugin-like/client/translations.yml rename to plugins/talk-plugin-like/client/translations.yml diff --git a/plugins/coral-plugin-like/index.js b/plugins/talk-plugin-like/index.js similarity index 100% rename from plugins/coral-plugin-like/index.js rename to plugins/talk-plugin-like/index.js diff --git a/plugins/coral-plugin-like/client/.babelrc b/plugins/talk-plugin-love/client/.babelrc similarity index 100% rename from plugins/coral-plugin-like/client/.babelrc rename to plugins/talk-plugin-love/client/.babelrc diff --git a/plugins/coral-plugin-like/client/.eslintrc.json b/plugins/talk-plugin-love/client/.eslintrc.json similarity index 100% rename from plugins/coral-plugin-like/client/.eslintrc.json rename to plugins/talk-plugin-love/client/.eslintrc.json diff --git a/plugins/coral-plugin-love/client/LoveButton.js b/plugins/talk-plugin-love/client/LoveButton.js similarity index 100% rename from plugins/coral-plugin-love/client/LoveButton.js rename to plugins/talk-plugin-love/client/LoveButton.js diff --git a/plugins/coral-plugin-love/client/index.js b/plugins/talk-plugin-love/client/index.js similarity index 100% rename from plugins/coral-plugin-love/client/index.js rename to plugins/talk-plugin-love/client/index.js diff --git a/plugins/coral-plugin-love/client/styles.css b/plugins/talk-plugin-love/client/styles.css similarity index 100% rename from plugins/coral-plugin-love/client/styles.css rename to plugins/talk-plugin-love/client/styles.css diff --git a/plugins/coral-plugin-love/client/translations.yml b/plugins/talk-plugin-love/client/translations.yml similarity index 100% rename from plugins/coral-plugin-love/client/translations.yml rename to plugins/talk-plugin-love/client/translations.yml diff --git a/plugins/coral-plugin-love/index.js b/plugins/talk-plugin-love/index.js similarity index 100% rename from plugins/coral-plugin-love/index.js rename to plugins/talk-plugin-love/index.js diff --git a/plugins/coral-plugin-love/client/.babelrc b/plugins/talk-plugin-offtopic/client/.babelrc similarity index 100% rename from plugins/coral-plugin-love/client/.babelrc rename to plugins/talk-plugin-offtopic/client/.babelrc diff --git a/plugins/coral-plugin-love/client/.eslintrc.json b/plugins/talk-plugin-offtopic/client/.eslintrc.json similarity index 100% rename from plugins/coral-plugin-love/client/.eslintrc.json rename to plugins/talk-plugin-offtopic/client/.eslintrc.json diff --git a/plugins/coral-plugin-offtopic/client/actions.js b/plugins/talk-plugin-offtopic/client/actions.js similarity index 100% rename from plugins/coral-plugin-offtopic/client/actions.js rename to plugins/talk-plugin-offtopic/client/actions.js diff --git a/plugins/coral-plugin-offtopic/client/components/OffTopicCheckbox.js b/plugins/talk-plugin-offtopic/client/components/OffTopicCheckbox.js similarity index 100% rename from plugins/coral-plugin-offtopic/client/components/OffTopicCheckbox.js rename to plugins/talk-plugin-offtopic/client/components/OffTopicCheckbox.js diff --git a/plugins/coral-plugin-offtopic/client/components/OffTopicFilter.js b/plugins/talk-plugin-offtopic/client/components/OffTopicFilter.js similarity index 100% rename from plugins/coral-plugin-offtopic/client/components/OffTopicFilter.js rename to plugins/talk-plugin-offtopic/client/components/OffTopicFilter.js diff --git a/plugins/coral-plugin-offtopic/client/components/OffTopicTag.js b/plugins/talk-plugin-offtopic/client/components/OffTopicTag.js similarity index 100% rename from plugins/coral-plugin-offtopic/client/components/OffTopicTag.js rename to plugins/talk-plugin-offtopic/client/components/OffTopicTag.js diff --git a/plugins/coral-plugin-offtopic/client/components/styles.css b/plugins/talk-plugin-offtopic/client/components/styles.css similarity index 100% rename from plugins/coral-plugin-offtopic/client/components/styles.css rename to plugins/talk-plugin-offtopic/client/components/styles.css diff --git a/plugins/coral-plugin-offtopic/client/constants.js b/plugins/talk-plugin-offtopic/client/constants.js similarity index 100% rename from plugins/coral-plugin-offtopic/client/constants.js rename to plugins/talk-plugin-offtopic/client/constants.js diff --git a/plugins/coral-plugin-offtopic/client/containers/OffTopicCheckbox.js b/plugins/talk-plugin-offtopic/client/containers/OffTopicCheckbox.js similarity index 100% rename from plugins/coral-plugin-offtopic/client/containers/OffTopicCheckbox.js rename to plugins/talk-plugin-offtopic/client/containers/OffTopicCheckbox.js diff --git a/plugins/coral-plugin-offtopic/client/containers/OffTopicFilter.js b/plugins/talk-plugin-offtopic/client/containers/OffTopicFilter.js similarity index 100% rename from plugins/coral-plugin-offtopic/client/containers/OffTopicFilter.js rename to plugins/talk-plugin-offtopic/client/containers/OffTopicFilter.js diff --git a/plugins/coral-plugin-offtopic/client/index.js b/plugins/talk-plugin-offtopic/client/index.js similarity index 100% rename from plugins/coral-plugin-offtopic/client/index.js rename to plugins/talk-plugin-offtopic/client/index.js diff --git a/plugins/coral-plugin-offtopic/client/reducer.js b/plugins/talk-plugin-offtopic/client/reducer.js similarity index 100% rename from plugins/coral-plugin-offtopic/client/reducer.js rename to plugins/talk-plugin-offtopic/client/reducer.js diff --git a/plugins/coral-plugin-offtopic/client/translations.json b/plugins/talk-plugin-offtopic/client/translations.json similarity index 100% rename from plugins/coral-plugin-offtopic/client/translations.json rename to plugins/talk-plugin-offtopic/client/translations.json diff --git a/plugins/coral-plugin-offtopic/index.js b/plugins/talk-plugin-offtopic/index.js similarity index 100% rename from plugins/coral-plugin-offtopic/index.js rename to plugins/talk-plugin-offtopic/index.js diff --git a/plugins/coral-plugin-mod/client/.babelrc b/plugins/talk-plugin-respect/client/.babelrc similarity index 100% rename from plugins/coral-plugin-mod/client/.babelrc rename to plugins/talk-plugin-respect/client/.babelrc diff --git a/plugins/coral-plugin-mod/client/.eslintrc.json b/plugins/talk-plugin-respect/client/.eslintrc.json similarity index 100% rename from plugins/coral-plugin-mod/client/.eslintrc.json rename to plugins/talk-plugin-respect/client/.eslintrc.json diff --git a/plugins/coral-plugin-respect/client/Icon.js b/plugins/talk-plugin-respect/client/Icon.js similarity index 100% rename from plugins/coral-plugin-respect/client/Icon.js rename to plugins/talk-plugin-respect/client/Icon.js diff --git a/plugins/coral-plugin-respect/client/RespectButton.js b/plugins/talk-plugin-respect/client/RespectButton.js similarity index 100% rename from plugins/coral-plugin-respect/client/RespectButton.js rename to plugins/talk-plugin-respect/client/RespectButton.js diff --git a/plugins/coral-plugin-respect/client/index.js b/plugins/talk-plugin-respect/client/index.js similarity index 100% rename from plugins/coral-plugin-respect/client/index.js rename to plugins/talk-plugin-respect/client/index.js diff --git a/plugins/coral-plugin-respect/client/styles.css b/plugins/talk-plugin-respect/client/styles.css similarity index 100% rename from plugins/coral-plugin-respect/client/styles.css rename to plugins/talk-plugin-respect/client/styles.css diff --git a/plugins/coral-plugin-respect/client/translations.yml b/plugins/talk-plugin-respect/client/translations.yml similarity index 100% rename from plugins/coral-plugin-respect/client/translations.yml rename to plugins/talk-plugin-respect/client/translations.yml diff --git a/plugins/coral-plugin-respect/index.js b/plugins/talk-plugin-respect/index.js similarity index 100% rename from plugins/coral-plugin-respect/index.js rename to plugins/talk-plugin-respect/index.js diff --git a/plugins/coral-plugin-offtopic/client/.babelrc b/plugins/talk-plugin-viewing-options/client/.babelrc similarity index 100% rename from plugins/coral-plugin-offtopic/client/.babelrc rename to plugins/talk-plugin-viewing-options/client/.babelrc diff --git a/plugins/coral-plugin-offtopic/client/.eslintrc.json b/plugins/talk-plugin-viewing-options/client/.eslintrc.json similarity index 100% rename from plugins/coral-plugin-offtopic/client/.eslintrc.json rename to plugins/talk-plugin-viewing-options/client/.eslintrc.json diff --git a/plugins/coral-plugin-viewing-options/client/actions.js b/plugins/talk-plugin-viewing-options/client/actions.js similarity index 100% rename from plugins/coral-plugin-viewing-options/client/actions.js rename to plugins/talk-plugin-viewing-options/client/actions.js diff --git a/plugins/coral-plugin-viewing-options/client/components/ViewingOptions.css b/plugins/talk-plugin-viewing-options/client/components/ViewingOptions.css similarity index 100% rename from plugins/coral-plugin-viewing-options/client/components/ViewingOptions.css rename to plugins/talk-plugin-viewing-options/client/components/ViewingOptions.css diff --git a/plugins/coral-plugin-viewing-options/client/components/ViewingOptions.js b/plugins/talk-plugin-viewing-options/client/components/ViewingOptions.js similarity index 100% rename from plugins/coral-plugin-viewing-options/client/components/ViewingOptions.js rename to plugins/talk-plugin-viewing-options/client/components/ViewingOptions.js diff --git a/plugins/coral-plugin-viewing-options/client/constants.js b/plugins/talk-plugin-viewing-options/client/constants.js similarity index 100% rename from plugins/coral-plugin-viewing-options/client/constants.js rename to plugins/talk-plugin-viewing-options/client/constants.js diff --git a/plugins/coral-plugin-viewing-options/client/containers/ViewingOptions.js b/plugins/talk-plugin-viewing-options/client/containers/ViewingOptions.js similarity index 100% rename from plugins/coral-plugin-viewing-options/client/containers/ViewingOptions.js rename to plugins/talk-plugin-viewing-options/client/containers/ViewingOptions.js diff --git a/plugins/coral-plugin-viewing-options/client/index.js b/plugins/talk-plugin-viewing-options/client/index.js similarity index 100% rename from plugins/coral-plugin-viewing-options/client/index.js rename to plugins/talk-plugin-viewing-options/client/index.js diff --git a/plugins/coral-plugin-viewing-options/client/reducer.js b/plugins/talk-plugin-viewing-options/client/reducer.js similarity index 100% rename from plugins/coral-plugin-viewing-options/client/reducer.js rename to plugins/talk-plugin-viewing-options/client/reducer.js diff --git a/plugins/coral-plugin-comment-content/index.js b/plugins/talk-plugin-viewing-options/index.js similarity index 100% rename from plugins/coral-plugin-comment-content/index.js rename to plugins/talk-plugin-viewing-options/index.js From f17b4a318ac038110c924bfd162ea9dafab1fb1f Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Thu, 20 Jul 2017 12:04:00 -0300 Subject: [PATCH 03/22] Missing plugins --- .../client/.babelrc | 14 +++ .../client/.eslintrc.json | 23 ++++ .../client/components/CommentContent.js | 24 ++++ .../client/index.js | 7 ++ plugins/talk-plugin-comment-content/index.js | 1 + .../talk-plugin-comment-content/package.json | 14 +++ plugins/talk-plugin-comment-content/yarn.lock | 112 ++++++++++++++++++ plugins/talk-plugin-facebook-auth/README.md | 24 ++++ plugins/talk-plugin-facebook-auth/index.js | 7 ++ .../talk-plugin-facebook-auth/package.json | 9 ++ .../server/passport.js | 27 +++++ .../server/router.js | 20 ++++ plugins/talk-plugin-facebook-auth/yarn.lock | 34 ++++++ 13 files changed, 316 insertions(+) create mode 100644 plugins/talk-plugin-comment-content/client/.babelrc create mode 100644 plugins/talk-plugin-comment-content/client/.eslintrc.json create mode 100644 plugins/talk-plugin-comment-content/client/components/CommentContent.js create mode 100644 plugins/talk-plugin-comment-content/client/index.js create mode 100644 plugins/talk-plugin-comment-content/index.js create mode 100644 plugins/talk-plugin-comment-content/package.json create mode 100644 plugins/talk-plugin-comment-content/yarn.lock create mode 100644 plugins/talk-plugin-facebook-auth/README.md create mode 100644 plugins/talk-plugin-facebook-auth/index.js create mode 100644 plugins/talk-plugin-facebook-auth/package.json create mode 100644 plugins/talk-plugin-facebook-auth/server/passport.js create mode 100644 plugins/talk-plugin-facebook-auth/server/router.js create mode 100644 plugins/talk-plugin-facebook-auth/yarn.lock diff --git a/plugins/talk-plugin-comment-content/client/.babelrc b/plugins/talk-plugin-comment-content/client/.babelrc new file mode 100644 index 000000000..60be246eb --- /dev/null +++ b/plugins/talk-plugin-comment-content/client/.babelrc @@ -0,0 +1,14 @@ +{ + "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/talk-plugin-comment-content/client/.eslintrc.json b/plugins/talk-plugin-comment-content/client/.eslintrc.json new file mode 100644 index 000000000..9fe56bd14 --- /dev/null +++ b/plugins/talk-plugin-comment-content/client/.eslintrc.json @@ -0,0 +1,23 @@ +{ + "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/talk-plugin-comment-content/client/components/CommentContent.js b/plugins/talk-plugin-comment-content/client/components/CommentContent.js new file mode 100644 index 000000000..3708ee42c --- /dev/null +++ b/plugins/talk-plugin-comment-content/client/components/CommentContent.js @@ -0,0 +1,24 @@ +import React from 'react'; +import Linkify from 'react-linkify'; + +const name = 'coral-plugin-comment-content'; + +const CommentContent = ({comment}) => { + const textbreaks = comment.body.split('\n'); + return
    + { + textbreaks.map((line, i) => { + return ( + + + {line} + +
    +
    + ); + }) + } +
    ; +}; + +export default CommentContent; diff --git a/plugins/talk-plugin-comment-content/client/index.js b/plugins/talk-plugin-comment-content/client/index.js new file mode 100644 index 000000000..e61cb51f4 --- /dev/null +++ b/plugins/talk-plugin-comment-content/client/index.js @@ -0,0 +1,7 @@ +import CommentContent from './components/CommentContent'; + +export default { + slots: { + commentContent: [CommentContent] + } +}; diff --git a/plugins/talk-plugin-comment-content/index.js b/plugins/talk-plugin-comment-content/index.js new file mode 100644 index 000000000..f053ebf79 --- /dev/null +++ b/plugins/talk-plugin-comment-content/index.js @@ -0,0 +1 @@ +module.exports = {}; diff --git a/plugins/talk-plugin-comment-content/package.json b/plugins/talk-plugin-comment-content/package.json new file mode 100644 index 000000000..ed668425f --- /dev/null +++ b/plugins/talk-plugin-comment-content/package.json @@ -0,0 +1,14 @@ +{ + "name": "coral-plugin-comment-content", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC", + "dependencies": { + "react-linkify": "^0.2.1" + } +} diff --git a/plugins/talk-plugin-comment-content/yarn.lock b/plugins/talk-plugin-comment-content/yarn.lock new file mode 100644 index 000000000..9f312c11d --- /dev/null +++ b/plugins/talk-plugin-comment-content/yarn.lock @@ -0,0 +1,112 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +asap@~2.0.3: + version "2.0.5" + resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.5.tgz#522765b50c3510490e52d7dcfe085ef9ba96958f" + +core-js@^1.0.0: + version "1.2.7" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" + +encoding@^0.1.11: + version "0.1.12" + resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb" + dependencies: + iconv-lite "~0.4.13" + +fbjs@^0.8.9: + version "0.8.12" + resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.12.tgz#10b5d92f76d45575fd63a217d4ea02bea2f8ed04" + dependencies: + core-js "^1.0.0" + isomorphic-fetch "^2.1.1" + loose-envify "^1.0.0" + object-assign "^4.1.0" + promise "^7.1.1" + setimmediate "^1.0.5" + ua-parser-js "^0.7.9" + +iconv-lite@~0.4.13: + version "0.4.18" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.18.tgz#23d8656b16aae6742ac29732ea8f0336a4789cf2" + +is-stream@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" + +isomorphic-fetch@^2.1.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9" + dependencies: + node-fetch "^1.0.1" + whatwg-fetch ">=0.10.0" + +js-tokens@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.1.tgz#08e9f132484a2c45a30907e9dc4d5567b7f114d7" + +linkify-it@^1.2.0: + version "1.2.4" + resolved "https://registry.yarnpkg.com/linkify-it/-/linkify-it-1.2.4.tgz#0773526c317c8fd13bd534ee1d180ff88abf881a" + dependencies: + uc.micro "^1.0.1" + +loose-envify@^1.0.0, loose-envify@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" + dependencies: + js-tokens "^3.0.0" + +node-fetch@^1.0.1: + version "1.7.1" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.1.tgz#899cb3d0a3c92f952c47f1b876f4c8aeabd400d5" + dependencies: + encoding "^0.1.11" + is-stream "^1.0.1" + +object-assign@^4.1.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + +promise@^7.1.1: + version "7.1.1" + resolved "https://registry.yarnpkg.com/promise/-/promise-7.1.1.tgz#489654c692616b8aa55b0724fa809bb7db49c5bf" + dependencies: + asap "~2.0.3" + +prop-types@^15.5.8: + version "15.5.10" + resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.10.tgz#2797dfc3126182e3a95e3dfbb2e893ddd7456154" + dependencies: + fbjs "^0.8.9" + loose-envify "^1.3.1" + +react-linkify@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/react-linkify/-/react-linkify-0.2.1.tgz#b28d3f9544539a622fec8d42b4800eb9d23bf981" + dependencies: + linkify-it "^1.2.0" + prop-types "^15.5.8" + tlds "^1.57.0" + +setimmediate@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" + +tlds@^1.57.0: + version "1.189.0" + resolved "https://registry.yarnpkg.com/tlds/-/tlds-1.189.0.tgz#b8cb46ea76dc2f4a01d45b8d907bf19a66e9f729" + +ua-parser-js@^0.7.9: + version "0.7.12" + resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.12.tgz#04c81a99bdd5dc52263ea29d24c6bf8d4818a4bb" + +uc.micro@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-1.0.3.tgz#7ed50d5e0f9a9fb0a573379259f2a77458d50192" + +whatwg-fetch@>=0.10.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz#9c84ec2dcf68187ff00bc64e1274b442176e1c84" diff --git a/plugins/talk-plugin-facebook-auth/README.md b/plugins/talk-plugin-facebook-auth/README.md new file mode 100644 index 000000000..3a0f72c2f --- /dev/null +++ b/plugins/talk-plugin-facebook-auth/README.md @@ -0,0 +1,24 @@ +# coral-plugin-facebook-auth + +This plugin provides facebook authentication support for Talk. + +## Configuration + +This plugin looks for the following configuration from the environment: + +- `TALK_FACEBOOK_APP_ID` (*required*) - the Facebook app id for your Facebook +Login enabled app. +- `TALK_FACEBOOK_APP_SECRET` (*required*) - the Facebook app secret for your +Facebook Login enabled app. + +### License + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + + See the License for the specific language governing permissions and limitations under the License. diff --git a/plugins/talk-plugin-facebook-auth/index.js b/plugins/talk-plugin-facebook-auth/index.js new file mode 100644 index 000000000..3e7c61452 --- /dev/null +++ b/plugins/talk-plugin-facebook-auth/index.js @@ -0,0 +1,7 @@ +const passport = require('./server/passport'); +const router = require('./server/router'); + +module.exports = { + passport, + router +}; diff --git a/plugins/talk-plugin-facebook-auth/package.json b/plugins/talk-plugin-facebook-auth/package.json new file mode 100644 index 000000000..ae6721ee9 --- /dev/null +++ b/plugins/talk-plugin-facebook-auth/package.json @@ -0,0 +1,9 @@ +{ + "name": "coral-plugin-facebook-auth", + "version": "1.0.0", + "main": "index.js", + "license": "MIT", + "dependencies": { + "passport-facebook": "^2.1.1" + } +} diff --git a/plugins/talk-plugin-facebook-auth/server/passport.js b/plugins/talk-plugin-facebook-auth/server/passport.js new file mode 100644 index 000000000..ae69ec4bd --- /dev/null +++ b/plugins/talk-plugin-facebook-auth/server/passport.js @@ -0,0 +1,27 @@ +const FacebookStrategy = require('passport-facebook').Strategy; +const UsersService = require('services/users'); +const {ValidateUserLogin} = require('services/passport'); + +module.exports = (passport) => { + if (process.env.TALK_FACEBOOK_APP_ID && process.env.TALK_FACEBOOK_APP_SECRET && process.env.TALK_ROOT_URL) { + passport.use(new FacebookStrategy({ + clientID: process.env.TALK_FACEBOOK_APP_ID, + clientSecret: process.env.TALK_FACEBOOK_APP_SECRET, + callbackURL: `${process.env.TALK_ROOT_URL}/api/v1/auth/facebook/callback`, + passReqToCallback: true, + profileFields: ['id', 'displayName', 'picture.type(large)'] + }, async (req, accessToken, refreshToken, profile, done) => { + + let user; + try { + user = await UsersService.findOrCreateExternalUser(profile); + } catch (err) { + return done(err); + } + + return ValidateUserLogin(profile, user, done); + })); + } else if (process.env.NODE_ENV !== 'test') { + throw new Error('Facebook cannot be enabled, missing one of TALK_FACEBOOK_APP_ID, TALK_FACEBOOK_APP_SECRET, TALK_ROOT_URL'); + } +}; diff --git a/plugins/talk-plugin-facebook-auth/server/router.js b/plugins/talk-plugin-facebook-auth/server/router.js new file mode 100644 index 000000000..56fcd2ab2 --- /dev/null +++ b/plugins/talk-plugin-facebook-auth/server/router.js @@ -0,0 +1,20 @@ +module.exports = (router) => { + + const {passport, HandleAuthPopupCallback} = require('services/passport'); + + /** + * Facebook auth endpoint, this will redirect the user immediatly to facebook + * for authorization. + */ + router.get('/api/v1/auth/facebook', passport.authenticate('facebook', {display: 'popup', authType: 'rerequest', scope: ['public_profile']})); + + /** + * Facebook callback endpoint, this will send the user a html page designed to + * send back the user credentials upon sucesfull login. + */ + router.get('/api/v1/auth/facebook/callback', (req, res, next) => { + + // Perform the facebook login flow and pass the data back through the opener. + passport.authenticate('facebook', {session: false}, HandleAuthPopupCallback(req, res, next))(req, res, next); + }); +}; diff --git a/plugins/talk-plugin-facebook-auth/yarn.lock b/plugins/talk-plugin-facebook-auth/yarn.lock new file mode 100644 index 000000000..a2886dfbe --- /dev/null +++ b/plugins/talk-plugin-facebook-auth/yarn.lock @@ -0,0 +1,34 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +oauth@0.9.x: + version "0.9.15" + resolved "https://registry.yarnpkg.com/oauth/-/oauth-0.9.15.tgz#bd1fefaf686c96b75475aed5196412ff60cfb9c1" + +passport-facebook@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/passport-facebook/-/passport-facebook-2.1.1.tgz#c39d0b52ae4d59163245a4e21a7b9b6321303311" + dependencies: + passport-oauth2 "1.x.x" + +passport-oauth2@1.x.x: + version "1.4.0" + resolved "https://registry.yarnpkg.com/passport-oauth2/-/passport-oauth2-1.4.0.tgz#f62f81583cbe12609be7ce6f160b9395a27b86ad" + dependencies: + oauth "0.9.x" + passport-strategy "1.x.x" + uid2 "0.0.x" + utils-merge "1.x.x" + +passport-strategy@1.x.x: + version "1.0.0" + resolved "https://registry.yarnpkg.com/passport-strategy/-/passport-strategy-1.0.0.tgz#b5539aa8fc225a3d1ad179476ddf236b440f52e4" + +uid2@0.0.x: + version "0.0.3" + resolved "https://registry.yarnpkg.com/uid2/-/uid2-0.0.3.tgz#483126e11774df2f71b8b639dcd799c376162b82" + +utils-merge@1.x.x: + version "1.0.0" + resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.0.tgz#0294fb922bb9375153541c4f7096231f287c8af8" From 1e9fb24f878dc1546cb0d9433a57914cd439a180 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Thu, 20 Jul 2017 12:12:02 -0300 Subject: [PATCH 04/22] Renaming old reference plugin --- .../client/containers/ViewingOptions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/talk-plugin-viewing-options/client/containers/ViewingOptions.js b/plugins/talk-plugin-viewing-options/client/containers/ViewingOptions.js index cbe1e7fa3..a34ad91f6 100644 --- a/plugins/talk-plugin-viewing-options/client/containers/ViewingOptions.js +++ b/plugins/talk-plugin-viewing-options/client/containers/ViewingOptions.js @@ -3,7 +3,7 @@ import {bindActionCreators} from 'redux'; import ViewingOptions from '../components/ViewingOptions'; import {openViewingOptions, closeViewingOptions} from '../actions'; -const mapStateToProps = ({coralPluginViewingOptions: state}) => ({ +const mapStateToProps = ({talkPluginViewingOptions: state}) => ({ open: state.open }); From f35cce866aac66f6b683658b501e2c21a4b802e5 Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Mon, 24 Jul 2017 19:41:51 +1000 Subject: [PATCH 05/22] Updated docs, theme, jekyll --- INSTALL.md | 275 - PLUGINS.md | 3 - README.md | 99 +- TERMINOLOGY.md | 73 - docs/.vscode/settings.json | 6 - docs/404.md | 6 - docs/Dockerfile | 26 - docs/Gemfile | 11 +- docs/Gemfile.lock | 61 +- docs/{licenses/LICENSE => LICENSE.txt} | 4 +- docs/README | 9 + docs/Rakefile | 75 + docs/_config.yml | 314 +- docs/_data/alerts.yml | 15 - docs/_data/definitions.yml | 0 docs/_data/navigation.yml | 66 + docs/_data/sidebars/talk_sidebar.yml | 89 - docs/_data/tags.yml | 4 - docs/_data/terms.yml | 0 docs/_data/topnav.yml | 17 - docs/_data/ui-text.yml | 802 +++ docs/{faq.md => _docs/00-01-faq.md} | 8 +- docs/{install.md => _docs/01-01-install.md} | 13 +- .../01-02-install-docker.md} | 4 +- .../01-03-install-source.md} | 4 +- .../01-04-install-setup.md} | 6 +- .../01-05-install-microservices.md} | 5 +- .../01-06-install-troubleshooting.md} | 5 +- .../02-01-configuration.md} | 13 +- docs/_docs/02-02-migrations.md | 15 + .../03-01-architecture.md} | 15 +- .../03-02-architecture-tags.md} | 9 +- .../03-03-architecture-metadata.md} | 7 +- .../03-04-architecture-cli.md} | 13 +- .../03-05-client-architecture.md} | 14 +- docs/{plugins.md => _docs/04-01-plugins.md} | 9 +- .../04-02-plugins-quickstart.md} | 43 +- .../04-03-plugins-client.md} | 18 +- .../04-04-plugins-server.md} | 11 +- .../04-05-plugins-experimental.md} | 5 +- .../05-01-development-tools.md} | 9 +- .../_docs/05-02-contributors-guide.md | 17 +- docs/_docs/05-03-rest-api.md | 6 + .../_includes/analytics-providers/custom.html | 3 + .../analytics-providers/google-universal.html | 9 + .../_includes/analytics-providers/google.html | 11 + docs/_includes/analytics.html | 12 + docs/_includes/archive-single.html | 38 + docs/_includes/archive.html | 15 - .../author-profile-custom-links.html | 7 + docs/_includes/author-profile.html | 249 + docs/_includes/base_path | 5 + docs/_includes/breadcrumbs.html | 39 + docs/_includes/browser-upgrade.html | 3 + docs/_includes/callout.html | 1 - docs/_includes/category-list.html | 26 + docs/_includes/comment.html | 22 + docs/_includes/comments-providers/custom.html | 3 + .../comments-providers/discourse.html | 13 + docs/_includes/comments-providers/disqus.html | 22 + .../comments-providers/facebook.html | 8 + .../comments-providers/google-plus.html | 2 + .../_includes/comments-providers/scripts.html | 16 + .../comments-providers/staticman.html | 42 + docs/_includes/comments.html | 95 + docs/_includes/custom/sidebarconfigs.html | 1 - docs/_includes/disqus.html | 16 - docs/_includes/feature_row | 50 + docs/_includes/feedback.html | 13 - docs/_includes/figure | 12 + docs/_includes/footer.html | 34 +- docs/_includes/footer/custom.html | 3 + docs/_includes/gallery | 47 + docs/_includes/google_analytics.html | 6 - docs/_includes/group-by-array | 47 + docs/_includes/head.html | 52 +- docs/_includes/head/custom.html | 5 + docs/_includes/head_print.html | 33 - docs/_includes/image.html | 1 - docs/_includes/important.html | 1 - docs/_includes/initialize_shuffle.html | 130 - docs/_includes/inline_image.html | 1 - docs/_includes/links.html | 44 - docs/_includes/masthead.html | 21 + docs/_includes/nav_list | 47 + docs/_includes/note.html | 1 - docs/_includes/page__hero.html | 53 + docs/_includes/page__hero_video.html | 4 + docs/_includes/page__taxonomy.html | 7 + docs/_includes/paginator.html | 69 + docs/_includes/post_pagination.html | 14 + docs/_includes/read-time.html | 15 + docs/_includes/scripts.html | 4 + docs/_includes/seo.html | 147 + docs/_includes/sidebar.html | 78 +- docs/_includes/social-share.html | 13 + docs/_includes/tag-list.html | 26 + docs/_includes/taglogic.html | 32 - docs/_includes/tip.html | 1 - docs/_includes/toc | 7 + docs/_includes/toc.html | 21 - docs/_includes/topnav.html | 50 - docs/_includes/video | 11 + docs/_includes/warning.html | 1 - docs/_layouts/archive-taxonomy.html | 15 + docs/_layouts/archive.html | 26 + docs/_layouts/compress.html | 10 + docs/_layouts/default.html | 124 +- docs/_layouts/default_print.html | 25 - docs/_layouts/home.html | 11 + docs/_layouts/page.html | 66 - docs/_layouts/page_print.html | 15 - docs/_layouts/post.html | 39 - docs/_layouts/single.html | 74 + docs/_layouts/splash.html | 22 + docs/_sass/minimal-mistakes.scss | 40 + docs/_sass/minimal-mistakes/_animations.scss | 21 + docs/_sass/minimal-mistakes/_archive.scss | 238 + docs/_sass/minimal-mistakes/_base.scss | 315 + docs/_sass/minimal-mistakes/_buttons.scss | 153 + docs/_sass/minimal-mistakes/_footer.scss | 80 + docs/_sass/minimal-mistakes/_forms.scss | 391 ++ docs/_sass/minimal-mistakes/_masthead.scss | 77 + docs/_sass/minimal-mistakes/_mixins.scss | 53 + docs/_sass/minimal-mistakes/_navigation.scss | 551 ++ docs/_sass/minimal-mistakes/_notices.scss | 99 + docs/_sass/minimal-mistakes/_page.scss | 408 ++ docs/_sass/minimal-mistakes/_print.scss | 238 + docs/_sass/minimal-mistakes/_reset.scss | 187 + docs/_sass/minimal-mistakes/_sidebar.scss | 237 + docs/_sass/minimal-mistakes/_syntax.scss | 146 + docs/_sass/minimal-mistakes/_tables.scss | 38 + docs/_sass/minimal-mistakes/_utilities.scss | 518 ++ docs/_sass/minimal-mistakes/_variables.scss | 129 + .../vendor/breakpoint/_breakpoint.scss | 114 + .../vendor/breakpoint/_context.scss | 95 + .../vendor/breakpoint/_helpers.scss | 151 + .../vendor/breakpoint/_legacy-settings.scss | 50 + .../vendor/breakpoint/_no-query.scss | 15 + .../vendor/breakpoint/_parsers.scss | 215 + .../vendor/breakpoint/_respond-to.scss | 82 + .../vendor/breakpoint/_settings.scss | 71 + .../vendor/breakpoint/parsers/_double.scss | 33 + .../vendor/breakpoint/parsers/_query.scss | 82 + .../breakpoint/parsers/_resolution.scss | 31 + .../vendor/breakpoint/parsers/_single.scss | 26 + .../vendor/breakpoint/parsers/_triple.scss | 36 + .../parsers/double/_default-pair.scss | 21 + .../breakpoint/parsers/double/_default.scss | 22 + .../parsers/double/_double-string.scss | 22 + .../parsers/resolution/_resolution.scss | 60 + .../breakpoint/parsers/single/_default.scss | 13 + .../breakpoint/parsers/triple/_default.scss | 18 + .../vendor/font-awesome/_animated.scss | 34 + .../vendor/font-awesome/_bordered-pulled.scss | 25 + .../vendor/font-awesome/_core.scss | 12 + .../vendor/font-awesome/_fixed-width.scss | 6 + .../vendor/font-awesome/_font-awesome.scss | 18 + .../vendor/font-awesome/_icons.scss | 789 +++ .../vendor/font-awesome/_larger.scss | 13 + .../vendor/font-awesome/_list.scss | 19 + .../vendor/font-awesome/_mixins.scss | 60 + .../vendor/font-awesome/_path.scss | 15 + .../vendor/font-awesome/_rotated-flipped.scss | 20 + .../vendor/font-awesome/_screen-reader.scss | 5 + .../vendor/font-awesome/_stacked.scss | 20 + .../vendor/font-awesome/_variables.scss | 800 +++ .../magnific-popup/_magnific-popup.scss | 649 ++ .../vendor/magnific-popup/_settings.scss | 46 + .../minimal-mistakes/vendor/susy/_su.scss | 4 + .../minimal-mistakes/vendor/susy/_susy.scss | 4 + .../vendor/susy/_susyone.scss | 4 + .../vendor/susy/susy/_su.scss | 7 + .../vendor/susy/susy/language/_susy.scss | 24 + .../vendor/susy/susy/language/_susyone.scss | 13 + .../susy/susy/language/susy/_background.scss | 385 ++ .../susy/susy/language/susy/_bleed.scss | 200 + .../susy/susy/language/susy/_box-sizing.scss | 47 + .../language/susy/_breakpoint-plugin.scss | 185 + .../susy/susy/language/susy/_container.scss | 81 + .../susy/susy/language/susy/_context.scss | 36 + .../susy/susy/language/susy/_gallery.scss | 94 + .../susy/susy/language/susy/_grids.scss | 64 + .../susy/susy/language/susy/_gutters.scss | 154 + .../susy/susy/language/susy/_isolate.scss | 77 + .../susy/susy/language/susy/_margins.scss | 94 + .../susy/susy/language/susy/_padding.scss | 74 + .../vendor/susy/susy/language/susy/_rows.scss | 138 + .../susy/susy/language/susy/_settings.scss | 216 + .../vendor/susy/susy/language/susy/_span.scss | 163 + .../susy/susy/language/susy/_validation.scss | 16 + .../susy/language/susyone/_background.scss | 18 + .../susy/language/susyone/_functions.scss | 377 ++ .../susy/susy/language/susyone/_grid.scss | 312 + .../susy/language/susyone/_isolation.scss | 51 + .../susy/susy/language/susyone/_margin.scss | 93 + .../susy/susy/language/susyone/_media.scss | 105 + .../susy/susy/language/susyone/_padding.scss | 92 + .../susy/susy/language/susyone/_settings.scss | 60 + .../vendor/susy/susy/output/_float.scss | 9 + .../vendor/susy/susy/output/_shared.scss | 15 + .../vendor/susy/susy/output/_support.scss | 9 + .../susy/susy/output/float/_container.scss | 16 + .../vendor/susy/susy/output/float/_end.scss | 40 + .../susy/susy/output/float/_isolate.scss | 22 + .../vendor/susy/susy/output/float/_span.scss | 35 + .../susy/susy/output/shared/_background.scss | 26 + .../susy/susy/output/shared/_container.scss | 21 + .../susy/susy/output/shared/_direction.scss | 42 + .../susy/susy/output/shared/_inspect.scss | 25 + .../susy/susy/output/shared/_margins.scss | 23 + .../susy/susy/output/shared/_output.scss | 14 + .../susy/susy/output/shared/_padding.scss | 23 + .../susy/susy/output/support/_background.scss | 58 + .../susy/susy/output/support/_box-sizing.scss | 19 + .../susy/susy/output/support/_clearfix.scss | 18 + .../susy/susy/output/support/_prefix.scss | 19 + .../vendor/susy/susy/output/support/_rem.scss | 22 + .../susy/susy/output/support/_support.scss | 85 + .../vendor/susy/susy/su/_grid.scss | 103 + .../vendor/susy/susy/su/_settings.scss | 73 + .../vendor/susy/susy/su/_utilities.scss | 111 + .../vendor/susy/susy/su/_validation.scss | 57 + docs/assets/css/main.scss | 7 + docs/assets/fonts/FontAwesome.otf | Bin 0 -> 134808 bytes docs/assets/fonts/fontawesome-webfont.eot | Bin 0 -> 165742 bytes docs/assets/fonts/fontawesome-webfont.svg | 2671 ++++++++ .../fonts/fontawesome-webfont.ttf | Bin 122092 -> 165548 bytes docs/assets/fonts/fontawesome-webfont.woff | Bin 0 -> 98024 bytes docs/assets/fonts/fontawesome-webfont.woff2 | Bin 0 -> 77160 bytes docs/assets/js/_main.js | 72 + docs/assets/js/main.min.js | 13 + docs/assets/js/plugins/jquery.fitvids.js | 82 + .../js/plugins/jquery.greedy-navigation.js | 78 + .../js/plugins/jquery.magnific-popup.js | 2049 ++++++ .../js/plugins/jquery.smooth-scroll.min.js | 8 + .../js/vendor/jquery/jquery-1.12.4.min.js | 5 + docs/banner.js | 21 + docs/contributors-guide.md | 9 - docs/css/bootstrap.min.css | 5 - docs/css/customstyles.css | 1179 ---- docs/css/font-awesome.min.css | 4 - docs/css/fonts/FontAwesome.otf | Bin 93888 -> 0 bytes docs/css/fonts/fontawesome-webfont.eot | Bin 60767 -> 0 bytes docs/css/fonts/fontawesome-webfont.svg | 565 -- docs/css/fonts/fontawesome-webfont.woff | Bin 71508 -> 0 bytes docs/css/fonts/fontawesome-webfont.woff2 | Bin 56780 -> 0 bytes docs/css/lavish-bootstrap.css | 5898 ----------------- docs/css/modern-business.css | 93 - docs/css/printstyles.css | 160 - docs/css/syntax.css | 60 - docs/css/theme-blue.css | 103 - docs/css/theme-green.css | 99 - docs/feed.xml | 32 - docs/fonts/FontAwesome.otf | Bin 85908 -> 0 bytes docs/fonts/fontawesome-webfont.eot | Bin 56006 -> 0 bytes docs/fonts/fontawesome-webfont.svg | 520 -- docs/fonts/fontawesome-webfont.ttf | Bin 112160 -> 0 bytes docs/fonts/fontawesome-webfont.woff | Bin 65452 -> 0 bytes docs/fonts/glyphicons-halflings-regular.eot | Bin 20127 -> 0 bytes docs/fonts/glyphicons-halflings-regular.svg | 288 - docs/fonts/glyphicons-halflings-regular.ttf | Bin 45404 -> 0 bytes docs/fonts/glyphicons-halflings-regular.woff | Bin 23424 -> 0 bytes docs/fonts/glyphicons-halflings-regular.woff2 | Bin 18028 -> 0 bytes docs/images/communicorn.jpg | Bin 119335 -> 0 bytes docs/images/company_logo.png | Bin 13330 -> 0 bytes docs/images/favicon.ico | Bin 177352 -> 0 bytes docs/index.md | 22 +- docs/js/customscripts.js | 55 - docs/js/jekyll-search.js | 1 - docs/js/jquery.ba-throttle-debounce.min.js | 9 - docs/js/jquery.localScroll.min.js | 7 - docs/js/jquery.navgoco.min.js | 8 - docs/js/jquery.scrollTo.min.js | 7 - docs/js/jquery.shuffle.min.js | 1588 ----- docs/js/mydoc_scroll.html | 240 - docs/js/toc.js | 82 - docs/licenses/LICENSE-BSD-NAVGOCO.txt | 27 - docs/package.json | 34 + docs/pages/plugins/client.md | 278 - docs/sitemap.xml | 24 - docs/update.sh | 4 - 282 files changed, 19565 insertions(+), 12912 deletions(-) delete mode 100644 INSTALL.md delete mode 100644 PLUGINS.md delete mode 100644 TERMINOLOGY.md delete mode 100644 docs/.vscode/settings.json delete mode 100644 docs/404.md delete mode 100644 docs/Dockerfile mode change 100644 => 100755 docs/Gemfile rename docs/{licenses/LICENSE => LICENSE.txt} (96%) mode change 100644 => 100755 create mode 100644 docs/README create mode 100755 docs/Rakefile mode change 100644 => 100755 docs/_config.yml delete mode 100644 docs/_data/alerts.yml delete mode 100644 docs/_data/definitions.yml create mode 100755 docs/_data/navigation.yml delete mode 100644 docs/_data/sidebars/talk_sidebar.yml delete mode 100644 docs/_data/tags.yml delete mode 100644 docs/_data/terms.yml delete mode 100644 docs/_data/topnav.yml create mode 100755 docs/_data/ui-text.yml rename docs/{faq.md => _docs/00-01-faq.md} (97%) rename docs/{install.md => _docs/01-01-install.md} (56%) rename docs/{install-docker.md => _docs/01-02-install-docker.md} (98%) rename docs/{install-source.md => _docs/01-03-install-source.md} (97%) rename docs/{install-setup.md => _docs/01-04-install-setup.md} (93%) rename docs/{install-microservices.md => _docs/01-05-install-microservices.md} (97%) rename docs/{install-troubleshooting.md => _docs/01-06-install-troubleshooting.md} (90%) rename docs/{configuration.md => _docs/02-01-configuration.md} (77%) create mode 100644 docs/_docs/02-02-migrations.md rename docs/{architecture.md => _docs/03-01-architecture.md} (75%) rename docs/{architecture-tags.md => _docs/03-02-architecture-tags.md} (93%) rename docs/{architecture-metadata.md => _docs/03-03-architecture-metadata.md} (95%) rename docs/{architecture-cli.md => _docs/03-04-architecture-cli.md} (92%) rename docs/{client-architecture.md => _docs/03-05-client-architecture.md} (92%) rename docs/{plugins.md => _docs/04-01-plugins.md} (92%) rename docs/{plugins-quickstart.md => _docs/04-02-plugins-quickstart.md} (90%) rename docs/{plugins-client.md => _docs/04-03-plugins-client.md} (96%) rename docs/{plugins-server.md => _docs/04-04-plugins-server.md} (98%) rename docs/{plugins-experimental.md => _docs/04-05-plugins-experimental.md} (95%) rename docs/{tools.md => _docs/05-01-development-tools.md} (89%) rename CONTRIBUTING.md => docs/_docs/05-02-contributors-guide.md (88%) create mode 100644 docs/_docs/05-03-rest-api.md create mode 100755 docs/_includes/analytics-providers/custom.html create mode 100755 docs/_includes/analytics-providers/google-universal.html create mode 100755 docs/_includes/analytics-providers/google.html create mode 100755 docs/_includes/analytics.html create mode 100755 docs/_includes/archive-single.html delete mode 100644 docs/_includes/archive.html create mode 100755 docs/_includes/author-profile-custom-links.html create mode 100755 docs/_includes/author-profile.html create mode 100755 docs/_includes/base_path create mode 100755 docs/_includes/breadcrumbs.html create mode 100755 docs/_includes/browser-upgrade.html delete mode 100644 docs/_includes/callout.html create mode 100755 docs/_includes/category-list.html create mode 100755 docs/_includes/comment.html create mode 100755 docs/_includes/comments-providers/custom.html create mode 100755 docs/_includes/comments-providers/discourse.html create mode 100755 docs/_includes/comments-providers/disqus.html create mode 100755 docs/_includes/comments-providers/facebook.html create mode 100755 docs/_includes/comments-providers/google-plus.html create mode 100755 docs/_includes/comments-providers/scripts.html create mode 100755 docs/_includes/comments-providers/staticman.html create mode 100755 docs/_includes/comments.html delete mode 100644 docs/_includes/custom/sidebarconfigs.html delete mode 100644 docs/_includes/disqus.html create mode 100755 docs/_includes/feature_row delete mode 100644 docs/_includes/feedback.html create mode 100755 docs/_includes/figure create mode 100755 docs/_includes/footer/custom.html create mode 100755 docs/_includes/gallery delete mode 100644 docs/_includes/google_analytics.html create mode 100755 docs/_includes/group-by-array mode change 100644 => 100755 docs/_includes/head.html create mode 100755 docs/_includes/head/custom.html delete mode 100644 docs/_includes/head_print.html delete mode 100644 docs/_includes/image.html delete mode 100644 docs/_includes/important.html delete mode 100644 docs/_includes/initialize_shuffle.html delete mode 100644 docs/_includes/inline_image.html delete mode 100644 docs/_includes/links.html create mode 100755 docs/_includes/masthead.html create mode 100755 docs/_includes/nav_list delete mode 100644 docs/_includes/note.html create mode 100755 docs/_includes/page__hero.html create mode 100755 docs/_includes/page__hero_video.html create mode 100755 docs/_includes/page__taxonomy.html create mode 100755 docs/_includes/paginator.html create mode 100755 docs/_includes/post_pagination.html create mode 100755 docs/_includes/read-time.html create mode 100755 docs/_includes/scripts.html create mode 100755 docs/_includes/seo.html mode change 100644 => 100755 docs/_includes/sidebar.html create mode 100755 docs/_includes/social-share.html create mode 100755 docs/_includes/tag-list.html delete mode 100644 docs/_includes/taglogic.html delete mode 100644 docs/_includes/tip.html create mode 100755 docs/_includes/toc delete mode 100644 docs/_includes/toc.html delete mode 100644 docs/_includes/topnav.html create mode 100755 docs/_includes/video delete mode 100644 docs/_includes/warning.html create mode 100755 docs/_layouts/archive-taxonomy.html create mode 100755 docs/_layouts/archive.html create mode 100755 docs/_layouts/compress.html mode change 100644 => 100755 docs/_layouts/default.html delete mode 100644 docs/_layouts/default_print.html create mode 100755 docs/_layouts/home.html delete mode 100644 docs/_layouts/page.html delete mode 100644 docs/_layouts/page_print.html delete mode 100644 docs/_layouts/post.html create mode 100755 docs/_layouts/single.html create mode 100755 docs/_layouts/splash.html create mode 100755 docs/_sass/minimal-mistakes.scss create mode 100755 docs/_sass/minimal-mistakes/_animations.scss create mode 100755 docs/_sass/minimal-mistakes/_archive.scss create mode 100755 docs/_sass/minimal-mistakes/_base.scss create mode 100755 docs/_sass/minimal-mistakes/_buttons.scss create mode 100755 docs/_sass/minimal-mistakes/_footer.scss create mode 100755 docs/_sass/minimal-mistakes/_forms.scss create mode 100755 docs/_sass/minimal-mistakes/_masthead.scss create mode 100755 docs/_sass/minimal-mistakes/_mixins.scss create mode 100755 docs/_sass/minimal-mistakes/_navigation.scss create mode 100755 docs/_sass/minimal-mistakes/_notices.scss create mode 100755 docs/_sass/minimal-mistakes/_page.scss create mode 100755 docs/_sass/minimal-mistakes/_print.scss create mode 100755 docs/_sass/minimal-mistakes/_reset.scss create mode 100755 docs/_sass/minimal-mistakes/_sidebar.scss create mode 100755 docs/_sass/minimal-mistakes/_syntax.scss create mode 100755 docs/_sass/minimal-mistakes/_tables.scss create mode 100755 docs/_sass/minimal-mistakes/_utilities.scss create mode 100755 docs/_sass/minimal-mistakes/_variables.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/breakpoint/_breakpoint.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/breakpoint/_context.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/breakpoint/_helpers.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/breakpoint/_legacy-settings.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/breakpoint/_no-query.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/breakpoint/_parsers.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/breakpoint/_respond-to.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/breakpoint/_settings.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/breakpoint/parsers/_double.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/breakpoint/parsers/_query.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/breakpoint/parsers/_resolution.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/breakpoint/parsers/_single.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/breakpoint/parsers/_triple.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_default-pair.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_default.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_double-string.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/breakpoint/parsers/resolution/_resolution.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/breakpoint/parsers/single/_default.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/breakpoint/parsers/triple/_default.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/font-awesome/_animated.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/font-awesome/_bordered-pulled.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/font-awesome/_core.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/font-awesome/_fixed-width.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/font-awesome/_font-awesome.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/font-awesome/_icons.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/font-awesome/_larger.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/font-awesome/_list.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/font-awesome/_mixins.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/font-awesome/_path.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/font-awesome/_rotated-flipped.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/font-awesome/_screen-reader.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/font-awesome/_stacked.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/font-awesome/_variables.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/magnific-popup/_magnific-popup.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/magnific-popup/_settings.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/_su.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/_susy.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/_susyone.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/_su.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/_susy.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/_susyone.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/susy/_background.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/susy/_bleed.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/susy/_box-sizing.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/susy/_breakpoint-plugin.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/susy/_container.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/susy/_context.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/susy/_gallery.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/susy/_grids.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/susy/_gutters.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/susy/_isolate.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/susy/_margins.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/susy/_padding.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/susy/_rows.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/susy/_settings.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/susy/_span.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/susy/_validation.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/susyone/_background.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/susyone/_functions.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/susyone/_grid.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/susyone/_isolation.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/susyone/_margin.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/susyone/_media.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/susyone/_padding.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/language/susyone/_settings.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/output/_float.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/output/_shared.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/output/_support.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/output/float/_container.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/output/float/_end.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/output/float/_isolate.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/output/float/_span.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/output/shared/_background.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/output/shared/_container.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/output/shared/_direction.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/output/shared/_inspect.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/output/shared/_margins.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/output/shared/_output.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/output/shared/_padding.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/output/support/_background.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/output/support/_box-sizing.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/output/support/_clearfix.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/output/support/_prefix.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/output/support/_rem.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/output/support/_support.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/su/_grid.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/su/_settings.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/su/_utilities.scss create mode 100755 docs/_sass/minimal-mistakes/vendor/susy/susy/su/_validation.scss create mode 100755 docs/assets/css/main.scss create mode 100755 docs/assets/fonts/FontAwesome.otf create mode 100755 docs/assets/fonts/fontawesome-webfont.eot create mode 100755 docs/assets/fonts/fontawesome-webfont.svg rename docs/{css => assets}/fonts/fontawesome-webfont.ttf (50%) mode change 100644 => 100755 create mode 100755 docs/assets/fonts/fontawesome-webfont.woff create mode 100755 docs/assets/fonts/fontawesome-webfont.woff2 create mode 100755 docs/assets/js/_main.js create mode 100755 docs/assets/js/main.min.js create mode 100755 docs/assets/js/plugins/jquery.fitvids.js create mode 100755 docs/assets/js/plugins/jquery.greedy-navigation.js create mode 100755 docs/assets/js/plugins/jquery.magnific-popup.js create mode 100755 docs/assets/js/plugins/jquery.smooth-scroll.min.js create mode 100755 docs/assets/js/vendor/jquery/jquery-1.12.4.min.js create mode 100755 docs/banner.js delete mode 100644 docs/contributors-guide.md delete mode 100755 docs/css/bootstrap.min.css delete mode 100644 docs/css/customstyles.css delete mode 100644 docs/css/font-awesome.min.css delete mode 100644 docs/css/fonts/FontAwesome.otf delete mode 100644 docs/css/fonts/fontawesome-webfont.eot delete mode 100644 docs/css/fonts/fontawesome-webfont.svg delete mode 100644 docs/css/fonts/fontawesome-webfont.woff delete mode 100644 docs/css/fonts/fontawesome-webfont.woff2 delete mode 100644 docs/css/lavish-bootstrap.css delete mode 100755 docs/css/modern-business.css delete mode 100644 docs/css/printstyles.css delete mode 100644 docs/css/syntax.css delete mode 100644 docs/css/theme-blue.css delete mode 100644 docs/css/theme-green.css delete mode 100644 docs/feed.xml delete mode 100644 docs/fonts/FontAwesome.otf delete mode 100644 docs/fonts/fontawesome-webfont.eot delete mode 100644 docs/fonts/fontawesome-webfont.svg delete mode 100644 docs/fonts/fontawesome-webfont.ttf delete mode 100644 docs/fonts/fontawesome-webfont.woff delete mode 100644 docs/fonts/glyphicons-halflings-regular.eot delete mode 100644 docs/fonts/glyphicons-halflings-regular.svg delete mode 100644 docs/fonts/glyphicons-halflings-regular.ttf delete mode 100644 docs/fonts/glyphicons-halflings-regular.woff delete mode 100644 docs/fonts/glyphicons-halflings-regular.woff2 delete mode 100644 docs/images/communicorn.jpg delete mode 100644 docs/images/company_logo.png delete mode 100644 docs/images/favicon.ico mode change 100644 => 100755 docs/index.md delete mode 100644 docs/js/customscripts.js delete mode 100644 docs/js/jekyll-search.js delete mode 100644 docs/js/jquery.ba-throttle-debounce.min.js delete mode 100644 docs/js/jquery.localScroll.min.js delete mode 100755 docs/js/jquery.navgoco.min.js delete mode 100644 docs/js/jquery.scrollTo.min.js delete mode 100644 docs/js/jquery.shuffle.min.js delete mode 100644 docs/js/mydoc_scroll.html delete mode 100644 docs/js/toc.js delete mode 100644 docs/licenses/LICENSE-BSD-NAVGOCO.txt create mode 100755 docs/package.json delete mode 100644 docs/pages/plugins/client.md delete mode 100644 docs/sitemap.xml delete mode 100755 docs/update.sh diff --git a/INSTALL.md b/INSTALL.md deleted file mode 100644 index aed9cbad8..000000000 --- a/INSTALL.md +++ /dev/null @@ -1,275 +0,0 @@ -## Contents - -- [Installation](#installation) - install the application on a machine - - [Via Docker](#installation-from-docker) - - [Via Source](#installation-from-source) -- [Setup](#setup) - setup the application for first use -- [Usage](#usage) - connect the application to a website - -# Installation - -## Requirements - -- Any flavour of Linux, OSX or Windows -- 1GB memory (minimum) -- 5GB storage (minimum) -- [MongoDB](https://www.mongodb.com/) v3.4 or later -- [Redis](https://redis.io/) v3.2 or later -- SSL Certificate - - This application assumes that you will be serving this application in a - production environment, and therefore requires that you serve it behind a - webserver with a valid SSL certificate. This is chosen in order to secure - user's sessions. - -## Installation From Docker - -We currently support packaging the Talk application via Docker, which automates -the dependency install and asset build process. This is the recommended way to -deploy the application when used in production. - -Available as [coralproject/talk](https://hub.docker.com/r/coralproject/talk/) on Docker Hub. - -Images are tagged using the following notation: - -- `x` (where `x` is the major version number): any minor or patch updates will be included in this. If you're ok getting - new features occasionally and all the bug fixes, this is the tag for you. -- `x.y` (where `y` is the minor version number): any patch updates will be - included with this tag. If you like getting fixes and having features change - only when you want, this is the tag for you. **(recommended)** -- `x.y.z` (where `z` is the patch version): this tag never gets updated, and - essentially freezes your version, this should only be used when you are either - extending Talk or are sure of a specific version you want to freeze. - -We provide tags with `*-onbuild` that can be used for easy plugin integration and -acts as a customization endpoint. Instructions are provided in the `PLUGINS.md` -document as to how to use it. - -### Requirements - -There are some runtime requirements for running Talk for Docker: - -- [Docker](https://www.docker.com/) v1.13.0 or later -- [Docker Compose](https://docs.docker.com/compose/) v1.10.0 or later - -_Please be sure to check the versions of these requirements. Incorrect versions -of these may lead to unexpected errors!_ - -### Installing - -An example docker-compose.yml: - -```yaml -version: '2' -services: - talk: - image: coralproject/talk:1.5 - restart: always - ports: - - "5000:5000" - depends_on: - - mongo - - redis - environment: - - TALK_MONGO_URL=mongodb://mongo/talk - - TALK_REDIS_URL=redis://redis - mongo: - image: mongo:3.2 - restart: always - volumes: - - mongo:/data/db - redis: - image: redis:3.2 - restart: always - volumes: - - redis:/data -volumes: - mongo: - external: false - redis: - external: false -``` - -At this stage, you should refer to the `README.md` for configuration variables -that are specific to your installation. Some pre-defined fields have been filled -in the above example which are consistent with Docker Compose naming conventions -for [Docker Links](https://docs.docker.com/compose/networking/#links). - -### Scaling - -If you are interested in splitting apart services, you can simply adjust the -command being executed in the container to optimize for your use case. An -example would be if you wanted to run the API server and the job processor -on different machines. You can achieve this easily with docker compose: - -```yaml -version: '2' -services: - talk-api: - image: coralproject/talk:1.5 - command: cli serve - restart: always - ports: - - "5000:5000" - depends_on: - - mongo - - redis - environment: - - TALK_MONGO_URL=mongodb://mongo/talk - - TALK_REDIS_URL=redis://redis - talk-jobs: - image: coralproject/talk:1.5 - command: cli jobs process - restart: always - ports: - - "5001:5000" - depends_on: - - mongo - - redis - environment: - - TALK_MONGO_URL=mongodb://mongo/talk - - TALK_REDIS_URL=redis://redis - mongo: - image: mongo:3.2 - restart: always - volumes: - - mongo:/data/db - redis: - image: redis:3.2 - restart: always - volumes: - - redis:/data -volumes: - mongo: - external: false - redis: - external: false -``` - -Note that the only difference is in the `command` key. From this, you are able -to discretely control which modules are running in order to have the maximum -flexibility when managing your application. - -### Running - -If you're using docker compose: - -```bash -# Start the services using compose -docker-compose up -d -``` - -If you're using plain docker: - -```bash -docker run -d -P coralproject/talk:latest -``` - -## Installation From Source - -This provides information on how to setup the application from source. Note that -this is not recommended for production deploys, but will work for development -and testing purposes. - -### Requirements - -There are some runtime requirements for running Talk from source: - -- [Node](https://nodejs.org/) ~7.8 -- [Yarn](https://yarnpkg.com/) ^0.22.0 - -_Please be sure to check the versions of these requirements. Incorrect versions -of these may lead to unexpected errors!_ - -### Installing - -#### Download - -It is highly recommended that you download a released version as the code -available in `master` may not be stable. You can download the latest release -from the [releases page](https://github.com/coralproject/talk/releases). - -You can also clone the git repository via: - -```bash -git clone https://github.com/coralproject/talk.git -``` - -#### Building - -We now have to install the dependencies and build the static assets. - -```bash -# Install package dependancies -yarn - -# Build static files -yarn build -``` - -After you create/modify the `plugins.json` (refer to `PLUGINS.md` for plugin -docs) file, you can re-run the following to install their dependencies: - -```bash -# Reconcile plugins -./bin/cli plugins reconcile - -# Build static files -yarn build -``` - -### Running - -Refer to the `README.md` file for required configuration variables to add to the -environment. - -You can start the server after configuring the server using the command: - -```bash -yarn start -``` - -This will setup the server to serve everything on a single node.js process and -is designed to be used in production. - -You can see other scripts we've made available by consulting the `package.json` -file under the `scripts` key including: - -- `yarn test` run unit tests -- `yarn e2e` run end to end tests -- `yarn build-watch` watch for changes to client files and build static assets -- `yarn dev-start` watch for changes to server files and reload the server while - also sourcing a `.env` file in your local directory for configuration - -# Setup - -Once you've installed Talk (either via Docker or source), you still need to -setup the application. If you are unfamiliar with any terminology used in the -setup process, refer to the `TERMINOLOGY.md` document. - -## Via Web - -If you want to perform your setup via the web, you can navigate to your -installation of Talk at the path `/admin/install`. There you will be asked a -series of questions for your installation. - -## Via CLI - -If you want to perform your setup through the terminal, you can simply run: - -```bash -cli setup -``` - -And follow the instructions to perform initial setup and create your first user -account. - - -# Usage - -After setup is complete, you can then refer to the `/admin/configure` path to -get the embed code that you can copy/paste onto your blog or website in order to -start using Talk. - -_In order for the embed to work correctly, you will need to whitelist the domain -that is allowed to embed your site on the `/admin/configure` page, failure to do -so will result in the comment stream not loading._ diff --git a/PLUGINS.md b/PLUGINS.md deleted file mode 100644 index ac34240b1..000000000 --- a/PLUGINS.md +++ /dev/null @@ -1,3 +0,0 @@ -# Talk Plugins - -Our documentation for Talk has moved! Utilize [this hyperlink](https://coralproject.github.io/talk/plugins.html) via click or tap to navigate your browser to the new location! diff --git a/README.md b/README.md index 86e8000d0..89aaefee8 100644 --- a/README.md +++ b/README.md @@ -5,106 +5,9 @@ Online comments are broken. Our open-source Talk tool rethinks how moderation, c Third party licenses are available via the `/client/3rdpartylicenses.txt` endpoint when the server is running with built assets. -## Contributing to Talk - -See our [Contribution Guide](https://github.com/coralproject/talk/blob/master/CONTRIBUTING.md). - ## Documentation -### General - -See our [Talk Documentation & Guides](https://coralproject.github.io/talk/index.html). - -### Plugins - -See our guide to using and building [Talk Plugins](https://github.com/coralproject/talk/blob/master/PLUGINS.md). - -### Recipes - -Recipes are plugin templates provided by the Coral Core team. Developers can use these recipes to build their own plugins. You can find all the Talk recipes here: https://github.com/coralproject/talk-recipes/ - -## Usage - -### Installation - -To set up a development environment or build from source, see [INSTALL.md](https://github.com/coralproject/talk/blob/master/INSTALL.md). - -To launch a Talk server of your own from your browser without any need to muck about in a terminal or think about engineering concepts, stay tuned. We will launch [our installer](https://github.com/coralproject/talk-install) shortly! - -### Configuration - -The Talk application looks for the following configuration values either as environment variables: - -- `TALK_MONGO_URL` (*required*) - the database connection string for the MongoDB database. -- `TALK_REDIS_URL` (*required*) - the database connection string for the Redis database. -- `TALK_ROOT_URL` (*required*) - root url of the installed application externally -available in the format: `://` without the path. -- `TALK_JWT_SECRET` (*required*) - a long and cryptographical secure random string which will be used to -sign and verify tokens via a `HS256` algorithm. -- `TALK_JWT_EXPIRY` (_optional_) - the expiry duration (`exp`) for the tokens issued for logged in sessions (Default `1 day`) -- `TALK_JWT_ISSUER` (_optional_) - the issuer (`iss`) claim for login JWT tokens (Default `process.env.TALK_ROOT_URL`) -- `TALK_JWT_AUDIENCE` (_optional_) - the audience (`aud`) claim for login JWT tokens (Default `talk`) -- `TALK_SMTP_EMAIL` (*required for email*) - the address to send emails from using the - SMTP provider. -- `TALK_SMTP_USERNAME` (*required for email*) - username of the SMTP provider you are using. -- `TALK_SMTP_PASSWORD` (*required for email*) - password for the SMTP provider you are using. -- `TALK_SMTP_HOST` (*required for email*) - SMTP host url with format `smtp.domain.com`. -- `TALK_SMTP_PORT` (*required for email*) - SMTP port. -- `TALK_INSTALL_LOCK` (_optional for dynamic setup_) - When `TRUE`, disables the dynamic setup endpoint. (Default `FALSE`) -- `TALK_RECAPTCHA_SECRET` (*required for reCAPTCHA support*) - server secret used for enabling reCAPTCHA powered logins. If not provided it will instead default to providing only a time based lockout. -- `TALK_RECAPTCHA_PUBLIC` (*required for reCAPTCHA support*) - client secret used for enabling reCAPTCHA powered logins. If not provided it will instead default to providing only a time based lockout. -- `TALK_PLUGINS_JSON` (_optional_) - used to specify the plugin config via the environment -- `TALK_KEEP_ALIVE` (_optional_) - The keepalive timeout that should be used to send keep alive messages through the websocket to keep the socket alive. (Default `30s`) -- `TALK_DISABLE_AUTOFLAG_SUSPECT_WORDS` (_optional_) When `TRUE`, disables flagging of comments that match the suspect word filter. (Default `FALSE`) - -Refer to the wiki page on [Configuration Loading](https://github.com/coralproject/talk/wiki/Configuration-Loading) for -alternative methods of loading configuration during development. - -### Running Migrations - -We have a migration tool that can be run using `bin/cli migration run`. This will detect new migrations available and prompt you to backup your database before proceeding with the migration. Migrations are required with major version releases. - -### Using Trust - -Talk ships with core components we call "Trust". This allows Talk to automate certain actions based on previous user behavior. - -Our first feature is the notion of Karma. Talk will automatically pre-moderate comments of users who have a negative karma score. You can [see more how karma works here](/services/karma.js). - -## Supported Browsers - -### Web - -- Chrome: latest 2 versions -- Firefox: latest 2 versions, and most recent extended support version, if any -- Safari: latest 2 versions -- Internet Explorer: IE Edge, 11 - -### iOS Devices - -- iPad -- iPad Pro -- iPhone 7 Plus -- iPhone 7 -- iPhone 6 Plus -- iPhone 6 -- iPhone 5 - -### iOS Browsers - -- Chrome for iOS: latest version -- Firefox for iOS: latest version -- Safari for iOS: latest version - -### Android Devices - -- Galaxy S5 -- Nexus 5X -- Nexus 6P - -### Android Browsers - -- Chrome for Android: latest version -- Firefox for Android: latest version +See our [Talk Documentation & Guides](https://coralproject.github.io/talk/). ## License diff --git a/TERMINOLOGY.md b/TERMINOLOGY.md deleted file mode 100644 index b95dbb816..000000000 --- a/TERMINOLOGY.md +++ /dev/null @@ -1,73 +0,0 @@ -# Product's Terminology - -This is a guide to have a common language to talk about "Talk". - -## Definitions - -* Site - a top level site, aka nytimes.com -* Section - the section of a site, aka, Politics. -* Subsection - the section of a site, aka, Politics. -* Asset - An article/video/etc identified by URL. - -* Embed - Things we put on a asset: comment box, ToS, Stream, etc… -* Stream - All the activity on a certain asset. Container for Comments, actions, user -* Thread - defined by a parent and everything below. All replies to a comment and their replies, etc… -* Comment - a kind of user-generated content submitted by a comment author - * A parent comment has replies to it - * A child comments is a reply to another comment - * A comment can be both a parent comment and a child of another comment - * A top-level comment is a comment that is not a reply to any other comment - * A nth-level comment refers to the number of replies away from the top-level comment - -* User - an item to represent a person using Talk. It could be a moderator, reader, etc. -* User Roles: - * Active: some who takes action (logged in or not) - * Passive: some who just reads, no actions performed - * Comment Author: The user who wrote the comment - * Staff Member: someone who works for an organization (tagged for leverage in trust) - * Moderator: someone with the ability to access the moderation queue and perform moderation actions - * Administrator: has the ability to change the setup of their coral space -* Public Profile: information about users shown in public -* Private Profile: information about users shown only to user about themselves -* Protected Profile: information about users that only moderators and admins can see - -* Queue - Group of items based on a query, aka - moderation queue -* Target - The item/s on which an action is performed - -## Actions - -Actions are performed by users on items. Actions themselves are items. This requires two relationships: action on item, and user performs action. - -### Flag -* A Flagger(user) performs a Flag -* A Flag is performed on a Comment or a username or profile content - - -## Moderation Actions and Status - -Comments contain a field `status`. As moderation actions are peformed, the status changes. - -* Initial status is empty. -* When a moderator Approves, the status is set to 'approved'. -* When a moderator Rejects, the status is set to 'reject'. - -### Pre and post moderation - -Comments can be set to be premoderated or postmoderated. - -Premoderation means that moderation has to occur _before_ a comment is shown on the site: - -* New comments are shown in the moderator queues immediately. -* The are not shown to users until (aka in streams) until they are approved by a moderator. - -Postmoderation means that comments appear on the site _before_ any moderation action is taken. - -* New comments appear in comment streams immediately. -* New comments do not appear in moderation queues unless they are flagged by other users. - -### Word lists - -* Banned words - words that the site never allows in a comment -* Suspect words - words whose usage needs to be approved by a moderator before being shown in the stream -* Approved words - words that are usually Banned or Suspect sitewide, but approved for use in a specific article stream - diff --git a/docs/.vscode/settings.json b/docs/.vscode/settings.json deleted file mode 100644 index 5af001d55..000000000 --- a/docs/.vscode/settings.json +++ /dev/null @@ -1,6 +0,0 @@ -// Place your settings in this file to overwrite default and user settings. -{ - "files.associations": { - "*.html": "liquid" - } -} diff --git a/docs/404.md b/docs/404.md deleted file mode 100644 index a7b58c002..000000000 --- a/docs/404.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: "Page Not Found" -search: exclude ---- - -Sorry, but the page you were trying to view does not exist. Try searching for it or looking at the URL to see if it looks correct. diff --git a/docs/Dockerfile b/docs/Dockerfile deleted file mode 100644 index b1fa52c47..000000000 --- a/docs/Dockerfile +++ /dev/null @@ -1,26 +0,0 @@ -FROM ruby:2.1 -MAINTAINER mrafayaleem@gmail.com - -RUN apt-get clean \ - && mv /var/lib/apt/lists /var/lib/apt/lists.broke \ - && mkdir -p /var/lib/apt/lists/partial - -RUN apt-get update - -RUN apt-get install -y \ - node \ - python-pygments \ - && apt-get clean \ - && rm -rf /var/lib/apt/lists/ - -WORKDIR /tmp -ADD Gemfile /tmp/ -ADD Gemfile.lock /tmp/ -RUN bundle install - -VOLUME /src -EXPOSE 4000 - -WORKDIR /src -ENTRYPOINT ["jekyll"] - diff --git a/docs/Gemfile b/docs/Gemfile old mode 100644 new mode 100755 index d2e1a4527..0dee02654 --- a/docs/Gemfile +++ b/docs/Gemfile @@ -1,4 +1,11 @@ source "https://rubygems.org" -gem 'github-pages', group: :jekyll_plugins -gem 'wdm', '>= 0.1.0' if Gem.win_platform? +gem "github-pages", group: :jekyll_plugins + +group :jekyll_plugins do + gem "jekyll-paginate" + gem "jekyll-sitemap" + gem "jekyll-gist" + gem "jekyll-feed" + gem "jemoji" +end \ No newline at end of file diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock index 04ce5e261..adda86bbd 100644 --- a/docs/Gemfile.lock +++ b/docs/Gemfile.lock @@ -11,7 +11,7 @@ GEM coffee-script (2.4.1) coffee-script-source execjs - coffee-script-source (1.12.2) + coffee-script-source (1.11.1) colorator (1.1.0) ethon (0.10.1) ffi (>= 1.3.0) @@ -21,22 +21,22 @@ GEM ffi (1.9.18) forwardable-extended (2.6.0) gemoji (3.0.0) - github-pages (138) + github-pages (145) activesupport (= 4.2.8) - github-pages-health-check (= 1.3.3) - jekyll (= 3.4.3) + github-pages-health-check (= 1.3.4) + jekyll (= 3.4.5) jekyll-avatar (= 0.4.2) jekyll-coffeescript (= 1.0.1) jekyll-default-layout (= 0.1.4) jekyll-feed (= 0.9.2) jekyll-gist (= 1.4.0) - jekyll-github-metadata (= 2.3.1) + jekyll-github-metadata (= 2.5.1) jekyll-mentions (= 1.2.0) - jekyll-optional-front-matter (= 0.1.2) + jekyll-optional-front-matter (= 0.2.0) jekyll-paginate (= 1.1.0) jekyll-readme-index (= 0.1.0) jekyll-redirect-from (= 0.12.1) - jekyll-relative-links (= 0.4.0) + jekyll-relative-links (= 0.4.1) jekyll-sass-converter (= 1.5.0) jekyll-seo-tag (= 2.2.3) jekyll-sitemap (= 1.0.0) @@ -50,11 +50,11 @@ GEM jekyll-theme-midnight (= 0.0.4) jekyll-theme-minimal (= 0.0.4) jekyll-theme-modernist (= 0.0.4) - jekyll-theme-primer (= 0.1.8) + jekyll-theme-primer (= 0.3.1) jekyll-theme-slate (= 0.0.4) jekyll-theme-tactile (= 0.0.4) jekyll-theme-time-machine (= 0.0.4) - jekyll-titles-from-headings (= 0.1.5) + jekyll-titles-from-headings (= 0.2.0) jemoji (= 0.8.0) kramdown (= 1.13.2) liquid (= 3.0.6) @@ -63,7 +63,7 @@ GEM minima (= 2.1.1) rouge (= 1.11.1) terminal-table (~> 1.4) - github-pages-health-check (1.3.3) + github-pages-health-check (1.3.4) addressable (~> 2.3) net-dns (~> 0.8) octokit (~> 4.0) @@ -72,8 +72,8 @@ GEM html-pipeline (2.6.0) activesupport (>= 2) nokogiri (>= 1.4) - i18n (0.8.1) - jekyll (3.4.3) + i18n (0.8.6) + jekyll (3.4.5) addressable (~> 2.4) colorator (~> 1.0) jekyll-sass-converter (~> 1.0) @@ -94,21 +94,21 @@ GEM jekyll (~> 3.3) jekyll-gist (1.4.0) octokit (~> 4.2) - jekyll-github-metadata (2.3.1) + jekyll-github-metadata (2.5.1) jekyll (~> 3.1) octokit (~> 4.0, != 4.4.0) jekyll-mentions (1.2.0) activesupport (~> 4.0) html-pipeline (~> 2.3) jekyll (~> 3.0) - jekyll-optional-front-matter (0.1.2) + jekyll-optional-front-matter (0.2.0) jekyll (~> 3.0) jekyll-paginate (1.1.0) jekyll-readme-index (0.1.0) jekyll (~> 3.0) jekyll-redirect-from (0.12.1) jekyll (~> 3.3) - jekyll-relative-links (0.4.0) + jekyll-relative-links (0.4.1) jekyll (~> 3.3) jekyll-sass-converter (1.5.0) sass (~> 3.4) @@ -135,7 +135,7 @@ GEM jekyll (~> 3.3) jekyll-theme-modernist (0.0.4) jekyll (~> 3.3) - jekyll-theme-primer (0.1.8) + jekyll-theme-primer (0.3.1) jekyll (~> 3.3) jekyll-theme-slate (0.0.4) jekyll (~> 3.3) @@ -143,7 +143,7 @@ GEM jekyll (~> 3.3) jekyll-theme-time-machine (0.0.4) jekyll (~> 3.3) - jekyll-titles-from-headings (0.1.5) + jekyll-titles-from-headings (0.2.0) jekyll (~> 3.3) jekyll-watch (1.5.0) listen (~> 3.0, < 3.1) @@ -158,25 +158,29 @@ GEM rb-fsevent (>= 0.9.3) rb-inotify (>= 0.9.7) mercenary (0.3.6) - mini_portile2 (2.1.0) + mini_portile2 (2.2.0) minima (2.1.1) jekyll (~> 3.3) minitest (5.10.2) multipart-post (2.0.0) net-dns (0.8.0) - nokogiri (1.6.8.1) - mini_portile2 (~> 2.1.0) + nokogiri (1.8.0) + mini_portile2 (~> 2.2.0) octokit (4.7.0) sawyer (~> 0.8.0, >= 0.5.3) pathutil (0.14.0) forwardable-extended (~> 2.6) public_suffix (2.0.5) - rb-fsevent (0.9.8) - rb-inotify (0.9.8) - ffi (>= 0.5.0) + rb-fsevent (0.10.2) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) rouge (1.11.1) safe_yaml (1.0.4) - sass (3.4.24) + sass (3.5.1) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) sawyer (0.8.1) addressable (>= 2.3.5, < 2.6) faraday (~> 0.8, < 1.0) @@ -187,13 +191,18 @@ GEM ethon (>= 0.8.0) tzinfo (1.2.3) thread_safe (~> 0.1) - unicode-display_width (1.2.1) + unicode-display_width (1.3.0) PLATFORMS ruby DEPENDENCIES github-pages + jekyll-feed + jekyll-gist + jekyll-paginate + jekyll-sitemap + jemoji BUNDLED WITH - 1.15.0 + 1.15.2 diff --git a/docs/licenses/LICENSE b/docs/LICENSE.txt old mode 100644 new mode 100755 similarity index 96% rename from docs/licenses/LICENSE rename to docs/LICENSE.txt index e04b3d02e..b7cc9a0dc --- a/docs/licenses/LICENSE +++ b/docs/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016 Tom Johnson +Copyright (c) 2017 Michael Rose Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +SOFTWARE. \ No newline at end of file diff --git a/docs/README b/docs/README new file mode 100644 index 000000000..9b4a474b8 --- /dev/null +++ b/docs/README @@ -0,0 +1,9 @@ +# Coral Talk Documentation + +To preview the documentation, run: + +```bash +docker run --rm --volume=$PWD:/srv/jekyll -p 127.0.0.1:4000:4000 -it jekyll/jekyll:pages jekyll serve +``` + +From the `docs` directory. \ No newline at end of file diff --git a/docs/Rakefile b/docs/Rakefile new file mode 100755 index 000000000..e50d89f84 --- /dev/null +++ b/docs/Rakefile @@ -0,0 +1,75 @@ +require "bundler/gem_tasks" +require "jekyll" +require "listen" + +def listen_ignore_paths(base, options) + [ + /_config\.ya?ml/, + /_site/, + /\.jekyll-metadata/ + ] +end + +def listen_handler(base, options) + site = Jekyll::Site.new(options) + Jekyll::Command.process_site(site) + proc do |modified, added, removed| + t = Time.now + c = modified + added + removed + n = c.length + relative_paths = c.map{ |p| Pathname.new(p).relative_path_from(base).to_s } + print Jekyll.logger.message("Regenerating:", "#{relative_paths.join(", ")} changed... ") + begin + Jekyll::Command.process_site(site) + puts "regenerated in #{Time.now - t} seconds." + rescue => e + puts "error:" + Jekyll.logger.warn "Error:", e.message + Jekyll.logger.warn "Error:", "Run jekyll build --trace for more information." + end + end +end + +task :preview do + base = Pathname.new('.').expand_path + options = { + "source" => base.join('test').to_s, + "destination" => base.join('test/_site').to_s, + "force_polling" => false, + "serving" => true, + "theme" => "minimal-mistakes-jekyll" + } + + options = Jekyll.configuration(options) + + ENV["LISTEN_GEM_DEBUGGING"] = "1" + listener = Listen.to( + base.join("_includes"), + base.join("_layouts"), + base.join("_sass"), + base.join("assets"), + options["source"], + :ignore => listen_ignore_paths(base, options), + :force_polling => options['force_polling'], + &(listen_handler(base, options)) + ) + + begin + listener.start + Jekyll.logger.info "Auto-regeneration:", "enabled for '#{options["source"]}'" + + unless options['serving'] + trap("INT") do + listener.stop + puts " Halting auto-regeneration." + exit 0 + end + + loop { sleep 1000 } + end + rescue ThreadError + # You pressed Ctrl-C, oh my! + end + + Jekyll::Commands::Serve.process(options) +end diff --git a/docs/_config.yml b/docs/_config.yml old mode 100644 new mode 100755 index 96ae10d52..b94154269 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -1,102 +1,252 @@ -repository: coralproject/talk +# Welcome to Jekyll! +# +# This config file is meant for settings that affect your entire site, values +# which you are expected to set up once and rarely need to edit after that. +# For technical reasons, this file is *NOT* reloaded automatically when you use +# `jekyll serve`. If you change this file, please restart the server process. -output: web -# this property is useful for conditional filtering of content that is separate from the PDF. +# Site Settings +locale : "en" +title : "Coral Talk Documentation" +title_separator : "-" +name : "The Coral Project" +description : "Documentation and guides for Coral Talk." +url : https://coralproject.github.io # the base hostname & protocol for your site e.g. "https://mmistakes.github.io" +baseurl : /talk # the subpath of your site, e.g. "/blog" +repository : "coralproject/talk" # GitHub username/repo-name e.g. "mmistakes/minimal-mistakes" +teaser : # path of fallback teaser image, e.g. "/assets/images/500x300.png" +# breadcrumbs : false # true, false (default) +words_per_minute : 200 +comments: + provider : # false (default), "disqus", "discourse", "facebook", "google-plus", "staticman", "custom" + disqus: + shortname : # https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname- + discourse: + server : # https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963 , e.g.: meta.discourse.org + facebook: + # https://developers.facebook.com/docs/plugins/comments + appid : + num_posts : # 5 (default) + colorscheme : # "light" (default), "dark" +staticman: + allowedFields : ['name', 'email', 'url', 'message'] + branch : "master" + commitMessage : "New comment." + filename : comment-{@timestamp} + format : "yml" + moderation : true + path : "docs/_data/comments/{options.slug}" # "/_data/comments/{options.slug}" (default) + requiredFields : ['name', 'email', 'message'] + transforms: + email : "md5" + generatedFields: + date: + type : "date" + options: + format : "iso8601" # "iso8601" (default), "timestamp-seconds", "timestamp-milliseconds" +atom_feed: + path : # blank (default) uses feed.xml -topnav_title: Coral Talk Documentation -# this appears on the top navigation bar next to the home button +# SEO Related +google_site_verification : +bing_site_verification : +alexa_site_verification : +yandex_site_verification : -site_title: Coral Talk Documentation -# this appears in the html browser tab for the site title (seen mostly by search engines, not users) +# Social Sharing +twitter: + username : +facebook: + username : + app_id : + publisher : +og_image : # Open Graph/Twitter default site image +# For specifying social profiles +# - https://developers.google.com/structured-data/customize/social-profiles +social: + type : # Person or Organization (defaults to Person) + name : # If the user or organization name differs from the site's name + links: # An array of links to social media profiles -company_name: The Coral Project -# this appears in the footer +# Analytics +analytics: + provider : false # false (default), "google", "google-universal", "custom" + google: + tracking_id : -github_editme_path: -# if you're using Github, provide the basepath to the branch you've created for reviews, following the sample here. if not, leave this value blank. -disqus_shortname: -# if you're using disqus for comments, add the shortname here. if not, leave this value blank. +# Site Author +author: + name : "Your Name" + avatar : # path of avatar image, e.g. "/assets/images/bio-photo.jpg" + bio : "I am an amazing person." + location : "Somewhere" + email : + uri : + bitbucket : + codepen : + dribbble : + flickr : + facebook : + foursquare : + github : + gitlab : + google_plus : + keybase : + instagram : + lastfm : + linkedin : + pinterest : + soundcloud : + stackoverflow : # "123456/username" (the last part of your profile url, e.g. http://stackoverflow.com/users/123456/username) + steam : + tumblr : + twitter : + vine : + weibo : + xing : + youtube : # "https://youtube.com/c/MichaelRoseDesign" -host: 127.0.0.1 -# the preview server used. Leave as is. - -port: 4000 -# the port where the preview is rendered. You can leave this as is unless you have other Jekyll builds using this same port that might cause conflicts. in that case, use another port such as 4006. +# Reading Files +include: + - .htaccess + - swagger.yml + - _pages exclude: - - .idea/ - - .gitignore -# these are the files and directories that jekyll will exclude from the build + - "*.sublime-project" + - "*.sublime-workspace" + - vendor + - .asset-cache + - .bundle + - .jekyll-assets-cache + - .sass-cache + - assets/js/plugins + - assets/js/_main.js + - assets/js/vendor + - Capfile + - CHANGELOG + - config + - Gemfile + - Gruntfile.js + - gulpfile.js + - LICENSE + - log + - node_modules + - package.json + - Rakefile + - README + - tmp +keep_files: + - .git + - .svn +encoding: "utf-8" +markdown_ext: "markdown,mkdown,mkdn,mkd,md" -feedback_subject_line: - -feedback_email: -# used as a contact email for the Feedback link in the top navigation bar - - feedback_disable: true -# if you uncomment the previous line, the Feedback link gets removed - -# feedback_text: "Need help?" -# if you uncomment the previous line, it changes the Feedback text - -# feedback_link: "http://helpy.io/" -# if you uncomment the previous line, it changes where the feedback link points to - -highlighter: rouge -# library used for syntax highlighting +# Conversion markdown: kramdown +highlighter: rouge +lsi: false +excerpt_separator: "\n\n" +incremental: false + + +# Markdown Processing kramdown: - input: GFM - auto_ids: true - hard_wrap: false - syntax_highlighter: rouge + input: GFM + hard_wrap: false + auto_ids: true + footnote_nr: 1 + entity_output: as_char + toc_levels: 1..6 + smart_quotes: lsquo,rsquo,ldquo,rdquo + enable_coderay: false -# filter used to process markdown. note that kramdown differs from github-flavored markdown in some subtle ways +# Sass/SCSS +sass: + sass_dir: _sass + style: compressed # http://sass-lang.com/documentation/file.SASS_REFERENCE.html#output_style + + +# Outputting +permalink: /:categories/:title/ +paginate: 5 # amount of posts to show +paginate_path: /page:num/ +timezone: # http://en.wikipedia.org/wiki/List_of_tz_database_time_zones + + +# Plugins (previously gems:) +plugins: + - jekyll-paginate + - jekyll-sitemap + - jekyll-gist + - jekyll-feed + - jemoji + +# mimic GitHub Pages with --safe +whitelist: + - jekyll-paginate + - jekyll-sitemap + - jekyll-gist + - jekyll-feed + - jemoji + + +# Archives +# Type +# - GitHub Pages compatible archive pages built with Liquid ~> type: liquid (default) +# - Jekyll Archives plugin archive pages ~> type: jekyll-archives +# Path (examples) +# - Archive page should exist at path when using Liquid method or you can +# expect broken links (especially with breadcrumbs enabled) +# - /tags/my-awesome-tag/index.html ~> path: /tags/ +# - path: /categories/ +# - path: / +# category_archive: +# type: liquid +# path: /categories/ +# tag_archive: +# type: liquid +# path: /tags/ +# https://github.com/jekyll/jekyll-archives +# jekyll-archives: +# enabled: +# - categories +# - tags +# layouts: +# category: archive-taxonomy +# tag: archive-taxonomy +# permalinks: +# category: /categories/:name/ +# tag: /tags/:name/ + + +# HTML Compression +# - http://jch.penibelst.de/ +compress_html: + clippings: all + ignore: + envs: development + +# Collections collections: - tooltips: - output: false -# collections are declared here. this renders the content in _tooltips and processes it, but doesn't output it as actual files in the output unless you change output to true + docs: + output: true + permalink: /:collection/:path/ +# Defaults defaults: - - - scope: + # _docs + - scope: path: "" - type: "pages" + type: docs values: - layout: "page" - comments: true - search: true - sidebar: talk_sidebar - - - scope: - path: "" - type: "tooltips" - values: - layout: "page" - comments: true - search: true - tooltip: true - - - - scope: - path: "" - type: "posts" - values: - layout: "post" - comments: true - search: true - sidebar: home_sidebar - -# these are defaults used for the frontmatter for these file types - -sidebars: -- talk_sidebar - -description: "Documentation and guides for Coral Talk." -# the description is used in the feed.xml file - -# needed for sitemap.xml file only -url: https://coralproject.github.io/talk/ + layout: single + read_time: false + author_profile: false + share: false + comments: false + sidebar: + nav: "docs" diff --git a/docs/_data/alerts.yml b/docs/_data/alerts.yml deleted file mode 100644 index 157e1622b..000000000 --- a/docs/_data/alerts.yml +++ /dev/null @@ -1,15 +0,0 @@ -tip: '