Add web site link to about window

This commit is contained in:
kPherox 2019-04-08 05:00:05 +09:00
parent d3a11b0e4c
commit 1ef087740f
No known key found for this signature in database
GPG Key ID: C04751C2BFA2F62D

View File

@ -5,6 +5,11 @@
<img :alt="productName+' logo'" src="@/assets/logo.png" width="194" draggable="false"> <img :alt="productName+' logo'" src="@/assets/logo.png" width="194" draggable="false">
</div> </div>
<p id="app-name">{{ productName }}</p> <p id="app-name">{{ productName }}</p>
<p id="web-site">
<a :href="homePage">
Web site
</a>
</p>
</div> </div>
<dl class="version"> <dl class="version">
<template v-for="(name, idx) in versionInfo"> <template v-for="(name, idx) in versionInfo">
@ -31,14 +36,18 @@ body {
text-align: center; text-align: center;
} }
#brand { #brand {
margin-top: 1em; margin-top: .5em;
& > p { & > p {
margin-top: 0; margin: 0;
} }
} }
#app-name { #app-name {
font-weight: bold; font-weight: bold;
} }
#web-site {
-webkit-app-region: no-drag;
user-select: auto;
}
dl.version { dl.version {
margin: 0; margin: 0;
display: grid; display: grid;
@ -57,12 +66,11 @@ dl.version {
<script> <script>
import { remote } from 'electron' import { remote } from 'electron'
const appInfo = JSON.parse(remote.getGlobal('TheDeskInfo'))
export default { export default {
name: 'about', name: 'about',
data() { data() {
return Object.assign(appInfo, { return Object.assign({
versionName: { versionName: {
codeName: "Code Name", codeName: "Code Name",
internal: "Internal Version", internal: "Internal Version",
@ -71,7 +79,7 @@ export default {
node: "Node.js", node: "Node.js",
}, },
versionInfo: [ "codeName", "internal", "chrome", "electron", "node" ] versionInfo: [ "codeName", "internal", "chrome", "electron", "node" ]
}) }, JSON.parse(remote.getGlobal('TheDeskInfo')))
}, },
} }
</script> </script>