Add thank to credits

This commit is contained in:
kPherox 2019-04-22 15:57:51 +09:00
parent 367b9aa168
commit 4d0d302900
No known key found for this signature in database
GPG Key ID: C04751C2BFA2F62D
3 changed files with 29 additions and 4 deletions

View File

@ -14,7 +14,7 @@ import Application from './main/Application'
import ApplicationMenu from "./main/ApplicationMenu"; import ApplicationMenu from "./main/ApplicationMenu";
export type PackageJson = typeof import('../package.json'); export type PackageJson = typeof import('../package.json');
import { author, homepage } from '../package.json' import { author, contributors, homepage } from '../package.json'
import TheDeskInfo from '../info.json' import TheDeskInfo from '../info.json'
export type TheDeskInfoObject = typeof TheDeskInfo; export type TheDeskInfoObject = typeof TheDeskInfo;
@ -22,6 +22,7 @@ ipcMain.on('thedesk-info', (event: Event) => {
event.returnValue = Object.assign({ event.returnValue = Object.assign({
productName: app.getName(), productName: app.getName(),
author: author, author: author,
contributors: contributors,
homePage: homepage, homePage: homepage,
versions: Object.assign(pick(process.versions, ["chrome", "electron", "node"]), { internal: app.getVersion() }), versions: Object.assign(pick(process.versions, ["chrome", "electron", "node"]), { internal: app.getVersion() }),
}, TheDeskInfo) }, TheDeskInfo)

View File

@ -51,8 +51,8 @@ export default class Window {
windowName: 'about', windowName: 'about',
loadPath: 'about.html', loadPath: 'about.html',
windowOptions: { windowOptions: {
width: 296, width: 312,
height: 432, height: 496,
resizable: false, resizable: false,
minimizable: false, minimizable: false,
maximizable: false, maximizable: false,

View File

@ -22,6 +22,21 @@
<a :href="author.url">{{ author.name }}</a> <a :href="author.url">{{ author.name }}</a>
</small> </small>
</p> </p>
<p id="thank">
<small>
Thanks
<br>
<span v-html="ctrHtml"></span>
<br>and all users
<img
alt="❤️"
title=":heart:"
src="https://twemoji.maxcdn.com/2/72x72/2764.png"
width="13"
draggable="false"
>
</small>
</p>
</div> </div>
</div> </div>
</template> </template>
@ -40,6 +55,7 @@ interface Maintainer {
interface TheDeskInfo { interface TheDeskInfo {
productName: string productName: string
author: Maintainer author: Maintainer
contributors: [Maintainer]
homePage: string homePage: string
copyrightYear: string copyrightYear: string
codeName: string codeName: string
@ -50,15 +66,23 @@ interface TheDeskInfo {
export default class About extends Vue { export default class About extends Vue {
public productName: string public productName: string
public author: Maintainer public author: Maintainer
public contributors: [Maintainer]
public homePage: string public homePage: string
public copyrightYear: string public copyrightYear: string
public versions: Versions public versions: Versions
public get ctrHtml(): string {
return this.contributors.map(contributer => {
return `<a href="${contributer.url}" target="_blank">${contributer.name}</a>`
}).join(", ")
}
constructor() { constructor() {
super() super()
const thedeskInfo: TheDeskInfo = ipcRenderer.sendSync('thedesk-info') const thedeskInfo: TheDeskInfo = ipcRenderer.sendSync('thedesk-info')
this.productName = thedeskInfo.productName this.productName = thedeskInfo.productName
this.author = thedeskInfo.author this.author = thedeskInfo.author
this.contributors = thedeskInfo.contributors
this.homePage = thedeskInfo.homePage this.homePage = thedeskInfo.homePage
this.copyrightYear = thedeskInfo.copyrightYear this.copyrightYear = thedeskInfo.copyrightYear
this.versions = { this.versions = {
@ -110,7 +134,7 @@ dl.version {
text-align: left; text-align: left;
-webkit-app-region: no-drag; -webkit-app-region: no-drag;
user-select: text; user-select: text;
padding: 0.5em; padding: 0.5em 1em;
dt, dt,
dd { dd {
margin-left: 0; margin-left: 0;