mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
Prettified Code!
This commit is contained in:
1 parent
dce7528c7a
commit
3b42511c10
2 files changed
+20
-22
No files matched your search
@@ -78,10 +78,9 @@ The development environment assumes you have the following prerequisites:
|
|||||||
- If iteration on UI changes run the project with `yarn watch` which will monitor the JavaScript project and rebuild when you make code changes and then `ensure new-phone-who-dis` after making your change
|
- If iteration on UI changes run the project with `yarn watch` which will monitor the JavaScript project and rebuild when you make code changes and then `ensure new-phone-who-dis` after making your change
|
||||||
- Avoid commiting `index.html` as the development version overrides the production version
|
- Avoid commiting `index.html` as the development version overrides the production version
|
||||||
|
|
||||||
|
|
||||||
#### Important Note
|
#### Important Note
|
||||||
|
|
||||||
By installing NPWD you agree to the use of the following diagnostic package, Sentry, (in use within the React portion of NPWD), that automatically
|
By installing NPWD you agree to the use of the following diagnostic package, Sentry, (in use within the React portion of NPWD), that automatically
|
||||||
uploads relevant sesssion details and stack traces whenever an exception is thrown. We use these metrics to further
|
uploads relevant sesssion details and stack traces whenever an exception is thrown. We use these metrics to further
|
||||||
improve the quality of the phone. To explicitly disable this (we urge you not to as its incredibly useful metrics for us).
|
improve the quality of the phone. To explicitly disable this (we urge you not to as its incredibly useful metrics for us).
|
||||||
Please change the `SentryErrorMetrics` setting to `false` in `phone/config/default.json` and rebuild the phone.
|
Please change the `SentryErrorMetrics` setting to `false` in `phone/config/default.json` and rebuild the phone.
|
||||||
+17
-18
@@ -1,28 +1,27 @@
|
|||||||
import "@babel/polyfill";
|
import '@babel/polyfill';
|
||||||
import React from "react";
|
import React from 'react';
|
||||||
import ReactDOM from "react-dom";
|
import ReactDOM from 'react-dom';
|
||||||
import { HashRouter } from "react-router-dom";
|
import { HashRouter } from 'react-router-dom';
|
||||||
import { RecoilRoot } from "recoil";
|
import { RecoilRoot } from 'recoil';
|
||||||
import * as Sentry from "@sentry/react";
|
import * as Sentry from '@sentry/react';
|
||||||
import { Integrations } from "@sentry/tracing";
|
import { Integrations } from '@sentry/tracing';
|
||||||
import "./main.css";
|
import './main.css';
|
||||||
import Phone from "./Phone";
|
import Phone from './Phone';
|
||||||
import TwitterNotification from "./apps/twitter/components/notification/TwitterNotification";
|
import TwitterNotification from './apps/twitter/components/notification/TwitterNotification';
|
||||||
import { BankNotification } from "./apps/bank/components/notification/BankNotification";
|
import { BankNotification } from './apps/bank/components/notification/BankNotification';
|
||||||
import PhoneConfig from './config/default.json'
|
import PhoneConfig from './config/default.json';
|
||||||
|
|
||||||
// Enable Sentry when config setting is true
|
// Enable Sentry when config setting is true
|
||||||
if (PhoneConfig.SentryErrorMetrics) {
|
if (PhoneConfig.SentryErrorMetrics) {
|
||||||
Sentry.init({
|
Sentry.init({
|
||||||
dsn: "https://[email protected]/5581619",
|
dsn:
|
||||||
|
'https://[email protected]/5581619',
|
||||||
autoSessionTracking: true,
|
autoSessionTracking: true,
|
||||||
integrations: [
|
integrations: [new Integrations.BrowserTracing()],
|
||||||
new Integrations.BrowserTracing(),
|
|
||||||
],
|
|
||||||
// We recommend adjusting this value in production, or using tracesSampler
|
// We recommend adjusting this value in production, or using tracesSampler
|
||||||
// for finer control
|
// for finer control
|
||||||
tracesSampleRate: 1.0,
|
tracesSampleRate: 1.0,
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
@@ -33,5 +32,5 @@ ReactDOM.render(
|
|||||||
<Phone />
|
<Phone />
|
||||||
</RecoilRoot>
|
</RecoilRoot>
|
||||||
</HashRouter>,
|
</HashRouter>,
|
||||||
document.getElementById("root")
|
document.getElementById('root')
|
||||||
);
|
);
|
||||||
Reference in new issue
Block a user