diff --git a/AGENTS.md b/AGENTS.md index 00770bc..80a5e67 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -94,7 +94,6 @@ assets/ │ ├── utils/ # Shared utilities │ ├── profile.jsx # Profile page entry │ ├── passkey.jsx # Passkey management entry -│ └── contact.jsx # Contact form entry ├── css/ │ └── homepage/ # SCSS partials (imported by style.homepage.scss) └── fonts/ diff --git a/assets/js/components/ContactForm.jsx b/assets/js/components/ContactForm.jsx deleted file mode 100644 index befb346..0000000 --- a/assets/js/components/ContactForm.jsx +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file is part of the SplendidBear Websites' projects. - * - * Copyright (c) 2026 @ www.splendidbear.org - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -const ContactForm = () => null; - -export default ContactForm; \ No newline at end of file diff --git a/assets/js/components/index.js b/assets/js/components/index.js index be912b1..566bfe0 100644 --- a/assets/js/components/index.js +++ b/assets/js/components/index.js @@ -9,7 +9,6 @@ export { AvatarUpload } from './AvatarUpload'; export { BattleDialog } from './BattleDialog'; -export { default as ContactForm } from './ContactForm'; export { default as PasskeyLogin } from './PasskeyLogin'; export { default as PasskeyManager } from './PasskeyManager'; export { default as ProfileCharts } from './ProfileCharts'; diff --git a/assets/js/contact.jsx b/assets/js/contact.jsx deleted file mode 100644 index e864dcd..0000000 --- a/assets/js/contact.jsx +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file is part of the SplendidBear Websites' projects. - * - * Copyright (c) 2026 @ www.splendidbear.org - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -import React from 'react'; -import { createRoot } from 'react-dom/client'; -import { ContactForm } from '@global-components'; - -const wrapper = document.getElementById('contact-form-wrapper'); - -if (wrapper) { - const siteKey = wrapper.dataset.siteKey; - const recaptchaFieldId = wrapper.dataset.recaptchaFieldId; - - if (siteKey && recaptchaFieldId) { - createRoot(wrapper).render( - - ); - } else { - console.error('ContactForm: Missing siteKey or recaptchaFieldId in data attributes'); - } -} diff --git a/vite.config.js b/vite.config.js index 7f84c1f..4e7c42f 100644 --- a/vite.config.js +++ b/vite.config.js @@ -27,7 +27,6 @@ export default defineConfig({ mineseeker: './assets/js/app.jsx', passkey: './assets/js/passkey.jsx', profile: './assets/js/profile.jsx', - contact: './assets/js/contact.jsx', cap: './assets/js/cap.js', mineseekerStyle: './assets/css/style.mineseeker.scss', homeStyle: './assets/css/style.layout.scss',