Remove version checking
This commit is contained in:
parent
4c87370e64
commit
7dc56714b7
@ -1,37 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="version-checker" :class="[store.state.versionStatus]">
|
<div id="version-checker" :class="[store.state.versionStatus]">
|
||||||
<p v-if="store.state.versionStatus === 'loading'">Checking for updates…</p>
|
<p>Check for updates yourself you lazy bum</p>
|
||||||
<p v-if="store.state.versionStatus === 'new-version'">
|
|
||||||
Hard Lounge <b>{{ store.state.versionData?.latest.version }}</b>
|
|
||||||
<template v-if="store.state.versionData?.latest.prerelease"> (pre-release) </template>
|
|
||||||
is now available.
|
|
||||||
<br />
|
|
||||||
|
|
||||||
<a :href="store.state.versionData?.latest.url" target="_blank" rel="noopener">
|
|
||||||
Read more on GitHub
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
<p v-if="store.state.versionStatus === 'new-packages'">
|
|
||||||
Hard Lounge is up to date, but there are out of date packages Run
|
|
||||||
<code>thelounge upgrade</code> on the server to upgrade packages.
|
|
||||||
</p>
|
|
||||||
<template v-if="store.state.versionStatus === 'up-to-date'">
|
|
||||||
<p>Hard Lounge is up to date!</p>
|
|
||||||
|
|
||||||
<button
|
|
||||||
v-if="store.state.versionDataExpired"
|
|
||||||
id="check-now"
|
|
||||||
class="btn btn-small"
|
|
||||||
@click="checkNow"
|
|
||||||
>
|
|
||||||
Check now
|
|
||||||
</button>
|
|
||||||
</template>
|
|
||||||
<template v-if="store.state.versionStatus === 'error'">
|
|
||||||
<p>Information about latest release could not be retrieved.</p>
|
|
||||||
|
|
||||||
<button id="check-now" class="btn btn-small" @click="checkNow">Try again</button>
|
|
||||||
</template>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -12,21 +12,17 @@
|
|||||||
v{{
|
v{{
|
||||||
store.state.serverConfiguration?.version
|
store.state.serverConfiguration?.version
|
||||||
}}
|
}}
|
||||||
(<router-link id="view-changelog" to="/changelog"
|
|
||||||
>release notes</router-link
|
|
||||||
>)
|
|
||||||
</small>
|
</small>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<div class="about">
|
<div class="about">
|
||||||
<VersionChecker />
|
|
||||||
<p>
|
<p>
|
||||||
<a
|
<a
|
||||||
href="https://git.supernets.org/supernets/hardlounge/"
|
href="https://git.supernets.org/supernets/hardlounge/"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
class="website-link"
|
class="website-link"
|
||||||
>Website</a
|
>Source Code</a
|
||||||
>
|
>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
@ -35,7 +31,7 @@
|
|||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
class="documentation-link"
|
class="documentation-link"
|
||||||
>Documentation</a
|
>Documentation (The Lounge)</a
|
||||||
>
|
>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
@ -1228,14 +1224,12 @@
|
|||||||
import { defineComponent, ref } from "vue";
|
import { defineComponent, ref } from "vue";
|
||||||
import { useStore } from "../../js/store";
|
import { useStore } from "../../js/store";
|
||||||
import SidebarToggle from "../SidebarToggle.vue";
|
import SidebarToggle from "../SidebarToggle.vue";
|
||||||
import VersionChecker from "../VersionChecker.vue";
|
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: "Help",
|
name: "Help",
|
||||||
components: {
|
components: {
|
||||||
SidebarToggle,
|
SidebarToggle
|
||||||
VersionChecker,
|
},
|
||||||
},
|
|
||||||
setup() {
|
setup() {
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
const isApple =
|
const isApple =
|
||||||
|
@ -346,7 +346,6 @@ export default async function (
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
changelog.checkForUpdates(manager);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return server;
|
return server;
|
||||||
|
@ -16,7 +16,6 @@ describe("Server", function () {
|
|||||||
let server;
|
let server;
|
||||||
let logInfoStub: sinon.SinonStub<string[], void>;
|
let logInfoStub: sinon.SinonStub<string[], void>;
|
||||||
let logWarnStub: sinon.SinonStub<string[], void>;
|
let logWarnStub: sinon.SinonStub<string[], void>;
|
||||||
let checkForUpdatesStub: sinon.SinonStub<[manager: ClientManager], void>;
|
|
||||||
|
|
||||||
before(async function () {
|
before(async function () {
|
||||||
logInfoStub = sinon.stub(log, "info");
|
logInfoStub = sinon.stub(log, "info");
|
||||||
@ -34,7 +33,6 @@ describe("Server", function () {
|
|||||||
console.error(`Unhandled log.warn in server tests: ${args.join(" ")}`);
|
console.error(`Unhandled log.warn in server tests: ${args.join(" ")}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
checkForUpdatesStub = sinon.stub(changelog, "checkForUpdates");
|
|
||||||
server = await (await import("../server/server")).default({} as any);
|
server = await (await import("../server/server")).default({} as any);
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -43,7 +41,6 @@ describe("Server", function () {
|
|||||||
// in case setup crashed for any reason
|
// in case setup crashed for any reason
|
||||||
logInfoStub.restore();
|
logInfoStub.restore();
|
||||||
logWarnStub.restore();
|
logWarnStub.restore();
|
||||||
checkForUpdatesStub.restore();
|
|
||||||
server.close(done);
|
server.close(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user