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:
parent
bc7a63c482
commit
84a7ffbc08
8 changed files with 15 additions and 16 deletions
|
@ -34,8 +34,8 @@ export default {
|
||||||
|
|
||||||
async mounted() {
|
async mounted() {
|
||||||
const releases = await this.$vuetube.releases;
|
const releases = await this.$vuetube.releases;
|
||||||
const appVersion = process.env.appVersion;
|
const appVersion = process.env.version;
|
||||||
const appChannel = process.env.release;
|
const appChannel = process.env.channel;
|
||||||
if (appVersion !== releases[0].tag_name && appVersion !== "dev-local" && appChannel !== "Unstable") {
|
if (appVersion !== releases[0].tag_name && appVersion !== "dev-local" && appChannel !== "Unstable") {
|
||||||
this.updateSnackbar = true;
|
this.updateSnackbar = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
export default {
|
export default {
|
||||||
//--- VueTube Stuff ---//
|
//--- VueTube Stuff ---//
|
||||||
env: {
|
env: {
|
||||||
release: "Unstable",
|
channel: "Unstable",
|
||||||
appVersion: "dev-local",
|
version: "dev-local",
|
||||||
},
|
},
|
||||||
|
|
||||||
target: "static",
|
target: "static",
|
||||||
|
|
|
@ -92,7 +92,7 @@ export default {
|
||||||
this.stage++;
|
this.stage++;
|
||||||
|
|
||||||
if (!this.$refs["stage" + this.stage]) {
|
if (!this.$refs["stage" + this.stage]) {
|
||||||
localStorage.setItem("lastRunVersion", process.env.appVersion);
|
localStorage.setItem("lastRunVersion", process.env.version);
|
||||||
localStorage.setItem("firstTimeSetupComplete", true);
|
localStorage.setItem("firstTimeSetupComplete", true);
|
||||||
this.$router.replace("/");
|
this.$router.replace("/");
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,11 +40,11 @@ export default {
|
||||||
this.lang = this.$lang("events");
|
this.lang = this.$lang("events");
|
||||||
|
|
||||||
this.oldVer = localStorage.getItem("lastRunVersion").substring(0, 7);
|
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: {
|
methods: {
|
||||||
okay() {
|
okay() {
|
||||||
localStorage.setItem("lastRunVersion", process.env.appVersion);
|
localStorage.setItem("lastRunVersion", process.env.version);
|
||||||
this.$router.replace("/");
|
this.$router.replace("/");
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -30,7 +30,7 @@ export default {
|
||||||
await this.theming();
|
await this.theming();
|
||||||
|
|
||||||
//--- Update Screen ---//
|
//--- 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 ---//
|
//--- Start Innertube Connection ---//
|
||||||
await this.$youtube.getAPI();
|
await this.$youtube.getAPI();
|
||||||
|
|
|
@ -99,8 +99,8 @@ import { Device } from "@capacitor/device";
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
version: process.env.appVersion,
|
version: process.env.version,
|
||||||
release: process.env.release,
|
release: process.env.channel,
|
||||||
deviceInfo: "",
|
deviceInfo: "",
|
||||||
lang: {},
|
lang: {},
|
||||||
};
|
};
|
||||||
|
|
|
@ -42,7 +42,7 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
plugins: [],
|
plugins: [],
|
||||||
installedVersion: process.env.appVersion,
|
installedVersion: process.env.version,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
|
|
|
@ -9,8 +9,7 @@
|
||||||
<div>
|
<div>
|
||||||
{{ lang.installed }}:
|
{{ lang.installed }}:
|
||||||
{{ installedVersion.substring(0, 7) || "Unknown" }}
|
{{ installedVersion.substring(0, 7) || "Unknown" }}
|
||||||
<!-- (release) -->
|
({{ installedChannel }})
|
||||||
({{ latestVersion.tag_name }})
|
|
||||||
</div>
|
</div>
|
||||||
<center>
|
<center>
|
||||||
<v-progress-circular
|
<v-progress-circular
|
||||||
|
@ -45,8 +44,7 @@
|
||||||
<div>
|
<div>
|
||||||
{{ lang.installed }}:
|
{{ lang.installed }}:
|
||||||
{{ installedVersion.substring(0, 7) || "Unknown" }}
|
{{ installedVersion.substring(0, 7) || "Unknown" }}
|
||||||
<!-- (release) -->
|
({{ installedChannel }})
|
||||||
({{ latestVersion.tag_name }})
|
|
||||||
</div>
|
</div>
|
||||||
<div>{{ lang.latest }}: {{ latestVersion.tag_name }}</div>
|
<div>{{ lang.latest }}: {{ latestVersion.tag_name }}</div>
|
||||||
|
|
||||||
|
@ -106,7 +104,8 @@ export default {
|
||||||
layout: "empty",
|
layout: "empty",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
installedVersion: process.env.appVersion,
|
installedVersion: process.env.version,
|
||||||
|
installedChannel: process.env.channel,
|
||||||
latestVersion: "",
|
latestVersion: "",
|
||||||
lang: {},
|
lang: {},
|
||||||
status: "checking",
|
status: "checking",
|
||||||
|
|
Loading…
Reference in a new issue