mirror of
https://github.com/liriliri/eruda.git
synced 2026-04-05 10:28:34 +08:00
Add: System info
This commit is contained in:
@@ -36,6 +36,9 @@
|
||||
color: $blue;
|
||||
}
|
||||
}
|
||||
.device-key, .system-key {
|
||||
width: 100px;
|
||||
}
|
||||
}
|
||||
}
|
||||
} }
|
||||
|
||||
@@ -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>'
|
||||
|
||||
Reference in New Issue
Block a user