Files
cloudbeaver/webapp/packages/plugin-settings-default-administration/src/SettingsDefaultBootstrap.ts
T
295fcf8701 dbeaver/pro#5087 feat: gql api (#3400)
* dbeaver/pro#5087 Add role settings

* dbeaver/pro#5087 feat: gql api

* dbeaver/pro#5087 feat: gql api

* dbeaver/pro#5087 Add role settings

* feat: user role settings

* chore: add tailwind intellisense

* chore: remove mock data

* dbeaver/pro#5087 Add role settings

* dbeaver/pro#5087 Add role settings

* dbeaver/pro#5087 Add role settings

* fix: update roles enum

* feat: settings restore and set status

* dbeaver/pro#5087 fix roles

* chore: hide single settings tab, allow reset for settings that doesn't support full reset

* chore: remove `isSet` method from settings API

* refactor: extract repeatable logic

* chore: add server setting

* chore: better settings grouping

* dbeaver/pro#5087 fixes

* fix: review

* chore: remove roles related code

* chore: hide spreadsheet hiding setting

* dbeaver/pro#5087 Removed everything related with authRole

* chore: hide some settings from UI

* chore: hide per-setting reset

* fix: selecting empty settings groups

---------

Co-authored-by: Ruslan <pupkinvasya7000@gmail.com>
Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
2025-05-14 00:01:08 +08:00

35 lines
1.0 KiB
TypeScript

/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2025 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 { Bootstrap, injectable } from '@cloudbeaver/core-di';
import { SettingsAdministrationService } from '@cloudbeaver/plugin-settings-administration';
import { ServerSettingsService } from '@cloudbeaver/core-root';
@injectable()
export class SettingsDefaultAdministrationBootstrap extends Bootstrap {
constructor(
private readonly settingsAdministrationService: SettingsAdministrationService,
private readonly serverSettingsService: ServerSettingsService,
) {
super();
}
override register(): void {
this.settingsAdministrationService.tabsContainer.add({
key: 'default',
name: 'plugin_settings_default_administration_settings_tab_name',
order: 0,
options: {
source: this.serverSettingsService,
accessor: ['server'],
},
panel: () => () => null,
});
}
}