-
Notifications
You must be signed in to change notification settings - Fork 77
/
injection-keys.ts
52 lines (48 loc) · 2.09 KB
/
injection-keys.ts
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
import { InjectionToken } from '@angular/core';
import { Locale } from 'ish-core/models/locale/locale.model';
import { ViewType } from 'ish-core/models/viewtype/viewtype.types';
/**
* If 'true' the application has to work with the implemented mock data, if 'false' a backend system is used
*/
export const MOCK_SERVER_API = new InjectionToken<boolean>('mockServerAPI');
/**
* Array of paths that always use mocked data
*/
export const MUST_MOCK_PATHS = new InjectionToken<string[]>('mustMockPaths');
/**
* Array of locales that are available in the application
*/
export const AVAILABLE_LOCALES = new InjectionToken<Locale[]>('availableLocales');
/**
* 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');
/**
* The maximum subcategories level depth rendered in the main navigation
*/
export const MAIN_NAVIGATION_MAX_SUB_CATEGORIES_DEPTH = new InjectionToken<number>(
'mainNavigationMaxSubCategoriesDepth'
);
/**
* global definition of the product listing page size
*/
export const PRODUCT_LISTING_ITEMS_PER_PAGE = new InjectionToken<number>('productListingItemsPerPage');
/**
* default definition of the product listing view type
*/
export const DEFAULT_PRODUCT_LISTING_VIEW_TYPE = new InjectionToken<ViewType>('defaultProductListingViewType');
/**
* global definition of the Bootstrap grid system breakpoint widths
*/
export const SMALL_BREAKPOINT_WIDTH = new InjectionToken<number>('smallBreakpointWidth');
export const MEDIUM_BREAKPOINT_WIDTH = new InjectionToken<number>('mediumBreakpointWidth');
export const LARGE_BREAKPOINT_WIDTH = new InjectionToken<number>('largeBreakpointWidth');
export const EXTRALARGE_BREAKPOINT_WIDTH = new InjectionToken<number>('extralargeBreakpointWidth');
/**
* The captcha configuration siteKey
*/
export const CAPTCHA_SITE_KEY = new InjectionToken<string>('captchaSiteKey');
/**
* The configured theme for the application (or 'default' if not configured)
*/
export const THEME = new InjectionToken<string>('theme');