storj.io/minio@v0.0.0-20230509071714-0cbc90f649b1/browser/app/js/constants.js (about)

     1  /*
     2   * MinIO Cloud Storage (C) 2016 MinIO, Inc.
     3   *
     4   * Licensed under the Apache License, Version 2.0 (the "License");
     5   * you may not use this file except in compliance with the License.
     6   * You may obtain a copy of the License at
     7   *
     8   *     http://www.apache.org/licenses/LICENSE-2.0
     9   *
    10   * Unless required by applicable law or agreed to in writing, software
    11   * distributed under the License is distributed on an "AS IS" BASIS,
    12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13   * See the License for the specific language governing permissions and
    14   * limitations under the License.
    15   */
    16  
    17  // File for all the browser constants.
    18  
    19  // minioBrowserPrefix absolute path.
    20  var p = window.location.pathname
    21  export const minioBrowserPrefix = p.slice(0, p.indexOf("/", 1))
    22  
    23  export const READ_ONLY = "readonly"
    24  export const WRITE_ONLY = "writeonly"
    25  export const READ_WRITE = "readwrite"
    26  export const NONE = "none"
    27  
    28  export const SHARE_OBJECT_EXPIRY_DAYS = 5
    29  export const SHARE_OBJECT_EXPIRY_HOURS = 0
    30  export const SHARE_OBJECT_EXPIRY_MINUTES = 0
    31  
    32  export const ACCESS_KEY_MIN_LENGTH = 3
    33  export const SECRET_KEY_MIN_LENGTH = 8
    34  
    35  export const SORT_BY_NAME = "name"
    36  export const SORT_BY_SIZE = "size"
    37  export const SORT_BY_LAST_MODIFIED = "last-modified"
    38  
    39  export const SORT_ORDER_ASC = "asc"
    40  export const SORT_ORDER_DESC = "desc"