import { injectable } from '@cloudbeaver/core-di' ; import { PluginManagerService , PluginSettings } from '@cloudbeaver/core-plugin' ; const defaultSettings = { baseFeatures : [ ] as string [ ] , } ; export type AdministrationSettings = typeof defaultSettings ; @ injectable ( ) export class AdministrationSettingsService { readonly settings : PluginSettings < AdministrationSettings > ; constructor ( private readonly pluginManagerService ) { this . settings = this . pluginManagerService . getPluginSettings ( 'core.administration' , defaultSettings ) ; } isBase ( feature ) { return this . getBase ( ) . includes ( feature ) ; } getBase ( ) { return this . settings . getValue ( 'baseFeatures' ) ; } }