mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 10:12:00 +08:00
refactor(extensions): Move extensions outside of flux/ folder
Not really related to flux, makes more sense to be inside src/
This commit is contained in:
parent
75fb478dd7
commit
c0a5e0d715
7 changed files with 7 additions and 7 deletions
|
@ -6,7 +6,7 @@ ModelQuery = require '../../src/flux/models/query'
|
|||
AccountStore = require '../../src/flux/stores/account-store'
|
||||
DatabaseStore = require '../../src/flux/stores/database-store'
|
||||
DraftStore = require '../../src/flux/stores/draft-store'
|
||||
ComposerExtension = require '../../flux/src/extensions/composer-extension'
|
||||
ComposerExtension = require '../../src/extensions/composer-extension'
|
||||
SendDraftTask = require '../../src/flux/tasks/send-draft'
|
||||
DestroyDraftTask = require '../../src/flux/tasks/destroy-draft'
|
||||
SoundRegistry = require '../../src/sound-registry'
|
||||
|
|
|
@ -55,7 +55,7 @@ Registry.include(Listener);
|
|||
|
||||
export const Composer = new Registry(
|
||||
'Composer',
|
||||
require('./flux/extensions/composer-extension-adapter')
|
||||
require('./extensions/composer-extension-adapter')
|
||||
);
|
||||
|
||||
export const MessageView = new Registry(
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
_ = require 'underscore'
|
||||
{deprecate} = require '../../deprecate-utils'
|
||||
DOMUtils = require '../../dom-utils'
|
||||
{deprecate} = require '../deprecate-utils'
|
||||
DOMUtils = require '../dom-utils'
|
||||
|
||||
ComposerExtensionAdapter = (extension) ->
|
||||
|
|
@ -133,9 +133,9 @@ class NylasExports
|
|||
|
||||
# Extensions
|
||||
@require "ExtensionRegistry", 'extension-registry'
|
||||
@require "ContenteditableExtension", 'flux/extensions/contenteditable-extension'
|
||||
@require "ComposerExtension", 'flux/extensions/composer-extension'
|
||||
@require "MessageViewExtension", 'flux/extensions/message-view-extension'
|
||||
@require "ContenteditableExtension", 'extensions/contenteditable-extension'
|
||||
@require "ComposerExtension", 'extensions/composer-extension'
|
||||
@require "MessageViewExtension", 'extensions/message-view-extension'
|
||||
|
||||
# React Components
|
||||
@get "React", -> require 'react' # Our version of React for 3rd party use
|
||||
|
|
Loading…
Reference in a new issue