import detectBrowser from 'licia/detectBrowser'
import detectOs from 'licia/detectOs'
import escape from 'licia/escape'
const browser = detectBrowser()
export default [
{
name: 'ロケーション',
val() {
return escape(location.href)
},
},
{
name: 'ユーザーエージェント',
val: navigator.userAgent,
},
{
name: 'デバイス',
val: [
'
',
`スクリーン | ${screen.width} * ${screen.height} |
`,
`ビューポート | ${window.innerWidth} * ${window.innerHeight} |
`,
`画素比 | ${window.devicePixelRatio} |
`,
'
',
].join(''),
},
{
name: 'システム',
val: [
'',
`os | ${detectOs()} |
`,
`ブラウザー | ${
browser.name + ' ' + browser.version
} |
`,
'
',
].join(''),
},
{
name: 'Erudaについて',
val:
'Eruda v' +
VERSION +
'',
},
{
name: '後援者',
val() {
return `
`
},
},
]