Imports tradein-mvp/frontend (38 components) to a claude.ai/design design-system project. Synth-entry build (Next.js app, no dist): - overrides/source-kit.mjs: process.env shim for browser IIFE - preview-provider.tsx: seeded TanStack Query provider (mirrors the repo's offline ui-preview client) so fetch-coupled + auth-gated cards render - previews/*.tsx: authored preview compositions (real fixture data) - conventions.md: README header for the design agent - config.json + NOTES.md: reproducible re-sync inputs
25 lines
863 B
TypeScript
25 lines
863 B
TypeScript
import { ScheduleControl } from 'tradein-mvp-frontend';
|
||
|
||
/** Расписание + ручной запуск city-sweep. Фетчит /admin/scrape/schedules через
|
||
* useSchedules (статус-блок fetch-coupled), но форма настроек (окно МСК,
|
||
* pages/anchor, detail top-N, delay, радиус, enrich) рендерится всегда —
|
||
* полный styled-каркас формы. paramConfig — avito-дефолты (с detail-параметрами). */
|
||
const AVITO_PARAMS = {
|
||
hasDetailParams: true,
|
||
hasEnrichAddress: false,
|
||
defaults: {
|
||
pages_per_anchor: 3,
|
||
radius_m: 1500,
|
||
request_delay_sec: 4,
|
||
detail_top_n: 12,
|
||
enrich_houses: true,
|
||
},
|
||
};
|
||
|
||
export const Default = () => (
|
||
<ScheduleControl
|
||
source="avito"
|
||
scheduleSource="avito_city_sweep"
|
||
paramConfig={AVITO_PARAMS}
|
||
/>
|
||
);
|