This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Raven.config(dsn, { | |
| dataCallback(data) { | |
| const normalize = filename => filename.split('/www/', 2)[1] | |
| data.exception.values[0].stacktrace.frames.forEach(frame => { | |
| frame.filename = normalize(frame.filename) | |
| }) | |
| data.culprit = data.exception.values[0].stacktrace.frames[0].filename |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export function ComponentWithMixins( ...mixins) { | |
| class MixedComponent extends React.Component { } | |
| for( let mixin of mixins) { | |
| // TODO: Would need to handle mixin collisions... | |
| for( let name of Object.keys( mixin)) { | |
| MixedComponent.prototype[ name]= mixin[ name] | |
| } | |
| } |