All files / src/app/core/configurations injection-keys.ts

100% Statements 15/15
100% Branches 0/0
100% Functions 1/1
100% Lines 15/15

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63225x   225x         225x         225x 2x           225x             225x         225x         225x         225x         225x         225x           225x   225x   225x  
import { InjectionToken } from '@angular/core';
 
import { createEnvironmentInjectionToken } from 'ish-core/utils/injection';
 
/**
 * Array of paths that always use mocked data
 */
export const API_MOCK_PATHS = createEnvironmentInjectionToken('apiMockPaths');
 
/**
 * If 'username' login name is used for registration, if 'email' the email is used as login name (default: 'email')
 */
export const USER_REGISTRATION_LOGIN_TYPE = new InjectionToken<string>('userRegistrationLoginType', {
  factory: () => 'email',
});
 
/**
 * The maximum subcategories level depth rendered in the main navigation
 */
export const MAIN_NAVIGATION_MAX_SUB_CATEGORIES_DEPTH = createEnvironmentInjectionToken(
  'mainNavigationMaxSubCategoriesDepth'
);
 
/**
 * global definition of the product listing page size
 */
export const PRODUCT_LISTING_ITEMS_PER_PAGE = createEnvironmentInjectionToken('productListingItemsPerPage');
 
/**
 * default definition of the product listing view type
 */
export const DEFAULT_PRODUCT_LISTING_VIEW_TYPE = createEnvironmentInjectionToken('defaultProductListingViewType');
 
/**
 * the configured cookie consent options for the application
 */
export const COOKIE_CONSENT_OPTIONS = createEnvironmentInjectionToken('cookieConsentOptions');
 
/**
 * the configured data retention policy for the application
 */
export const DATA_RETENTION_POLICY = createEnvironmentInjectionToken('dataRetention');
 
/**
 * the configured price update policy for the application
 */
export const PRICE_UPDATE = createEnvironmentInjectionToken('priceUpdate');
 
/**
 * the configured theme color
 */
export const THEME_COLOR = createEnvironmentInjectionToken('themeColor');
 
/*
 * global definition of the Bootstrap grid system breakpoint widths
 */
 
export const SMALL_BREAKPOINT_WIDTH = createEnvironmentInjectionToken('smallBreakpointWidth');
 
export const MEDIUM_BREAKPOINT_WIDTH = createEnvironmentInjectionToken('mediumBreakpointWidth');
 
export const LARGE_BREAKPOINT_WIDTH = createEnvironmentInjectionToken('largeBreakpointWidth');