Mailspring/src/window-thin-bootstrap.coffee
Ben Gotow ed2a5c90d9 feat(preferences): WIP Preferences panel
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
2015-08-14 15:40:11 -07:00

37 lines
978 B
CoffeeScript

path = require('path')
fs = require('fs-plus')
ipc = require('ipc')
require('module').globalPaths.push(path.resolve('exports'))
# Swap out Node's native Promise for Bluebird, which allows us to
# do fancy things like handle exceptions inside promise blocks
global.Promise = require 'bluebird'
global.atom =
commands:
add: ->
remove: ->
config:
get: -> null
set: ->
onDidChange: ->
onBeforeUnload: ->
getWindowLoadTime: -> 0
getConfigDirPath: ->
@configDirPath ?= fs.absolute('~/.nylas')
getLoadSettings: ->
@loadSettings ?= JSON.parse(decodeURIComponent(location.search.substr(14)))
inSpecMode: ->
false
isMainWindow: ->
false
# Like sands through the hourglass, so are the days of our lives.
require './window'
prefs = require '../internal_packages/preferences/lib/main'
prefs.activate()
ipc.on 'command', (command, args) ->
if command is 'window:toggle-dev-tools'
ipc.send('call-window-method', 'toggleDevTools')