mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 05:29:20 +03:00
Code refactoring
Flow first look
This commit is contained in:
parent
2f841524cb
commit
e6e0b02849
71 changed files with 2092 additions and 1836 deletions
|
|
@ -6,7 +6,6 @@ import {AbstractComponent} from 'Component/Abstract';
|
|||
class AbstracCheckbox extends AbstractComponent
|
||||
{
|
||||
/**
|
||||
* @constructor
|
||||
* @param {Object} params = {}
|
||||
*/
|
||||
constructor(params = {}) {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ import {AbstractComponent} from 'Component/Abstract';
|
|||
class AbstracRadio extends AbstractComponent
|
||||
{
|
||||
/**
|
||||
* @constructor
|
||||
* @param {Object} params
|
||||
*/
|
||||
constructor(params) {
|
||||
|
|
|
|||
|
|
@ -5,9 +5,7 @@ import {isUnd} from 'Common/Utils';
|
|||
|
||||
class AbstractComponent
|
||||
{
|
||||
constructor() {
|
||||
this.disposable = [];
|
||||
}
|
||||
disposable = [];
|
||||
|
||||
dispose() {
|
||||
this.disposable.forEach((funcToDispose) => {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ import {AbstractComponent} from 'Component/Abstract';
|
|||
class AbstractInput extends AbstractComponent
|
||||
{
|
||||
/**
|
||||
* @constructor
|
||||
* @param {Object} params
|
||||
*/
|
||||
constructor(params) {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ import {AbstracCheckbox} from 'Component/AbstracCheckbox';
|
|||
class CheckboxMaterialDesignComponent extends AbstracCheckbox
|
||||
{
|
||||
/**
|
||||
* @constructor
|
||||
* @param {Object} params
|
||||
*/
|
||||
constructor(params) {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ import {AbstractComponent, componentExportHelper} from 'Component/Abstract';
|
|||
class SaveTriggerComponent extends AbstractComponent
|
||||
{
|
||||
/**
|
||||
* @constructor
|
||||
* @param {Object} params
|
||||
*/
|
||||
constructor(params) {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import {AbstractComponent, componentExportHelper} from 'Component/Abstract';
|
|||
class ScriptComponent extends AbstractComponent
|
||||
{
|
||||
/**
|
||||
* @constructor
|
||||
* @param {Object} params
|
||||
*/
|
||||
constructor(params) {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ import {AbstractInput} from 'Component/AbstractInput';
|
|||
class SelectComponent extends AbstractInput
|
||||
{
|
||||
/**
|
||||
* @constructor
|
||||
* @param {Object} params
|
||||
*/
|
||||
constructor(params) {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ const DEFAULT_ROWS = 5;
|
|||
class TextAreaComponent extends AbstractInput
|
||||
{
|
||||
/**
|
||||
* @constructor
|
||||
* @param {Object} params
|
||||
*/
|
||||
constructor(params) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue