2022-03-02 19:11:16 +00:00
|
|
|
<template>
|
2022-03-10 14:59:50 +00:00
|
|
|
<center style="padding: 1em;">
|
|
|
|
|
|
|
|
<v-img src="/icon.svg" width="100px" />
|
|
|
|
<h1 class="pageTitle">VueTube</h1>
|
|
|
|
|
|
|
|
<v-btn @click="openExternal('https://github.com/Frontesque/VueTube')"><v-icon>mdi-github</v-icon></v-btn>
|
|
|
|
<v-btn @click="openExternal('https://discord.gg/7P8KJrdd5W')"><v-icon>mdi-discord</v-icon></v-btn>
|
2022-03-13 21:18:45 +00:00
|
|
|
|
|
|
|
<h3 style="margin-top: 2em;">App Information</h3>
|
|
|
|
<div>App Version: {{ version.substring(0, 7) }}</div>
|
|
|
|
|
|
|
|
<h3 style="margin-top: 1em;">Device Information</h3>
|
|
|
|
<div>Platform: {{ deviceInfo.platform }}</div>
|
2022-03-14 17:13:24 +00:00
|
|
|
<div>OS: {{ deviceInfo.operatingSystem }} ({{ deviceInfo.osVersion }})</div>
|
2022-03-13 21:18:45 +00:00
|
|
|
<div>Model: {{ deviceInfo.model }}</div>
|
|
|
|
<div>Manufacturer: {{ deviceInfo.manufacturer }}</div>
|
|
|
|
<div>Virtual: {{ deviceInfo.isVirtual }}</div>
|
2022-03-02 19:11:16 +00:00
|
|
|
</center>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.pageTitle {
|
2022-03-10 14:59:50 +00:00
|
|
|
margin-bottom: 1em;
|
2022-03-02 19:11:16 +00:00
|
|
|
}
|
|
|
|
</style>
|
2022-03-10 14:59:50 +00:00
|
|
|
|
|
|
|
<script>
|
|
|
|
import { Browser } from '@capacitor/browser';
|
2022-03-13 21:18:45 +00:00
|
|
|
import { Device } from '@capacitor/device';
|
2022-03-10 14:59:50 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
2022-03-13 21:18:45 +00:00
|
|
|
version: process.env.appVersion,
|
|
|
|
deviceInfo: "",
|
2022-03-10 14:59:50 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
async openExternal(url) {
|
|
|
|
await Browser.open({ url: url });
|
|
|
|
}
|
2022-03-13 21:18:45 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
async mounted () {
|
|
|
|
const info = await Device.getInfo();
|
|
|
|
this.deviceInfo = info
|
2022-03-10 14:59:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|