mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-28 15:54:56 +00:00
code: types,nextjs,frontends (1 files)
This commit is contained in:
30
frontends/nextjs/src/lib/screenshot/types.ts
Normal file
30
frontends/nextjs/src/lib/screenshot/types.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
export interface ScreenshotAnalysisPayload {
|
||||
title: string
|
||||
url: string
|
||||
viewport: {
|
||||
width: number
|
||||
height: number
|
||||
}
|
||||
textSample: string
|
||||
htmlSample: string
|
||||
}
|
||||
|
||||
export interface ScreenshotAnalysisMetrics {
|
||||
wordCount: number
|
||||
headingCount: number
|
||||
h1Count: number
|
||||
h2Count: number
|
||||
h3Count: number
|
||||
imgCount: number
|
||||
imgMissingAltCount: number
|
||||
linkCount: number
|
||||
buttonCount: number
|
||||
formCount: number
|
||||
inputCount: number
|
||||
}
|
||||
|
||||
export interface ScreenshotAnalysisResult {
|
||||
report: string
|
||||
metrics: ScreenshotAnalysisMetrics
|
||||
warnings: string[]
|
||||
}
|
||||
Reference in New Issue
Block a user