Update copyright
This commit is contained in:
parent
40a814e9d8
commit
367b9aa168
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"appId": "dev.kpherox.thedesk-vue",
|
||||
"copyright": "Copyright © 2018 TheDesk",
|
||||
"copyrightYear": "2018",
|
||||
"codeName": "Pre Theater",
|
||||
"documentURL": "https://github.com/kPherox/TheDesk-Vue#readme"
|
||||
}
|
|
@ -4,7 +4,7 @@
|
|||
"private": true,
|
||||
"description": "TheDesk is a Mastodon client for PC.",
|
||||
"author": {
|
||||
"name": "Cutls",
|
||||
"name": "Cutls P",
|
||||
"url": "https://kirishima.clooud/@Cutls",
|
||||
"email": "web-pro@cutls.com"
|
||||
},
|
||||
|
|
|
@ -14,13 +14,14 @@ import Application from './main/Application'
|
|||
import ApplicationMenu from "./main/ApplicationMenu";
|
||||
|
||||
export type PackageJson = typeof import('../package.json');
|
||||
import { homepage } from '../package.json'
|
||||
import { author, homepage } from '../package.json'
|
||||
import TheDeskInfo from '../info.json'
|
||||
export type TheDeskInfoObject = typeof TheDeskInfo;
|
||||
|
||||
ipcMain.on('thedesk-info', (event: Event) => {
|
||||
event.returnValue = Object.assign({
|
||||
productName: app.getName(),
|
||||
author: author,
|
||||
homePage: homepage,
|
||||
versions: Object.assign(pick(process.versions, ["chrome", "electron", "node"]), { internal: app.getVersion() }),
|
||||
}, TheDeskInfo)
|
||||
|
|
|
@ -15,8 +15,13 @@
|
|||
<dd :key="'ver-'+i">{{ version }}</dd>
|
||||
</template>
|
||||
</dl>
|
||||
<div id="copyright">
|
||||
<small>{{ copyright }}</small>
|
||||
<div id="credits">
|
||||
<p id="copyright">
|
||||
<small>
|
||||
Copyright © {{ copyrightYear }}
|
||||
<a :href="author.url">{{ author.name }}</a>
|
||||
</small>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -25,27 +30,43 @@
|
|||
import { Component, Vue } from "vue-property-decorator"
|
||||
import { ipcRenderer } from "electron"
|
||||
|
||||
type Versions = {[key: string]: string}
|
||||
type Versions = { [key: string]: string }
|
||||
|
||||
interface Maintainer {
|
||||
name: string
|
||||
url: string
|
||||
email: string
|
||||
}
|
||||
interface TheDeskInfo {
|
||||
productName: string
|
||||
author: Maintainer
|
||||
homePage: string
|
||||
copyrightYear: string
|
||||
codeName: string
|
||||
versions: Versions
|
||||
}
|
||||
|
||||
@Component
|
||||
export default class About extends Vue {
|
||||
public productName: string
|
||||
public author: Maintainer
|
||||
public homePage: string
|
||||
public copyright: string
|
||||
public copyrightYear: string
|
||||
public versions: Versions
|
||||
|
||||
constructor() {
|
||||
super()
|
||||
let { productName, homePage, copyright, codeName, versions } = ipcRenderer.sendSync('thedesk-info')
|
||||
this.productName = productName
|
||||
this.homePage = homePage
|
||||
this.copyright = copyright
|
||||
const thedeskInfo: TheDeskInfo = ipcRenderer.sendSync('thedesk-info')
|
||||
this.productName = thedeskInfo.productName
|
||||
this.author = thedeskInfo.author
|
||||
this.homePage = thedeskInfo.homePage
|
||||
this.copyrightYear = thedeskInfo.copyrightYear
|
||||
this.versions = {
|
||||
"Code Name": codeName,
|
||||
"Internal Version": versions.internal,
|
||||
"Chromium": versions.chrome,
|
||||
"Electron": versions.electron,
|
||||
"Node.js": versions.node,
|
||||
"Code Name": thedeskInfo.codeName,
|
||||
"Internal Version": thedeskInfo.versions.internal,
|
||||
"Chromium": thedeskInfo.versions.chrome,
|
||||
"Electron": thedeskInfo.versions.electron,
|
||||
"Node.js": thedeskInfo.versions.node,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -76,6 +97,11 @@ body {
|
|||
-webkit-app-region: no-drag;
|
||||
user-select: auto;
|
||||
}
|
||||
#credits {
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
dl.version {
|
||||
margin: 0;
|
||||
display: grid;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const { productName } = require("./package.json");
|
||||
const { appId, copyright } = require("./info.json");
|
||||
const { productName, author } = require("./package.json");
|
||||
const { appId, copyrightYear } = require("./info.json");
|
||||
|
||||
module.exports = {
|
||||
pages: {
|
||||
|
@ -30,7 +30,7 @@ module.exports = {
|
|||
mainProcessTypeChecking: true,
|
||||
builderOptions: {
|
||||
appId: appId,
|
||||
copyright: copyright,
|
||||
copyright: `Copyright © ${copyrightYear} ${author.name}`,
|
||||
win: {
|
||||
"target": [
|
||||
"nsis",
|
||||
|
|
Loading…
Reference in New Issue
Block a user