diff --git a/client/coral-admin/src/actions/install.js b/client/coral-admin/src/actions/install.js
index c1d05d253..9fc308d2f 100644
--- a/client/coral-admin/src/actions/install.js
+++ b/client/coral-admin/src/actions/install.js
@@ -75,8 +75,7 @@ export const submitUser = () => (dispatch, getState) => {
dispatch(installRequest());
coralApi('/setup', {method: 'POST', body: data})
.then(result => {
- console.log(result);
- dispatch(installSuccess());
+ dispatch(installSuccess(result));
dispatch(nextStep());
})
.catch(error => {
diff --git a/client/coral-admin/src/containers/Configure/CommentSettings.js b/client/coral-admin/src/containers/Configure/CommentSettings.js
index 5a14cf565..90057c5fe 100644
--- a/client/coral-admin/src/containers/Configure/CommentSettings.js
+++ b/client/coral-admin/src/containers/Configure/CommentSettings.js
@@ -52,7 +52,6 @@ const updateClosedMessage = (updateSettings) => (event) => {
};
const updateCustomCssUrl = (updateSettings) => (event) => {
- console.log('updateCustomCssUrl', event.target.value);
const customCssUrl = event.target.value;
updateSettings({customCssUrl});
};
diff --git a/client/coral-admin/src/containers/ModerationQueue/ModerationContainer.js b/client/coral-admin/src/containers/ModerationQueue/ModerationContainer.js
index 9c68d0728..a7d7110ae 100644
--- a/client/coral-admin/src/containers/ModerationQueue/ModerationContainer.js
+++ b/client/coral-admin/src/containers/ModerationQueue/ModerationContainer.js
@@ -54,7 +54,6 @@ class ModerationContainer extends Component {
}
if (data.error) {
- console.log(data);
return
Error
;
}
diff --git a/client/coral-framework/actions/auth.js b/client/coral-framework/actions/auth.js
index 4a12245eb..418acc5bb 100644
--- a/client/coral-framework/actions/auth.js
+++ b/client/coral-framework/actions/auth.js
@@ -192,9 +192,8 @@ export const requestConfirmEmail = (email, redirectUri) => dispatch => {
dispatch(verifyEmailSuccess());
})
.catch(err => {
- console.log('failed to send email verification', err);
// email might have already been verifyed
- dispatch(verifyEmailFailure());
+ dispatch(verifyEmailFailure(err));
});
};
diff --git a/client/coral-plugin-commentbox/CommentBox.js b/client/coral-plugin-commentbox/CommentBox.js
index 3d895df07..004f294b2 100644
--- a/client/coral-plugin-commentbox/CommentBox.js
+++ b/client/coral-plugin-commentbox/CommentBox.js
@@ -110,7 +110,6 @@ class CommentBox extends Component {
cStyle='darkGrey'
className={`${name}-cancel-button`}
onClick={() => {
- console.log('cancel button in comment box');
cancelButtonClicked('');
}}>
{lang.t('cancel')}
diff --git a/client/coral-plugin-stream/RileysAwesomeCommentBox.js b/client/coral-plugin-stream/RileysAwesomeCommentBox.js
deleted file mode 100644
index 73fa6407d..000000000
--- a/client/coral-plugin-stream/RileysAwesomeCommentBox.js
+++ /dev/null
@@ -1,58 +0,0 @@
-import React, {Component} from 'react';
-import {graphql} from 'react-apollo';
-import gql from 'graphql-tag';
-
-export class RileysAwesomeCommentBox extends Component {
-
- postComment() {
- console.log(this.props);
- console.log('postComment', this.props.asset_id);
- this.props.mutate({
- variables: {
- asset_id: this.props.asset_id,
- body: this.textarea.value,
- parent_id: null
- }
- }).then(({data}) => {
- console.log('it workt');
- console.log(data);
- });
- }
-
- render() {
- return
-
-
-
;
- }
-}
-
-const postComment = gql`
- fragment commentView on Comment {
- id
- body
- user {
- name: username
- }
- actions {
- type: action_type
- count
- current: current_user {
- id
- created_at
- }
- }
- }
-
- mutation CreateComment ($asset_id: ID!, $parent_id: ID, $body: String!) {
- createComment(asset_id:$asset_id, parent_id:$parent_id, body:$body) {
- ...commentView
- }
- }
-`;
-
-const RileysAwesomeCommentBoxWithData = graphql(
- postComment
-)(RileysAwesomeCommentBox);
-
-export default RileysAwesomeCommentBoxWithData;
diff --git a/client/coral-plugin-stream/Stream.js b/client/coral-plugin-stream/Stream.js
deleted file mode 100644
index 72e03d4ae..000000000
--- a/client/coral-plugin-stream/Stream.js
+++ /dev/null
@@ -1,100 +0,0 @@
-import React, {Component} from 'react';
-import {graphql} from 'react-apollo';
-import gql from 'graphql-tag';
-import {fetchSignIn} from 'coral-framework/actions/auth';
-import RileysAwesomeCommentBox from 'coral-plugin-stream/RileysAwesomeCommentBox';
-
-const assetID = '6187a94b-0b6d-4a96-ac6b-62b529cd8410';
-
-// MyComponent is a "presentational" or apollo-unaware component,
-// It could be a simple React class:
-class Stream extends Component {
-
- constructor(props) {
- super(props);
- }
-
- logMeIn() {
- fetchSignIn({email: 'your@example.com', password: 'dfasidfaisdufoiausdfoiuaspdoifas'})(() => {});
- }
-
- render() {
- const {data} = this.props;
- return
-
- {
- data.loading
- ? 'loading!'
- :
-
-
Asset ID: {data.asset.id}
-
- {
- data.asset.comments.map(comment => {
- return -
- {comment.body} [{comment.id}]
-
- {
- comment.replies.map(reply => {
- return - {reply.body}
;
- })
- }
-
- ;
- })
- }
-
-
- }
-
;
- }
-}
-
-// Initialize GraphQL queries or mutations with the gql tag
-const StreamQuery = gql`fragment commentView on Comment {
- id
- body
- user {
- name: username
- }
- tags {
- name
- }
- actions {
- type: action_type
- count
- current: current_user {
- id
- created_at
- }
- }
-}
-
-query AssetQuery($asset_id: ID!) {
- asset(id: $asset_id) {
- id
- title
- url
- commentCount
- comments {
- ...commentView
- replies {
- ...commentView
- }
- }
- }
-}`;
-
-// We then can use `graphql` to pass the query results returned by MyQuery
-// to MyComponent as a prop (and update them as the results change)
-const StreamWithData = graphql(
- StreamQuery, {
- options: {
- variables: {
- asset_id: assetID
- }
- }
- }
-)(Stream);
-
-export default StreamWithData;
diff --git a/client/coral-settings/components/NotLoggedIn.js b/client/coral-settings/components/NotLoggedIn.js
index 2e2b64181..acd3ae7e6 100644
--- a/client/coral-settings/components/NotLoggedIn.js
+++ b/client/coral-settings/components/NotLoggedIn.js
@@ -10,7 +10,6 @@ export default ({showSignInDialog}) => (