mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-05 05:32:02 +00:00
## Summary Implement the website layout system and homepage with all sections, reusable components, scroll-driven animations, and routing. ## Changes - **What**: - Reorganize components into `common/`, `home/`, `company/`, `product/` directories - Add `BaseLayout` with shared `SiteNav` and `SiteFooter` - Implement homepage sections: Hero, SocialProofBar, ProductShowcase, UseCase, GetStarted, ProductCards, CaseStudySpotlight, BuildWhat - Add reusable components: BrandButton, NodeBadge, ProductCard, FooterLinkColumn, NavDesktopLink, MobileMenu - Add PPFormula font family, client logos, and icon assets - Add hero/footer logo frame sequences for scroll-driven animations - Add `useFrameScrub` composable and `smoothScroll` (Lenis + GSAP ScrollTrigger) - Add route config, nav config, and placeholder pages for all routes - Add Playwright e2e tests for homepage and navigation - **Dependencies**: gsap, lenis, @astrojs/check desktop  mobile  ## Review Focus - Component structure and naming conventions under `apps/website/` - Scroll-driven animation approach (GSAP ScrollTrigger + Lenis smooth scroll) - Mobile responsive behavior (MobileMenu, ScrollTrigger matchMedia) --------- Co-authored-by: GitHub Action <action@github.com> Co-authored-by: DrJKL <DrJKL0424@gmail.com> Co-authored-by: Amp <amp@ampcode.com> Co-authored-by: Alexander Brown <drjkl@comfy.org>
48 lines
1.4 KiB
TypeScript
48 lines
1.4 KiB
TypeScript
import path from 'node:path'
|
|
|
|
export default {
|
|
'tests-ui/**': () =>
|
|
'echo "Files in tests-ui/ are deprecated. Colocate tests with source files." && exit 1',
|
|
|
|
'./**/*.{css,vue}': (stagedFiles: string[]) => {
|
|
const joinedPaths = toJoinedRelativePaths(stagedFiles)
|
|
return [`pnpm exec stylelint --allow-empty-input ${joinedPaths}`]
|
|
},
|
|
|
|
'./**/*.js': (stagedFiles: string[]) => formatAndEslint(stagedFiles),
|
|
|
|
'./**/*.{ts,tsx,vue,mts,json,yaml,md}': (stagedFiles: string[]) => {
|
|
const commands = [...formatAndEslint(stagedFiles), 'pnpm typecheck']
|
|
|
|
const relativePaths = stagedFiles.map((f) =>
|
|
path.relative(process.cwd(), f).replace(/\\/g, '/')
|
|
)
|
|
|
|
if (relativePaths.some((f) => f.startsWith('browser_tests/'))) {
|
|
commands.push('pnpm typecheck:browser')
|
|
}
|
|
|
|
if (relativePaths.some((f) => f.startsWith('apps/website/'))) {
|
|
commands.push('pnpm typecheck:website')
|
|
}
|
|
|
|
return commands
|
|
}
|
|
}
|
|
|
|
function formatAndEslint(fileNames: string[]) {
|
|
const joinedPaths = toJoinedRelativePaths(fileNames)
|
|
return [
|
|
`pnpm exec oxfmt --write ${joinedPaths}`,
|
|
`pnpm exec oxlint --fix ${joinedPaths}`,
|
|
`pnpm exec eslint --cache --fix --no-warn-ignored ${joinedPaths}`
|
|
]
|
|
}
|
|
|
|
function toJoinedRelativePaths(fileNames: string[]) {
|
|
const relativePaths = fileNames.map((f) =>
|
|
path.relative(process.cwd(), f).replace(/\\/g, '/')
|
|
)
|
|
return relativePaths.map((p) => `"${p}"`).join(' ')
|
|
}
|