Chore: spelling - grafana-data (#24436)

This commit is contained in:
Josh Soref 2020-05-22 14:06:39 -04:00 committed by GitHub
parent 5f4526ca64
commit a5deabbe53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 33 additions and 33 deletions

View File

@ -17,7 +17,7 @@ describe('Read/Write arrow Table to DataFrame', () => {
},
fields: [
{ name: 'time', config: {}, type: FieldType.time, values: [1, 2, 3] },
{ name: 'value', config: { min: 0, max: 50, unit: 'somthing' }, type: FieldType.number, values: [1, 2, 3] },
{ name: 'value', config: { min: 0, max: 50, unit: 'something' }, type: FieldType.number, values: [1, 2, 3] },
{ name: 'str', config: {}, type: FieldType.string, values: ['a', 'b', 'c'] },
],
});

View File

@ -59,7 +59,7 @@ describe('dataFrameView', () => {
expect(keys).toEqual(['time', 'name', 'value']);
});
it('has a weird side effect that the object values change after interation', () => {
it('has a weird side effect that the object values change after interaction', () => {
expect(vector.length).toEqual(3);
// Get the first value

View File

@ -152,7 +152,7 @@ export class MutableDataFrame<T = any> extends FunctionalVector<T> implements Da
return Math.max(v, f.values.length);
}, 0);
// Add empty elements until everything mastches
// Add empty elements until everything matches
for (const field of this.fields) {
while (field.values.length !== length) {
field.values.add(MISSING_VALUE);

View File

@ -4,7 +4,7 @@ import { KeyValue } from '../types/data';
export interface Dimension<T = any> {
// Name of the dimension
name: string;
// Colection of fields representing dimension
// Collection of fields representing dimension
// I.e. in 2d graph we have two dimension- X and Y axes. Both dimensions can represent
// multiple fields being drawn on the graph.
// For instance y-axis dimension is a collection of series value fields,

View File

@ -70,7 +70,7 @@ describe('toDataFrame', () => {
});
expect(input.length).toEqual(2);
// If the object is alreay a DataFrame, it should not change
// If the object is already a DataFrame, it should not change
const again = toDataFrame(input);
expect(again).toBe(input);
});
@ -97,7 +97,7 @@ describe('toDataFrame', () => {
).toThrowError('Expected table rows to be array, got object.');
});
it('Guess Colum Types from value', () => {
it('Guess Column Types from value', () => {
expect(guessFieldTypeFromValue(1)).toBe(FieldType.number);
expect(guessFieldTypeFromValue(1.234)).toBe(FieldType.number);
expect(guessFieldTypeFromValue(3.125e7)).toBe(FieldType.number);
@ -107,7 +107,7 @@ describe('toDataFrame', () => {
expect(guessFieldTypeFromValue(dateTime())).toBe(FieldType.time);
});
it('Guess Colum Types from strings', () => {
it('Guess Column Types from strings', () => {
expect(guessFieldTypeFromValue('1')).toBe(FieldType.number);
expect(guessFieldTypeFromValue('1.234')).toBe(FieldType.number);
expect(guessFieldTypeFromValue('NaN')).toBe(FieldType.number);
@ -118,7 +118,7 @@ describe('toDataFrame', () => {
expect(guessFieldTypeFromValue('xxxx')).toBe(FieldType.string);
});
it('Guess Colum Types from series', () => {
it('Guess Column Types from series', () => {
const series = new MutableDataFrame({
fields: [
{ name: 'A (number)', values: [123, null] },
@ -147,7 +147,7 @@ describe('toDataFrame', () => {
'@timestamp': [1570044340458],
tags: ['deploy', 'website-01'],
description: 'Torkel deployed website',
coordinates: { latitude: 12, longitude: 121, level: { depth: 3, coolnes: 'very' } },
coordinates: { latitude: 12, longitude: 121, level: { depth: 3, coolness: 'very' } },
'unescaped-content': 'breaking <br /> the <br /> row',
},
],
@ -165,7 +165,7 @@ describe('toDataFrame', () => {
});
});
describe('SerisData backwards compatibility', () => {
describe('SeriesData backwards compatibility', () => {
it('can convert TimeSeries to series and back again', () => {
const timeseries = {
target: 'Field Name',
@ -280,7 +280,7 @@ describe('SerisData backwards compatibility', () => {
'@timestamp': [1570044340458],
tags: ['deploy', 'website-01'],
description: 'Torkel deployed website',
coordinates: { latitude: 12, longitude: 121, level: { depth: 3, coolnes: 'very' } },
coordinates: { latitude: 12, longitude: 121, level: { depth: 3, coolness: 'very' } },
'unescaped-content': 'breaking <br /> the <br /> row',
},
],

View File

@ -247,7 +247,7 @@ describe('PanelPlugin', () => {
});
});
it('should ignore defaults that are not specified as availeble properties', () => {
it('should ignore defaults that are not specified as available properties', () => {
const panel = new PanelPlugin(() => {
return <div>Panel</div>;
});

View File

@ -29,7 +29,7 @@ export interface SetFieldConfigOptionsArgs<TFieldConfigOptions = any> {
standardOptions?: FieldConfigProperty[];
/**
* Object specyfing standard option properties default values
* Object specifying standard option properties default values
*
* @example
* ```typescript
@ -243,7 +243,7 @@ export class PanelPlugin<TOptions = any, TFieldConfigOptions extends object = an
}
/**
* Allows specyfing which standard field config options panel should use and defining default values
* Allows specifying which standard field config options panel should use and defining default values
*
* @example
* ```typescript

View File

@ -97,7 +97,7 @@ describe('Stats Calculators', () => {
expect(stats.delta).toEqual(300);
});
it('consistenly check allIsNull/allIsZero', () => {
it('consistently check allIsNull/allIsZero', () => {
const empty = createField('x');
const allNull = createField('x', [null, null, null, null]);
const allUndefined = createField('x', [undefined, undefined, undefined, undefined]);
@ -155,7 +155,7 @@ describe('Stats Calculators', () => {
`Invalid ${reducer} result for: ` +
input.data.join(', ') +
` Expected: ${input.result}` + // configured
` Recieved: Multiple: ${v1}, Single: ${v2}`;
` Received: Multiple: ${v1}, Single: ${v2}`;
expect(msg).toEqual(null);
}
}

View File

@ -245,7 +245,7 @@ export function doStandardCalcs(field: Field, ignoreNulls: boolean, nullAsZero:
delta: 0,
step: Number.MAX_VALUE,
// Just used for calcutations -- not exposed as a stat
// Just used for calculations -- not exposed as a stat
previousDeltaUp: true,
} as FieldCalcs;

View File

@ -1,4 +1,4 @@
// Load the Buildtin matchers
// Load the Builtin matchers
import { getFieldPredicateMatchers, getFramePredicateMatchers } from './matchers/predicates';
import { getFieldNameMatchers, getFrameNameMatchers } from './matchers/nameMatcher';
import { getFieldTypeMatchers } from './matchers/fieldTypeMatcher';

View File

@ -52,7 +52,7 @@ const timeMatcher: FieldMatcherInfo = {
};
/**
* Registry Initalization
* Registry Initialization
*/
export function getFieldTypeMatchers(): FieldMatcherInfo[] {
return [fieldTypeMatcher, numericMatcher, timeMatcher];

View File

@ -1,7 +1,7 @@
// This needs to be in its own file to avoid circular references
// Builtin Predicates
// not using 'any' and 'never' since they are reservered keywords
// not using 'any' and 'never' since they are reserved keywords
export enum MatcherID {
anyMatch = 'anyMatch', // checks children
allMatch = 'allMatch', // checks children

View File

@ -124,7 +124,7 @@ const frameNameMatcher: FrameMatcherInfo<string> = {
};
/**
* Registry Initalization
* Registry Initialization
*/
export function getFieldNameMatchers(): FieldMatcherInfo[] {
return [fieldNameMatcher, regexpFieldNameMatcher, multipleFieldNamesMatcher, regexpOrMultipleNamesMatcher];

View File

@ -8,7 +8,7 @@ export interface TransformerUIProps<T> {
*/
options: T;
/**
* Pre-transform data rames
* Pre-transform data frames
*/
input: DataFrame[];
onChange: (options: T) => void;

View File

@ -524,9 +524,9 @@ export interface DataSourceInstanceSettings<T extends DataSourceJsonData = DataS
database?: string;
/**
* This is the full Authorization header if basic auth is ennabled.
* This is the full Authorization header if basic auth is enabled.
* Only available here when access is Browser (direct), when access is Server (proxy)
* The basic auth header, username & password is never exposted to browser/Frontend
* The basic auth header, username & password is never exposed to browser/Frontend
* so this will be empty then.
*/
basicAuth?: string;

View File

@ -24,7 +24,7 @@ export interface ConfigOverrideRule {
}
export interface FieldConfigSource<TOptions extends object = any> {
// Defatuls applied to all numeric fields
// Defaults applied to all numeric fields
defaults: FieldConfig<TOptions>;
// Rules to override individual values

View File

@ -57,7 +57,7 @@ export interface PanelProps<T = any> {
fieldConfig: FieldConfigSource;
/** Field config change handler */
onFieldConfigChange: (config: FieldConfigSource) => void;
/** Indicathes whether or not panel should be rendered transparent */
/** Indicates whether or not panel should be rendered transparent */
transparent: boolean;
/** Current width of the panel */
width: number;

View File

@ -7,7 +7,7 @@ export interface Vector<T = any> {
get(index: number): T;
/**
* Get the resutls as an array.
* Get the results as an array.
*/
toArray(): T[];
}

View File

@ -150,7 +150,7 @@ export class CSVReader {
this.state = ParseState.ReadingRows;
// Make sure colum structure is valid
// Make sure column structure is valid
if (line.length > this.current.fields.length) {
const { fields } = this.current;
for (let f = fields.length; f < line.length; f++) {

View File

@ -7,7 +7,7 @@ import { ArrayVector } from '../vector/ArrayVector';
// This matches:
// first a label from start of the string or first white space, then any word chars until "="
// second either an empty quotes, or anything that starts with quote and ends with unescaped quote,
// or any non whitespace chars that do not start with qoute
// or any non whitespace chars that do not start with quote
const LOGFMT_REGEXP = /(?:^|\s)([\w\(\)\[\]\{\}]+)=(""|(?:".*?[^\\]"|[^"\s]\S*))/;
/**

View File

@ -38,7 +38,7 @@ describe('colors', () => {
expect(getColorByName('aruba-sunshine')).toBeUndefined();
});
it('returns color definiton for known color', () => {
it('returns color definition for known color', () => {
expect(getColorByName(SemiDarkBlue.name)).toBe(SemiDarkBlue);
});
});

View File

@ -21,7 +21,7 @@ describe('hex', () => {
});
describe('hex 0x', () => {
it('positive integeter', () => {
it('positive integer', () => {
const str = toHex0x(7999, 0);
expect(formattedValueToString(str)).toBe('0x1F3F');
});

View File

@ -13,7 +13,7 @@ interface ValueFormatTest {
}
const formatTests: ValueFormatTest[] = [
// Currancy
// Currency
{ id: 'currencyUSD', decimals: 2, value: 1532.82, result: '$1.53K' },
{ id: 'currencyKRW', decimals: 2, value: 1532.82, result: '₩1.53K' },

View File

@ -12,7 +12,7 @@ interface CircularOptions<T> {
* Circular vector uses a single buffer to capture a stream of values
* overwriting the oldest value on add.
*
* This supports addting to the 'head' or 'tail' and will grow the buffer
* This supports adding to the 'head' or 'tail' and will grow the buffer
* to match a configured capacity.
*/
export class CircularVector<T = any> extends FunctionalVector implements MutableVector<T> {