- 사이트관리에 "목록 / 전체 통계" 탭(?tab=stats)과 각 행의 "통계" 버튼(/ops/sites/:placeId/stats) - 크롤링 화면: 요약 카드 → 일별 누적 막대(용도 4분류+기타) → 봇별 → (전체) 사이트 순위·robots/sitemap· 기타 UA, (사이트별) 많이 읽힌 페이지·최근 50건. 기간 7/30/90일 - recharts 는 CrawlerDailyChart 한 파일에만 두고 lazy() 로 부른다 — 빌드 확인: 그 청크에만 있고 사장님 화면의 첫 로딩 스크립트에는 없다 - OpsSitesPage 는 기존 목록 코드를 다시 들여쓰지 않으려고, stats 탭이면 앞에서 바로 return 하고 탭 UI 는 SitesTabs 로 분리했다(+29/-3) - orval 로 API 클라이언트 재생성 — 줄바꿈(LF/CRLF)만 바뀐 생성 파일 약 90개는 되돌리고 실제 변경분만 담았다 lint(typegen·tsc·eslint)·build 통과. 화면 레이아웃·차트는 브라우저로 직접 보지 못했다(확장 미연결) — nginx 경유 API 호출과 SPA 라우트 200 까지만 확인.
37 lines
1.3 KiB
TypeScript
37 lines
1.3 KiB
TypeScript
/**
|
|
* Generated by orval v7.21.0 🍺
|
|
* Do not edit manually.
|
|
* Web4Ai API
|
|
* OpenAPI spec version: 0.1.0
|
|
*/
|
|
import type { ErrorInfo } from "./errorInfo";
|
|
import type { ResCrawlerStatsMsg } from "./resCrawlerStatsMsg";
|
|
import type { ResCrawlerStatsDateFrom } from "./resCrawlerStatsDateFrom";
|
|
import type { ResCrawlerStatsDateTo } from "./resCrawlerStatsDateTo";
|
|
import type { CrawlerSummary } from "./crawlerSummary";
|
|
import type { CrawlerDaily } from "./crawlerDaily";
|
|
import type { CrawlerBotRow } from "./crawlerBotRow";
|
|
import type { CrawlerSiteRow } from "./crawlerSiteRow";
|
|
import type { CrawlerRootRow } from "./crawlerRootRow";
|
|
import type { CrawlerUaRow } from "./crawlerUaRow";
|
|
import type { CrawlerPathRow } from "./crawlerPathRow";
|
|
import type { CrawlerHitRow } from "./crawlerHitRow";
|
|
|
|
/**
|
|
* 전체(sites·root_files·others)와 사이트별(pages·recent)이 같은 모델을 쓴다 — 해당 없는 칸은 비어 있다.
|
|
*/
|
|
export interface ResCrawlerStats {
|
|
result?: ErrorInfo;
|
|
msg?: ResCrawlerStatsMsg;
|
|
date_from?: ResCrawlerStatsDateFrom;
|
|
date_to?: ResCrawlerStatsDateTo;
|
|
summary?: CrawlerSummary;
|
|
daily?: CrawlerDaily[];
|
|
bots?: CrawlerBotRow[];
|
|
sites?: CrawlerSiteRow[];
|
|
root_files?: CrawlerRootRow[];
|
|
others?: CrawlerUaRow[];
|
|
pages?: CrawlerPathRow[];
|
|
recent?: CrawlerHitRow[];
|
|
}
|