mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
pre-defined dashboard tab groups (#9916)
* pre-defined dashboard tab groups * add back the tab group contribution * comments
This commit is contained in:
@@ -32,6 +32,7 @@
|
|||||||
"description": "Manage and troubleshoot SQL Agent jobs",
|
"description": "Manage and troubleshoot SQL Agent jobs",
|
||||||
"provider": "MSSQL",
|
"provider": "MSSQL",
|
||||||
"title": "SQL Agent",
|
"title": "SQL Agent",
|
||||||
|
"group": "administration",
|
||||||
"when": "connectionProvider == 'MSSQL' && !mssql:iscloud && mssql:engineedition != 11 && dashboardContext == 'server'",
|
"when": "connectionProvider == 'MSSQL' && !mssql:iscloud && mssql:engineedition != 11 && dashboardContext == 'server'",
|
||||||
"container": {
|
"container": {
|
||||||
"controlhost-container": {
|
"controlhost-container": {
|
||||||
|
|||||||
@@ -444,6 +444,7 @@
|
|||||||
"description": "%tab.bigDataClusterDescription%",
|
"description": "%tab.bigDataClusterDescription%",
|
||||||
"provider": "MSSQL",
|
"provider": "MSSQL",
|
||||||
"title": "%title.bigDataCluster%",
|
"title": "%title.bigDataCluster%",
|
||||||
|
"group": "monitoring",
|
||||||
"when": "connectionProvider == 'MSSQL' && mssql:iscluster && dashboardContext == 'server'",
|
"when": "connectionProvider == 'MSSQL' && mssql:iscluster && dashboardContext == 'server'",
|
||||||
"container": {
|
"container": {
|
||||||
"grid-container": [
|
"grid-container": [
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import { GRID_CONTAINER, validateGridContainerContribution } from 'sql/workbench
|
|||||||
import { values } from 'vs/base/common/collections';
|
import { values } from 'vs/base/common/collections';
|
||||||
import { IUserFriendlyIcon } from 'sql/workbench/contrib/dashboard/browser/core/dashboardWidget';
|
import { IUserFriendlyIcon } from 'sql/workbench/contrib/dashboard/browser/core/dashboardWidget';
|
||||||
import { isValidIcon, createCSSRuleForIcon } from 'sql/workbench/contrib/dashboard/browser/dashboardIconUtil';
|
import { isValidIcon, createCSSRuleForIcon } from 'sql/workbench/contrib/dashboard/browser/dashboardIconUtil';
|
||||||
|
import { IDashboardTabGroup } from 'sql/workbench/services/dashboard/browser/common/interfaces';
|
||||||
|
|
||||||
export interface IDashboardTabContrib {
|
export interface IDashboardTabContrib {
|
||||||
id: string;
|
id: string;
|
||||||
@@ -237,3 +238,30 @@ ExtensionsRegistry.registerExtensionPoint<IDashboardTabContrib | IDashboardTabCo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Predefined tab groups
|
||||||
|
*/
|
||||||
|
const PredefinedTabGroups: IDashboardTabGroup[] = [
|
||||||
|
{
|
||||||
|
id: 'administration',
|
||||||
|
title: localize('administrationTabGroup', "Administration")
|
||||||
|
}, {
|
||||||
|
id: 'monitoring',
|
||||||
|
title: localize('monitoringTabGroup', "Monitoring")
|
||||||
|
}, {
|
||||||
|
id: 'performance',
|
||||||
|
title: localize('performanceTabGroup', "Performance")
|
||||||
|
}, {
|
||||||
|
id: 'security',
|
||||||
|
title: localize('securityTabGroup', "Security")
|
||||||
|
}, {
|
||||||
|
id: 'troubleshooting',
|
||||||
|
title: localize('troubleshootingTabGroup', "Troubleshooting")
|
||||||
|
}, {
|
||||||
|
id: 'settings',
|
||||||
|
title: localize('settingsTabGroup', "Settings")
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
PredefinedTabGroups.forEach(tabGroup => registerTabGroup(tabGroup));
|
||||||
|
|||||||
Reference in New Issue
Block a user