Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
app
/
features
/
commandPalette
/
actions
/
File Content:
extensionActions.ts
import { PluginExtensionCommandPaletteContext, PluginExtensionPoints } from '@grafana/data'; import { getPluginLinkExtensions } from '@grafana/runtime'; import { CommandPaletteAction } from '../types'; import { EXTENSIONS_PRIORITY } from '../values'; export default function getExtensionActions(): CommandPaletteAction[] { const context: PluginExtensionCommandPaletteContext = {}; const { extensions } = getPluginLinkExtensions({ extensionPointId: PluginExtensionPoints.CommandPalette, context, limitPerPlugin: 3, }); return extensions.map((extension) => ({ section: extension.category ?? 'Extensions', priority: EXTENSIONS_PRIORITY, id: extension.id, name: extension.title, target: extension.path, perform: () => extension.onClick && extension.onClick(), })); }
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
dashboardActions.test.ts
5828 bytes
0644
dashboardActions.ts
4200 bytes
0644
extensionActions.ts
811 bytes
0644
staticActions.ts
3659 bytes
0644
useActions.ts
1219 bytes
0644
N4ST4R_ID | Naxtarrr