Skip to content

Commit

Permalink
fix(site): type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cor committed Sep 10, 2024
1 parent a848c00 commit a732eb3
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 7 deletions.
14 changes: 13 additions & 1 deletion dictionary.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

0xbonlulu
0xc0dejug
0xkaiserkarel
Expand All @@ -17,6 +16,7 @@ Beriker
Bitfield
Bitvector
Bkpvid
Blockchange
Boiron
Boneh
Borsh
Expand Down Expand Up @@ -314,16 +314,19 @@ bitvec
bitvector
blabla
blcok
blockchange
blockid
blockquote
blockscout
blockspace
blocksync
blocktime
blst
boneh
bonlulu
bools
bootnode
borderless
borsh
brainer
builtins
Expand Down Expand Up @@ -444,6 +447,7 @@ debouncer
deferredack
deferredackkeeper
deferredacktypes
defi
delegators
dels
denoms
Expand Down Expand Up @@ -485,6 +489,7 @@ elit
endianness
entrypoints
enumorph
ero
errorsmod
errortype
esac
Expand All @@ -495,6 +500,7 @@ ethcall
etherbase
ethevent
ethkey
evenodd
evidencekeeper
evidencetypes
evmincosmos
Expand Down Expand Up @@ -577,6 +583,7 @@ groth
groupkeeper
groupmodule
grpclog
gumi
hackerman
hasher
hasown
Expand Down Expand Up @@ -723,6 +730,8 @@ lightclient
lightclients
lightheader
linea
linecap
linejoin
linkmode
livenesses
lmfao
Expand All @@ -733,6 +742,7 @@ lockb
logformat
logline
logtostderr
longhash
lspec
lucide
mapstructure
Expand Down Expand Up @@ -811,11 +821,13 @@ nois
nolint
nolus
nolyfill
nomos
nonexist
noninclusion
noopener
noreferrer
notrunc
nowledge
nowrap
nromalized
nums
Expand Down
2 changes: 1 addition & 1 deletion site/src/components/ContainedSection.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
interface Props {
className: string
className?: string
}
const { className } = Astro.props
Expand Down
2 changes: 1 addition & 1 deletion site/src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const menuItems = [
overlay.classList.add('show')
overlay.style.visibility = 'visible'
} else {
overlay.classList.remove('show')
overlay.classList.remove('show')
overlay.style.visibility = 'hidden'
}
})
Expand Down
2 changes: 1 addition & 1 deletion site/src/components/sections/DeepDiveSection.astro
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ const diver = [
</div>
</div>
<div class="object-contain h-auto w-full max-w-[386px]">
<Spline model={cube} loading="eager"/>
<Spline model={"https://prod.spline.design/I0VWm3Y5RdptPedN/scene.splinecode"} loading="eager"/>
</div>
</div>
</div>
Expand Down
7 changes: 5 additions & 2 deletions site/src/components/sections/landing/MarqueeSection.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
import "../../../styles/marquee.css"
import ContainedSection from "../../ContainedSection.astro"
import LightedTitle from "../../typography/LightedTitle.astro"
import { type NamedImage } from "#/lib/types"
interface Props {
title: string
title: string,
data: Array<NamedImage>,
reverse: boolean
}
const { title, data, reverse } = Astro.props
Expand All @@ -22,7 +25,7 @@ const { title, data, reverse } = Astro.props
<div class="marquee__group">
{
data.map(item => (
<img src={item.logo.src} alt={item.name}></img>
<img src={item.logo.src} alt={item.name}></img>
))
}
</div>
Expand Down
7 changes: 7 additions & 0 deletions site/src/lib/types.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
import type { EntryFieldTypes } from "contentful"
import { type ImageMetadata } from 'astro';

export type MaybePromise<T> = T | Promise<T>

export type DeepPartial<T> = {
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P]
}

export type NamedImage = {
name: string,
url: string,
logo: ImageMetadata
}

export interface BlogPost {
contentTypeId: "blog"
fields: {
Expand Down
2 changes: 1 addition & 1 deletion site/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const prerender = false
Astro.response.headers.set("cache-control", "public, max-age=0, must-revalidate")
// The CDN should cache for a year, but revalidate if the cache tag changes
Astro.response.headers.set("netlify-cdn-cache-control", "s-maxag be=31536000")
Astro.response.headers.set("netlify-cdn-cache-control", "s-max-age=31536000")
// Tag the page with the content type
Astro.response.headers.set("netlify-cache-tag", "blog")
Expand Down

0 comments on commit a732eb3

Please sign in to comment.