2024-10-17 05:13:47 -05:00
|
|
|
import { BrowserAgent } from '@newrelic/browser-agent/loaders/browser-agent';
|
2024-05-13 03:29:40 -05:00
|
|
|
import 'node_modules/@create-figma-plugin/ui/lib/css/base.css';
|
2024-04-09 02:52:51 -05:00
|
|
|
import { StrictMode } from 'react';
|
2024-04-08 04:43:30 -05:00
|
|
|
import { createRoot } from 'react-dom/client';
|
2022-10-11 08:55:08 -05:00
|
|
|
|
2024-05-03 06:43:07 -05:00
|
|
|
import { App } from './App';
|
2024-04-12 11:52:19 -05:00
|
|
|
import './main.css';
|
2024-05-13 03:08:26 -05:00
|
|
|
import './reset.css';
|
2022-10-11 08:55:08 -05:00
|
|
|
|
2024-10-17 05:13:47 -05:00
|
|
|
const options = {
|
|
|
|
init: {
|
|
|
|
distributed_tracing: { enabled: false },
|
2024-10-17 08:11:05 -05:00
|
|
|
privacy: { cookies_enabled: false },
|
2024-10-17 06:12:42 -05:00
|
|
|
ajax: { deny_list: ['bam.eu01.nr-data.net'] }
|
2024-10-17 05:13:47 -05:00
|
|
|
},
|
|
|
|
loader_config: {
|
|
|
|
accountID: import.meta.env.VITE_ACCOUNT_ID,
|
|
|
|
trustKey: import.meta.env.VITE_TRUST_KEY,
|
|
|
|
agentID: import.meta.env.VITE_AGENT_ID,
|
|
|
|
licenseKey: import.meta.env.VITE_LICENSE_KEY,
|
|
|
|
applicationID: import.meta.env.VITE_APPLICATION_ID
|
|
|
|
},
|
|
|
|
info: {
|
2024-10-17 06:12:42 -05:00
|
|
|
beacon: 'bam.eu01.nr-data.net',
|
|
|
|
errorBeacon: 'bam.eu01.nr-data.net',
|
2024-10-17 05:13:47 -05:00
|
|
|
licenseKey: import.meta.env.VITE_LICENSE_KEY,
|
|
|
|
applicationID: import.meta.env.VITE_APPLICATION_ID,
|
|
|
|
sa: 1
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
new BrowserAgent(options);
|
|
|
|
|
|
|
|
declare global {
|
|
|
|
interface Window {
|
|
|
|
newrelic: BrowserAgent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
window.newrelic.addPageAction('plugin-loaded');
|
|
|
|
|
2024-04-12 11:52:19 -05:00
|
|
|
createRoot(document.getElementById('root') as HTMLElement).render(
|
2024-04-09 02:52:51 -05:00
|
|
|
<StrictMode>
|
2024-05-03 06:43:07 -05:00
|
|
|
<App />
|
2024-04-09 02:52:51 -05:00
|
|
|
</StrictMode>
|
2022-10-11 08:55:08 -05:00
|
|
|
);
|