mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-25 09:32:33 +08:00
Bump to Electron 2.0.2 🎉
This commit is contained in:
parent
9376ca0471
commit
cb311d32be
16 changed files with 58 additions and 50 deletions
|
@ -84,7 +84,7 @@ export class MetricHistogram extends React.Component {
|
|||
export class MetricGraph extends React.Component {
|
||||
componentDidMount() {
|
||||
if (!this.props.loading) {
|
||||
window.requestAnimationFrame(() => this._el && this._el.classList.add('visible'));
|
||||
window.setTimeout(() => this._el && this._el.classList.add('visible'), 50);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ export default class MessageControls extends React.Component {
|
|||
menu.append(
|
||||
new SystemMenuItem({ label: 'Copy Debug Info to Clipboard', click: this._onCopyToClipboard })
|
||||
);
|
||||
menu.popup(remote.getCurrentWindow());
|
||||
menu.popup();
|
||||
};
|
||||
|
||||
_onShowOriginal = async () => {
|
||||
|
|
|
@ -63,7 +63,7 @@ export default class MessageParticipants extends React.Component {
|
|||
click: () => Actions.composeNewDraftToRecipient(contact),
|
||||
})
|
||||
);
|
||||
menu.popup(AppEnv.getCurrentWindow());
|
||||
menu.popup();
|
||||
};
|
||||
|
||||
_renderFullContacts(contacts = []) {
|
||||
|
|
|
@ -61,8 +61,7 @@
|
|||
{
|
||||
"label": "View",
|
||||
"submenu": [
|
||||
{ "type": "separator", "id": "mailbox-navigation"},
|
||||
{ "label": "Go to Inbox", "command": "navigation:go-to-inbox" },
|
||||
{ "label": "Go to Inbox", "command": "navigation:go-to-inbox", "id": "first" },
|
||||
{ "label": "Go to Starred", "command": "navigation:go-to-starred" },
|
||||
{ "label": "Go to Sent", "command": "navigation:go-to-sent" },
|
||||
{ "label": "Go to Drafts", "command": "navigation:go-to-drafts" },
|
||||
|
|
|
@ -43,8 +43,7 @@
|
|||
{
|
||||
"label": "&View",
|
||||
"submenu": [
|
||||
{ "type": "separator", "id": "mailbox-navigation"},
|
||||
{ "label": "Go to Inbox", "command": "navigation:go-to-inbox" },
|
||||
{ "label": "Go to Inbox", "command": "navigation:go-to-inbox", "id": "first" },
|
||||
{ "label": "Go to Starred", "command": "navigation:go-to-starred" },
|
||||
{ "label": "Go to Sent", "command": "navigation:go-to-sent" },
|
||||
{ "label": "Go to Drafts", "command": "navigation:go-to-drafts" },
|
||||
|
|
|
@ -23,8 +23,7 @@
|
|||
{
|
||||
"label": "&View",
|
||||
"submenu": [
|
||||
{ "type": "separator", "id": "mailbox-navigation"},
|
||||
{ "label": "Go to Inbox", "command": "navigation:go-to-inbox" },
|
||||
{ "label": "Go to Inbox", "command": "navigation:go-to-inbox", "id": "first" },
|
||||
{ "label": "Go to Starred", "command": "navigation:go-to-starred" },
|
||||
{ "label": "Go to Sent", "command": "navigation:go-to-sent" },
|
||||
{ "label": "Go to Drafts", "command": "navigation:go-to-drafts" },
|
||||
|
|
|
@ -445,7 +445,7 @@ class EventedIFrame extends React.Component {
|
|||
}
|
||||
// Services menu appears here automatically
|
||||
|
||||
menu.popup(remote.getCurrentWindow());
|
||||
menu.popup();
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -279,7 +279,7 @@ class OutlineViewItem extends Component {
|
|||
})
|
||||
);
|
||||
}
|
||||
menu.popup(remote.getCurrentWindow());
|
||||
menu.popup();
|
||||
};
|
||||
|
||||
// Renderers
|
||||
|
|
|
@ -182,7 +182,7 @@ export default class ParticipantsTextField extends React.Component {
|
|||
click: () => this._remove([participant]),
|
||||
})
|
||||
);
|
||||
menu.popup(remote.getCurrentWindow());
|
||||
menu.popup();
|
||||
};
|
||||
|
||||
_onInputTrySubmit = (inputValue, completions = [], selectedItem) => {
|
||||
|
|
|
@ -733,7 +733,7 @@ export default class TokenizingTextField extends React.Component {
|
|||
})
|
||||
);
|
||||
}
|
||||
menu.popup(remote.getCurrentWindow());
|
||||
menu.popup();
|
||||
};
|
||||
|
||||
// Copy and Paste
|
||||
|
|
|
@ -34,7 +34,7 @@ class WorkspaceStore extends MailspringStore {
|
|||
|
||||
const { windowType } = AppEnv.getLoadSettings();
|
||||
if (windowType !== 'onboarding') {
|
||||
require('electron').webFrame.setZoomLevelLimits(1, 1);
|
||||
require('electron').webFrame.setVisualZoomLevelLimits(1, 1);
|
||||
AppEnv.config.observe('core.workspace.interfaceZoom', z => {
|
||||
if (z && _.isNumber(z)) {
|
||||
require('electron').webFrame.setZoomFactor(z);
|
||||
|
@ -67,14 +67,19 @@ class WorkspaceStore extends MailspringStore {
|
|||
type: 'radio',
|
||||
command: 'application:select-list-mode',
|
||||
checked: this._preferredLayoutMode === 'list',
|
||||
position: 'before=mailbox-navigation',
|
||||
position: 'before=first',
|
||||
},
|
||||
{
|
||||
label: 'Reading Pane On',
|
||||
type: 'radio',
|
||||
id: 'reading-pane-on',
|
||||
command: 'application:select-split-mode',
|
||||
checked: this._preferredLayoutMode === 'split',
|
||||
position: 'before=mailbox-navigation',
|
||||
position: 'before=first',
|
||||
},
|
||||
{
|
||||
type: 'separator',
|
||||
position: 'before=first',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
@ -157,7 +157,7 @@ class ToolbarMenuControl extends React.Component {
|
|||
|
||||
_onOpenMenu = () => {
|
||||
const { applicationMenu } = remote.getGlobal('application');
|
||||
applicationMenu.menu.popup(AppEnv.getCurrentWindow());
|
||||
applicationMenu.menu.popup();
|
||||
};
|
||||
|
||||
render() {
|
||||
|
|
|
@ -364,7 +364,7 @@ export default class WindowEventHandler {
|
|||
},
|
||||
})
|
||||
);
|
||||
menu.popup(remote.getCurrentWindow());
|
||||
menu.popup();
|
||||
}
|
||||
|
||||
showDevModeMessages() {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<title>Mailspring</title>
|
||||
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src * mailspring:; script-src 'self' 'unsafe-eval' chrome-extension://react-developer-tools; style-src * 'unsafe-inline' mailspring:; img-src * data: mailspring: file:;">
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src * mailspring:; script-src 'self' chrome-extension://react-developer-tools; style-src * 'unsafe-inline' mailspring:; img-src * data: mailspring: file:;">
|
||||
|
||||
<script src="index.js"></script>
|
||||
</head>
|
||||
|
|
66
package-lock.json
generated
66
package-lock.json
generated
|
@ -5,9 +5,9 @@
|
|||
"requires": true,
|
||||
"dependencies": {
|
||||
"@types/node": {
|
||||
"version": "8.10.17",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.17.tgz",
|
||||
"integrity": "sha512-3N3FRd/rA1v5glXjb90YdYUa+sOB7WrkU2rAhKZnF4TKD86Cym9swtulGuH0p9nxo7fP5woRNa8b0oFTpCO1bg==",
|
||||
"version": "8.10.20",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.20.tgz",
|
||||
"integrity": "sha512-M7x8+5D1k/CuA6jhiwuSCmE8sbUWJF0wYsjcig9WrXvwUI5ArEoUBdOXpV4JcEMrLp02/QbDjw+kI+vQeKyQgg==",
|
||||
"dev": true
|
||||
},
|
||||
"abab": {
|
||||
|
@ -124,6 +124,18 @@
|
|||
"integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=",
|
||||
"dev": true
|
||||
},
|
||||
"ansicolors": {
|
||||
"version": "0.3.2",
|
||||
"resolved": "https://registry.npmjs.org/ansicolors/-/ansicolors-0.3.2.tgz",
|
||||
"integrity": "sha1-ZlWX3oap/+Oqm/vmyuXG6kJrSXk=",
|
||||
"dev": true
|
||||
},
|
||||
"ansistyles": {
|
||||
"version": "0.1.3",
|
||||
"resolved": "https://registry.npmjs.org/ansistyles/-/ansistyles-0.1.3.tgz",
|
||||
"integrity": "sha1-XeYEFb2gcbs3EnhUyGT0GyMlRTk=",
|
||||
"dev": true
|
||||
},
|
||||
"anymatch": {
|
||||
"version": "1.3.2",
|
||||
"resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.2.tgz",
|
||||
|
@ -1091,6 +1103,12 @@
|
|||
"integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=",
|
||||
"dev": true
|
||||
},
|
||||
"builtins": {
|
||||
"version": "0.0.7",
|
||||
"resolved": "https://registry.npmjs.org/builtins/-/builtins-0.0.7.tgz",
|
||||
"integrity": "sha1-NVIZzWzxjb58Acx/0tznZc/cVJo=",
|
||||
"dev": true
|
||||
},
|
||||
"caller-path": {
|
||||
"version": "0.1.0",
|
||||
"resolved": "https://registry.npmjs.org/caller-path/-/caller-path-0.1.0.tgz",
|
||||
|
@ -1729,9 +1747,9 @@
|
|||
}
|
||||
},
|
||||
"electron": {
|
||||
"version": "1.8.7",
|
||||
"resolved": "https://registry.npmjs.org/electron/-/electron-1.8.7.tgz",
|
||||
"integrity": "sha512-q6dn8bspX8u8z6tNU4bEas6ZrdNavnrjJ6d/oz49Nb4zFIPrdh8p29AFjFlSAavypGwAVR/PhYOAGwzZSQSSVQ==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/electron/-/electron-2.0.2.tgz",
|
||||
"integrity": "sha512-XmkGVoHLOqmjZ2nU/0zEzMl3TZEz452Q1fTJFKjylg4pLYaq7na7V2uxzydVQNQukZGbERoA7ayjxXzTsXbtdA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@types/node": "^8.0.24",
|
||||
|
@ -9727,15 +9745,6 @@
|
|||
"integrity": "sha1-xQYbbg74qBd15Q9dZhUb9r83EQc=",
|
||||
"dev": true
|
||||
},
|
||||
"ansicolors": {
|
||||
"version": "0.3.2",
|
||||
"dev": true
|
||||
},
|
||||
"ansistyles": {
|
||||
"version": "0.1.3",
|
||||
"resolved": "https://registry.npmjs.org/ansistyles/-/ansistyles-0.1.3.tgz",
|
||||
"dev": true
|
||||
},
|
||||
"archy": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz",
|
||||
|
@ -10481,11 +10490,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"path-is-inside": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.1.tgz",
|
||||
"dev": true
|
||||
},
|
||||
"read": {
|
||||
"version": "1.0.7",
|
||||
"resolved": "https://registry.npmjs.org/read/-/read-1.0.7.tgz",
|
||||
|
@ -11319,10 +11323,6 @@
|
|||
"inherits": "2"
|
||||
}
|
||||
},
|
||||
"text-table": {
|
||||
"version": "0.2.0",
|
||||
"dev": true
|
||||
},
|
||||
"uid-number": {
|
||||
"version": "0.0.6",
|
||||
"resolved": "https://registry.npmjs.org/uid-number/-/uid-number-0.0.6.tgz",
|
||||
|
@ -11380,12 +11380,6 @@
|
|||
"dev": true,
|
||||
"requires": {
|
||||
"builtins": "0.0.7"
|
||||
},
|
||||
"dependencies": {
|
||||
"builtins": {
|
||||
"version": "0.0.7",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"which": {
|
||||
|
@ -11423,11 +11417,23 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"path-is-inside": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.1.tgz",
|
||||
"integrity": "sha1-mNjx0DC/BL167uShulSF1AMY/Yk=",
|
||||
"dev": true
|
||||
},
|
||||
"semver": {
|
||||
"version": "4.3.6",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-4.3.6.tgz",
|
||||
"integrity": "sha1-MAvG4OhjdPe6YQaLWx7NV/xlMto=",
|
||||
"dev": true
|
||||
},
|
||||
"text-table": {
|
||||
"version": "0.2.0",
|
||||
"resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",
|
||||
"integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
"babel-preset-react": "6.x.x",
|
||||
"chalk": "1.x.x",
|
||||
"devtron": "^1.4.0",
|
||||
"electron": "1.8.7",
|
||||
"electron": "2.0.2",
|
||||
"electron-installer-dmg": "0.2.x",
|
||||
"electron-packager": "8.7.x",
|
||||
"electron-winstaller": "2.x.x",
|
||||
|
|
Loading…
Reference in a new issue