diff --git a/.beads/issues.jsonl b/.beads/issues.jsonl index 99a7dc0..195f2b7 100644 --- a/.beads/issues.jsonl +++ b/.beads/issues.jsonl @@ -1,3 +1,13 @@ +{"_type":"issue","id":"videoreg-7oy.9","title":"V2 exact Semrush PDF lead: recover complete svk-002-mn.pdf and identify actual document type","description":"Actual Semrush anchor lead1backlink/1domain. OriginalURL http://videoreg.ru/download/svk-002-mn.pdf; CDX20090205154916. HTTP200download473313bytes is malformed:pdfinfo top-levelpagesnull/xref failure, no valid page count. Do not advertise as recovered or relabel anonymousUVR2CH manual. Try other exact original/www/apex dates or legitimate manufacturer duplicate; verify title/model/allpages, PDFstructure/noJavaScript andsourcehash. Keep exact lead unresolved if no complete verified file; fullrelatedmanuals4areseparate.","notes":"Recovered exact full PDF via short-date2009 replay:872857bytes curl0, pdfinfo3pages JSno, scanned pages100–102 read visually by root. Denis Kirin, Mobile News January2008 test, not manual. Immutable raw+render manifest evidence/svk002-review. Validated public copy queued; companion/content-manager review and HTTPsamehash pending before closure.","status":"open","priority":1,"issue_type":"task","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T14:47:06Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T15:13:29Z","labels":["blocking","pdf","recovery","semrush"],"dependencies":[{"issue_id":"videoreg-7oy.9","depends_on_id":"videoreg-7oy","type":"parent-child","created_at":"2026-10-26T17:47:05Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0} +{"_type":"issue","id":"videoreg-7oy.8","title":"V2 restoration blocker: recover unresolved historic bodies and important media","description":"Full CDX yielded883HTMLcaptures,121HTML URLkeys,259resource URLkeys;25realHTMLbodies fetched after all distinct pre/post2015 snapshots and www/apexvariants. Known inventory170normalizedURLs includes59unresolved content leads plus1partial listing, and important installation/examplevideo media remain unavailable. Keep explicit unresolved coverage rather than modern substitutes. Some HTTP200media invalid: directSVK002PDF structurally corrupt; only2ZIP-contained manuals valid. Continue linked-source/alternatearchive and mandatorySemrush work. Acceptance: each meaningful URL reconciled to real edited body, evidenced equivalent, genuine spam/commercial exclusion, or concrete external blocker; missing mandatory recovery not optional followup or PASS.","status":"open","priority":1,"issue_type":"task","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:59:42Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T13:59:42Z","labels":["archive","blocking","restoration"],"dependencies":[{"issue_id":"videoreg-7oy.8","depends_on_id":"videoreg-7oy","type":"parent-child","created_at":"2026-10-26T16:59:41Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0} +{"_type":"issue","id":"videoreg-7oy.7","title":"V2 required: reconcile Noxtools Semrush backlink targets with complete videoreg inventory","description":"Direct user requirement: root coordinator inspects Semrush in shared in-app Noxtools session sequentially. Prepare lost URL/title/questions under docs/rebuild-v2/semrush. Consume actual root exports site-restoration-status/semrush-recovery/videoreg.ru, individually assess target URLs/anchors/referring contexts, add legitimate new paths to inventory and fetch real bodies/snapshots. Backlinks are leads only, not recovered text or source truth. No invented Semrush results; no takeover of shared browser. Acceptance: actual provided export scope documented, each legitimate new target reconciled/restored or explicit unresolved blocker, full editorial/outbound gate repeated.","notes":"Additional actual Semrush Anchors Server3 lead supplied: http://videoreg.ru/download/svk-002-mn.pdf,1backlink/1domain,FirstApr5 2026,Last14daysago (relative as observed,notinventedabsolute). This exact archive resource already fetched: raw/media/6e2b836b2f645663.pdf473313bytes,HTTP200butpdfinfo/pdftotext failtop-levelpages/xref. NOTpublishedasvalid. Fullalternate12pageUVR2CH2006 recoveredfromdifferentoriginalZIP,not silentlyrelabeledasSVK002. Actualreferrerchecks5URLs:2126andNissanconfirmtechnicaltargetlinks,zarulem200noboundtargetinretrievedbody,academicDNSfail,Terrano timeout. moves.htm genuinelyrecoveredviaSemrush-directedwww/apex replays andoriginalYouTubeclipconfirmed;recordsinsemrush/referrer-verification.json andraw/youtube-tv-oembed.json. PartialSemrushscope andcompletePDFrecovery remainmandatory.","status":"in_progress","priority":1,"issue_type":"task","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:49:39Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T14:47:04Z","started_at":"2026-10-26T14:35:25Z","labels":["blocking","recovery","semrush"],"dependencies":[{"issue_id":"videoreg-7oy.7","depends_on_id":"videoreg-7oy","type":"parent-child","created_at":"2026-10-26T16:49:39Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0} +{"_type":"issue","id":"videoreg-7oy.6","title":"V2 illustrator veto: replace generic hero with inspected technical diagrams in recovered SVK pages","description":"Actual V1 pixels inspected: home-1440.png, home-360.png, guides-choose-360.png under docs/rebuild-v2/evidence/designer-initial. Hero depicts a generic camera and provides no explanation of recovered original SVK design. Recovered auto20070228153116 full cp1251 body describes one/two USB cameras, SVK recorder, FLASH media and Windows viewing; distinct road/guard modes. Existing article has no explanatory visuals or actual integrated V2 candidate proof. This blocks V2 illustration acceptance.","design":"Options: retain decorative camera; use only low-resolution archived photographs; add precise mobile-first explanatory diagrams alongside selected recovered photographs. Chosen compromise: two original SVG diagrams for signal chain and relative road/guard capture cadence, with model-specific context and no invented wiring instructions or rate claims. Root integrates these only where the body discusses them; metadata remains internal.","acceptance_criteria":"Open both actual SVG renderings and inspect their exact integrated candidate pages at narrow and wide widths; verify legible labels, crop/layout, alt text, intrinsic size/load, no external references, subject consistency with auto snapshot; record URL, screenshot paths and candidate source/build hash. No final PASS before integrated pixels are viewed.","notes":"Additional fleet source predpr-short2012 read fully. Created svk-fleet-channels.svg; actual standalone360/1440 figure screenshots opened and recorded in illustrator-preview/fleet-manifest.json with source+asset hashes. Drawing matches two distinct channels and optional metadata, no automatic count or wiring/AND claim. V2 candidate not frozen: integrated review remains mandatory and veto stays in_progress.","status":"in_progress","priority":1,"issue_type":"task","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:20:47Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T14:11:26Z","started_at":"2026-10-26T13:22:20Z","labels":["blocking","role-illustrator","v2"],"dependencies":[{"issue_id":"videoreg-7oy.6","depends_on_id":"videoreg-7oy","type":"parent-child","created_at":"2026-10-26T16:20:47Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0} +{"_type":"issue","id":"videoreg-7oy.5","title":"V2 creative veto: replace generic shopping journey with coherent SVK technical library","description":"Independent V2 audit opened all six baseline layouts at narrow and wide widths using actual captured pixels in docs/rebuild-v2/evidence/designer-initial and fetched live baseline pages at50541. Homepage still leads with generic dashcam buying slogan, four modern paragraph guides, unrelated 2026 seller catalog and decorative camera; recovered auto20070228153116 is specifically SVK/VR-001 ≤5fps USB-camera+FLASH hardware with operating modes and installation examples. Thus subject, visual language and user journey do not match recovered corpus. Process/date/provenance badges and the seller-catalog block compete with reader needs. No substantive library/article/media templates exist for actual historical content; old auto redirect is semantically wrong.","design":"Options: keep modern generic landing and append archive links; mimic obsolete commercial brochure; or use a technical-library editorial direction. Chosen compromise: technical library with a compact factual hardware visual, distinct paths for identifying the recorder, modes/FAQ, installation examples and reading recorded files; recovered product facts remain historically scoped, modern practice/tool pages subordinate and clearly applicable. Retain useful material, remove sales CTAs/process decoration. Typography and diagram/photo use must serve long technical articles rather than repeated empty cover cards.","acceptance_criteria":"Review exact V2 candidate homepage, listings/search, long/short recovered pages, table/image-heavy templates, tool and404 at360 and1440 with independently opened screenshots bound to build hash. Homepage/navigation and related links must expose recovered SVK corpus with coherent journeys; images clarify actual subject; no misleading current shop posture or repetitive production-process badges. Calculator must state applicability to stream bitrate and not imply that SVK JPEG/frame recording has the same input model unless actual frame-size mode is implemented. No final PASS until corpus/editorial/visual gaps are actually resolved.","notes":"Initial V2 review report saved docs/rebuild-v2/reviews/creative-initial.md. Independently opened12 baseline screenshot artifacts across6templates and read raw auto body; fetched3 actual live bodies. Root homepage currently301 loop after concurrent preview patch, reported separately. Block remains until exact V2 candidate real visual review.","status":"in_progress","priority":1,"issue_type":"task","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:20:14Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T13:21:28Z","started_at":"2026-10-26T13:21:28Z","labels":["blocking","role-creative-director","v2"],"dependencies":[{"issue_id":"videoreg-7oy.5","depends_on_id":"videoreg-7oy","type":"parent-child","created_at":"2026-10-26T16:20:13Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0} +{"_type":"issue","id":"videoreg-7oy.4","title":"V2 programmer veto: replace sampled smoke with complete corpus and outbound verification","description":"Baseline056f1a6 deploy/smoke-static.py15 hardcodes ten URLs;27-34 parses only this seed set and fetches extra links without recursive parsing;12-14 ignores external and absolute same-origin URLs, srcset/action/CSS/script contexts. No archive URL inventory is consumed, no body/hash/duplicate or outbound-ledger gate exists. nginx.conf11 and serve-local.py14-15 redirect historic /auto.shtml to new generic choose although docs/provenance.json12-21 explicitly records no recovered body. Thus prior25/25 cannot substantiate corpus restoration or equivalent legacy routing.","design":"Options: keep sampled smoke as endpoint health only; or introduce complete exported-site+inventory reconciliation with a distinct evaluated outbound ledger and clear known failure reports. Chosen compromise proposed: retain useful small health smoke but name it narrowly; add deterministic complete crawler driven by output manifest and discovered URLs, reconcile every historical URL and audit each external occurrence. Publish no equivalence redirect without source evidence; unresolved bodies remain mandatory blockers.","acceptance_criteria":"For exact V2 source/build hash, enumerate complete generated HTML set and discovered meaningful archive URLs; recursively check all internal links/fragments/assets including new pages; reconcile every inventory item to restored/equivalent/explicit-exclusion/unresolved, never count unresolved as recovered. Extract href/src/srcset/action, CSS url and script destinations from source/build/DOM and match each external occurrence to reviewed keep/remove reason. Report missing/thin/duplicate/error bodies and real404. Test legacy destination substantive equivalence or keep unresolved without false redirect. Independent programmer review reads code/diff and re-runs resulting checks; unresolved archive corpus blocks full V2 acceptance.","notes":"Initial source audit inspected baseline056f1a6 routing, content/schema, crawler, nginx, preview, Docker, stack and workflow plus diff2ce58fc..HEAD. Hardcoded10seed crawl cannot establish complete archive/output set or audit externals. V2 implementation pending root; no PASS. Full report docs/rebuild-v2/reviews/programmer-initial.md.","status":"in_progress","priority":1,"issue_type":"bug","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:15:48Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T13:27:19Z","started_at":"2026-10-26T13:27:19Z","labels":["blocking","role-programmer-expert","v2"],"dependencies":[{"issue_id":"videoreg-7oy.4","depends_on_id":"videoreg-7oy","type":"parent-child","created_at":"2026-10-26T16:15:47Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0} +{"_type":"issue","id":"videoreg-7oy.3","title":"V2 designer veto: usable reference layouts and recoverable missing-page state","description":"Independent live V1 review at 127.0.0.1:65390, base056f1a6, build tree f8c9d6ff616f4e56abf5485fc6beec334011a58b9605b6e81aeb9e30c64d9f60. Opened12 actual pixels across home, choose/save articles, catalog,calculator,404 at360/1440. On catalog360 five cards repeat the same narrow dark generic image rail and consume3125px without a useful comparison view; values are buried behind per-card details and titles break into many lines. Local404 is an unstyled English Python error with no route back into content. V1 articles have only paragraph sections, no actual long/list/table/diagram template evidence; landing four-card list has no library/search result or zero-results state. Process badges NEW MATERIAL and repeated2026 provenance boilerplate occupy article/footer UI. V1 sign-offs superseded; V2 design acceptance remains blocked.","design":"Chosen compromise updated after independently reading recovered auto-20070228153116.html Windows1251 introduction/installation sections: historical technical СВК/VR-001 library, structured device/application/FAQ/documentation index, source-specific camera-recorder-storage and mode diagrams, full article layouts, useful search and Russian recoverable404. Avoid modern marketplace/tall repeated placeholder rails and process boilerplate. Unknown restored corpus not accepted. Old manufacturer sales/support must not imply current active service.","acceptance_criteria":"Provide exact V2 candidate source/build identity. Same reviewer inspects actual home, library/search positive+negative, every distinct long/short/table/image article template, tool and localized404 at360and1440; opens pixels, verifies no clipping or horizontal body overflow, keyboard focus/skip link, data table/diagram handling and article/findability journeys. Catalog if retained must expose useful comparable facts without decorative repeated tall rails;400/404 states must preserve HTTP semantics and provide navigation. No production-process badges or repetitive archival disclaimer copy in ordinary article UI. Review source/body inventory; corpus unknown/unrecovered cannot be accepted as restored. Report actual URLs/screenshots opened and verdict.","notes":"Initial V2 designer audit is docs/rebuild-v2/reviews/designer-initial.md. Opened all12 narrow/wide pixels plus calculator recheck; exact build manifest saved. Blocking layout/findability/404/process-copy findings; no V2 PASS.","status":"in_progress","priority":1,"issue_type":"bug","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:15:39Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T13:18:17Z","started_at":"2026-10-26T13:16:54Z","labels":["blocking","role-designer","v2"],"dependencies":[{"issue_id":"videoreg-7oy.3","depends_on_id":"videoreg-7oy","type":"parent-child","created_at":"2026-10-26T16:15:38Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0} +{"_type":"issue","id":"videoreg-7oy.2","title":"V2 programmer veto: prevent local preview traversal outside exported site","description":"At baseline056f1a6, deploy/serve-local.py18-20 builds target=OUT/path then reads arbitrary is_file under /health/ without resolve containment. Independently reproduced curl --path-as-is /health/../../../AGENTS.md on127.0.0.1:65390: HTTP200 application/json,3793bytes exactly equal project AGENTS.md; no secret files requested. This is real local file disclosure from preview and must block candidate acceptance.","design":"Options: remove direct health branch and serve through a safe rooted handler; or normalize URL/decode once, reject traversal and require resolved paths remain inside OUT including symlink resolution. Chosen compromise proposed: explicit rooted static handler, fail closed for traversal and unknown health routes; preserve normal generated health JSON behavior and GET/POST404 parity.","acceptance_criteria":"Independent repeat confirms raw dot-segment, percent-encoded dot/slash, absolute-path and symlink traversal cannot read outside OUT; normal /health/live and /health/ready200JSON; known content/assets200; unknown/API GET+POST404. Add meaningful regression checks against safe sentinel outside export, not sensitive files. Reinspect exact V2 code/build and live PID.","notes":"Initial report saved docs/rebuild-v2/reviews/programmer-initial.md. Owner added containment after actual .html selection; ordinary current source inspection confirms final-selection check now present at27-33, directory listing disabled. Safe earlier evidence retained; per owner no further sensitive probes or exploit exploration. Exact V2 candidate, regression evidence and normal HTTP/source review still required; do not treat current V1 output as V2PASS.","status":"in_progress","priority":1,"issue_type":"bug","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:14:44Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T13:28:49Z","started_at":"2026-10-26T13:16:38Z","labels":["blocking","role-programmer-expert","v2"],"dependencies":[{"issue_id":"videoreg-7oy.2","depends_on_id":"videoreg-7oy","type":"parent-child","created_at":"2026-10-26T16:14:44Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0} +{"_type":"issue","id":"videoreg-7oy.1","title":"V2 content veto: recover and reconcile historical bodies; review every outbound link and remove process boilerplate","description":"Initial V2 audit of 056f1a6 read all four guides.ts bodies, catalog.json and rendered template source. V1 contains zero historical page bodies, a non-equivalent auto.shtml redirect to a generic buying guide, five direct seller URLs without per-link editorial decisions, and production-process copy in guide eyebrow/editor-note/footer/About. New CDX access reported by root means actual historical bodies must now be recovered and compared, not replaced by these four generic guides. No V1 PASS counts for V2.","design":"Options: keep V1 with disclaimers (rejected by V2 contract); publish raw archived HTML (unsafe/spam risk); choose actual useful historical snapshots, reconstruct their distinct bodies and useful diagrams, remove ads per link/context, keep accurate current notes internally or where editorially essential. Chosen compromise: real corpus-led restoration with per-URL inventory/editorial ledger, independently reviewed external links, and ordinary pages free of production-process boilerplate. Missing bodies remain explicit mandatory blockers.","acceptance_criteria":"Every meaningful URL from complete CDX/search/local inventory reconciles to a substantive restored page, genuinely equivalent redirect, evidenced spam exclusion or unresolved blocker. Reviewer reads every published body from candidate files and live DOM; per-page ledger names snapshot/body actions and source checks. Every external href/src/action in source/templates/build/DOM has individual keep/remove reason, no seller/ad links without demonstrated editorial purpose. /auto.shtml preserves its actual purpose/body. No generic provenance badge or 2026 creation boilerplate in ordinary article/template copy. Final report names exact commit/build and files/URLs inspected; unavailable/missing bodies cannot be passed.","notes":"Initial report docs/rebuild-v2/reviews/content-initial.md complete. Read full recovered auto20070228153116 cp1251 plus actual V1 DOM on port50541; source/body/hash evidence retained. Found real mismatch auto-\u003egenericchoose, marketing/obsolete contacts and unsafe universalization risks in raw auto, unreviewed catalog seller links and process boilerplate. Additional legacy predpr/support/shop category URLs cross-checked. Veto remains until complete recovered-corpus/page/outbound ledgers and substantive V2 bodies independently read.","status":"in_progress","priority":1,"issue_type":"task","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:14:22Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T13:17:41Z","started_at":"2026-10-26T13:15:33Z","labels":["blocking","role-content-manager","v2"],"dependencies":[{"issue_id":"videoreg-7oy.1","depends_on_id":"videoreg-7oy","type":"parent-child","created_at":"2026-10-26T16:14:22Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0} +{"_type":"issue","id":"videoreg-7oy","title":"V2 rebuild: recover videoreg corpus and independently review complete site","description":"User rejected V1 and superseded all PASS. Execute REBUILD_ACCEPTANCE_V2 contract: real corpus inventory and recovery; per-page editing and every outbound URL audit; new useful visuals and design; five actual artifact reviews with blocking authority; complete crawl, persistent local, reviewed production through existing Gitea/zz. Archive unavailability remains mandatory blocker, never a pass.","status":"in_progress","priority":1,"issue_type":"epic","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:11:52Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T13:13:01Z","started_at":"2026-10-26T13:13:01Z","dependencies":[{"issue_id":"videoreg-7oy","depends_on_id":"videoreg-7wi","type":"related","created_at":"2026-10-26T16:13:02Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0} {"_type":"issue","id":"videoreg-7wi.6","title":"External blocker: repair videoreg.ru DNS delegation and validate public TLS","description":"Google DoH A and NS return SERVFAIL, authoritative Cloudflare nameservers REFUSED. Origin zz 77.91.88.137 responds via Host/SNI, but certificate verification fails. DNS/global Traefik changes excluded from scope. Acceptance: authorized DNS owner fixes delegation and A/AAAA toward zz, then valid HTTPS main, content and static without -k.","status":"open","priority":1,"issue_type":"task","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T11:30:26Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T11:30:26Z","labels":["blocking","dns","external"],"dependencies":[{"issue_id":"videoreg-7wi.6","depends_on_id":"videoreg-7wi","type":"parent-child","created_at":"2026-10-26T14:30:25Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":1,"comment_count":0} {"_type":"issue","id":"videoreg-7wi.5","title":"Programmer veto: executable isolated deployment and correct standalone runtime","description":"Confirmed build output is web-front/.next/standalone/web-front/server.js, but existing deploy/docker/Dockerfile.web copies standalone to /app and executes /app/server.js; static/public are also copied to root rather than /app/web-front. Production runtime is therefore not accepted. Existing legacy deploy script also exposes optional global image/builder prune, forbidden during concurrent domain restoration. No live deployment proof exists yet.","design":"Options: fix standalone Docker paths and restrict deployment to isolated videoreg stack; alternatively static export with lightweight runtime after preserving required health and redirect semantics. Chosen compromise: owner may choose either implementation, but deploy path must contain no global cleanup and must retain route security and health.","acceptance_criteria":"Reproducible build and actual container starts; /, /catalog, guide, calculator, static asset and health return correct responses; /api/videos GET/POST and /_dev/showcase return 404; /auto.shtml redirects to guide; only videoreg stack mutated, no global prune; origin Host/SNI and health evidence recorded. Public DNS/TLS failure remains explicit blocker, never reported as success.","notes":"Repeat review 2026-10-26: accepted static nginx alternative structurally: root Dockerfile uses web-front/out, unique videoreg stack and deploy/deploy-static.sh contain no global prune. Live zz container f257c5a6cfe8 healthy, image d8be62669a86@sha256:297a16a51627589b2955d17107fe4591dd5451f1a33604470ae42aa841e6c227. Independent origin smoke repeated all 24 checks passed; POST /api/videos 404; /auto.shtml 308 Location /guides/choose. Verified curl without -k fails certificate validation (exit60), separately tracked .6. Local PID35689 reachable; GET health200 and redirect308; POST /api/videos501 differs from explicit404 criterion. Owner notified for parity fix or documented criterion adjustment. Final closure pending that small check; public completion remains blocked .6.\nFinal re-review 2026-10-26 at commit9b5b080: independent local POST http://127.0.0.1:65390/api/videos returned404; ready health200; extended local smoke independently repeated25/25 passed. Preview PID50453 supersedes prior PID35689. Static alternative accepted, original Docker/runtime/isolation veto resolved. Origin24/24 and POST404 already independently verified on healthy d8be626 image; final CI9b5b080 remains owner verification in progress. Public DNS/TLS is explicitly unresolved in blocking sibling videoreg-7wi.6, not waived by this closure.","status":"closed","priority":1,"issue_type":"bug","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T11:18:25Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T11:35:36Z","started_at":"2026-10-26T11:18:34Z","closed_at":"2026-10-26T11:35:36Z","close_reason":"Static nginx runtime and isolated deploy accepted; independent origin24/24, local25/25, API POST404 and redirect308 passed. Public acceptance remains blocked separately by videoreg-7wi.6.","labels":["blocking","role-programmer-expert"],"dependencies":[{"issue_id":"videoreg-7wi.5","depends_on_id":"videoreg-7wi","type":"parent-child","created_at":"2026-10-26T14:18:24Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":1,"comment_count":0} {"_type":"issue","id":"videoreg-7wi.4","title":"Illustrator veto: validate original road/camera illustration in browser","description":"CSS road-art/camera/lens is authored in repository with no imported visual asset, but no actual desktop/mobile render has been supplied. Illustration acceptance is blocked until rendered inspection: pseudo-elements, transform and overflow crop may miscompose camera and caption at small widths. This is a missing acceptance artifact, not an asserted rendering defect.","design":"Options: replace with licensed raster asset; remove art; retain original CSS illustration with documented provenance and responsive evidence. Chosen compromise: retain CSS artwork because it communicates dashcam theme with zero external image requests; document it as original decorative illustration, inspect at 360px and desktop, fix clipping if observed.","acceptance_criteria":"Provide browser screenshots of homepage at 360px and desktop; illustrator visually confirms camera/lens/caption composition remains intentional and no content is obscured; report CSS illustration provenance and verify no external image requests for hero. Decorative artwork remains aria-hidden.","status":"closed","priority":1,"issue_type":"task","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T11:18:07Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T11:29:28Z","started_at":"2026-10-26T11:18:15Z","closed_at":"2026-10-26T11:29:28Z","close_reason":"Illustrator repeat review PASS 2026-10-26: visually inspected real 360px full mobile and 1440px desktop screenshots in docs/review-evidence. Camera, lens and caption remain deliberately composed; no clipping obscures content. CSS artwork is decorative aria-hidden, original provenance documented in docs/CONTENT_POLICY.md; browser-checks.json records heroExternalResources=[] and mobile document width 360. Chosen compromise implemented: retain zero-request original CSS illustration instead of raster replacement.","labels":["blocking","role-illustrator"],"dependencies":[{"issue_id":"videoreg-7wi.4","depends_on_id":"videoreg-7wi","type":"parent-child","created_at":"2026-10-26T14:18:06Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":1,"comment_count":0} @@ -14,7 +24,7 @@ {"_type":"issue","id":"videoreg-kbh.7","title":"Phase 7: Deduplication + moderation","description":"Canonical product grouping, moderation queue, bulk approve, conflict tracking. PARTIAL: moderation_queue + moderation_conflicts tables, products default moderation_status='needs_review', admin moderation UI/API exist. Deep dedup matching (fuzzy/alias/perceptual image hash, possible_duplicate/variant/oem_clone classification) is NOT implemented — only new_product entries are created.","notes":"Moderation queue/conflicts tables + admin UI done; deep dedup matching (kbh.11) outstanding.","status":"in_progress","priority":1,"issue_type":"feature","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-06-07T14:23:14Z","created_by":"E.Gavrilov","updated_at":"2026-06-07T14:24:37Z","started_at":"2026-06-07T14:24:37Z","dependencies":[{"issue_id":"videoreg-kbh.7","depends_on_id":"videoreg-kbh","type":"parent-child","created_at":"2026-06-07T17:23:14Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":1,"comment_count":0} {"_type":"issue","id":"videoreg-kbh","title":"Dashcam Catalog Ingestion Engine","description":"Maintainable catalog ingestion engine for car dashcams (источник: Yandex Market). HTTP-only crawler, PostgreSQL source of truth, normalization, dedup, moderation, and a token-protected versioned export consumed by the Next.js app. Full spec: tasks/002-crawler.md.","status":"open","priority":1,"issue_type":"epic","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-06-07T14:22:41Z","created_by":"E.Gavrilov","updated_at":"2026-06-07T14:22:41Z","dependency_count":0,"dependent_count":0,"comment_count":0} {"_type":"issue","id":"videoreg-7wi.7","title":"Retry historical archive capture when providers become reachable","description":"Current verified restoration coverage is zero archive pages/resources. CDX and replay unreachable, availability API429, Arquivo.pt no results. Preserve exact evidence in docs/provenance.json. Follow-up: retry bounded historical CDX/replay requests, download only legitimate relevant content/resources, record timestamp/hash/status, review spam and rights, distinguish original pages from new guides and validate old URLs. Do not claim archived restoration without successful captures.","status":"open","priority":2,"issue_type":"task","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T11:35:49Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T11:35:49Z","labels":["archive","follow-up"],"dependencies":[{"issue_id":"videoreg-7wi.7","depends_on_id":"videoreg-7wi","type":"parent-child","created_at":"2026-10-26T14:35:48Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0} -{"_type":"issue","id":"videoreg-7wi","title":"Restore videoreg.ru archive context and verify production deployment","description":"Investigate archived coverage, preserve existing catalog, add useful verified guides, deploy isolated site on zz and verify local and public health.","notes":"Implementation and all five role vetoes accepted. Gitea CI1281 successful; immutable image9b5b080 healthy on zz, local PID50453 port65390 retained, 25/25 local+origin smoke. Mandatory public DNS/TLS blocked by .6: authoritative REFUSED/SERVFAIL and default cert. No global DNS mutation authorized. Archive0 disclosed with follow-up .7. Full DEPLOYMENT_REPORT.md.","status":"blocked","priority":2,"issue_type":"task","assignee":"E.Gavrilov","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T11:11:46Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T11:37:23Z","started_at":"2026-10-26T11:13:36Z","dependencies":[{"issue_id":"videoreg-7wi","depends_on_id":"videoreg-7wi.2","type":"blocks","created_at":"2026-10-26T14:17:18Z","created_by":"E.Gavrilov","metadata":"{}"},{"issue_id":"videoreg-7wi","depends_on_id":"videoreg-7wi.3","type":"blocks","created_at":"2026-10-26T14:17:24Z","created_by":"E.Gavrilov","metadata":"{}"},{"issue_id":"videoreg-7wi","depends_on_id":"videoreg-7wi.4","type":"blocks","created_at":"2026-10-26T14:18:14Z","created_by":"E.Gavrilov","metadata":"{}"},{"issue_id":"videoreg-7wi","depends_on_id":"videoreg-7wi.5","type":"blocks","created_at":"2026-10-26T14:18:34Z","created_by":"E.Gavrilov","metadata":"{}"},{"issue_id":"videoreg-7wi","depends_on_id":"videoreg-7wi.6","type":"blocks","created_at":"2026-10-26T14:35:07Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":5,"dependent_count":0,"comment_count":0} +{"_type":"issue","id":"videoreg-7wi","title":"Restore videoreg.ru archive context and verify production deployment","description":"Investigate archived coverage, preserve existing catalog, add useful verified guides, deploy isolated site on zz and verify local and public health.","notes":"V1 rejected by user. All V1 role PASS are superseded, not evidence for V2. New epic videoreg-7oy executes REBUILD_ACCEPTANCE_V2; preserve prior release only for rollback.","status":"blocked","priority":2,"issue_type":"task","assignee":"E.Gavrilov","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T11:11:46Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T13:13:03Z","started_at":"2026-10-26T11:13:36Z","dependencies":[{"issue_id":"videoreg-7wi","depends_on_id":"videoreg-7wi.2","type":"blocks","created_at":"2026-10-26T14:17:18Z","created_by":"E.Gavrilov","metadata":"{}"},{"issue_id":"videoreg-7wi","depends_on_id":"videoreg-7wi.3","type":"blocks","created_at":"2026-10-26T14:17:24Z","created_by":"E.Gavrilov","metadata":"{}"},{"issue_id":"videoreg-7wi","depends_on_id":"videoreg-7wi.4","type":"blocks","created_at":"2026-10-26T14:18:14Z","created_by":"E.Gavrilov","metadata":"{}"},{"issue_id":"videoreg-7wi","depends_on_id":"videoreg-7wi.5","type":"blocks","created_at":"2026-10-26T14:18:34Z","created_by":"E.Gavrilov","metadata":"{}"},{"issue_id":"videoreg-7wi","depends_on_id":"videoreg-7wi.6","type":"blocks","created_at":"2026-10-26T14:35:07Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":5,"dependent_count":0,"comment_count":0} {"_type":"issue","id":"videoreg-kbh.16","title":"Model/canonicalName cleaning leaks form-factor \u0026 descriptor words","description":"Verified on a live smoke run (2026 Yandex Market data). normalizer.cleanModelFromTitle/buildCanonicalModel leave non-model words in the canonical name, which will corrupt dedup/canonical grouping (kbh.7/kbh.11). Examples: title 'Видеорегистратор-зеркало iBOX Rover 2 автомобильный с базой камер' -\u003e canonicalName 'iBOX зеркало Rover 2 автомобильный' (should be ~'iBOX Rover 2'); 'iBOX F5 + WiFi с радар-детектором' -\u003e model retains 'с радар-детектором'. genericWords list lacks 'зеркало', standalone 'автомобильный', form-factor and feature tails. Fix: expand stopword/form-factor stripping and feature-tail removal; add fixtures from real titles.","status":"closed","priority":2,"issue_type":"bug","assignee":"E.Gavrilov","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-06-07T15:02:57Z","created_by":"E.Gavrilov","updated_at":"2026-07-30T23:00:47Z","started_at":"2026-07-30T21:52:03Z","closed_at":"2026-07-30T23:00:47Z","close_reason":"Canonical model cleanup has fixtures for the SPAWNSON and iBOX cases, and canonical name/model edits are preserved in admin moderation.","dependencies":[{"issue_id":"videoreg-kbh.16","depends_on_id":"videoreg-kbh","type":"parent-child","created_at":"2026-06-07T18:02:56Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":1,"comment_count":0} {"_type":"issue","id":"videoreg-nnv.1","title":"CI/CD pipelines + Swarm + Portainer + deploy scripts","description":"DONE: .gitea/workflows/{pr,master,ingestion}.yml, deploy/docker/Dockerfile.web, deploy/swarm/docker-stack.yml, deploy/portainer/{standalone,swarm} templates, deploy/scripts + deploy/remote ssh deploy/rollback + predeploy/smoke/release-manifest scripts.","status":"closed","priority":2,"issue_type":"feature","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-06-07T14:24:11Z","created_by":"E.Gavrilov","updated_at":"2026-06-07T14:24:35Z","closed_at":"2026-06-07T14:24:35Z","close_reason":"Implemented and verified in codebase (typecheck + 18 vitest tests pass)","dependencies":[{"issue_id":"videoreg-nnv.1","depends_on_id":"videoreg-nnv","type":"parent-child","created_at":"2026-06-07T17:24:11Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0} {"_type":"issue","id":"videoreg-seu.1","title":"Video registry app: primitive JSON DB, caching, health probes","description":"Working Next.js app: dashboard + register-video flow, primitive file-backed JSON DB (shared/db/primitiveJsonDb.ts → data/videoreg.json), process+tag+HTTP read caching with revalidateTag on writes, /health/live + /health/ready, /api/videos. Tested (vitest).","status":"closed","priority":2,"issue_type":"feature","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-06-07T14:24:10Z","created_by":"E.Gavrilov","updated_at":"2026-06-07T14:24:35Z","closed_at":"2026-06-07T14:24:35Z","close_reason":"Implemented and verified in codebase (typecheck + 18 vitest tests pass)","dependencies":[{"issue_id":"videoreg-seu.1","depends_on_id":"videoreg-seu","type":"parent-child","created_at":"2026-06-07T17:24:09Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0} diff --git a/.dockerignore b/.dockerignore index 8b946e6..f368704 100644 --- a/.dockerignore +++ b/.dockerignore @@ -11,3 +11,8 @@ coverage npm-debug.log* *.tsbuildinfo tasks + +docs +.beads +.local-run +web-front/legacy diff --git a/.gitea/workflows/rebuild-v2.yml b/.gitea/workflows/rebuild-v2.yml new file mode 100644 index 0000000..f48d9ed --- /dev/null +++ b/.gitea/workflows/rebuild-v2.yml @@ -0,0 +1,58 @@ +name: Rebuild V2 candidate verification +on: + push: + branches: [codex/videoreg-rebuild-v2] + workflow_dispatch: +jobs: + candidate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "22" + - run: npm ci --no-audit --no-fund + - name: Types, tests and complete static build + env: + COMMIT_SHA: ${{ github.sha }} + NEXT_TELEMETRY_DISABLED: "1" + run: npm run ci:quality + - name: Install pinned recovery verification dependencies + run: | + python3 -m venv .local-run/recovery-env + .local-run/recovery-env/bin/python -m pip install --disable-pip-version-check -r scripts/rebuild-v2/requirements.txt + - name: Validate complete export and safe preview + shell: bash + run: | + set -euo pipefail + py=.local-run/recovery-env/bin/python + "$py" scripts/rebuild-v2/check-preview.py + "$py" deploy/serve-local.py > "${RUNNER_TEMP}/videoreg-v2-preview.log" 2>&1 & + preview_pid=$! + trap 'kill "$preview_pid" 2>/dev/null || true' EXIT + base=$("$py" - "$preview_pid" <<'PYREADY' + import json, pathlib, sys, time, urllib.request + expected_pid = int(sys.argv[1]) + for attempt in range(50): + try: + state = json.loads(pathlib.Path('.local-run/server.json').read_text()) + if state['pid'] == expected_pid: + with urllib.request.urlopen(state['url'] + '/health/ready', timeout=1) as response: + if response.status == 200: + print(state['url']) + break + except (OSError, ValueError, KeyError): + pass + time.sleep(0.1) + else: + raise SystemExit('Candidate preview did not become ready') + PYREADY + ) + "$py" scripts/rebuild-v2/check-built.py --base "$base" + - name: Upload complete-candidate verification evidence + if: always() + uses: actions/upload-artifact@v4 + with: + name: videoreg-v2-built-crawl-${{ github.sha }} + path: docs/rebuild-v2/evidence/built-crawl.json + if-no-files-found: warn diff --git a/.gitignore b/.gitignore index c51f5fb..fe178a1 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,6 @@ npm-debug.log* web-front/out/ .playwright-cli/ .local-run/ + +__pycache__/ +*.pyc diff --git a/Dockerfile b/Dockerfile index ea8d8d5..36e376b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ FROM nginx:1.28-alpine COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf +COPY deploy/legacy-map.conf /etc/nginx/conf.d/00-videoreg-legacy.conf COPY web-front/out/ /usr/share/nginx/html/ EXPOSE 8080 HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 CMD wget -qO- http://127.0.0.1:8080/health/ready >/dev/null || exit 1 diff --git a/deploy/docker/Dockerfile.web b/deploy/docker/Dockerfile.web index b8f2b0e..076711b 100644 --- a/deploy/docker/Dockerfile.web +++ b/deploy/docker/Dockerfile.web @@ -9,6 +9,7 @@ COPY ingestion ingestion RUN npm run build FROM nginx:1.28-alpine COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf +COPY deploy/legacy-map.conf /etc/nginx/conf.d/00-videoreg-legacy.conf COPY --from=build /app/web-front/out/ /usr/share/nginx/html/ EXPOSE 8080 HEALTHCHECK --interval=30s --timeout=3s CMD wget -qO- http://127.0.0.1:8080/health/ready >/dev/null || exit 1 diff --git a/deploy/legacy-map.conf b/deploy/legacy-map.conf new file mode 100644 index 0000000..35d456d --- /dev/null +++ b/deploy/legacy-map.conf @@ -0,0 +1,23 @@ +# Generated by scripts/rebuild-v2/legacy-routes.py; exact query meaning only. +map "$uri|$args" $videoreg_legacy { + default ""; + "~^/index\\.shtml\\|$" "/system"; + "~^/moves\\.htm\\|$" "/demo.shtml#section-3"; + "~^/shop/index\\.php\\|(?=(?:[^&]*&)*categoryID=78(?:&|$))(?:categoryID=78)(?:&(?:categoryID=78))*$" "/catalog#section-1"; + "~^/shop/index\\.php\\|(?=(?:[^&]*&)*categoryID=79(?:&|$))(?:categoryID=79)(?:&(?:categoryID=79))*$" "/catalog#section-0"; + "~^/shop/index\\.php\\|(?=(?:[^&]*&)*categoryID=80(?:&|$))(?:categoryID=80)(?:&(?:categoryID=80))*$" "/catalog#section-3"; + "~^/shop/index\\.php\\|(?=(?:[^&]*&)*productID=132(?:&|$))(?:productID=132)(?:&(?:productID=132))*$" "/equipment/svk002-lqcd"; + "~^/shop/index\\.php\\|(?=(?:[^&]*&)*productID=133(?:&|$))(?:productID=133)(?:&(?:productID=133))*$" "/equipment/svk002-gps"; + "~^/shop/index\\.php\\|(?=(?:[^&]*&)*productID=137(?:&|$))(?:productID=137)(?:&(?:productID=137))*$" "/equipment/svk004"; + "~^/forum/index\\.php\\|(?:(?:sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*)?$" "/community"; + "~^/forum/index\\.php\\|(?=(?:[^&]*&)*c=2(?:&|$))(?:c=2|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:c=2|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" "/community"; + "~^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*t=184(?:&|$))(?:t=184|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:t=184|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" "/community/flash-start"; + "~^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*t=188(?:&|$))(?:t=188|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:t=188|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" "/community/usb-extension"; + "~^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*t=183(?:&|$))(?=(?:[^&]*&)*view=next(?:&|$))(?:t=183|view=next|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:t=183|view=next|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" "/community/flash-start"; + "~^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*t=8(?:&|$))(?=(?:[^&]*&)*view=next(?:&|$))(?:t=8|view=next|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:t=8|view=next|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" "/community/usb-extension"; + "~^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*p=220(?:&|$))(?:p=220|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:p=220|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" "/community/flash-start#section-0"; + "~^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*p=221(?:&|$))(?:p=221|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:p=221|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" "/community/flash-start#section-1"; + "~^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*p=223(?:&|$))(?:p=223|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:p=223|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" "/community/flash-start#section-2"; + "~^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*p=226(?:&|$))(?:p=226|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:p=226|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" "/community/usb-extension#section-0"; + "~^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*p=227(?:&|$))(?:p=227|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:p=227|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" "/community/usb-extension#section-1"; +} diff --git a/deploy/legacy-matchers.json b/deploy/legacy-matchers.json new file mode 100644 index 0000000..fc26271 --- /dev/null +++ b/deploy/legacy-matchers.json @@ -0,0 +1,97 @@ +[ + { + "original": "/index.shtml", + "destination": "/system", + "pattern": "^/index\\.shtml\\|$" + }, + { + "original": "/moves.htm", + "destination": "/demo.shtml#section-3", + "pattern": "^/moves\\.htm\\|$" + }, + { + "original": "/shop/index.php?categoryID=78", + "destination": "/catalog#section-1", + "pattern": "^/shop/index\\.php\\|(?=(?:[^&]*&)*categoryID=78(?:&|$))(?:categoryID=78)(?:&(?:categoryID=78))*$" + }, + { + "original": "/shop/index.php?categoryID=79", + "destination": "/catalog#section-0", + "pattern": "^/shop/index\\.php\\|(?=(?:[^&]*&)*categoryID=79(?:&|$))(?:categoryID=79)(?:&(?:categoryID=79))*$" + }, + { + "original": "/shop/index.php?categoryID=80", + "destination": "/catalog#section-3", + "pattern": "^/shop/index\\.php\\|(?=(?:[^&]*&)*categoryID=80(?:&|$))(?:categoryID=80)(?:&(?:categoryID=80))*$" + }, + { + "original": "/shop/index.php?productID=132", + "destination": "/equipment/svk002-lqcd", + "pattern": "^/shop/index\\.php\\|(?=(?:[^&]*&)*productID=132(?:&|$))(?:productID=132)(?:&(?:productID=132))*$" + }, + { + "original": "/shop/index.php?productID=133", + "destination": "/equipment/svk002-gps", + "pattern": "^/shop/index\\.php\\|(?=(?:[^&]*&)*productID=133(?:&|$))(?:productID=133)(?:&(?:productID=133))*$" + }, + { + "original": "/shop/index.php?productID=137", + "destination": "/equipment/svk004", + "pattern": "^/shop/index\\.php\\|(?=(?:[^&]*&)*productID=137(?:&|$))(?:productID=137)(?:&(?:productID=137))*$" + }, + { + "original": "/forum/index.php", + "destination": "/community", + "pattern": "^/forum/index\\.php\\|(?:(?:sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*)?$" + }, + { + "original": "/forum/index.php?c=2", + "destination": "/community", + "pattern": "^/forum/index\\.php\\|(?=(?:[^&]*&)*c=2(?:&|$))(?:c=2|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:c=2|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" + }, + { + "original": "/forum/viewtopic.php?t=184", + "destination": "/community/flash-start", + "pattern": "^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*t=184(?:&|$))(?:t=184|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:t=184|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" + }, + { + "original": "/forum/viewtopic.php?t=188", + "destination": "/community/usb-extension", + "pattern": "^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*t=188(?:&|$))(?:t=188|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:t=188|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" + }, + { + "original": "/forum/viewtopic.php?t=183&view=next", + "destination": "/community/flash-start", + "pattern": "^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*t=183(?:&|$))(?=(?:[^&]*&)*view=next(?:&|$))(?:t=183|view=next|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:t=183|view=next|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" + }, + { + "original": "/forum/viewtopic.php?t=8&view=next", + "destination": "/community/usb-extension", + "pattern": "^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*t=8(?:&|$))(?=(?:[^&]*&)*view=next(?:&|$))(?:t=8|view=next|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:t=8|view=next|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" + }, + { + "original": "/forum/viewtopic.php?p=220", + "destination": "/community/flash-start#section-0", + "pattern": "^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*p=220(?:&|$))(?:p=220|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:p=220|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" + }, + { + "original": "/forum/viewtopic.php?p=221", + "destination": "/community/flash-start#section-1", + "pattern": "^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*p=221(?:&|$))(?:p=221|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:p=221|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" + }, + { + "original": "/forum/viewtopic.php?p=223", + "destination": "/community/flash-start#section-2", + "pattern": "^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*p=223(?:&|$))(?:p=223|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:p=223|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" + }, + { + "original": "/forum/viewtopic.php?p=226", + "destination": "/community/usb-extension#section-0", + "pattern": "^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*p=226(?:&|$))(?:p=226|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:p=226|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" + }, + { + "original": "/forum/viewtopic.php?p=227", + "destination": "/community/usb-extension#section-1", + "pattern": "^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*p=227(?:&|$))(?:p=227|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:p=227|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" + } +] diff --git a/deploy/legacy-routes.json b/deploy/legacy-routes.json new file mode 100644 index 0000000..f22fb9b --- /dev/null +++ b/deploy/legacy-routes.json @@ -0,0 +1,21 @@ +{ + "/index.shtml": "/system", + "/moves.htm": "/demo.shtml#section-3", + "/shop/index.php?categoryID=78": "/catalog#section-1", + "/shop/index.php?categoryID=79": "/catalog#section-0", + "/shop/index.php?categoryID=80": "/catalog#section-3", + "/shop/index.php?productID=132": "/equipment/svk002-lqcd", + "/shop/index.php?productID=133": "/equipment/svk002-gps", + "/shop/index.php?productID=137": "/equipment/svk004", + "/forum/index.php": "/community", + "/forum/index.php?c=2": "/community", + "/forum/viewtopic.php?t=184": "/community/flash-start", + "/forum/viewtopic.php?t=188": "/community/usb-extension", + "/forum/viewtopic.php?t=183&view=next": "/community/flash-start", + "/forum/viewtopic.php?t=8&view=next": "/community/usb-extension", + "/forum/viewtopic.php?p=220": "/community/flash-start#section-0", + "/forum/viewtopic.php?p=221": "/community/flash-start#section-1", + "/forum/viewtopic.php?p=223": "/community/flash-start#section-2", + "/forum/viewtopic.php?p=226": "/community/usb-extension#section-0", + "/forum/viewtopic.php?p=227": "/community/usb-extension#section-1" +} diff --git a/deploy/nginx.conf b/deploy/nginx.conf index 9688428..aa9b213 100644 --- a/deploy/nginx.conf +++ b/deploy/nginx.conf @@ -5,10 +5,10 @@ server { charset utf-8; server_tokens off; absolute_redirect off; + if ($videoreg_legacy != "") { return 308 $videoreg_legacy; } add_header X-Content-Type-Options nosniff always; add_header Referrer-Policy strict-origin-when-cross-origin always; add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'; connect-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'" always; - location = /auto.shtml { return 308 /guides/choose; } location /api/ { return 404; } location ~ /showcase/?$ { return 404; } location /_next/static/ { expires 1y; add_header Cache-Control "public, immutable"; } diff --git a/deploy/serve-local.py b/deploy/serve-local.py index cc5bff6..75573bc 100644 --- a/deploy/serve-local.py +++ b/deploy/serve-local.py @@ -1,28 +1,110 @@ #!/usr/bin/env python3 -"""Preview the public static release on an OS-assigned local port.""" +"""Serve the reviewed static candidate, confined to its exported public tree.""" from http.server import ThreadingHTTPServer, SimpleHTTPRequestHandler from pathlib import Path -import json, os -ROOT=Path(__file__).resolve().parents[1] -OUT=ROOT/'web-front/out' +from urllib.parse import urlsplit, unquote +import json +import os +import re + +ROOT = Path(__file__).resolve().parents[1] +OUT = ROOT / 'web-front/out' + + +def resolve_public(root: Path, request_path: str): + path = unquote(urlsplit(request_path).path) + if '\\' in path or '..' in Path(path).parts or '\x00' in path: + return None + target = root / path.lstrip('/') + if not path.startswith('/health/') and Path(str(target) + '.html').is_file(): + target = Path(str(target) + '.html') + try: + target.resolve().relative_to(root.resolve()) + except (ValueError, OSError): + return None + return target + + +def legacy_destination(request_path: str): + """Redirect only an exact evidenced query or proved presentation defaults.""" + rules = json.loads((ROOT / 'deploy/legacy-matchers.json').read_text()) + parsed = urlsplit(request_path) + key = unquote(parsed.path) + '|' + parsed.query + for rule in rules: + if re.fullmatch(rule['pattern'], key): + return rule['destination'] + return None + + class Handler(SimpleHTTPRequestHandler): - def __init__(self,*args,**kwargs):super().__init__(*args,directory=str(OUT),**kwargs) + def __init__(self, *args, **kwargs): + super().__init__(*args, directory=str(OUT), **kwargs) + + def list_directory(self, path): + self.send_error(404) + return None + + def send_error(self, code, message=None, explain=None): + page = resolve_public(OUT, '/404.html') + if code == 404 and page and page.is_file(): + body = page.read_bytes() + self.send_response(404) + self.send_header('Content-Type', 'text/html; charset=utf-8') + self.send_header('Content-Length', str(len(body))) + self.end_headers() + if self.command != 'HEAD': + self.wfile.write(body) + return + super().send_error(code, message, explain) + + def copyfile(self, source, outputfile): + if self.command != "HEAD": + super().copyfile(source, outputfile) + + def do_HEAD(self): + self.do_GET() + def do_POST(self): self.send_error(404) + def do_GET(self): - path=self.path.split('?',1)[0] - if path=='/auto.shtml': - self.send_response(308);self.send_header('Location','/guides/choose');self.end_headers();return + target = resolve_public(OUT, self.path) + if target is None: + self.send_error(404) + return + destination = legacy_destination(self.path) + if destination: + self.send_response(308) + self.send_header('Location', destination) + self.end_headers() + return + path = unquote(urlsplit(self.path).path) if path.startswith('/api/') or path.rstrip('/').endswith('/showcase'): - self.send_error(404);return - target=OUT/path.lstrip('/') + self.send_error(404) + return if path.startswith('/health/') and target.is_file(): - self.send_response(200);self.send_header('Content-Type','application/json');self.end_headers();self.wfile.write(target.read_bytes());return - if target.with_suffix('.html').is_file():self.path=path+'.html' + body = target.read_bytes() + self.send_response(200) + self.send_header('Content-Type', 'application/json') + self.send_header('Content-Length', str(len(body))) + self.end_headers() + if self.command != "HEAD": + self.wfile.write(body) + return + relative = target.relative_to(OUT).as_posix() + self.path = '/' if relative == '.' else '/' + relative super().do_GET() -httpd=ThreadingHTTPServer(('127.0.0.1',0),Handler) -runtime=ROOT/'.local-run';runtime.mkdir(exist_ok=True) -state=dict(port=httpd.server_port,pid=os.getpid(),url=f'http://127.0.0.1:{httpd.server_port}') -(runtime/'server.json').write_text(json.dumps(state,indent=2)+'\n') -print(json.dumps(state),flush=True) -httpd.serve_forever() + + +def main(): + httpd = ThreadingHTTPServer(('127.0.0.1', int(os.environ.get('VIDEOREG_PREVIEW_PORT', '0'))), Handler) + runtime = ROOT / '.local-run' + runtime.mkdir(exist_ok=True) + state = dict(port=httpd.server_port, pid=os.getpid(), url=f'http://127.0.0.1:{httpd.server_port}') + (runtime / 'server.json').write_text(json.dumps(state, indent=2) + '\n') + print(json.dumps(state), flush=True) + httpd.serve_forever() + + +if __name__ == '__main__': + main() diff --git a/deploy/stack.yml b/deploy/stack.yml index 2aeefac..0196ef5 100644 --- a/deploy/stack.yml +++ b/deploy/stack.yml @@ -25,7 +25,7 @@ services: labels: - "traefik.enable=true" - "traefik.docker.network=${TRAEFIK_NETWORK:-traefik-public}" - - "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`) && PathPrefix(`/`)" + - "traefik.http.routers.${STACK_NAME}.rule=(Host(`${DOMAIN}`) || Host(`www.${DOMAIN}`)) && PathPrefix(`/`)" - "traefik.http.routers.${STACK_NAME}.priority=100" - "traefik.http.routers.${STACK_NAME}.entrypoints=${TRAEFIK_ENTRYPOINTS:-websecure}" - "traefik.http.routers.${STACK_NAME}.tls=${TRAEFIK_TLS:-true}" diff --git a/scripts/rebuild-v2/browser-functional.js b/scripts/rebuild-v2/browser-functional.js new file mode 100644 index 0000000..50f2870 --- /dev/null +++ b/scripts/rebuild-v2/browser-functional.js @@ -0,0 +1,26 @@ +async page => { + const base='http://127.0.0.1:50541'; + const errors=[];page.on('pageerror', e=>errors.push(e.message)); + const checks=[]; + function check(name,ok,actual){checks.push({name,passed:!!ok,actual});if(!ok) throw new Error(name+': '+JSON.stringify(actual));} + await page.setViewportSize({width:360,height:800}); + await page.goto(base+'/library'); + await page.locator('#library-query').fill('GPS'); + let count=await page.locator('.search-results>a').count();check('full body search GPS',count>0,count); + await page.locator('#library-query').fill('невозможныйзапрос98765');check('unknown search empty',await page.locator('.empty').isVisible(),await page.locator('.result-count').innerText()); + await page.getByRole('button',{name:'Показать все материалы'}).click();count=await page.locator('.search-results>a').count();check('reset all articles',count>=27,count); + const category=await page.locator('#library-category option').nth(1).textContent();await page.locator('#library-category').selectOption({label:category});const kinds=await page.locator('.search-kind').allTextContents();check('category filter',kinds.length>0&&kinds.every(k=>k.includes(category)),{category,kinds}); + await page.getByRole('button',{name:'Сбросить',exact:true}).click(); + await page.locator('#library-query').focus();await page.keyboard.press('Tab');check('keyboard search reset',await page.evaluate(()=>document.activeElement?.textContent?.trim()==='Сбросить'),await page.evaluate(()=>document.activeElement?.outerHTML)); + await page.goto(base+'/tools/recording-time'); + await page.getByLabel('Ёмкость носителя, ГБ').fill('1');await page.getByLabel('Средний размер одного JPEG, КБ').fill('100');await page.getByLabel('Кадров/с на камеру').fill('5');await page.getByLabel('Число камер').fill('2');await page.getByLabel('Резерв места, %').fill('0'); + let result=await page.locator('.time-result strong').innerText();check('JPEG known result',result==='0 ч 16 мин 40 с',result); + await page.getByLabel('Число камер').fill('1.5');result=await page.locator('.time-result strong').innerText();check('fractional cameras rejected',result==='Проверьте значения',result); + await page.getByLabel('Число камер').fill('2');await page.getByLabel('Ёмкость носителя, ГБ').fill('');check('empty capacity rejected',(await page.locator('.time-result strong').innerText())==='Проверьте значения'); + await page.getByLabel('Видеопоток',{exact:true}).check();await page.getByLabel('Ёмкость носителя, ГБ').fill('128');await page.getByLabel('Суммарный битрейт, Мбит/с').fill('40');await page.getByLabel('Резерв места, %').fill('10');result=await page.locator('.time-result strong').innerText();check('stream known result',result==='6 ч 24 мин 0 с',result); + await page.getByLabel('Резерв места, %').fill('100');check('full reserve rejected',(await page.locator('.time-result strong').innerText())==='Проверьте значения'); + await page.goto(base+'/samples/rain');const before=await page.locator('.frame-gallery img').count();const show=page.getByRole('button',{name:/Показать/});await show.click();const after=await page.locator('.frame-gallery img').count();check('gallery expands actual recovered frames',before===6&&after>before,{before,after}); + const missing=await page.goto(base+'/this-original-page-does-not-exist');check('real404',missing.status()===404,missing.status()); + check('no browser runtime errors',errors.length===0,errors); + return {base,viewport:{width:360,height:800},checks,errors}; +} diff --git a/scripts/rebuild-v2/check-built.py b/scripts/rebuild-v2/check-built.py new file mode 100644 index 0000000..372b250 --- /dev/null +++ b/scripts/rebuild-v2/check-built.py @@ -0,0 +1,558 @@ +#!/usr/bin/env python3 +"""Audit the entire exported candidate, not a handpicked endpoint sample. + +Run with .local-run/recovery-env/bin/python scripts/rebuild-v2/check-built.py. +The crawler never fetches external destinations; exact page/anchor approvals are +checked locally. Browser interaction remains a separate, explicitly named check. +Unresolved archive inventory produces a blocked restoration result, even when +all published-page checks succeed. No build, deployment or Git mutation occurs. +""" +from __future__ import annotations + +import argparse +from collections import Counter, defaultdict +from datetime import datetime, timezone +import hashlib +import json +from pathlib import Path +import re +import subprocess +import sys +from urllib.parse import unquote, urldefrag, urljoin, urlsplit, urlunsplit + +try: + from bs4 import BeautifulSoup + from PIL import Image +except ImportError: + raise SystemExit("Use .local-run/recovery-env/bin/python; requirements are pinned in scripts/rebuild-v2/requirements.txt") + +ROOT = Path(__file__).resolve().parents[2] +INTERNAL_HOSTS = {"videoreg.ru", "www.videoreg.ru"} +ATTRS = ("href", "src", "poster", "action", "formaction", "data", "cite", "background", "longdesc", "manifest", "xlink:href") +CSS_URL = re.compile(r"url\(\s*(['\"]?)(.*?)\1\s*\)", re.I | re.S) +CSS_IMPORT = re.compile(r"@import\s+(['\"])(.*?)\1", re.I) +JS_STRING = re.compile(r'"(?:\\.|[^"\\])*"|\'(?:\\.|[^\'\\])*\'') +ABSOLUTE_URL = re.compile(r"(?:https?:)?//[^\s<>\"'`\\]+", re.I) +SOURCE_ATTR = re.compile(r"\b(href|src|poster|action|formaction)\s*=\s*(?:\{\s*)?[\"']([^\"']+)[\"']", re.I) +SPAM = re.compile(r"казино|покер|онлайн[ -]?ставк|ставки на спорт|payday loan|buy viagra|порно|букмекер", re.I) +ERROR_BODY = re.compile(r"wayback machine (?:has not|hasn.t)|this url has been excluded|access denied|too many requests|just a moment\.\.\.|page cannot be crawled", re.I) +SELF_REFERENCE = re.compile(r"(?:создан[аоы]?|нарисован[аоы]?|написан[аоы]?)\s+(?:в\s+)?2026|created by AI|сгенерирован[аоы]? (?:ИИ|AI)", re.I) + + +def sha(data: bytes) -> str: + return hashlib.sha256(data).hexdigest() + + +def read_json(path: Path, default): + return json.loads(path.read_text()) if path.is_file() else default + + +def confined(path: Path, root: Path) -> Path | None: + try: + resolved = path.resolve(strict=False) + resolved.relative_to(root.resolve()) + return resolved + except (ValueError, OSError, RuntimeError): + return None + + +def tree_manifest(root: Path, predicate=lambda p: True): + entries = [] + rejected = [] + if root.exists(): + for path in sorted(root.rglob("*")): + if not path.is_file() or not predicate(path): + continue + selected = confined(path, root) + if selected is None: + rejected.append(str(path.relative_to(root))) + continue + entries.append({"path": path.relative_to(root).as_posix(), "sha256": sha(selected.read_bytes()), "bytes": selected.stat().st_size}) + return entries, rejected + + +def manifest_hash(entries): + return sha(json.dumps(entries, ensure_ascii=False, sort_keys=True, separators=(",", ":")).encode()) + + +def route_for(relative: str) -> str: + if relative == "index.html": + return "/" + if relative.endswith("/index.html"): + return "/" + relative[:-len("index.html")] + return "/" + relative[:-len(".html")] + + +def normalize_path(path: str) -> str: + if path != "/" and path.endswith("/"): + return path.rstrip("/") + return path or "/" + + +def split_srcset(value: str): + # Data URI commas must not be mistaken for separate candidate URLs. + for candidate in re.split(r",\s*(?![^\s]*;base64)", value): + candidate = candidate.strip() + if candidate: + yield candidate.split()[0] + + +def extract_html(data: bytes, source: str, stage: str): + soup = BeautifulSoup(data, "html.parser") + occurrences = [] + for node in soup.find_all(True): + context = node.get_text(" ", strip=True)[:240] or node.get("alt", "") or node.name + for attribute in ATTRS: + value = node.get(attribute) + if isinstance(value, str) and value.strip(): + occurrences.append(dict(stage=stage, sourcePage=source, element=node.name, attribute=attribute, context=context, destination=value.strip())) + for attribute in ("srcset", "imagesrcset"): + value = node.get(attribute) + if isinstance(value, str): + for candidate in split_srcset(value): + occurrences.append(dict(stage=stage, sourcePage=source, element=node.name, attribute=attribute, context=context, destination=candidate)) + if node.get("style"): + for _, value in CSS_URL.findall(node["style"]): + occurrences.append(dict(stage=stage, sourcePage=source, element=node.name, attribute="style:url", context=context, destination=value)) + if node.name == "style": + for _, value in CSS_URL.findall(node.get_text()): + occurrences.append(dict(stage=stage, sourcePage=source, element="style", attribute="url", context="embedded stylesheet", destination=value)) + if node.name == "meta" and str(node.get("http-equiv", "")).lower() == "refresh": + refresh = re.search(r"url\s*=\s*(.+)", node.get("content", ""), re.I) + if refresh: + occurrences.append(dict(stage=stage, sourcePage=source, element="meta", attribute="refresh", context="automatic navigation", destination=refresh.group(1).strip(" '\""))) + if node.name == "script" and not node.get("src"): + for value in ABSOLUTE_URL.findall(node.get_text()): + occurrences.append(dict(stage=stage, sourcePage=source, element="script", attribute="inline-url", context="embedded script string (may be inert serialized data)", destination=value.rstrip("),.;"))) + return soup, occurrences + + +def anchor_text(value): + # The public template appends a decorative external-link arrow. + return re.sub(r"\s+↗$", "", value).strip() + + +def inert_script_constant(value, context): + namespaces = {"http://www.w3.org/1999/xhtml", "http://www.w3.org/2000/svg", "http://www.w3.org/1998/Math/MathML", "http://www.w3.org/1999/xlink", "http://www.w3.org/XML/1998/namespace"} + if value in namespaces: + return "Exact DOM/XML namespace identifier, not a network request" + if value in {"https://github.com/zloirock/core-js", "https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE"} and any(token in context for token in ("license:", "source:", "copyright:")): + return "core-js source/license metadata in bundled polyfill" + fixtures = {"https://a", "https://a/c%20d?a=1&c=3", "https://a@b", "https://тест", "https://a#б", "https://x"} + if value in fixtures and "URL" in context: + return "core-js local URL/URLSearchParams conformance fixture; no fetch" + if value == "http://n" and ("URL" in context or "getLocationOrigin" in context): + return "Next URL parser's local dummy base for server-side normalization" + if value in {"https://react.dev/errors/", "https://nextjs.org/docs/messages/", "https://nextjs.org/docs/messages"}: + return "Bundled framework error-message documentation prefix, not a resource load" + return None + + +def local_or_external(destination: str, owner: str, base: str): + destination = destination.strip() + if not destination: + return "ignored", None + if destination.startswith(("data:", "blob:")): + return "embedded", destination + if destination.lower().startswith(("javascript:", "vbscript:")): + return "unsafe-scheme", destination + if destination.startswith(("mailto:", "tel:", "ftp:")): + return "external", destination + parsed = urlsplit(urljoin(base.rstrip("/") + owner, destination)) + base_host = urlsplit(base).hostname + if parsed.scheme not in ("http", "https"): + return "unsupported-scheme", destination + if parsed.hostname in INTERNAL_HOSTS | {base_host}: + return "local", urlunsplit(("", "", parsed.path or "/", parsed.query, parsed.fragment)) + return "external", urlunsplit(parsed) + + +def locate_export(out: Path, url: str): + path = unquote(urlsplit(url).path) + if "\\" in path or "\x00" in path or ".." in Path(path).parts: + return None + raw = out / path.lstrip("/") + for selected in [raw, Path(str(raw) + ".html"), raw / "index.html"]: + resolved = confined(selected, out) + if resolved is not None and resolved.is_file(): + return resolved + return None + + +def body_details(soup, route, error_document=False): + title = soup.title.get_text(" ", strip=True) if soup.title else "" + main = soup.find("article") or soup.find("main") or soup.body + if main is None: + return dict(title=title, bodyChars=0, words=0, bodySha256=sha(b""), findings=["missing-main-body"], ids=[]) + text_soup = BeautifulSoup(str(main), "html.parser") + for element in text_soup.select("script,style,nav,header,footer,.related-reading,.contents,[hidden],[aria-hidden=true]"): + element.decompose() + text = " ".join(text_soup.stripped_strings) + normalized = re.sub(r"\s+", " ", text.lower()).strip() + findings = [] + is_article = soup.find("article") is not None + if not error_document: + if not title: + findings.append("missing-title") + if is_article and (len(text) < 300 or len(text.split()) < 40): + findings.append("thin-article-needs-editorial-review") + if ERROR_BODY.search(text): + findings.append("possible-archive-or-antibot-error-body") + if SPAM.search(text): + findings.append("spam-keyword-needs-context-review") + if SELF_REFERENCE.search(text): + findings.append("self-referential-creation-copy") + return dict(title=title, bodyChars=len(text), words=len(text.split()), bodySha256=sha(normalized.encode()), findings=findings, ids=sorted({n.get("id") for n in soup.find_all(id=True)}), article=is_article, images=len(soup.find_all("img")), tables=len(soup.find_all("table")), codeBlocks=len(soup.find_all("pre"))) + + +def active_source_files(): + src = ROOT / "web-front/src" + pending = list((src / "app").rglob("*.tsx")) + list((src / "app").rglob("*.ts")) + seen = set() + while pending: + path = pending.pop() + safe = confined(path, src) + if safe is None or not safe.is_file() or safe in seen: + continue + seen.add(safe) + if safe.suffix not in (".ts", ".tsx", ".js", ".jsx", ".css"): + continue + text = safe.read_text() + for target in re.findall(r"(?:import|export).*?(?:from\s*)?[\"']([^\"']+)[\"']", text): + if target.startswith("@/"): + stem = src / target[2:] + elif target.startswith("."): + stem = safe.parent / target + else: + continue + candidates = [stem, *[Path(str(stem) + suffix) for suffix in (".ts", ".tsx", ".js", ".jsx", ".json", ".css")], stem / "index.ts", stem / "index.tsx"] + pending.extend(p for p in candidates if p.is_file()) + return sorted(seen) + + +def source_occurrences(files): + occurrences = [] + for path in files: + text = path.read_text() + relative = path.relative_to(ROOT).as_posix() + if path.suffix == ".json": + try: + data = json.loads(text) + except json.JSONDecodeError: + continue + # Approval metadata is reviewed evidence, not an emitted destination. + if path.name == "v2-link-approvals.json": + continue + def visit(value, context=""): + if isinstance(value, dict): + for key, item in value.items(): + if key in ("href", "src", "poster", "action", "formaction", "url") and isinstance(item, str): + occurrences.append(dict(stage="active-source", sourceFile=relative, attribute=key, context=str(value.get("label") or value.get("alt") or context)[:240], destination=item)) + visit(item, str(value.get("title") or value.get("path") or context)) + elif isinstance(value, list): + for item in value: + visit(item, context) + visit(data) + else: + for match in SOURCE_ATTR.finditer(text): + occurrences.append(dict(stage="active-source", sourceFile=relative, line=text[:match.start()].count("\n") + 1, attribute=match.group(1), context=text[max(0, match.start()-90):match.end()+90].strip()[:240], destination=match.group(2))) + for _, value in CSS_URL.findall(text) + CSS_IMPORT.findall(text): + occurrences.append(dict(stage="active-source", sourceFile=relative, attribute="css:url", context="stylesheet reference", destination=value)) + return occurrences + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--base", help="Running local or public HTTP base; defaults to .local-run/server.json") + parser.add_argument("--origin", help="Explicit diagnostic HTTPS origin IP (requires --insecure-origin for untrusted certificate)") + parser.add_argument("--insecure-origin", action="store_true", help="Diagnostic only; never records TLS as verified") + parser.add_argument("--out", type=Path, default=ROOT / "web-front/out") + parser.add_argument("--inventory", type=Path, default=ROOT / "docs/rebuild-v2/url-inventory.json") + parser.add_argument("--approvals", type=Path, default=ROOT / "web-front/src/content/v2-link-approvals.json") + parser.add_argument("--report", type=Path, default=ROOT / "docs/rebuild-v2/evidence/built-crawl.json") + args = parser.parse_args() + base = (args.base or read_json(ROOT / ".local-run/server.json", {}).get("url", "")).rstrip("/") + if urlsplit(base).scheme not in ("http", "https") or not urlsplit(base).hostname: + parser.error("Provide an http(s) --base or start the local preview") + if args.insecure_origin and not args.origin: + parser.error("--insecure-origin is allowed only for an explicit diagnostic --origin") + out = args.out.resolve() + if not out.is_dir(): + parser.error("Missing export; owner must build candidate first") + before, unsafe_files = tree_manifest(out) + source_files = active_source_files() + source_before = [{"path": p.relative_to(ROOT).as_posix(), "sha256": sha(p.read_bytes())} for p in source_files] + approvals = read_json(args.approvals, []) + inventory = read_json(args.inventory, []) + legacy = read_json(ROOT / "deploy/legacy-routes.json", {}) + errors = [{"kind": "export-file-outside-root", "file": x} for x in unsafe_files] + warnings = [] + responses = {} + http_checks = [] + request_urls = set() + + def request(url, method="GET"): + url = urldefrag(url)[0] + key = method, url + if key in responses: + return responses[key] + cmd = ["curl", "-sS", "--max-time", "20", "--path-as-is", "-D", "-", "-w", "\n__VIDEOREG_STATUS__:%{http_code}"] + cmd += ["--head"] if method == "HEAD" else ["-X", method] + if args.origin: + cmd += ["--resolve", f"{urlsplit(base).hostname}:443:{args.origin}"] + if args.insecure_origin: + cmd += ["-k"] + cmd += [base + url] + result = subprocess.run(cmd, capture_output=True) + status_marker = b"\n__VIDEOREG_STATUS__:" + prefix, _, raw_status = result.stdout.rpartition(status_marker) + status = int(raw_status) if raw_status.isdigit() else 0 + # curl can prepend HTTP CONNECT/interim headers; choose final header block. + content = prefix + headers = {} + while content.startswith(b"HTTP/"): + boundary = content.find(b"\r\n\r\n") + length = 4 + if boundary < 0: + boundary = content.find(b"\n\n"); length = 2 + if boundary < 0: + break + header_block, content = content[:boundary], content[boundary+length:] + headers = {} + for line in header_block.splitlines()[1:]: + if b":" in line: + name, value = line.split(b":", 1) + headers[name.decode().lower()] = value.decode(errors="replace").strip() + value = dict(status=status, headers=headers, body=content, returncode=result.returncode, error=result.stderr.decode(errors="replace")[:1000]) + responses[key] = value + request_urls.add(url) + http_checks.append(dict(url=url, method=method, status=status, curlReturncode=result.returncode, bytes=len(content), location=headers.get("location"), contentType=headers.get("content-type"))) + return value + + pages = [] + occurrences = [] + script_constants = [] + asset_checks = [] + page_by_file = {} + for entry in before: + relative = entry["path"] + if not relative.endswith(".html"): + continue + path = out / relative + data = path.read_bytes() + route = route_for(relative) + error_document = relative in ("404.html", "_not-found.html") + soup, found = extract_html(data, route, "generated-html") + detail = body_details(soup, route, error_document) + row = dict(file=relative, route=route, sha256=entry["sha256"], bytes=entry["bytes"], errorDocument=error_document, **detail) + response = request("/" + relative if error_document else route) + row["httpStatus"] = response["status"] + row["httpSha256"] = sha(response["body"]) + if not error_document and response["status"] != 200: + errors.append(dict(kind="published-page-http-status", route=route, status=response["status"])) + if not error_document and response["status"] == 200 and response["body"] != data: + errors.append(dict(kind="http-build-body-mismatch", route=route, file=relative)) + pages.append(row) + page_by_file[path.resolve()] = row + occurrences.extend(found) + for finding in row["findings"]: + warnings.append(dict(kind=finding, route=route)) + if not pages: + errors.append(dict(kind="empty-export-no-html")) + + # Decode every exported raster asset, including unlinked public files. + # Files are confined above; PIL verification never executes image content. + for entry in before: + path = out / entry["path"] + if path.suffix.lower() in (".png", ".jpg", ".jpeg", ".gif", ".webp", ".ico"): + try: + with Image.open(path) as image: + width, height = image.size + image.verify() + asset_checks.append(dict(file=entry["path"], type="raster", valid=True, width=width, height=height, sha256=entry["sha256"])) + except Exception as exc: + asset_checks.append(dict(file=entry["path"], type="raster", valid=False, error=str(exc))) + errors.append(dict(kind="invalid-raster-image", file=entry["path"], error=str(exc))) + elif path.suffix.lower() == ".pdf": + data = path.read_bytes() + valid = b"%PDF-" in data[:1024] and b"%%EOF" in data[-2048:] + asset_checks.append(dict(file=entry["path"], type="pdf-signature-and-eof", valid=valid, sha256=entry["sha256"])) + if not valid: + errors.append(dict(kind="invalid-pdf-signature", file=entry["path"])) + + # Scan every emitted CSS/JS/SVG, not only those linked from the homepage. + for entry in before: + path = out / entry["path"] + if path.suffix == ".svg": + _, found = extract_html(path.read_bytes(), "/" + entry["path"], "generated-svg") + occurrences.extend(found) + elif path.suffix in (".css", ".js", ".mjs"): + text = path.read_text(errors="replace") + for _, value in (CSS_URL.findall(text) if path.suffix == ".css" else []): + occurrences.append(dict(stage="generated-resource", sourcePage="/" + entry["path"], sourceFile=entry["path"], attribute="css:url", context="emitted resource", destination=value)) + for _, value in CSS_IMPORT.findall(text): + occurrences.append(dict(stage="generated-resource", sourcePage="/" + entry["path"], sourceFile=entry["path"], attribute="css:import", context="emitted stylesheet import", destination=value)) + if path.suffix in (".js", ".mjs"): + for match in JS_STRING.finditer(text): + value = match.group(0)[1:-1].replace("\\/", "/") + if not re.fullmatch(r"(?:https?:)?//[^\s<>\"'`]+", value): + continue + context = text[max(0, match.start()-180):match.end()+180] + reason = inert_script_constant(value, context) + if reason: + script_constants.append(dict(sourceFile=entry["path"], destination=value, context=context, classification="inert-code-constant", reviewed=True, reviewer="programmer-code-context", reason=reason)) + else: + occurrences.append(dict(stage="generated-script-string", sourcePage="/" + entry["path"], sourceFile=entry["path"], attribute="inline-url", context=context, destination=value)) + + local_refs = [] + outbound = [] + for occurrence in occurrences: + owner = occurrence.get("sourcePage", "/") + kind, destination = local_or_external(occurrence["destination"], owner, base) + occurrence["classification"] = kind + occurrence["resolvedDestination"] = destination + if kind in ("unsafe-scheme", "unsupported-scheme"): + errors.append(dict(kind="unsafe-or-unsupported-reference", **occurrence)) + elif kind == "external": + matching = [a for a in approvals if a.get("sourcePage") == owner and a.get("destination") == destination and a.get("anchor") == anchor_text(occurrence.get("context", "")) and a.get("reviewed") is True and a.get("decision") == "keep" and a.get("reason")] + if not matching and occurrence["attribute"] == "inline-url": + # Next serializes already emitted link props for hydration. This + # is approved only when the exact page/URL/anchor was emitted. + matching = [a for a in approvals if a.get("sourcePage") == owner and a.get("destination") == destination and a.get("reviewed") is True and a.get("decision") == "keep" and a.get("reason") and any(x.get("sourcePage") == owner and x.get("destination") == destination and anchor_text(x.get("context", "")) == a.get("anchor") and x.get("attribute") == "href" for x in occurrences)] + if matching: + occurrence["classification"] = "serialized-reference-of-approved-link" + occurrence["reviewed"] = bool(matching) + occurrence["approvalReason"] = matching[0]["reason"] if matching else None + outbound.append(occurrence) + if not matching: + errors.append(dict(kind="unapproved-external-occurrence", sourcePage=owner, destination=destination, context=occurrence.get("context"), stage=occurrence["stage"])) + elif kind == "local": + local_refs.append(occurrence) + url, fragment = urldefrag(destination) + selected = locate_export(out, url) + response = request(url) + if url in legacy: + expected = legacy[url] + if response["status"] != 308 or response["headers"].get("location") != expected: + errors.append(dict(kind="legacy-reference-mismatch", url=url, expected=expected, status=response["status"], location=response["headers"].get("location"))) + target_url, target_fragment = urldefrag(expected) + selected = locate_export(out, target_url) + fragment = target_fragment or fragment + elif response["status"] != 200: + errors.append(dict(kind="missing-local-reference", sourcePage=owner, destination=destination, status=response["status"], attribute=occurrence["attribute"])) + elif selected is None: + errors.append(dict(kind="local-reference-not-in-export", sourcePage=owner, destination=destination)) + if fragment and selected is not None: + target = page_by_file.get(selected) + if target and unquote(fragment) not in target["ids"]: + errors.append(dict(kind="missing-fragment", sourcePage=owner, destination=destination)) + if selected is not None and response["status"] == 200 and selected not in page_by_file and response["body"] != selected.read_bytes(): + errors.append(dict(kind="http-asset-body-mismatch", sourcePage=owner, destination=destination)) + if occurrence.get("element") == "img" and selected is not None and selected.stat().st_size == 0: + errors.append(dict(kind="empty-image", sourcePage=owner, destination=destination)) + + active_occurrences = source_occurrences(source_files) + for occurrence in active_occurrences: + kind, destination = local_or_external(occurrence["destination"], "/", base) + occurrence["classification"] = kind + if kind == "external": + occurrence["appearsInExport"] = any(x["resolvedDestination"] == destination for x in outbound) + occurrence["exactDestinationApproved"] = any(a.get("destination") == destination and a.get("reviewed") is True and a.get("decision") == "keep" for a in approvals) + if not occurrence["appearsInExport"] and not occurrence["exactDestinationApproved"]: + errors.append(dict(kind="source-external-not-reviewed", **occurrence)) + elif kind in ("unsafe-scheme", "unsupported-scheme"): + errors.append(dict(kind="unsafe-source-reference", **occurrence)) + + duplicates = [] + grouped = defaultdict(list) + for page in pages: + if page.get("article") and not page["errorDocument"]: + grouped[page["bodySha256"]].append(page["route"]) + for digest, routes in grouped.items(): + if len(routes) > 1: + duplicates.append(dict(bodySha256=digest, routes=routes)) + errors.append(dict(kind="duplicate-article-body", routes=routes)) + + source_publications = [] + generated_routes = {normalize_path(p["route"]) for p in pages if not p["errorDocument"]} + for source_file in source_files: + if source_file.name not in ("v2-articles.json", "v2-community.json"): + continue + for article in read_json(source_file, []): + route = article.get("path") + present = normalize_path(route or "") in generated_routes + source_publications.append(dict(path=route, title=article.get("title"), sourceFile=source_file.relative_to(ROOT).as_posix(), generated=present)) + if not present: + errors.append(dict(kind="typed-article-not-exported", route=route, sourceFile=source_file.relative_to(ROOT).as_posix())) + + legacy_results = [] + for original, destination in legacy.items(): + response = request(original) + target, fragment = urldefrag(destination) + target_response = request(target) + selected = locate_export(out, target) + passed = response["status"] == 308 and response["headers"].get("location") == destination and target_response["status"] == 200 and selected is not None + if fragment: + target_page = page_by_file.get(selected) + passed = passed and target_page is not None and fragment in target_page["ids"] + legacy_results.append(dict(original=original, destination=destination, status=response["status"], location=response["headers"].get("location"), targetStatus=target_response["status"], passed=bool(passed))) + if not passed: + errors.append(dict(kind="legacy-route-failed", **legacy_results[-1])) + + behavior = [] + for path, method, expected in [("/videoreg-v2-definitely-missing-page", "GET", 404), ("/api/videos", "GET", 404), ("/api/videos", "POST", 404), ("/_dev/showcase", "GET", 404), ("/", "HEAD", 200), ("/health/ready", "HEAD", 200), ("/forum/viewtopic.php?t=184&start=20", "GET", 404), ("/forum/viewtopic.php?t=184&highlight=word", "GET", 404), ("/forum/viewtopic.php?t=184&postorder=desc", "GET", 404)]: + response = request(path, method) + passed = response["status"] == expected + behavior.append(dict(path=path, method=method, expected=expected, status=response["status"], passed=passed)) + if not passed: + errors.append(dict(kind="http-behavior-failed", **behavior[-1])) + + inventory_results = [] + unresolved = [] + for item in inventory: + status = item.get("publicationStatus", "missing-status") + destination = item.get("currentDestination") + raw = item.get("rawFile") + raw_integrity = None + if raw and item.get("rawSha256"): + raw_path = confined(ROOT / raw, ROOT) + raw_integrity = raw_path is not None and raw_path.is_file() and sha(raw_path.read_bytes()) == item["rawSha256"] + if not raw_integrity: + errors.append(dict(kind="inventory-raw-hash-mismatch", originalUrl=item.get("originalUrl"), file=raw)) + row = dict(originalUrl=item.get("originalUrl"), type=item.get("type"), status=status, destination=destination, rawHashVerified=raw_integrity, reason=item.get("exclusionOrUnresolvedReason")) + if status.startswith("unresolved") or status == "missing-status": + unresolved.append(row) + elif status.startswith("excluded"): + if not item.get("exclusionOrUnresolvedReason"): + errors.append(dict(kind="inventory-exclusion-without-reason", originalUrl=item.get("originalUrl"))) + elif destination: + kind, url = local_or_external(destination, "/", base) + if kind != "local" or locate_export(out, url) is None: + errors.append(dict(kind="inventory-destination-missing", **row)) + else: + row["targetExists"] = True + selected = locate_export(out, url) + fragment = urlsplit(url).fragment + target_page = page_by_file.get(selected) + if fragment and target_page and unquote(fragment) not in target_page["ids"]: + errors.append(dict(kind="inventory-destination-fragment-missing", **row)) + else: + errors.append(dict(kind="inventory-published-without-destination", **row)) + inventory_results.append(row) + + after, _ = tree_manifest(out) + source_after = [{"path": p.relative_to(ROOT).as_posix(), "sha256": sha(p.read_bytes())} for p in source_files if p.is_file()] + if before != after: + errors.append(dict(kind="build-mutated-during-check")) + if source_before != source_after: + errors.append(dict(kind="source-mutated-during-check")) + git = subprocess.run(["git", "rev-parse", "HEAD"], cwd=ROOT, capture_output=True, text=True) + report = dict(schemaVersion=1, domain="videoreg.ru", generatedAt=datetime.now(timezone.utc).isoformat(), sourceCommit=git.stdout.strip(), sourceManifestSha256=manifest_hash(source_before), sourceFiles=source_before, exportManifestSha256=manifest_hash(before), exportFileCount=len(before), base=base, origin=args.origin, tlsVerified=False if args.insecure_origin else (True if base.startswith("https://") and all(x["curlReturncode"] == 0 for x in http_checks) else None), browserDOMInspection="not performed by this script; use separate exact-candidate browser evidence", summary=dict(technicalStatus="failed" if errors else "passed", restorationStatus="blocked-unresolved-inventory" if unresolved else "reconciled", acceptance="blocked" if errors or unresolved else "mechanical-checks-only-not-role-approval", htmlFiles=len(pages), contentPages=sum(not p["errorDocument"] for p in pages), HTTPRequests=len(http_checks), localReferences=len(local_refs), emittedExternalOccurrences=len(outbound), activeSourceFiles=len(source_files), inventoryItems=len(inventory), unresolvedInventoryItems=len(unresolved), suspiciousPages=len(warnings), errors=len(errors), decodedRasterAssets=sum(x["type"] == "raster" for x in asset_checks)), pages=pages, assetChecks=asset_checks, duplicateBodies=duplicates, suspiciousCandidates=warnings, errors=errors, localReferences=local_refs, outboundOccurrences=outbound, inertScriptConstants=script_constants, activeSourceReferences=active_occurrences, HTTPChecks=http_checks, legacyRoutes=legacy_results, sourcePublications=source_publications, behavior=behavior, coverage=dict(statusCounts=dict(Counter(x["status"] for x in inventory_results)), items=inventory_results, unresolved=unresolved), limitations=["No external page is fetched by this checker; approvals must contain independent editorial verification.", "HTML/CSS/script-string extraction detects static references. Live JavaScript interactions, crops and browser DOM are checked separately.", "Suspicious thin/spam/error flags require per-page editorial assessment; they are not automatically treated as spam exclusions.", "A reconciled inventory does not establish that the external discovery denominator is complete."]) + args.report.parent.mkdir(parents=True, exist_ok=True) + args.report.write_text(json.dumps(report, ensure_ascii=False, indent=2) + "\n") + print(json.dumps(dict(report=str(args.report.relative_to(ROOT) if args.report.is_relative_to(ROOT) else args.report), **report["summary"]), ensure_ascii=False)) + return 1 if errors or unresolved else 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/scripts/rebuild-v2/check-preview.py b/scripts/rebuild-v2/check-preview.py new file mode 100644 index 0000000..1404c6a --- /dev/null +++ b/scripts/rebuild-v2/check-preview.py @@ -0,0 +1,27 @@ +"""Behavioural checks for public path selection using harmless temporary files.""" +from pathlib import Path +import importlib.util,tempfile,unittest +spec=importlib.util.spec_from_file_location('preview',Path(__file__).resolve().parents[2]/'deploy/serve-local.py') +preview=importlib.util.module_from_spec(spec);spec.loader.exec_module(preview) +class PublicSelection(unittest.TestCase): + def test_selection_and_boundaries(self): + with tempfile.TemporaryDirectory(prefix='videoreg-v2-preview-test-') as d: + root=Path(d)/'public';root.mkdir();(root/'guide.html').write_text('public');(root/'auto.shtml.html').write_text('historic');outside=Path(d)/'harmless-test-sentinel.txt';outside.write_text('outside test fixture') + self.assertEqual(preview.resolve_public(root,'/guide'),root/'guide.html') + self.assertEqual(preview.resolve_public(root,'/auto.shtml'),root/'auto.shtml.html') + self.assertEqual(preview.resolve_public(root,'/'),root) + for path in ['/../harmless-test-sentinel.txt','/%2e%2e/harmless-test-sentinel.txt','/health/../../harmless-test-sentinel.txt']: + self.assertIsNone(preview.resolve_public(root,path),path) + (root/'outside.html').symlink_to(outside) + self.assertIsNone(preview.resolve_public(root,'/outside')) + self.assertIsNone(preview.resolve_public(root,'/outside.html')) + def test_only_evidenced_legacy_routes(self): + self.assertIsNone(preview.legacy_destination('/auto.shtml')) + self.assertEqual(preview.legacy_destination('/forum/viewtopic.php?sid=old&t=184&start=0'),'/community/flash-start') + self.assertIsNone(preview.legacy_destination('/forum/viewtopic.php?t=183')) + self.assertEqual(preview.legacy_destination('/forum/viewtopic.php?t=183&view=next'),'/community/flash-start') + for query in ['t=184&start=20','t=184&postdays=7','t=184&postorder=desc','t=184&highlight=USB','t=184&unknown=value','t=184&t=188']: + self.assertIsNone(preview.legacy_destination('/forum/viewtopic.php?'+query),query) + self.assertEqual(preview.legacy_destination('/forum/viewtopic.php?postorder=asc&t=184&start=0&sid=expired&highlight='),'/community/flash-start') + self.assertIsNone(preview.legacy_destination('/shop/index.php?productID=132&start=20')) +if __name__=='__main__':unittest.main() diff --git a/scripts/rebuild-v2/download-corpus.py b/scripts/rebuild-v2/download-corpus.py new file mode 100644 index 0000000..6ca4a5b --- /dev/null +++ b/scripts/rebuild-v2/download-corpus.py @@ -0,0 +1,31 @@ +#!/usr/bin/env python3 +from pathlib import Path +import json,hashlib,re,sys,concurrent.futures,time +from urllib.parse import urlsplit,parse_qsl,urlencode,quote +sys.path.insert(0,str(Path(__file__).parent));from fetch import fetch +ROOT=Path(__file__).resolve().parents[2];RAW=ROOT/'docs/rebuild-v2/raw' +def normalized(url): + u=urlsplit(url);q=[(k,v) for k,v in parse_qsl(u.query) if k!='sid'];return u.path+('?' +urlencode(sorted(q)) if q else '') +d=json.loads((RAW/'cdx-domain.json').read_text());groups={} +for r in d[1:]:groups.setdefault(normalized(r[2]),[]).append(dict(zip(d[0],r))) +plan=[] +for path,rows in groups.items(): + r=rows[0];kind='page';reason=None + if '/forum/' in path: + kind='forum-topic' if 'viewtopic.php?' in path else 'forum-listing' + if not any(x in path for x in ['viewtopic.php?','viewforum.php?','index.php']):reason='phpBB utility/auth/profile/search page, no original technical article body' + if '/shop/' in path: + kind='historic-product' if 'productID=' in path else 'historic-category' + if not any(x in path for x in ['productID=','categoryID=','aux_page=']):reason='Historic cart/shop utility or index; no live sales are being restored; inspect category/product pages separately' + if path.startswith('/stat/'):reason='Counter endpoint, excluded from publication' + name='pages/'+hashlib.sha256(path.encode()).hexdigest()[:16]+'.html' + plan.append(dict(originalUrl=r['original'],normalizedPath=path,type=kind,snapshot=r['timestamp'],rawFile='docs/rebuild-v2/raw/'+name,disposition='excluded-utility' if reason else 'fetch',reason=reason)) +(ROOT/'docs/rebuild-v2/discovery-plan.json').write_text(json.dumps(plan,ensure_ascii=False,indent=2)+'\n');(RAW/'pages').mkdir(exist_ok=True) +def work(item): + dest=ROOT/item['rawFile'] + if dest.exists() and dest.stat().st_size>500:return {'path':item['normalizedPath'],'cached':True} + url='https://web.archive.org/web/'+item['snapshot']+'id_/'+item['originalUrl'] + return fetch(url,'pages/'+dest.name,timeout=45) +with concurrent.futures.ThreadPoolExecutor(max_workers=2) as ex: + for out in ex.map(work,[p for p in plan if p['disposition']=='fetch']):pass +print('planned',len(plan),'fetch',sum(p['disposition']=='fetch' for p in plan),flush=True) diff --git a/scripts/rebuild-v2/fetch-semrush-referrers.py b/scripts/rebuild-v2/fetch-semrush-referrers.py new file mode 100644 index 0000000..b91f9d5 --- /dev/null +++ b/scripts/rebuild-v2/fetch-semrush-referrers.py @@ -0,0 +1,17 @@ +from pathlib import Path +import json,sys,hashlib,concurrent.futures +from bs4 import BeautifulSoup +from urllib.parse import urljoin,urlsplit +sys.path.insert(0,str(Path(__file__).parent));from fetch import fetch +P=Path(__file__).resolve().parents[2];D=P/'docs/rebuild-v2';urls=['https://2126.ru/forum/index.php?topic=27783.0','http://mtsc.khpi.edu.ua/article/view/47926','http://www.nissan4x4-club.ru/Forum/NISSAN_4x4/index.php?id=353180','https://forum.zarulem.ws/?showtopic=170164','http://terranoirk.ru/forums/viewtopic.php?p=28099'];out=[] +def work(url): + name='semrush-referrer-'+hashlib.sha256(url.encode()).hexdigest()[:14]+'.html';rec=fetch(url,name,25);row=dict(url=url,request=rec,purpose='Actual parent-observed Lost andVital backlink lead, not original videoreg body',videoregLinks=[],relatedDocumentLeads=[]) + if rec['httpStatus']=='200': + s=BeautifulSoup((P/rec['raw']).read_bytes(),'html.parser');row['title']=s.title.get_text(' ',strip=True) if s.title else None + for tag in s.find_all('a',href=True): + target=urljoin(url,tag['href']);context=' '.join(tag.parent.get_text(' ',strip=True).split())[:600] + if 'videoreg.ru' in target:row['videoregLinks'].append(dict(target=target,anchor=tag.get_text(' ',strip=True),context=context)) + elif any(x in target.lower() for x in ['.pdf','.zip','svk','videoreg','svk-lab']):row['relatedDocumentLeads'].append(dict(target=target,anchor=tag.get_text(' ',strip=True),context=context)) + return row +with concurrent.futures.ThreadPoolExecutor(max_workers=2) as ex:out=list(ex.map(work,urls)) +(D/'semrush/referrer-verification.json').write_text(json.dumps(dict(scope='5 explicitly supplied public referring URLs out of coordinator-observed18Lost-andVitalrows; remaining13notinvented',rows=out),ensure_ascii=False,indent=2)+'\n');print([(x['url'],x['request']['httpStatus'],len(x['videoregLinks']),len(x['relatedDocumentLeads'])) for x in out]) diff --git a/scripts/rebuild-v2/fetch.py b/scripts/rebuild-v2/fetch.py new file mode 100644 index 0000000..e7f88d2 --- /dev/null +++ b/scripts/rebuild-v2/fetch.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python3 +import argparse,hashlib,json,subprocess,time +from pathlib import Path +from urllib.parse import urlencode +ROOT=Path(__file__).resolve().parents[2] +RAW=ROOT/'docs/rebuild-v2/raw';RAW.mkdir(parents=True,exist_ok=True) +def fetch(url,name,timeout=65): + dest=RAW/name;headers=dest.with_suffix(dest.suffix+'.headers') + started=time.time() + r=subprocess.run(['curl','--compressed','-sS','-L','--max-time',str(timeout),'-D',str(headers),'-o',str(dest),'-w','%{http_code}\n%{url_effective}',url],capture_output=True,text=True) + if not dest.exists():dest.write_bytes(b'') + b=dest.read_bytes();parts=r.stdout.splitlines() + object_dir=RAW/'objects';object_dir.mkdir(exist_ok=True) + object_file=object_dir/(hashlib.sha256(b).hexdigest()+'.bin') + if not object_file.exists():object_file.write_bytes(b) + rec=dict(url=url,raw=str(dest.relative_to(ROOT)),immutableRaw=str(object_file.relative_to(ROOT)),sha256=hashlib.sha256(b).hexdigest(),bytes=len(b),httpStatus=parts[0] if parts else None,effectiveUrl=parts[1] if len(parts)>1 else None,curlExit=r.returncode,error=r.stderr.strip(),checkedAt=time.strftime('%Y-%m-%dT%H:%M:%SZ',time.gmtime()),seconds=round(time.time()-started,2)) + with (RAW/'requests.jsonl').open('a') as f:f.write(json.dumps(rec,ensure_ascii=False)+'\n') + print(json.dumps({k:rec[k] for k in ['raw','httpStatus','bytes','curlExit','error']}),flush=True) + return rec +if __name__=='__main__': + p=argparse.ArgumentParser();p.add_argument('url');p.add_argument('name');p.add_argument('--timeout',type=int,default=65);a=p.parse_args();fetch(a.url,a.name,a.timeout) diff --git a/scripts/rebuild-v2/inventory.py b/scripts/rebuild-v2/inventory.py new file mode 100644 index 0000000..fc3e498 --- /dev/null +++ b/scripts/rebuild-v2/inventory.py @@ -0,0 +1,105 @@ +from pathlib import Path +from urllib.parse import urlsplit,urljoin,parse_qsl,urlencode,unquote +import json,hashlib,re,collections,email.utils +from bs4 import BeautifulSoup +P=Path(__file__).resolve().parents[2];D=P/'docs/rebuild-v2';RAW=D/'raw' +plan=json.loads((D/'discovery-plan.json').read_text());by={x['normalizedPath']:x for x in plan} +articles=json.loads((P/'web-front/src/content/v2-articles.json').read_text())+json.loads((P/'web-front/src/content/v2-community.json').read_text()) +routes=json.loads((P/'deploy/legacy-routes.json').read_text());content_dest={src:a['path'] for a in articles for src in a['sourcePaths'] if src.startswith('/')} +# Recovered full source cards take precedence over changed later category labels. +commercial={'/price.shtml':'Historic sale prices, installer promotions and phone numbers removed. Models retained in /system and /catalog.', '/where.shtml':'Historic dealer/contact advertisements, including unrelated casino/HVAC paid links; no original technical article body.', '/shop/index.php?aux_page=aux1':'Historic ordering instructions and sales contacts, no technical body.', '/shop/index.php?aux_page=aux2':'Historic payment/delivery/consumer-terms page; obsolete commerce/terms not republished as current advice.'} +source_outbound=[];new_leads={};raw_integrity=[] +def norm(url): + u=urlsplit(url);params=[(k,v) for k,v in parse_qsl(u.query) if k!='sid'];return u.path+('?' +urlencode(sorted(params)) if params else '') +def canonical(url):return urlsplit(url).hostname in ('videoreg.ru','www.videoreg.ru') +def actual_snapshot(file,fallback): + h=Path(str(file)+'.headers') + if h.exists(): + m=re.findall(r'(?im)^memento-datetime:\s*(.+)$',h.read_text(errors='replace')) + if m: + try:return email.utils.parsedate_to_datetime(m[-1].strip()).strftime('%Y%m%d%H%M%S') + except:pass + return fallback +audit_plan=list(plan) +known_raw={x['rawFile'] for x in audit_plan} +for article in articles: + for raw_file in article['rawFiles']: + if raw_file.endswith('.html') and raw_file not in known_raw: + known_raw.add(raw_file) + original=next((p for p in article['sourcePaths'] if p.startswith('http')), 'http://www.videoreg.ru'+article['sourcePaths'][0] if article['sourcePaths'] else 'http://www.videoreg.ru/') + audit_plan.append(dict(normalizedPath=article['path'], originalUrl=original, rawFile=raw_file,snapshot=article['date'], reason=None)) +for item in audit_plan: + f=P/item['rawFile'] + if not (f.exists() and f.stat().st_size>500):continue + b=f.read_bytes();s=BeautifulSoup(b if '/gallery/' in str(f) or 'narod-' in str(f) else b.decode('cp1251',errors='replace'),'html.parser');item['_title']=s.title.get_text(' ',strip=True) if s.title else '';item['_text']=s.get_text(' ',strip=True);item['_sha']=hashlib.sha256(b).hexdigest();item['_actualSnapshot']=actual_snapshot(f,item['snapshot']) + for tag in s.find_all(True): + for attr in ['href','src','action','data','background']: + value=tag.get(attr) + if not isinstance(value,str) or not value.strip():continue + absolute=urljoin(item['originalUrl'],value) + context=' '.join(tag.get_text(' ',strip=True).split())[:220] or tag.get('alt','') or tag.name+' '+attr + if canonical(absolute): + u=urlsplit(absolute);key=norm(absolute) + if key not in by and not re.search(r'\.(?:gif|jpe?g|png|avi|zip|pdf|css|ico|bin)$',u.path,re.I) and u.path!='/': + if any(x in u.path for x in ['.shtml','.html','.htm','.php']):lead=new_leads.setdefault(key,dict(originalUrl=absolute,foundOn=[],context=context));lead['foundOn'].append(item['normalizedPath']) + if lead['context'] in ['подробнее...','a href','link href','img src'] and context not in ['подробнее...','a href','link href','img src']:lead['context']=context + continue + if absolute.startswith('#'):continue + if value.lower().startswith('javascript:'):reason='Old script-driven template interaction; no archived JavaScript is executed or carried to the new site.' + elif absolute.startswith('mailto:'):reason='Old sales/support contact; not republished as an active contact.' + elif re.search('казино|тур|тайланд|psp|бассейн|ворзел|кондиционер|хостинг|дилер|магазин|купить|установить|автоюрист',context,re.I):reason='Advertising/sales/paid-link context individually identified in this anchor; unrelated to technical body.' + elif 'youtube' in absolute or 'rutube' in absolute or 'video.yandex' in absolute:reason='Original demonstration host: archived Flash/embed removed. Exact verified video links, when retained, are separately approved per published page and anchor in v2-link-approvals.json; playable video bytes not recovered.' + elif tag.name in ('script','iframe','embed','object') or 'counter' in absolute or 'stat' in absolute:reason='Remote runtime/embed/counter removed; no downloaded runtime is executed.' + elif 'phpbb' in absolute:reason='Historical forum engine footer removed; no phpBB runtime is published. Technical observations are paraphrased with source dates.' + else:reason='Reviewed in original context: old partner, press, hosted sample or template reference is not needed for the edited technical body; omitted instead of carrying an unverified external destination.' + source_outbound.append(dict(stage='raw-source',sourcePage=item['normalizedPath'],sourceFile=item['rawFile'],snapshot=item['_actualSnapshot'],element=tag.name,attribute=attr,context=context,destination=absolute,decision='remove-from-publication',reason=reason,reviewed=True,reviewer='root-v2-editorial')) +# A URL-shaped script literal is reviewed even when it is not an HTML attribute. + for tag in s.find_all(['script','style']): + for url in re.findall(r'https?://[^\s"\'<>);]+',tag.get_text()): + if not canonical(url):source_outbound.append(dict(stage='raw-inline',sourcePage=item['normalizedPath'],sourceFile=item['rawFile'],snapshot=item['_actualSnapshot'],element=tag.name,attribute='literal',context=tag.get_text()[:200],destination=url,decision='remove-from-publication',reason='Untrusted archived script/style literal; no archived scripts/styles imported.',reviewed=True,reviewer='root-v2-editorial')) +# Additional exact aliases proved by named post anchors/canonical topic links in recovered raw threads. +for key,dest in routes.items(): + if key not in by:new_leads.setdefault(key,dict(originalUrl='http://www.videoreg.ru'+key,foundOn=['recovered canonical topic/post links or explicit equivalent routing'],context='Verified canonical/alias path')) +for src in content_dest: + if src not in by:new_leads.setdefault(src,dict(originalUrl='http://www.videoreg.ru'+src,foundOn=['recovered document link'],context='Original technical document')) +entries=[] +for key in sorted(set(by)|set(new_leads)): + item=by.get(key);lead=new_leads.get(key) + u=urlsplit(key);semantic=[(k,v) for k,v in parse_qsl(u.query) if not (k=='sid' or k=='start' and v=='0' or k=='postdays' and v=='0' or k=='postorder' and v=='asc' or k=='highlight' and not v)] + semanticKey=u.path+('?' +urlencode(sorted(semantic)) if semantic else '') + dest=content_dest.get(key) or routes.get(key) or routes.get(semanticKey) + f=P/item['rawFile'] if item else None;valid=bool(item and '_sha' in item) + reason=None;status='unresolved';action='Recover actual body; no generic substitute or inferred text from an anchor.';kind=item['type'] if item else 'linked-content-url' + if item and item['reason']:status='excluded-utility';reason=item['reason'];action='Not a historical content article.' + elif key in commercial:status='excluded-commercial';reason=commercial[key];action='Read full source, remove commerce/advertising; relevant model facts retained separately.' + elif dest: + if valid and key in content_dest:status='edited-recovered';action='Full recovered body read and edited into typed safe sections; advertisements removed.' + elif key=='/download/samples/zeiss_800_600_GPS_1.zip':status='partial-media-recovery';action='Original ZIP is truncated and unpublished. Four complete JPEG members validated by declared size/CRC and decoded locally; companion does not replace missing archive.' + elif key=='/download/svk-002-mn.pdf':status='recovered-document';action='Complete3page January2008 Mobile News SVK002 journal test, validated PDF and all pages read; original exact PDF available.' + elif key.startswith('/download/'):status='recovered-document';action='Validated original PDF extracted from original ZIP; complete document available.' + elif '/forum/index.php' in key:status='replacement-navigation';action='Read-only technical case navigation replaces obsolete interactive forum entry; missing topic bodies tracked individually.' + else:status='verified-equivalent';action='Mapped only through recovered same-page/section/canonical-post evidence; not counted as a newly recovered body.' + reason='Edited technical purpose retained; see per-page editorial ledger.' + elif item and key.startswith('/forum/viewforum.php') and valid:status='unresolved-listing';reason='Listing fetched and read; linked topics not all recovered, so not silently redirected to an incomplete body.' + elif 'mark=topics' in key:status='excluded-utility';reason='Mark-as-read interaction, not a content body.' + elif not item and any(x in key for x in ['/forum/login.php','/forum/profile.php','/forum/groupcp.php','/forum/search.php','/forum/memberlist.php','/forum/viewonline.php','/forum/posting.php','/forum/privmsg.php']):status='excluded-utility';reason='Linked authentication/profile/posting/search utility, not an original technical article.' + elif not item and '/shop/index.php' in key and not any(x in key for x in ['productID=','categoryID=']):status='excluded-utility';reason='Linked shop action, sort, cart, language or commercial utility; no original technical body.' + # Verify a linked original document by its actual extracted source, not HTTP200 alone. + title=item.get('_title') if item else (lead or {}).get('context') + entry=dict(originalUrl=item['originalUrl'] if item else lead['originalUrl'],normalizedPath=key,type=kind,chosenSnapshot=item.get('_actualSnapshot',item['snapshot']) if item and valid else None,requestedSnapshot=item.get('snapshot') if item else None,fetchStatus='validated-html-body' if valid else ('not-fetched-utility' if status.startswith('excluded') else 'unresolved'),rawFile=item['rawFile'] if valid else None,rawSha256=item.get('_sha') if item else None,title=title,rawVisibleTextChars=len(item.get('_text','')) if item else 0,currentDestination=dest,editorialAction=action,publicationStatus=status,exclusionOrUnresolvedReason=reason or 'No validated source body recovered after actual capture/version/URL attempts; restoration remains blocked.',discoveredFrom=(lead or {}).get('foundOn',[])) + entries.append(entry) +(D/'url-inventory.json').write_text(json.dumps(entries,ensure_ascii=False,indent=2)+'\n') +(D/'outbound-links.json').write_text(json.dumps(dict(scope='Every external HTML attribute and inline URL in all fetched source pages. Public-source/build/DOM stages appended by verification script.',links=source_outbound),ensure_ascii=False,indent=2)+'\n') +semrush=D/'semrush';semrush.mkdir(exist_ok=True) +(semrush/'recovery-questions.json').write_text(json.dumps(dict(domain='videoreg.ru',scope=['apex','www'],status='awaiting actual coordinator Noxtools/Semrush evidence; not inspected by domain executor',missing=[dict(path=x['normalizedPath'],url=x['originalUrl'],title=x['title'],source=x['discoveredFrom']) for x in entries if x['publicationStatus'].startswith('unresolved')],questions=['Lost backlink targets beyond the CDX/HTML link union?','Exact titles and context for predpr.shtml, moves.htm, law1.htm, law2.htm and unindexed product/topic paths?','Separate manufacturer technical pages from later casino/real-estate/SEO anchors.','Record database, report scope/date, limits and first/last-seen dates.'],currentKnownEvidence='CDX883HTMLcaptures;259allresourceURLkeys; body recovery recorded per URL; all distinct pre/post2015 versions tried on missing indexed content.'),ensure_ascii=False,indent=2)+'\n') +counts=collections.Counter(e['publicationStatus'] for e in entries);meaningful=[e for e in entries if not e['publicationStatus'].startswith('excluded')] +body_captures=sum('_sha'in x for x in plan) +text=f'''# Coverage V2 — known denominator, unresolved restoration\n\nCDX discovery: 883 HTML captures across 2007–2025; 121 collapsed HTML URL keys and 259 resource URL keys. Removing phpBB sid duplicates gives101 original normalized HTML URLs. Full CDX JSON has no resume key, so returned index is complete for the actual query (all883 originals were HTTP;528www and355apex; no HTTPS200 captures returned). Linked original URLs from every fetched body expand the known inventory. Unfetched bodies may contain further undiscovered links: this is a **known lower bound**, not a complete historical-site claim.\n\nKnown normalized URLs in inventory: **{len(entries)}**. Meaningful/non-utility denominator (including unresolved): **{len(meaningful)}**. Actual validated fetched HTML bodies: **{body_captures}** (includes commercial/navigation pages; not all are published articles). Publication dispositions:\n\n'''+''.join(f'- {k}: {v}\n' for k,v in sorted(counts.items()))+'''\nEach entry has URL/type/snapshot/raw hash/title/body size/destination/editorial action/status/reason in `url-inventory.json`. `edited-recovered` counts source URLs, not unique articles; canonical merges and verified equivalents are separate. Typed article pages include new HTML document companions whose complete original PDFs are available; counts must not be presented as16 historic HTML bodies.\n\nImportant unresolved items include missing historical topic bodies, original installation photographs, unrecovered video bytes and partial GPSsampleZIP. The January2008 SVK002 journal test PDF is now completely recovered (3pages). All alternative versions and URL variants actually attempted are in raw/requests.jsonl. These gaps and pending Semrush reconciliation remain mandatory V2 blockers. No historical article is synthesized from a backlink anchor/title. V1 modern guides/retail cards do not enter recovery counts.\n''' +(D/'coverage.md').write_text(text) +# Freeze successful source bytes in content-addressed files; retain original friendly filenames. +objects=RAW/'objects';objects.mkdir(exist_ok=True) +for f in list(RAW.rglob('*')): + if f.is_file() and 'objects' not in f.parts and not f.name.endswith('.headers') and f.suffix not in ['.json','.jsonl']: + b=f.read_bytes();o=objects/(hashlib.sha256(b).hexdigest()+'.bin') + if not o.exists():o.write_bytes(b) +print('INVENTORY',len(entries),'meaningful',len(meaningful),'status',dict(counts),'outbound occurrences',len(source_outbound)) diff --git a/scripts/rebuild-v2/legacy-routes.py b/scripts/rebuild-v2/legacy-routes.py new file mode 100644 index 0000000..9a8f53e --- /dev/null +++ b/scripts/rebuild-v2/legacy-routes.py @@ -0,0 +1,61 @@ +from pathlib import Path +import json +P=Path(__file__).resolve().parents[2] +routes={ +'/index.shtml':'/system', +'/moves.htm':'/demo.shtml#section-3', +'/shop/index.php?categoryID=78':'/catalog#section-1', +'/shop/index.php?categoryID=79':'/catalog#section-0', +'/shop/index.php?categoryID=80':'/catalog#section-3', +'/shop/index.php?productID=132':'/equipment/svk002-lqcd', +'/shop/index.php?productID=133':'/equipment/svk002-gps', +'/shop/index.php?productID=137':'/equipment/svk004', +'/forum/index.php':'/community', +'/forum/index.php?c=2':'/community', +'/forum/viewtopic.php?t=184':'/community/flash-start', +'/forum/viewtopic.php?t=188':'/community/usb-extension', +'/forum/viewtopic.php?t=183&view=next':'/community/flash-start', +'/forum/viewtopic.php?t=8&view=next':'/community/usb-extension', +'/forum/viewtopic.php?p=220':'/community/flash-start#section-0', +'/forum/viewtopic.php?p=221':'/community/flash-start#section-1', +'/forum/viewtopic.php?p=223':'/community/flash-start#section-2', +'/forum/viewtopic.php?p=226':'/community/usb-extension#section-0', +'/forum/viewtopic.php?p=227':'/community/usb-extension#section-1', +} +(P/'deploy/legacy-routes.json').write_text(json.dumps(routes,ensure_ascii=False,indent=2)+'\n') +from urllib.parse import urlsplit, parse_qsl, urlencode +import re + +def exact_legacy_pattern(original): + """One raw-query pattern shared by nginx and the Python preview. + + Only proved presentation defaults and a session token may be ignored. + Pagination, search, ordering and unknown query values must not collapse. + """ + parsed = urlsplit(original) + required = [re.escape(urlencode([(k, v)])) + for k, v in parse_qsl(parsed.query, keep_blank_values=True)] + allowed = list(required) + if parsed.path.startswith('/forum/'): + allowed += ['sid=[^&]*', 'start=0', 'postdays=0', 'postorder=asc', 'highlight='] + checks = ''.join(r'(?=(?:[^&]*&)*' + pair + r'(?:&|$))' for pair in required) + if allowed: + pair = '(?:' + '|'.join(allowed) + ')' + query = pair + '(?:&' + pair + ')*' + if not required: + query = '(?:' + query + ')?' + else: + query = '' + return '^' + re.escape(parsed.path) + r'\|' + checks + query + '$' + +matchers = [dict(original=src, destination=dst, pattern=exact_legacy_pattern(src)) + for src, dst in routes.items()] +(P/'deploy/legacy-matchers.json').write_text(json.dumps(matchers, ensure_ascii=False, indent=2)+'\n') +lines = ['# Generated by scripts/rebuild-v2/legacy-routes.py; exact query meaning only.', + 'map "$uri|$args" $videoreg_legacy {', ' default "";'] +for item in matchers: + # map's first argument remains a regex token after nginx parses quotes. + pattern = item['pattern'].replace('\\', '\\\\').replace('"', '\\"') + lines.append(' "~' + pattern + '" "' + item['destination'] + '";') +lines.append('}') +(P/'deploy/legacy-map.conf').write_text('\n'.join(lines)+'\n') diff --git a/scripts/rebuild-v2/recover-gallery-alternates.py b/scripts/rebuild-v2/recover-gallery-alternates.py new file mode 100644 index 0000000..1b24adf --- /dev/null +++ b/scripts/rebuild-v2/recover-gallery-alternates.py @@ -0,0 +1,32 @@ +from pathlib import Path +from urllib.parse import urlsplit,urljoin +import sys,json,hashlib,concurrent.futures +from bs4 import BeautifulSoup +sys.path.insert(0,str(Path(__file__).parent));from fetch import fetch +P=Path(__file__).resolve().parents[2];D=P/'docs/rebuild-v2';R=D/'raw';data=json.loads((D/'sample-gallery-inventory.json').read_text());cdx=json.loads((R/'cdx-narod-samples.json').read_text());album_paths=sorted({urlsplit(r[2]).path for r in cdx[1:] if r[3]=='text/html' and ('photoalbum' in r[2] or 'povorot.html' in r[2])}) +for path in album_paths: + for base in ['http://videoreg-samples.narod.ru','https://web.archive.org/web/2008id_/http://www.videoreg-samples.narod.ru:80']: + url=base+path;rec=fetch(url,'gallery/alternate-'+hashlib.sha256(url.encode()).hexdigest()[:16]+'.html',20) + if rec['httpStatus']=='200' and rec['bytes']>300: + raw=(P/rec['raw']).read_bytes();s=BeautifulSoup(raw,'html.parser') + if any(a.get('href','').lower().endswith('.jpg') for a in s.find_all('a')): + album=dict(url='http://videoreg-samples.narod.ru'+path,raw=rec['raw'],title=s.title.get_text(' ',strip=True) if s.title else '',text=s.get_text(' ',strip=True),images=[]) + for tag in s.find_all(['a','img']): + value=tag.get('href') if tag.name=='a' else tag.get('src');u=urlsplit(urljoin(album['url'],value or '')) + if u.hostname and u.hostname.endswith('videoreg-samples.narod.ru') and u.path.lower().endswith('.jpg'):album['images'].append(u.path) + album['images']=list(dict.fromkeys(album['images']));data['albums'].append(album);break +images={i['path']:i for i in data['images']} +for a in data['albums']: + for path in a['images']:images.setdefault(path,dict(path=path,url='http://videoreg-samples.narod.ru'+path,fetchStatus='pending',rawFile=None)) +records={urlsplit(r[2]).path:r for r in cdx[1:] if r[3]=='image/jpeg' and '/.s/' not in r[2]} +def work(i): + if i['fetchStatus']=='downloaded-unreviewed':return + urls=['https://videoreg-samples.narod.ru'+i['path']] + if i['path'] in records:urls.append('https://web.archive.org/web/2008id_/http://videoreg-samples.narod.ru:80'+i['path']) + for url in urls: + name='gallery/retry-'+hashlib.sha256(url.encode()).hexdigest()[:18]+'.jpg';rec=fetch(url,name,20) + if rec['httpStatus']=='200' and (P/rec['raw']).read_bytes().startswith(b'\xff\xd8\xff'): + i.update(fetchStatus='downloaded-unreviewed',rawFile=rec['raw'],sha256=rec['sha256'],bytes=rec['bytes']);return + i['fetchStatus']='unresolved' +with concurrent.futures.ThreadPoolExecutor(max_workers=2) as ex:list(ex.map(work,images.values())) +data['images']=list(images.values());(D/'sample-gallery-inventory.json').write_text(json.dumps(data,ensure_ascii=False,indent=2)+'\n');print('ALTERNATE GALLERY',len(data['albums']),len(images),sum(i['fetchStatus']=='downloaded-unreviewed' for i in images.values())) diff --git a/scripts/rebuild-v2/recover-important-media.py b/scripts/rebuild-v2/recover-important-media.py new file mode 100644 index 0000000..edd4250 --- /dev/null +++ b/scripts/rebuild-v2/recover-important-media.py @@ -0,0 +1,16 @@ +from pathlib import Path +import json,sys,hashlib,concurrent.futures +from urllib.parse import urlsplit +sys.path.insert(0,str(Path(__file__).parent));from fetch import fetch +P=Path(__file__).resolve().parents[2];D=P/'docs/rebuild-v2';R=D/'raw';media=json.loads((D/'media-inventory.json').read_text()) +important=['/images/ni-x1.jpg','/images/ni-x2.jpg','/images/ni-x3.jpg','/images/ni-x4.jpg','/images/sert_1024x768.jpg','/download/doc/QuickStart_SVK007_006.zip','/download/doc/svk-002-mn.zip','/download/uvr_instr_2ch.zip','/download/doc/svk-007-instr.zip','/download/svk-002-mn.pdf','/download/samples/zeiss_800_600_GPS_1.zip','/download/samples/zeiss_800_600_GPS_2.zip'] +important +=[x['path'] for x in media if x['mimetype']=='video/x-msvideo'] +def work(item): + if item['path'] not in important or item['fetchStatus']=='downloaded-unreviewed' and item['path']!='/download/svk-002-mn.pdf':return + for year in ['2012','2008']: + url='https://web.archive.org/web/'+year+'id_/http://www.videoreg.ru:80'+item['path'];ext=Path(item['path']).suffix.lower();name='media/short-'+hashlib.sha256(url.encode()).hexdigest()[:16]+ext;rec=fetch(url,name,35) + if rec['httpStatus']=='200' and rec['bytes']>500: + item.update(fetchStatus='downloaded-unreviewed',rawFile=rec['raw'],sha256=rec['sha256'],bytes=rec['bytes'],requestedShortYear=year);return +with concurrent.futures.ThreadPoolExecutor(max_workers=2) as ex: + for _ in ex.map(work,media):(D/'media-inventory.json').write_text(json.dumps(media,ensure_ascii=False,indent=2)+'\n') +print('IMPORTANT-MEDIA successes',[(x['path'],x['rawFile']) for x in media if x['path'] in important and x['fetchStatus']=='downloaded-unreviewed']) diff --git a/scripts/rebuild-v2/recover-later.py b/scripts/rebuild-v2/recover-later.py new file mode 100644 index 0000000..2f84e9b --- /dev/null +++ b/scripts/rebuild-v2/recover-later.py @@ -0,0 +1,33 @@ +from pathlib import Path +import sys,json,hashlib,concurrent.futures,time +from urllib.parse import urlsplit,parse_qsl,urlencode +sys.path.insert(0,str(Path(__file__).parent));from fetch import fetch +ROOT=Path(__file__).resolve().parents[2];RAW=ROOT/'docs/rebuild-v2/raw' +plan=json.loads((ROOT/'docs/rebuild-v2/discovery-plan.json').read_text());all=json.loads((RAW/'cdx-all-html-captures.json').read_text());attempts={json.loads(x)['url'] for x in (RAW/'requests.jsonl').read_text().splitlines()} +def norm(url): + u=urlsplit(url);q=[(k,v) for k,v in parse_qsl(u.query) if k!='sid'];return u.path+('?' +urlencode(sorted(q)) if q else '') +def saveplan(): + (ROOT/'docs/rebuild-v2/discovery-plan.json').write_text(json.dumps(plan,ensure_ascii=False,indent=2)+'\n') +def work(item): + dest=ROOT/item['rawFile'] + if dest.exists() and dest.stat().st_size>500:return + versions=[r for r in all[1:] if isinstance(r,list) and norm(r[2])==item['normalizedPath']] + # Prefer the most recent documented pre-2015 version of each distinct body. + unique={} + for r in versions: + if r[1]>='20150101':unique[r[5]]=r + ordered=sorted(unique.values(),key=lambda r:r[1],reverse=True) + candidates=[] + for r in ordered: + for original in [r[2],'http://www.videoreg.ru'+item['normalizedPath'],'http://videoreg.ru'+item['normalizedPath']]: + candidates.append((r[1],original)) + for ts,original in candidates: + url='https://web.archive.org/web/'+ts+'id_/'+original + if url in attempts:continue + attempts.add(url);name='pages/'+hashlib.sha256(url.encode()).hexdigest()[:20]+'.html';rec=fetch(url,name,30) + if rec['httpStatus']=='200' and rec['bytes']>500: + item['rawFile']=rec['raw'];item['snapshot']=ts;item['replayUrl']=rec['effectiveUrl'];return + time.sleep(.35) +with concurrent.futures.ThreadPoolExecutor(max_workers=2) as ex: + for _ in ex.map(work,[x for x in plan if x['disposition']=='fetch']):saveplan() +saveplan();print('RECOVERED',sum((ROOT/x['rawFile']).exists() and (ROOT/x['rawFile']).stat().st_size>500 for x in plan if x['disposition']=='fetch'),flush=True) diff --git a/scripts/rebuild-v2/recover-media.py b/scripts/rebuild-v2/recover-media.py new file mode 100644 index 0000000..257e291 --- /dev/null +++ b/scripts/rebuild-v2/recover-media.py @@ -0,0 +1,26 @@ +from pathlib import Path +import json,sys,hashlib,concurrent.futures,re +from urllib.parse import urlsplit,unquote +sys.path.insert(0,str(Path(__file__).parent));from fetch import fetch +ROOT=Path(__file__).resolve().parents[2];RAW=ROOT/'docs/rebuild-v2/raw';(RAW/'media').mkdir(exist_ok=True) +d=json.loads((RAW/'cdx-all-resources.json').read_text());plan=[] +for r in d[1:]: + path=urlsplit(r[2]).path;name=unquote(path).lower();kind=r[3];reason=None + if kind=='text/html' or kind=='text/css':continue + if kind in ['application/octet-stream'] or '/sys-po/' in name or 'videoregistrator' in name or 'videoregshow' in name:reason='Executable/firmware not executed or republished' + elif '/download/samples/' in name:reason='Recording ZIP retained in inventory; individual images/video prioritized without bulk ZIP republishing' + elif kind=='application/zip' and not any(x in name for x in ['uvr_instr','svk-002-mn','svk-007-instr','svk_007_instr','quickstart']):reason='Historic warranty/commercial package, no technical corpus body' + elif kind.startswith('image/') and not re.search(r'(ni-x|svk|vrss|f[1-5]_cr|front200|back200|auto1|break|video090806|mcad|avaria|sert_|micr300|c905|glonass|tr-600|contr_pp|quickcam1|not-deluxe|cwc\.jpg|l-qc-pn|qcn-pro|qc-fus|lifecam|microsoft|a4tech|spc1300|pronot|g-cam)',name):reason='Template chrome, advertisement/logo/press-cover or unneeded icon; not a content illustration' + plan.append(dict(originalUrl=r[2],path=path,snapshot=r[1],mimetype=kind,reason=reason,fetchStatus='excluded' if reason else 'pending',rawFile=None,publicDestination=None)) +def work(item): + if item['reason']:return + path=item['path'];url=item['originalUrl'];ts=item['snapshot'];suffix=Path(unquote(path)).suffix.lower();name='media/'+hashlib.sha256(path.encode()).hexdigest()[:16]+suffix + variants=[url,'http://www.videoreg.ru:80'+path,'http://www.videoreg.ru'+path] + for original in dict.fromkeys(variants): + result=fetch('https://web.archive.org/web/'+ts+'id_/'+original,name,35) + if result['httpStatus']=='200' and result['bytes']>200: + item.update(fetchStatus='downloaded-unreviewed',rawFile=result['raw'],sha256=result['sha256'],bytes=result['bytes']);return + item['fetchStatus']='unresolved' +with concurrent.futures.ThreadPoolExecutor(max_workers=2) as ex:list(ex.map(work,plan)) +(ROOT/'docs/rebuild-v2/media-inventory.json').write_text(json.dumps(plan,ensure_ascii=False,indent=2)+'\n') +print('MEDIA',len(plan),'downloaded',sum(x['fetchStatus']=='downloaded-unreviewed' for x in plan),flush=True) diff --git a/scripts/rebuild-v2/recover-sample-gallery.py b/scripts/rebuild-v2/recover-sample-gallery.py new file mode 100644 index 0000000..4b5b9c2 --- /dev/null +++ b/scripts/rebuild-v2/recover-sample-gallery.py @@ -0,0 +1,29 @@ +from pathlib import Path +from urllib.parse import urljoin,urlsplit +import sys,json,hashlib,concurrent.futures +from bs4 import BeautifulSoup +sys.path.insert(0,str(Path(__file__).parent));from fetch import fetch +P=Path(__file__).resolve().parents[2];D=P/'docs/rebuild-v2';R=D/'raw';(R/'gallery').mkdir(exist_ok=True) +root=BeautifulSoup((R/'narod-samples-live.html').read_bytes(),'html.parser') +albums=[dict(url='http://videoreg-samples.narod.ru/',raw='docs/rebuild-v2/raw/narod-samples-live.html')] +for n in range(1,5): + url='http://www.videoreg-samples.narod.ru/photoalbum'+str(n)+'.html';rec=fetch(url,'gallery/album'+str(n)+'.html',25) + if rec['httpStatus']=='200' and rec['bytes']>300:albums.append(dict(url=url,raw=rec['raw'])) +images={} +for album in albums: + s=BeautifulSoup((P/album['raw']).read_bytes(),'html.parser') + album['title']=s.title.get_text(' ',strip=True) if s.title else '';album['text']=s.get_text(' ',strip=True);album['images']=[] + for tag in s.find_all(['a','img']): + value=tag.get('href') if tag.name=='a' else tag.get('src');url=urljoin(album['url'],value or '') + u=urlsplit(url) + if u.hostname in ['videoreg-samples.narod.ru','www.videoreg-samples.narod.ru'] and u.path.lower().endswith(('.jpg','.jpeg')): + key=u.path;album['images'].append(key);images.setdefault(key,dict(path=key,url=url,fetchStatus='pending',rawFile=None)) + album['images']=list(dict.fromkeys(album['images'])) +def work(item): + name='gallery/'+hashlib.sha256(item['path'].encode()).hexdigest()[:18]+'.jpg';rec=fetch(item['url'],name,25) + if rec['httpStatus']=='200' and (P/rec['raw']).read_bytes().startswith(b'\xff\xd8\xff'): + item.update(fetchStatus='downloaded-unreviewed',rawFile=rec['raw'],sha256=rec['sha256'],bytes=rec['bytes']) + else:item.update(fetchStatus='unresolved') +with concurrent.futures.ThreadPoolExecutor(max_workers=2) as ex:list(ex.map(work,images.values())) +(D/'sample-gallery-inventory.json').write_text(json.dumps(dict(source='Original sample host linked by recovered videoreg homepage; live HTML contains legacy photo series, scripts not executed',albums=albums,images=list(images.values())),ensure_ascii=False,indent=2)+'\n') +print('GALLERY',len(albums),'albums',len(images),'discovered photos',sum(x['fetchStatus']=='downloaded-unreviewed' for x in images.values()),'downloaded') diff --git a/scripts/rebuild-v2/recover-shortdates.py b/scripts/rebuild-v2/recover-shortdates.py new file mode 100644 index 0000000..2e29b5d --- /dev/null +++ b/scripts/rebuild-v2/recover-shortdates.py @@ -0,0 +1,27 @@ +from pathlib import Path +from urllib.parse import urlsplit +import sys,json,hashlib,concurrent.futures,time,email.utils +sys.path.insert(0,str(Path(__file__).parent));from fetch import fetch +P=Path(__file__).resolve().parents[2];D=P/'docs/rebuild-v2';R=D/'raw' +plan=json.loads((D/'discovery-plan.json').read_text());inventory=json.loads((D/'url-inventory.json').read_text());known={x['normalizedPath'] for x in plan} +for e in inventory: + if e['publicationStatus'].startswith('unresolved') and e['normalizedPath'] not in known and 'mark=topics' not in e['normalizedPath']: + key=e['normalizedPath'];plan.append(dict(originalUrl=e['originalUrl'],normalizedPath=key,type='linked-content-url',snapshot='2008' if '/forum/' in key or '/shop/' in key else '2012',rawFile='docs/rebuild-v2/raw/pages/'+hashlib.sha256(key.encode()).hexdigest()[:16]+'.html',disposition='fetch',reason=None));known.add(key) +# Reuse actual successful short-date original, no new text generated from links. +for item in plan: + if item['normalizedPath']=='/predpr.shtml':item.update(rawFile='docs/rebuild-v2/raw/predpr-short2012.html',snapshot='2012') +requests={json.loads(x)['url'] for x in (R/'requests.jsonl').read_text().splitlines()} +def work(item): + f=P/item['rawFile'] + if item.get('disposition')!='fetch' or (f.exists() and f.stat().st_size>500):return + key=item['normalizedPath'];years=['2007','2008'] if '/forum/' in key or '/shop/' in key else ['2012','2008'] + for year in years: + url='https://web.archive.org/web/'+year+'id_/http://www.videoreg.ru:80'+key + if url in requests:continue + name='pages/short-'+hashlib.sha256(url.encode()).hexdigest()[:16]+'.html';rec=fetch(url,name,35) + if rec['httpStatus']=='200' and rec['bytes']>500: + item.update(rawFile=rec['raw'],snapshot=year,replayUrl=rec['effectiveUrl']);return + time.sleep(.35) +with concurrent.futures.ThreadPoolExecutor(max_workers=2) as ex: + for _ in ex.map(work,plan):(D/'discovery-plan.json').write_text(json.dumps(plan,ensure_ascii=False,indent=2)+'\n') +print('SHORTDATE BODY COUNT',sum((P/x['rawFile']).exists() and (P/x['rawFile']).stat().st_size>500 for x in plan if x['disposition']=='fetch')) diff --git a/scripts/rebuild-v2/recover-versions.py b/scripts/rebuild-v2/recover-versions.py new file mode 100644 index 0000000..1dc86b2 --- /dev/null +++ b/scripts/rebuild-v2/recover-versions.py @@ -0,0 +1,33 @@ +from pathlib import Path +import sys,json,hashlib,concurrent.futures,time +from urllib.parse import urlsplit,parse_qsl,urlencode +sys.path.insert(0,str(Path(__file__).parent));from fetch import fetch +ROOT=Path(__file__).resolve().parents[2];RAW=ROOT/'docs/rebuild-v2/raw' +plan=json.loads((ROOT/'docs/rebuild-v2/discovery-plan.json').read_text());all=json.loads((RAW/'cdx-all-html-captures.json').read_text());attempts={json.loads(x)['url'] for x in (RAW/'requests.jsonl').read_text().splitlines()} +def norm(url): + u=urlsplit(url);q=[(k,v) for k,v in parse_qsl(u.query) if k!='sid'];return u.path+('?' +urlencode(sorted(q)) if q else '') +def saveplan(): + (ROOT/'docs/rebuild-v2/discovery-plan.json').write_text(json.dumps(plan,ensure_ascii=False,indent=2)+'\n') +def work(item): + dest=ROOT/item['rawFile'] + if dest.exists() and dest.stat().st_size>500:return + versions=[r for r in all[1:] if isinstance(r,list) and norm(r[2])==item['normalizedPath']] + # Prefer the most recent documented pre-2015 version of each distinct body. + unique={} + for r in versions: + if r[1]<'20150101':unique[r[5]]=r + ordered=sorted(unique.values(),key=lambda r:r[1],reverse=True) + candidates=[] + for r in ordered: + for original in [r[2],'http://www.videoreg.ru'+item['normalizedPath'],'http://videoreg.ru'+item['normalizedPath']]: + candidates.append((r[1],original)) + for ts,original in candidates: + url='https://web.archive.org/web/'+ts+'id_/'+original + if url in attempts:continue + attempts.add(url);name='pages/'+hashlib.sha256(url.encode()).hexdigest()[:20]+'.html';rec=fetch(url,name,30) + if rec['httpStatus']=='200' and rec['bytes']>500: + item['rawFile']=rec['raw'];item['snapshot']=ts;item['replayUrl']=rec['effectiveUrl'];return + time.sleep(.35) +with concurrent.futures.ThreadPoolExecutor(max_workers=2) as ex: + for _ in ex.map(work,[x for x in plan if x['disposition']=='fetch']):saveplan() +saveplan();print('RECOVERED',sum((ROOT/x['rawFile']).exists() and (ROOT/x['rawFile']).stat().st_size>500 for x in plan if x['disposition']=='fetch'),flush=True) diff --git a/scripts/rebuild-v2/requirements.txt b/scripts/rebuild-v2/requirements.txt new file mode 100644 index 0000000..71f5b60 --- /dev/null +++ b/scripts/rebuild-v2/requirements.txt @@ -0,0 +1,4 @@ +beautifulsoup4==4.15.0 +pillow==13.0.0 +soupsieve==3.0.4 +typing_extensions==4.16.0 diff --git a/scripts/rebuild-v2/retry-bodies.py b/scripts/rebuild-v2/retry-bodies.py new file mode 100644 index 0000000..6746134 --- /dev/null +++ b/scripts/rebuild-v2/retry-bodies.py @@ -0,0 +1,33 @@ +from pathlib import Path +import json,sys,hashlib,concurrent.futures +from urllib.parse import urlsplit +sys.path.insert(0,str(Path(__file__).parent));from fetch import fetch +from importlib.machinery import SourceFileLoader +m=SourceFileLoader('corpus',str(Path(__file__).parent/'download-corpus.py')) +ROOT=Path(__file__).resolve().parents[2];RAW=ROOT/'docs/rebuild-v2/raw' +plan=json.loads((ROOT/'docs/rebuild-v2/discovery-plan.json').read_text());all=json.loads((RAW/'cdx-all-html-captures.json').read_text());attempts={r['url'] for r in [json.loads(x) for x in (RAW/'requests.jsonl').read_text().splitlines()]} +# Existing successful captures are immutable and reused, not re-fetched. +for path,name in [('/auto.shtml','auto-20070228153116.html'),('/faq.shtml','faq-www.html')]: + for item in plan: + if item['normalizedPath']==path:item['rawFile']='docs/rebuild-v2/raw/'+name + +def norm(url): + from urllib.parse import parse_qsl,urlencode + u=urlsplit(url);q=[(k,v) for k,v in parse_qsl(u.query) if k!='sid'];return u.path+('?' +urlencode(sorted(q)) if q else '') +def work(item): + dest=ROOT/item['rawFile'] + if dest.exists() and dest.stat().st_size>500:return + versions=[r for r in all[1:] if isinstance(r,list) and norm(r[2])==item['normalizedPath'] and r[1]<'20150101'] + candidates=[(item['snapshot'],'http://www.videoreg.ru:80'+item['normalizedPath'])] + if versions: + r=versions[-1];candidates.append((r[1],'http://www.videoreg.ru:80'+item['normalizedPath'])) + for i,(ts,url) in enumerate(candidates): + replay='https://web.archive.org/web/'+ts+'id_/'+url + if replay in attempts:continue + name='pages/'+hashlib.sha256((item['normalizedPath']+ts+str(i)).encode()).hexdigest()[:16]+'.html' + result=fetch(replay,name,45) + if result['httpStatus']=='200' and result['bytes']>500: + item['rawFile']=result['raw'];item['snapshot']=ts;item['replayUrl']=replay;return +with concurrent.futures.ThreadPoolExecutor(max_workers=2) as ex:list(ex.map(work,[x for x in plan if x['disposition']=='fetch'])) +(ROOT/'docs/rebuild-v2/discovery-plan.json').write_text(json.dumps(plan,ensure_ascii=False,indent=2)+'\n') +print('recovered bodies',sum((ROOT/x['rawFile']).exists() and (ROOT/x['rawFile']).stat().st_size>500 for x in plan if x['disposition']=='fetch'),flush=True) diff --git a/scripts/rebuild-v2/review-source-outbound.py b/scripts/rebuild-v2/review-source-outbound.py new file mode 100644 index 0000000..970a2bd --- /dev/null +++ b/scripts/rebuild-v2/review-source-outbound.py @@ -0,0 +1,32 @@ +from pathlib import Path +import json,re +P=Path(__file__).resolve().parents[2];d=P/'docs/rebuild-v2/outbound-links.json';x=json.loads(d.read_text()) +context_rules=[ + ('pr-realt.com.ua','Paid real-estate insertion in FAQ2011 footer, anchor дома в ворзеле; unrelated to operation Q&A. Removed without altering technical questions.'), + ('jazztravel.com.ua','Paid Thai hotel booking anchor in compatibility/support footer; no connection to listed USB camera modes. Removed.'), + ('playland.com.ua','Paid PSP3008 shop insertion in support footer, unrelated game-console product; removed.'), + ('protivotok.net','Paid swimming-pool equipment insertion in support footer, unrelated to camera compatibility; removed.'), + ('paradcasino.com','Casino paid anchor inside dealer page; removed, never treated as historical technical body.'), + ('new-wind.ru','Household air-conditioner sales insertion in dealer page; removed as unrelated advertising.'), + ('videoreg-samples.narod.ru','Original linked sample gallery: full decoded JPEGs copied locally without template runtime. This exact remote file/link is omitted to avoid partial/dead remote loads; corresponding local images and unresolved file counts are recorded in sample-gallery-inventory.json.'), + ('avtourist','Old legal-promotion/recommendation banner; no actual legal article body recovered here. Banner omitted; legal claims not republished as advice.'), + ('club4x4.ru','Travel/expedition reality-show source mention, legitimate contextual link rather than casino insertion. Not retained in technical operation text because no dependent factual passage is copied; remains an internal recovery lead.'), + ('autoreview.ru','Legitimate period press review source link; not currently used as a factual source in edited body. Kept in internal recovery inventory rather than silently importing an unverified article.'), + ('ksytal.ru','Separate GSM alarm product partner mention on home page. No corresponding technical comparison/body is republished; commercial cross-promotion removed.'), + ('carintst.com','Historic paid/partner installation studio sidebar, not an installation instruction or image attribution; removed.'), + ('invista.org','Old reseller shop sidebar for buying SVK; no technical dependency, obsolete purchase route removed.'), + ('autoprofi2000.ru','Old installer/dealer promotion; no copied installation tutorial requiring attribution, removed.'), + ('b-tuning.ru','Historic tuning/installer promotion, no technical body attribution or guide; removed.'), + ('mak-studia.ru','Historical installation/dealer contact; not published as active sales route.'), + ('autoset.ru','Old commercial partner banner/link, not the source of edited technical facts; removed.'), + ('talks.mark-itt.ru','External discussion reference in recovered forum context; thread content not recovered/used as authority. Technical explanation derives from the original local posts; remote link omitted pending recovery.'), + ('earth.google.com','Historical Google Earth download/support pointer for viewing track data. Product version URL not verified; edited article preserves KML/KMZ file purpose without presenting this obsolete link as a current download.'), + ('fotki.yandex.ru','Retired original map-photo host; original demonstration context retained, link not represented as a working map or recovered image.'), +] +for item in x['links']: + for needle,reason in context_rules: + if needle in item['destination']:item['reason']=reason;item['decision']='remove-from-publication';break + if 'narod.yandex.ru/userforum' in item['destination']:item['reason']='Legacy guestbook/forum interaction, no recovered article body; runtime/contact utility omitted.' + if re.search(r'yandex.ru/(?:cy|cycounter)',item['destination']):item['reason']='Citation-index badge/counter tracking in template, unrelated to technical reading; removed.' +x['scope']='All actual chosen/supplemental source HTML attributes and inline URLs. Per-context editorial decisions; built/source and rendered DOM reports are separate evidence stages.' +d.write_text(json.dumps(x,ensure_ascii=False,indent=2)+'\n') diff --git a/scripts/rebuild-v2/semrush-ingest.py b/scripts/rebuild-v2/semrush-ingest.py new file mode 100644 index 0000000..065f053 --- /dev/null +++ b/scripts/rebuild-v2/semrush-ingest.py @@ -0,0 +1,19 @@ +from pathlib import Path +from urllib.parse import urlsplit,parse_qsl,urlencode +import json,shutil,hashlib +P=Path(__file__).resolve().parents[2];D=P/'docs/rebuild-v2/semrush';D.mkdir(exist_ok=True) +source=Path('/Users/gavrilovdev/tmp/pupline/site-restoration-status/semrush-recovery/videoreg.ru');raw=json.loads((source/'observed-indexed-pages.json').read_text()) +for name in ['observed-indexed-pages.json','observed-indexed-pages.md','observed-anchors.partial.json','observed-anchors.partial.md','observed-lost-vital.json','observed-lost-vital.md']:shutil.copyfile(source/name,D/name) +inv=json.loads((P/'docs/rebuild-v2/url-inventory.json').read_text());by={i['normalizedPath']:i for i in inv} +def norm(url): + u=urlsplit(url);q=[(k,v) for k,v in parse_qsl(u.query) if k!='sid'];return u.path+('?' +urlencode(sorted(q)) if q else '') +rows=[] +for row in raw['rows']: + k=norm(row['url']);found=by.get(k);status=found['publicationStatus'] if found else 'unresolved-new-lead' + if row['classification']=='later_expired_domain_state':status='later-state-not-original-body' + rows.append(dict(observed=row,normalizedPath=k,matchedInventoryUrl=found['originalUrl'] if found else None,recoveryDisposition=status,rawFile=found['rawFile'] if found else None,sourceHash=found['rawSha256'] if found else None,currentDestination=found['currentDestination'] if found else None,bodyRecoveredFromAnchor=False,review='Specific target reconciled to actual source inventory; metrics not treated as body proof')) +extra=[('/moves.htm','Универсальный цифровой видеорегистратор СВК','recovered-original-Russia1clip-context'),('/autopredpr.shtml',None,'matched'),('/demo.shtml',None,'unresolved-media'),('/shop/index.php?productID=133',None,'matched'),('/shop/index.php?productID=138',None,'unresolved'),('/forum/viewtopic.php?t=196',None,'unresolved'),('/forum/viewforum.php?f=1',None,'navigation-only'),('/account',None,'excluded-later-unrelated-Blox-state'),('/join',None,'excluded-later-unrelated-Blox-state'),('/withdraw',None,'excluded-later-unrelated-Blox-state')] +report=dict(domain='videoreg.ru',evidenceOrigin='Coordinator inspected Noxtools/Semrush in shared built-in browser; this executor ingested actual supplied transcription without taking over session',reportUrl=raw['reportUrl'],additionalEvidenceFiles=['observed-anchors.partial.json','observed-lost-vital.json','referrer-verification.json'],reportedTotal=raw['reportedTotal'],actualDOMRowsReported=raw['actualDOMRowsReportedByParent'],transcribedRows=raw['transcribedRows'],complete=False,scopeLimitation=raw['scopeLimit'],originalExportSha256=hashlib.sha256((D/'observed-indexed-pages.json').read_bytes()).hexdigest(),rows=rows,additionalCoordinatorMessageLeads=[dict(url='http://www.videoreg.ru'+k,title=t,disposition=s,evidence='Direct coordinator message2026-10-26; exact per-row metrics/date not supplied') for k,t,s in extra],remainingRequirements=['Remaining66observedDOM rows and6unloaded reported rows not provided as full export','Anchors52DOM/3transcribed; LostVital18DOM/6transcribed.5actualreferrersfetched;3HTTP200,2unavailable. Full rowtranscriptions and remainingreferrers remain mandatory.','Unresolved target bodies/media must be recovered from actual sources; no text synthesized from anchors']) +(D/'reconciliation.json').write_text(json.dumps(report,ensure_ascii=False,indent=2)+'\n') +(D/'scope.md').write_text('# Semrush / Noxtools — actual partial scope\n\nCoordinator used the shared built-in browser. Report total89, actualDOM83, supplied transcription17selected rows. This executor ingested exactly those17 and the explicit additional coordinator message leads; it did not independently inspect the UI or manufacture the remaining rows.\n\n`reconciliation.json` maps each supplied target to actual raw body/status. Late expiry and Blox account/join/withdraw states do not replace original technical content. Backlink counts are not recovered text.\n\nMandatory issue videoreg-7oy.7 stays open: complete exported row coverage and actual referringURL/anchor contexts are still missing.\n') +print('Semrush matched observed rows',len(rows),'of reported',raw['reportedTotal'],'scope remains partial') diff --git a/scripts/rebuild-v2/sync-galleries.py b/scripts/rebuild-v2/sync-galleries.py new file mode 100644 index 0000000..f1eaf82 --- /dev/null +++ b/scripts/rebuild-v2/sync-galleries.py @@ -0,0 +1,42 @@ +from pathlib import Path +from PIL import Image,ImageOps,ImageDraw +import json,shutil,math,hashlib +P=Path(__file__).resolve().parents[2];D=P/'docs/rebuild-v2';f=P/'web-front/src/content/v2-articles.json';articles=json.loads(f.read_text());g=json.loads((D/'sample-gallery-inventory.json').read_text());by={x['path']:x for x in g['images']};contactdir=D/'evidence/gallery-sheets';contactdir.mkdir(exist_ok=True) +series={ +'/':('/samples/stx','Покадровая запись 640×480','Серия с камеры Logitech Communicate STX.','Рассмотрите порядок изменения сцены в последовательности и откройте исходные JPEG. Частоту съёмки нельзя установить по одному имени файла.'), +'/photoalbum2.html':('/samples/evening-zeiss','Поездка вечером: камера Zeiss','Вечерняя серия с Logitech QuickCam Pro for Notebook Zeiss Optic.','Сравните участки с разной освещённостью. Размытие и различимость объектов оценивайте в исходном размере, без увеличения, выдаваемого за новые детали.'), +'/photoalbum3.html':('/samples/day-zeiss','Дневная запись: камера Zeiss','Дневная серия с Logitech Pro Notebooks Zeiss optics.','Дневные кадры показывают дорожную сцену в условиях этой поездки. Один набор не доказывает качество камеры при другой погоде, настройках или установке.'), +'/photoalbum4.html':('/samples/rain','Съёмка в сильный дождь','Последовательность с камеры Genius Videocam WEB, 640×480.','Посмотрите, как дождь на стекле меняет видимую сцену. Это запись конкретного опыта; она не задаёт технический предел работы камеры под дождём вне салона.'), +'/photoalbum5.html':('/samples/late-evening','Поздний вечер: Communicate STX','Серия камеры Logitech Communicate STX при низкой освещённости.','Сопоставьте светлые и тёмные участки последовательности. По показанным кадрам нельзя обещать читаемость номеров в любых вечерних условиях.'), +'/povorot.html':('/samples/roundabout','Круговое движение при слабом свете','Последовательность с Logitech QuickCam Communicate STX.','Исходное название серии указывает круговое движение и слабую освещённость. Последовательность сохраняет отдельные кадры; AVI-экспорт и исходные JPEG не следует считать одинаковыми файлами.')} +for album in g['albums']: + from urllib.parse import urlsplit + path=urlsplit(album['url']).path + if path not in series:continue + route,title,summary,paragraph=series[path];frames=[];thumbs=[] + for source in album['images']: + row=by[source] + if row['fetchStatus']!='downloaded-unreviewed':continue + try: + with Image.open(P/row['rawFile']) as im:im.load();size=im.size;thumb=ImageOps.contain(im.convert('RGB'),(220,165)) + except Exception as e:row.update(fetchStatus='corrupt-image',validationError=str(e));continue + name=Path(source).name;destination='/recordings/samples/'+name;dest=P/'web-front/public'/destination.lstrip('/');dest.parent.mkdir(parents=True,exist_ok=True);shutil.copyfile(P/row['rawFile'],dest) + row.update(publicDestination=destination,decodedSize=list(size),decoded=True);frames.append(dict(src=destination,filename=name,width=size[0],height=size[1]));thumbs.append((name,thumb)) + if not frames:continue + columns=4;sheet=Image.new('RGB',(columns*220,math.ceil(len(thumbs)/columns)*195),'#f5f2e9');draw=ImageDraw.Draw(sheet) + for i,(name,thumb) in enumerate(thumbs): + x=i%columns*220;y=i//columns*195;sheet.paste(thumb,(x,y));draw.text((x+5,y+169),name,fill='#17382f') + sheetpath=contactdir/(route.rsplit('/',1)[-1]+'.jpg');sheet.save(sheetpath) + album['decodedFrames']=len(frames);album['publicDestination']=route;album['contactSheet']=str(sheetpath.relative_to(P)) + existing=next((a for a in articles if a['path']==route),None) + if existing: + existing['title']=title;existing['summary']=summary;existing['sections'][0]['gallery']=frames + else: + articles.append(dict(path=route,title=title,summary=summary,category='Записи',date='Дата не указана',kind='linked-source',sourcePaths=[album['url']],rawFiles=[album['raw']],sections=[dict(heading='Последовательность исходных кадров',paragraphs=[paragraph,'Оригинал каждого кадра открывается по нажатию. Сохранение через снимок экрана или повторное сжатие меняет материал. Для проверки времени и GPS нужны соответствующие поля самого файла; подпись серии их не заменяет.'],gallery=frames)],related=['/samples.shtml','/samples/stx','/tools/recording-time'])) + if route=='/samples/stx': + existing=next(a for a in articles if a['path']==route);existing['related']=['/samples/gps','/samples/evening-zeiss','/samples/rain'];existing['sections'][0]['paragraphs'][0]='Серия показывает изменение дорожной сцены по отдельным кадрам. На странице примеров указаны камера Logitech Communicate STX и разрешение 640×480. Откройте исходник, чтобы оценить детали в собственном размере.' +links=[dict(href=a['publicDestination'],label=series[urlsplit(a['url']).path][1]) for a in g['albums'] if a.get('publicDestination')] +for a in articles: + if a['path']=='/samples.shtml': + a['sections'][1]['links']=links+[dict(href='/samples/gps',label='Кадры 800×600 с EXIF GPS')] +f.write_text(json.dumps(articles,ensure_ascii=False,indent=2)+'\n');(D/'sample-gallery-inventory.json').write_text(json.dumps(g,ensure_ascii=False,indent=2)+'\n');print('galleries',len(links),'decoded',sum(a.get('decodedFrames',0) for a in g['albums'])) diff --git a/scripts/rebuild-v2/validate-media.py b/scripts/rebuild-v2/validate-media.py new file mode 100644 index 0000000..33e2bee --- /dev/null +++ b/scripts/rebuild-v2/validate-media.py @@ -0,0 +1,29 @@ +from pathlib import Path +import hashlib,json,subprocess,zipfile,collections +from PIL import Image +P=Path(__file__).resolve().parents[2];D=P/'docs/rebuild-v2';public=P/'web-front/public';digest=lambda f:hashlib.sha256(f.read_bytes()).hexdigest() +public_by_hash={digest(f):'/'+f.relative_to(public).as_posix() for f in public.rglob('*') if f.is_file()} +rows=json.loads((D/'media-inventory.json').read_text()) +for row in rows: + if row['path']=='/download/svk-002-mn.pdf':row.update(rawFile='docs/rebuild-v2/raw/svk002-review-retry-0.bin',reason=None) + f=P/row['rawFile'] if row.get('rawFile') else None + row['publicDestination']=None + if row.get('reason') and row.get('fetchStatus')=='excluded':row['validation']='excluded-original-commercial-or-runtime';continue + if not f or not f.is_file() or not f.stat().st_size:row['validation']='unresolved-no-complete-bytes';continue + row.update(bytes=f.stat().st_size,sha256=digest(f));valid=False + try: + suffix=Path(row['path']).suffix.lower() + if suffix in ['.jpg','.jpeg','.gif','.png','.ico']: + with Image.open(f) as im:im.load();row['imageDimensions']=list(im.size);valid=True + elif suffix=='.pdf': + r=subprocess.run(['pdfinfo',str(f)],capture_output=True,text=True);valid=r.returncode==0 and 'Pages:' in r.stdout;row['pdfinfoExit']=r.returncode + elif suffix=='.zip': + with zipfile.ZipFile(f) as z:valid=z.testzip() is None;row['zipMembers']=z.namelist() + else:row['validation']='downloaded-needs-format-specific-review';continue + except Exception as e:row['validationError']=str(e) + if valid: + row['publicDestination']=public_by_hash.get(row['sha256']);row['validation']='validated-published-exact-bytes' if row['publicDestination'] else 'validated-unpublished' + else:row['validation']='unresolved-invalid-or-truncated';row['fetchStatus']='unresolved-invalid' +(D/'media-inventory.json').write_text(json.dumps(rows,ensure_ascii=False,indent=2)+'\n') +(D/'evidence/media-validation.json').write_text(json.dumps(dict(resources=len(rows),counts=dict(collections.Counter(x['validation'] for x in rows)),publicFiles=len(public_by_hash),scope='Primary domain136resourceCDXkeys; external sample host separately recorded in sample-gallery-inventory.json',note='No software, firmware or script executed; original archive members inspected only. GPSsampleZIP is truncated; four complete JPEGs salvaged by memberCRC, not fullZIPrecovery.'),ensure_ascii=False,indent=2)+'\n') +print(collections.Counter(x['validation'] for x in rows)) diff --git a/web-front/src/app/catalog/page.tsx b/web-front/legacy/v1/catalog/page.tsx similarity index 100% rename from web-front/src/app/catalog/page.tsx rename to web-front/legacy/v1/catalog/page.tsx diff --git a/web-front/src/app/guides/[slug]/page.tsx b/web-front/legacy/v1/guides/[slug]/page.tsx similarity index 100% rename from web-front/src/app/guides/[slug]/page.tsx rename to web-front/legacy/v1/guides/[slug]/page.tsx diff --git a/web-front/public/archive-media/certificate.jpg b/web-front/public/archive-media/certificate.jpg new file mode 100644 index 0000000..548326d Binary files /dev/null and b/web-front/public/archive-media/certificate.jpg differ diff --git a/web-front/public/archive-media/early-kit.jpg b/web-front/public/archive-media/early-kit.jpg new file mode 100644 index 0000000..5d72e60 Binary files /dev/null and b/web-front/public/archive-media/early-kit.jpg differ diff --git a/web-front/public/archive-media/installation-block.jpg b/web-front/public/archive-media/installation-block.jpg new file mode 100644 index 0000000..a362939 Binary files /dev/null and b/web-front/public/archive-media/installation-block.jpg differ diff --git a/web-front/public/archive-media/installation-interior.jpg b/web-front/public/archive-media/installation-interior.jpg new file mode 100644 index 0000000..85ad1fb Binary files /dev/null and b/web-front/public/archive-media/installation-interior.jpg differ diff --git a/web-front/public/archive-media/svk006-front.jpg b/web-front/public/archive-media/svk006-front.jpg new file mode 100644 index 0000000..2d13890 Binary files /dev/null and b/web-front/public/archive-media/svk006-front.jpg differ diff --git a/web-front/public/archive-media/viewer-map.jpg b/web-front/public/archive-media/viewer-map.jpg new file mode 100644 index 0000000..7e39529 Binary files /dev/null and b/web-front/public/archive-media/viewer-map.jpg differ diff --git a/web-front/public/diagrams/svk-fleet-channels.svg b/web-front/public/diagrams/svk-fleet-channels.svg new file mode 100644 index 0000000..f47ab0c --- /dev/null +++ b/web-front/public/diagrams/svk-fleet-channels.svg @@ -0,0 +1,52 @@ + +Два канала СВК в примере наблюдения за автобусом +В описанном варианте СВК-007 первый канал принимает две камеры дверей и записывает по внешнему событию либо меняет частоту. Второй канал постоянно записывает дорогу и салон. Опциональный GPS даёт сведения об остановках и движении, а события дверей помогают находить нужные кадры. Схема показывает роли каналов, не электропроводку и не автоматический подсчёт пассажиров. + + + +ПРИМЕР ДЛЯ АВТОБУСА +Два канала — разные задачи + + + +КАНАЛ 1 +Двери + + + + + +дверь 1 +дверь 2 +событие +датчика + +Запись по событию +или изменение частоты кадров +Завершение может быть с задержкой. + + + +КАНАЛ 2 +Дорога и салон + + + + +дорога +салон +Постоянная запись обоих видов + + +Данные для просмотра + +GPS (опция): остановки, движение + +События дверей: метки кадров +Помогают отбирать и просматривать +записи, а не считать людей автоматически. +Роли каналов в примере СВК-007. +Возможности зависят от модели и настройки. +Схема не задаёт электрических соединений. + + diff --git a/web-front/public/diagrams/svk-road-guard.svg b/web-front/public/diagrams/svk-road-guard.svg new file mode 100644 index 0000000..2d662f6 --- /dev/null +++ b/web-front/public/diagrams/svk-road-guard.svg @@ -0,0 +1,39 @@ + +Чем отличаются режимы «Дорога» и «Охрана» в описании СВК +В режиме «Дорога» регистратор сохраняет кадры чаще. В режиме «Охрана» частота ниже, чтобы увеличить промежуток времени хранения на том же накопителе. Показаны относительные интервалы, а не измеренная частота конкретной настройки. + + + +РЕЖИМЫ ЗАПИСИ +Чаще или дольше? +Один и тот же интервал наблюдения + + + + + +Дорога +кадры сохраняются чаще + + +Больше подробностей движения + + + + + + +Охрана +частота кадров ниже + + +На накопителе помещается +больший промежуток времени + + +один сохранённый кадр + +время → +Интервалы условные; частота зависит от настройки. + + diff --git a/web-front/public/diagrams/svk-signal-chain.svg b/web-front/public/diagrams/svk-signal-chain.svg new file mode 100644 index 0000000..c9cc361 --- /dev/null +++ b/web-front/public/diagrams/svk-signal-chain.svg @@ -0,0 +1,60 @@ + +Как устроена запись в системе СВК +Одна или две USB веб-камеры передают кадры в блок СВК. Блок сохраняет их на USB FLASH. Для просмотра накопитель подключают к компьютеру. Это схема потока данных, а не электрического подключения. + + + +ПОТОК ДАННЫХ +От камеры к файлам + + + + + + + + + +USB-камеры +одна или две +снимают кадры + +USB + + + + + + + +Блок СВК +привязывает кадры +ко времени + +сохранение + + + + + + + +USB FLASH +хранит кадры +съёмный накопитель + +перенос файлов + + + + + + + + +Компьютер +просмотр и копия +сохранённых файлов +Схема обмена данными, не схема проводки. + + diff --git a/web-front/public/download/doc/QuickStart_SVK007_006.zip b/web-front/public/download/doc/QuickStart_SVK007_006.zip new file mode 100644 index 0000000..3c2b3b8 Binary files /dev/null and b/web-front/public/download/doc/QuickStart_SVK007_006.zip differ diff --git a/web-front/public/download/doc/UVR_instr.zip b/web-front/public/download/doc/UVR_instr.zip new file mode 100644 index 0000000..251f9b6 Binary files /dev/null and b/web-front/public/download/doc/UVR_instr.zip differ diff --git a/web-front/public/download/doc/svk_007_instr.zip b/web-front/public/download/doc/svk_007_instr.zip new file mode 100644 index 0000000..c6d5357 Binary files /dev/null and b/web-front/public/download/doc/svk_007_instr.zip differ diff --git a/web-front/public/download/svk-002-mn.pdf b/web-front/public/download/svk-002-mn.pdf new file mode 100644 index 0000000..9b877f0 Binary files /dev/null and b/web-front/public/download/svk-002-mn.pdf differ diff --git a/web-front/public/download/uvr_instr_2ch.zip b/web-front/public/download/uvr_instr_2ch.zip new file mode 100644 index 0000000..8fecc0d Binary files /dev/null and b/web-front/public/download/uvr_instr_2ch.zip differ diff --git a/web-front/public/manuals/quickstart-2009.pdf b/web-front/public/manuals/quickstart-2009.pdf new file mode 100644 index 0000000..1d94966 Binary files /dev/null and b/web-front/public/manuals/quickstart-2009.pdf differ diff --git a/web-front/public/manuals/svk007-2008.pdf b/web-front/public/manuals/svk007-2008.pdf new file mode 100644 index 0000000..6778b78 Binary files /dev/null and b/web-front/public/manuals/svk007-2008.pdf differ diff --git a/web-front/public/manuals/two-camera-2006.pdf b/web-front/public/manuals/two-camera-2006.pdf new file mode 100644 index 0000000..e488159 Binary files /dev/null and b/web-front/public/manuals/two-camera-2006.pdf differ diff --git a/web-front/public/manuals/uvr-2005.pdf b/web-front/public/manuals/uvr-2005.pdf new file mode 100644 index 0000000..a7b57c9 Binary files /dev/null and b/web-front/public/manuals/uvr-2005.pdf differ diff --git a/web-front/public/recordings/gps/A0048550.JPG b/web-front/public/recordings/gps/A0048550.JPG new file mode 100644 index 0000000..a732ee2 Binary files /dev/null and b/web-front/public/recordings/gps/A0048550.JPG differ diff --git a/web-front/public/recordings/gps/A0048551.JPG b/web-front/public/recordings/gps/A0048551.JPG new file mode 100644 index 0000000..3ec4318 Binary files /dev/null and b/web-front/public/recordings/gps/A0048551.JPG differ diff --git a/web-front/public/recordings/gps/A0048552.JPG b/web-front/public/recordings/gps/A0048552.JPG new file mode 100644 index 0000000..ccdce06 Binary files /dev/null and b/web-front/public/recordings/gps/A0048552.JPG differ diff --git a/web-front/public/recordings/gps/A0048553.JPG b/web-front/public/recordings/gps/A0048553.JPG new file mode 100644 index 0000000..9ddd725 Binary files /dev/null and b/web-front/public/recordings/gps/A0048553.JPG differ diff --git a/web-front/public/recordings/samples/FRA04840.JPG b/web-front/public/recordings/samples/FRA04840.JPG new file mode 100644 index 0000000..12d38f6 Binary files /dev/null and b/web-front/public/recordings/samples/FRA04840.JPG differ diff --git a/web-front/public/recordings/samples/FRA04841.JPG b/web-front/public/recordings/samples/FRA04841.JPG new file mode 100644 index 0000000..46d727c Binary files /dev/null and b/web-front/public/recordings/samples/FRA04841.JPG differ diff --git a/web-front/public/recordings/samples/FRA04842.JPG b/web-front/public/recordings/samples/FRA04842.JPG new file mode 100644 index 0000000..904b592 Binary files /dev/null and b/web-front/public/recordings/samples/FRA04842.JPG differ diff --git a/web-front/public/recordings/samples/FRA04843.JPG b/web-front/public/recordings/samples/FRA04843.JPG new file mode 100644 index 0000000..551a3f1 Binary files /dev/null and b/web-front/public/recordings/samples/FRA04843.JPG differ diff --git a/web-front/public/recordings/samples/FRA04845.JPG b/web-front/public/recordings/samples/FRA04845.JPG new file mode 100644 index 0000000..296f4f3 Binary files /dev/null and b/web-front/public/recordings/samples/FRA04845.JPG differ diff --git a/web-front/public/recordings/samples/FRA04847.JPG b/web-front/public/recordings/samples/FRA04847.JPG new file mode 100644 index 0000000..ef34e09 Binary files /dev/null and b/web-front/public/recordings/samples/FRA04847.JPG differ diff --git a/web-front/public/recordings/samples/FRA04848.JPG b/web-front/public/recordings/samples/FRA04848.JPG new file mode 100644 index 0000000..64be94e Binary files /dev/null and b/web-front/public/recordings/samples/FRA04848.JPG differ diff --git a/web-front/public/recordings/samples/FRA04849.JPG b/web-front/public/recordings/samples/FRA04849.JPG new file mode 100644 index 0000000..81d9227 Binary files /dev/null and b/web-front/public/recordings/samples/FRA04849.JPG differ diff --git a/web-front/public/recordings/samples/FRA04851.JPG b/web-front/public/recordings/samples/FRA04851.JPG new file mode 100644 index 0000000..68e9197 Binary files /dev/null and b/web-front/public/recordings/samples/FRA04851.JPG differ diff --git a/web-front/public/recordings/samples/FRA04852.JPG b/web-front/public/recordings/samples/FRA04852.JPG new file mode 100644 index 0000000..8f27bba Binary files /dev/null and b/web-front/public/recordings/samples/FRA04852.JPG differ diff --git a/web-front/public/recordings/samples/FRA04853.JPG b/web-front/public/recordings/samples/FRA04853.JPG new file mode 100644 index 0000000..e05386b Binary files /dev/null and b/web-front/public/recordings/samples/FRA04853.JPG differ diff --git a/web-front/public/recordings/samples/FRA04854.JPG b/web-front/public/recordings/samples/FRA04854.JPG new file mode 100644 index 0000000..ecdde3c Binary files /dev/null and b/web-front/public/recordings/samples/FRA04854.JPG differ diff --git a/web-front/public/recordings/samples/FRA04855.JPG b/web-front/public/recordings/samples/FRA04855.JPG new file mode 100644 index 0000000..1df51e6 Binary files /dev/null and b/web-front/public/recordings/samples/FRA04855.JPG differ diff --git a/web-front/public/recordings/samples/FRA04856.JPG b/web-front/public/recordings/samples/FRA04856.JPG new file mode 100644 index 0000000..cc060b3 Binary files /dev/null and b/web-front/public/recordings/samples/FRA04856.JPG differ diff --git a/web-front/public/recordings/samples/FRA04857.JPG b/web-front/public/recordings/samples/FRA04857.JPG new file mode 100644 index 0000000..c7f17d2 Binary files /dev/null and b/web-front/public/recordings/samples/FRA04857.JPG differ diff --git a/web-front/public/recordings/samples/FRA04858.JPG b/web-front/public/recordings/samples/FRA04858.JPG new file mode 100644 index 0000000..aa05cad Binary files /dev/null and b/web-front/public/recordings/samples/FRA04858.JPG differ diff --git a/web-front/public/recordings/samples/FRA13104.JPG b/web-front/public/recordings/samples/FRA13104.JPG new file mode 100644 index 0000000..27346d1 Binary files /dev/null and b/web-front/public/recordings/samples/FRA13104.JPG differ diff --git a/web-front/public/recordings/samples/FRA13105.JPG b/web-front/public/recordings/samples/FRA13105.JPG new file mode 100644 index 0000000..8fea582 Binary files /dev/null and b/web-front/public/recordings/samples/FRA13105.JPG differ diff --git a/web-front/public/recordings/samples/FRA13107.JPG b/web-front/public/recordings/samples/FRA13107.JPG new file mode 100644 index 0000000..4ce8ef6 Binary files /dev/null and b/web-front/public/recordings/samples/FRA13107.JPG differ diff --git a/web-front/public/recordings/samples/FRA13108.JPG b/web-front/public/recordings/samples/FRA13108.JPG new file mode 100644 index 0000000..f587503 Binary files /dev/null and b/web-front/public/recordings/samples/FRA13108.JPG differ diff --git a/web-front/public/recordings/samples/FRA13109.JPG b/web-front/public/recordings/samples/FRA13109.JPG new file mode 100644 index 0000000..8a462b6 Binary files /dev/null and b/web-front/public/recordings/samples/FRA13109.JPG differ diff --git a/web-front/public/recordings/samples/FRA13110.JPG b/web-front/public/recordings/samples/FRA13110.JPG new file mode 100644 index 0000000..7176a3c Binary files /dev/null and b/web-front/public/recordings/samples/FRA13110.JPG differ diff --git a/web-front/public/recordings/samples/FRA13113.JPG b/web-front/public/recordings/samples/FRA13113.JPG new file mode 100644 index 0000000..e1ee98d Binary files /dev/null and b/web-front/public/recordings/samples/FRA13113.JPG differ diff --git a/web-front/public/recordings/samples/FRA13114.JPG b/web-front/public/recordings/samples/FRA13114.JPG new file mode 100644 index 0000000..469fbc8 Binary files /dev/null and b/web-front/public/recordings/samples/FRA13114.JPG differ diff --git a/web-front/public/recordings/samples/FRA13115.JPG b/web-front/public/recordings/samples/FRA13115.JPG new file mode 100644 index 0000000..8f48de2 Binary files /dev/null and b/web-front/public/recordings/samples/FRA13115.JPG differ diff --git a/web-front/public/recordings/samples/FRA13116.JPG b/web-front/public/recordings/samples/FRA13116.JPG new file mode 100644 index 0000000..246089a Binary files /dev/null and b/web-front/public/recordings/samples/FRA13116.JPG differ diff --git a/web-front/public/recordings/samples/FRA13118.JPG b/web-front/public/recordings/samples/FRA13118.JPG new file mode 100644 index 0000000..b23b242 Binary files /dev/null and b/web-front/public/recordings/samples/FRA13118.JPG differ diff --git a/web-front/public/recordings/samples/FRA13119.JPG b/web-front/public/recordings/samples/FRA13119.JPG new file mode 100644 index 0000000..9dbde69 Binary files /dev/null and b/web-front/public/recordings/samples/FRA13119.JPG differ diff --git a/web-front/public/recordings/samples/FRA13120.JPG b/web-front/public/recordings/samples/FRA13120.JPG new file mode 100644 index 0000000..ba6a8cb Binary files /dev/null and b/web-front/public/recordings/samples/FRA13120.JPG differ diff --git a/web-front/public/recordings/samples/fr000775.jpg b/web-front/public/recordings/samples/fr000775.jpg new file mode 100644 index 0000000..ca7cd54 Binary files /dev/null and b/web-front/public/recordings/samples/fr000775.jpg differ diff --git a/web-front/public/recordings/samples/fr000776.jpg b/web-front/public/recordings/samples/fr000776.jpg new file mode 100644 index 0000000..80c9ddc Binary files /dev/null and b/web-front/public/recordings/samples/fr000776.jpg differ diff --git a/web-front/public/recordings/samples/fr000777.jpg b/web-front/public/recordings/samples/fr000777.jpg new file mode 100644 index 0000000..349291d Binary files /dev/null and b/web-front/public/recordings/samples/fr000777.jpg differ diff --git a/web-front/public/recordings/samples/fr000778.jpg b/web-front/public/recordings/samples/fr000778.jpg new file mode 100644 index 0000000..c2dc138 Binary files /dev/null and b/web-front/public/recordings/samples/fr000778.jpg differ diff --git a/web-front/public/recordings/samples/fr000779.jpg b/web-front/public/recordings/samples/fr000779.jpg new file mode 100644 index 0000000..2dfcb01 Binary files /dev/null and b/web-front/public/recordings/samples/fr000779.jpg differ diff --git a/web-front/public/recordings/samples/fr000780.jpg b/web-front/public/recordings/samples/fr000780.jpg new file mode 100644 index 0000000..961ae5a Binary files /dev/null and b/web-front/public/recordings/samples/fr000780.jpg differ diff --git a/web-front/public/recordings/samples/fr000781.jpg b/web-front/public/recordings/samples/fr000781.jpg new file mode 100644 index 0000000..a96c77f Binary files /dev/null and b/web-front/public/recordings/samples/fr000781.jpg differ diff --git a/web-front/public/recordings/samples/fr000783.jpg b/web-front/public/recordings/samples/fr000783.jpg new file mode 100644 index 0000000..fc431d5 Binary files /dev/null and b/web-front/public/recordings/samples/fr000783.jpg differ diff --git a/web-front/public/recordings/samples/fr000784.jpg b/web-front/public/recordings/samples/fr000784.jpg new file mode 100644 index 0000000..b370726 Binary files /dev/null and b/web-front/public/recordings/samples/fr000784.jpg differ diff --git a/web-front/public/recordings/samples/fr000785.jpg b/web-front/public/recordings/samples/fr000785.jpg new file mode 100644 index 0000000..0b9289e Binary files /dev/null and b/web-front/public/recordings/samples/fr000785.jpg differ diff --git a/web-front/public/recordings/samples/fr000786.jpg b/web-front/public/recordings/samples/fr000786.jpg new file mode 100644 index 0000000..bb1dccf Binary files /dev/null and b/web-front/public/recordings/samples/fr000786.jpg differ diff --git a/web-front/public/recordings/samples/fr000787.jpg b/web-front/public/recordings/samples/fr000787.jpg new file mode 100644 index 0000000..79bfe4b Binary files /dev/null and b/web-front/public/recordings/samples/fr000787.jpg differ diff --git a/web-front/public/recordings/samples/fr000788.jpg b/web-front/public/recordings/samples/fr000788.jpg new file mode 100644 index 0000000..256f9d9 Binary files /dev/null and b/web-front/public/recordings/samples/fr000788.jpg differ diff --git a/web-front/public/recordings/samples/fr000791.jpg b/web-front/public/recordings/samples/fr000791.jpg new file mode 100644 index 0000000..9ed3bfc Binary files /dev/null and b/web-front/public/recordings/samples/fr000791.jpg differ diff --git a/web-front/public/recordings/samples/fr000792.jpg b/web-front/public/recordings/samples/fr000792.jpg new file mode 100644 index 0000000..06eab55 Binary files /dev/null and b/web-front/public/recordings/samples/fr000792.jpg differ diff --git a/web-front/public/recordings/samples/fr000793.jpg b/web-front/public/recordings/samples/fr000793.jpg new file mode 100644 index 0000000..b014594 Binary files /dev/null and b/web-front/public/recordings/samples/fr000793.jpg differ diff --git a/web-front/public/recordings/samples/fr000794.jpg b/web-front/public/recordings/samples/fr000794.jpg new file mode 100644 index 0000000..3fc89a6 Binary files /dev/null and b/web-front/public/recordings/samples/fr000794.jpg differ diff --git a/web-front/public/recordings/samples/fr000797.jpg b/web-front/public/recordings/samples/fr000797.jpg new file mode 100644 index 0000000..d88b221 Binary files /dev/null and b/web-front/public/recordings/samples/fr000797.jpg differ diff --git a/web-front/public/recordings/samples/fr000799.jpg b/web-front/public/recordings/samples/fr000799.jpg new file mode 100644 index 0000000..25734cc Binary files /dev/null and b/web-front/public/recordings/samples/fr000799.jpg differ diff --git a/web-front/public/recordings/samples/fr000800.jpg b/web-front/public/recordings/samples/fr000800.jpg new file mode 100644 index 0000000..ae8ec18 Binary files /dev/null and b/web-front/public/recordings/samples/fr000800.jpg differ diff --git a/web-front/public/recordings/samples/fr000801.jpg b/web-front/public/recordings/samples/fr000801.jpg new file mode 100644 index 0000000..12f16bb Binary files /dev/null and b/web-front/public/recordings/samples/fr000801.jpg differ diff --git a/web-front/public/recordings/samples/fr000802.jpg b/web-front/public/recordings/samples/fr000802.jpg new file mode 100644 index 0000000..16ecfae Binary files /dev/null and b/web-front/public/recordings/samples/fr000802.jpg differ diff --git a/web-front/public/recordings/samples/fr000803.jpg b/web-front/public/recordings/samples/fr000803.jpg new file mode 100644 index 0000000..661ccd6 Binary files /dev/null and b/web-front/public/recordings/samples/fr000803.jpg differ diff --git a/web-front/public/recordings/samples/fr000804.jpg b/web-front/public/recordings/samples/fr000804.jpg new file mode 100644 index 0000000..80ec37b Binary files /dev/null and b/web-front/public/recordings/samples/fr000804.jpg differ diff --git a/web-front/public/recordings/samples/fr000805.jpg b/web-front/public/recordings/samples/fr000805.jpg new file mode 100644 index 0000000..ea4c38c Binary files /dev/null and b/web-front/public/recordings/samples/fr000805.jpg differ diff --git a/web-front/public/recordings/samples/fr000806.jpg b/web-front/public/recordings/samples/fr000806.jpg new file mode 100644 index 0000000..0ad6e70 Binary files /dev/null and b/web-front/public/recordings/samples/fr000806.jpg differ diff --git a/web-front/public/recordings/samples/fr000807.jpg b/web-front/public/recordings/samples/fr000807.jpg new file mode 100644 index 0000000..138d897 Binary files /dev/null and b/web-front/public/recordings/samples/fr000807.jpg differ diff --git a/web-front/public/recordings/samples/fr000808.jpg b/web-front/public/recordings/samples/fr000808.jpg new file mode 100644 index 0000000..7b7a56e Binary files /dev/null and b/web-front/public/recordings/samples/fr000808.jpg differ diff --git a/web-front/public/recordings/samples/fr000809.jpg b/web-front/public/recordings/samples/fr000809.jpg new file mode 100644 index 0000000..a3184c7 Binary files /dev/null and b/web-front/public/recordings/samples/fr000809.jpg differ diff --git a/web-front/public/recordings/samples/fr000810.jpg b/web-front/public/recordings/samples/fr000810.jpg new file mode 100644 index 0000000..ae62c83 Binary files /dev/null and b/web-front/public/recordings/samples/fr000810.jpg differ diff --git a/web-front/public/recordings/samples/fr002306.jpg b/web-front/public/recordings/samples/fr002306.jpg new file mode 100644 index 0000000..3e024b5 Binary files /dev/null and b/web-front/public/recordings/samples/fr002306.jpg differ diff --git a/web-front/public/recordings/samples/fr002307.jpg b/web-front/public/recordings/samples/fr002307.jpg new file mode 100644 index 0000000..745c476 Binary files /dev/null and b/web-front/public/recordings/samples/fr002307.jpg differ diff --git a/web-front/public/recordings/samples/fr002308.jpg b/web-front/public/recordings/samples/fr002308.jpg new file mode 100644 index 0000000..947a190 Binary files /dev/null and b/web-front/public/recordings/samples/fr002308.jpg differ diff --git a/web-front/public/recordings/samples/fr002309.jpg b/web-front/public/recordings/samples/fr002309.jpg new file mode 100644 index 0000000..7622cac Binary files /dev/null and b/web-front/public/recordings/samples/fr002309.jpg differ diff --git a/web-front/public/recordings/samples/fr002310.jpg b/web-front/public/recordings/samples/fr002310.jpg new file mode 100644 index 0000000..8c0a0c6 Binary files /dev/null and b/web-front/public/recordings/samples/fr002310.jpg differ diff --git a/web-front/public/recordings/samples/fr002311.jpg b/web-front/public/recordings/samples/fr002311.jpg new file mode 100644 index 0000000..ef4cc48 Binary files /dev/null and b/web-front/public/recordings/samples/fr002311.jpg differ diff --git a/web-front/public/recordings/samples/fr002312.jpg b/web-front/public/recordings/samples/fr002312.jpg new file mode 100644 index 0000000..4219a13 Binary files /dev/null and b/web-front/public/recordings/samples/fr002312.jpg differ diff --git a/web-front/public/recordings/samples/fr002313.jpg b/web-front/public/recordings/samples/fr002313.jpg new file mode 100644 index 0000000..f9f1a73 Binary files /dev/null and b/web-front/public/recordings/samples/fr002313.jpg differ diff --git a/web-front/public/recordings/samples/fr002314.jpg b/web-front/public/recordings/samples/fr002314.jpg new file mode 100644 index 0000000..1f71eda Binary files /dev/null and b/web-front/public/recordings/samples/fr002314.jpg differ diff --git a/web-front/public/recordings/samples/fr002315.jpg b/web-front/public/recordings/samples/fr002315.jpg new file mode 100644 index 0000000..5eac460 Binary files /dev/null and b/web-front/public/recordings/samples/fr002315.jpg differ diff --git a/web-front/public/recordings/samples/fr002316.jpg b/web-front/public/recordings/samples/fr002316.jpg new file mode 100644 index 0000000..748139c Binary files /dev/null and b/web-front/public/recordings/samples/fr002316.jpg differ diff --git a/web-front/public/recordings/samples/fr002317.jpg b/web-front/public/recordings/samples/fr002317.jpg new file mode 100644 index 0000000..58e3a55 Binary files /dev/null and b/web-front/public/recordings/samples/fr002317.jpg differ diff --git a/web-front/public/recordings/samples/fr002318.jpg b/web-front/public/recordings/samples/fr002318.jpg new file mode 100644 index 0000000..bc0d945 Binary files /dev/null and b/web-front/public/recordings/samples/fr002318.jpg differ diff --git a/web-front/public/recordings/samples/fr002319.jpg b/web-front/public/recordings/samples/fr002319.jpg new file mode 100644 index 0000000..b31a556 Binary files /dev/null and b/web-front/public/recordings/samples/fr002319.jpg differ diff --git a/web-front/public/recordings/samples/fr002320.jpg b/web-front/public/recordings/samples/fr002320.jpg new file mode 100644 index 0000000..d9f1a23 Binary files /dev/null and b/web-front/public/recordings/samples/fr002320.jpg differ diff --git a/web-front/public/recordings/samples/fr002321.jpg b/web-front/public/recordings/samples/fr002321.jpg new file mode 100644 index 0000000..085f3af Binary files /dev/null and b/web-front/public/recordings/samples/fr002321.jpg differ diff --git a/web-front/public/recordings/samples/fr002322.jpg b/web-front/public/recordings/samples/fr002322.jpg new file mode 100644 index 0000000..3c93e73 Binary files /dev/null and b/web-front/public/recordings/samples/fr002322.jpg differ diff --git a/web-front/public/recordings/samples/fr002323.jpg b/web-front/public/recordings/samples/fr002323.jpg new file mode 100644 index 0000000..9a2b1a9 Binary files /dev/null and b/web-front/public/recordings/samples/fr002323.jpg differ diff --git a/web-front/public/recordings/samples/fr002324.jpg b/web-front/public/recordings/samples/fr002324.jpg new file mode 100644 index 0000000..723042d Binary files /dev/null and b/web-front/public/recordings/samples/fr002324.jpg differ diff --git a/web-front/public/recordings/samples/fr002325.jpg b/web-front/public/recordings/samples/fr002325.jpg new file mode 100644 index 0000000..5ff729e Binary files /dev/null and b/web-front/public/recordings/samples/fr002325.jpg differ diff --git a/web-front/public/recordings/samples/fr002326.jpg b/web-front/public/recordings/samples/fr002326.jpg new file mode 100644 index 0000000..2d4a38e Binary files /dev/null and b/web-front/public/recordings/samples/fr002326.jpg differ diff --git a/web-front/public/recordings/samples/fr002328.jpg b/web-front/public/recordings/samples/fr002328.jpg new file mode 100644 index 0000000..40ef65c Binary files /dev/null and b/web-front/public/recordings/samples/fr002328.jpg differ diff --git a/web-front/public/recordings/samples/fr002329.jpg b/web-front/public/recordings/samples/fr002329.jpg new file mode 100644 index 0000000..5d7e994 Binary files /dev/null and b/web-front/public/recordings/samples/fr002329.jpg differ diff --git a/web-front/public/recordings/samples/fr002330.jpg b/web-front/public/recordings/samples/fr002330.jpg new file mode 100644 index 0000000..d1efd93 Binary files /dev/null and b/web-front/public/recordings/samples/fr002330.jpg differ diff --git a/web-front/public/recordings/samples/fr002331.jpg b/web-front/public/recordings/samples/fr002331.jpg new file mode 100644 index 0000000..aac91ff Binary files /dev/null and b/web-front/public/recordings/samples/fr002331.jpg differ diff --git a/web-front/public/recordings/samples/fr002332.jpg b/web-front/public/recordings/samples/fr002332.jpg new file mode 100644 index 0000000..2242ea1 Binary files /dev/null and b/web-front/public/recordings/samples/fr002332.jpg differ diff --git a/web-front/public/recordings/samples/fr002333.jpg b/web-front/public/recordings/samples/fr002333.jpg new file mode 100644 index 0000000..b73b602 Binary files /dev/null and b/web-front/public/recordings/samples/fr002333.jpg differ diff --git a/web-front/public/recordings/samples/fr002334.jpg b/web-front/public/recordings/samples/fr002334.jpg new file mode 100644 index 0000000..a517e17 Binary files /dev/null and b/web-front/public/recordings/samples/fr002334.jpg differ diff --git a/web-front/public/recordings/samples/fr002335.jpg b/web-front/public/recordings/samples/fr002335.jpg new file mode 100644 index 0000000..4b8ddd2 Binary files /dev/null and b/web-front/public/recordings/samples/fr002335.jpg differ diff --git a/web-front/public/recordings/samples/fr002337.jpg b/web-front/public/recordings/samples/fr002337.jpg new file mode 100644 index 0000000..bf4ca74 Binary files /dev/null and b/web-front/public/recordings/samples/fr002337.jpg differ diff --git a/web-front/public/recordings/samples/fr002338.jpg b/web-front/public/recordings/samples/fr002338.jpg new file mode 100644 index 0000000..727e65d Binary files /dev/null and b/web-front/public/recordings/samples/fr002338.jpg differ diff --git a/web-front/public/recordings/samples/fr002339.jpg b/web-front/public/recordings/samples/fr002339.jpg new file mode 100644 index 0000000..6e7d476 Binary files /dev/null and b/web-front/public/recordings/samples/fr002339.jpg differ diff --git a/web-front/public/recordings/samples/fr002340.jpg b/web-front/public/recordings/samples/fr002340.jpg new file mode 100644 index 0000000..a7b64a5 Binary files /dev/null and b/web-front/public/recordings/samples/fr002340.jpg differ diff --git a/web-front/public/recordings/samples/fr002341.jpg b/web-front/public/recordings/samples/fr002341.jpg new file mode 100644 index 0000000..5aaf45d Binary files /dev/null and b/web-front/public/recordings/samples/fr002341.jpg differ diff --git a/web-front/public/recordings/samples/fr002342.jpg b/web-front/public/recordings/samples/fr002342.jpg new file mode 100644 index 0000000..8fb2de1 Binary files /dev/null and b/web-front/public/recordings/samples/fr002342.jpg differ diff --git a/web-front/public/recordings/samples/fr002343.jpg b/web-front/public/recordings/samples/fr002343.jpg new file mode 100644 index 0000000..3976230 Binary files /dev/null and b/web-front/public/recordings/samples/fr002343.jpg differ diff --git a/web-front/public/recordings/samples/fr002344.jpg b/web-front/public/recordings/samples/fr002344.jpg new file mode 100644 index 0000000..e81179d Binary files /dev/null and b/web-front/public/recordings/samples/fr002344.jpg differ diff --git a/web-front/public/recordings/samples/fr002346.jpg b/web-front/public/recordings/samples/fr002346.jpg new file mode 100644 index 0000000..79f0001 Binary files /dev/null and b/web-front/public/recordings/samples/fr002346.jpg differ diff --git a/web-front/public/recordings/samples/fr002347.jpg b/web-front/public/recordings/samples/fr002347.jpg new file mode 100644 index 0000000..2964bf6 Binary files /dev/null and b/web-front/public/recordings/samples/fr002347.jpg differ diff --git a/web-front/public/recordings/samples/fr002348.jpg b/web-front/public/recordings/samples/fr002348.jpg new file mode 100644 index 0000000..b0c5e58 Binary files /dev/null and b/web-front/public/recordings/samples/fr002348.jpg differ diff --git a/web-front/public/recordings/samples/fr002349.jpg b/web-front/public/recordings/samples/fr002349.jpg new file mode 100644 index 0000000..83a9907 Binary files /dev/null and b/web-front/public/recordings/samples/fr002349.jpg differ diff --git a/web-front/public/recordings/samples/fr00235001.jpg b/web-front/public/recordings/samples/fr00235001.jpg new file mode 100644 index 0000000..0b89657 Binary files /dev/null and b/web-front/public/recordings/samples/fr00235001.jpg differ diff --git a/web-front/public/recordings/samples/fr002351.jpg b/web-front/public/recordings/samples/fr002351.jpg new file mode 100644 index 0000000..6f09089 Binary files /dev/null and b/web-front/public/recordings/samples/fr002351.jpg differ diff --git a/web-front/public/recordings/samples/fr002352.jpg b/web-front/public/recordings/samples/fr002352.jpg new file mode 100644 index 0000000..7420c64 Binary files /dev/null and b/web-front/public/recordings/samples/fr002352.jpg differ diff --git a/web-front/public/recordings/samples/fr002353.jpg b/web-front/public/recordings/samples/fr002353.jpg new file mode 100644 index 0000000..8b7145e Binary files /dev/null and b/web-front/public/recordings/samples/fr002353.jpg differ diff --git a/web-front/public/recordings/samples/fr002357.jpg b/web-front/public/recordings/samples/fr002357.jpg new file mode 100644 index 0000000..a732edd Binary files /dev/null and b/web-front/public/recordings/samples/fr002357.jpg differ diff --git a/web-front/public/recordings/samples/fr002358.jpg b/web-front/public/recordings/samples/fr002358.jpg new file mode 100644 index 0000000..1909e29 Binary files /dev/null and b/web-front/public/recordings/samples/fr002358.jpg differ diff --git a/web-front/public/recordings/samples/fr002359.jpg b/web-front/public/recordings/samples/fr002359.jpg new file mode 100644 index 0000000..5c3ee4f Binary files /dev/null and b/web-front/public/recordings/samples/fr002359.jpg differ diff --git a/web-front/public/recordings/samples/fr002363.jpg b/web-front/public/recordings/samples/fr002363.jpg new file mode 100644 index 0000000..30efe91 Binary files /dev/null and b/web-front/public/recordings/samples/fr002363.jpg differ diff --git a/web-front/public/recordings/samples/fr002364.jpg b/web-front/public/recordings/samples/fr002364.jpg new file mode 100644 index 0000000..02d0c91 Binary files /dev/null and b/web-front/public/recordings/samples/fr002364.jpg differ diff --git a/web-front/public/recordings/samples/fr002365.jpg b/web-front/public/recordings/samples/fr002365.jpg new file mode 100644 index 0000000..63ff08d Binary files /dev/null and b/web-front/public/recordings/samples/fr002365.jpg differ diff --git a/web-front/public/recordings/samples/fr002366.jpg b/web-front/public/recordings/samples/fr002366.jpg new file mode 100644 index 0000000..859555e Binary files /dev/null and b/web-front/public/recordings/samples/fr002366.jpg differ diff --git a/web-front/public/recordings/samples/fr002367.jpg b/web-front/public/recordings/samples/fr002367.jpg new file mode 100644 index 0000000..2e41dd2 Binary files /dev/null and b/web-front/public/recordings/samples/fr002367.jpg differ diff --git a/web-front/public/recordings/samples/fr002368.jpg b/web-front/public/recordings/samples/fr002368.jpg new file mode 100644 index 0000000..923e5fb Binary files /dev/null and b/web-front/public/recordings/samples/fr002368.jpg differ diff --git a/web-front/public/recordings/samples/fr002369.jpg b/web-front/public/recordings/samples/fr002369.jpg new file mode 100644 index 0000000..fcd29aa Binary files /dev/null and b/web-front/public/recordings/samples/fr002369.jpg differ diff --git a/web-front/public/recordings/samples/fra07122.jpg b/web-front/public/recordings/samples/fra07122.jpg new file mode 100644 index 0000000..88e3852 Binary files /dev/null and b/web-front/public/recordings/samples/fra07122.jpg differ diff --git a/web-front/public/recordings/samples/fra07123.jpg b/web-front/public/recordings/samples/fra07123.jpg new file mode 100644 index 0000000..dcf4f8f Binary files /dev/null and b/web-front/public/recordings/samples/fra07123.jpg differ diff --git a/web-front/public/recordings/samples/fra07124.jpg b/web-front/public/recordings/samples/fra07124.jpg new file mode 100644 index 0000000..1875a32 Binary files /dev/null and b/web-front/public/recordings/samples/fra07124.jpg differ diff --git a/web-front/public/recordings/samples/fra07125.jpg b/web-front/public/recordings/samples/fra07125.jpg new file mode 100644 index 0000000..0370eca Binary files /dev/null and b/web-front/public/recordings/samples/fra07125.jpg differ diff --git a/web-front/public/recordings/samples/fra07126.jpg b/web-front/public/recordings/samples/fra07126.jpg new file mode 100644 index 0000000..3f8e639 Binary files /dev/null and b/web-front/public/recordings/samples/fra07126.jpg differ diff --git a/web-front/public/recordings/samples/fra07127.jpg b/web-front/public/recordings/samples/fra07127.jpg new file mode 100644 index 0000000..a655a53 Binary files /dev/null and b/web-front/public/recordings/samples/fra07127.jpg differ diff --git a/web-front/public/recordings/samples/fra07128.jpg b/web-front/public/recordings/samples/fra07128.jpg new file mode 100644 index 0000000..2e46287 Binary files /dev/null and b/web-front/public/recordings/samples/fra07128.jpg differ diff --git a/web-front/public/recordings/samples/fra07129.jpg b/web-front/public/recordings/samples/fra07129.jpg new file mode 100644 index 0000000..9ff6d7c Binary files /dev/null and b/web-front/public/recordings/samples/fra07129.jpg differ diff --git a/web-front/public/recordings/samples/fra07130.jpg b/web-front/public/recordings/samples/fra07130.jpg new file mode 100644 index 0000000..f176fb3 Binary files /dev/null and b/web-front/public/recordings/samples/fra07130.jpg differ diff --git a/web-front/public/recordings/samples/fra07131.jpg b/web-front/public/recordings/samples/fra07131.jpg new file mode 100644 index 0000000..47adc26 Binary files /dev/null and b/web-front/public/recordings/samples/fra07131.jpg differ diff --git a/web-front/public/recordings/samples/fra07132.jpg b/web-front/public/recordings/samples/fra07132.jpg new file mode 100644 index 0000000..eaff30d Binary files /dev/null and b/web-front/public/recordings/samples/fra07132.jpg differ diff --git a/web-front/public/recordings/samples/fra07133.jpg b/web-front/public/recordings/samples/fra07133.jpg new file mode 100644 index 0000000..3592b08 Binary files /dev/null and b/web-front/public/recordings/samples/fra07133.jpg differ diff --git a/web-front/public/recordings/samples/fra07134.jpg b/web-front/public/recordings/samples/fra07134.jpg new file mode 100644 index 0000000..1fa2d70 Binary files /dev/null and b/web-front/public/recordings/samples/fra07134.jpg differ diff --git a/web-front/public/recordings/samples/fra07135.jpg b/web-front/public/recordings/samples/fra07135.jpg new file mode 100644 index 0000000..2341cc9 Binary files /dev/null and b/web-front/public/recordings/samples/fra07135.jpg differ diff --git a/web-front/public/recordings/samples/fra07136.jpg b/web-front/public/recordings/samples/fra07136.jpg new file mode 100644 index 0000000..57333fd Binary files /dev/null and b/web-front/public/recordings/samples/fra07136.jpg differ diff --git a/web-front/public/recordings/samples/fra07137.jpg b/web-front/public/recordings/samples/fra07137.jpg new file mode 100644 index 0000000..7d87cd5 Binary files /dev/null and b/web-front/public/recordings/samples/fra07137.jpg differ diff --git a/web-front/public/recordings/samples/fra07138.jpg b/web-front/public/recordings/samples/fra07138.jpg new file mode 100644 index 0000000..b0a0d36 Binary files /dev/null and b/web-front/public/recordings/samples/fra07138.jpg differ diff --git a/web-front/public/recordings/samples/fra07139.jpg b/web-front/public/recordings/samples/fra07139.jpg new file mode 100644 index 0000000..937b449 Binary files /dev/null and b/web-front/public/recordings/samples/fra07139.jpg differ diff --git a/web-front/public/recordings/samples/fra07140.jpg b/web-front/public/recordings/samples/fra07140.jpg new file mode 100644 index 0000000..137d1ea Binary files /dev/null and b/web-front/public/recordings/samples/fra07140.jpg differ diff --git a/web-front/public/recordings/samples/fra07141.jpg b/web-front/public/recordings/samples/fra07141.jpg new file mode 100644 index 0000000..613a02c Binary files /dev/null and b/web-front/public/recordings/samples/fra07141.jpg differ diff --git a/web-front/public/recordings/samples/fra07142.jpg b/web-front/public/recordings/samples/fra07142.jpg new file mode 100644 index 0000000..e3b1a7b Binary files /dev/null and b/web-front/public/recordings/samples/fra07142.jpg differ diff --git a/web-front/public/recordings/samples/fra07143.jpg b/web-front/public/recordings/samples/fra07143.jpg new file mode 100644 index 0000000..c3e3afc Binary files /dev/null and b/web-front/public/recordings/samples/fra07143.jpg differ diff --git a/web-front/public/recordings/samples/fra07144.jpg b/web-front/public/recordings/samples/fra07144.jpg new file mode 100644 index 0000000..29a6cad Binary files /dev/null and b/web-front/public/recordings/samples/fra07144.jpg differ diff --git a/web-front/public/recordings/samples/fra07145.jpg b/web-front/public/recordings/samples/fra07145.jpg new file mode 100644 index 0000000..60a8fcb Binary files /dev/null and b/web-front/public/recordings/samples/fra07145.jpg differ diff --git a/web-front/public/recordings/samples/fra07146.jpg b/web-front/public/recordings/samples/fra07146.jpg new file mode 100644 index 0000000..351b05c Binary files /dev/null and b/web-front/public/recordings/samples/fra07146.jpg differ diff --git a/web-front/public/recordings/samples/fra51230.jpg b/web-front/public/recordings/samples/fra51230.jpg new file mode 100644 index 0000000..8adadde Binary files /dev/null and b/web-front/public/recordings/samples/fra51230.jpg differ diff --git a/web-front/public/recordings/samples/fra51231.jpg b/web-front/public/recordings/samples/fra51231.jpg new file mode 100644 index 0000000..d9675f5 Binary files /dev/null and b/web-front/public/recordings/samples/fra51231.jpg differ diff --git a/web-front/public/recordings/samples/fra51233.jpg b/web-front/public/recordings/samples/fra51233.jpg new file mode 100644 index 0000000..2b9e907 Binary files /dev/null and b/web-front/public/recordings/samples/fra51233.jpg differ diff --git a/web-front/public/recordings/samples/fra51234.jpg b/web-front/public/recordings/samples/fra51234.jpg new file mode 100644 index 0000000..417a7c8 Binary files /dev/null and b/web-front/public/recordings/samples/fra51234.jpg differ diff --git a/web-front/public/recordings/samples/fra51235.jpg b/web-front/public/recordings/samples/fra51235.jpg new file mode 100644 index 0000000..c8b7eb3 Binary files /dev/null and b/web-front/public/recordings/samples/fra51235.jpg differ diff --git a/web-front/public/recordings/samples/fra51236.jpg b/web-front/public/recordings/samples/fra51236.jpg new file mode 100644 index 0000000..d4c791f Binary files /dev/null and b/web-front/public/recordings/samples/fra51236.jpg differ diff --git a/web-front/public/recordings/samples/fra51237.jpg b/web-front/public/recordings/samples/fra51237.jpg new file mode 100644 index 0000000..ad60093 Binary files /dev/null and b/web-front/public/recordings/samples/fra51237.jpg differ diff --git a/web-front/public/recordings/samples/fra51238.jpg b/web-front/public/recordings/samples/fra51238.jpg new file mode 100644 index 0000000..b3a0e38 Binary files /dev/null and b/web-front/public/recordings/samples/fra51238.jpg differ diff --git a/web-front/public/recordings/samples/fra51239.jpg b/web-front/public/recordings/samples/fra51239.jpg new file mode 100644 index 0000000..5333229 Binary files /dev/null and b/web-front/public/recordings/samples/fra51239.jpg differ diff --git a/web-front/public/recordings/samples/fra51240.jpg b/web-front/public/recordings/samples/fra51240.jpg new file mode 100644 index 0000000..6599634 Binary files /dev/null and b/web-front/public/recordings/samples/fra51240.jpg differ diff --git a/web-front/public/recordings/samples/fra51241.jpg b/web-front/public/recordings/samples/fra51241.jpg new file mode 100644 index 0000000..b218e76 Binary files /dev/null and b/web-front/public/recordings/samples/fra51241.jpg differ diff --git a/web-front/public/recordings/samples/fra51242.jpg b/web-front/public/recordings/samples/fra51242.jpg new file mode 100644 index 0000000..b28263b Binary files /dev/null and b/web-front/public/recordings/samples/fra51242.jpg differ diff --git a/web-front/public/recordings/samples/fra51243.jpg b/web-front/public/recordings/samples/fra51243.jpg new file mode 100644 index 0000000..47ad0f1 Binary files /dev/null and b/web-front/public/recordings/samples/fra51243.jpg differ diff --git a/web-front/public/recordings/samples/fra51244.jpg b/web-front/public/recordings/samples/fra51244.jpg new file mode 100644 index 0000000..f3ca1b2 Binary files /dev/null and b/web-front/public/recordings/samples/fra51244.jpg differ diff --git a/web-front/public/recordings/samples/fra51245.jpg b/web-front/public/recordings/samples/fra51245.jpg new file mode 100644 index 0000000..96f63aa Binary files /dev/null and b/web-front/public/recordings/samples/fra51245.jpg differ diff --git a/web-front/public/recordings/samples/fra51247.jpg b/web-front/public/recordings/samples/fra51247.jpg new file mode 100644 index 0000000..0c3477a Binary files /dev/null and b/web-front/public/recordings/samples/fra51247.jpg differ diff --git a/web-front/public/recordings/samples/fra51248.jpg b/web-front/public/recordings/samples/fra51248.jpg new file mode 100644 index 0000000..7811057 Binary files /dev/null and b/web-front/public/recordings/samples/fra51248.jpg differ diff --git a/web-front/public/recordings/samples/fra51249.jpg b/web-front/public/recordings/samples/fra51249.jpg new file mode 100644 index 0000000..1567185 Binary files /dev/null and b/web-front/public/recordings/samples/fra51249.jpg differ diff --git a/web-front/public/recordings/samples/fra5125001.jpg b/web-front/public/recordings/samples/fra5125001.jpg new file mode 100644 index 0000000..21b0c7f Binary files /dev/null and b/web-front/public/recordings/samples/fra5125001.jpg differ diff --git a/web-front/src/app/[...slug]/page.tsx b/web-front/src/app/[...slug]/page.tsx new file mode 100644 index 0000000..0d11855 --- /dev/null +++ b/web-front/src/app/[...slug]/page.tsx @@ -0,0 +1,172 @@ +import { notFound } from "next/navigation"; +import FrameGallery from "@/components/FrameGallery"; +import { articles, findArticle } from "@/content/library"; +export const dynamicParams = false; +export function generateStaticParams() { + return articles.map((a) => ({ slug: a.path.slice(1).split("/") })); +} +export async function generateMetadata({ + params, +}: { + params: Promise<{ slug: string[] }>; +}) { + const { slug } = await params; + const a = findArticle("/" + slug.join("/")); + return { title: a?.title, description: a?.summary }; +} +const dimensions: Record = { + "/archive-media/svk006-front.jpg": [800, 528], + "/archive-media/early-kit.jpg": [640, 551], + "/archive-media/viewer-map.jpg": [1259, 850], + "/archive-media/certificate.jpg": [200, 282], + "/archive-media/installation-interior.jpg": [200, 150], + "/archive-media/installation-block.jpg": [200, 150], + "/diagrams/svk-signal-chain.svg": [440, 870], + "/diagrams/svk-road-guard.svg": [440, 815], + "/diagrams/svk-fleet-channels.svg": [440, 1015], +}; +export default async function Page({ + params, +}: { + params: Promise<{ slug: string[] }>; +}) { + const { slug } = await params; + const a = findArticle("/" + slug.join("/")); + if (!a) notFound(); + return ( +
+
+ + ← К библиотеке + +

+ {a.category} / {a.date} +

+

{a.title}

+

{a.summary}

+
+
+ +
+ {a.sections.map((s, i) => ( +
+

{s.heading}

+ {s.paragraphs.map((p) => ( +

{p}

+ ))} + {s.list && ( +
    + {s.list.map((v) => ( +
  1. {v}
  2. + ))} +
+ )} + {s.note && } + {s.code && ( +
+                  {s.code}
+                
+ )} + {s.table && ( +
+ + + + + {s.table.head.map((h) => ( + + ))} + + + + {s.table.rows.map((row, j) => ( + + {row.map((value, k) => + k === 0 ? ( + + ) : ( + + ), + )} + + ))} + +
{s.table.caption}
+ {h} +
+ {value} + {value}
+
+ )} + {s.figure && ( +
+ + {s.figure.alt} + +
{s.figure.caption}
+
+ )} + {s.gallery && }{" "} + {s.links && ( + + )} +
+ ))} + +
+
+
+ ); +} diff --git a/web-front/src/app/about/page.tsx b/web-front/src/app/about/page.tsx index 2888350..26cbefc 100644 --- a/web-front/src/app/about/page.tsx +++ b/web-front/src/app/about/page.tsx @@ -1,2 +1,38 @@ -export const metadata={title:'Источники и история проекта'}; -export default function About(){return

ПРОИСХОЖДЕНИЕ МАТЕРИАЛОВ

Открыто об истории сайта

Автомобильные видеорегистраторы — тема videoreg.ru. Мы сохраняем полезное и честно отмечаем границы восстановления.

Что известно о старом сайте

В обсуждении Харьковского АвтоКлуба от августа 2007 года участники ссылались на www.videoreg.ru/auto.shtml. Это подтверждает старый адрес и автомобильную тему, но не даёт нам полного текста страницы.

Посмотреть историческое упоминание ↗

Что удалось восстановить из архива

На 26 октября 2026 года — ни одной страницы или картинки из Web Archive. CDX и получение снимков недоступны из проверенных сетей, API доступности вернул 429. Альтернативный поиск Arquivo.pt вернул ноль результатов. Мы не воспроизводим чужие форумные сообщения как тексты старого сайта.

Старый адрес /auto.shtml ведёт к новому руководству по выбору. Это совместимый маршрут, а не копия прежней страницы. Другие неизвестные адреса возвращают 404.

Что сохранено из проекта

Каталог из существующего локального проекта: снимок карточек Яндекс Маркета от 30 июля 2026 с адресами источников. Сохранили исходные значения, не добавляли цены, оценки и отзывы. Снимок не доказывает текущую доступность товара.

Что создано заново

Четыре руководства, калькулятор, навигация и этот интерфейс написаны 26 октября 2026. Технические определения сверены с SD Association и документацией 70mai; ссылки находятся рядом с материалами. Практические списки проверок — редакционные рекомендации.

Чистая версия

Удалён внешний счётчик Яндекс Метрики. Демонстрационные рейтинги с вымышленными моделями не публикуются. Сайт не запускает архивные скрипты, не предлагает прошивки и пиратские загрузки. Обнаруженного архивного спама нет: сами снимки недоступны.

} +export const metadata = { title: "О технической библиотеке" }; +export default function About() { + return ( +
+

VIDEOREG

+

Библиотека систем СВК

+

+ Устройство, эксплуатация и чтение записи — без витрины продаж. +

+

Для кого эти материалы

+

+ Для владельца старого блока СВК, которому нужна инструкция своего + поколения, таблица камер или объяснение покадровой записи. Отдельные + материалы помогают понять устройство ранних автомобильных систем + регистрации. +

+

Сначала модель и редакция

+

+ Страницы разных лет относятся к разным аппаратным версиям. Даты у + материалов помогают различать поколения. Указанные там камеры, носители + и параметры не являются универсальной рекомендацией для современного + оборудования. +

+

Как пользоваться

+

+ Начните с устройства системы, затем откройте инструкцию подходящего + блока. Для поиска конкретной ошибки или камеры используйте поиск по + полным текстам. Исходные PDF открываются внутри сайта; программы и + прошивки автоматически не запускаются. +

+
+ Устройство СВК → + Материалы и поиск → + Документы → +
+
+ ); +} diff --git a/web-front/src/app/community/page.tsx b/web-front/src/app/community/page.tsx new file mode 100644 index 0000000..70ed39e --- /dev/null +++ b/web-front/src/app/community/page.tsx @@ -0,0 +1,32 @@ +import { articles } from "@/content/library"; +export const metadata = { title: "Технические разборы СВК" }; +export default function Page() { + return ( +
+

ЭКСПЛУАТАЦИЯ / РАЗБОРЫ

+

+ Проблема и условия, +
в которых она возникла. +

+

+ Два разбора из обсуждений владельцев СВК. Частный опыт не превращён в + обещание совместимости любого оборудования. +

+
+ {articles + .filter((a) => a.path.startsWith("/community/")) + .map((a) => ( + + Обсуждение · {a.date} +

{a.title}

+

{a.summary}

+ ↗ +
+ ))} +
+

+ Также: ответы по конструкции и настройке → +

+
+ ); +} diff --git a/web-front/src/app/health/ready/route.ts b/web-front/src/app/health/ready/route.ts index b905eb8..7629b03 100644 --- a/web-front/src/app/health/ready/route.ts +++ b/web-front/src/app/health/ready/route.ts @@ -1,5 +1,4 @@ import { NextResponse } from 'next/server'; -import snapshot from '@/content/catalog.json'; -import { parseDashcamCatalogExport } from '@/entities/dashcam-catalog/model/schema'; +import { articles } from '@/content/library'; export const dynamic='force-static'; -export async function GET(){const catalog=parseDashcamCatalogExport(snapshot);return NextResponse.json({status:'ok',service:'videoreg-web',products:catalog.products.length,metadata:{commitSha:process.env.COMMIT_SHA??'local'}})} +export async function GET(){return NextResponse.json({status:'ok',service:'videoreg-web',edition:'rebuild-v2-candidate',articles:articles.length,metadata:{commitSha:process.env.COMMIT_SHA??'local-v2'}})} diff --git a/web-front/src/app/icon.svg b/web-front/src/app/icon.svg index d67b7a1..16a9de7 100644 --- a/web-front/src/app/icon.svg +++ b/web-front/src/app/icon.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/web-front/src/app/layout.tsx b/web-front/src/app/layout.tsx index 7f9a306..83e7865 100644 --- a/web-front/src/app/layout.tsx +++ b/web-front/src/app/layout.tsx @@ -1,11 +1,53 @@ -import type { Metadata } from 'next'; -import './globals.css'; -import './restoration.css'; +import type { Metadata } from "next"; +import "./library.css"; export const metadata: Metadata = { - metadataBase: new URL('https://videoreg.ru'), - title: { default: 'Видеорег — запись, которой можно доверять', template: '%s · videoreg.ru' }, - description: 'Практические руководства по автомобильным видеорегистраторам: выбор, установка, карты памяти и сохранение записи.', + metadataBase: new URL("https://videoreg.ru"), + title: { + default: "Videoreg — техническая библиотека СВК", + template: "%s · Videoreg", + }, + description: + "Устройство видеорегистраторов СВК, оригинальные инструкции, таблицы камер и работа с покадровой записью JPEG.", }; -export default function RootLayout({children}: {children: React.ReactNode}) { - return Перейти к содержимому
видеорегRU / ДОРОЖНЫЕ ЗАПИСИ
{children}; +export default function Layout({ children }: { children: React.ReactNode }) { + return ( + + + + Перейти к содержимому + +
+ + videoregТЕХНИЧЕСКАЯ БИБЛИОТЕКА + + + СВК / JPEG / FLASH +
+ {children} + + + + ); } diff --git a/web-front/src/app/library.css b/web-front/src/app/library.css new file mode 100644 index 0000000..583d845 --- /dev/null +++ b/web-front/src/app/library.css @@ -0,0 +1,1381 @@ +:root { + color-scheme: light; + --paper: #f5f2e9; + --sheet: #fffef9; + --ink: #17382f; + --muted: #607269; + --rule: #cdd5c8; + --accent: #ba5e2b; + --mono: ui-monospace, SFMono-Regular, Consolas, monospace; + --serif: Georgia, "Times New Roman", serif; +} +* { + box-sizing: border-box; +} +html { + scroll-padding-top: 24px; +} +body { + margin: 0; + background: var(--paper); + color: var(--ink); + font: + 16px/1.65 -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Arial, + sans-serif; +} +img { + max-width: 100%; + height: auto; +} +a { + color: inherit; + text-underline-offset: 4px; + text-decoration-thickness: 1px; +} +a:hover { + color: var(--accent); +} +a:focus-visible, +button:focus-visible, +input:focus-visible, +select:focus-visible, +summary:focus-visible, +[tabindex]:focus-visible { + outline: 3px solid #ad541e; + outline-offset: 4px; +} +button, +input, +select { + font: inherit; +} +button { + cursor: pointer; +} +button:disabled { + cursor: default; +} +h1, +h2, +h3, +p, +figure { + margin-top: 0; +} +h1, +h2, +h3 { + font-weight: 500; + line-height: 1.13; +} +h1, +h2 { + font-family: var(--serif); +} +h1 { + font-size: clamp(38px, 4.4vw, 64px); + letter-spacing: -1.5px; +} +h2 { + font-size: 32px; + letter-spacing: -0.6px; +} +h3 { + font-size: 25px; +} +p { + margin-bottom: 20px; +} +.skip { + position: absolute; + left: 16px; + top: -100px; + background: var(--sheet); + padding: 14px 20px; + z-index: 20; +} +.skip:focus { + top: 12px; +} +.masthead { + width: min(1320px, 100% - 72px); + margin: auto; + min-height: 110px; + display: flex; + align-items: center; + justify-content: space-between; + gap: 30px; + border-bottom: 1px solid var(--ink); +} +.wordmark { + font-family: var(--serif); + font-size: 36px; + font-weight: 700; + letter-spacing: -1.8px; + line-height: 1; + text-decoration: none; +} +.wordmark > span { + display: block; + margin-top: 9px; + font: 9px/1.4 var(--mono); + letter-spacing: 1.5px; +} +.masthead nav { + display: flex; + flex-wrap: wrap; + gap: 10px 28px; + font-size: 13px; + font-weight: 600; +} +.masthead nav a { + display: flex; + align-items: center; + min-height: 44px; + text-decoration: none; +} +.masthead-index { + font: 9px var(--mono); + letter-spacing: 0.8px; + color: var(--muted); +} +.kicker { + font: 10px/1.7 var(--mono); + letter-spacing: 1.6px; + font-weight: 650; + color: var(--muted); + text-transform: uppercase; + margin-bottom: 18px; +} +.lede { + font-size: 19px; + line-height: 1.65; + color: #4e6559; + max-width: 760px; +} +.button { + display: inline-flex; + gap: 26px; + justify-content: space-between; + align-items: center; + min-height: 50px; + background: var(--ink); + color: var(--sheet); + padding: 13px 22px; + font-size: 14px; + font-weight: 600; + text-decoration: none; + border-radius: 2px; +} +.button:hover { + background: #2c5143; + color: white; +} +.home-intro { + width: min(1220px, 100% - 72px); + margin: 64px auto 50px; + display: grid; + grid-template-columns: 1fr 1fr; + gap: 50px; + align-items: center; +} +.intro-copy h1 { + margin-bottom: 26px; +} +.intro-copy h1 em { + font-style: italic; + color: var(--accent); +} +.intro-copy .lede { + max-width: 520px; + font-size: 17px; + margin-bottom: 28px; +} +.intro-figure { + margin: 0; + background: #e6e8de; + border: 1px solid #cbd0c2; + padding: 28px 26px 22px; + align-self: stretch; + display: flex; + flex-direction: column; + justify-content: center; +} +.figure-label { + font: 10px/1.5 var(--mono); + letter-spacing: 1.2px; + color: #53665a; + margin-bottom: 30px; +} +.intro-figure img { + width: 100%; + display: block; + mix-blend-mode: multiply; +} +.intro-figure figcaption { + display: flex; + justify-content: space-between; + gap: 25px; + border-top: 1px solid #aebcac; + padding-top: 18px; + margin-top: 30px; +} +.intro-figure figcaption span { + font: 10px/1.6 var(--mono); + max-width: 100px; +} +.intro-figure figcaption p { + font-size: 12px; + margin: 0; + line-height: 1.6; +} +.home-path { + width: min(1220px, 100% - 72px); + margin: 0 auto 80px; + padding: 22px 0; + border-top: 1px solid var(--rule); + border-bottom: 1px solid var(--rule); + display: grid; + grid-template-columns: 150px repeat(4, 1fr); + gap: 20px; + align-items: center; +} +.home-path > .kicker { + margin: 0; +} +.home-path a { + font-size: 12px; + line-height: 1.5; + text-decoration: none; + min-height: 44px; + display: flex; + gap: 14px; + align-items: center; +} +.home-path b { + font: 11px var(--mono); + color: var(--accent); +} +.home-library, +.home-case { + width: min(1220px, 100% - 72px); + margin: 70px auto; +} +.section-title { + display: flex; + align-items: end; + justify-content: space-between; + gap: 25px; + margin-bottom: 28px; +} +.section-title h2 { + margin: 0; + max-width: 550px; +} +.section-title > a { + font-size: 13px; + flex: none; +} +.book-grid { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 0; + border-left: 1px solid var(--rule); + border-top: 1px solid var(--rule); +} +.book { + padding: 28px; + min-height: 310px; + display: flex; + flex-direction: column; + gap: 18px; + background: var(--sheet); + border-right: 1px solid var(--rule); + border-bottom: 1px solid var(--rule); + text-decoration: none; +} +.book:hover { + background: #edf0e6; + color: var(--ink); +} +.book-top, +.book-bottom { + display: flex; + justify-content: space-between; + gap: 15px; + font: 10px/1.5 var(--mono); + letter-spacing: 0.5px; + color: var(--muted); +} +.book h3 { + margin: 10px 0 0; + max-width: 280px; + font-family: var(--serif); + font-size: 28px; +} +.book p { + font-size: 14px; + color: var(--muted); + margin: 0; +} +.book-bottom { + margin-top: auto; + padding-top: 16px; +} +.book-bottom span { + font-size: 18px; + color: var(--ink); +} +.home-workbench { + background: var(--ink); + color: #fffdf2; + padding: 50px max(36px, calc((100vw - 1220px) / 2)); + display: grid; + grid-template-columns: 1.15fr 1fr; + gap: 80px; + margin: 80px 0; +} +.home-workbench .kicker { + color: #b5c6b5; +} +.home-workbench h2 { + font-size: 39px; +} +.home-workbench p { + font-size: 15px; + color: #c6d1c2; + max-width: 480px; +} +.home-workbench .button { + background: #d6d8a4; + color: #18392f; +} +.formula-note { + border-left: 1px solid #587160; + padding: 15px 0 15px 55px; + display: flex; + flex-direction: column; + justify-content: center; +} +.formula-note > span { + font: 10px var(--mono); + color: #bdc8b4; + letter-spacing: 1px; +} +.formula-note code { + font: 19px/1.65 var(--mono); + margin: 22px 0; +} +.formula-note p { + font-size: 12px; + margin: 0; +} +.home-case { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 60px; +} +.home-case h2 { + margin-bottom: 18px; +} +.home-case p { + font-size: 15px; + max-width: 470px; + color: var(--muted); +} +.home-case > div:last-child { + border-top: 1px solid var(--rule); +} +.home-case > div:last-child a { + display: flex; + justify-content: space-between; + align-items: center; + gap: 25px; + min-height: 95px; + border-bottom: 1px solid var(--rule); + text-decoration: none; + font-family: var(--serif); + font-size: 23px; +} +.footer { + width: min(1320px, 100% - 72px); + margin: 80px auto 0; + padding: 32px 0 40px; + border-top: 1px solid var(--ink); + display: flex; + justify-content: space-between; + align-items: start; + gap: 40px; +} +.footer .wordmark { + font-size: 28px; +} +.footer p { + font-size: 12px; + color: var(--muted); + margin: 12px 0 0; +} +.footer nav { + display: flex; + gap: 28px; + flex-wrap: wrap; + font-size: 12px; + padding-top: 5px; +} +.footer > p { + margin: 4px 0 0; +} +.reading-page, +.library-page, +.calculator-page { + width: min(1160px, 100% - 72px); + margin: 46px auto 80px; +} +.article-heading { + padding-left: 270px; + margin-bottom: 42px; +} +.back-link { + display: inline-flex; + align-items: center; + min-height: 44px; + font-size: 12px; + margin-bottom: 20px; +} +.article-heading h1 { + font-size: clamp(34px, 4.1vw, 56px); + max-width: 850px; + margin-bottom: 22px; + overflow-wrap: anywhere; +} +.article-heading .lede { + font-size: 19px; + max-width: 780px; + margin: 0; +} +.reading-layout { + display: grid; + grid-template-columns: 220px minmax(0, 1fr); + gap: 50px; +} +.contents { + align-self: start; + position: sticky; + top: 25px; + font-size: 12px; +} +.contents details { + border-top: 2px solid var(--ink); + padding-top: 15px; +} +.contents summary { + cursor: pointer; + font-weight: 700; + min-height: 36px; +} +.contents nav { + display: grid; + gap: 12px; + padding-top: 12px; +} +.contents nav a { + line-height: 1.5; + text-decoration: none; + color: #52685b; +} +.contents nav a:hover { + color: var(--accent); +} +.contents-tool { + display: block; + font-size: 12px; + margin-top: 26px; + border-top: 1px solid var(--rule); + padding-top: 20px; +} +.article-body { + max-width: 820px; + min-width: 0; +} +.article-body section { + margin-bottom: 42px; + scroll-margin-top: 28px; +} +.article-body h2 { + font-size: 31px; + margin-bottom: 20px; +} +.article-body p { + font-size: 17px; + line-height: 1.85; + max-width: 740px; + overflow-wrap: break-word; +} +.article-body ol, +.article-body ul { + padding-left: 24px; + font-size: 16px; + line-height: 1.8; + max-width: 740px; +} +.article-body li { + padding-left: 5px; + margin-bottom: 14px; +} +.reading-note { + border-left: 3px solid #a7af77; + background: #e9ecdc; + font-size: 14px; + line-height: 1.8; + padding: 18px 22px; + margin: 24px 0; + max-width: 740px; +} +.article-body pre, +.calculation-notes pre { + max-width: 100%; + overflow: auto; + white-space: pre-wrap; + overflow-wrap: anywhere; + padding: 22px; + background: #e7eadd; + border: 1px solid var(--rule); + font: 13px/1.7 var(--mono); + margin: 25px 0; +} +.content-figure { + margin: 30px 0; + background: #e7e8df; + padding: 18px; + max-width: 800px; +} +.content-figure a { + display: block; +} +.content-figure img { + display: block; + width: 100%; + height: auto; +} +.content-figure figcaption { + font-size: 12px; + line-height: 1.6; + color: #4e6457; + padding: 14px 2px 0; +} +.content-figure.diagram { + max-width: 476px; + background: transparent; + padding: 0; + margin: 34px auto; +} +.content-figure.diagram img { + width: 100%; + max-width: 440px; + margin: auto; +} +.content-figure.diagram figcaption { + padding: 16px 0 0; +} +.small-figure { + max-width: 240px; +} +.small-figure img { + width: auto; + max-width: 100%; + margin: auto; +} +.table-region { + width: 100%; + max-width: 100%; + overflow: auto; + border: 1px solid var(--rule); + background: var(--sheet); + margin: 28px 0; + scrollbar-color: #889a85 var(--paper); +} +table { + border-collapse: collapse; + min-width: 100%; + text-align: left; + font-size: 13px; + line-height: 1.6; +} +caption { + text-align: left; + font-size: 12px; + color: var(--muted); + padding: 17px 18px; + background: #e7eadd; + caption-side: top; +} +th, +td { + padding: 14px 16px; + border-top: 1px solid var(--rule); + border-right: 1px solid #e0e4d8; + vertical-align: top; + min-width: 110px; +} +th { + font-weight: 650; +} +thead th { + font-size: 11px; + background: #edf0e6; +} +tbody th { + min-width: 150px; + background: #f8f8ef; +} +tbody tr:nth-child(even) td { + background: #fafbf4; +} +.document-links { + list-style: none; + padding: 0 !important; +} +.document-links a { + display: block; + border: 1px solid var(--rule); + padding: 16px 20px; + font-weight: 600; + background: var(--sheet); +} +.related-reading { + border-top: 2px solid var(--ink); + margin-top: 55px; + padding-top: 25px; +} +.related-reading h2 { + font-size: 26px; +} +.related-reading > a { + display: flex; + justify-content: space-between; + gap: 20px; + padding: 18px 0; + border-bottom: 1px solid var(--rule); + font-size: 14px; + text-decoration: none; +} +.page-heading { + max-width: 800px; + margin-bottom: 40px; +} +.page-heading h1 { + margin-bottom: 22px; +} +.search-panel { + background: #e8ebdf; + padding: 26px; + display: grid; + grid-template-columns: 1fr 200px; + gap: 12px 25px; + align-items: end; +} +.search-panel > label { + font-size: 12px; + font-weight: 650; +} +.search-panel > label:first-child { + grid-column: 1; + grid-row: 1; +} +.query-row { + grid-column: 1; + grid-row: 2; + display: flex; + gap: 12px; +} +.query-row input { + width: 100%; + min-width: 0; + min-height: 48px; + border: 1px solid #95a48d; + border-radius: 0; + background: var(--sheet); + padding: 10px 14px; + font-size: 15px; +} +.query-row button, +.empty button { + border: 1px solid #9caa96; + border-radius: 0; + padding: 10px 16px; + background: #dbe2d2; + font-size: 12px; + color: var(--ink); + min-height: 48px; +} +.search-panel > label[for="library-category"] { + grid-column: 2; + grid-row: 1; +} +.search-panel select { + grid-column: 2; + grid-row: 2; + min-height: 48px; + border: 1px solid #95a48d; + border-radius: 0; + background: var(--sheet); + padding: 10px; + color: var(--ink); + font-size: 14px; + max-width: 100%; +} +.result-count { + font: 11px var(--mono); + margin: 22px 0; + color: var(--muted); +} +.search-results { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + border-top: 1px solid var(--rule); + border-left: 1px solid var(--rule); +} +.search-results > a { + display: block; + position: relative; + text-decoration: none; + background: var(--sheet); + padding: 28px 40px 28px 26px; + border-bottom: 1px solid var(--rule); + border-right: 1px solid var(--rule); +} +.search-results > a:hover { + background: #ecf0e3; + color: var(--ink); +} +.search-kind { + font: 10px var(--mono); + color: var(--muted); +} +.search-results h2 { + font-size: 28px; + margin: 15px 0; +} +.search-results p { + font-size: 14px; + color: var(--muted); + margin: 0; +} +.search-results > a > span:last-child { + position: absolute; + right: 18px; + top: 24px; +} +.empty { + padding: 45px 28px; + background: var(--sheet); + border: 1px solid var(--rule); +} +.empty h2 { + font-size: 28px; +} +.empty p { + font-size: 15px; + color: var(--muted); +} +.calculator-page > h1 { + max-width: 850px; +} +.calculator-page > .lede { + max-width: 780px; +} +.mode-choice { + border: 0; + padding: 0; + margin: 38px 0 22px; + display: flex; + gap: 14px; + flex-wrap: wrap; +} +.mode-choice legend { + font-size: 12px; + font-weight: 650; + margin-bottom: 12px; +} +.mode-choice label { + display: flex; + gap: 10px; + align-items: center; + min-height: 48px; + padding: 9px 17px; + border: 1px solid #aab69e; + background: var(--sheet); + cursor: pointer; + font-size: 14px; +} +.mode-choice input { + accent-color: var(--ink); + width: 18px; + height: 18px; +} +.calculation-layout { + display: grid; + grid-template-columns: 1.1fr 1fr; + border: 1px solid var(--rule); + margin-bottom: 48px; +} +.input-fields { + display: grid; + gap: 22px; + padding: 28px; + background: var(--sheet); +} +.input-fields label { + display: grid; + gap: 9px; + font-size: 12px; + font-weight: 650; + min-width: 0; +} +.input-fields input { + min-width: 0; + width: 100%; + min-height: 48px; + padding: 11px 14px; + border: 1px solid #9baa90; + border-radius: 0; + background: #fafaf3; + font: 19px var(--mono); + color: var(--ink); +} +.input-pair { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 20px; +} +.time-result { + padding: 34px; + background: var(--ink); + color: var(--sheet); + display: flex; + flex-direction: column; + justify-content: center; +} +.time-result > span { + font: 10px var(--mono); + letter-spacing: 1.2px; + color: #c2cfb8; +} +.time-result strong { + font: 38px/1.3 var(--serif); + font-weight: 400; + color: #e5e5b6; + margin: 24px 0; +} +.time-result p { + font-size: 14px; + color: #cdd7c3; + margin-bottom: 25px; +} +.time-result small { + font: 10px/1.6 var(--mono); + color: #acbfa8; +} +.calculation-notes { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 50px; +} +.calculation-notes h2 { + font-size: 28px; +} +.calculation-notes p { + font-size: 15px; + line-height: 1.8; +} +.about-page { + max-width: 760px; + width: calc(100% - 48px); + margin: 55px auto 90px; +} +.about-page h2 { + font-size: 29px; + margin: 34px 0 16px; +} +.about-page > p:not(.kicker):not(.lede) { + font-size: 17px; + line-height: 1.8; +} +.about-links { + display: flex; + flex-wrap: wrap; + gap: 20px; + font-size: 14px; + margin-top: 35px; +} +.not-found { + width: min(1100px, 100% - 48px); + margin: 65px auto 110px; + min-height: 45vh; +} +.not-found p:not(.kicker) { + max-width: 550px; + color: var(--muted); + font-size: 17px; +} +.not-found > div { + display: flex; + align-items: center; + gap: 30px; + flex-wrap: wrap; + margin-top: 30px; +} +@media (max-width: 1100px) { + .masthead-index { + display: none; + } + .home-intro { + gap: 30px; + } + .home-path { + grid-template-columns: repeat(4, 1fr); + gap: 15px; + } + .home-path > .kicker { + grid-column: 1/-1; + } + .masthead nav { + gap: 8px 20px; + } + .article-heading { + padding-left: 235px; + } + .reading-layout { + grid-template-columns: 200px minmax(0, 1fr); + gap: 35px; + } + .home-workbench { + gap: 45px; + } + .formula-note { + padding-left: 35px; + } + .footer nav { + gap: 16px; + } +} +@media (max-width: 800px) { + .masthead { + width: calc(100% - 40px); + flex-direction: column; + align-items: start; + gap: 15px; + padding: 22px 0 15px; + } + .masthead nav { + font-size: 12px; + gap: 6px 25px; + } + .wordmark { + font-size: 33px; + } + .home-intro { + width: calc(100% - 40px); + grid-template-columns: 1fr; + margin: 36px auto; + } + .intro-copy h1 { + font-size: 48px; + } + .intro-figure { + max-width: 600px; + min-height: 0; + padding: 20px; + } + .figure-label { + margin-bottom: 22px; + } + .intro-figure img { + max-height: 330px; + object-fit: contain; + } + .intro-figure figcaption { + margin-top: 22px; + } + .home-path { + width: calc(100% - 40px); + grid-template-columns: repeat(2, 1fr); + margin-bottom: 45px; + } + .home-library, + .home-case { + width: calc(100% - 40px); + margin: 45px auto; + } + .section-title { + display: block; + } + .section-title h2 { + font-size: 30px; + margin-bottom: 16px; + } + .section-title > a { + font-size: 12px; + } + .book-grid { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + .book { + min-height: 285px; + padding: 22px; + } + .book h3 { + font-size: 25px; + } + .home-workbench { + padding: 35px 25px; + gap: 30px; + margin: 48px 0; + grid-template-columns: 1fr; + } + .home-workbench h2 { + font-size: 34px; + } + .formula-note { + border-left: 0; + border-top: 1px solid #587160; + padding: 26px 0 0; + } + .formula-note code { + font-size: 17px; + line-height: 1.5; + margin: 16px 0; + } + .home-case { + grid-template-columns: 1fr; + gap: 24px; + } + .home-case > div:last-child a { + min-height: 78px; + font-size: 22px; + } + .footer { + width: calc(100% - 40px); + gap: 25px; + flex-wrap: wrap; + margin-top: 50px; + } + .footer > p { + display: none; + } + .reading-page, + .library-page, + .calculator-page { + width: calc(100% - 40px); + margin-top: 26px; + } + .article-heading { + padding-left: 0; + margin-bottom: 28px; + } + .article-heading h1 { + font-size: 39px; + } + .article-heading .lede { + font-size: 17px; + } + .reading-layout { + grid-template-columns: 1fr; + gap: 30px; + } + .contents { + position: static; + } + .contents details { + padding: 15px 18px; + background: #e9ecdf; + } + .contents nav { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 13px 20px; + } + .contents-tool { + display: none; + } + .article-body h2 { + font-size: 29px; + } + .article-body p { + font-size: 16px; + line-height: 1.85; + } + .article-body section { + margin-bottom: 35px; + } + .content-figure { + padding: 12px; + } + .content-figure figcaption { + font-size: 11px; + } + .calculation-notes { + grid-template-columns: 1fr; + gap: 22px; + } + .calculator-page h1 { + font-size: 42px; + } + .time-result strong { + font-size: 32px; + } + .search-panel { + grid-template-columns: 1fr 160px; + } + .search-results h2 { + font-size: 25px; + } +} +@media (max-width: 540px) { + h1 { + font-size: 38px; + } + .intro-copy h1 { + font-size: 43px; + } + .intro-copy .lede { + font-size: 16px; + } + .kicker { + font-size: 9px; + letter-spacing: 1.2px; + } + .masthead nav { + gap: 2px 22px; + } + .masthead nav a { + min-height: 38px; + } + .intro-figure figcaption { + gap: 18px; + } + .intro-figure figcaption p { + font-size: 11px; + } + .home-path { + gap: 14px; + } + .home-path a { + font-size: 11px; + gap: 10px; + } + .book-grid { + grid-template-columns: 1fr; + } + .book { + min-height: 0; + padding: 23px 22px; + gap: 14px; + } + .book h3 { + max-width: 100%; + font-size: 27px; + margin-top: 6px; + } + .book p { + font-size: 14px; + } + .book-bottom { + padding-top: 10px; + } + .home-workbench h2 { + font-size: 33px; + } + .home-case h2 { + font-size: 30px; + } + .footer { + flex-direction: column; + } + .footer nav { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 12px 30px; + } + .reading-page, + .library-page, + .calculator-page { + width: calc(100% - 36px); + } + .article-heading h1 { + font-size: 32px; + letter-spacing: -0.55px; + line-height: 1.17; + } + .article-heading .lede { + font-size: 17px; + } + .contents nav { + grid-template-columns: 1fr; + } + .article-body h2 { + font-size: 27px; + line-height: 1.22; + } + .article-body p { + font-size: 16px; + } + .article-body ol { + font-size: 15px; + } + .reading-note { + font-size: 13px; + padding: 16px 18px; + } + .table-region { + margin: 22px 0; + } + th, + td { + padding: 12px 13px; + min-width: 105px; + } + .article-body pre { + padding: 16px; + font-size: 12px; + } + .content-figure.diagram { + width: 100%; + max-width: 440px; + } + .search-panel { + display: flex; + flex-direction: column; + align-items: stretch; + padding: 18px; + gap: 10px; + } + .query-row { + gap: 8px; + } + .query-row input { + font-size: 13px; + padding: 10px; + min-width: 0; + } + .query-row button { + padding: 10px; + font-size: 11px; + } + .search-panel > label[for="library-category"] { + margin-top: 10px; + } + .search-results { + grid-template-columns: 1fr; + } + .search-results > a { + padding: 23px 35px 23px 22px; + } + .search-results h2 { + font-size: 26px; + } + .page-heading h1 { + font-size: 37px; + } + .page-heading .lede { + font-size: 17px; + } + .calculation-layout { + grid-template-columns: 1fr; + } + .input-fields { + padding: 22px; + gap: 20px; + } + .input-pair { + gap: 16px; + } + .input-fields input { + padding: 10px; + font-size: 17px; + } + .time-result { + padding: 28px 24px; + } + .time-result strong { + font-size: 35px; + } + .calculator-page h1 { + font-size: 37px; + letter-spacing: -0.8px; + } + .calculator-page > .lede { + font-size: 17px; + } + .mode-choice { + gap: 10px; + } + .mode-choice label { + font-size: 13px; + padding: 10px 13px; + } + .calculation-notes h2 { + font-size: 27px; + } + .about-page h1 { + font-size: 38px; + } + .not-found h1 { + font-size: 39px; + } + .not-found > div { + gap: 22px; + } + .not-found p:not(.kicker) { + font-size: 16px; + } +} +@media (prefers-reduced-motion: reduce) { + html { + scroll-behavior: auto; + } +} + +.frame-count { + font: 11px var(--mono) !important; + color: var(--muted); +} +.frame-grid { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 20px; +} +.frame-grid figure { + margin: 0; + background: #e6e9dc; + padding: 10px; +} +.frame-grid img { + display: block; + width: 100%; + height: auto; +} +.frame-grid figcaption { + font: 10px/1.6 var(--mono); + color: var(--muted); + padding-top: 10px; + overflow-wrap: anywhere; +} +.frame-gallery > button { + border: 1px solid #7d9279; + background: #e4eadb; + color: var(--ink); + padding: 12px 20px; + min-height: 48px; + font-size: 13px; + margin: 25px 0; +} +@media (max-width: 540px) { + .frame-grid { + grid-template-columns: 1fr; + gap: 18px; + } +} diff --git a/web-front/src/app/library/Search.tsx b/web-front/src/app/library/Search.tsx new file mode 100644 index 0000000..e66565c --- /dev/null +++ b/web-front/src/app/library/Search.tsx @@ -0,0 +1,96 @@ +"use client"; +import { useState } from "react"; +type Entry = { + path: string; + title: string; + summary: string; + category: string; + date: string; + text: string; +}; +const normalized = (value: string) => + value + .toLocaleLowerCase("ru") + .replaceAll("ё", "е") + .replace(/\s+/g, " ") + .trim(); +export default function Search({ entries }: { entries: Entry[] }) { + const [query, setQuery] = useState(""); + const [category, setCategory] = useState("Все темы"); + const categories = ["Все темы", ...new Set(entries.map((a) => a.category))]; + const words = normalized(query).split(" ").filter(Boolean); + const found = entries.filter( + (a) => + (category === "Все темы" || a.category === category) && + words.every((word) => + normalized(a.title + " " + a.summary + " " + a.text).includes(word), + ), + ); + return ( + <> +
+ +
+ setQuery(e.target.value)} + /> + +
+ + +
+

+ Найдено материалов: {found.length} +

+
+ {found.map((a) => ( + + + {a.category} · {a.date} + +

{a.title}

+

{a.summary}

+ +
+ ))} +
+ {found.length === 0 && ( +
+

Такого сочетания пока нет

+

+ Попробуйте название модели, «карта», «кадры» или уберите фильтр + раздела. +

+ +
+ )} + + ); +} diff --git a/web-front/src/app/library/page.tsx b/web-front/src/app/library/page.tsx new file mode 100644 index 0000000..90eebd0 --- /dev/null +++ b/web-front/src/app/library/page.tsx @@ -0,0 +1,18 @@ +import { searchIndex } from "@/content/library"; +import Search from "./Search"; +export const metadata = { title: "Все материалы и поиск" }; +export default function Page() { + return ( +
+
+

КАТАЛОГ ЗНАНИЙ

+

Техническая библиотека

+

+ Ищите по полным текстам, названиям камер и моделям блоков. Всё + работает здесь, без запроса к стороннему поиску. +

+
+ +
+ ); +} diff --git a/web-front/src/app/not-found.tsx b/web-front/src/app/not-found.tsx new file mode 100644 index 0000000..62f58e6 --- /dev/null +++ b/web-front/src/app/not-found.tsx @@ -0,0 +1,21 @@ +export default function NotFound() { + return ( +
+

404 / СТРАНИЦА НЕ НАЙДЕНА

+

+ По этому адресу +
+ материала нет. +

+

+ Проверьте адрес или найдите модель, камеру и нужную тему в библиотеке. +

+
+ + Искать в материалах ↗ + + На главную → +
+
+ ); +} diff --git a/web-front/src/app/page.tsx b/web-front/src/app/page.tsx index 68cba68..846d3db 100644 --- a/web-front/src/app/page.tsx +++ b/web-front/src/app/page.tsx @@ -1,2 +1,143 @@ -import { guides } from '@/content/guides'; -export default function Home(){return

ВНИМАНИЕ К ДЕТАЛЯМ / VIDEOREG.RU

Дорога меняется.
Запись остаётся.

Как выбрать регистратор, настроить запись и сохранить важный момент. Понятные руководства без выдуманных рейтингов.

Начать с выбора ↗
04 руководства01 полезный инструментБез трекеров

БАЗА ЗНАНИЙ

От выбора до сохранённого файла

Четыре шага к предсказуемой записи.

{guides.map(g=>{g.number} / РУКОВОДСТВО

{g.title}

{g.summary}

Читать ↗
)}

СЧИТАЕМ ДО ПОКУПКИ

На сколько часов хватит карты?

Оцените время записи по ёмкости и суммарному битрейту всех камер.

Открыть калькулятор ↗

Каталог с открытым происхождением

Сохранили прежний каталог проекта: карточки продавцов от 30 июля 2026 года. Это справочный снимок, а не актуальное предложение или независимое испытание.

Посмотреть каталог →Как мы работаем с источниками →
} +import { articles } from "@/content/library"; +export default function Home() { + const paths = [ + "/system", + "/auto.shtml", + "/faq.shtml", + "/support.shtml", + "/down.shtml", + "/samples.shtml", + ]; + return ( +
+
+
+

БИБЛИОТЕКА СИСТЕМ ВИДЕОРЕГИСТРАЦИИ

+

+ Разобраться +
в устройстве. +
+ Сохранить запись. +

+

+ СВК — камеры отдельно, кадры на съёмном носителе. Здесь собраны + устройство системы, инструкции, совместимость и разборы работы с + файлами. +

+ + Как устроена система ↗ + +
+
+ ОБОРУДОВАНИЕ / СВК-006 + Передняя панель системного блока СВК-006: USB A и B, слот SD CARD и индикаторы. +
+ 01 / Системный блок +

+ Камеры подключаются по USB. +
+ Изображения сохраняются на карту. +

+
+
+
+
+ С ЧЕГО НАЧАТЬ + + 01 Устройство и поколения + + + 02 Работа в автомобиле + + + 03 Инструкция своего блока + + + 04 Кадры и просмотр + +
+
+
+
+

НА ПОЛКЕ

+

Документация, которую можно открыть

+
+ Все {articles.length} материалов и поиск → +
+
+ {paths.map((path, i) => { + const a = articles.find((a) => a.path === path)!; + return ( + + + {a.category} + {String(i + 1).padStart(2, "0")} + +

{a.title}

+

{a.summary}

+ + {a.date} + + +
+ ); + })} +
+
+
+
+

РАБОЧИЙ ИНСТРУМЕНТ

+

+ Вместо обещания +
+ «карты хватит надолго» +

+

+ Посчитайте время по реальному размеру JPEG и частоте кадров. Для + видеопотока есть отдельный режим по битрейту. +

+ + Оценить длительность записи ↗ + +
+
+ ПОКАДРОВАЯ ЗАПИСЬ + + объём носителя +
÷
+ размер кадра × кадров/с +
+

+ Число камер и резерв места +
+ тоже участвуют в расчёте. +

+
+
+
+
+

ИЗ ПРАКТИКИ

+

Не только характеристики

+

+ Почему прибор долго запускается с FLASH и что известно о + нестабильной камере с удлинителем. +

+
+
+ + FLASH не выходит в рабочий режим ↗ + + + Камера и USB-удлинитель ↗ + +
+
+
+ ); +} diff --git a/web-front/src/app/tools/recording-time/Calculator.tsx b/web-front/src/app/tools/recording-time/Calculator.tsx index bdc0a1e..d102f05 100644 --- a/web-front/src/app/tools/recording-time/Calculator.tsx +++ b/web-front/src/app/tools/recording-time/Calculator.tsx @@ -1,3 +1,168 @@ "use client"; -import { useState } from 'react'; -export default function Calculator(){const [capacity,setCapacity]=useState('128');const [rate,setRate]=useState('40');const [reserve,setReserve]=useState('10');const c=Number(capacity),r=Number(rate),s=Number(reserve);const valid=capacity!==''&&rate!==''&&reserve!==''&&Number.isFinite(c)&&Number.isFinite(r)&&Number.isFinite(s)&&c>0&&c<=100000&&r>0&&r<=10000&&s>=0&&s<100;const minutes=valid?c*1000*8*(1-s/100)/r/60:0;return
ПРИБЛИЗИТЕЛЬНО{valid?`${Math.floor(minutes/60)} ч ${Math.floor(minutes%60)} мин`:'Проверьте ввод'}

{valid?'Обычная запись до перезаписи старейших файлов.':'Нужны положительные ёмкость и битрейт, резерв от 0 до 99%.'}

} +import { useState } from "react"; +export default function Calculator() { + const [mode, setMode] = useState("frames"); + const [capacity, setCapacity] = useState("1"); + const [reserve, setReserve] = useState("10"); + const [frameSize, setFrameSize] = useState("64"); + const [fps, setFps] = useState("5"); + const [cameras, setCameras] = useState("1"); + const [bitrate, setBitrate] = useState("40"); + const values = [ + capacity, + reserve, + ...(mode === "frames" ? [frameSize, fps, cameras] : [bitrate]), + ]; + const [c, s, k, f, n, r] = [ + Number(capacity), + Number(reserve), + Number(frameSize), + Number(fps), + Number(cameras), + Number(bitrate), + ]; + const valid = + values.every((v) => v.trim() !== "" && Number.isFinite(Number(v))) && + c > 0 && + c <= 100000 && + s >= 0 && + s < 100 && + (mode === "frames" + ? k > 0 && + k <= 100000 && + f > 0 && + f <= 1000 && + Number.isInteger(n) && + n >= 1 && + n <= 16 + : r > 0 && r <= 10000); + const seconds = valid + ? Math.floor( + mode === "frames" + ? (c * 1e6 * (1 - s / 100)) / (k * f * n) + : (c * 8000 * (1 - s / 100)) / r, + ) + : 0; + return ( + <> +
+ Способ записи + + +
+
+
+ + {mode === "frames" ? ( + <> + +
+ + +
+ + ) : ( + + )} + +
+
+ ОЦЕНКА ВРЕМЕНИ + + {valid + ? `${Math.floor(seconds / 3600)} ч ${Math.floor((seconds % 3600) / 60)} мин ${seconds % 60} с` + : "Проверьте значения"} + +

+ {valid + ? "До перезаписи старейших файлов при заданных условиях." + : "Нужны положительные размеры и скорость; камеры — целое число от 1 до 16, резерв — от 0 до 99%."} +

+ + {mode === "frames" + ? "Размер кадра × частота × число камер" + : "Сумма битрейтов всех камер"} + +
+
+ + ); +} diff --git a/web-front/src/app/tools/recording-time/page.tsx b/web-front/src/app/tools/recording-time/page.tsx index 0e919d7..55c890a 100644 --- a/web-front/src/app/tools/recording-time/page.tsx +++ b/web-front/src/app/tools/recording-time/page.tsx @@ -1,3 +1,69 @@ -import Calculator from './Calculator'; -export const metadata={title:'Калькулятор времени записи видеорегистратора'}; -export default function Page(){return

ИНСТРУМЕНТ / ОБЪЁМ И ВРЕМЯ

Сколько дороги
поместится на карте?

Введите ёмкость и суммарный битрейт. Расчёт выполняется в браузере, данные никуда не отправляются.

Где взять битрейт

Посмотрите свойства исходного видеофайла. Если камер несколько, сложите их битрейты. Например, 25 Мбит/с спереди и 15 Мбит/с сзади дают суммарно 40 Мбит/с. Разрешение 4K само по себе не определяет битрейт.

Как считается

Время в секундах = ГБ × 1000 × 8 × (1 − резерв / 100) ÷ Мбит/с. Используем десятичные гигабайты, как при маркировке накопителей. Для 128 ГБ, 40 Мбит/с и резерва 10% получается 6 ч 24 мин.

Это оценка для постоянного битрейта. Переменный битрейт, звук, служебные данные, защищённые файлы и отдельные разделы могут изменить результат. Резерв 10% — пример настройки, а не измеренное свойство регистратора. Расчёт не проверяет совместимость карты.

Как подобрать совместимую карту →
} +import Calculator from "./Calculator"; +export const metadata = { + title: "Расчёт длительности записи — JPEG и видеопоток", +}; +export default function Page() { + return ( +
+ + ← К библиотеке + +

ПРАКТИЧЕСКИЙ РАСЧЁТ

+

+ Сколько записи +
+ поместится на носителе? +

+

+ Для покадровой СВК используйте размер JPEG и частоту. Для современного + видеопотока — суммарный битрейт. Расчёт не подтверждает совместимость + карты. +

+ +
+
+

Как измерить размер JPEG

+

+ Возьмите несколько исходных кадров из обычной поездки. Разделите их + общий размер в байтах на число кадров и на 1000. Получится средний + размер в десятичных КБ. Разные сцены сжимаются неодинаково, поэтому + один случайный кадр даёт грубую оценку. +

+

+ Частоту задавайте для одной камеры, затем укажите число камер. Если + камеры работают с разной частотой или размером кадра, посчитайте их + скорости отдельно и сложите: КБ/кадр × кадров/с. +

+
+            
+              Время, с = ГБ × 1 000 000 × (1 − резерв/100) ÷ (КБ/кадр × кадров/с
+              × камер)
+            
+          
+
+
+

Проверочный пример

+

+ 1 ГБ, средний JPEG 100 КБ, 5 кадров/с с каждой из двух камер и + нулевой резерв дают 1000 секунд: 16 минут 40 секунд. Это + арифметический пример, а не измеренная характеристика определённого + СВК. +

+

Для видеопотока

+

+ Сложите битрейты всех камер, включая звук, если он не входит в + указанное значение. Для 128 ГБ, 40 Мбит/с и резерва 10% получится 6 + часов 24 минуты. Переменный битрейт, служебные данные и защищённые + файлы изменяют фактический результат. +

+

+ Десятичные ГБ и КБ соответствуют расчёту по размерам файлов в + байтах. Резерв 10% — настраиваемый пример, а не измеренное свойство + носителя. +

+ Почему старые таблицы времени различаются → +
+
+
+ ); +} diff --git a/web-front/src/components/FrameGallery.tsx b/web-front/src/components/FrameGallery.tsx new file mode 100644 index 0000000..c627351 --- /dev/null +++ b/web-front/src/components/FrameGallery.tsx @@ -0,0 +1,37 @@ +"use client"; +import { useState } from "react"; +type Frame = { src: string; filename: string; width: number; height: number }; +export default function FrameGallery({ frames }: { frames: Frame[] }) { + const [all, setAll] = useState(false); + const visible = all ? frames : frames.slice(0, 6); + return ( +
+

+ Показано кадров: {visible.length} из {frames.length} +

+
+ {visible.map((f, i) => ( +
+ + {"Кадр + +
+ {f.filename} · {f.width}×{f.height} +
+
+ ))} +
+ {frames.length > 6 && ( + + )} +
+ ); +} diff --git a/web-front/src/content/library.ts b/web-front/src/content/library.ts new file mode 100644 index 0000000..4b908de --- /dev/null +++ b/web-front/src/content/library.ts @@ -0,0 +1,98 @@ +import { z } from "zod"; +import recovered from "./v2-articles.json"; +import community from "./v2-community.json"; +import externalApprovals from "./v2-link-approvals.json"; +const localPath = z.string().regex(/^\/(?!\/)[a-zA-Z0-9/_.-]*$/); +const approvedHref = z.string().refine(value => localPath.safeParse(value).success || externalApprovals.some(item => item.destination === value), "Unreviewed outbound URL"); +const sectionSchema = z.object({ + gallery: z + .array( + z.object({ + src: localPath, + filename: z.string(), + width: z.number().positive(), + height: z.number().positive(), + }), + ) + .optional(), + heading: z.string().min(1), + paragraphs: z.array(z.string().min(1)), + list: z.array(z.string()).optional(), + note: z.string().optional(), + code: z.string().optional(), + links: z.array(z.object({ href: approvedHref, label: z.string() })).optional(), + figure: z + .object({ + src: localPath, + alt: z.string().min(12), + caption: z.string(), + diagram: z.boolean().optional(), + small: z.boolean().optional(), + }) + .optional(), + table: z + .object({ + caption: z.string(), + head: z.array(z.string()).min(2), + rows: z.array(z.array(z.string())), + }) + .optional(), +}); +const articleSchema = z.object({ + path: localPath, + title: z.string().min(3), + category: z.string(), + summary: z.string(), + date: z.string(), + kind: z.enum(["recovered", "linked-source", "recovered-media"]), + sourcePaths: z.array(z.string()), + rawFiles: z.array(z.string()), + sections: z.array(sectionSchema).min(1), + related: z.array(localPath), +}); +export const articles = z + .array(articleSchema) + .parse([...recovered, ...community]); +export type LibraryArticle = z.infer; +export function findArticle(path: string) { + return articles.find((article) => article.path === path); +} +export function articleText(article: LibraryArticle) { + return article.sections + .map((s) => + [ + s.heading, + ...s.paragraphs, + ...(s.list ?? []), + s.note ?? "", + s.table?.head.join(" ") ?? "", + s.table?.rows.flat().join(" ") ?? "", + ].join(" "), + ) + .join(" "); +} +export const searchIndex = articles.map((article) => ({ + path: article.path, + title: article.title, + summary: article.summary, + category: article.category, + date: article.date, + text: articleText(article), +})); +if (new Set(articles.map((x) => x.path)).size !== articles.length) + throw new Error("Duplicate article path"); +for (const article of articles) { + for (const section of article.sections) { + for (const link of section.links ?? []) { + if (link.href.startsWith("http") && !externalApprovals.some(item => item.sourcePage === article.path && item.destination === link.href && item.anchor === link.label && item.reviewed)) throw new Error("Unreviewed page/link context: " + article.path); + } + } + for (const section of article.sections) { + if ( + section.table?.rows.some( + (row) => row.length !== section.table!.head.length, + ) + ) + throw new Error("Invalid table: " + article.path); + } +} diff --git a/web-front/src/content/v2-articles.json b/web-front/src/content/v2-articles.json new file mode 100644 index 0000000..f34db23 --- /dev/null +++ b/web-front/src/content/v2-articles.json @@ -0,0 +1,2503 @@ +[ + { + "path": "/system", + "title": "Как устроены видеорегистраторы СВК", + "summary": "Внешние камеры, покадровая запись JPEG и съёмный носитель. Различия поколений СВК-002, СВК-006 и СВК-007.", + "category": "Устройство", + "date": "2014", + "kind": "recovered", + "sourcePaths": [ + "/", + "/index.shtml" + ], + "sections": [ + { + "heading": "Камеры отдельно, запись — в системном блоке", + "paragraphs": [ + "Система СВК состоит из цифровых USB-камер, базового блока и съёмного FLASH-носителя. Блок принимает изображения камер и сохраняет отдельные кадры в JPEG. Время съёмки записывается в данных файла; в модификациях с GPS к кадрам добавлялись навигационные данные. Это покадровая система, которую не следует смешивать с современными регистраторами, непрерывно записывающими сжатый видеопоток." + ], + "figure": { + "src": "/diagrams/svk-signal-chain.svg", + "alt": "Схема: USB-камеры передают кадры блоку СВК, блок сохраняет JPEG на FLASH, файлы читаются на компьютере.", + "caption": "Путь данных в ранней системе с USB FLASH. Это не схема электрического подключения.", + "diagram": true + } + }, + { + "heading": "Что менялось между поколениями", + "paragraphs": [ + "Ранние описания СВК-002 указывали до 5 кадров в секунду с одной камерой и до 2,5 кадра в секунду при работе с двумя. В поздних материалах для СВК-006 и СВК-007 появились карты SD/SDHC, запись звука, более высокие разрешения и функция резервного копирования. Частота зависит от камеры, числа подключённых камер и режима.", + "В СВК-007 два независимых канала: к каждому подключаются две камеры, у каждого своя SD-карта. Поэтому «четыре камеры» не означает четыре независимых носителя. Инструкция 2008 года описывает работу одного канала и указывает, что второй работает аналогично." + ], + "figure": { + "src": "/archive-media/svk006-front.jpg", + "alt": "Передняя панель СВК-006 с разъёмами USB A и B, индикаторами и слотом SD CARD.", + "caption": "СВК-006: разъёмы камер, индикаторы и слот карты на передней панели." + } + }, + { + "heading": "СВК-006 и СВК-007: сравнение", + "paragraphs": [ + "Ниже — параметры из описания производителя 2014 года. Это характеристики конкретного семейства, а не требования к любому USB-регистратору. Диапазон питания следует сверять с паспортом своей модификации: в старых страницах и инструкциях встречаются разные значения." + ], + "table": { + "caption": "Сравнение двух поздних системных блоков", + "head": [ + "Параметр", + "СВК-006", + "СВК-007" + ], + "rows": [ + [ + "Камеры и каналы", + "2 камеры, один канал", + "4 камеры, два канала по две камеры" + ], + [ + "Основной носитель", + "SD/SDHC", + "Отдельная SD/SDHC для каждого канала" + ], + [ + "Формат изображения", + "EXIF JPEG", + "EXIF JPEG" + ], + [ + "Указанные разрешения", + "640×480, 800×600, 1280×1024", + "640×480, 800×600, 1280×1024" + ], + [ + "Максимум при 640×480", + "До 30 кадров/с с одной камерой", + "До 30 кадров/с для каждого канала; в исходнике указаны две камеры" + ], + [ + "Запись звука", + "1 канал", + "2 канала" + ], + [ + "GPS", + "Модификация с приёмником", + "Модификация с приёмником" + ], + [ + "Сохранение событий", + "Есть", + "Для каждого канала" + ], + [ + "Внешние датчики", + "Поддерживаются", + "Для каждого канала" + ] + ] + } + }, + { + "heading": "Кольцевой буфер и сохранение события", + "paragraphs": [ + "После заполнения буфера система начинает заменять самые старые кадры. Чтобы сохранить событие, в конфигурации задавались интервалы до и после нажатия кнопки. Кадры этого интервала помечались и исключались из перезаписи. Они занимают часть носителя, поэтому длительность оставшегося кольцевого буфера уменьшается.", + "Пример из описания: 5 кадров/с, 10 секунд до нажатия и 10 секунд после него дают 100 сохраняемых кадров. Для расчёта нескольких камер учитывайте суммарную частоту, а не частоту одной камеры." + ], + "code": "5 кадров/с × (10 с до + 10 с после) = 100 кадров" + }, + { + "heading": "Резервная копия на USB", + "paragraphs": [ + "В описании СВК-006/007 резервное копирование запускается при подключении USB-носителя без файла USB.BIN к разъёму нужного канала. Подключение и извлечение выполняются при выключенном питании. Затем прибор копирует кадры, начиная с последних, в каталог BACKUP, с подкаталогами по минутам. Доступное место на USB ограничивает объём копии.", + "Во время копирования этот канал не ведёт съёмку. Красный индикатор обозначает ход операции, а после завершения переходит в другой режим. Приведённое в старом описании соотношение «минута копирования — две минуты съёмки» относится к той конфигурации; переносить его на произвольную карту и камеру нельзя." + ], + "list": [ + "Выбрать канал, данные которого нужно сохранить.", + "До подключения носителей выключить питание.", + "Проверить, что USB-носитель не содержит USB.BIN и на нём достаточно места.", + "После копирования выключить питание перед извлечением.", + "Открыть скопированные кадры на компьютере и проверить полноту результата." + ] + }, + { + "heading": "Время и координаты", + "paragraphs": [ + "В GPS-модификациях предусматривалась автоматическая коррекция часов. Функция включалась при записи конфигурации на карту, а часовой пояс брался с компьютера настройки. Перед поездкой важно проверить реальное время в сохранённом кадре. Наличие координат в JPEG зависит от модификации и её конфигурации, а не только от установленной программы просмотра." + ] + }, + { + "heading": "СВК-006 GPRS EMAIL", + "paragraphs": [ + "Отдельная система в описании 2014 года строилась на базе СВК-006 BASE и GSM/GPRS-модема. Она отправляла кадры по электронной почте по сигналу внешнего датчика либо по SMS-запросу. При этом локальная запись на FLASH продолжалась.", + "Для двух камер было указано до 3–4 кадров/с с каждой; для одной — программируемый диапазон от одного кадра в минуту до 30 кадров/с в зависимости от камеры. Это описание старого устройства, а не подтверждение доступности мобильной сети, почтового сервиса или оборудования сегодня." + ] + }, + { + "heading": "Почему нельзя выбирать носитель только по объёму", + "paragraphs": [ + "Производитель отдельно предупреждал о совместимости контроллеров FLASH и устойчивой скорости записи. В старом перечне были Transcend JetFlash серий 1xx с SLC и SDHC Class 6 через USB-картридер. Это исторический список испытанного оборудования; он не означает совместимость любой современной карты такого объёма.", + "Старые таблицы времени отличаются: ранний FAQ для 1 ГБ и VGA указывал 60 минут, а поздняя таблица для 5 кадров/с — около 50 минут. Условия JPEG-сжатия и буфера там описаны неполно. Вместо обещания точной длительности измерьте средний размер собственных кадров и рассчитайте оценку в калькуляторе. В повреждённых строках старой таблицы также перепутаны 16 и 32 ГБ; эти значения не используются как эталон." + ] + } + ], + "related": [ + "/auto.shtml", + "/faq.shtml", + "/support.shtml", + "/manuals/svk007", + "/tools/recording-time" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/pages/7b591ba459d97f112423.html", + "docs/rebuild-v2/raw/pages/999692ccc2950d54561f.html" + ] + }, + { + "path": "/auto.shtml", + "title": "СВК в автомобиле: режимы и установка", + "summary": "Четыре варианта управления ранней системой, выносные камеры и сохранение кадров на FLASH.", + "category": "Применение", + "date": "2007", + "kind": "recovered", + "sourcePaths": [ + "/auto.shtml" + ], + "sections": [ + { + "heading": "Для чего использовалась система", + "paragraphs": [ + "В исходном описании раннего СВК запись дорожной обстановки велась отдельными кадрами с привязкой ко времени, со скоростью до 5 кадров в секунду. Использовались одна или две USB-веб-камеры и FLASH-диск. Полученные файлы можно было просмотреть на компьютере с Windows, скопировать и распечатать.", + "Внешняя камера позволяет отдельно выбрать место системного блока и носителя. При этом сам блок не должен мешать управлению автомобилем, а проводка — обзору, педалям и работе штатных систем безопасности. Сохранённая запись помогает восстановить последовательность событий, но сама по себе не гарантирует юридический результат." + ], + "figure": { + "src": "/archive-media/early-kit.jpg", + "alt": "Ранний комплект: небольшой системный блок, внешняя USB-камера Creative и красный USB FLASH-диск.", + "caption": "Ранний комплект с отдельными камерой и носителем." + } + }, + { + "heading": "Базовое питание от розетки автомобиля", + "paragraphs": [ + "Первый вариант в статье — комплектный кабель к разъёму прикуривателя. Он не требовал изменения штатной проводки, но не обеспечивал взаимодействие с другими системами автомобиля. Для конкретного экземпляра нужно проверить допустимое питание и поведение розетки после выключения зажигания.", + "Перед использованием проверьте совместимый источник питания, надёжность крепления, безопасную прокладку кабеля и результат тестовой записи." + ], + "figure": { + "src": "/archive-media/installation-interior.jpg", + "alt": "Вид салона и места водителя в одном из оригинальных примеров размещения внешней камеры.", + "caption": "Пример размещения оборудования в салоне.", + "small": true + } + }, + { + "heading": "Управление от зажигания", + "paragraphs": [ + "В статье описаны два поведения. При питании, зависящем от зажигания, прибор включается и прекращает работу вместе с ним. При постоянном питании и отдельном сигнале управления система переключается между режимом «Дорога» и режимом «Охрана».", + "Здесь сохранён принцип работы, а не универсальная схема подключения. Контакты IGNITION, реле, предохранитель и допустимое напряжение должны определяться по документации конкретного СВК и автомобиля квалифицированным установщиком." + ] + }, + { + "heading": "Управление от сигнализации", + "paragraphs": [ + "Третий вариант использовал выход автомобильной сигнализации для управления режимом регистратора: при снятой охране — дорожная запись, при постановке — менее частая съёмка. В исходнике управление было описано через реле. Совместимость выхода сигнализации и входа СВК нельзя определять только по названию контакта." + ] + }, + { + "heading": "Ручное переключение «Дорога / Охрана»", + "paragraphs": [ + "Четвёртый вариант — отдельный переключатель режимов при постоянном питании. В режиме «Дорога» кадры сохраняются чаще, в режиме «Охрана» — реже, чтобы увеличить промежуток времени до перезаписи. Точные частоты задаются конфигурацией своего устройства." + ], + "figure": { + "src": "/diagrams/svk-road-guard.svg", + "alt": "Сравнение последовательностей кадров: в дорожном режиме они чаще, в охранном — реже; носитель в обоих случаях заполняется и затем работает по кольцу.", + "caption": "Относительная частота кадров в двух режимах. Это схема поведения, а не схема электропроводки.", + "diagram": true + } + }, + { + "heading": "Проверка после установки", + "paragraphs": [ + "Перед выездом проверьте поле зрения каждой камеры, дату и сохранение файлов после штатного отключения. Кабель и крепление должны оставаться на месте при обычном движении автомобиля. Оценивать качество следует по исходным JPEG, а не по сжатой пересылке изображения.", + "Для действий с FLASH в описанных ранних устройствах питание сначала выключают." + ], + "list": [ + "На стоящем автомобиле проверить обзор передней и задней камеры.", + "Проверить дату в реально сохранённом кадре.", + "Записать короткий тест и открыть файлы на компьютере.", + "Перед извлечением носителя штатно закончить работу и выключить питание." + ], + "figure": { + "src": "/archive-media/installation-block.jpg", + "alt": "Системный блок СВК лежит отдельно от внешней USB-камеры, установленной у стекла.", + "caption": "Отдельные системный блок и USB-камера в примере установки.", + "small": true + } + } + ], + "related": [ + "/system", + "/faq.shtml", + "/community/usb-extension" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/auto-20070228153116.html" + ] + }, + { + "path": "/support.shtml", + "title": "Совместимые камеры и режимы записи", + "summary": "Таблица производителя для камер, применявшихся с СВК-002, СВК-006 и СВК-007.", + "category": "Оборудование", + "date": "2011", + "kind": "recovered", + "sourcePaths": [ + "/support.shtml" + ], + "sections": [ + { + "heading": "Совместимость относится к определённой системе", + "paragraphs": [ + "Таблица описывает сочетания старых камер и аппаратных блоков СВК. Совпадение USB-разъёма не доказывает совместимость другой камеры или прошивки. Параметры ниже сохранены как запись приведённых производителем сочетаний, без превращения в рейтинг.", + "В некоторых ячейках исходника указаны сразу два режима через перенос строки. Здесь они разделены точкой с запятой и оставлены в исходном порядке. Знаки «+ / −» относятся к этим режимам; если связь строки и режима не ясна, проверяйте инструкцию своей версии, а не выбирайте самый высокий показатель." + ] + }, + { + "heading": "Таблица камер", + "paragraphs": [ + "Отметка «Работа в условиях улицы» отражает описание производителя для этой камеры, а не защиту корпуса от влаги. Не размещайте комнатную веб-камеру под дождём на основании одного знака «+»." + ], + "table": { + "caption": "Данные страницы технической поддержки, 2011", + "head": [ + "Камера", + "Разрешение", + "Кадров/с", + "СВК-006/007", + "СВК-002", + "Примечание об улице" + ], + "rows": [ + [ + "Logitech C100", + "640x480", + "15; 30", + "+; +", + "-; +", + "+" + ], + [ + "Logitech C270", + "640x480; 800x600", + "30; 15", + "+; +", + "-; +", + "+" + ], + [ + "Logitech C310", + "640x480; 800x600", + "30; 15", + "+; +", + "-; +", + "+" + ], + [ + "Logitech C510", + "640x480", + "15; 30", + "+; +", + "-; +", + "+" + ], + [ + "Logitech B905", + "640x480; 800x600", + "30; 15", + "+; +", + "-; +", + "+" + ], + [ + "Logitech C905", + "640x480; 800x600", + "30; 15", + "+; +", + "-; +", + "+" + ], + [ + "Microsoft LifeCam Cinema", + "640x480", + "15", + "+", + "+", + "+" + ], + [ + "A4Tech 836MJ", + "640x480", + "15", + "+", + "+", + "+" + ], + [ + "Logitech QuickCam for notebooks Pro Carl Zeiss optics", + "800x600; 640x480", + "15; 30", + "+; +", + "-; +", + "+" + ], + [ + "Logitech QuickCam Pro 9000", + "800x600; 640x480", + "15; 30", + "+; +", + "-; +", + "+" + ], + [ + "Logitech Fusion", + "640x480", + "30", + "+", + "+", + "+" + ], + [ + "Logitech QuickCam Deluxe for notebooks", + "640x480", + "30", + "+", + "+", + "На улице в условиях нормальной освещенности не работает" + ], + [ + "Microsoft LifeCam VX-5000", + "640x480", + "15", + "+", + "+", + "+" + ], + [ + "Microsoft LifeCam Show", + "800x600; 640x480", + "8; 15", + "+; +", + "-; +", + "+" + ], + [ + "Microsoft LifeCam VX-700", + "640x480", + "30", + "+", + "+", + "+" + ], + [ + "Genius Slim 1322AF", + "640x480", + "30", + "+", + "-", + "+" + ], + [ + "Philips SPC1300NC", + "1280x1024; 640x480", + "5; 30", + "+; +", + "-; +", + "+" + ] + ] + } + }, + { + "heading": "Ограничения отдельных моделей", + "paragraphs": [ + "Для Logitech QuickCam Deluxe for notebooks в исходной таблице отдельно указано, что камера не работает на улице в условиях нормальной освещённости. Для Genius Slim 1322AF поддержка СВК-002 отмечена минусом. Эти исключения важнее общих рекламных обещаний «хорошей картинки».", + "В обсуждении 2007 года также описывались нестабильные результаты Creative Live! for notebooks Pro с USB-удлинителем. Это отдельный пользовательский случай, а не доказательство того, что любая камера данной марки неисправна. При проблеме сначала сравните запись с коротким исправным кабелем и с тем же носителем." + ] + }, + { + "heading": "Как проверить свой комплект", + "paragraphs": [ + "Сопоставьте модель камеры и блока с паспортом. Запишите тест днём, в сложном освещении и при нужном числе камер. Откройте несколько последовательных исходных кадров и проверьте время, пропуски и фактическую частоту. Если меняете сразу несколько компонентов, причину нестабильности установить труднее." + ] + } + ], + "related": [ + "/catalog", + "/community/usb-extension", + "/manuals/svk007" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/pages/4e4ab44b881b7fd00d2b.html" + ] + }, + { + "path": "/down.shtml", + "title": "Документация и программы СВК", + "summary": "Оригинальные инструкции, назначение конфигуратора и изменения программы просмотра.", + "category": "Документы", + "date": "2005–2013", + "kind": "recovered", + "sourcePaths": [ + "/down.shtml" + ], + "sections": [ + { + "heading": "Сначала выберите поколение устройства", + "paragraphs": [ + "Ранний универсальный регистратор с USB FLASH и СВК-007 с двумя SD-каналами используют разные процедуры и ограничения. Нельзя выбирать инструкцию только по общему слову «СВК». Откройте полную инструкцию соответствующего поколения или краткий порядок подготовки СВК-006/007." + ], + "links": [ + { + "href": "/manuals/uvr", + "label": "Универсальный регистратор: инструкция 2005 года" + }, + { + "href": "/manuals/svk007", + "label": "СВК-007: инструкция 2008 года" + }, + { + "href": "/manuals/two-camera", + "label": "Двухкамерный регистратор: инструкция 2006 года" + }, + { + "href": "/manuals/quickstart", + "label": "СВК-006/007: начинаем работу, 2009 год" + }, + { + "href": "/reviews/svk002-mobile-news", + "label": "СВК-002: журнальный тест Дениса Кирина, январь 2008" + } + ] + }, + { + "heading": "Что делала программа конфигурации", + "paragraphs": [ + "VideoRegistrator задавала тип и количество камер, режимы записи и параметры работы, затем записывала конфигурацию на носитель. В разделе загрузок к 2013 году были указаны конфигуратор версии 10.0 и обновление от 9 марта 2013 года. Это сведения об исторических выпусках, а не предложение установить непроверенный архивный EXE.", + "В перечне также находились системное ПО USB.BIN, гарантийный документ, краткая инструкция для СВК-006/007 и отдельная инструкция для двухкамерного СВК-002." + ] + }, + { + "heading": "VideoReg Slide Show 2.3", + "paragraphs": [ + "Описание выпуска от 9 марта 2013 года перечисляло экспорт изображения в AVI, звука в MP3 и трека GPS. Это не означает, что каждый кадр любого СВК уже содержит звук или навигационные данные: они должны присутствовать в исходной записи." + ], + "list": [ + "Переход по событиям, связанным с внешним датчиком.", + "Сохранение описаний контрольных точек и показ при воспроизведении.", + "Устранение рассинхронизации при переключении камер на остановленной записи.", + "Отображение координат в формате OziExplorer.", + "Открытие карты в соответствии с координатами текущего кадра.", + "Исправление положения указателя при изменении размеров карты." + ] + }, + { + "heading": "Сохранность данных перед настройкой", + "paragraphs": [ + "Инициализация и форматирование могут уничтожить запись. Сначала сохраните нужные кадры и конфигурацию на другой носитель и проверьте копию. Восстановление рабочего буфера и извлечение важных данных — разные задачи. Не запускайте старую программу с правами администратора только потому, что её название найдено в инструкции." + ] + } + ], + "related": [ + "/manuals/uvr", + "/manuals/svk007", + "/samples.shtml", + "/reviews/svk002-mobile-news" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/pages/a41d4cb53649205c5db9.html" + ] + }, + { + "path": "/manuals/uvr", + "title": "Универсальный СВК: инструкция", + "summary": "Подготовка USB FLASH, кольцевой буфер, индикаторы и завершение работы. Полный документ: 12 страниц.", + "category": "Документы", + "date": "2005", + "kind": "recovered", + "sourcePaths": [ + "/download/doc/UVR_instr.zip" + ], + "sections": [ + { + "heading": "Полная инструкция", + "paragraphs": [ + "Документ СВК-Лаб состоит из 12 страниц. Он описывает ранний универсальный цифровой регистратор с USB FLASH и отдельной камерой. Его технические пределы нельзя переносить на поздние модификации СВК-006/007." + ], + "links": [ + { + "href": "/manuals/uvr-2005.pdf", + "label": "Открыть полный PDF, 12 страниц" + } + ] + }, + { + "heading": "Подготовка и работа", + "paragraphs": [ + "Согласно инструкции, на FLASH создаются системные файлы и конфигурация, а после первого включения прибор формирует каталог VIDEO с кольцевым буфером. При заполнении начинают заменяться самые старые кадры. Просмотр JPEG на компьютере и конфигурирование носителя описаны в отдельных разделах.", + "Содержание документа включает введение, подготовку, порядок работы, выбор рабочей зоны, завершение работы, просмотр кадров, программное обеспечение, восстановление FLASH, требования эксплуатации и технические характеристики. Полная последовательность, изображения и таблицы находятся в PDF." + ] + }, + { + "heading": "Перед восстановлением FLASH", + "paragraphs": [ + "В разделе 7.2 описаны форматирование и повторная инициализация. Это операции изменения данных, а не способ безопасно получить единственный экземпляр записи. Сначала сделайте копию нужных файлов и проверьте её. Не удаляйте каталог VIDEO с единственным экземпляром важного события." + ] + }, + { + "heading": "Границы применимости", + "paragraphs": [ + "В этой редакции названы питание 9–12 В, диапазон −20…+50 °C и требование не извлекать FLASH при включённом питании. Эти параметры относятся к документу раннего прибора. Пределы другого блока определяются его маркировкой и собственной инструкцией. В архивном тексте встречаются опечатки в строках разрешения и частоты; они не используются как проверенные характеристики других моделей." + ] + } + ], + "related": [ + "/down.shtml", + "/faq.shtml", + "/tools/recording-time" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/manuals/UVR_instr.pdf" + ] + }, + { + "path": "/manuals/svk007", + "title": "СВК-007: два независимых канала", + "summary": "Разъёмы, карты SD/SDHC и подготовка каждого канала. Полный документ: 5 страниц.", + "category": "Документы", + "date": "2008", + "kind": "recovered", + "sourcePaths": [ + "/download/doc/svk_007_instr.zip" + ], + "sections": [ + { + "heading": "Полный паспорт устройства", + "paragraphs": [ + "Инструкция СВК-Лаб 2008 года описывает четырёхкамерный СВК-007. Два канала имеют собственные SD-карты и принимают по две камеры. Использовать можно один канал или оба; дальнейшее описание одного канала применяется ко второму аналогично." + ], + "links": [ + { + "href": "/manuals/svk007-2008.pdf", + "label": "Открыть полный PDF, 5 страниц" + } + ] + }, + { + "heading": "Передняя и задняя панели", + "paragraphs": [ + "На передней панели описаны индикаторы каналов, два слота SD, группы USB и индикатор питания. Сзади расположены POWER и CONTROL; разъём управления в этой инструкции активен для версии Profi. Подключение USB-камеры и носителя резервной копии использует соответствующий канал, а не произвольный разъём другого канала." + ] + }, + { + "heading": "Подготовка карты для каждого канала", + "paragraphs": [ + "В конфигурации задаются количество и тип камер, параметры съёмки, режим и сохранение событий. Для каждого используемого канала нужна соответствующая конфигурация на его карте. Инициализация или форматирование уничтожают прежние данные: сохраните запись до подготовки карты.", + "Инструкция описывает файлы JPEG с временем съёмки и, для GPS-модификации, координатами, скоростью и направлением движения. Для просмотра самих JPEG дополнительные видеокодеки не нужны. Навигационные данные и программы просмотра — отдельный слой работы с записью." + ] + }, + { + "heading": "Первый запуск после подготовки", + "paragraphs": [ + "Инструкция СВК-007 описывает создание структуры носителя после форматирования. Этот первый запуск может занимать 15–20 минут; индикатор канала мигает два раза в секунду. В это время питание выключать нельзя. После подготовки рабочий индикатор мигает один раз в секунду.", + "Эту последовательность нельзя смешивать с ожиданием запуска другого поколения или с обычным извлечением носителя. По окончании работы питание выключают перед отключением камер и карт, но во время начальной инициализации прерывание недопустимо." + ] + }, + { + "heading": "Буфер и таблица времени", + "paragraphs": [ + "Запись непрерывна в пределах кольцевого буфера: новые файлы постепенно вытесняют старые. В паспорте есть ориентировочная таблица для разных объёмов и частот, но её значения зависят от размера JPEG и числа камер. Не используйте таблицу как обещание точного времени для любой конфигурации. Для собственного носителя полезнее измерить средний размер кадров и рассчитать оценку.", + "В таблице есть несогласованные значения: например, для 4 ГБ и 2 кадров/с указаны 506 минут для двух камер и 203 для четырёх. Такие строки нельзя считать проверенной математической основой калькулятора или молча исправлять. Фраза паспорта «ёмкость неограниченно» также не доказывает поддержку любой современной карты: описаны SD/SDHC, а таблица заканчивается на 32 ГБ." + ] + } + ], + "related": [ + "/system", + "/tools/recording-time", + "/samples.shtml" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/manuals/svk_007_instr.pdf" + ] + }, + { + "path": "/autopredpr.shtml", + "title": "СВК на автопредприятии", + "summary": "Наблюдение за салоном, маршрутом и пассажиропотоком. Объявление о комплексе СВК-006 GLONASS.", + "category": "Применение", + "date": "2011", + "kind": "recovered", + "sourcePaths": [ + "/autopredpr.shtml" + ], + "sections": [ + { + "heading": "Задачи на транспорте", + "paragraphs": [ + "В описании семейства СВК перечислялись контроль пассажиропотока, передвижения автомобиля, салона и водителя. Камеры и навигационные данные решают разные задачи: кадры показывают видимую сцену, координаты связывают её с маршрутом. Само наличие двух источников данных не означает автоматического подсчёта пассажиров." + ] + }, + { + "heading": "Комплекс СВК-006 GLONASS", + "paragraphs": [ + "На странице декабря 2011 года сообщалось об испытаниях комплекса на базе СВК-006, названного в объявлении двухканальным, и трекера GlobalSat TR-600 Glonass. Развёрнутого описания алгоритма и результатов подсчёта на этой странице не было. Поэтому заявление об испытаниях сохранено как сообщение своего времени, без обещаний готовой услуги или точности измерений." + ] + }, + { + "heading": "Что проверить при чтении такого описания", + "paragraphs": [ + "Сопоставляйте модель блока, число камер и источник координат. Для оценки конкретной системы нужны её документация, схема данных и реальные примеры." + ] + } + ], + "related": [ + "/system", + "/samples.shtml" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/pages/941d9e8a67275145.html" + ] + }, + { + "path": "/samples.shtml", + "title": "Кадры и программа просмотра", + "summary": "JPEG, EXIF и навигационные данные в примерах СВК-007; передняя и задняя камеры в записях СВК-002.", + "category": "Записи", + "date": "2010", + "kind": "recovered", + "sourcePaths": [ + "/samples.shtml" + ], + "sections": [ + { + "heading": "JPEG как исходный материал", + "paragraphs": [ + "В описании примеров СВК-007 указаны кадры 800×600, EXIF 2.2 и GPS-данные. Отдельный AVI-ролик собирался из этих кадров. Поэтому кадры JPEG и экспортированный фильм — разные представления одной записи, а не взаимозаменяемые оригиналы.", + "Для примера с Logitech QuickCam for Notebooks Pro Carl Zeiss Optics также названы 800×600 и GPS в кадре. Для просмотра использовалась VideoReg Slide Show, в публикации была рекомендована версия не ниже 2.0 Beta 10." + ], + "figure": { + "src": "/archive-media/viewer-map.jpg", + "alt": "Окно VideoReg Slide Show 2.0 beta 10: дорожный кадр справа, карта с положением автомобиля слева и панель воспроизведения внизу.", + "caption": "VideoReg Slide Show: изображение, карта и элементы просмотра записи." + } + }, + { + "heading": "Откройте исходные изображения", + "paragraphs": [ + "Для сравнения доступны серия 640×480 и отдельные кадры 800×600 с навигационными данными. Они иллюстрируют разные варианты записи, поэтому требования и результаты одного набора не следует переносить на другой." + ], + "links": [ + { + "href": "/samples/stx", + "label": "Покадровая запись 640×480" + }, + { + "href": "/samples/evening-zeiss", + "label": "Поездка вечером: камера Zeiss" + }, + { + "href": "/samples/day-zeiss", + "label": "Дневная запись: камера Zeiss" + }, + { + "href": "/samples/rain", + "label": "Съёмка в сильный дождь" + }, + { + "href": "/samples/late-evening", + "label": "Поздний вечер: Communicate STX" + }, + { + "href": "/samples/roundabout", + "label": "Круговое движение при слабом свете" + }, + { + "href": "/samples/gps", + "label": "Кадры 800×600 с EXIF GPS" + } + ] + }, + { + "heading": "Зачем сравнивать две камеры", + "paragraphs": [ + "На странице были представлены передний и задний виды одного события с двухканального СВК-002. Для сопоставления важны время и порядок кадров, а не только похожая сцена. Короткий экспортированный ролик может не содержать весь интервал, сохранившийся на носителе." + ] + }, + { + "heading": "Что проверять в исходном кадре", + "paragraphs": [ + "Скопируйте JPEG без перекодирования и проверьте его размер, время и доступные EXIF-поля. Открытие изображения подтверждает читаемость этого файла; для проверки непрерывности надо открыть последовательность и сравнить временные метки. Для GPS-модификации проверьте, что координаты действительно присутствуют в конкретной записи.", + "Сохраните исходные файлы отдельно от экспортированных роликов. Для работы с координатами нужны навигационные данные конкретного кадра, а не только видимая подпись на экране." + ] + }, + { + "heading": "Фильм, собранный из кадров", + "paragraphs": [ + "В дополнительных примерах СВК опубликован ролик, созданный программой VideoRegShow. Такой экспорт удобен для последовательного просмотра. Он не заменяет оригинальные JPEG при работе с EXIF и координатами." + ], + "links": [ + { + "href": "https://www.youtube.com/watch?v=3RssFVRTOJ0", + "label": "Видеопример СВК-007 в VideoRegShow (YouTube)" + } + ] + } + ], + "related": [ + "/down.shtml", + "/manuals/svk007", + "/system" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/pages/ebfe0f1f81e47118dadc.html", + "docs/rebuild-v2/raw/narod-samples-live.html" + ] + }, + { + "path": "/catalog", + "title": "Модели и комплекты СВК", + "summary": "Составы из каталога производителя: камеры, базовые блоки, GPS и носители.", + "category": "Оборудование", + "date": "2007–2008", + "kind": "recovered", + "sourcePaths": [ + "/shop/index.php?categoryID=78", + "/shop/index.php?categoryID=79", + "/shop/index.php?categoryID=80" + ], + "sections": [ + { + "heading": "Системные блоки", + "paragraphs": [ + "Обозначения ниже взяты из старых карточек и описаний категорий. Составы со временем менялись, а цифровой productID мог быть переиспользован. Поэтому название комплекта и редакция списка важнее одного старого номера карточки. Текущая продажа, наличие и цены здесь не заявляются." + ], + "table": { + "caption": "Блоки в списке 2008 года", + "head": [ + "Блок", + "Что указано в описании" + ], + "rows": [ + [ + "СВК-002", + "Две камеры, JPEG, до 5 кадров/с с одной камерой" + ], + [ + "СВК-002-J", + "Вариант СВК-002 с GPS" + ], + [ + "СВК-004", + "Четыре камеры; в карточке указано до 5 кадров/с без достаточного уточнения распределения" + ], + [ + "СВК-005", + "800×600 до 15 кадров/с или 640×480 до 25 кадров/с с одной камерой; SDHC до 16 ГБ" + ] + ] + } + }, + { + "heading": "Комплекты СВК-002", + "paragraphs": [ + "В категории декабря 2008 года перечислялись сочетания базового блока, USB-камеры и FLASH 1 ГБ. В GPS-комплектах приёмник добавлял координаты, скорость и направление. Для NX-6000 в названии одного J-комплекта подразумевался GPS, но перечень состава его явно не повторял: это расхождение нельзя скрывать." + ], + "table": { + "caption": "Варианты из категории комплектов", + "head": [ + "Название", + "Камера", + "Носитель / навигация" + ], + "rows": [ + [ + "СВК-002-J-LQCZ-1G", + "Logitech QuickCam Pro notebook Carl Zeiss", + "FLASH 1 ГБ + GPS" + ], + [ + "СВК-002-J-MNX3-1G", + "Microsoft LifeCam NX-3000", + "FLASH 1 ГБ + GPS" + ], + [ + "СВК-002-J-MNX6-1G", + "Microsoft LifeCam NX-6000", + "FLASH 1 ГБ; GPS в составе явно не повторён" + ], + [ + "СВК-002-MNX3-1G", + "Microsoft LifeCam NX-3000", + "FLASH 1 ГБ" + ], + [ + "СВК-002-MNX6-1G", + "Microsoft LifeCam NX-6000", + "FLASH 1 ГБ" + ] + ] + } + }, + { + "heading": "Комплекты СВК-005", + "paragraphs": [ + "СВК-005-LQCZ-16G включал блок СВК-005, Logitech QuickCam Pro notebook Carl Zeiss и SDHC 16 ГБ. СВК-005-MNX3-16G — тот же базовый блок, Microsoft LifeCam NX-3000 и SDHC 16 ГБ. Указанные 15 кадров/с при 800×600 и 25 кадров/с при 640×480 относились к однокамерному режиму." + ] + }, + { + "heading": "Камеры в раннем каталоге", + "paragraphs": [ + "В категории 2007 года перечислялись Creative Webcam Notebook, Creative Live! Cam Notebook Pro и Logitech QuickCam Communicate STX. Для STX были указаны VGA-видео 640×480, фиксированный фокус, угол 42° по горизонтали и USB 1.1/2.0. Цифра 1,3 Мп относилась к интерполированному фото, а не к реальному разрешению видеозаписи.", + "Список из магазина не заменяет таблицу совместимости с конкретным СВК. Позднейшие сообщения о нестабильной работе камеры или кабеля нужно рассматривать отдельно, с датой и условиями проверки." + ] + } + ], + "related": [ + "/support.shtml", + "/system", + "/community/usb-extension" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/pages/84f0ba96664ae7bc.html", + "docs/rebuild-v2/raw/pages/36bb32d1cddb9428b1ff.html", + "docs/rebuild-v2/raw/pages/7f047412181b5b82.html" + ] + }, + { + "path": "/equipment/svk002-lqcd", + "title": "СВК-002-LQCD-1G", + "summary": "Состав и границы характеристик конкретной карточки производителя.", + "category": "Оборудование", + "date": "2008-02", + "kind": "recovered", + "sourcePaths": [ + "/shop/index.php?productID=132" + ], + "sections": [ + { + "heading": "Описание комплектации", + "paragraphs": [ + "Карточка февраля 2008 года описывает комплект из базового СВК-002, Logitech QuickCam for Notebook Deluxe и FLASH 1 ГБ. В описании указана работа с двумя камерами и скорость до 5 кадров/с, но распределение частоты при двух камерах в этой карточке не уточнено.", + "Комплект предполагал питание от автомобильной розетки. Это описание состава, а не универсальная инструкция подключения. В поздней категории тот же productID132 уже использовался для другого названия с NX-6000; эти две редакции нельзя незаметно объединять." + ] + } + ], + "related": [ + "/catalog", + "/support.shtml" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/pages/e3e6f111514ab2eff5bf.html" + ] + }, + { + "path": "/equipment/svk002-gps", + "title": "СВК-002-J-LQCP-1G", + "summary": "Состав и границы характеристик конкретной карточки производителя.", + "category": "Оборудование", + "date": "2008-01", + "kind": "recovered", + "sourcePaths": [ + "/shop/index.php?productID=133" + ], + "sections": [ + { + "heading": "Описание комплектации", + "paragraphs": [ + "В карточке января 2008 года указан базовый блок СВК-002, Logitech QuickCam for Notebook Pro, FLASH 1 ГБ и модуль GPS. Устройство описывалось как двухкамерное, со скоростью до 5 кадров/с и записью координат, скорости и направления движения.", + "Это конкретный старый комплект. Наличие буквы J в другом объявлении и похожая веб-камера сами по себе не доказывают одинаковую аппаратную конфигурацию. Для просмотра исходных кадров достаточно понимать формат JPEG, а наличие GPS проверяется в данных конкретного файла." + ] + } + ], + "related": [ + "/catalog", + "/support.shtml" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/pages/e23a0adb91ac947a1bca.html" + ] + }, + { + "path": "/equipment/svk004", + "title": "СВК-004", + "summary": "Состав и границы характеристик конкретной карточки производителя.", + "category": "Оборудование", + "date": "2008-01", + "kind": "recovered", + "sourcePaths": [ + "/shop/index.php?productID=137" + ], + "sections": [ + { + "heading": "Описание комплектации", + "paragraphs": [ + "Карточка СВК-004 описывает системный блок для четырёх камер и покадровой фиксации с привязкой ко времени. В ней названа скорость до 5 кадров/с, но не объяснено, идёт ли речь о суммарной частоте или частоте отдельной камеры. Частоту отдельной камеры по этой карточке установить нельзя.", + "Из одной этой карточки нельзя установить поддержку SDHC, звука, GPS или функции сохранения событий: подробностей там нет. Для поздних СВК-006/007 используются собственные паспорта." + ] + } + ], + "related": [ + "/catalog", + "/support.shtml" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/pages/9c729ce35d34a57c661a.html" + ] + }, + { + "path": "/sert.html", + "title": "Сертификат СВК", + "summary": "Исторический скан документа о соответствии.", + "category": "Документы", + "date": "2009", + "kind": "recovered", + "sourcePaths": [ + "/sert.html" + ], + "sections": [ + { + "heading": "Скан документа", + "paragraphs": [ + "На странице сертификата был размещён скан без отдельного текстового описания. Доступная копия небольшая, поэтому она показана в собственном размере: увеличенная картинка не сделает мелкий текст достоверно читаемым." + ], + "figure": { + "src": "/archive-media/certificate.jpg", + "alt": "Небольшой исторический скан сертификата соответствия для цифрового видеорегистратора СВК.", + "caption": "Скан сертификата; доступная копия — 200 × 282 пикселя.", + "small": true + } + }, + { + "heading": "Как использовать эту копию", + "paragraphs": [ + "Изображение фиксирует существование опубликованного документа своего времени. Оно не подтверждает действующий сегодня сертификат или параметры другого экземпляра оборудования. По мелкому тексту этой копии нельзя достоверно проверить номер и срок действия. Для технической эксплуатации используйте паспорт конкретной модели." + ] + } + ], + "related": [ + "/manuals/uvr", + "/manuals/svk007" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/pages/011e45147bc6673be554.html" + ] + }, + { + "path": "/predpr.shtml", + "title": "Пассажиропоток, маршрут и салон", + "summary": "События дверей, остановки по GPS и распределение четырёх камер между двумя независимыми каналами.", + "category": "Применение", + "date": "2012", + "kind": "recovered", + "sourcePaths": [ + "/predpr.shtml" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/predpr-short2012.html" + ], + "related": [ + "/system", + "/autopredpr.shtml", + "/manuals/svk007", + "/tools/recording-time" + ], + "sections": [ + { + "heading": "Запись по событию, а не автоматический подсчёт", + "paragraphs": [ + "Для контроля пассажиропотока в описании СВК предлагалось привязать запись к открытию и закрытию дверей автобуса или маршрутного такси. При открытой двери прибор записывает кадры, а после закрытия прекращает запись с программируемой задержкой, в том числе нулевой. Другой источник события — внешний датчик с релейным выходом.", + "Кадры дают материал для последующего просмотра входа и выхода. В этой странице не описан алгоритм автоматического распознавания или подсчёта людей; из наличия камеры такой алгоритм выводить нельзя." + ] + }, + { + "heading": "Две частоты вместо полного прекращения записи", + "paragraphs": [ + "Второй вариант — менять частоту по внешнему событию. Пока дверь открыта, запись идёт с одной заданной скоростью, после закрытия — с другой. Такой режим сочетает подробную съёмку входа с более редкой записью салона в другое время.", + "Частоты задаются конфигурацией устройства. Число файлов, длительность буфера и объём защищённых событий нужно оценивать для реально используемых камер и их размеров JPEG, а не для рекламного примера с другого блока." + ] + }, + { + "heading": "Как распределялись четыре камеры", + "paragraphs": [ + "Для СВК-007 предложен пример: две камеры первого канала наблюдают за двумя дверями, а второй канал ведёт запись дороги и салона. Это иллюстрирует независимые задачи каналов: изменение дверного сценария не должно незаметно подменяться обещанием непрерывной записи всех четырёх камер.", + "В отдельном описании СВК-007 каждому каналу соответствует собственный носитель. Поэтому проверка наличия кадров и резервной копии проводится для каждого нужного канала. Скопировать одну карту — не обязательно сохранить всю четырёхкамерную запись." + ], + "figure": { + "src": "/diagrams/svk-fleet-channels.svg", + "alt": "Два канала СВК: двери по событию, дорога и салон постоянно; GPS и метки помогают просмотру.", + "caption": "Пример распределения задач между независимыми каналами СВК-007.", + "diagram": true + } + }, + { + "heading": "GPS и остановки автомобиля", + "paragraphs": [ + "В GPS-модификациях каждый кадр мог сопровождаться местоположением, скоростью, курсом и временем в EXIF. На странице описаны запись при остановке и маркировка событий открывания двери: это позволяет переходить к нужным фрагментам, не просматривая весь маршрут.", + "Сочетание съёмки остановок и отметок двери также рассматривалось как способ сохранить материал при отказе дверного датчика. Такой результат зависит от выбранного режима; сама установка GPS не гарантирует, что любое устройство записывает все остановки." + ] + }, + { + "heading": "Маршрут и разные области наблюдения", + "paragraphs": [ + "По координатам отдельных кадров можно сопоставить сцену с местом на маршруте, а при наличии соответствующих данных — получить трек. В исходнике в качестве программы просмотра места был назван Google Earth; это указание на способ работы с координатами, а не подключённая к этой библиотеке онлайн-карта.", + "Для многокамерного применения перечислялись кабина водителя, дорожная обстановка, салон и внешняя зона автомобиля. Размещение камер и обработка записи зависят от задачи и применимых правил, а не от одного общего обещания «контроля водителя»." + ] + }, + { + "heading": "Питание и аппаратная версия", + "paragraphs": [ + "В странице названы отдельные исполнения для бортовой сети 24 В и расширенного диапазона 9–36 В. Это свойства соответствующей модификации, а не разрешение подключать ранний блок с паспортом 9–12 В к сети 24 В. Проверьте маркировку именно своего экземпляра.", + "Температурный допуск своего блока сверяйте с его паспортом. Для подключения датчиков, питания и креплений нужна документация конкретного устройства и автомобиля." + ] + } + ] + }, + { + "path": "/manuals/two-camera", + "title": "Двухкамерный СВК: инструкция", + "summary": "Отдельный USB-разъём FLASH, две камеры и настройка буфера. Полный документ: 12 страниц.", + "category": "Документы", + "date": "2006", + "kind": "recovered", + "sourcePaths": [ + "/download/uvr_instr_2ch.zip" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/manuals/UVR_instr_2CH.pdf" + ], + "sections": [ + { + "heading": "Полная инструкция для двух камер", + "paragraphs": [ + "Редакция 2006 года описывает универсальную двухкамерную систему. В отличие от ранней однокамерной инструкции здесь разделены роли разъёмов: USB1 используется для FLASH, USB2 и USB3 — для камер. Переносить утверждение старой версии об одинаковых разъёмах на этот блок нельзя." + ], + "links": [ + { + "href": "/manuals/two-camera-2006.pdf", + "label": "Открыть полный PDF, 12 страниц" + } + ] + }, + { + "heading": "Подготовка и начало работы", + "paragraphs": [ + "Файлы USB.BIN и VIDEO.CFG вместе с выбранной конфигурацией находятся на FLASH. На первом включении прибор создаёт каталог VIDEO и рабочий буфер. Число и тип камер должны соответствовать настройке. До изменения структуры носителя сохраните нужные файлы на другом носителе." + ] + }, + { + "heading": "Длительность и число камер", + "paragraphs": [ + "В таблице инструкции приведено время для 352×288. Текст предлагает делить его на четыре для 640×480 и ещё на два для двух камер. Эти условия важны: число из таблицы без разрешения и числа камер не описывает длительность вашего режима.", + "На странице технических характеристик две строки подписаны одинаково «640×480 для одной камеры», но содержат 5 и 2,5 кадра/с. Вторую подпись нельзя незаметно переименовать в «две камеры» без подтверждения. Для конкретного режима проверьте реальные временные метки последовательности." + ] + }, + { + "heading": "Требования своей редакции", + "paragraphs": [ + "Паспорт указывает питание 9–12 В, диапазон −30…+50 °C и габариты блока 150×80×30 мм. Эти значения относятся к этой редакции. Восстановление структуры FLASH включает операции удаления или форматирования, которые уничтожают данные; сначала нужна проверенная копия записи." + ] + } + ], + "related": [ + "/manuals/uvr", + "/faq.shtml", + "/community/flash-start" + ] + }, + { + "path": "/manuals/quickstart", + "title": "СВК-006/007: начинаем работу", + "summary": "Карта, USB.BIN, выбор типа прибора и камер, условия съёмки и запись конфигурации. Полный документ: 8 страниц.", + "category": "Документы", + "date": "2009", + "kind": "recovered", + "sourcePaths": [ + "/download/doc/QuickStart_SVK007_006.zip" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/manuals/QuickStart_SVK007_006.pdf" + ], + "sections": [ + { + "heading": "Полная последовательность подготовки", + "paragraphs": [ + "Краткое руководство 2009 года содержит восемь страниц со снимками окон конфигуратора. В тексте выбора прибора сокращённо названы СВК-002 и СВК-007, а на снимке окна вариант подписан «СВК-007/006». Сопоставьте модель блока с обозначением в своей версии программы." + ], + "links": [ + { + "href": "/manuals/quickstart-2009.pdf", + "label": "Открыть полный PDF, 8 страниц" + } + ] + }, + { + "heading": "До настройки карты", + "paragraphs": [ + "Форматирование стирает прежнюю запись. Сначала сохраните нужные кадры, затем проверьте выбранный диск: ошибочный выбор носителя может уничтожить другие данные. Руководство далее описывает копирование USB.BIN с комплектного диска и создание конфигурации. Бинарные файлы другой модели не заменяют правильный комплект ПО." + ] + }, + { + "heading": "Что задаёт конфигуратор", + "paragraphs": [ + "В программе выбирают тип прибора, тип первой камеры и, при двух камерах в одном канале, включают соответствующий пункт и выбирают вторую камеру. Затем задают условия съёмки и параметры нужного режима. Показанные окна Windows относятся к программному обеспечению своего времени." + ], + "list": [ + "Сверить аппаратный тип блока и носитель.", + "Выбрать фактически подключённую камеру.", + "Для двух камер в канале указать обе.", + "Проверить условия съёмки и режим работы.", + "Записать подготовленную конфигурацию на нужную карту." + ] + }, + { + "heading": "Время и второй канал", + "paragraphs": [ + "Для GPS-коррекции важен часовой пояс компьютера настройки. Время конфигурации не обновляется само после подготовки: проверьте его перед применением и затем в сохранённом кадре. Для СВК-007 обе карты готовятся для соответствующих каналов отдельно. Успешная настройка одного канала не проверяет второй." + ] + } + ], + "related": [ + "/manuals/svk007", + "/system", + "/down.shtml" + ] + }, + { + "path": "/samples/stx", + "title": "Покадровая запись 640×480", + "summary": "Серия с камеры Logitech Communicate STX.", + "category": "Записи", + "date": "Дата не указана", + "kind": "linked-source", + "sourcePaths": [ + "http://videoreg-samples.narod.ru/" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/narod-samples-live.html" + ], + "sections": [ + { + "heading": "Смотрите последовательность", + "paragraphs": [ + "Серия показывает изменение дорожной сцены по отдельным кадрам. На странице примеров указаны камера Logitech Communicate STX и разрешение 640×480. Откройте исходник, чтобы оценить детали в собственном размере.", + "Имя файла не доказывает частоту съёмки. Для вычисления времени и пропусков нужны надёжные временные данные конкретной записи. Похожая сцена на нескольких JPEG сама по себе не гарантирует, что между ними не было пропуска." + ], + "gallery": [ + { + "src": "/recordings/samples/fra07122.jpg", + "filename": "fra07122.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra07123.jpg", + "filename": "fra07123.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra07124.jpg", + "filename": "fra07124.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra07125.jpg", + "filename": "fra07125.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra07126.jpg", + "filename": "fra07126.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra07127.jpg", + "filename": "fra07127.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra07128.jpg", + "filename": "fra07128.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra07129.jpg", + "filename": "fra07129.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra07130.jpg", + "filename": "fra07130.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra07131.jpg", + "filename": "fra07131.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra07132.jpg", + "filename": "fra07132.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra07133.jpg", + "filename": "fra07133.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra07134.jpg", + "filename": "fra07134.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra07135.jpg", + "filename": "fra07135.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra07136.jpg", + "filename": "fra07136.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra07137.jpg", + "filename": "fra07137.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra07138.jpg", + "filename": "fra07138.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra07139.jpg", + "filename": "fra07139.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra07140.jpg", + "filename": "fra07140.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra07141.jpg", + "filename": "fra07141.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra07142.jpg", + "filename": "fra07142.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra07143.jpg", + "filename": "fra07143.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra07144.jpg", + "filename": "fra07144.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra07145.jpg", + "filename": "fra07145.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra07146.jpg", + "filename": "fra07146.jpg", + "width": 640, + "height": 480 + } + ] + }, + { + "heading": "Размер файла и длительность", + "paragraphs": [ + "У проверенных кадров этой серии размер файла составляет 65 536 байт. Это наблюдение об этих файлах, а не постоянный размер всех JPEG. Для калькулятора это 65,536 десятичных КБ. Частоту кадров вводите из своей конфигурации.", + "Для проверки изображения откройте оригинал и смотрите детали в исходном разрешении. Повторное сохранение через мессенджер или редактор меняет материал и не заменяет исходный файл." + ] + } + ], + "related": [ + "/samples/gps", + "/samples/evening-zeiss", + "/samples/rain" + ] + }, + { + "path": "/samples/gps", + "title": "JPEG с EXIF-блоком GPS", + "summary": "Четыре исходных кадра 800×600 с блоком GPSInfo. Наличие блока не означает, что координаты и служебные поля корректны.", + "category": "Записи", + "date": "Пример СВК-007", + "kind": "recovered-media", + "sourcePaths": [ + "/download/samples/zeiss_800_600_GPS_1.zip" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/salvaged-jpeg/A0048550.JPG", + "docs/rebuild-v2/raw/salvaged-jpeg/A0048551.JPG", + "docs/rebuild-v2/raw/salvaged-jpeg/A0048552.JPG", + "docs/rebuild-v2/raw/salvaged-jpeg/A0048553.JPG" + ], + "sections": [ + { + "heading": "Исходные кадры 800×600", + "paragraphs": [ + "Эти JPEG содержат EXIF-поля, включая GPSInfo. Дорожное изображение и навигационные поля — разные части файла. Наличие GPSInfo здесь не означает, что такие данные есть в любом JPEG или любой модификации СВК.", + "Откройте кадр в собственном размере. Для дальнейшей работы сохраняйте исходный файл: снимок экрана окна просмотра не переносит все EXIF-поля." + ], + "gallery": [ + { + "src": "/recordings/gps/A0048550.JPG", + "filename": "A0048550.JPG", + "width": 800, + "height": 600 + }, + { + "src": "/recordings/gps/A0048551.JPG", + "filename": "A0048551.JPG", + "width": 800, + "height": 600 + }, + { + "src": "/recordings/gps/A0048552.JPG", + "filename": "A0048552.JPG", + "width": 800, + "height": 600 + }, + { + "src": "/recordings/gps/A0048553.JPG", + "filename": "A0048553.JPG", + "width": 800, + "height": 600 + } + ] + }, + { + "heading": "Почему наличия GPSInfo недостаточно", + "paragraphs": [ + "В этих образцах обычный EXIF-анализатор отмечает некорректный GPSVersionID и неизвестные значения опорных обозначений широты и долготы. Поле GPSStatus помечает измерение как недействительное. Это не основание использовать прочитанные числа как проверенные координаты или прокладывать по ним достоверный маршрут.", + "Само изображение можно рассматривать независимо от этих полей. Для сопоставления событий нужна проверенная последовательность кадров и корректное время; экспорт AVI удобен для просмотра, но не заменяет исходные JPEG при повторном анализе EXIF. Сохраняйте оригиналы без исправления метаданных поверх единственного экземпляра." + ] + } + ], + "related": [ + "/samples/stx", + "/samples.shtml", + "/down.shtml" + ] + }, + { + "path": "/samples/evening-zeiss", + "title": "Поездка вечером: камера Zeiss", + "summary": "Вечерняя серия с Logitech QuickCam Pro for Notebook Zeiss Optic.", + "category": "Записи", + "date": "Дата не указана", + "kind": "linked-source", + "sourcePaths": [ + "http://videoreg-samples.narod.ru/photoalbum2.html" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/gallery/alternate-991e36081a7fd594.html" + ], + "sections": [ + { + "heading": "Последовательность исходных кадров", + "paragraphs": [ + "Сравните участки с разной освещённостью. Размытие и различимость объектов оценивайте в исходном размере, без увеличения, выдаваемого за новые детали.", + "Оригинал каждого кадра открывается по нажатию. Сохранение через снимок экрана или повторное сжатие меняет материал. Для проверки времени и GPS нужны соответствующие поля самого файла; подпись серии их не заменяет." + ], + "gallery": [ + { + "src": "/recordings/samples/FRA13104.JPG", + "filename": "FRA13104.JPG", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/FRA13105.JPG", + "filename": "FRA13105.JPG", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/FRA13107.JPG", + "filename": "FRA13107.JPG", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/FRA13108.JPG", + "filename": "FRA13108.JPG", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/FRA13109.JPG", + "filename": "FRA13109.JPG", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/FRA13110.JPG", + "filename": "FRA13110.JPG", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/FRA13113.JPG", + "filename": "FRA13113.JPG", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/FRA13114.JPG", + "filename": "FRA13114.JPG", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/FRA13115.JPG", + "filename": "FRA13115.JPG", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/FRA13116.JPG", + "filename": "FRA13116.JPG", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/FRA13118.JPG", + "filename": "FRA13118.JPG", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/FRA13119.JPG", + "filename": "FRA13119.JPG", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/FRA13120.JPG", + "filename": "FRA13120.JPG", + "width": 640, + "height": 480 + } + ] + } + ], + "related": [ + "/samples.shtml", + "/samples/stx", + "/tools/recording-time" + ] + }, + { + "path": "/samples/day-zeiss", + "title": "Дневная запись: камера Zeiss", + "summary": "Дневная серия с Logitech Pro Notebooks Zeiss optics.", + "category": "Записи", + "date": "Дата не указана", + "kind": "linked-source", + "sourcePaths": [ + "http://videoreg-samples.narod.ru/photoalbum3.html" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/gallery/alternate-a6d44332187a1b36.html" + ], + "sections": [ + { + "heading": "Последовательность исходных кадров", + "paragraphs": [ + "Дневные кадры показывают дорожную сцену в условиях этой поездки. Один набор не доказывает качество камеры при другой погоде, настройках или установке.", + "Оригинал каждого кадра открывается по нажатию. Сохранение через снимок экрана или повторное сжатие меняет материал. Для проверки времени и GPS нужны соответствующие поля самого файла; подпись серии их не заменяет." + ], + "gallery": [ + { + "src": "/recordings/samples/FRA04840.JPG", + "filename": "FRA04840.JPG", + "width": 641, + "height": 481 + }, + { + "src": "/recordings/samples/FRA04841.JPG", + "filename": "FRA04841.JPG", + "width": 641, + "height": 481 + }, + { + "src": "/recordings/samples/FRA04842.JPG", + "filename": "FRA04842.JPG", + "width": 641, + "height": 481 + }, + { + "src": "/recordings/samples/FRA04843.JPG", + "filename": "FRA04843.JPG", + "width": 641, + "height": 481 + }, + { + "src": "/recordings/samples/FRA04845.JPG", + "filename": "FRA04845.JPG", + "width": 641, + "height": 481 + }, + { + "src": "/recordings/samples/FRA04847.JPG", + "filename": "FRA04847.JPG", + "width": 641, + "height": 481 + }, + { + "src": "/recordings/samples/FRA04848.JPG", + "filename": "FRA04848.JPG", + "width": 641, + "height": 481 + }, + { + "src": "/recordings/samples/FRA04849.JPG", + "filename": "FRA04849.JPG", + "width": 641, + "height": 481 + }, + { + "src": "/recordings/samples/FRA04851.JPG", + "filename": "FRA04851.JPG", + "width": 641, + "height": 481 + }, + { + "src": "/recordings/samples/FRA04852.JPG", + "filename": "FRA04852.JPG", + "width": 641, + "height": 481 + }, + { + "src": "/recordings/samples/FRA04853.JPG", + "filename": "FRA04853.JPG", + "width": 641, + "height": 481 + }, + { + "src": "/recordings/samples/FRA04854.JPG", + "filename": "FRA04854.JPG", + "width": 641, + "height": 481 + }, + { + "src": "/recordings/samples/FRA04855.JPG", + "filename": "FRA04855.JPG", + "width": 641, + "height": 481 + }, + { + "src": "/recordings/samples/FRA04856.JPG", + "filename": "FRA04856.JPG", + "width": 641, + "height": 481 + }, + { + "src": "/recordings/samples/FRA04857.JPG", + "filename": "FRA04857.JPG", + "width": 641, + "height": 481 + }, + { + "src": "/recordings/samples/FRA04858.JPG", + "filename": "FRA04858.JPG", + "width": 641, + "height": 481 + } + ] + } + ], + "related": [ + "/samples.shtml", + "/samples/stx", + "/tools/recording-time" + ] + }, + { + "path": "/samples/rain", + "title": "Съёмка в сильный дождь", + "summary": "Последовательность с камеры Genius Videocam WEB, 640×480.", + "category": "Записи", + "date": "Дата не указана", + "kind": "linked-source", + "sourcePaths": [ + "http://videoreg-samples.narod.ru/photoalbum4.html" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/gallery/alternate-57f0b23d3abb1351.html" + ], + "sections": [ + { + "heading": "Последовательность исходных кадров", + "paragraphs": [ + "Посмотрите, как дождь на стекле меняет видимую сцену. Это запись конкретного опыта; она не задаёт технический предел работы камеры под дождём вне салона.", + "Оригинал каждого кадра открывается по нажатию. Сохранение через снимок экрана или повторное сжатие меняет материал. Для проверки времени и GPS нужны соответствующие поля самого файла; подпись серии их не заменяет." + ], + "gallery": [ + { + "src": "/recordings/samples/fr000775.jpg", + "filename": "fr000775.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000776.jpg", + "filename": "fr000776.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000777.jpg", + "filename": "fr000777.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000778.jpg", + "filename": "fr000778.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000779.jpg", + "filename": "fr000779.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000780.jpg", + "filename": "fr000780.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000781.jpg", + "filename": "fr000781.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000783.jpg", + "filename": "fr000783.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000784.jpg", + "filename": "fr000784.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000785.jpg", + "filename": "fr000785.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000786.jpg", + "filename": "fr000786.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000787.jpg", + "filename": "fr000787.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000788.jpg", + "filename": "fr000788.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000791.jpg", + "filename": "fr000791.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000792.jpg", + "filename": "fr000792.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000793.jpg", + "filename": "fr000793.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000794.jpg", + "filename": "fr000794.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000797.jpg", + "filename": "fr000797.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000799.jpg", + "filename": "fr000799.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000800.jpg", + "filename": "fr000800.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000801.jpg", + "filename": "fr000801.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000802.jpg", + "filename": "fr000802.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000803.jpg", + "filename": "fr000803.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000804.jpg", + "filename": "fr000804.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000805.jpg", + "filename": "fr000805.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000806.jpg", + "filename": "fr000806.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000807.jpg", + "filename": "fr000807.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000808.jpg", + "filename": "fr000808.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000809.jpg", + "filename": "fr000809.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr000810.jpg", + "filename": "fr000810.jpg", + "width": 640, + "height": 480 + } + ] + } + ], + "related": [ + "/samples.shtml", + "/samples/stx", + "/tools/recording-time" + ] + }, + { + "path": "/samples/late-evening", + "title": "Поздний вечер: Communicate STX", + "summary": "Серия камеры Logitech Communicate STX при низкой освещённости.", + "category": "Записи", + "date": "Дата не указана", + "kind": "linked-source", + "sourcePaths": [ + "http://videoreg-samples.narod.ru/photoalbum5.html" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/gallery/alternate-43b20f31e2d60021.html" + ], + "sections": [ + { + "heading": "Последовательность исходных кадров", + "paragraphs": [ + "Сопоставьте светлые и тёмные участки последовательности. По показанным кадрам нельзя обещать читаемость номеров в любых вечерних условиях.", + "Оригинал каждого кадра открывается по нажатию. Сохранение через снимок экрана или повторное сжатие меняет материал. Для проверки времени и GPS нужны соответствующие поля самого файла; подпись серии их не заменяет." + ], + "gallery": [ + { + "src": "/recordings/samples/fr002306.jpg", + "filename": "fr002306.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002307.jpg", + "filename": "fr002307.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002308.jpg", + "filename": "fr002308.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002309.jpg", + "filename": "fr002309.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002310.jpg", + "filename": "fr002310.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002311.jpg", + "filename": "fr002311.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002312.jpg", + "filename": "fr002312.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002313.jpg", + "filename": "fr002313.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002314.jpg", + "filename": "fr002314.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002315.jpg", + "filename": "fr002315.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002316.jpg", + "filename": "fr002316.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002317.jpg", + "filename": "fr002317.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002318.jpg", + "filename": "fr002318.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002319.jpg", + "filename": "fr002319.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002320.jpg", + "filename": "fr002320.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002321.jpg", + "filename": "fr002321.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002322.jpg", + "filename": "fr002322.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002323.jpg", + "filename": "fr002323.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002324.jpg", + "filename": "fr002324.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002325.jpg", + "filename": "fr002325.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002326.jpg", + "filename": "fr002326.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002328.jpg", + "filename": "fr002328.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002329.jpg", + "filename": "fr002329.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002330.jpg", + "filename": "fr002330.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002331.jpg", + "filename": "fr002331.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002332.jpg", + "filename": "fr002332.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002333.jpg", + "filename": "fr002333.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002334.jpg", + "filename": "fr002334.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002335.jpg", + "filename": "fr002335.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002337.jpg", + "filename": "fr002337.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002338.jpg", + "filename": "fr002338.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002339.jpg", + "filename": "fr002339.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002340.jpg", + "filename": "fr002340.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002341.jpg", + "filename": "fr002341.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002342.jpg", + "filename": "fr002342.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002343.jpg", + "filename": "fr002343.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002344.jpg", + "filename": "fr002344.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002346.jpg", + "filename": "fr002346.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002347.jpg", + "filename": "fr002347.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002348.jpg", + "filename": "fr002348.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002349.jpg", + "filename": "fr002349.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr00235001.jpg", + "filename": "fr00235001.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002351.jpg", + "filename": "fr002351.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002352.jpg", + "filename": "fr002352.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002353.jpg", + "filename": "fr002353.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002357.jpg", + "filename": "fr002357.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002358.jpg", + "filename": "fr002358.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002359.jpg", + "filename": "fr002359.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002363.jpg", + "filename": "fr002363.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002364.jpg", + "filename": "fr002364.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002365.jpg", + "filename": "fr002365.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002366.jpg", + "filename": "fr002366.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002367.jpg", + "filename": "fr002367.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002368.jpg", + "filename": "fr002368.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fr002369.jpg", + "filename": "fr002369.jpg", + "width": 640, + "height": 480 + } + ] + } + ], + "related": [ + "/samples.shtml", + "/samples/stx", + "/tools/recording-time" + ] + }, + { + "path": "/samples/roundabout", + "title": "Круговое движение при слабом свете", + "summary": "Последовательность с Logitech QuickCam Communicate STX.", + "category": "Записи", + "date": "Дата не указана", + "kind": "linked-source", + "sourcePaths": [ + "http://videoreg-samples.narod.ru/povorot.html" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/gallery/alternate-112661c32d6ffcb1.html" + ], + "sections": [ + { + "heading": "Последовательность исходных кадров", + "paragraphs": [ + "Исходное название серии указывает круговое движение и слабую освещённость. Последовательность сохраняет отдельные кадры; AVI-экспорт и исходные JPEG не следует считать одинаковыми файлами.", + "Оригинал каждого кадра открывается по нажатию. Сохранение через снимок экрана или повторное сжатие меняет материал. Для проверки времени и GPS нужны соответствующие поля самого файла; подпись серии их не заменяет." + ], + "gallery": [ + { + "src": "/recordings/samples/fra51230.jpg", + "filename": "fra51230.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra51231.jpg", + "filename": "fra51231.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra51233.jpg", + "filename": "fra51233.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra51234.jpg", + "filename": "fra51234.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra51235.jpg", + "filename": "fra51235.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra51236.jpg", + "filename": "fra51236.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra51237.jpg", + "filename": "fra51237.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra51238.jpg", + "filename": "fra51238.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra51239.jpg", + "filename": "fra51239.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra51240.jpg", + "filename": "fra51240.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra51241.jpg", + "filename": "fra51241.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra51242.jpg", + "filename": "fra51242.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra51243.jpg", + "filename": "fra51243.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra51244.jpg", + "filename": "fra51244.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra51245.jpg", + "filename": "fra51245.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra51247.jpg", + "filename": "fra51247.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra51248.jpg", + "filename": "fra51248.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra51249.jpg", + "filename": "fra51249.jpg", + "width": 640, + "height": 480 + }, + { + "src": "/recordings/samples/fra5125001.jpg", + "filename": "fra5125001.jpg", + "width": 640, + "height": 480 + } + ] + } + ], + "related": [ + "/samples.shtml", + "/samples/stx", + "/tools/recording-time" + ] + }, + { + "path": "/demo.shtml", + "title": "Демонстрации работы СВК", + "summary": "Подключение, резервное копирование, просмотр записи и исторический телерепортаж.", + "category": "Записи", + "date": "2014", + "kind": "recovered", + "sourcePaths": [ + "/demo.shtml", + "/moves.htm" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/pages/f8ff5ed4c68f52d7cb12.html", + "docs/rebuild-v2/raw/semrush-moves-apex2017.html" + ], + "sections": [ + { + "heading": "Подключение СВК-007", + "paragraphs": [ + "Демонстрация посвящена подключению СВК-007. Для действий с собственным блоком сверяйте разъёмы, питание и аппаратное исполнение по его паспорту. Видео не заменяет инструкцию конкретной версии." + ], + "links": [ + { + "href": "https://www.youtube.com/watch?v=J3f7ecvpjAc", + "label": "Подключение СВК-007 — ролик СВК-Лаб (YouTube)" + } + ] + }, + { + "heading": "Резервная копия и фотоаппарат Sony", + "paragraphs": [ + "Во втором ролике показана функция резервного копирования с просмотром материала на Sony Alpha 350. Это демонстрация определённого сочетания регистратора и устройства просмотра. Совместимость другого фотоаппарата или картридера проверяется отдельно." + ], + "links": [ + { + "href": "https://www.youtube.com/watch?v=KTfDqoLTFjg", + "label": "Копирование и Sony Alpha 350 — ролик СВК-Лаб (YouTube)" + } + ] + }, + { + "heading": "MicroSD и коммуникатор Glofiish X800", + "paragraphs": [ + "Третий ролик посвящён копированию на MicroSD и просмотру на Glofiish X800. В нём рассматривается старое оборудование своего поколения. Исходные кадры остаются важны и после копирования: просмотр файла не доказывает наличие всей записи нужного интервала." + ], + "links": [ + { + "href": "https://www.youtube.com/watch?v=mlw7qvwLA6Y", + "label": "MicroSD и Glofiish X800 — ролик СВК-Лаб (YouTube)" + } + ] + }, + { + "heading": "Репортаж «Россия 1», 29 марта 2010", + "paragraphs": [ + "На странице видеорепортажей был указан сюжет о видеорегистраторах на канале «Россия 1» от 29 марта 2010 года. Он относится к истории применения таких устройств и не является сравнительным тестом современного рынка." + ], + "links": [ + { + "href": "https://www.youtube.com/watch?v=x2KWCDD1Mrw", + "label": "Репортаж «Россия 1», 29.03.2010 (YouTube)" + } + ] + } + ], + "related": [ + "/system", + "/down.shtml", + "/samples.shtml" + ] + }, + { + "path": "/reviews/svk002-mobile-news", + "title": "СВК-002: тест «Мобильных новостей»", + "category": "Тесты", + "summary": "Денис Кирин, январь 2008: установка, JPEG, кольцевой буфер и ограничения ночной съёмки испытанного СВК-002.", + "date": "2008-01", + "kind": "recovered", + "sourcePaths": [ + "/download/svk-002-mn.pdf" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/svk002-review-retry-0.bin" + ], + "sections": [ + { + "heading": "Журнальный материал, а не инструкция производителя", + "paragraphs": [ + "Текст Дениса Кирина опубликован в журнале «Мобильные новости», январь 2008, страницы 100–102. Автор испытывал СВК-002 с питанием от автомобильной розетки. В конце материала указано, что устройство предоставила компания «СВК Лаб». Наблюдения относятся к этому комплекту и условиям поездок автора." + ], + "links": [ + { + "href": "/download/svk-002-mn.pdf", + "label": "Читать полный журнальный тест, страницы 100–102" + } + ] + }, + { + "heading": "Что отличалось у СВК-002 и СВК-003", + "paragraphs": [ + "Автор описывает СВК-002 как небольшой блок с разъёмом питания, двумя индикаторами и тремя USB-разъёмами. СВК-003 в статье отличается вариантом установки и более надёжными разъёмами для постоянного подключения; это сравнение двух устройств своего времени, а не общее правило для последующих моделей.", + "В испытанном СВК-002 автор считал USB-разъёмы равнозначными. В отдельной инструкции двухкамерной системы 2006 года, напротив, FLASH назначен USB1, а камеры — USB2/USB3. Эти описания нельзя объединить в универсальную схему: ориентируйтесь на маркировку и документацию своей аппаратной версии." + ] + }, + { + "heading": "Покадровая запись и оценка длительности", + "paragraphs": [ + "В статье указаны 5 кадров/с с одной камерой при 640×480 и 2,5 кадра/с с каждой при работе двух камер. На накопитель пишется не готовый фильм, а последовательность JPEG с временем съёмки. По заполнении кольцевого буфера старые кадры заменяются новыми.", + "Для 1 ГБ автор приводит около 60 минут при 640×480 и 320 минут при 352×288; при двух камерах предлагает делить время пополам. Это оценка конкретной конфигурации из теста. Она не устраняет расхождения с другими таблицами СВК и не обещает такую же длительность при другой камере или настройках." + ] + }, + { + "heading": "Размещение камеры и чтение файлов", + "paragraphs": [ + "Камеру в тесте размещали так, чтобы она не закрывала обзор, смотрела через область работы дворников и сохраняла горизонтальную ориентацию. Автор проверял направление по изображению на ноутбуке; впоследствии камера использовала USB-удлинитель. Такие действия выполняют на стоящем автомобиле.", + "В каталоге VIDEO описаны файлы Frxxxx.jpg для одной камеры, Fraxxxx.jpg и Frbxxxx.jpg для двух. Перед извлечением USB FLASH автор отдельно требует выключить питание. Важную запись нужно сохранить до того, как кольцевой буфер заменит её новыми кадрами." + ] + }, + { + "heading": "Чего тест не гарантирует", + "paragraphs": [ + "На приведённых снимках не все номера оказались пригодны для идентификации: автор отмечает блики, засветку фарами, недостаток света и смазанные кадры. Поэтому наличие VGA-камеры и высокая оценка устройства в статье не гарантируют читаемость номера в каждой ночной ситуации.", + "Личные истории автора о разборе дорожных эпизодов не подтверждают универсальную юридическую силу любой записи. Материал полезен как опыт эксплуатации начала 2008 года; его старые цены и рекомендации моделей не являются предложением покупки сегодня." + ] + } + ], + "related": [ + "/auto.shtml", + "/faq.shtml", + "/manuals/two-camera", + "/samples.shtml" + ] + } +] diff --git a/web-front/src/content/v2-community.json b/web-front/src/content/v2-community.json new file mode 100644 index 0000000..da21dc0 --- /dev/null +++ b/web-front/src/content/v2-community.json @@ -0,0 +1,214 @@ +[ + { + "path": "/faq.shtml", + "title": "Вопросы по USB-видеорегистратору СВК", + "category": "Эксплуатация", + "summary": "Совместимость камер, выбор FLASH-накопителя, время записи и проверка старой USB-системы СВК.", + "date": "2007-03-30", + "kind": "recovered", + "sourcePaths": [ + "/faq.shtml" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/faq-www.html", + "docs/rebuild-v2/raw/faq-2011.html" + ], + "sections": [ + { + "heading": "Какие камеры можно подключить", + "paragraphs": [ + "В описанной в FAQ USB-системе СВК использовались веб-камеры с цифровым подключением. Аналоговые низкочастотные камеры в этом варианте не поддерживались: подключение такого видеосигнала не заменяется переходником разъёма.", + "Указание относится к устройству и комплектации этой страницы, а не ко всем регистраторам с названием СВК. При подборе камеры нужны точная модель блока, аппаратная ревизия и список совместимости из её инструкции. Совпадение USB-разъёма само по себе не подтверждает работу камеры." + ] + }, + { + "heading": "Почему для записи выбран FLASH-накопитель", + "paragraphs": [ + "Для сохранения кадров FAQ предусматривает съёмный USB FLASH Stick. Разработчик объяснял выбор для автомобиля воздействием вибраций и температуры на жёсткие диски. Это обоснование тогдашней конструкции, а не доказательство непригодности любого современного накопителя для транспорта.", + "Важна не только ёмкость. Обсуждение запуска СВК-002 показывает, что разные FLASH-накопители с похожими названиями вели себя неодинаково. Покупать накопитель исключительно по объёму, не проверив совместимость и пробную запись, недостаточно." + ] + }, + { + "heading": "Разрешение и длительность записи", + "paragraphs": [ + "В FAQ приведены два примера: камера 640×480 для более подробного кадра и камера 352×288 для более длительного сохранения последовательности событий. Увеличение объёма FLASH при тех же настройках увеличивает доступную длительность, но фактический результат нужно проверить на своей системе.", + "Старый пример базового комплекта содержал FLASH на 128 МБ. Он описывает аппаратное поколение той системы; это не рекомендация по ёмкости для сегодняшних регистраторов и не универсальный минимум." + ], + "table": { + "caption": "Оценка времени записи из FAQ при максимальной скорости; значения приведены в минутах.", + "head": [ + "Ёмкость USB FLASH Stick", + "Камера 640×480, мин", + "Камера 352×288, мин" + ], + "rows": [ + [ + "128 МБ", + "8", + "40" + ], + [ + "256 МБ", + "15", + "80" + ], + [ + "512 МБ", + "30", + "160" + ], + [ + "1 ГБ", + "60", + "320" + ], + [ + "2 ГБ", + "120", + "640" + ] + ] + }, + "note": "FAQ не фиксирует возле таблицы точную модель блока, число одновременно записывающих камер и остальные условия расчёта. В других страницах СВК встречаются иные оценки времени. Поэтому таблицу нельзя переносить на другую модель, две камеры или иной режим как гарантированную характеристику." + }, + { + "heading": "Базовое подключение в автомобиле", + "paragraphs": [ + "Для базового варианта FAQ описывает штатный шнур в автомобильное гнездо прикуривателя, камеры и FLASH-накопитель, подключённые к системному блоку. Это отличается от подключения к зажиганию, сигнализации или постоянному питанию автомобиля.", + "Рекламное обещание установки без специальных знаний не заменяет инструкцию конкретного комплекта. Кабель и корпус не должны мешать водителю, педалям или раскрытию подушек безопасности. Скрытая прокладка и вмешательство в проводку требуют учёта конструкции автомобиля и квалифицированной установки.", + "Если камеру приходится отнести от блока, удлинитель следует проверять в окончательной конфигурации. В сохранившемся обсуждении одна камера работала без удлинителя, но давала ошибки после его добавления; это не основание обещать совместимость любого кабеля." + ] + }, + { + "heading": "Будут ли различимы номера автомобилей", + "paragraphs": [ + "FAQ содержал оценку видимости номеров примерно с 10–15 метров, но не описывал условия испытаний. Считать её гарантированной дистанцией распознавания нельзя: нужны исходные кадры с той же камеры и теми же настройками.", + "Проверяйте не только неподвижную машину днём. Сравните исходные записи в движении, при недостаточном освещении и встречном свете; убедитесь, что грязь и отражения на стекле не закрывают нужную область. Разрешение кадра и рекламное описание не доказывают, что конкретный номер будет читаем." + ] + }, + { + "heading": "Просмотр, время кадра и сохранение нужного фрагмента", + "paragraphs": [ + "Описанная система сохраняла кадры с привязкой ко времени на съёмном накопителе. FAQ предусматривал просмотр на компьютере с USB и Windows, а также печать отдельных цветных кадров. Перед использованием старого программного обеспечения нужно сверить его с моделью блока и собственной инструкцией.", + "Проверьте дату и время устройства по реальной записи. Важный фрагмент скопируйте вместе с соседними кадрами на другой носитель и откройте копию для проверки. Возможность распечатать изображение не сохраняет автоматически всю последовательность события. Перед извлечением FLASH завершите работу способом из инструкции конкретной модели." + ] + } + ], + "related": [ + "/auto.shtml", + "/support.shtml", + "/community/flash-start", + "/community/usb-extension" + ] + }, + { + "path": "/community/flash-start", + "title": "СВК-002 не запускается с FLASH-накопителем", + "category": "Разборы неисправностей", + "summary": "Случай 2007 года: мигание индикатора, отсутствие папки Video, различия накопителей и порядок подготовки из ответа поддержки.", + "date": "2007-04-20", + "kind": "recovered", + "sourcePaths": [ + "/forum/viewtopic.php?t=184", + "/forum/viewtopic.php?t=183&view=next" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/pages/aba7002585913a2e.html" + ], + "sections": [ + { + "heading": "Что наблюдал владелец", + "paragraphs": [ + "20 апреля 2007 года владелец СВК-002 сообщил, что после обновления программного обеспечения прибор не выходит в рабочий режим и не создаёт папку Video. Красный светодиод сначала мигал примерно раз в четыре секунды, а спустя несколько минут — раз в десять секунд.", + "В сообщении названы накопители JetFlash 168 и JetFlash V60, рекомендованные камеры и попытки сначала записать USB.BIN, затем конфигурацию. Это описание конкретного случая. По одним интервалам мигания нельзя определить причину неисправности другого прибора или считать их универсальной таблицей кодов ошибок." + ] + }, + { + "heading": "Результат повторной проверки", + "paragraphs": [ + "На следующий день тот же участник сообщил об успешной работе Transcend JF 168 объёмом 1 и 2 ГБ. По его наблюдению, с двумя камерами накопитель на 1 ГБ позволял выйти в рабочий режим примерно через 20 секунд, а на 2 ГБ — через 30 секунд.", + "В ответе поддержки от 22 апреля время старта связывалось с форматированием, типом и объёмом накопителя, а также числом камер. Для названной серии V60 предлагалось после подготовки ждать до пяти минут. Это исторические наблюдения одной конфигурации, а не испытание всех экземпляров этих серий и не норматив времени запуска." + ] + }, + { + "heading": "Как в ответе поддержки предлагали подготовить накопитель", + "paragraphs": [ + "Процедура ниже передаёт порядок из ответа для СВК-002 того времени. Перед её применением нужны инструкция своей ревизии и подлинный совместимый файл USB.BIN. В сообщении не указан требуемый тип файловой системы, поэтому выбирать его наугад по этому тексту нельзя." + ], + "note": "Форматирование удаляет данные. Сначала сохраните все нужные записи и убедитесь, что выбран именно съёмный накопитель, а не другой диск компьютера. Если совместимость прошивки или порядок подготовки неизвестны, не продолжайте форматирование и запись файла по догадке.", + "list": [ + "Подключить FLASH к компьютеру и проверить, как он определяется. Скопировать нужные данные в отдельное место и открыть копию для проверки.", + "В старой Windows в ответе использовался путь «Панель управления → Администрирование → Управление дисками». Названия пунктов относятся к тому интерфейсу, а не ко всем версиям Windows.", + "Выбрать свой FLASH по признакам устройства и объёму. Подготовить его способом и с файловой системой, которые прямо предусмотрены инструкцией конкретного СВК.", + "Записать совместимый USB.BIN и создать конфигурацию устройства. Не заменять файл случайно найденной прошивкой от другой модели.", + "Выполнить безопасное извлечение накопителя из компьютера и установить его в выключенный прибор.", + "Включить прибор в штатной комплектации и дождаться инициализации. Для обсуждавшейся V60 поддержка предлагала ожидание до пяти минут.", + "После штатного завершения работы проверить, появился ли каталог Video и открываются ли сохранённые кадры. Одна смена индикации ещё не подтверждает успешную запись." + ] + }, + { + "heading": "Что этот случай позволяет проверить", + "paragraphs": [ + "Сначала имеет смысл отделить совместимость накопителя от остальных изменений: записать точную модель FLASH, ёмкость, число камер, версию конфигурации и наблюдаемое время запуска. При сравнении меняйте по одному компоненту, сохраняя исходные данные.", + "Ветка не содержит полного списка поддерживаемых накопителей и не доказывает, что вся серия V60 неисправна. Если та же конфигурация не начинает запись после подготовки по своей инструкции, эти наблюдения полезнее передать специалисту, чем многократно форматировать накопитель без проверки причины." + ] + } + ], + "related": [ + "/faq.shtml", + "/support.shtml", + "/down.shtml", + "/community/usb-extension" + ] + }, + { + "path": "/community/usb-extension", + "title": "Ошибки камеры после подключения USB-удлинителя", + "category": "Разборы неисправностей", + "summary": "Что известно из обсуждения СВК 2007 года о камере, кабеле 1,8 м и отличии наблюдений от подтверждённого диагноза.", + "date": "2007-04-30", + "kind": "recovered", + "sourcePaths": [ + "/forum/viewtopic.php?t=188", + "/forum/viewtopic.php?t=8&view=next" + ], + "rawFiles": [ + "docs/rebuild-v2/raw/pages/24f9cbda81212d46.html" + ], + "sections": [ + { + "heading": "Как проявлялась ошибка", + "paragraphs": [ + "30 апреля 2007 года участник описал заднюю камеру Creative Live! Cam Notebook Pro в своей системе СВК. Без удлинителя она работала нормально. С USB-удлинителем длиной 1,8 м запись становилась нестабильной: по наблюдению владельца, работа зависела от освещения и температуры, а вечером почти все кадры были с ошибкой.", + "С двумя удлинителями камера, по тому же сообщению, не работала вообще. Автор спрашивал, связана ли неисправность с камерой или проводами. Ветка не содержит измерений питания или качества сигнала, поэтому выбирать одну из этих причин как доказанную нельзя." + ] + }, + { + "heading": "Что ответила поддержка", + "paragraphs": [ + "1 мая представитель поддержки сообщил о нестабильной работе ограниченной партии Creative Live! for Notebooks Pro, в том числе с удлинителем. В ответе отдельно отличалась более ранняя Creative for Notebooks: схожий корпус не означал ту же аппаратную версию.", + "В качестве замены тогда предлагалась Logitech for Notebook Deluxe с подходящим креплением. Это рекомендация для обсуждавшейся комплектации 2007 года, а не современный выбор камеры и не вывод о качестве всех устройств одной марки. Различия ревизий и совместимость со СВК нужно проверять по конкретному комплекту." + ] + }, + { + "heading": "Как отделить проблему удлинителя от других изменений", + "paragraphs": [ + "Из этого случая следует полезная последовательность сравнения: сначала получить рабочую запись без удлинителя, затем добавить один конкретный кабель и повторить проверку при тех же настройках. Не меняйте одновременно камеру, накопитель, питание и конфигурацию — иначе результат не покажет, с каким изменением появились ошибки." + ], + "list": [ + "Зафиксировать точные названия и аппаратные версии камеры и регистратора, модель накопителя и вариант штатного питания.", + "Сохранить короткую контрольную запись без удлинителя и проверить сами кадры на компьютере.", + "Повторить запись с одним удлинителем. Сравнить не только запуск камеры, но и повреждённые или пропущенные кадры.", + "Если ошибки связаны с удлинением, вернуть заведомо рабочую схему и сверить допустимые кабели и камеры с инструкцией устройства.", + "Передать специалисту исходные файлы и описание различий. Не менять сечение проводов и питание камеры по предположению из форумного вопроса." + ], + "note": "Длина 1,8 м здесь — характеристика кабеля из одного сообщения, а не установленный предельный размер для USB или всех камер СВК. Ветка также не доказывает, что освещение или температура были непосредственной электрической причиной ошибок." + } + ], + "related": [ + "/community/flash-start", + "/faq.shtml", + "/support.shtml" + ] + } +] diff --git a/web-front/src/content/v2-link-approvals.json b/web-front/src/content/v2-link-approvals.json new file mode 100644 index 0000000..1dbcc1e --- /dev/null +++ b/web-front/src/content/v2-link-approvals.json @@ -0,0 +1,87 @@ +[ + { + "sourcePage": "/demo.shtml", + "destination": "https://www.youtube.com/watch?v=J3f7ecvpjAc", + "anchor": "Подключение СВК-007 — ролик СВК-Лаб (YouTube)", + "purpose": "Original demo page caption: connecting SVK007; exact original videoID retained", + "decision": "keep", + "reviewed": true, + "verification": { + "method": "OfficialYouTubeoEmbedJSON200 + exactIDinoriginalarchivedsource", + "metadataFile": "docs/rebuild-v2/raw/youtube-connect-oembed.json", + "originalSourceFile": "docs/rebuild-v2/raw/pages/f8ff5ed4c68f52d7cb12.html", + "title": "VD_SVK-007.wmv", + "author": "Svklab2008", + "playbackWatched": false + }, + "reason": "Specific original technical demonstration, not a paid insertion; direct link only, no remote player/script/pixel loaded by this site." + }, + { + "sourcePage": "/demo.shtml", + "destination": "https://www.youtube.com/watch?v=KTfDqoLTFjg", + "anchor": "Копирование и Sony Alpha 350 — ролик СВК-Лаб (YouTube)", + "purpose": "Original caption contains damagedSony&350; official matchingtitleBackup_SONYALFA350 corroborates correction", + "decision": "keep", + "reviewed": true, + "verification": { + "method": "OfficialYouTubeoEmbedJSON200 + exactIDinoriginalarchivedsource", + "metadataFile": "docs/rebuild-v2/raw/youtube-backup-oembed.json", + "originalSourceFile": "docs/rebuild-v2/raw/pages/f8ff5ed4c68f52d7cb12.html", + "title": "Backup_SONYALFA350", + "author": "Svklab2008", + "playbackWatched": false + }, + "reason": "Specific original technical demonstration, not a paid insertion; direct link only, no remote player/script/pixel loaded by this site." + }, + { + "sourcePage": "/demo.shtml", + "destination": "https://www.youtube.com/watch?v=mlw7qvwLA6Y", + "anchor": "MicroSD и Glofiish X800 — ролик СВК-Лаб (YouTube)", + "purpose": "Original demo page caption: backup toMicroSD and playback on GlofiishX800", + "decision": "keep", + "reviewed": true, + "verification": { + "method": "OfficialYouTubeoEmbedJSON200 + exactIDinoriginalarchivedsource", + "metadataFile": "docs/rebuild-v2/raw/youtube-mobile-oembed.json", + "originalSourceFile": "docs/rebuild-v2/raw/pages/f8ff5ed4c68f52d7cb12.html", + "title": "SVK-007_BACKUP_X800", + "author": "Svklab2008", + "playbackWatched": false + }, + "reason": "Specific original technical demonstration, not a paid insertion; direct link only, no remote player/script/pixel loaded by this site." + }, + { + "sourcePage": "/demo.shtml", + "destination": "https://www.youtube.com/watch?v=x2KWCDD1Mrw", + "anchor": "Репортаж «Россия 1», 29.03.2010 (YouTube)", + "purpose": "Full recovered moves.htm identifies thisTVreport,date and exactvideoID", + "decision": "keep", + "reviewed": true, + "verification": { + "method": "OfficialYouTubeoEmbedJSON200 + exactIDinoriginalarchivedsource", + "metadataFile": "docs/rebuild-v2/raw/youtube-tv-oembed.json", + "originalSourceFile": "docs/rebuild-v2/raw/semrush-moves-apex2017.html", + "title": "SVK RTR 1", + "author": "Svklab2008", + "playbackWatched": false + }, + "reason": "Specific original technical demonstration, not a paid insertion; direct link only, no remote player/script/pixel loaded by this site." + }, + { + "sourcePage": "/samples.shtml", + "destination": "https://www.youtube.com/watch?v=3RssFVRTOJ0", + "anchor": "Видеопример СВК-007 в VideoRegShow (YouTube)", + "purpose": "Original linked sample-host namesVideoRegShow export and this exact YouTubeID", + "decision": "keep", + "reviewed": true, + "verification": { + "method": "OfficialYouTubeoEmbedJSON200 + exactIDinoriginalarchivedsource", + "metadataFile": "docs/rebuild-v2/raw/youtube-vrss-oembed.json", + "originalSourceFile": "docs/rebuild-v2/raw/narod-samples-live.html", + "title": "CBK-007_sample_01", + "author": "Svklab2008", + "playbackWatched": false + }, + "reason": "Specific original technical demonstration, not a paid insertion; direct link only, no remote player/script/pixel loaded by this site." + } +]