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 { UIServiceUtils } from './ui-services/UIServiceUtils';
-import UIHttpServer from './UIHttpServer';
-import UIWebSocketServer from './UIWebSocketServer';
+import { ApplicationProtocol, type UIServerConfiguration } from '../../types';
+import { Configuration } from '../../utils';
+import { type AbstractUIServer, UIHttpServer, UIServerUtils, UIWebSocketServer } from '../internal';
-export default class UIServerFactory {
+export class UIServerFactory {
private constructor() {
// This is intentional
}
public static getUIServerImplementation(
uiServerConfiguration?: UIServerConfiguration
): AbstractUIServer | null {
- if (UIServiceUtils.isLoopback(uiServerConfiguration.options?.host) === false) {
+ if (UIServerUtils.isLoopback(uiServerConfiguration.options?.host) === false) {
console.warn(
- chalk.magenta(
+ chalk.yellow(
'Loopback address not detected in UI server configuration. This is not recommended.'
)
);