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: 45 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 88 KiB |
|
After Width: | Height: | Size: 89 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 74 KiB |
@@ -0,0 +1 @@
|
||||
{"themes":[{"theme":"light","options":["Системная","Светлая","Тёмная"],"author":"Публикация: DarkRiDDeR · Историческая публикация","title":"DConf-2017. Под капотом мусорщика D (Дмитрий Ольшанский)","prose":{"chars":13239,"width":350,"font":"18px","color":"rgb(20, 32, 53)"},"bodyClass":null,"module":{"lines":84,"width":346,"scroll":796},"table":{"rows":5,"columns":3,"width":350,"scroll":483},"specimenLinks":["JavaScript. Использование jQuery в Webpack","Dlang. Новый движок CTFE","DConf-2017. Под капотом мусорщика D (Дмитрий Ольшанский)","Пишем аналог функции PHP preg_match_all на языке программирования D","Bitrix API. Вставка на страницу встроенного редактора картинок","Короткая статья: «Привет, мой читатель!»"],"leadTop":817.3125,"doc":390},{"theme":"dark","options":["Системная","Светлая","Тёмная"],"author":"Публикация: DarkRiDDeR · Историческая публикация","title":"DConf-2017. Под капотом мусорщика D (Дмитрий Ольшанский)","prose":{"chars":13239,"width":350,"font":"18px","color":"rgb(237, 242, 253)"},"bodyClass":null,"module":{"lines":84,"width":346,"scroll":796},"table":{"rows":5,"columns":3,"width":350,"scroll":483},"specimenLinks":["JavaScript. Использование jQuery в Webpack","Dlang. Новый движок CTFE","DConf-2017. Под капотом мусорщика D (Дмитрий Ольшанский)","Пишем аналог функции PHP preg_match_all на языке программирования D","Bitrix API. Вставка на страницу встроенного редактора картинок","Короткая статья: «Привет, мой читатель!»"],"leadTop":817.3125,"doc":390}],"errors":[],"sourceSHA":"a7fd02536e0f97145cde4cc2926289a5031a251ab29942644029d44dbbdf6681"}
|
||||
@@ -0,0 +1 @@
|
||||
async(page)=>{let o={themes:[],errors:[]};page.on('pageerror',e=>o.errors.push(String(e)));for(const theme of ['light','dark']){await page.setViewportSize({width:390,height:1000});await page.goto('http://127.0.0.1:54623/?cm='+theme+'-v3#article',{waitUntil:'networkidle'});await page.getByRole('combobox',{name:'Цветовая тема'}).selectOption(theme);let d={theme,options:await page.locator('#theme option').allTextContents(),author:await page.locator('#author').innerText(),title:await page.locator('#article-title').innerText(),prose:await page.locator('#body').evaluate(e=>({chars:e.textContent.length,width:e.getBoundingClientRect().width,font:getComputedStyle(e).fontSize,color:getComputedStyle(e).color})),bodyClass:await page.locator('body').getAttribute('class')};await page.evaluate(()=>scrollTo({top:0,behavior:'instant'}));await page.screenshot({path:'/tmp/progcode-content-v3-readings/latest-GC-top-'+theme+'.png'});const fig=page.locator('#body figure').nth(1);await fig.scrollIntoViewIfNeeded();await fig.locator('img').evaluate(i=>i.decode());await fig.screenshot({path:'/tmp/progcode-content-v3-readings/latest-GC-caption-'+theme+'.png'});await page.goto('http://127.0.0.1:54623/?cm='+theme+'-v3#kit');await page.evaluate(()=>scrollTo({top:0,behavior:'instant'}));let details=page.locator('#kit details');await details.locator('summary').click();let pre=details.locator('pre');await pre.scrollIntoViewIfNeeded();d.module=await pre.evaluate(e=>({lines:e.textContent.split('\n').length,width:e.clientWidth,scroll:e.scrollWidth}));await page.screenshot({path:'/tmp/progcode-content-v3-readings/latest-Dmodule-'+theme+'.png'});let table=page.locator('#kit .scroll');await table.scrollIntoViewIfNeeded();d.table=await table.evaluate(e=>({rows:e.querySelectorAll('tr').length,columns:e.querySelector('tr').children.length,width:e.clientWidth,scroll:e.scrollWidth}));await table.focus();for(let i=0;i<24;i++)await page.keyboard.press('ArrowRight');await page.waitForTimeout(200);await page.screenshot({path:'/tmp/progcode-content-v3-readings/latest-table-'+theme+'.png'});let img=page.locator('#kit figure').last();await img.scrollIntoViewIfNeeded();await img.locator('img').evaluate(i=>i.decode());await img.screenshot({path:'/tmp/progcode-content-v3-readings/latest-Bitrix-'+theme+'.png'});d.specimenLinks=await page.locator('#kit a[data-open]').allTextContents();await page.goto('http://127.0.0.1:54623/?cm='+theme+'-v3#home');await page.evaluate(()=>scrollTo({top:0,behavior:'instant'}));d.leadTop=await page.locator('.lead h2').evaluate(e=>e.getBoundingClientRect().top);d.doc=await page.evaluate(()=>document.documentElement.scrollWidth);await page.screenshot({path:'/tmp/progcode-content-v3-readings/latest-home-'+theme+'.png'});o.themes.push(d);}o.sourceSHA=await page.evaluate(async()=>{let s=await(await fetch('/?source-evidence')).text();let b=await crypto.subtle.digest('SHA-256',new TextEncoder().encode(s));return [...new Uint8Array(b)].map(x=>x.toString(16).padStart(2,'0')).join('')});return o;}
|
||||