mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
* CB-4560 api for saving product configuration * CB-4560 save product config in te * CB-4560 move update product config to mutations * CB-3703 feat: extend base components * CB-3703 feat: settings editor * CB-3703 chore: review fixes * CB-3703 chore: pr review * CB-3703 feat: update server configuration icon * CB-4560 add events * CB-3703 fix: localization * CB-3703 chore: localization --------- Co-authored-by: Alexey <wrouds@gmail.com> Co-authored-by: Evgenia Bezborodova <139753579+EvgeniaBzzz@users.noreply.github.com>
31 lines
1.1 KiB
TypeScript
31 lines
1.1 KiB
TypeScript
/*
|
|
* CloudBeaver - Cloud Database Manager
|
|
* Copyright (C) 2020-2024 DBeaver Corp and others
|
|
*
|
|
* Licensed under the Apache License, Version 2.0.
|
|
* you may not use this file except in compliance with the License.
|
|
*/
|
|
import { Dependency, injectable } from '@cloudbeaver/core-di';
|
|
import { PluginManagerService, PluginSettings, SettingsManagerService } from '@cloudbeaver/core-plugin';
|
|
import { schema } from '@cloudbeaver/core-utils';
|
|
|
|
const defaultSettings = schema.object({});
|
|
|
|
export type ResourceEditorSettings = typeof defaultSettings;
|
|
|
|
@injectable()
|
|
export class ResourceEditorSettingsService extends Dependency {
|
|
readonly settings: PluginSettings<ResourceEditorSettings>;
|
|
|
|
constructor(private readonly pluginManagerService: PluginManagerService, private readonly settingsManagerService: SettingsManagerService) {
|
|
super();
|
|
this.settings = this.pluginManagerService.createSettings('sql-editor-navigation-tab-resource', 'plugin', defaultSettings);
|
|
|
|
this.registerSettings();
|
|
}
|
|
|
|
private registerSettings() {
|
|
this.settingsManagerService.registerSettings(this.settings, () => []);
|
|
}
|
|
}
|