perf: remove packageInstaller and add pages to english language pack

This commit is contained in:
Kenny 2022-09-03 13:28:58 -04:00
parent d1778b67ee
commit b4a7efb2e9
2 changed files with 19 additions and 77 deletions

View File

@ -1,77 +0,0 @@
<template>
<div>
<center>
<h2 style="margin: 2em;">{{ lang.packageinstaller }}</h2>
</center>
<v-list-item-group>
<v-list-item v-for="(item, i) in assets" :key="i" @click="dl(item)">
<v-list-item-icon>
<v-icon v-text="item.icon" />
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title v-text="item.name" />
</v-list-item-content>
</v-list-item>
</v-list-item-group>
</div>
</template>
<script>
export default {
layout: "empty",
data() {
return {
lang: {},
releases: {},
assets: [],
icons: {
apk: "android",
ipa: "apple",
zip: "folder-zip"
}
};
},
async mounted() {
const allReleases = await this.$vuetube.releases;
this.releases = allReleases[this.$route.query.v].assets;
this.lang = this.$lang("events");
for (const i in this.releases) {
const asset = this.releases[i];
let icon = new String();
//--- Get Icon Type ---//
const fileExt = asset.name.split(".")
for (const i in this.icons) {
if (fileExt.includes(i)) {
icon = this.icons[i];
}
}
//--- Build Asset For Listing ---//
this.assets.push({
name: asset.name,
icon: "mdi-"+icon,
download_url: asset.browser_download_url
})
}
},
methods: {
dl(item) {
window.open(item.download_url, '_blank');
this.$router.push(`/mods/updates`);
}
}
};
</script>

View File

@ -12,6 +12,25 @@ module.exports = {
okay: "Okay",
},
pages: {
index: "",
home: "Home",
library: "Library",
search: "Search",
settings: "Settings",
subscriptions: "Subscriptions",
watch: "Watch",
about: "About",
developer: "Developer",
general: "General",
player: "Player",
plugins: "Plugins",
startup: "Startup",
theme: "Theme",
tweaks: "Tweaks",
updates: "Updates"
},
index: {
connecting: "Connecting",
plugins: "Loading Plugins",