Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
app
/
routes
/
File Content:
utils.ts
import { NavLinkDTO } from '@grafana/data'; export function isSoloRoute(path: string): boolean { return /(d-solo|dashboard-solo)/.test(path?.toLowerCase()); } export function pluginHasRootPage(pluginId: string, navTree: NavLinkDTO[]): boolean { return Boolean( navTree .find((navLink) => navLink.id === 'apps') ?.children?.find((app) => app.id === `plugin-page-${pluginId}`) ?.children?.some((page) => page.url?.endsWith(`/a/${pluginId}`)) ); }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
routes.tsx
18850 bytes
0644
utils.test.ts
949 bytes
0644
utils.ts
475 bytes
0644
N4ST4R_ID | Naxtarrr