Add: System info

This commit is contained in:
surunzi
2017-12-16 18:05:49 +08:00
parent ce5dee62d4
commit 38f9d67b0f
7 changed files with 370 additions and 1041 deletions

View File

@@ -36,6 +36,9 @@
color: $blue;
}
}
.device-key, .system-key {
width: 100px;
}
}
}
} }

View File

@@ -1,3 +1,7 @@
import util from '../lib/util';
let browser = util.detectBrowser();
export default [
{
name: 'Location',
@@ -12,7 +16,7 @@ export default [
val: `<table>
<tbody>
<tr>
<td>screen</td>
<td class="eruda-device-key">screen</td>
<td>${screen.width} * ${screen.height}</td>
</tr>
<tr>
@@ -27,6 +31,21 @@ export default [
</table>`
},
{
name: 'System',
val: `<table>
<tbody>
<tr>
<td class="eruda-system-key">os</td>
<td>${util.detectOs()}</td>
</tr>
<tr>
<td>browser</td>
<td>${browser.name + ' ' + browser.version}</td>
</tr>
</tbody>
</table>`
},
{
name: 'About',
val: '<a href="https://github.com/liriliri/eruda" target="_blank">Eruda v' + VERSION + '</a>'