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

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

@@ -0,0 +1 @@
async(page)=>{const base='http://127.0.0.1:54623/',out='/tmp/progcode-concept-v3-r2/',r=[];await page.goto(base+'?revision=creative2');for(const theme of ['light','dark']){await page.locator('#theme').selectOption(theme);for(const width of [1440,390,320]){await page.setViewportSize({width,height:1000});for(const view of ['home','catalog','article','kit','privacy','sources','accessibility','missing']){await page.goto(base+'#'+view);await page.waitForTimeout(50);await page.evaluate(()=>scrollTo(0,0));await page.locator('main section:not([hidden]) img').evaluateAll(async imgs=>Promise.all(imgs.map(async i=>{i.loading='eager';try{await Promise.race([i.decode(),new Promise((_,r)=>setTimeout(r,2000))])}catch{}})));r.push({theme,width,view,scrollWidth:await page.evaluate(()=>document.documentElement.scrollWidth)});await page.screenshot({path:out+view+'-'+width+'-'+theme+'.png'});}}}await page.setViewportSize({width:1440,height:1000});await page.goto(base+'#kit');await page.getByRole('heading',{name:'Два маршрута знака / реальные 16, 32, 48 px'}).scrollIntoViewIfNeeded();await page.screenshot({path:out+'native-variants.png'});await page.goto(base+'#article');await page.locator('#body h2').nth(1).scrollIntoViewIfNeeded();await page.screenshot({path:out+'gc-middle-dark.png'});await page.locator('#body').evaluate(el=>scrollTo(0,el.getBoundingClientRect().bottom+scrollY-innerHeight));await page.screenshot({path:out+'gc-end-dark.png'});await page.goto(base+'#catalog');await page.locator('#query').fill('Bitrix');r.push({searchBitrix:await page.locator('#results>.entry:visible').count()});await page.locator('#query').fill('Rust');r.push({searchZero:await page.locator('#results>.entry:visible').count()});await page.locator('#reset').click();r.push({reset:await page.locator('#results>.entry:visible').count()});await page.locator('[data-topic="Windows"]').click();r.push({windows:await page.locator('#results>.entry:visible').count()});await page.goto(base+'#kit');await page.locator('#json').fill('{bad}');await page.locator('#format').click();r.push({error:await page.locator('#jsonstate').innerText()});await page.screenshot({path:out+'json-error-dark.png'});await page.locator('#json').fill('{"language":"D"}');await page.locator('#format').click();r.push({valid:await page.locator('#jsonstate').innerText()});await page.locator('#json').fill('');r.push({emptyDisabled:await page.locator('#format').isDisabled()});await page.locator('#json').fill('{"language":"D"}');try{const c=await page.context().newCDPSession(page);await c.send('Browser.setPermission',{permission:{name:'clipboard-write'},setting:'denied',origin:base});await page.locator('#copy').click();r.push({copyActualPermissionDenied:await page.locator('#jsonstate').innerText()});await page.screenshot({path:out+'copy-denied-dark.png'});}catch(e){r.push({copyPermissionControlError:String(e)})}await page.locator('#theme').selectOption('dark');await page.reload();r.push({themeReload:{value:await page.locator('#theme').inputValue(),resolved:await page.locator('html').getAttribute('data-theme')}});await page.locator('#theme').selectOption('system');await page.emulateMedia({colorScheme:'light'});await page.waitForTimeout(120);r.push({systemLight:await page.locator('html').getAttribute('data-theme')});await page.emulateMedia({colorScheme:'dark'});await page.waitForTimeout(120);r.push({systemDark:await page.locator('html').getAttribute('data-theme')});return r;}
Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

@@ -0,0 +1,10 @@
### Result
{"browserContextId":"907B3DE4ED001D50AD0418D496CC12B0","status":"Браузер не разрешил копирование. Выделите текст и скопируйте вручную."}
### Ran Playwright code
```js
await (async(page)=>{await page.goto('http://127.0.0.1:54623/?revision=copyfinal#kit');const c=await page.context().newCDPSession(page);const info=await c.send('Target.getTargetInfo');const id=info.targetInfo.browserContextId;await c.send('Browser.setPermission',{permission:{name:'clipboard-write'},setting:'denied',origin:'http://127.0.0.1:54623',browserContextId:id});await page.locator('#copy').click();await page.waitForFunction(()=>document.querySelector('#jsonstate').innerText.includes('Браузер не разрешил'),{timeout:3000});await page.screenshot({path:'/tmp/progcode-concept-v3-r2/copy-denied-real.png'});return {browserContextId:id,status:await page.locator('#jsonstate').innerText()};}
)(page);
```
### Page
- Page URL: http://127.0.0.1:54623/?revision=copyfinal#kit
- Page Title: ProgCode — от вызова к механизму / концепция V3
@@ -0,0 +1 @@
async(page)=>{await page.goto('http://127.0.0.1:54623/?revision=copyfinal#kit');const c=await page.context().newCDPSession(page);const info=await c.send('Target.getTargetInfo');const id=info.targetInfo.browserContextId;await c.send('Browser.setPermission',{permission:{name:'clipboard-write'},setting:'denied',origin:'http://127.0.0.1:54623',browserContextId:id});await page.locator('#copy').click();await page.waitForFunction(()=>document.querySelector('#jsonstate').innerText.includes('Браузер не разрешил'),{timeout:3000});await page.screenshot({path:'/tmp/progcode-concept-v3-r2/copy-denied-real.png'});return {browserContextId:id,status:await page.locator('#jsonstate').innerText()};}
Binary file not shown.

After

Width:  |  Height:  |  Size: 220 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

@@ -0,0 +1 @@
dbd9c736320ac6247df662b2b9200cfec0a3dcf45e798be26e46ca6a7df918e3
Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

@@ -0,0 +1,10 @@
### Result
[{"theme":"light","width":1440,"view":"home","scrollWidth":1440},{"theme":"light","width":1440,"view":"catalog","scrollWidth":1440},{"theme":"light","width":1440,"view":"article","scrollWidth":1440},{"theme":"light","width":1440,"view":"kit","scrollWidth":1440},{"theme":"light","width":1440,"view":"privacy","scrollWidth":1440},{"theme":"light","width":1440,"view":"sources","scrollWidth":1440},{"theme":"light","width":1440,"view":"accessibility","scrollWidth":1440},{"theme":"light","width":1440,"view":"missing","scrollWidth":1440},{"theme":"light","width":390,"view":"home","scrollWidth":390},{"theme":"light","width":390,"view":"catalog","scrollWidth":390},{"theme":"light","width":390,"view":"article","scrollWidth":390},{"theme":"light","width":390,"view":"kit","scrollWidth":390},{"theme":"light","width":390,"view":"privacy","scrollWidth":390},{"theme":"light","width":390,"view":"sources","scrollWidth":390},{"theme":"light","width":390,"view":"accessibility","scrollWidth":390},{"theme":"light","width":390,"view":"missing","scrollWidth":390},{"theme":"light","width":320,"view":"home","scrollWidth":320},{"theme":"light","width":320,"view":"catalog","scrollWidth":320},{"theme":"light","width":320,"view":"article","scrollWidth":320},{"theme":"light","width":320,"view":"kit","scrollWidth":320},{"theme":"light","width":320,"view":"privacy","scrollWidth":320},{"theme":"light","width":320,"view":"sources","scrollWidth":320},{"theme":"light","width":320,"view":"accessibility","scrollWidth":320},{"theme":"light","width":320,"view":"missing","scrollWidth":320},{"theme":"dark","width":1440,"view":"home","scrollWidth":1440},{"theme":"dark","width":1440,"view":"catalog","scrollWidth":1440},{"theme":"dark","width":1440,"view":"article","scrollWidth":1440},{"theme":"dark","width":1440,"view":"kit","scrollWidth":1440},{"theme":"dark","width":1440,"view":"privacy","scrollWidth":1440},{"theme":"dark","width":1440,"view":"sources","scrollWidth":1440},{"theme":"dark","width":1440,"view":"accessibility","scrollWidth":1440},{"theme":"dark","width":1440,"view":"missing","scrollWidth":1440},{"theme":"dark","width":390,"view":"home","scrollWidth":390},{"theme":"dark","width":390,"view":"catalog","scrollWidth":390},{"theme":"dark","width":390,"view":"article","scrollWidth":390},{"theme":"dark","width":390,"view":"kit","scrollWidth":390},{"theme":"dark","width":390,"view":"privacy","scrollWidth":390},{"theme":"dark","width":390,"view":"sources","scrollWidth":390},{"theme":"dark","width":390,"view":"accessibility","scrollWidth":390},{"theme":"dark","width":390,"view":"missing","scrollWidth":390},{"theme":"dark","width":320,"view":"home","scrollWidth":320},{"theme":"dark","width":320,"view":"catalog","scrollWidth":320},{"theme":"dark","width":320,"view":"article","scrollWidth":320},{"theme":"dark","width":320,"view":"kit","scrollWidth":320},{"theme":"dark","width":320,"view":"privacy","scrollWidth":320},{"theme":"dark","width":320,"view":"sources","scrollWidth":320},{"theme":"dark","width":320,"view":"accessibility","scrollWidth":320},{"theme":"dark","width":320,"view":"missing","scrollWidth":320},{"searchBitrix":3},{"searchZero":0},{"reset":14},{"windows":2},{"error":"Не удалось разобрать JSON: Expected property name or '}' in JSON at position 1 (line 1 column 2)"},{"valid":"JSON корректен. Отформатировано."},{"emptyDisabled":true},{"copyActualPermissionDenied":"JSON корректен. Отформатировано."},{"themeReload":{"value":"dark","resolved":"dark"}},{"systemLight":"light"},{"systemDark":"dark"}]
### Ran Playwright code
```js
await (async(page)=>{const base='http://127.0.0.1:54623/',out='/tmp/progcode-concept-v3-r2/',r=[];await page.goto(base+'?revision=creative2');for(const theme of ['light','dark']){await page.locator('#theme').selectOption(theme);for(const width of [1440,390,320]){await page.setViewportSize({width,height:1000});for(const view of ['home','catalog','article','kit','privacy','sources','accessibility','missing']){await page.goto(base+'#'+view);await page.waitForTimeout(50);await page.evaluate(()=>scrollTo(0,0));await page.locator('main section:not([hidden]) img').evaluateAll(async imgs=>Promise.all(imgs.map(async i=>{i.loading='eager';try{await Promise.race([i.decode(),new Promise((_,r)=>setTimeout(r,2000))])}catch{}})));r.push({theme,width,view,scrollWidth:await page.evaluate(()=>document.documentElement.scrollWidth)});await page.screenshot({path:out+view+'-'+width+'-'+theme+'.png'});}}}await page.setViewportSize({width:1440,height:1000});await page.goto(base+'#kit');await page.getByRole('heading',{name:'Два маршрута знака / реальные 16, 32, 48 px'}).scrollIntoViewIfNeeded();await page.screenshot({path:out+'native-variants.png'});await page.goto(base+'#article');await page.locator('#body h2').nth(1).scrollIntoViewIfNeeded();await page.screenshot({path:out+'gc-middle-dark.png'});await page.locator('#body').evaluate(el=>scrollTo(0,el.getBoundingClientRect().bottom+scrollY-innerHeight));await page.screenshot({path:out+'gc-end-dark.png'});await page.goto(base+'#catalog');await page.locator('#query').fill('Bitrix');r.push({searchBitrix:await page.locator('#results>.entry:visible').count()});await page.locator('#query').fill('Rust');r.push({searchZero:await page.locator('#results>.entry:visible').count()});await page.locator('#reset').click();r.push({reset:await page.locator('#results>.entry:visible').count()});await page.locator('[data-topic="Windows"]').click();r.push({windows:await page.locator('#results>.entry:visible').count()});await page.goto(base+'#kit');await page.locator('#json').fill('{bad}');await page.locator('#format').click();r.push({error:await page.locator('#jsonstate').innerText()});await page.screenshot({path:out+'json-error-dark.png'});await page.locator('#json').fill('{"language":"D"}');await page.locator('#format').click();r.push({valid:await page.locator('#jsonstate').innerText()});await page.locator('#json').fill('');r.push({emptyDisabled:await page.locator('#format').isDisabled()});await page.locator('#json').fill('{"language":"D"}');try{const c=await page.context().newCDPSession(page);await c.send('Browser.setPermission',{permission:{name:'clipboard-write'},setting:'denied',origin:base});await page.locator('#copy').click();r.push({copyActualPermissionDenied:await page.locator('#jsonstate').innerText()});await page.screenshot({path:out+'copy-denied-dark.png'});}catch(e){r.push({copyPermissionControlError:String(e)})}await page.locator('#theme').selectOption('dark');await page.reload();r.push({themeReload:{value:await page.locator('#theme').inputValue(),resolved:await page.locator('html').getAttribute('data-theme')}});await page.locator('#theme').selectOption('system');await page.emulateMedia({colorScheme:'light'});await page.waitForTimeout(120);r.push({systemLight:await page.locator('html').getAttribute('data-theme')});await page.emulateMedia({colorScheme:'dark'});await page.waitForTimeout(120);r.push({systemDark:await page.locator('html').getAttribute('data-theme')});return r;}
)(page);
```
### Page
- Page URL: http://127.0.0.1:54623/#kit
- Page Title: ProgCode — от вызова к механизму / концепция V3
Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB