mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
server dashboard databases tab update (#10159)
* databases tab * move icon to common-icons
This commit is contained in:
@@ -487,29 +487,6 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "mssql-databases",
|
|
||||||
"description": "%mssql.tabs.databases%",
|
|
||||||
"provider": "*",
|
|
||||||
"title": "%mssql.tabs.databases%",
|
|
||||||
"when": "dashboardContext == 'server' && !mssql:iscloud && mssql:engineedition != 11",
|
|
||||||
"group": "home",
|
|
||||||
"icon": "resources/database.svg",
|
|
||||||
"container": {
|
|
||||||
"widgets-container": [
|
|
||||||
{
|
|
||||||
"name": "%explorer-widget-title%",
|
|
||||||
"gridItemConfig": {
|
|
||||||
"sizex": 3,
|
|
||||||
"sizey": 3
|
|
||||||
},
|
|
||||||
"widget": {
|
|
||||||
"explorer-widget": {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"connectionProvider": {
|
"connectionProvider": {
|
||||||
|
|||||||
@@ -140,8 +140,5 @@
|
|||||||
"mssql.connectionOptions.packetSize.displayName": "Packet size",
|
"mssql.connectionOptions.packetSize.displayName": "Packet size",
|
||||||
"mssql.connectionOptions.packetSize.description": "Size in bytes of the network packets used to communicate with an instance of SQL Server",
|
"mssql.connectionOptions.packetSize.description": "Size in bytes of the network packets used to communicate with an instance of SQL Server",
|
||||||
"mssql.connectionOptions.typeSystemVersion.displayName": "Type system version",
|
"mssql.connectionOptions.typeSystemVersion.displayName": "Type system version",
|
||||||
"mssql.connectionOptions.typeSystemVersion.description": "Indicates which server type system the provider will expose through the DataReader",
|
"mssql.connectionOptions.typeSystemVersion.description": "Indicates which server type system the provider will expose through the DataReader"
|
||||||
|
|
||||||
"mssql.tabs.databases": "Databases",
|
|
||||||
"explorer-widget-title": "Search"
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -390,6 +390,9 @@
|
|||||||
background-image: url('ellipsis-blue.svg');
|
background-image: url('ellipsis-blue.svg');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.database-colored.codicon {
|
||||||
|
background-image: url("database_colored.svg");
|
||||||
|
}
|
||||||
|
|
||||||
.small {
|
.small {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
@@ -17,7 +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';
|
import { IDashboardTabGroup, IDashboardTab } from 'sql/workbench/services/dashboard/browser/common/interfaces';
|
||||||
|
|
||||||
export interface IDashboardTabContrib {
|
export interface IDashboardTabContrib {
|
||||||
id: string;
|
id: string;
|
||||||
@@ -265,3 +265,35 @@ const PredefinedTabGroups: IDashboardTabGroup[] = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
PredefinedTabGroups.forEach(tabGroup => registerTabGroup(tabGroup));
|
PredefinedTabGroups.forEach(tabGroup => registerTabGroup(tabGroup));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Common Tabs
|
||||||
|
*/
|
||||||
|
const CommonTabs: IDashboardTab[] = [
|
||||||
|
{
|
||||||
|
id: 'databasesTab',
|
||||||
|
description: localize('databasesTabDescription', "databases tab"),
|
||||||
|
provider: 'MSSQL',
|
||||||
|
title: localize('databasesTabTitle', "Databases"),
|
||||||
|
when: 'dashboardContext == \'server\' && !mssql:iscloud && mssql:engineedition != 11',
|
||||||
|
group: 'home',
|
||||||
|
iconClass: 'database-colored',
|
||||||
|
publisher: undefined,
|
||||||
|
container: {
|
||||||
|
'widgets-container': [
|
||||||
|
{
|
||||||
|
name: localize('databasesWidgetTitle', "Search"),
|
||||||
|
gridItemConfig: {
|
||||||
|
sizex: 3,
|
||||||
|
sizey: 3
|
||||||
|
},
|
||||||
|
widget: {
|
||||||
|
'explorer-widget': {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
CommonTabs.forEach(tab => registerTab(tab));
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ const defaultVal = [
|
|||||||
sizex: 2,
|
sizex: 2,
|
||||||
sizey: 2
|
sizey: 2
|
||||||
},
|
},
|
||||||
when: 'mssql:engineedition == 11 || mssql:iscloud',
|
when: 'connectionProvider != \'MSSQL\' || mssql:engineedition == 11 || mssql:iscloud',
|
||||||
widget: {
|
widget: {
|
||||||
'explorer-widget': {}
|
'explorer-widget': {}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user