File

src/environments/interface/ienvironment.ts

Description

Interface for the environment variable. Exposes every configuration element the config should have.

Index

Properties

Properties

api
api: string
Type : string

API link.

appVersion
appVersion: string
Type : string

Property holding the application version.

artificialMinLoadingTime
artificialMinLoadingTime: number
Type : number

Artificial minimal loading time in ms. Should only be used in dev or staging.

artificialRandomLoadingTime
artificialRandomLoadingTime: number
Type : number

Random additional artificial loading time in ms. Should only be used in dev or staging.

baseHref
baseHref: string
Type : string

App base href.

compactLogDisplay
compactLogDisplay: boolean
Type : boolean

If true, the logs will be compact.

fullLoadingMessages
fullLoadingMessages: boolean
Type : boolean

If true, the loading messages will be full of information. Should be on for production.

isTesting
isTesting: boolean
Type : boolean

If true, the app is currently being tested. Usefull to disable, for instance, delays on html requests artificially added in development.

logLevel
logLevel: LogLevel
Type : LogLevel

Minimum LogLevel that will actually be logged in this environment.

logWithDate
logWithDate: boolean
Type : boolean

If true, logs will contain the date of log.

production
production: boolean
Type : boolean

If true, the environment is the production environment.

website
website: string
Type : string

Website link

import { LogLevel } from 'src/app/services/log/logLevel/logLevel';

/**
 * Interface for the environment variable. Exposes every configuration element
 * the config should have.
 */
export interface IEnvironment {
  /** If true, the environment is the production environment. */
  production: boolean;
  /** Minimum {@link LogLevel} that will actually be logged in this environment. */
  logLevel: LogLevel;
  /** If true, the logs will be compact. */
  compactLogDisplay: boolean;
  /** API link. */
  api: string;
  /** Website link */
  website: string;
  /** App base href. */
  baseHref: string;
  /** If true, logs will contain the date of log. */
  logWithDate: boolean;
  /** Property holding the application version. */
  appVersion: string;
  /**
   * If true, the app is currently being tested. Usefull to disable, for
   * instance, delays on html requests artificially added in development.
   */
  isTesting: boolean;
  /**
   * If true, the loading messages will be full of information. Should be on for
   * production.
   */
  fullLoadingMessages: boolean;
  /**
   * Artificial minimal loading time in ms. Should only be used in dev or
   * staging.
   */
  artificialMinLoadingTime: number;
  /**
   * Random additional artificial loading time in ms. Should only be used in dev
   * or staging.
   */
  artificialRandomLoadingTime: number;
}

results matching ""

    No results matching ""