0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-22 03:05:15 +00:00

fix: 🐛 Fix 4688681

woohoo time for depression programming my favorite :)

4688681900
This commit is contained in:
Kenny 2022-08-22 13:35:31 -04:00
parent bc7a63c482
commit 84a7ffbc08
8 changed files with 15 additions and 16 deletions

View file

@ -34,8 +34,8 @@ export default {
async mounted() {
const releases = await this.$vuetube.releases;
const appVersion = process.env.appVersion;
const appChannel = process.env.release;
const appVersion = process.env.version;
const appChannel = process.env.channel;
if (appVersion !== releases[0].tag_name && appVersion !== "dev-local" && appChannel !== "Unstable") {
this.updateSnackbar = true;
}

View file

@ -8,8 +8,8 @@
export default {
//--- VueTube Stuff ---//
env: {
release: "Unstable",
appVersion: "dev-local",
channel: "Unstable",
version: "dev-local",
},
target: "static",

View file

@ -92,7 +92,7 @@ export default {
this.stage++;
if (!this.$refs["stage" + this.stage]) {
localStorage.setItem("lastRunVersion", process.env.appVersion);
localStorage.setItem("lastRunVersion", process.env.version);
localStorage.setItem("firstTimeSetupComplete", true);
this.$router.replace("/");
}

View file

@ -40,11 +40,11 @@ export default {
this.lang = this.$lang("events");
this.oldVer = localStorage.getItem("lastRunVersion").substring(0, 7);
this.newVer = process.env.appVersion.substring(0, 7);
this.newVer = process.env.version.substring(0, 7);
},
methods: {
okay() {
localStorage.setItem("lastRunVersion", process.env.appVersion);
localStorage.setItem("lastRunVersion", process.env.version);
this.$router.replace("/");
},
},

View file

@ -30,7 +30,7 @@ export default {
await this.theming();
//--- Update Screen ---//
if ( (localStorage.getItem("lastRunVersion") != null) && (localStorage.getItem("lastRunVersion") != process.env.appVersion) ) return this.$router.replace("/activities/update");
if ( (localStorage.getItem("lastRunVersion") != null) && (localStorage.getItem("lastRunVersion") != process.env.version) ) return this.$router.replace("/activities/update");
//--- Start Innertube Connection ---//
await this.$youtube.getAPI();

View file

@ -99,8 +99,8 @@ import { Device } from "@capacitor/device";
export default {
data() {
return {
version: process.env.appVersion,
release: process.env.release,
version: process.env.version,
release: process.env.channel,
deviceInfo: "",
lang: {},
};

View file

@ -42,7 +42,7 @@ export default {
data() {
return {
plugins: [],
installedVersion: process.env.appVersion,
installedVersion: process.env.version,
};
},
async mounted() {

View file

@ -9,8 +9,7 @@
<div>
{{ lang.installed }}:
{{ installedVersion.substring(0, 7) || "Unknown" }}
<!-- (release) -->
({{ latestVersion.tag_name }})
({{ installedChannel }})
</div>
<center>
<v-progress-circular
@ -45,8 +44,7 @@
<div>
{{ lang.installed }}:
{{ installedVersion.substring(0, 7) || "Unknown" }}
<!-- (release) -->
({{ latestVersion.tag_name }})
({{ installedChannel }})
</div>
<div>{{ lang.latest }}: {{ latestVersion.tag_name }}</div>
@ -106,7 +104,8 @@ export default {
layout: "empty",
data() {
return {
installedVersion: process.env.appVersion,
installedVersion: process.env.version,
installedChannel: process.env.channel,
latestVersion: "",
lang: {},
status: "checking",