mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 04:25:31 +08:00
ed2a5c90d9
Summary: Things still to come: - General tab - Signatures tab (potentially remove and land) Adding emacs things to gitignore Adding progress. iterating on html/css is incredibly painful Added layout for accounts page. Adding layout for appearance page layout for shortcuts preferences page adding layount for notifications menu Adding signatures layout WIP WIP - tab switching, accounts tab WIP ALL THE THINGS Keymap template support (Gmail / outlook, etc.) Test Plan: No tests atm Reviewers: evan Differential Revision: https://phab.nylas.com/D1890
57 lines
1.6 KiB
CoffeeScript
57 lines
1.6 KiB
CoffeeScript
module.exports =
|
|
activate: (@state={}) ->
|
|
ipc = require 'ipc'
|
|
React = require 'react'
|
|
Preferences = require('./preferences')
|
|
|
|
{ReactRemote,
|
|
Actions} = require('nylas-exports')
|
|
|
|
Actions.registerPreferencesTab({
|
|
icon: 'ic-settings-general.png'
|
|
name: 'General'
|
|
component: require './tabs/preferences-general'
|
|
})
|
|
Actions.registerPreferencesTab({
|
|
icon: 'ic-settings-accounts.png'
|
|
name: 'Accounts'
|
|
component: require './tabs/preferences-accounts'
|
|
})
|
|
# Actions.registerPreferencesTab({
|
|
# icon: 'ic-settings-mailrules.png'
|
|
# name: 'Mail Rules'
|
|
# component: require './tabs/preferences-mailrules'
|
|
# })
|
|
Actions.registerPreferencesTab({
|
|
icon: 'ic-settings-shortcuts.png'
|
|
name: 'Shortcuts'
|
|
component: require './tabs/preferences-keymaps'
|
|
})
|
|
Actions.registerPreferencesTab({
|
|
icon: 'ic-settings-notifications.png'
|
|
name: 'Notifications'
|
|
component: require './tabs/preferences-notifications'
|
|
})
|
|
Actions.registerPreferencesTab({
|
|
icon: 'ic-settings-appearance.png'
|
|
name: 'Appearance'
|
|
component: require './tabs/preferences-appearance'
|
|
})
|
|
# Actions.registerPreferencesTab({
|
|
# icon: 'ic-settings-signatures.png'
|
|
# name: 'Signatures'
|
|
# component: require './tabs/preferences-signatures'
|
|
# })
|
|
|
|
ipc.on 'open-preferences', (detail) ->
|
|
ReactRemote.openWindowForComponent(Preferences, {
|
|
tag: 'preferences'
|
|
width: 520
|
|
height: 400
|
|
resizable: false
|
|
stylesheetRegex: /preferences/
|
|
})
|
|
|
|
deactivate: ->
|
|
|
|
serialize: -> @state
|