Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add bare bones coral talk commenting #253

Merged
merged 1 commit into from
Jul 6, 2018
Merged

Conversation

dankins
Copy link
Member

@dankins dankins commented Jul 5, 2018

No description provided.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 4980

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 87.474%

Totals Coverage Status
Change from base Build 4967: 0.0%
Covered Lines: 580
Relevant Lines: 624

💛 - Coveralls

}

public async componentDidMount(): Promise<void> {
const discourseUrl = process.env.REACT_APP_DISCOURSE_URL;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wonder how this is working

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I followed the usage specified here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neet. I didn't know create react app could do that

import { ViewModule } from "../utility/ViewModules";

class ListingDiscourse extends React.Component {
constructor(props: {}) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

constuctor isn't used

tag.async = true;
tag.src = discourseUrl + "/static/embed.js";

const handleCallback = () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how does this get cleaned up, how does it load correct discussion

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It loads it in an iframe and creates a discussion per URL

@dankins dankins merged commit b1f1ca5 into master Jul 6, 2018
@dankins dankins deleted the dankins/ch1133/coral-talk branch July 27, 2018 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants