Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
usr
/
share
/
grafana
/
public
/
app
/
features
/
alerting
/
unified
/
mocks
/
File Content:
plugins.ts
import 'whatwg-fetch'; import { http, HttpResponse } from 'msw'; import { SetupServer } from 'msw/lib/node'; import { PluginMeta } from '@grafana/data'; import { SupportedPlugin } from '../types/pluginBridges'; export function mockPluginSettings(server: SetupServer, plugin: SupportedPlugin, response?: PluginMeta) { server.use( http.get(`/api/plugins/${plugin}/settings`, () => { if (response) { return HttpResponse.json(response); } return HttpResponse.json({}, { status: 404 }); }) ); }
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
alertRuleApi.ts
587 bytes
0644
alertmanagerApi.ts
1420 bytes
0644
grafana-notifiers.ts
10548 bytes
0644
plugins.ts
531 bytes
0644
rulerApi.ts
740 bytes
0644
templatesApi.ts
547 bytes
0644
N4ST4R_ID | Naxtarrr