2019-02-18 09:18:32 +00:00
|
|
|
<template>
|
2019-08-03 19:03:45 +00:00
|
|
|
<div id="changelog" class="window" aria-label="Changelog">
|
2019-02-18 09:18:32 +00:00
|
|
|
<div class="header">
|
2019-04-13 20:44:04 +00:00
|
|
|
<SidebarToggle />
|
2019-02-18 09:18:32 +00:00
|
|
|
</div>
|
|
|
|
<div class="container">
|
2019-08-05 15:37:59 +00:00
|
|
|
<a id="back-to-help" href="#" data-target="#help" data-component="Help">« Help</a>
|
2019-02-18 09:18:32 +00:00
|
|
|
|
2019-08-05 15:37:59 +00:00
|
|
|
<template
|
|
|
|
v-if="
|
|
|
|
$store.state.versionData &&
|
|
|
|
$store.state.versionData.current &&
|
|
|
|
$store.state.versionData.current.version
|
|
|
|
"
|
|
|
|
>
|
|
|
|
<h1 class="title">
|
|
|
|
Release notes for {{ $store.state.versionData.current.version }}
|
|
|
|
</h1>
|
2019-02-18 09:18:32 +00:00
|
|
|
|
2019-08-05 15:37:59 +00:00
|
|
|
<template v-if="$store.state.versionData.current.changelog">
|
2019-02-20 15:09:44 +00:00
|
|
|
<h3>Introduction</h3>
|
2019-08-05 15:37:59 +00:00
|
|
|
<div
|
|
|
|
class="changelog-text"
|
|
|
|
v-html="$store.state.versionData.current.changelog"
|
|
|
|
></div>
|
2019-02-20 15:09:44 +00:00
|
|
|
</template>
|
|
|
|
<template v-else>
|
|
|
|
<p>Unable to retrieve releases from GitHub.</p>
|
|
|
|
<p>
|
|
|
|
<a
|
2019-08-03 19:03:45 +00:00
|
|
|
:href="
|
2019-08-05 15:37:59 +00:00
|
|
|
`https://github.com/thelounge/thelounge/releases/tag/v${$root.serverConfiguration.version}`
|
2019-08-03 19:03:45 +00:00
|
|
|
"
|
2019-02-20 15:09:44 +00:00
|
|
|
target="_blank"
|
2019-03-01 14:18:16 +00:00
|
|
|
rel="noopener"
|
2019-08-03 19:03:45 +00:00
|
|
|
>View release notes for this version on GitHub</a
|
|
|
|
>
|
2019-02-20 15:09:44 +00:00
|
|
|
</p>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<p v-else>Loading changelog…</p>
|
2019-02-18 09:18:32 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2019-08-07 11:58:35 +00:00
|
|
|
import socket from "../../js/socket";
|
2019-04-13 20:44:04 +00:00
|
|
|
import SidebarToggle from "../SidebarToggle.vue";
|
|
|
|
|
2019-02-18 09:18:32 +00:00
|
|
|
export default {
|
|
|
|
name: "Changelog",
|
2019-04-13 20:44:04 +00:00
|
|
|
components: {
|
|
|
|
SidebarToggle,
|
|
|
|
},
|
2019-08-05 15:37:59 +00:00
|
|
|
mounted() {
|
|
|
|
if (!this.$store.state.versionData) {
|
|
|
|
socket.emit("changelog");
|
|
|
|
}
|
|
|
|
},
|
2019-02-18 09:18:32 +00:00
|
|
|
};
|
|
|
|
</script>
|