handle json (#21915)

This commit is contained in:
Alan Ren
2023-02-10 19:05:32 -08:00
committed by GitHub
parent 1d96476a81
commit 12a3bf6b3b
6 changed files with 67 additions and 49 deletions

View File

@@ -6,40 +6,52 @@
export interface IQueryEditorConfiguration {
readonly results: {
readonly saveAsCsv: {
readonly includeHeaders: boolean,
readonly delimiter: string,
readonly lineSeperator: string,
readonly textIdentifier: string,
readonly encoding: string
},
readonly includeHeaders: boolean;
readonly delimiter: string;
readonly lineSeperator: string;
readonly textIdentifier: string;
readonly encoding: string;
};
readonly saveAsExcel: {
readonly includeHeaders: boolean,
},
readonly includeHeaders: boolean;
};
readonly saveAsMarkdown: {
readonly encoding: string,
readonly includeHeaders: boolean,
readonly lineSeparator: string,
}
readonly encoding: string;
readonly includeHeaders: boolean;
readonly lineSeparator: string;
};
readonly saveAsXml: {
readonly formatted: boolean,
readonly encoding: string
},
readonly streaming: boolean,
readonly copyIncludeHeaders: boolean,
readonly copyRemoveNewLine: boolean,
readonly optimizedTable: boolean,
readonly inMemoryDataProcessingThreshold: number,
readonly openAfterSave: boolean
readonly formatted: boolean;
readonly encoding: string;
};
readonly streaming: boolean;
readonly copyIncludeHeaders: boolean;
readonly copyRemoveNewLine: boolean;
readonly optimizedTable: boolean;
readonly inMemoryDataProcessingThreshold: number;
readonly openAfterSave: boolean;
readonly showActionBar: boolean;
},
readonly messages: {
readonly showBatchTime: boolean,
readonly wordwrap: boolean
},
readonly showBatchTime: boolean;
readonly wordwrap: boolean;
};
readonly chart: {
readonly defaultChartType: 'bar' | 'doughnut' | 'horizontalBar' | 'line' | 'pie' | 'scatter' | 'timeSeries',
},
readonly tabColorMode: 'off' | 'border' | 'fill',
};
readonly tabColorMode: 'off' | 'border' | 'fill';
readonly showConnectionInfoInTitle: boolean;
readonly promptToSaveGeneratedFiles: boolean;
}
export interface IResultGridConfiguration {
fontFamily: string;
fontWeight: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
fontSize: number;
letterSpacing: number;
rowHeight: number;
cellPadding: number | number[];
autoSizeColumns: boolean;
maxColumnWidth: number;
showJsonAsLink: boolean;
}