2022-03-02 19:11:16 +00:00
|
|
|
<template>
|
2022-05-05 04:28:51 +00:00
|
|
|
<div style="padding: 1rem">
|
2022-04-06 16:08:43 +00:00
|
|
|
<center>
|
2022-05-06 00:57:40 +00:00
|
|
|
<div class="d-flex flex-column justify-center pa-4">
|
2022-05-05 04:28:51 +00:00
|
|
|
<div>
|
|
|
|
<v-img
|
2022-05-06 00:57:40 +00:00
|
|
|
width="69px"
|
2022-05-05 04:28:51 +00:00
|
|
|
src="/icon.svg"
|
|
|
|
:class="$vuetify.theme.dark ? '' : 'invert'"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-05-06 00:57:40 +00:00
|
|
|
<h1 style="font-size: 2rem">VueTube</h1>
|
2022-03-17 23:39:36 +00:00
|
|
|
</div>
|
2022-04-06 16:08:43 +00:00
|
|
|
</center>
|
|
|
|
|
|
|
|
<!-- App Information -->
|
2022-05-05 04:28:51 +00:00
|
|
|
<v-card
|
2022-05-14 00:25:48 +00:00
|
|
|
flat
|
2022-05-05 04:28:51 +00:00
|
|
|
class="obj"
|
|
|
|
:class="
|
|
|
|
$vuetify.theme.dark ? 'background lighten-1' : 'background darken-1'
|
|
|
|
"
|
|
|
|
:style="{ borderRadius: `${roundTweak / 2}rem` }"
|
|
|
|
>
|
2022-06-15 19:00:26 +00:00
|
|
|
<v-card-title>{{ lang.appinformation }}</v-card-title>
|
2022-04-06 16:09:59 +00:00
|
|
|
<v-card-text>
|
2022-06-15 19:00:26 +00:00
|
|
|
<h3>{{ lang.appversion }}</h3>
|
2022-06-22 18:17:11 +00:00
|
|
|
{{ version.substring(0, 7) || "Unknown" }} ({{ release }})
|
2022-04-06 16:09:59 +00:00
|
|
|
</v-card-text>
|
2022-04-06 16:08:43 +00:00
|
|
|
</v-card>
|
|
|
|
<!-- End App Information -->
|
2022-03-13 21:18:45 +00:00
|
|
|
|
2022-04-06 16:08:43 +00:00
|
|
|
<!-- Device Information -->
|
2022-05-05 04:28:51 +00:00
|
|
|
<v-card
|
2022-05-14 00:25:48 +00:00
|
|
|
flat
|
2022-05-05 04:28:51 +00:00
|
|
|
class="obj"
|
|
|
|
:class="
|
|
|
|
$vuetify.theme.dark ? 'background lighten-1' : 'background darken-1'
|
|
|
|
"
|
|
|
|
:style="{ borderRadius: `${roundTweak / 2}rem` }"
|
|
|
|
>
|
2022-06-22 05:24:06 +00:00
|
|
|
<v-card-title>{{ lang.deviceinformation }}</v-card-title>
|
2022-04-06 16:08:43 +00:00
|
|
|
<v-card-text>
|
2022-06-15 19:00:26 +00:00
|
|
|
<h3>{{ lang.platform }}</h3>
|
2022-05-05 04:28:51 +00:00
|
|
|
{{ deviceInfo.platform || "Unknown" }}<br />
|
2022-06-15 19:00:26 +00:00
|
|
|
<h3>{{ lang.os }}</h3>
|
2022-05-05 04:28:51 +00:00
|
|
|
{{ deviceInfo.operatingSystem || "Unknown" }} ({{
|
|
|
|
deviceInfo.osVersion || "Unknown"
|
|
|
|
}})<br />
|
2022-06-15 19:00:26 +00:00
|
|
|
<h3>{{ lang.model }}</h3>
|
2022-05-05 04:28:51 +00:00
|
|
|
{{ deviceInfo.model || "Unknown" }}<br />
|
2022-06-15 19:00:26 +00:00
|
|
|
<h3>{{ lang.manufacturer }}</h3>
|
2022-05-05 04:28:51 +00:00
|
|
|
{{ deviceInfo.manufacturer || "Unknown" }}<br />
|
2022-06-15 19:00:26 +00:00
|
|
|
<h3>{{ lang.emulator }}</h3>
|
2022-04-06 16:08:43 +00:00
|
|
|
{{ deviceInfo.isVirtual ? "yes" : "no" }}
|
|
|
|
</v-card-text>
|
|
|
|
</v-card>
|
|
|
|
<!-- End Device Information -->
|
2022-03-13 21:18:45 +00:00
|
|
|
|
2022-04-06 16:08:43 +00:00
|
|
|
<!-- App Links --->
|
2022-05-06 00:57:40 +00:00
|
|
|
<div class="obj d-flex flex-row gap-1 full-width">
|
2022-05-05 04:28:51 +00:00
|
|
|
<v-btn
|
|
|
|
depressed
|
2022-05-06 00:57:40 +00:00
|
|
|
class="action flex-grow-1"
|
2022-05-05 04:28:51 +00:00
|
|
|
:class="
|
|
|
|
$vuetify.theme.dark ? 'background lighten-1' : 'background darken-1'
|
|
|
|
"
|
|
|
|
:style="{ borderRadius: `${roundTweak / 2}rem` }"
|
|
|
|
@click="openExternal('https://github.com/Frontesque/VueTube')"
|
|
|
|
>
|
2022-04-06 16:08:43 +00:00
|
|
|
<v-icon x-large class="actionIcon">mdi-github</v-icon>
|
2022-06-15 19:00:26 +00:00
|
|
|
{{ lang.github }}
|
2022-04-06 16:08:43 +00:00
|
|
|
</v-btn>
|
2022-05-05 04:28:51 +00:00
|
|
|
<v-btn
|
|
|
|
depressed
|
2022-05-06 00:57:40 +00:00
|
|
|
class="action flex-grow-1 ml-4"
|
2022-05-05 04:28:51 +00:00
|
|
|
:class="
|
|
|
|
$vuetify.theme.dark ? 'background lighten-1' : 'background darken-1'
|
|
|
|
"
|
|
|
|
:style="{ borderRadius: `${roundTweak / 2}rem` }"
|
|
|
|
@click="openExternal('https://discord.gg/7P8KJrdd5W')"
|
|
|
|
>
|
2022-06-22 17:29:45 +00:00
|
|
|
<v-icon x-large class="actionIcon">mdi-discord</v-icon>
|
2022-06-15 19:00:26 +00:00
|
|
|
{{ lang.discord }}
|
2022-04-06 16:08:43 +00:00
|
|
|
</v-btn>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-02 19:11:16 +00:00
|
|
|
</template>
|
|
|
|
|
2022-03-10 14:59:50 +00:00
|
|
|
<script>
|
2022-03-21 23:47:11 +00:00
|
|
|
import { Browser } from "@capacitor/browser";
|
|
|
|
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,
|
2022-06-22 18:17:11 +00:00
|
|
|
release: process.env.release,
|
2022-03-13 21:18:45 +00:00
|
|
|
deviceInfo: "",
|
2022-06-15 19:00:26 +00:00
|
|
|
lang: {},
|
2022-03-21 23:47:11 +00:00
|
|
|
};
|
|
|
|
},
|
2022-05-05 04:28:51 +00:00
|
|
|
computed: {
|
|
|
|
roundTweak() {
|
|
|
|
return this.$store.state.tweaks.roundTweak;
|
|
|
|
},
|
|
|
|
},
|
2022-03-21 23:47:11 +00:00
|
|
|
|
|
|
|
async mounted() {
|
|
|
|
const info = await Device.getInfo();
|
|
|
|
this.deviceInfo = info;
|
2022-05-06 11:36:01 +00:00
|
|
|
|
2022-06-15 19:00:26 +00:00
|
|
|
this.lang = this.$lang().mods.about;
|
2022-03-10 14:59:50 +00:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
async openExternal(url) {
|
|
|
|
await Browser.open({ url: url });
|
2022-03-21 23:47:11 +00:00
|
|
|
},
|
2022-03-13 21:18:45 +00:00
|
|
|
},
|
2022-03-21 23:47:11 +00:00
|
|
|
};
|
2022-03-10 14:59:50 +00:00
|
|
|
</script>
|
2022-03-23 13:30:24 +00:00
|
|
|
|
|
|
|
<style scoped>
|
2022-04-06 16:08:43 +00:00
|
|
|
.obj {
|
|
|
|
margin-top: 1em;
|
|
|
|
}
|
|
|
|
.action {
|
|
|
|
min-height: 5em;
|
2022-05-05 04:28:51 +00:00
|
|
|
padding: 1rem;
|
2022-04-06 16:08:43 +00:00
|
|
|
}
|
|
|
|
.actionIcon {
|
|
|
|
margin-right: 0.5em;
|
|
|
|
}
|
2022-03-23 13:30:24 +00:00
|
|
|
</style>
|