0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2024-12-22 21:53:27 -05:00
penpot-exporter-figma-plugin/ui-src/main.tsx

47 lines
1.2 KiB
TypeScript
Raw Normal View History

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';
import { createRoot } from 'react-dom/client';
2022-10-11 08:55:08 -05:00
import { App } from './App';
2024-04-12 11:52:19 -05:00
import './main.css';
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>
<App />
2024-04-09 02:52:51 -05:00
</StrictMode>
2022-10-11 08:55:08 -05:00
);