Implement ProgCode identity and real shared reading UI kit
Build and deploy / deploy (push) Successful in 2m39s
No files matched your search
|
After Width: | Height: | Size: 155 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 89 KiB |
|
After Width: | Height: | Size: 222 KiB |
|
After Width: | Height: | Size: 155 KiB |
|
After Width: | Height: | Size: 208 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 130 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 73 KiB |
@@ -0,0 +1 @@
|
||||
async(page)=>{const r=[];await page.goto('http://127.0.0.1:54623/?designer=final5');await page.locator('#theme').selectOption('light');for(const width of [1440,390,320]){await page.setViewportSize({width,height:1000});for(const view of ['home','catalog','article','kit']){await page.goto('http://127.0.0.1:54623/#'+view);await page.evaluate(()=>document.fonts.ready);await page.waitForTimeout(80);await page.evaluate(()=>window.scrollTo(0,0));r.push({width,view,doc:await page.evaluate(()=>document.documentElement.scrollWidth),images:await page.locator('main section:not([hidden]) img').evaluateAll(async imgs=>Promise.all(imgs.map(async i=>{try{i.loading='eager';await Promise.race([i.decode(),new Promise((_,r)=>setTimeout(()=>r('timeout'),3000))]);return true}catch{return false}})))});await page.screenshot({path:'/tmp/progcode-concept-v3/'+view+'-'+width+'.png'});}}await page.setViewportSize({width:1440,height:1000});await page.goto('http://127.0.0.1:54623/#catalog');await page.locator('#query').fill('Bitrix');r.push({search:'Bitrix',count:await page.locator('#results>.entry:visible').count()});await page.screenshot({path:'/tmp/progcode-concept-v3/search-bitrix.png'});await page.locator('#query').fill('Rust');r.push({search:'Rust',count:await page.locator('#results>.entry:visible').count()});await page.screenshot({path:'/tmp/progcode-concept-v3/search-empty.png'});await page.locator('#reset').click();r.push({reset:await page.locator('#results>.entry:visible').count()});await page.goto('http://127.0.0.1:54623/#kit');await page.locator('#json').fill('{bad}');await page.locator('#format').click();r.push({jsonError:await page.locator('#jsonstate').innerText()});await page.locator('#theme').selectOption('dark');await page.screenshot({path:'/tmp/progcode-concept-v3/kit-dark-error.png'});await page.goto('http://127.0.0.1:54623/#article');await page.locator('#body figure').first().scrollIntoViewIfNeeded();await page.screenshot({path:'/tmp/progcode-concept-v3/gc-dark-middle.png'});return r;}
|
||||
@@ -0,0 +1,10 @@
|
||||
### Result
|
||||
{"articlePlain":13239,"figures":2}
|
||||
### Ran Playwright code
|
||||
```js
|
||||
await (async(page)=>{await page.goto('http://127.0.0.1:54623/?designer=detail5#article');await page.locator('#theme').selectOption('light');await page.setViewportSize({width:1440,height:1000});await page.waitForTimeout(100);await page.evaluate(()=>window.scrollTo(0,0));await page.screenshot({path:'/tmp/progcode-concept-v3/article-header-light.png'});await page.locator('#body h2').nth(1).scrollIntoViewIfNeeded();await page.screenshot({path:'/tmp/progcode-concept-v3/article-middle-light.png'});await page.locator('#body').evaluate(el=>window.scrollTo(0,el.getBoundingClientRect().bottom+scrollY-innerHeight));await page.screenshot({path:'/tmp/progcode-concept-v3/article-end-light.png'});await page.goto('http://127.0.0.1:54623/#kit');await page.locator('.spec').filter({has:page.getByRole('heading',{name:'Таблица / CTFE / 26.05.2017'})}).scrollIntoViewIfNeeded();await page.screenshot({path:'/tmp/progcode-concept-v3/kit-table-code-light.png'});await page.getByText('Открыть полный исходник и unittest',{exact:true}).click();await page.getByRole('heading',{name:'Полный D-модуль / 17.06.2017'}).scrollIntoViewIfNeeded();await page.screenshot({path:'/tmp/progcode-concept-v3/kit-d-bitrix-light.png'});return {articlePlain:await page.locator('#body').innerText().then(s=>s.length),figures:await page.locator('#body figure').count()};}
|
||||
)(page);
|
||||
```
|
||||
### Page
|
||||
- Page URL: http://127.0.0.1:54623/#kit
|
||||
- Page Title: ProgCode — от вызова к механизму / концепция V3
|
||||
@@ -0,0 +1 @@
|
||||
async(page)=>{await page.goto('http://127.0.0.1:54623/?designer=detail5#article');await page.locator('#theme').selectOption('light');await page.setViewportSize({width:1440,height:1000});await page.waitForTimeout(100);await page.evaluate(()=>window.scrollTo(0,0));await page.screenshot({path:'/tmp/progcode-concept-v3/article-header-light.png'});await page.locator('#body h2').nth(1).scrollIntoViewIfNeeded();await page.screenshot({path:'/tmp/progcode-concept-v3/article-middle-light.png'});await page.locator('#body').evaluate(el=>window.scrollTo(0,el.getBoundingClientRect().bottom+scrollY-innerHeight));await page.screenshot({path:'/tmp/progcode-concept-v3/article-end-light.png'});await page.goto('http://127.0.0.1:54623/#kit');await page.locator('.spec').filter({has:page.getByRole('heading',{name:'Таблица / CTFE / 26.05.2017'})}).scrollIntoViewIfNeeded();await page.screenshot({path:'/tmp/progcode-concept-v3/kit-table-code-light.png'});await page.getByText('Открыть полный исходник и unittest',{exact:true}).click();await page.getByRole('heading',{name:'Полный D-модуль / 17.06.2017'}).scrollIntoViewIfNeeded();await page.screenshot({path:'/tmp/progcode-concept-v3/kit-d-bitrix-light.png'});return {articlePlain:await page.locator('#body').innerText().then(s=>s.length),figures:await page.locator('#body figure').count()};}
|
||||
|
After Width: | Height: | Size: 104 KiB |
|
After Width: | Height: | Size: 123 KiB |
|
After Width: | Height: | Size: 63 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 63 KiB |
|
After Width: | Height: | Size: 115 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 189 KiB |
|
After Width: | Height: | Size: 124 KiB |
|
After Width: | Height: | Size: 150 KiB |
@@ -0,0 +1,10 @@
|
||||
### Result
|
||||
[{"width":1440,"view":"home","doc":1440,"images":[]},{"width":1440,"view":"catalog","doc":1440,"images":[]},{"width":1440,"view":"article","doc":1440,"images":[true,true]},{"width":1440,"view":"kit","doc":1440,"images":[true,true]},{"width":390,"view":"home","doc":390,"images":[]},{"width":390,"view":"catalog","doc":390,"images":[]},{"width":390,"view":"article","doc":390,"images":[true,true]},{"width":390,"view":"kit","doc":390,"images":[true,true]},{"width":320,"view":"home","doc":320,"images":[]},{"width":320,"view":"catalog","doc":320,"images":[]},{"width":320,"view":"article","doc":320,"images":[true,true]},{"width":320,"view":"kit","doc":320,"images":[true,true]},{"search":"Bitrix","count":3},{"search":"Rust","count":0},{"reset":14},{"jsonError":"Не удалось разобрать JSON: Expected property name or '}' in JSON at position 1 (line 1 column 2)"}]
|
||||
### Ran Playwright code
|
||||
```js
|
||||
await (async(page)=>{const r=[];await page.goto('http://127.0.0.1:54623/?designer=final5');await page.locator('#theme').selectOption('light');for(const width of [1440,390,320]){await page.setViewportSize({width,height:1000});for(const view of ['home','catalog','article','kit']){await page.goto('http://127.0.0.1:54623/#'+view);await page.evaluate(()=>document.fonts.ready);await page.waitForTimeout(80);await page.evaluate(()=>window.scrollTo(0,0));r.push({width,view,doc:await page.evaluate(()=>document.documentElement.scrollWidth),images:await page.locator('main section:not([hidden]) img').evaluateAll(async imgs=>Promise.all(imgs.map(async i=>{try{i.loading='eager';await Promise.race([i.decode(),new Promise((_,r)=>setTimeout(()=>r('timeout'),3000))]);return true}catch{return false}})))});await page.screenshot({path:'/tmp/progcode-concept-v3/'+view+'-'+width+'.png'});}}await page.setViewportSize({width:1440,height:1000});await page.goto('http://127.0.0.1:54623/#catalog');await page.locator('#query').fill('Bitrix');r.push({search:'Bitrix',count:await page.locator('#results>.entry:visible').count()});await page.screenshot({path:'/tmp/progcode-concept-v3/search-bitrix.png'});await page.locator('#query').fill('Rust');r.push({search:'Rust',count:await page.locator('#results>.entry:visible').count()});await page.screenshot({path:'/tmp/progcode-concept-v3/search-empty.png'});await page.locator('#reset').click();r.push({reset:await page.locator('#results>.entry:visible').count()});await page.goto('http://127.0.0.1:54623/#kit');await page.locator('#json').fill('{bad}');await page.locator('#format').click();r.push({jsonError:await page.locator('#jsonstate').innerText()});await page.locator('#theme').selectOption('dark');await page.screenshot({path:'/tmp/progcode-concept-v3/kit-dark-error.png'});await page.goto('http://127.0.0.1:54623/#article');await page.locator('#body figure').first().scrollIntoViewIfNeeded();await page.screenshot({path:'/tmp/progcode-concept-v3/gc-dark-middle.png'});return r;}
|
||||
)(page);
|
||||
```
|
||||
### Page
|
||||
- Page URL: http://127.0.0.1:54623/#article
|
||||
- Page Title: ProgCode — от вызова к механизму / концепция V3
|
||||
|
After Width: | Height: | Size: 138 KiB |
|
After Width: | Height: | Size: 91 KiB |
|
After Width: | Height: | Size: 63 KiB |
@@ -0,0 +1,7 @@
|
||||
### Result
|
||||
[{"keyboardLight":"light","theme":"light"},{"reloadDark":"dark","resolved":"dark","width":320},{"systemLight":"light"},{"systemDark":"light"},{"jsonSuccess":"JSON корректен. Отформатировано."}]
|
||||
### Ran Playwright code
|
||||
```js
|
||||
await (async(page)=>{await page.goto('http://127.0.0.1:54623/?designer=theme5');await page.setViewportSize({width:320,height:1000});const r=[];await page.locator('#theme').focus();await page.keyboard.press('Home');await page.keyboard.press('ArrowDown');await page.keyboard.press('Enter');r.push({keyboardLight:await page.locator('#theme').inputValue(),theme:await page.locator('html').getAttribute('data-theme')});await page.screenshot({path:'/tmp/progcode-concept-v3/theme-focus320.png'});await page.locator('#theme').selectOption('dark');await page.reload();r.push({reloadDark:await page.locator('#theme').inputValue(),resolved:await page.locator('html').getAttribute('data-theme'),width:await page.evaluate(()=>document.documentElement.scrollWidth)});await page.screenshot({path:'/tmp/progcode-concept-v3/home320-dark-select.png'});await page.locator('#theme').selectOption('system');await page.emulateMedia({colorScheme:'light'});r.push({systemLight:await page.locator('html').getAttribute('data-theme')});await page.emulateMedia({colorScheme:'dark'});r.push({systemDark:await page.locator('html').getAttribute('data-theme')});await page.locator('#theme').selectOption('light');await page.goto('http://127.0.0.1:54623/#kit');await page.locator('#format').click();r.push({jsonSuccess:await page.locator('#jsonstate').innerText()});await page.locator('.spec').filter({has:page.getByRole('heading',{name:'Bitrix FileInput / 19.10.2018'})}).scrollIntoViewIfNeeded();await page.screenshot({path:'/tmp/progcode-concept-v3/bitrix320-light.png'});await page.locator('#theme').selectOption('dark');await page.screenshot({path:'/tmp/progcode-concept-v3/bitrix320-dark.png'});return r;}
|
||||
)(page);
|
||||
```
|
||||
@@ -0,0 +1 @@
|
||||
async(page)=>{await page.goto('http://127.0.0.1:54623/?designer=theme5');await page.setViewportSize({width:320,height:1000});const r=[];await page.locator('#theme').focus();await page.keyboard.press('Home');await page.keyboard.press('ArrowDown');await page.keyboard.press('Enter');r.push({keyboardLight:await page.locator('#theme').inputValue(),theme:await page.locator('html').getAttribute('data-theme')});await page.screenshot({path:'/tmp/progcode-concept-v3/theme-focus320.png'});await page.locator('#theme').selectOption('dark');await page.reload();r.push({reloadDark:await page.locator('#theme').inputValue(),resolved:await page.locator('html').getAttribute('data-theme'),width:await page.evaluate(()=>document.documentElement.scrollWidth)});await page.screenshot({path:'/tmp/progcode-concept-v3/home320-dark-select.png'});await page.locator('#theme').selectOption('system');await page.emulateMedia({colorScheme:'light'});r.push({systemLight:await page.locator('html').getAttribute('data-theme')});await page.emulateMedia({colorScheme:'dark'});r.push({systemDark:await page.locator('html').getAttribute('data-theme')});await page.locator('#theme').selectOption('light');await page.goto('http://127.0.0.1:54623/#kit');await page.locator('#format').click();r.push({jsonSuccess:await page.locator('#jsonstate').innerText()});await page.locator('.spec').filter({has:page.getByRole('heading',{name:'Bitrix FileInput / 19.10.2018'})}).scrollIntoViewIfNeeded();await page.screenshot({path:'/tmp/progcode-concept-v3/bitrix320-light.png'});await page.locator('#theme').selectOption('dark');await page.screenshot({path:'/tmp/progcode-concept-v3/bitrix320-dark.png'});return r;}
|
||||