@zambon-dev/framework 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
export declare const APP_CONFIG: InjectionToken<AppConfig>;
|
|
3
|
+
export interface AppConfigOptions {
|
|
4
|
+
appName?: string;
|
|
5
|
+
companyName?: string;
|
|
6
|
+
environment?: string;
|
|
7
|
+
logoUrl?: string;
|
|
8
|
+
notificationsEnabled?: boolean;
|
|
9
|
+
notificationsUrl?: string;
|
|
10
|
+
version?: string;
|
|
11
|
+
}
|
|
3
12
|
export declare class AppConfig {
|
|
4
13
|
BASE_URL: string;
|
|
5
|
-
|
|
14
|
+
/** Application name shown in the top bar brand block. */
|
|
15
|
+
appName: string;
|
|
16
|
+
/** Company name shown beneath the application name. */
|
|
17
|
+
companyName: string;
|
|
18
|
+
/** Environment key (e.g. 'DEV', 'QA', 'STG', 'PROD'). Empty string when unset. */
|
|
19
|
+
environment: string;
|
|
20
|
+
/** Optional brand logo URL shown in the top bar. */
|
|
21
|
+
logoUrl?: string;
|
|
22
|
+
/** Whether the top-bar notifications feature (bell + badge) is enabled. */
|
|
23
|
+
notificationsEnabled: boolean;
|
|
24
|
+
/** SignalR hub URL the notifications service connects to when enabled. */
|
|
25
|
+
notificationsUrl: string;
|
|
26
|
+
/** Application version string (e.g. '1.4.0'), shown at the bottom of the navigation. */
|
|
27
|
+
version: string;
|
|
28
|
+
constructor(baseUrl: string, options?: AppConfigOptions);
|
|
6
29
|
}
|