mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-05 05:47:10 -04:00
1 line
1.8 KiB
JavaScript
1 line
1.8 KiB
JavaScript
import{b as x}from"./chunk-a740628f.js";import{d as k,aI as y,c as e,j as n,D as o,U as s,F as r,m as _,l as a,k as c,E as d,M as u,z as $,_ as B}from"./chunk-449c23a2.js";import{aL as z}from"../entries/src_pages_Home.page.16dc467b.js";import{_ as D,a as I}from"./chunk-c69fadad.js";import"./chunk-cf010ec4.js";import"./chunk-ee54c1e8.js";import"./chunk-567e13ca.js";import"./chunk-fc34c9a6.js";const S={class:"label"},C={class:"value"},L={key:1,class:"undefined-value"},N=k({__name:"device-information",setup(P){const{width:p,height:m}=y(),v=[{name:"Screen",information:[{label:"Screen size",value:e(()=>`${window.screen.availWidth} x ${window.screen.availHeight}`)},{label:"Orientation",value:e(()=>window.screen.orientation.type)},{label:"Orientation angle",value:e(()=>`${window.screen.orientation.angle}°`)},{label:"Color depth",value:e(()=>`${window.screen.colorDepth} bits`)},{label:"Pixel ratio",value:e(()=>`${window.devicePixelRatio} dppx`)},{label:"Window size",value:e(()=>`${p.value} x ${m.value}`)}]},{name:"Device",information:[{label:"Browser vendor",value:e(()=>navigator.vendor)},{label:"Languages",value:e(()=>navigator.languages.join(", "))},{label:"Platform",value:e(()=>navigator.platform)},{label:"User agent",value:e(()=>navigator.userAgent)}]}];return(V,W)=>{const g=z,f=D,w=I,b=x;return n(),o(r,null,s(v,({name:t,information:h})=>_(b,{key:t,title:t},{default:a(()=>[_(w,{cols:"1 400:2","x-gap":"12","y-gap":"12"},{default:a(()=>[(n(!0),o(r,null,s(h,({label:i,value:{value:l}})=>(n(),c(f,{key:i,class:"information"},{default:a(()=>[d("div",S,u(i),1),d("div",C,[l?(n(),c(g,{key:0},{default:a(()=>[$(u(l),1)]),_:2},1024)):(n(),o("div",L," unknown "))])]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["title"])),64)}}});const R=B(N,[["__scopeId","data-v-3d05d2aa"]]);export{R as default};
|