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 },
|
|
|
|
privacy: { cookies_enabled: true },
|
|
|
|
ajax: { deny_list: [import.meta.env.VITE_BEACON] }
|
|
|
|
},
|
|
|
|
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: {
|
|
|
|
beacon: import.meta.env.VITE_BEACON,
|
|
|
|
errorBeacon: import.meta.env.VITE_ERROR_BEACON,
|
|
|
|
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
|
|
|
);
|