mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
remove OSSAnnounceModal
This commit is contained in:
@@ -41,7 +41,7 @@ export default class MainContainer extends React.Component {
|
|||||||
onWheel={(e) => this.handleWheel(e)}
|
onWheel={(e) => this.handleWheel(e)}
|
||||||
>
|
>
|
||||||
{this.state.updateAvailable ? (
|
{this.state.updateAvailable ? (
|
||||||
<button onClick={this.updateApp} className='appUpdateButton'><i className='fa fa-cloud-download'/> Update available!</button>
|
<button onClick={this.updateApp} className='appUpdateButton'><i className='fa fa-cloud-download'/> Update available!</button>
|
||||||
) : null}
|
) : null}
|
||||||
<HomePage/>
|
<HomePage/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -4,8 +4,6 @@ import store from './store'
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import ReactDOM from 'react-dom'
|
import ReactDOM from 'react-dom'
|
||||||
require('!!style!css!stylus?sourceMap!../styles/main/index.styl')
|
require('!!style!css!stylus?sourceMap!../styles/main/index.styl')
|
||||||
import { openModal } from 'browser/lib/modal'
|
|
||||||
import OSSAnnounceModal from './modal/OSSAnnounceModal'
|
|
||||||
import activityRecord from 'browser/lib/activityRecord'
|
import activityRecord from 'browser/lib/activityRecord'
|
||||||
import fetchConfig from '../lib/fetchConfig'
|
import fetchConfig from '../lib/fetchConfig'
|
||||||
const electron = require('electron')
|
const electron = require('electron')
|
||||||
@@ -84,12 +82,4 @@ ReactDOM.render((
|
|||||||
), el, function () {
|
), el, function () {
|
||||||
let loadingCover = document.getElementById('loadingCover')
|
let loadingCover = document.getElementById('loadingCover')
|
||||||
loadingCover.parentNode.removeChild(loadingCover)
|
loadingCover.parentNode.removeChild(loadingCover)
|
||||||
let status = JSON.parse(localStorage.getItem('status'))
|
|
||||||
if (status == null) status = {}
|
|
||||||
|
|
||||||
if (!status.ossAnnounceWatched) {
|
|
||||||
openModal(OSSAnnounceModal)
|
|
||||||
status.ossAnnounceWatched = true
|
|
||||||
localStorage.setItem('status', JSON.stringify(status))
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,29 +0,0 @@
|
|||||||
import React, { PropTypes } from 'react'
|
|
||||||
import ExternalLink from 'browser/components/ExternalLink'
|
|
||||||
|
|
||||||
export default class OSSAnnounceModal extends React.Component {
|
|
||||||
handleCloseBtnClick (e) {
|
|
||||||
this.props.close()
|
|
||||||
}
|
|
||||||
render () {
|
|
||||||
return (
|
|
||||||
<div className='OSSAnnounceModal modal'>
|
|
||||||
|
|
||||||
<div className='OSSAnnounceModal-title'>Boostnote has been Open-sourced</div>
|
|
||||||
|
|
||||||
<ExternalLink className='OSSAnnounceModal-link' href='https://github.com/BoostIO/Boostnote'>
|
|
||||||
https://github.com/BoostIO/Boostnote
|
|
||||||
</ExternalLink>
|
|
||||||
|
|
||||||
<button
|
|
||||||
className='OSSAnnounceModal-closeBtn'
|
|
||||||
onClick={(e) => this.handleCloseBtnClick(e)}
|
|
||||||
>Close</button>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
OSSAnnounceModal.propTypes = {
|
|
||||||
close: PropTypes.func
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user