import React from 'react'; import { Modal } from '@douyinfe/semi-ui'; import Logo from '../logo/Logo.jsx'; import { xhrPost } from '../../services/xhr.js'; import './TrackingModal.less'; import inDevelopment from '../../services/developmentMode.js'; const saveResponse = async (analyticsEnabled) => { await xhrPost('/api/admin/generalSettings', { analyticsEnabled, }); }; export default function TrackingModal() { if (inDevelopment()) { return null; } return ( { await saveResponse(true); location.reload(); }} onCancel={async () => { await saveResponse(false); location.reload(); }} maskClosable={false} closable={false} okText="Yes! I want to help" cancelText="No, thanks" >

Hey 👋

Fed up with popups? Yeah, me too. But this one’s important, and I promise it will only appear once ;)

Fredy is completely free (and will always remain free). If you’d like, you can support me by donating through my GitHub, but there’s absolutely no obligation to do so.

However, it would be a huge help if you’d allow me to collect some analytical data. Wait, before you click "no", let me explain. If you agree, Fredy will send a ping once every 6 hours to my internal tracking project. (Will be open-sourced soon)

The data includes: names of active adapters/providers, OS, architecture, Node version, and language. The information is entirely anonymous and helps me understand which adapters/providers are most frequently used.

Thanks🤘

); }