Implement ProgCode identity and real shared reading UI kit
Build and deploy / deploy (push) Successful in 2m39s
Build and deploy / deploy (push) Successful in 2m39s
This commit is contained in:
1 parent
99c848189e
commit
12562baeb5
2040 files changed
+184656
-181
No files matched your search
@@ -0,0 +1 @@
|
||||
async page=>{async function css(base){await page.goto(base+'/');await page.waitForFunction(()=>document.styleSheets.length>0);return await page.evaluate(()=>{const out=[];function walk(rules,scope=''){for(const r of rules){if(r.styleSheet){walk(r.styleSheet.cssRules,scope+'|@import')}else if(r.cssRules){walk(r.cssRules,scope+'|'+(r.conditionText||r.name||r.constructor.name))}else if(r.selectorText){out.push(scope+'|'+r.selectorText+'|'+r.style.cssText)}}}for(const s of document.styleSheets)walk(s.cssRules);return {count:document.styleSheets.length,rules:out}})}const old=await css('http://127.0.0.1:65019'),next=await css('http://127.0.0.1:50480');return {oldSheets:old.count,newSheets:next.count,oldRules:old.rules.length,newRules:next.rules.length,added:next.rules.filter(x=>!old.rules.includes(x)),removed:old.rules.filter(x=>!next.rules.includes(x))};}
|
||||
Reference in new issue
Block a user