mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-29 03:43:16 +08:00
ebb9c9735f
- Creates OutlineView generic component and uses that instead of custom code - Refactors AccountSidebarStore: - Split the generation of the state tree into smaller functions - Adds different types of account sidebar items and sections, which contain logic and props necessary to be rendered as OutlineViewItems, and removes that logic from the store - Removes WorkspaceStore.SidebarItem and removes the ability to register new sidebar items. If people want to add something to the sidebar they can just register a Component via the component registry and use the OutlineView component - Removes the DraftListSidebarItem, which was basically duplicated code for an item but with a different data source. This is now handled generically by the account sidebar by rendering OutlineViewItems with different props and handlers - Clean ups here and there: - TODO - Add AccountSwitcher - Revisit calculation and generation of the state tree. Should the parent store contain and update the entire state all the time. Should separate items inside the tree have their own data sources? - This would avoid having the AccountSidebarStore listen to a bunch of different other stores, and the specific logic wold be contained inside each item type.
32 lines
842 B
Text
32 lines
842 B
Text
@import "variables/ui-variables";
|
|
@import "variables/ui-mixins";
|
|
|
|
@import (css) "font-awesome.min.css";
|
|
|
|
@import "normalize";
|
|
|
|
@import "type";
|
|
@import "inputs";
|
|
@import "buttons";
|
|
@import "dropdowns";
|
|
@import "workspace";
|
|
@import "resizable";
|
|
@import "selection";
|
|
@import "utilities";
|
|
|
|
@import "components/popover";
|
|
@import "components/menu";
|
|
@import "components/switch";
|
|
@import "components/tokenizing-text-field";
|
|
@import "components/extra";
|
|
@import "components/list-tabular";
|
|
@import "components/disclosure-triangle";
|
|
@import "components/button-dropdown";
|
|
@import "components/scroll-region";
|
|
@import "components/spinner";
|
|
@import "components/generated-form";
|
|
@import "components/unsafe";
|
|
@import "components/key-commands-region";
|
|
@import "components/contenteditable";
|
|
@import "components/editable-list";
|
|
@import "components/outline-view";
|