From c56657bcd63b1d7e0f696ade6b9d07c8b71a37a2 Mon Sep 17 00:00:00 2001 From: Marc LeBlanc <7050295+marcleblanc2@users.noreply.github.com> Date: Wed, 16 Sep 2026 21:22:50 -0600 Subject: [PATCH 1/2] Remove components nothing imports and the unused draft filter PreCode.tsx was empty; ResourceEstimator.tsx was an older copy of resource-estimator/ResourceEstimator.tsx, which MdxComponents imports; DemoLayout, TopBanner, Globe and BugIcon have no importers. allCoreContent filtered on a `draft` frontmatter field that contentlayer.config.ts does not declare and no page sets, so the production and development branches did the same thing. Amp-Thread-ID: https://ampcode.com/threads/T-01a0ad56-bd79-73ce-bc8e-a5405d0c11f2 Co-authored-by: Amp --- src/components/DemoLayout.tsx | 74 ------------------- src/components/PreCode.tsx | 0 src/components/ResourceEstimator.tsx | 106 --------------------------- src/components/TopBanner.tsx | 89 ---------------------- src/components/icons/BugIcon.tsx | 28 ------- src/components/icons/Globe.tsx | 20 ----- src/utils/contentlayer.ts | 9 +-- 7 files changed, 1 insertion(+), 325 deletions(-) delete mode 100644 src/components/DemoLayout.tsx delete mode 100644 src/components/PreCode.tsx delete mode 100644 src/components/ResourceEstimator.tsx delete mode 100644 src/components/TopBanner.tsx delete mode 100644 src/components/icons/BugIcon.tsx delete mode 100644 src/components/icons/Globe.tsx diff --git a/src/components/DemoLayout.tsx b/src/components/DemoLayout.tsx deleted file mode 100644 index 54ff56523..000000000 --- a/src/components/DemoLayout.tsx +++ /dev/null @@ -1,74 +0,0 @@ -import {useState} from 'react'; - -const tabs = [ - 'Overview', - 'Assistants', - 'Text-to-Image', - 'Text-to-Speech', - 'Plugins', - 'Multi-Models' -]; - -const tabVideos = { - Overview: 'https://www.youtube.com/embed/ZK-rNEhJIDs?autoplay=1&mute=1', - Assistants: 'https://www.youtube.com/embed/ZK-rNEhJIDs?autoplay=1&mute=1', - 'Text-to-Image': - 'https://www.youtube.com/embed/ZK-rNEhJIDs?autoplay=1&mute=1', - 'Text-to-Speech': - 'https://www.youtube.com/embed/ZK-rNEhJIDs?autoplay=1&mute=1', - Plugins: 'https://www.youtube.com/embed/ZK-rNEhJIDs?autoplay=1&mute=1', - 'Multi-Models': - 'https://www.youtube.com/embed/ZK-rNEhJIDs?autoplay=1&mute=1' -}; - -type TabKeys = keyof typeof tabVideos; - -export function DemoLayout() { - const [activeTab, setActiveTab] = useState('Overview'); - - return ( -
- {/* tabs */} -
- {tabs.map((tab, index) => ( - - ))} -
-
-
-
-