Remove dead default-export wrapper from ZyphosHeroScript (REC-123)
The default-exported QuartzComponent/QuartzComponentConstructor wrapper
at the bottom of site/quartz/components/ZyphosHeroScript.tsx had no
consumer: nothing default-imports ZyphosHeroScript or calls it as a
constructor anywhere in this repo, and no sibling Quartz-family repo
(GameCult-Quartz, Delvehold, Kalsa, AetheriaLore, gamecult-site)
references it either.
Removed:
- the default export wrapper (QuartzComponent returning a <script> tag)
- the now-unused QuartzComponent/QuartzComponentConstructor type imports
Preserved untouched:
- the named `zyphosHeroScript` export (the raw JS string), which is the
only thing actually consumed, via a named import in
site/quartz.config.ts:5
Verification:
- `git grep -n -I -E 'import[[:space:]]+[^{].*ZyphosHeroScript|ZyphosHeroScript[[:space:]]*\(' -- ':!site/quartz/components/ZyphosHeroScript.tsx'` -> 0 hits
- `rg -n "ZyphosHeroScript"` repo-wide (untracked-inclusive) -> only the
edited file itself
- `rg -n "ZyphosHeroScript"` in GameCult-Quartz, Delvehold, Kalsa,
AetheriaLore, gamecult-site -> 0 hits in each
- quartz.config.ts:5 named import of `zyphosHeroScript` left untouched
No typecheck ran: this repo ships only a partial Quartz components
overlay (site/quartz/components/*), with no package.json or
tsconfig.json anywhere in the tree, so there is no scoped tsc target
without pulling in the full Quartz engine from elsewhere.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
9d30986950
commit
a56a0406d4
1 changed files with 0 additions and 10 deletions
|
|
@ -1,5 +1,3 @@
|
|||
import { QuartzComponent, QuartzComponentConstructor } from "./types"
|
||||
|
||||
export const zyphosHeroScript = String.raw`
|
||||
function bootZyphosHero() {
|
||||
const home = document.querySelector("body[data-slug='index'] article")
|
||||
|
|
@ -108,11 +106,3 @@ document.addEventListener("nav", bootZyphosHero)
|
|||
document.addEventListener("DOMContentLoaded", bootZyphosHero)
|
||||
bootZyphosHero()
|
||||
`
|
||||
|
||||
export default (() => {
|
||||
const ZyphosHeroScript: QuartzComponent = () => (
|
||||
<script dangerouslySetInnerHTML={{ __html: zyphosHeroScript }} />
|
||||
)
|
||||
|
||||
return ZyphosHeroScript
|
||||
}) satisfies QuartzComponentConstructor
|
||||
|
|
|
|||
Loading…
Reference in a new issue