-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Console #13
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
Console #13
Conversation
therewasaguy
commented
Jul 18, 2016
- a basic, non-interactive Console component
- previewFrame injects a script into the iframe that uses postMessage to send errors and console messages. It catches referenceErrors with window.onError. It doesn't catch syntax errors (seems like these are already caught with linting?)
| } | ||
|
|
||
| // assign styles to different types of console messages | ||
| .log { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for this project I'm using BEM naming convention, so these class names should be .preview-console__log, .preview-console__warn, and .preview-console__error. Let's also make these colors the same as the linting error colors, #ffbe05 and #ff5f52. all of the other styling is fine for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good! I'll fix that
|
updated with BEM style |
…attempt pr05 Typescript Migration #13: Migrate the User Model (& API Key schema)