repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps-dev): apply updates
[e-mobility-charging-stations-simulator.git]
/
src
/
charging-station
/
ui-server
/
UIServerFactory.ts
diff --git
a/src/charging-station/ui-server/UIServerFactory.ts
b/src/charging-station/ui-server/UIServerFactory.ts
index 905ce66d5325fc7bca9424d6f313de5cec089588..1bdd9dad8b9f73393fb76d043db5e833bb05f1f7 100644
(file)
--- a/
src/charging-station/ui-server/UIServerFactory.ts
+++ b/
src/charging-station/ui-server/UIServerFactory.ts
@@
-1,8
+1,11
@@
import chalk from 'chalk';
import chalk from 'chalk';
+import type { AbstractUIServer } from './AbstractUIServer';
+import { UIHttpServer } from './UIHttpServer';
+import { UIServerUtils } from './UIServerUtils';
+import { UIWebSocketServer } from './UIWebSocketServer';
import { ApplicationProtocol, type UIServerConfiguration } from '../../types';
import { Configuration } from '../../utils';
import { ApplicationProtocol, type UIServerConfiguration } from '../../types';
import { Configuration } from '../../utils';
-import { type AbstractUIServer, UIHttpServer, UIServerUtils, UIWebSocketServer } from '../internal';
export class UIServerFactory {
private constructor() {
export class UIServerFactory {
private constructor() {
@@
-10,13
+13,13
@@
export class UIServerFactory {
}
public static getUIServerImplementation(
}
public static getUIServerImplementation(
- uiServerConfiguration?: UIServerConfiguration
+ uiServerConfiguration?: UIServerConfiguration
,
): AbstractUIServer | null {
if (UIServerUtils.isLoopback(uiServerConfiguration.options?.host) === false) {
console.warn(
chalk.yellow(
): AbstractUIServer | null {
if (UIServerUtils.isLoopback(uiServerConfiguration.options?.host) === false) {
console.warn(
chalk.yellow(
- 'Loopback address not detected in UI server configuration. This is not recommended.'
- )
+ 'Loopback address not detected in UI server configuration. This is not recommended.'
,
+ )
,
);
}
switch (uiServerConfiguration?.type ?? Configuration.getUIServer().type) {
);
}
switch (uiServerConfiguration?.type ?? Configuration.getUIServer().type) {