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 @@
async(page)=>{let out={};const base='http://127.0.0.1:65019';await page.setViewportSize({width:320,height:1000});for(const theme of ['light','dark']){await page.goto(base+'/resources/');await page.getByLabel('Тема',{exact:true}).selectOption(theme);await page.evaluate(()=>document.fonts.ready);out[theme]=await page.evaluate(()=>({width:innerWidth,doc:document.documentElement.scrollWidth,h1:{text:document.querySelector('h1').innerText,font:getComputedStyle(document.querySelector('h1')).font,fontSize:getComputedStyle(document.querySelector('h1')).fontSize,width:document.querySelector('h1').getBoundingClientRect().width,scroll:document.querySelector('h1').scrollWidth,overflowWrap:getComputedStyle(document.querySelector('h1')).overflowWrap},off:[...document.querySelectorAll('*')].filter(x=>x.getBoundingClientRect().right>320).map(x=>({tag:x.tagName,cls:x.className,text:x.innerText?.slice(0,100),right:x.getBoundingClientRect().right}))}));}await page.goto(base+'/');await page.getByRole('searchbox').fill('none-does-not-exist');await page.getByRole('button',{name:'Сбросить поиск'}).click();out.reset=await page.getByRole('status').allTextContents();await page.goto(base+'/tools/');await page.getByRole('button',{name:'Очистить',exact:true}).click();await page.getByRole('button',{name:'Форматировать',exact:true}).click();out.empty=await page.getByRole('status').allTextContents();return out;}