mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
75 lines
2.1 KiB
JavaScript
75 lines
2.1 KiB
JavaScript
import React from 'react'
|
|
import CSSModules from 'browser/lib/CSSModules'
|
|
import styles from './InfoTab.styl'
|
|
|
|
const electron = require('electron')
|
|
const { shell, remote } = electron
|
|
const appVersion = remote.app.getVersion()
|
|
|
|
class InfoTab extends React.Component {
|
|
constructor (props) {
|
|
super(props)
|
|
|
|
this.state = {
|
|
}
|
|
}
|
|
|
|
handleLinkClick (e) {
|
|
shell.openExternal(e.currentTarget.href)
|
|
e.preventDefault()
|
|
}
|
|
|
|
render () {
|
|
return (
|
|
<div styleName='root'>
|
|
<div styleName='header'>Info</div>
|
|
|
|
<div styleName='top'>
|
|
<div styleName='icon-space'>
|
|
<img styleName='icon' src='../resources/app.png' width='92' height='92' />
|
|
<div styleName='icon-right'>
|
|
<div styleName='appId'>Boostnote {appVersion}</div>
|
|
<div styleName='description'>
|
|
An open source note-taking app made for programmers just like you.
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<ul styleName='list'>
|
|
<li>
|
|
<a href='https://boostnote.io'
|
|
onClick={(e) => this.handleLinkClick(e)}
|
|
>Website</a>
|
|
</li>
|
|
<li>
|
|
<a href='https://boostnote.paintory.com/'
|
|
onClick={(e) => this.handleLinkClick(e)}
|
|
>Boostnote Shop</a>: Products are shipped to all over the world 🌏
|
|
</li>
|
|
<li>
|
|
<a href='https://www.patreon.com/boostnote'
|
|
onClick={(e) => this.handleLinkClick(e)}
|
|
>Donation via Patreon</a>: Thank you for your support 🎉
|
|
</li>
|
|
<li>
|
|
<a href='https://github.com/BoostIO/Boostnote/issues'
|
|
onClick={(e) => this.handleLinkClick(e)}
|
|
>GitHub Issue</a>: Let us hear your feedback 🙌
|
|
</li>
|
|
<li styleName="cc">
|
|
Copyright (C) 2017 Maisin&Co.
|
|
</li>
|
|
<li styleName="cc">
|
|
License: GPL v3
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
)
|
|
}
|
|
}
|
|
|
|
InfoTab.propTypes = {
|
|
}
|
|
|
|
export default CSSModules(InfoTab, styles)
|