Server IP : 184.154.167.98 / Your IP : 13.58.61.176 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/puertode/public_html/fotografico/apps/logreader/js/Components/ |
Upload File : |
import {Component} from 'react'; import {ExceptionParser} from '../ExceptionParser'; import {Exception} from './Exception'; import {BackgroundException} from './BackgroundException'; export class LogEntry extends Component { constructor () { super(); this.exceptionParser = new ExceptionParser(); } render () { if (this.isBackgroundJobException()) { return this.renderBackgroundException(); }else if (this.isException()) { return this.renderException(); } else { return this.renderBasic(); } } renderBasic () { return ( <span>{this.props.message}</span> ); } renderException () { var exceptionData = this.exceptionParser.parse(this.props.message); return ( <Exception {...exceptionData}/> ); } renderBackgroundException () { var exceptionData = this.exceptionParser.parse(this.props.message); return ( <BackgroundException {...exceptionData}/> ); } isBackgroundJobException () { return this.exceptionParser.isBackgroundJobException(this.props.message); } isException () { return this.exceptionParser.isException(this.props.message); } }