import { injectable } from '@cloudbeaver/core-di' ; import { PluginManagerService , PluginSettings } from '@cloudbeaver/core-plugin' ; const defaultSettings = { 'app.logViewer.refreshTimeout' : 3000 , 'app.logViewer.maxLogRecords' : 1000 , 'app.logViewer.logBatchSize' : 2000 , 'app.logViewer.maxFailedRequests' : 3 , 'app.navigationTree.childrenLimit' : 500 , 'app.metadata.editing' : true , 'app.metadata.deleting' : true , } ; export type CoreSettings = typeof defaultSettings ; @ injectable ( ) export class CoreSettingsService { readonly settings : PluginSettings < CoreSettings > ; constructor ( private readonly pluginManagerService ) { this . settings = this . pluginManagerService . getPluginSettings ( 'core' , defaultSettings ) ; } }