mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 10:11:25 +08:00
5533755b03
Summary: Depends on D2049 This change replaces the onboarding flow to include new graphics, copy, and support for the new Nylas auth flow. New account choosing UI presents a list of account types, rather than guessing based on an entered email. Pages before and after introduce the user to different features of the client. Known issue: Polling for gmail account connection works, but continues even if you leave the page. Test Plan: Manual testing. Reviewers: evan Reviewed By: evan Differential Revision: https://phab.nylas.com/D2050
43 lines
1.5 KiB
CoffeeScript
43 lines
1.5 KiB
CoffeeScript
# Publically exposed Nylas UI Components
|
|
class NylasComponentKit
|
|
@load = (prop, path) ->
|
|
Object.defineProperty @prototype, prop,
|
|
get: -> require "../src/components/#{path}"
|
|
|
|
@loadFrom = (prop, path) ->
|
|
Object.defineProperty @prototype, prop,
|
|
get: ->
|
|
exported = require "../src/components/#{path}"
|
|
return exported[prop]
|
|
|
|
@load "Menu", 'menu'
|
|
@load "DropZone", 'drop-zone'
|
|
@load "Spinner", 'spinner'
|
|
@load "Popover", 'popover'
|
|
@load "Flexbox", 'flexbox'
|
|
@load "RetinaImg", 'retina-img'
|
|
@load "ListTabular", 'list-tabular'
|
|
@load "DraggableImg", 'draggable-img'
|
|
@load "EventedIFrame", 'evented-iframe'
|
|
@load "ButtonDropdown", 'button-dropdown'
|
|
@load "MultiselectList", 'multiselect-list'
|
|
@load "InjectedComponent", 'injected-component'
|
|
@load "TokenizingTextField", 'tokenizing-text-field'
|
|
@load "MultiselectActionBar", 'multiselect-action-bar'
|
|
@load "InjectedComponentSet", 'injected-component-set'
|
|
@load "TimeoutTransitionGroup", 'timeout-transition-group'
|
|
@load "ConfigPropContainer", "config-prop-container"
|
|
|
|
@load "ScrollRegion", 'scroll-region'
|
|
@load "ResizableRegion", 'resizable-region'
|
|
@load "FocusTrackingRegion", 'focus-tracking-region'
|
|
|
|
@loadFrom "MailLabel", "mail-label"
|
|
@loadFrom "LabelColorizer", "mail-label"
|
|
@load "MailImportantIcon", 'mail-important-icon'
|
|
|
|
@loadFrom "FormItem", "generated-form"
|
|
@loadFrom "GeneratedForm", "generated-form"
|
|
@loadFrom "GeneratedFieldset", "generated-form"
|
|
|
|
module.exports = new NylasComponentKit()
|