mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
* 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>
35 lines
1.0 KiB
TypeScript
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,
|
|
});
|
|
}
|
|
}
|