github.com/minio/console@v1.4.1/web-app/src/common/types.ts (about)

     1  // This file is part of MinIO Console Server
     2  // Copyright (c) 2021 MinIO, Inc.
     3  //
     4  // This program is free software: you can redistribute it and/or modify
     5  // it under the terms of the GNU Affero General Public License as published by
     6  // the Free Software Foundation, either version 3 of the License, or
     7  // (at your option) any later version.
     8  //
     9  // This program is distributed in the hope that it will be useful,
    10  // but WITHOUT ANY WARRANTY; without even the implied warranty of
    11  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12  // GNU Affero General Public License for more details.
    13  //
    14  // You should have received a copy of the GNU Affero General Public License
    15  // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    16  
    17  export interface IStorageFactors {
    18    erasureCode: string;
    19    storageFactor: number;
    20    maxCapacity: string;
    21    maxFailureTolerations: number;
    22  }
    23  
    24  export interface IErasureCodeCalc {
    25    error: number;
    26    maxEC: string;
    27    erasureCodeSet: number;
    28    rawCapacity: string;
    29    defaultEC: string;
    30    storageFactors: IStorageFactors[];
    31  }
    32  
    33  export interface ErrorResponseHandler {
    34    errorMessage: string;
    35    detailedError: string;
    36    statusCode?: number;
    37  }
    38  
    39  export interface IBytesCalc {
    40    total: number;
    41    unit: string;
    42  }
    43  
    44  export interface IEmbeddedCustomButton {
    45    backgroundColor: string;
    46    textColor: string;
    47    hoverColor: string;
    48    hoverText: string;
    49    activeColor: string;
    50    activeText: string;
    51    disabledColor: string;
    52    disabledText: string;
    53  }
    54  
    55  export interface IEmbeddedCustomTable {
    56    border: string;
    57    disabledBorder: string;
    58    disabledBG: string;
    59    selected: string;
    60    deletedDisabled: string;
    61    hoverColor: string;
    62  }
    63  
    64  export interface IEmbeddedInputBox {
    65    border: string;
    66    hoverBorder: string;
    67    textColor: string;
    68    backgroundColor: string;
    69  }
    70  
    71  export interface IEmbeddedSwitch {
    72    switchBackground: string;
    73    bulletBorderColor: string;
    74    bulletBGColor: string;
    75    disabledBackground: string;
    76    disabledBulletBorderColor: string;
    77    disabledBulletBGColor: string;
    78  }
    79  
    80  export interface IEmbeddedCustomStyles {
    81    backgroundColor: string;
    82    fontColor: string;
    83    secondaryFontColor: string;
    84    borderColor: string;
    85    loaderColor: string;
    86    boxBackground: string;
    87    okColor: string;
    88    errorColor: string;
    89    warnColor: string;
    90    linkColor: string;
    91    disabledLinkColor: string;
    92    hoverLinkColor: string;
    93    tableColors: IEmbeddedCustomTable;
    94    buttonStyles: IEmbeddedCustomButton;
    95    secondaryButtonStyles: IEmbeddedCustomButton;
    96    regularButtonStyles: IEmbeddedCustomButton;
    97    inputBox: IEmbeddedInputBox;
    98    switch: IEmbeddedSwitch;
    99  }
   100  
   101  export interface SelectorTypes {
   102    label: any;
   103    value: string;
   104  }