fix: some typos (#56171)

This commit is contained in:
George Rodrigues 2022-10-04 20:43:49 -03:00 committed by GitHub
parent 4163f31d76
commit 8950d86141
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 11 additions and 11 deletions

View File

@ -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

View File

@ -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
*/

View File

@ -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 = {

View File

@ -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,

View File

@ -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:

View File

@ -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 {}

View File

@ -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(
{

View File

@ -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;

View File

@ -246,7 +246,7 @@ export const ConfigurationEditor = (props: DataSourcePluginOptionsEditorProps<Ms
The database user should only be granted SELECT permissions on the specified database and tables you want to
query. Grafana does not validate that queries are safe so queries can contain any SQL statement. For example,
statements like <code>USE otherdb;</code> and <code>DROP TABLE user;</code> would be executed. To protect
against this we <em>highly</em> recommmend you create a specific MS SQL user with restricted permissions.
against this we <em>highly</em> recommend you create a specific MS SQL user with restricted permissions.
</Alert>
</>
);

View File

@ -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';

View File

@ -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")
}
}