当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript insightRegistry.registerInsight函数代码示例

本文整理汇总了TypeScript中sql/platform/dashboard/common/insightRegistry.registerInsight函数的典型用法代码示例。如果您正苦于以下问题:TypeScript registerInsight函数的具体用法?TypeScript registerInsight怎么用?TypeScript registerInsight使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了registerInsight函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: mixin

/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the Source EULA. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/
import { mixin } from 'vs/base/common/objects';
import { clone } from 'sql/base/common/objects';
import { IJSONSchema } from 'vs/base/common/jsonSchema';
import * as nls from 'vs/nls';

import { registerInsight } from 'sql/platform/dashboard/common/insightRegistry';
import { properties as BarChartSchema } from 'sql/parts/dashboard/widgets/insights/views/charts/types/barChart.contribution';

import LineChart from './lineChart.component';

const properties: IJSONSchema = {
	properties: {
		dataType: {
			type: 'string',
			description: nls.localize('dataTypeDescription', 'Indicates data property of a data set for a chart.'),
			default: 'number',
			enum: ['number', 'point'],
			enumDescriptions: ['Set "number" if the data values are contained in 1 column.', 'Set "point" if the data is an {x,y} combination requiring 2 columns for each value.']
		},
	}
};

export const lineSchema = mixin(clone(BarChartSchema), properties) as IJSONSchema;

registerInsight('line', '', lineSchema, LineChart);
开发者ID:AlexxNica,项目名称:sqlopsstudio,代码行数:29,代码来源:lineChart.contribution.ts

示例2: mixin

/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the Source EULA. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/
import { clone } from 'sql/base/common/objects';
import { mixin } from 'vs/base/common/objects';
import { IJSONSchema } from 'vs/base/common/jsonSchema';
import { registerInsight } from 'sql/platform/dashboard/common/insightRegistry';
import { chartInsightSchema } from 'sql/parts/dashboard/widgets/insights/views/charts/chartInsight.contribution';

import DoughnutChart from './doughnutChart.component';

const properties: IJSONSchema = {

};

const doughnutChartSchema = mixin(clone(chartInsightSchema), properties) as IJSONSchema;

registerInsight('doughnut', '', doughnutChartSchema, DoughnutChart);
开发者ID:AlexxNica,项目名称:sqlopsstudio,代码行数:19,代码来源:doughnutChart.contribution.ts

示例3: mixin

		yAxisMin: {
			type: 'number',
			description: nls.localize('yAxisMin', "Minimum value of the y axis")
		},
		yAxisMax: {
			type: 'number',
			description: nls.localize('yAxisMax', "Maximum value of the y axis")
		},
		yAxisLabel: {
			type: 'string',
			description: nls.localize('barchart.yAxisLabel', "Label for the y axis")
		},
		xAxisMin: {
			type: 'number',
			description: nls.localize('xAxisMin', "Minimum value of the x axis")
		},
		xAxisMax: {
			type: 'number',
			description: nls.localize('xAxisMax', "Maximum value of the x axis")
		},
		xAxisLabel: {
			type: 'string',
			description: nls.localize('barchart.xAxisLabel', "Label for the x axis")
		}
	}
};

export const barChartSchema = mixin(clone(chartInsightSchema), properties) as IJSONSchema;

registerInsight('bar', '', barChartSchema, BarChart);
开发者ID:burhandodhy,项目名称:azuredatastudio,代码行数:30,代码来源:barChart.contribution.ts

示例4: registerInsight

/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the Source EULA. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/
import { registerInsight } from 'sql/platform/dashboard/common/insightRegistry';

import TableInsight from './tableInsight.component';

import { IJSONSchema } from 'vs/base/common/jsonSchema';
import * as nls from 'vs/nls';

let tableInsightSchema: IJSONSchema = {
	type: 'null',
	description: nls.localize('tableInsightDescription', 'Displays the results in a simple table')
};

registerInsight('table', '', tableInsightSchema, TableInsight);
开发者ID:AlexxNica,项目名称:sqlopsstudio,代码行数:17,代码来源:tableInsight.contribution.ts

示例5: mixin

/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the Source EULA. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/
import { mixin } from 'vs/base/common/objects';
import { clone } from 'sql/base/common/objects';
import { IJSONSchema } from 'vs/base/common/jsonSchema';
import { registerInsight } from 'sql/platform/dashboard/common/insightRegistry';
import { chartInsightSchema } from 'sql/parts/dashboard/widgets/insights/views/charts/chartInsight.contribution';

import PieChart from './pieChart.component';

const properties: IJSONSchema = {

};

const pieSchema = mixin(clone(chartInsightSchema), properties) as IJSONSchema;

registerInsight('pie', '', pieSchema, PieChart);
开发者ID:AlexxNica,项目名称:sqlopsstudio,代码行数:19,代码来源:pieChart.contribution.ts

示例6: mixin

/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the Source EULA. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/
import { clone } from 'sql/base/common/objects';
import { mixin } from 'vs/base/common/objects';
import { IJSONSchema } from 'vs/base/common/jsonSchema';

import { registerInsight } from 'sql/platform/dashboard/common/insightRegistry';
import { barChartSchema } from 'sql/parts/dashboard/widgets/insights/views/charts/types/barChart.contribution';

import HorizontalBarChart from './horizontalBarChart.component';

const properties: IJSONSchema = {

};

const horizontalBarSchema = mixin(clone(barChartSchema), properties) as IJSONSchema;

registerInsight('horizontalBar', '', horizontalBarSchema, HorizontalBarChart);
开发者ID:burhandodhy,项目名称:azuredatastudio,代码行数:20,代码来源:horizontalBarChart.contribution.ts

示例7: registerInsight

 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the Source EULA. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/
import { registerInsight } from 'sql/platform/dashboard/common/insightRegistry';

import ImageInsight from './imageInsight.component';

import { IJSONSchema } from 'vs/base/common/jsonSchema';
import * as nls from 'vs/nls';

let imageInsightSchema: IJSONSchema = {
	type: 'object',
	description: nls.localize('imageInsightDescription', 'Displays an image, for example one returned by an R query using ggplot2'),
	properties: {
		imageFormat: {
			type: 'string',
			description: nls.localize('imageFormatDescription', 'What format is expected - is this a JPEG, PNG or other format?'),
			default: 'jpeg',
			enum: ['jpeg', 'png']
		},
		encoding: {
			type: 'string',
			description: nls.localize('encodingDescription', 'Is this encoded as hex, base64 or some other format?'),
			default: 'hex',
			enum: ['hex', 'base64']
		},
	}
};

registerInsight('image', '', imageInsightSchema, ImageInsight);
开发者ID:AlexxNica,项目名称:sqlopsstudio,代码行数:30,代码来源:imageInsight.contribution.ts

示例8: mixin

/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the Source EULA. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/
import { mixin } from 'vs/base/common/objects';
import { clone } from 'sql/base/common/objects';
import { IJSONSchema } from 'vs/base/common/jsonSchema';

import { registerInsight } from 'sql/platform/dashboard/common/insightRegistry';
import { barChartSchema } from 'sql/parts/dashboard/widgets/insights/views/charts/types/barChart.contribution';

import ScatterChart from './scatterChart.component';

const properties: IJSONSchema = {
};

const scatterSchema = mixin(clone(barChartSchema), properties) as IJSONSchema;

registerInsight('scatter', '', scatterSchema, ScatterChart);
开发者ID:burhandodhy,项目名称:azuredatastudio,代码行数:19,代码来源:scatterChart.contribution.ts

示例9: mixin

/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the Source EULA. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/
import { mixin } from 'vs/base/common/objects';
import { clone } from 'sql/base/common/objects';
import { IJSONSchema } from 'vs/base/common/jsonSchema';

import { registerInsight } from 'sql/platform/dashboard/common/insightRegistry';
import { barChartSchema } from 'sql/parts/dashboard/widgets/insights/views/charts/types/barChart.contribution';

import TimeSeriesChart from './timeSeriesChart.component';

const properties: IJSONSchema = {
};

const timeSeriesSchema = mixin(clone(barChartSchema), properties) as IJSONSchema;

registerInsight('timeSeries', '', timeSeriesSchema, TimeSeriesChart);
开发者ID:burhandodhy,项目名称:azuredatastudio,代码行数:19,代码来源:timeSeriesChart.contribution.ts

示例10: registerInsight

/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the Source EULA. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/
import { registerInsight } from 'sql/platform/dashboard/common/insightRegistry';

import CountInsight from './countInsight.component';

import { IJSONSchema } from 'vs/base/common/jsonSchema';
import * as nls from 'vs/nls';

let countInsightSchema: IJSONSchema = {
	type: 'null',
	description: nls.localize('countInsightDescription', 'For each column in a resultset, displays the value in row 0 as a count followed by the column name. Supports "1 Healthy", "3 Unhealthy" for example, where "Healthy" is the column name and 1 is the value in row 1 cell 1')
};

registerInsight('count', '', countInsightSchema, CountInsight);
开发者ID:AlexxNica,项目名称:sqlopsstudio,代码行数:17,代码来源:countInsight.contribution.ts


注:本文中的sql/platform/dashboard/common/insightRegistry.registerInsight函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。