Implement ProgCode identity and real shared reading UI kit
Build and deploy / deploy (push) Successful in 2m39s

This commit is contained in:
huncode committed 2026-10-27 15:19:49 +03:00
1 parent 99c848189e
commit 12562baeb5
2040 files changed
+184656 -181

No files matched your search

@@ -0,0 +1,3 @@
# Quarantine — not review proof
The intermediate hash-navigation pass retained the previously selected Tilix article. In particular final-GC-end-* / final-GC-middle-* names do not reliably name the displayed article. Other final-* files from this pass are also excluded from latest-pin proof. They are preserved only to explain the rejected harness output. Do not cite these files as GC or a7fd evidence. Correct fresh full-navigation evidence is in ../a7fd-reviewed/.
Binary file not shown.

After

Width:  |  Height:  |  Size: 219 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

@@ -0,0 +1 @@
{"cases":[{"v":"home","w":1440,"d":false,"doc":1440,"leadTop":771.765625},{"v":"home","w":390,"d":true,"doc":390,"leadTop":1049.15625},{"v":"catalog","w":320,"d":true,"doc":320},{"v":"article","w":1440,"d":false,"doc":1440,"author":"Автор: DarkRiDDeR · Историческая публикация","lines":[[72,70,68,75,75,71,60,32],[70,68,73,65,69,33],[77,71,65,60,76,77,72,73],[76,72,66,67,49]]},{"v":"article","w":390,"d":true,"doc":390,"author":"Автор: DarkRiDDeR · Историческая публикация"},{"v":"kit","w":390,"d":true,"doc":390,"links":[{"text":"Показать все 14 материалов →"},{"text":"Короткая статья: «Привет, мой читатель!»","open":"13"}]}],"errors":[]}
@@ -0,0 +1 @@
async(page)=>{let o={cases:[],errors:[]};page.on('pageerror',e=>o.errors.push(String(e)));for(const [v,w,d]of[['home',1440,false],['home',390,true],['catalog',320,true],['article',1440,false],['article',390,true],['kit',390,true]]){await page.setViewportSize({width:w,height:1000});await page.goto('http://127.0.0.1:54623/#'+v);if(await page.locator('body').evaluate(e=>e.classList.contains('dark'))!==d)await page.locator('#theme').click();await page.evaluate(()=>scrollTo({top:0,behavior:'instant'}));await page.screenshot({path:'/tmp/progcode-content-v3-readings/final-'+v+'-'+w+'.png'});let c={v,w,d,doc:await page.evaluate(()=>document.documentElement.scrollWidth)};if(v==='home')c.leadTop=await page.locator('.lead h2').evaluate(e=>e.getBoundingClientRect().top);if(v==='article'){c.author=await page.locator('#author').innerText();if(w===1440){c.lines=await page.evaluate(()=>[...document.querySelectorAll('#body p')].filter(p=>p.textContent.length>300).slice(0,4).map(p=>{const lines=new Map(),walker=document.createTreeWalker(p,NodeFilter.SHOW_TEXT);let n;while(n=walker.nextNode()){for(let i=0;i<n.length;i++){let r=document.createRange();r.setStart(n,i);r.setEnd(n,i+1);let y=Math.round(r.getBoundingClientRect().top);lines.set(y,(lines.get(y)||'')+n.textContent[i]);}}let sizes=[...lines.values()].map(x=>x.trim().length);return sizes;}));await page.locator('#body h2').nth(1).scrollIntoViewIfNeeded();await page.screenshot({path:'/tmp/progcode-content-v3-readings/final-GC-middle-1440.png'});}await page.locator('#body').evaluate(e=>scrollTo({top:e.getBoundingClientRect().bottom+scrollY-850,behavior:'instant'}));await page.screenshot({path:'/tmp/progcode-content-v3-readings/final-GC-end-'+w+'.png'});}if(v==='kit'){c.links=await page.locator('#kit a').evaluateAll(es=>es.map(e=>({text:e.innerText,open:e.dataset.open})));const det=page.locator('#kit details');if(await det.count()){await det.locator('summary').click();await det.scrollIntoViewIfNeeded();await page.screenshot({path:'/tmp/progcode-content-v3-readings/final-kit-Dmodule-390.png'});c.module=await det.locator('pre').evaluate(e=>({chars:e.textContent.length,lines:e.textContent.split('\n').length}));}const f=page.locator('#kit figure').last();await f.scrollIntoViewIfNeeded();await f.locator('img').evaluate(i=>i.decode());await f.screenshot({path:'/tmp/progcode-content-v3-readings/final-kit-Bitrix-390.png'});}o.cases.push(c);}return o;}
Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB