From 8950d86141e344e040b74d25d5f79a5ac93abbe0 Mon Sep 17 00:00:00 2001 From: George Rodrigues Date: Tue, 4 Oct 2022 20:43:49 -0300 Subject: [PATCH] fix: some typos (#56171) --- contribute/style-guides/themes.md | 2 +- packages/grafana-data/src/dataframe/frameComparisons.ts | 2 +- packages/grafana-ui/src/components/MatchersUI/utils.ts | 2 +- public/app/features/plugins/admin/pages/PluginDetails.test.tsx | 2 +- .../features/plugins/sql/components/query-editor-raw/README.md | 2 +- public/app/features/search/types.ts | 2 +- .../datasource/influxdb/specs/influx_query_model.test.ts | 2 +- .../datasource/loki/components/AnnotationsQueryEditor.tsx | 2 +- .../datasource/mssql/configuration/ConfigurationEditor.tsx | 2 +- public/app/types/events.ts | 2 +- scripts/build/release_publisher/publisher.go | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/contribute/style-guides/themes.md b/contribute/style-guides/themes.md index 03694fd7b09..edf6e8eeb34 100644 --- a/contribute/style-guides/themes.md +++ b/contribute/style-guides/themes.md @@ -93,7 +93,7 @@ Example use cases: | -------------------------- | ------------------------------------------------------------ | | theme.colors.border.weak | Primary border for panels and panes and other subtle borders | | theme.colors.border.medium | For stronger borders like inputs | -| theme.colors.border.strong | For even stronger border like hover highighted border | +| theme.colors.border.strong | For even stronger border like hover highlighted border | ### Actions diff --git a/packages/grafana-data/src/dataframe/frameComparisons.ts b/packages/grafana-data/src/dataframe/frameComparisons.ts index f96a7e1660a..2f97d21ea09 100644 --- a/packages/grafana-data/src/dataframe/frameComparisons.ts +++ b/packages/grafana-data/src/dataframe/frameComparisons.ts @@ -73,7 +73,7 @@ export function compareDataFrameStructures(a: DataFrame, b: DataFrame, skipConfi } /** - * Check if all values in two arrays match the compare funciton + * Check if all values in two arrays match the compare function * * @beta */ diff --git a/packages/grafana-ui/src/components/MatchersUI/utils.ts b/packages/grafana-ui/src/components/MatchersUI/utils.ts index 490a514009a..d3a9c216545 100644 --- a/packages/grafana-ui/src/components/MatchersUI/utils.ts +++ b/packages/grafana-ui/src/components/MatchersUI/utils.ts @@ -29,7 +29,7 @@ export function frameHasName(name: string | undefined, names: FrameFieldsDisplay } /** - * Retuns the distinct names in a set of frames + * Returns the distinct names in a set of frames */ function getFrameFieldsDisplayNames(data: DataFrame[], filter?: (field: Field) => boolean): FrameFieldsDisplayNames { const names: FrameFieldsDisplayNames = { diff --git a/public/app/features/plugins/admin/pages/PluginDetails.test.tsx b/public/app/features/plugins/admin/pages/PluginDetails.test.tsx index 5b2742aa66f..7d571015c02 100644 --- a/public/app/features/plugins/admin/pages/PluginDetails.test.tsx +++ b/public/app/features/plugins/admin/pages/PluginDetails.test.tsx @@ -806,7 +806,7 @@ describe('Plugin details page', () => { }); }); - it('should not display the data source post intallation step', async () => { + it('should not display the data source post installation step', async () => { const name = 'Akumuli'; const { queryByText } = renderPluginDetails({ name, diff --git a/public/app/features/plugins/sql/components/query-editor-raw/README.md b/public/app/features/plugins/sql/components/query-editor-raw/README.md index 426b18866e4..929ce74ea96 100644 --- a/public/app/features/plugins/sql/components/query-editor-raw/README.md +++ b/public/app/features/plugins/sql/components/query-editor-raw/README.md @@ -39,7 +39,7 @@ Goals - [ ] Allow providing suggestions for standard-ish SQL syntax (THIS PR) - [ ] Allow providing custom SQL dialects and suggestions for them (TODO - CloudWatch implementation sets a good base for how to provide custom dialect definition) -`SQLEditor` component builds on top of `CodeEditor` component, but we may want to base it on `ReactMonacoEditor` component instead to be less prone to `CodeEditor` API changes and have full controll over the Monaco API. For now the `CodeEditor` is good enough for a simplification. +`SQLEditor` component builds on top of `CodeEditor` component, but we may want to base it on `ReactMonacoEditor` component instead to be less prone to `CodeEditor` API changes and have full control over the Monaco API. For now the `CodeEditor` is good enough for a simplification. `SQLEditor` API: diff --git a/public/app/features/search/types.ts b/public/app/features/search/types.ts index 2fbba252ad7..66822d8b969 100644 --- a/public/app/features/search/types.ts +++ b/public/app/features/search/types.ts @@ -52,7 +52,7 @@ export interface DashboardSectionItem { } /** - * @deprecated - It uses dashboard ID which is depreacted in favor of dashboard UID. Please, use DashboardSearchItem instead. + * @deprecated - It uses dashboard ID which is deprecated in favor of dashboard UID. Please, use DashboardSearchItem instead. */ export interface DashboardSearchHit extends DashboardSectionItem, DashboardSection, WithAccessControlMetadata {} diff --git a/public/app/plugins/datasource/influxdb/specs/influx_query_model.test.ts b/public/app/plugins/datasource/influxdb/specs/influx_query_model.test.ts index 1e9ff1b78b2..e496e2b9429 100644 --- a/public/app/plugins/datasource/influxdb/specs/influx_query_model.test.ts +++ b/public/app/plugins/datasource/influxdb/specs/influx_query_model.test.ts @@ -3,7 +3,7 @@ import InfluxQueryModel from '../influx_query_model'; describe('InfluxQuery', () => { const templateSrv: any = { replace: (val: any) => val }; - describe('render series with mesurement only', () => { + describe('render series with measurement only', () => { it('should generate correct query', () => { const query = new InfluxQueryModel( { diff --git a/public/app/plugins/datasource/loki/components/AnnotationsQueryEditor.tsx b/public/app/plugins/datasource/loki/components/AnnotationsQueryEditor.tsx index 9c3eabd5351..d1847251b60 100644 --- a/public/app/plugins/datasource/loki/components/AnnotationsQueryEditor.tsx +++ b/public/app/plugins/datasource/loki/components/AnnotationsQueryEditor.tsx @@ -28,7 +28,7 @@ export const LokiAnnotationsQueryEditor = memo(function LokiAnnotationQueryEdito const onChangeQuery = (query: LokiQuery) => { // the current version of annotations only stores an optional boolean // field `instant` to handle the instant/range switch. - // we need to maintain compatiblity for now, so we do the same. + // we need to maintain compatibility for now, so we do the same. // we explicitly call `getNormalizedLokiQuery` to make sure `queryType` // is set up correctly. const instant = getNormalizedLokiQuery(query).queryType === LokiQueryType.Instant; diff --git a/public/app/plugins/datasource/mssql/configuration/ConfigurationEditor.tsx b/public/app/plugins/datasource/mssql/configuration/ConfigurationEditor.tsx index 1cb4f3e752a..80f6a3c7ec7 100644 --- a/public/app/plugins/datasource/mssql/configuration/ConfigurationEditor.tsx +++ b/public/app/plugins/datasource/mssql/configuration/ConfigurationEditor.tsx @@ -246,7 +246,7 @@ export const ConfigurationEditor = (props: DataSourcePluginOptionsEditorPropsUSE otherdb; and DROP TABLE user; would be executed. To protect - against this we highly recommmend you create a specific MS SQL user with restricted permissions. + against this we highly recommend you create a specific MS SQL user with restricted permissions. ); diff --git a/public/app/types/events.ts b/public/app/types/events.ts index 57546810132..c1a6d63c529 100644 --- a/public/app/types/events.ts +++ b/public/app/types/events.ts @@ -118,7 +118,7 @@ export class PanelOptionsChangedEvent extends BusEventBase { } /** - * Used internally by DashboardModel to commmunicate with DashboardGrid that it needs to re-render + * Used internally by DashboardModel to communicate with DashboardGrid that it needs to re-render */ export class DashboardPanelsChangedEvent extends BusEventBase { static type = 'dashboard-panels-changed'; diff --git a/scripts/build/release_publisher/publisher.go b/scripts/build/release_publisher/publisher.go index 409cea2b36f..e95200981f2 100644 --- a/scripts/build/release_publisher/publisher.go +++ b/scripts/build/release_publisher/publisher.go @@ -286,7 +286,7 @@ func (p *publisher) postRequest(url string, obj interface{}, desc string) error } else { log.Printf("Action: %s \t Failed - Status: %v", desc, res.Status) log.Printf("Resp: %s", body) - log.Fatalf("Quiting") + log.Fatalf("Quitting") } }