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
Empty string handling fixes
[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 2e5245329b9b70485a8796f92bd2b661124c602d..9d2bc5741c7c30caee778135635e2b98e830e3b3 100644
(file)
--- a/
src/charging-station/ui-server/UIServerFactory.ts
+++ b/
src/charging-station/ui-server/UIServerFactory.ts
@@
-1,12
+1,12
@@
import chalk from 'chalk';
import chalk from 'chalk';
-import type { UIServerConfiguration } from '../../types/ConfigurationData';
-import { ApplicationProtocol } from '../../types/UIProtocol';
-import Configuration from '../../utils/Configuration';
import type { AbstractUIServer } from './AbstractUIServer';
import type { AbstractUIServer } from './AbstractUIServer';
-import { UIServiceUtils } from './ui-services/UIServiceUtils';
import UIHttpServer from './UIHttpServer';
import UIHttpServer from './UIHttpServer';
+import { UIServerUtils } from './UIServerUtils';
import UIWebSocketServer from './UIWebSocketServer';
import UIWebSocketServer from './UIWebSocketServer';
+import type { UIServerConfiguration } from '../../types/ConfigurationData';
+import { ApplicationProtocol } from '../../types/UIProtocol';
+import Configuration from '../../utils/Configuration';
export default class UIServerFactory {
private constructor() {
export default class UIServerFactory {
private constructor() {
@@
-16,9
+16,9
@@
export default class UIServerFactory {
public static getUIServerImplementation(
uiServerConfiguration?: UIServerConfiguration
): AbstractUIServer | null {
public static getUIServerImplementation(
uiServerConfiguration?: UIServerConfiguration
): AbstractUIServer | null {
- if (UIServ
ice
Utils.isLoopback(uiServerConfiguration.options?.host) === false) {
+ if (UIServ
er
Utils.isLoopback(uiServerConfiguration.options?.host) === false) {
console.warn(
console.warn(
- chalk.
magenta
(
+ 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.'
)
);