1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 02:06:29 +00:00

Add policy

This commit is contained in:
asmsuechan
2017-07-22 13:58:02 +09:00
parent 275e3317a3
commit a40385f87f
2 changed files with 15 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ import CSSModules from 'browser/lib/CSSModules'
import styles from './InfoTab.styl' import styles from './InfoTab.styl'
import ConfigManager from 'browser/main/lib/ConfigManager' import ConfigManager from 'browser/main/lib/ConfigManager'
import store from 'browser/main/store' import store from 'browser/main/store'
import AwsMobileAnalyticsConfig from 'browser/main/lib/AwsMobileAnalyticsConfig'
const electron = require('electron') const electron = require('electron')
const { shell, remote } = electron const { shell, remote } = electron
@@ -39,6 +40,9 @@ class InfoTab extends React.Component {
type: 'SET_CONFIG', type: 'SET_CONFIG',
config: newConfig config: newConfig
}) })
if (newConfig.amaEnabled) {
AwsMobileAnalyticsConfig.recordDynamitCustomEvent('DISABLE_AMA')
}
} }
render () { render () {
@@ -90,12 +94,17 @@ class InfoTab extends React.Component {
License: GPL v3 License: GPL v3
</li> </li>
</ul> </ul>
<hr />
<div styleName='policy'>Data collectiong policy</div>
<p>We collect only the amount of users on Boostnote for DAU and any detail information
<p>such as a note's content or title is not collected.</p>
<p>You can see how it works on <a href='https://github.com/BoostIO/Boostnote'>GitHub</a></p>
<input onChange={(e) => this.handleConfigChange(e)} <input onChange={(e) => this.handleConfigChange(e)}
checked={this.state.config.amaEnabled} checked={this.state.config.amaEnabled}
ref='amaEnabled' ref='amaEnabled'
type='checkbox' type='checkbox'
/> />
Enable to send analytics to our servers Enable to send analytics to our servers<br />
<button onClick={(e) => this.handleSaveButtonClick(e)}>Save</button> <button onClick={(e) => this.handleSaveButtonClick(e)}>Save</button>
</div> </div>
) )

View File

@@ -41,7 +41,10 @@
a a
color #4E8EC6 color #4E8EC6
text-decoration none text-decoration none
.policy
font-size 20px
body[data-theme="dark"] body[data-theme="dark"]
.root .root
color alpha($tab--dark-text-color, 80%) color alpha($tab--dark-text-color, 80%)