mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 01:54:40 +08:00
1a576d92dc
Summary: Move sync workers and Edgehill token checks to work window Move the task queue and database setup to the work window Move ContactStore background refresh to work window Store the task queue in the database WIP The TaskQueue now puts tasks in the database instead of in a file, which also means it can be observed Move all delta sync and initial sync to a package, make NylasSyncStore which exposes read-only sync state DraftStore no longer reads task status. Once you set the "sending" bit on a draft, it never gets unset. But that's fine actually. If your package lists windowTypes, you *only* get loaded in those windowTypes. If you specify no windowTypes, you get loaded in the root window. This means that onboarding, worker-ui, worker-sync, etc. no longer get loaded into the main window ActivitySidebar has a special little store that observes the task queue since it's no longer in the window Move "toggle component regions" / "toggle react remote" to the Developer menu Move sync worker specs, update draft store specs to not rely on TaskQueue at all Test Plan: Run existing tests, all pass Reviewers: dillon, evan Reviewed By: evan Differential Revision: https://phab.nylas.com/D1936
94 lines
3.2 KiB
Text
94 lines
3.2 KiB
Text
'menu': [
|
|
{
|
|
label: 'Nylas'
|
|
submenu: [
|
|
{ label: 'About Nylas', command: 'application:about' }
|
|
{ type: 'separator' }
|
|
{ label: 'Preferences', command: 'application:open-preferences' }
|
|
{ type: 'separator' }
|
|
{ label: 'Link External Account', command: 'atom-workspace:add-account' }
|
|
{ label: 'Log Out', command: 'application:logout' }
|
|
{ label: 'VERSION', enabled: false }
|
|
{ label: 'Restart and Install Update', command: 'application:install-update', visible: false}
|
|
{ label: 'Check for Update', command: 'application:check-for-update', visible: false}
|
|
{ label: 'Downloading Update', enabled: false, visible: false}
|
|
{ type: 'separator' }
|
|
{ type: 'separator' }
|
|
{ label: 'Services', submenu: [] }
|
|
{ type: 'separator' }
|
|
{ label: 'Hide Nylas', command: 'application:hide' }
|
|
{ label: 'Hide Others', command: 'application:hide-other-applications' }
|
|
{ label: 'Show All', command: 'application:unhide-all-applications' }
|
|
{ type: 'separator' }
|
|
{ label: 'Quit', command: 'application:quit' }
|
|
]
|
|
}
|
|
{
|
|
label: 'File'
|
|
submenu: [
|
|
{ label: 'New Message', command: 'application:new-message' }
|
|
{ type: 'separator' }
|
|
{ label: 'Close Window', command: 'window:close' }
|
|
]
|
|
}
|
|
|
|
{
|
|
label: 'Edit'
|
|
submenu: [
|
|
{ label: 'Undo', command: 'core:undo' }
|
|
{ label: 'Redo', command: 'core:redo' }
|
|
{ type: 'separator' }
|
|
{ label: 'Cut', command: 'core:cut' }
|
|
{ label: 'Copy', command: 'core:copy' }
|
|
{ label: 'Paste', command: 'core:paste' }
|
|
{ label: 'Select All', command: 'core:select-all' }
|
|
]
|
|
}
|
|
|
|
{
|
|
label: 'View'
|
|
submenu: [
|
|
{ label: 'Reload', command: 'window:reload' }
|
|
{ label: 'Toggle Full Screen', command: 'window:toggle-full-screen' }
|
|
]
|
|
}
|
|
{
|
|
label: 'Developer'
|
|
submenu: [
|
|
{ label: 'Toggle Component Regions', command: 'window:toggle-component-regions' }
|
|
{ label: 'Toggle React Remote', command: 'window:toggle-react-remote' }
|
|
{ type: 'separator' }
|
|
{ label: 'Relaunch with Debug Flags...', command: 'application:open-dev' }
|
|
{ type: 'separator' }
|
|
{ label: 'Open Detailed Logs', command: 'window:open-errorreporter-logs' }
|
|
{ label: 'Ship Detailed Logs to Nylas', command: 'application:ship-logs' }
|
|
{ type: 'separator' }
|
|
{ label: 'Create a Package...', command: 'application:create-package' }
|
|
{ label: 'Run Package Specs...', command: 'application:run-package-specs' }
|
|
{ label: 'Run Nylas Mail Specs', command: 'application:run-all-specs' }
|
|
{ label: 'Toggle Developer Tools', command: 'window:toggle-dev-tools' }
|
|
]
|
|
}
|
|
{
|
|
label: 'Window'
|
|
submenu: [
|
|
{ label: 'Minimize', command: 'application:minimize' }
|
|
{ label: 'Zoom', command: 'application:zoom' }
|
|
{ type: 'separator' }
|
|
{ label: 'Message Viewer', command: 'application:show-main-window' }
|
|
{ label: 'Activity', command: 'application:show-work-window' }
|
|
{ type: 'separator' }
|
|
{ label: 'Bring All to Front', command: 'application:bring-all-windows-to-front' }
|
|
]
|
|
}
|
|
|
|
{
|
|
label: 'Help'
|
|
submenu: [
|
|
{ label: 'Send Feedback to Nylas', command: 'application:send-feedback' }
|
|
]
|
|
}
|
|
]
|
|
|
|
'context-menu': [
|
|
]
|