-
Notifications
You must be signed in to change notification settings - Fork 0
client config.sample.ts
Josep Llodrà edited this page Jun 27, 2024
·
1 revision
import { AocAppConfig } from '@atlantis-of-code/aoc-client/core/configs';
const Config = new AocAppConfig();
Config.APP_ID = 'aoc_app'; // ID of the AOC application.
Config.PROGRAM_NAME = 'Program name'; // Name of the program.
Config.SERVER_URL = 'http://localhost:3000/'; // URL of the server.
Config.BASE_HREF = ''; // Base href.
Config.MULTI_TENANCY = false; // Indicates if the application supports multi-tenancy.
Config.TAB_DEFAULT_MENU_ITEMS = ['/dashboard']; // Tabs that will be opening at start.
Config.TAB_IGNORE_ROUTES = []; // Routes that will be ignored by the tab service.
Config.DISABLE_COMPONENT_CACHE_FOR_ROUTES = []; // Tabs (or routes) that won't be cached/reused.
Config.DO_NOT_SHOW_AOC_FAVICON_IN_DEVMODE = false; // Optional, by default AOC favicon is shown in dev mode to help identify dev browser tab.
Config.BYPASS_LOGIN_CHECK = false; // Optional, true in case we would like to bypass the login check.
Config.LOGGER = {
level: 'DEBUG', // Logger level.
remote: {
// Optional
level: 'DEBUG', // Remote logger level.
responseType: 'text', // Optional, response type of the remote logger.
url: 'http://127.0.0.1:3003/log' // URL of the remote logger.
},
sourceMaps: true, // Source maps for the logger.
timestampFormat: 'yyyy-MM-dd HH:mm:ss.SSS XX' // Optinal, timestamp format for the logger.
};
Config.PDFJS_URL = '/pdfjs/web/viewer.html'; // URL of the PDFJS viewer used in mobile.
export { Config };