Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
let signedOutPopup = () => PopupWindow.open(
{
context: this.owner.context,
title: "Confirmation",
content: <div>{Weave.lang("Signed out successfully")}</div>
}
);
/* Log in with invalid credentials to drop session */
get defaultPanelTitle():string
{
var columns = this.columns.getObjects() as IAttributeColumn[];
if (columns.length == 0)
return Weave.lang('Table');
return Weave.lang("Table of {0}", columns.map(column=>ColumnUtils.getTitle(column)).join(Weave.lang(", ")));
}
get defaultPanelTitle():string
{
return Weave.lang("Text Tool");
}
get defaultPanelTitle():string
{
var columns = this.heightColumns.getObjects() as IAttributeColumn[];
if (columns.length == 0)
return Weave.lang('Bar Chart');
return Weave.lang("Bar Chart of {0}", columns.map(column=>ColumnUtils.getTitle(column)).join(Weave.lang(", ")));
}
dataImportTypes.map((importType:string) => {
if (importType == SQL)
{
var click = this.openSqlImport;
}
else if (importType == CSV)
{
//var click = this.openCsvImport;
}
return{
label:Weave.lang(importType),
click:click
}
})
}
get defaultPanelTitle():string
{
var columns = this.columns.getObjects() as IAttributeColumn[];
if (columns.length == 0)
return Weave.lang('Line chart');
return Weave.lang("Line chart of {0}", columns.map(column=>ColumnUtils.getTitle(column)).join(Weave.lang(", ")));
}
renderTitleEditor():React.ReactChild[][]
{
return [
[
Weave.lang("Title"),
]
];
}
renderTitleEditor():React.ReactChild[][]
{
return [
[
Weave.lang("Title"),
]
];
}
renderConfigureView():JSX.Element
{
let registry = WeaveAPI.ClassRegistry;
let displayName:string = Weave.lang(WeaveAPI.ClassRegistry.getDisplayName(this.props.dataSource.constructor as typeof IDataSource));
return (
<section overflow="">
<div aria-label="{Weave.lang("Configure">
{Weave.lang("Configure {0}", displayName)}
</div>
{
this.renderFields()
}
</section>
);
}
constructor(props:ColorRampListProps)
{
super(props);
this.columnTitles["id"] = "Key";
this.columnTitles["value"] = Weave.lang("Color scale presets");
this.state = {
selectedColors: props.selectedColors
}
}