fix: prettier
This commit is contained in:
@@ -16,7 +16,11 @@ import { KBarSearch } from './KBarSearch';
|
||||
import { ResultItem } from './ResultItem';
|
||||
import { useSearchResults } from './actions/dashboardActions';
|
||||
import { useRegisterRecentScopesActions, useRegisterScopesActions } from './actions/scopeActions';
|
||||
import { useRegisterDynamicActions, useRegisterRecentDashboardsActions, useRegisterStaticActions } from './actions/useActions';
|
||||
import {
|
||||
useRegisterDynamicActions,
|
||||
useRegisterRecentDashboardsActions,
|
||||
useRegisterStaticActions,
|
||||
} from './actions/useActions';
|
||||
import { CommandPaletteAction } from './types';
|
||||
import { useMatches } from './useMatches';
|
||||
|
||||
|
||||
@@ -7,11 +7,7 @@ import {
|
||||
PluginExtensionCommandPaletteContext,
|
||||
} from '@grafana/data';
|
||||
import appEvents from 'app/core/app_events';
|
||||
import {
|
||||
CloseExtensionSidebarEvent,
|
||||
OpenExtensionSidebarEvent,
|
||||
ToggleExtensionSidebarEvent,
|
||||
} from 'app/types/events';
|
||||
import { CloseExtensionSidebarEvent, OpenExtensionSidebarEvent, ToggleExtensionSidebarEvent } from 'app/types/events';
|
||||
|
||||
import { commandPaletteDynamicRegistry } from '../../plugins/extensions/registry/setup';
|
||||
import { createOpenModalFunction } from '../../plugins/extensions/utils';
|
||||
@@ -156,4 +152,3 @@ export function useDynamicExtensionActions(searchQuery: string): {
|
||||
|
||||
return { actions, isLoading };
|
||||
}
|
||||
|
||||
|
||||
@@ -81,9 +81,7 @@ export class CommandPaletteDynamicRegistry extends Registry<
|
||||
/**
|
||||
* Execute a search across all registered providers
|
||||
*/
|
||||
async search(
|
||||
context: PluginExtensionCommandPaletteContext
|
||||
): Promise<Map<string, CommandPaletteDynamicSearchResult>> {
|
||||
async search(context: PluginExtensionCommandPaletteContext): Promise<Map<string, CommandPaletteDynamicSearchResult>> {
|
||||
const registry = await this.getState();
|
||||
const results = new Map<string, CommandPaletteDynamicSearchResult>();
|
||||
const searchQuery = context.searchQuery ?? '';
|
||||
@@ -146,4 +144,3 @@ export class CommandPaletteDynamicRegistry extends Registry<
|
||||
return results;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user