Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

changedFiles="$(git diff --name-only --cached)"
npm run spell-check -- --files ${changedFiles} "!**/package-lock.json" "!**/*.svg" "!**/*.png" "!**/*.jppg" "!**/*.ico"
npm run clean-dictionary

changedFiles="$(git diff --name-only --cached | grep -E '\.(html|txt|json|ts|tsx)$' | grep -E '^(public/|src/)' || true)"
if [ -n "$changedFiles" ]; then
npm run spell-check -- --files ${changedFiles} "!**/package-lock.json" "!**/*.svg" "!**/*.png" "!**/*.jppg" "!**/*.ico"
fi

lintFiles="$(git diff --name-only --cached | grep -E '\.(ts|tsx)$' | grep -E '^src/' || true)"
if [ -n "$lintFiles" ]; then
npx eslint ${lintFiles}
fi
7 changes: 7 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Agents

## Merging Pull Requests

- This repository only allows **rebase merges** (merge commits and squash merges are disabled).
- Branch protection rules require using the `--admin` flag to merge: `gh pr merge <number> --rebase --admin`
- The **Cloudflare Pages** check is the build/deploy check. If it fails, the PR would break the website and should **not** be merged.
98 changes: 11 additions & 87 deletions dictionary.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
adopter&apos
Ai
AnimatedText
args
argTypes
arrowLeft
arrowPointer
ArrowPointer
Expand All @@ -19,17 +17,11 @@ card3
CardImage
CardsWrapper
centeredSlides
ChangeEvent
charset
ci
className
clearInterval
clior
codebase
collateralization
ComponentMeta
ComponentStory
config
const
ContainerProps
ContentWrapper
Expand All @@ -42,7 +34,6 @@ descriptionText
detectMobile
diagramIcon
DOCTYPE
DS_Store
effect-coverflow
EffectCoverflow
eslint-disable
Expand All @@ -59,21 +50,16 @@ FidaMarketplaceCardProps
fidaMarketplaceTexts
fidaOverlay
Fida's
firefox
fontFamily
fontWeight
FooterWrapper
formattedText
gh-pages
gradientLaptop
gradientLaptopMobile
gradientPhones
grey
greyWhite
h1
handleChange
handleDecrement
handleIncrement
HeroCard
hideBackdrop
highlightIndex
Expand Down Expand Up @@ -124,8 +110,6 @@ isScreen
isSmallerCard
isTablet
iterableItems
javascript
javascript:openPaymentWindow
JoinNetwork
lang
laptopCards
Expand Down Expand Up @@ -165,7 +149,6 @@ minWidth640
MissionCard
MissionCardProps
missionCards
mkdir
mobileCards
MobileHeader
mobilePadding
Expand All @@ -174,12 +157,9 @@ MobilePhaseItemProps
modalToggle
motionConfig
MoveIn
moz-appearance
n2022
newDirection
newHeight
newsletterTexts
newTop
newWidth
nft-
NFT
Expand All @@ -192,26 +172,21 @@ nft6
nft-cards
NFTDetails
nft-infos
NFT-MAKER
nfts
NFTs
NFTSlider
NFTSliderContainer
ninefold
nmeet
NMKR
noTextWrap
nowrap
npm
onChange
onclick
onClick
onClickLeft
onClickLink
onClickRight
onImageLoad
onLoad
openPaymentWindow
param
paramArr
params
Expand All @@ -223,7 +198,6 @@ PhaseItemProps
PhasesContainer
phaseWidth
png
.pnp
PointerWrapper
prevState
px
Expand All @@ -242,8 +216,6 @@ roadMapTexts
roseDot
roseReg
rwd
screenX
screenY
ScrollPage
seamlessAI
SeamlessAI
Expand All @@ -253,7 +225,6 @@ seamlessAITexts
setImageHeight
setImageWidth
setIntersecting
setInterval
setIsExpanded
setModalToggle
setOne
Expand All @@ -273,7 +244,6 @@ StickyWrapper
StyledContainer
StyledGenericWrapper
StyledHeader
StyledLabel
StyledLink
styledParts
StyledProps
Expand All @@ -290,7 +260,6 @@ targetRef
textAlign
TextContainer
textData
textfield
textGradient
textPlaceholder
textPlacing
Expand All @@ -301,26 +270,20 @@ textTertiary600
TextWrapper
TitleContainer
titleTexts
tj-actions
toggleText
TopSection
TopWrapper
transformOrigin
transformVariant
typeof
vw
webkit-appearance
welcomeCards
WelcomeCards
welcomeHeroCard
welcomeOverlay
welcomeOverlayDesktop
welcomeTexts
whileInView
WithRoseText
wtop
nft7
SwiperCore
cover1
nft-modal
cover1mobile
Expand All @@ -332,29 +295,13 @@ cover4
cover4mobile
cover5
cover5mobile
activeIndex
setActiveIndex
swiperInstance
setSwiperInstance
activeIndex
handleNextSlide
testnet
watchSlidesProgress
onSlideChange
onSwiper
SliderContainer
SliderTitle
SliderDescription
translateX
.nft-slider
.swiper-slide
handleOpenLearnMoreModal
FIDA
DesktopLinesBg
MobileLinesBg
handleOpenModal
isOpen
handleClose
fetchpriority
MenuButton
MobileMenuButton
Expand All @@ -367,22 +314,13 @@ menuMobileClose
menuMobileOpen
decodeURIComponent
MenuWrapper
.github
github
ubuntu-latest
moveInAnimationValue
newValue
setValue
ConquerRisk
StyledConquerRisk
conquerRiskTexts
getQueryParams
mui
renderBullet
bulletClass
NumberInput
spellchecker-cli-action-summary@main
backgroundCheck
backgroundColor
backgroundGradient
greyBackgroundGradient
Expand All @@ -391,34 +329,31 @@ backgroundImage
NotFoundPage
Founder&apos
FounderContainer
FounderDesktopCard
founderDesktopCard
FounderHeroCard
fOunderMobileCard
founderMobileCard
FounderModal
FounderModalContent
isFounderModalOpen
setIsFounderModalOpen
FounderSale
FounderCards
FounderBenefits
BenefitCard
BenefitContent
BenefitImage
BenefitsSection
handleLearnMore
BenefitStep
handleScrollToBenefits
StyledMenuModalButton
isSlg
founderWelcomeHeroCard
MobileHeaderFounders
HeaderFounders
FoundersHeaderMenuMobile
StyledFoundersNavButtons
countAda
CounterContainer
popupHeight
popupWidth
toUpperCase
OurMission
ourMissionOverlay
ourMissionTexts
paymentUrl
url
grabCursor
PlusIcon
MinusIcon
useCallback
useEffect
useMediaQuery
Expand All @@ -432,24 +367,13 @@ useState
PhasesCarousel
user-scalable
user-scalable=1
userNavigate
austenstone
CustomZoom
learnAbout
MoveOut
setTimeout
InputContainer
HTMLInputElement
InputWrapper
BrowserRouter
webkit-outer-spin-button
outerHeight
utilityGray
GradientButton
NFTButton
StyledButton
webkit-inner-spin-button
LearnButton
.swiper-button-next
.swiper-button-prev
buttonLabel
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"test": "react-scripts test",
"eject": "react-scripts eject",
"spell-check": "spellchecker --config .spellcheckerrc.json",
"clean-dictionary": "bash scripts/clean-dictionary.sh",
"build-dictionary": "spellchecker --config .spellcheckerrc.json --generate-dictionary dictionary.txt",
"prepare": "husky install"
},
Expand Down
3 changes: 0 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
<link rel="preload" fetchpriority="high" as="image" href="/src/assets/images/founder-hello-card-mobile.png">
<link rel="preload" fetchpriority="high" as="image" href="/src/assets/images/founder-hello-card-desktop.png">
<link rel="preload" fetchpriority="high" as="image" href="/src/assets/images/background-pattern.png">
<link rel="preload" as="image" href="/src/assets/images/nft-cards/nft-1.svg">
<link rel="preload" as="image" href="/src/assets/images/nft-cards/nft-2.svg">
<link rel="preload" as="image" href="/src/assets/images/nft-cards/nft-3.svg">
<link rel="stylesheet" href="https://unpkg.com/primeflex@^3/primeflex.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
Expand Down
38 changes: 38 additions & 0 deletions scripts/clean-dictionary.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env bash
# Remove words from dictionary.txt that no longer appear in any source file.
# Scans the same file patterns as .spellcheckerrc.json.

set -euo pipefail

REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
DICT="$REPO_ROOT/dictionary.txt"

if [ ! -f "$DICT" ]; then
echo "dictionary.txt not found" >&2
exit 1
fi

unused=()
while IFS= read -r word; do
[ -z "$word" ] && continue
if ! grep -rqF "$word" \
--include='*.ts' --include='*.tsx' --include='*.html' --include='*.json' --include='*.css' \
--exclude-dir=node_modules --exclude-dir=build --exclude-dir=reports \
--exclude=dictionary.txt \
"$REPO_ROOT/src" "$REPO_ROOT/public" "$REPO_ROOT/.github" 2>/dev/null; then
unused+=("$word")
fi
done < "$DICT"

if [ ${#unused[@]} -eq 0 ]; then
exit 0
fi

echo "Removing ${#unused[@]} unused dictionary word(s):"
for w in "${unused[@]}"; do
echo " - $w"
grep -vxF "$w" "$DICT" > "$DICT.tmp" && mv "$DICT.tmp" "$DICT"
done

# Stage the cleaned dictionary so the commit includes it
git add "$DICT"
3 changes: 0 additions & 3 deletions src/assets/icons/minus.svg

This file was deleted.

3 changes: 0 additions & 3 deletions src/assets/icons/plus.svg

This file was deleted.

Loading