mirror of
https://github.com/prymitive/karma
synced 2026-05-09 03:36:44 +00:00
* switch to new Sentry client lib * Add ErrorBoundary as a wrapper around App to capture errors and display exception page with auto refresh * rename all instances of Raven to Sentry
25 lines
739 B
JavaScript
25 lines
739 B
JavaScript
import React from "react";
|
|
import ReactDOM from "react-dom";
|
|
|
|
import Moment from "react-moment";
|
|
|
|
import { SettingsElement, SetupSentry, ParseDefaultFilters } from "./AppBoot";
|
|
import { App } from "./App";
|
|
|
|
const settingsElement = SettingsElement();
|
|
|
|
SetupSentry(settingsElement);
|
|
|
|
// global timer for updating timestamps to human readable offsets
|
|
// this needs to be run before any <Moment/> instance
|
|
// https://www.npmjs.com/package/react-moment#pooled-timer
|
|
Moment.startPooledTimer();
|
|
|
|
const defaultFilters = ParseDefaultFilters(settingsElement);
|
|
|
|
// https://wetainment.com/testing-indexjs/
|
|
export default ReactDOM.render(
|
|
<App defaultFilters={defaultFilters} />,
|
|
document.getElementById("root") || document.createElement("div")
|
|
);
|