mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 20:13:07 +00:00
Move changelog window to Vue
This commit is contained in:
parent
70d9d8d226
commit
3f7889e534
3 changed files with 23 additions and 17 deletions
|
@ -78,6 +78,7 @@ import Chat from "./Chat.vue";
|
|||
import SignIn from "./Windows/SignIn.vue";
|
||||
import Settings from "./Windows/Settings.vue";
|
||||
import Help from "./Windows/Help.vue";
|
||||
import Changelog from "./Windows/Changelog.vue";
|
||||
|
||||
export default {
|
||||
name: "App",
|
||||
|
@ -87,6 +88,7 @@ export default {
|
|||
SignIn,
|
||||
Settings,
|
||||
Help,
|
||||
Changelog,
|
||||
},
|
||||
props: {
|
||||
activeWindow: String,
|
||||
|
|
|
@ -12,24 +12,26 @@
|
|||
<a
|
||||
id="back-to-help"
|
||||
href="#"
|
||||
data-target="#help">« Help</a>
|
||||
data-target="Help">« Help</a>
|
||||
|
||||
{{#if version}}
|
||||
<h1 class="title">Release notes for {{ version }}</h1>
|
||||
<template v-if="version">
|
||||
<h1 class="title">Release notes for {{ version }}</h1>
|
||||
|
||||
{{#if changelog}}
|
||||
<h3>Introduction</h3>
|
||||
<div class="changelog-text">{{{changelog}}}</div>
|
||||
{{else}}
|
||||
<p>Unable to retrieve releases from GitHub.</p>
|
||||
<p><a
|
||||
href="https://github.com/thelounge/thelounge/releases/tag/v{{version}}"
|
||||
target="_blank"
|
||||
rel="noopener">View release notes for this version on GitHub</a></p>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<p>Loading changelog…</p>
|
||||
{{/if}}
|
||||
<template v-if="changelog">
|
||||
<h3>Introduction</h3>
|
||||
<div class="changelog-text">{{ changelog }}</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<p>Unable to retrieve releases from GitHub.</p>
|
||||
<p>
|
||||
<a
|
||||
:href="`https://github.com/thelounge/thelounge/releases/tag/v${version}`"
|
||||
target="_blank"
|
||||
rel="noopener">View release notes for this version on GitHub</a>
|
||||
</p>
|
||||
</template>
|
||||
</template>
|
||||
<p v-else>Loading changelog…</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -38,5 +40,8 @@
|
|||
<script>
|
||||
export default {
|
||||
name: "Changelog",
|
||||
mounted() {
|
||||
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -4,7 +4,6 @@ const $ = require("jquery");
|
|||
const socket = require("../socket");
|
||||
const templates = require("../../views");
|
||||
const sidebar = $("#sidebar");
|
||||
const utils = require("../utils");
|
||||
const {vueApp, initChannel, findChannel} = require("../vue");
|
||||
|
||||
socket.on("network", function(data) {
|
||||
|
|
Loading…
Reference in a new issue