Skip to content
This repository has been archived by the owner on Sep 22, 2021. It is now read-only.

Commit

Permalink
Added userscripts link. Version bump to 1.3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas101 committed Sep 20, 2016
1 parent 236030d commit a240e19
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wmail",
"version": "1.3.8",
"version": "1.3.9",
"prerelease": true,
"description": "The missing desktop client for Gmail and Google Inbox",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ const mailboxActions = require('../../../stores/mailbox/mailboxActions')
const styles = require('../settingStyles')
const shallowCompare = require('react-addons-shallow-compare')
const {mailboxDispatch} = require('../../../Dispatch')
const { USER_SCRIPTS_WEB_URL } = require('shared/constants')
const Colors = require('material-ui/styles/colors')
const {
remote: {shell}
} = window.nativeRequire('electron')

module.exports = React.createClass({
/* **************************************************************************/
Expand Down Expand Up @@ -77,6 +82,12 @@ module.exports = React.createClass({
icon={<FontIcon className='material-icons'>code</FontIcon>}
onTouchTap={() => this.setState({ editingCSS: false, editingJS: true })} />
</div>
<div style={styles.button}>
<a
style={{color: Colors.blue700, fontSize: '85%', marginBottom: 10, display: 'block'}}
onClick={(evt) => { evt.preventDefault(); shell.openExternal(USER_SCRIPTS_WEB_URL) }}
href={USER_SCRIPTS_WEB_URL}>Find custom userscripts</a>
</div>
<CustomCodeEditingModal
open={this.state.editingCSS || this.state.editingJS}
title={editingTitle}
Expand Down
1 change: 1 addition & 0 deletions src/shared/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = Object.freeze({
UPDATE_DOWNLOAD_URL: 'http://thomas101.github.io/wmail/download',
UPDATE_CHECK_URL: 'https://thomas101.github.io/wmail/version.json',
PRIVACY_URL: 'https://thomas101.github.io/wmail/privacy',
USER_SCRIPTS_WEB_URL: 'https://github.com/Thomas101/wmail-user-scripts',
UPDATE_CHECK_INTERVAL: 1000 * 60 * 60 * 12, // 12 hours

GMAIL_PROFILE_SYNC_MS: 1000 * 60 * 60, // 60 mins
Expand Down

0 comments on commit a240e19

Please sign in to comment.