Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
app
/
features
/
plugins
/
admin
/
components
/
File Content:
PluginDetailsDisabledError.tsx
import React, { ReactElement } from 'react'; import { PluginErrorCode } from '@grafana/data'; import { selectors } from '@grafana/e2e-selectors'; import { Alert } from '@grafana/ui'; import { CatalogPlugin } from '../types'; type Props = { className?: string; plugin: CatalogPlugin; }; export function PluginDetailsDisabledError({ className, plugin }: Props): ReactElement | null { if (!plugin.isDisabled) { return null; } return ( <Alert severity="error" title="Plugin disabled" className={className} data-testid={selectors.pages.PluginPage.disabledInfo} > {renderDescriptionFromError(plugin.error)} <p>Please contact your server administrator to get this resolved.</p> <a href="https://grafana.com/docs/grafana/latest/administration/cli/#plugins-commands" className="external-link" target="_blank" rel="noreferrer" > Read more about managing plugins </a> </Alert> ); } function renderDescriptionFromError(error?: PluginErrorCode): ReactElement { switch (error) { case PluginErrorCode.modifiedSignature: return ( <p> Grafana Labs checks each plugin to verify that it has a valid digital signature. While doing this, we discovered that the content of this plugin does not match its signature. We can not guarantee the trustworthy of this plugin and have therefore disabled it. We recommend you to reinstall the plugin to make sure you are running a verified version of this plugin. </p> ); case PluginErrorCode.invalidSignature: return ( <p> Grafana Labs checks each plugin to verify that it has a valid digital signature. While doing this, we discovered that it was invalid. We can not guarantee the trustworthy of this plugin and have therefore disabled it. We recommend you to reinstall the plugin to make sure you are running a verified version of this plugin. </p> ); case PluginErrorCode.missingSignature: return ( <p> Grafana Labs checks each plugin to verify that it has a valid digital signature. While doing this, we discovered that there is no signature for this plugin. We can not guarantee the trustworthy of this plugin and have therefore disabled it. We recommend you to reinstall the plugin to make sure you are running a verified version of this plugin. </p> ); default: return ( <p> We failed to run this plugin due to an unkown reason and have therefore disabled it. We recommend you to reinstall the plugin to make sure you are running a working version of this plugin. </p> ); } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
Badges
---
0755
GetStartedWithPlugin
---
0755
InstallControls
---
0755
AppConfigWrapper.tsx
3864 bytes
0644
HorizontalGroup.tsx
833 bytes
0644
Loader.tsx
297 bytes
0644
PluginActions.tsx
2818 bytes
0644
PluginDashboards.tsx
2820 bytes
0644
PluginDetailsBody.tsx
4721 bytes
0644
PluginDetailsDeprecatedWarning.tsx
1273 bytes
0644
PluginDetailsDisabledError.tsx
2802 bytes
0644
PluginDetailsHeaderDependencies.tsx
1823 bytes
0644
PluginDetailsHeaderSignature.tsx
1384 bytes
0644
PluginDetailsPage.tsx
4489 bytes
0644
PluginDetailsSignature.tsx
2077 bytes
0644
PluginList.test.tsx
2394 bytes
0644
PluginList.tsx
1087 bytes
0644
PluginListItem.test.tsx
5436 bytes
0644
PluginListItem.tsx
4181 bytes
0644
PluginListItemBadges.test.tsx
3304 bytes
0644
PluginListItemBadges.tsx
1539 bytes
0644
PluginLogo.tsx
329 bytes
0644
PluginSignatureDetailsBadge.tsx
2081 bytes
0644
PluginSubtitle.tsx
2203 bytes
0644
PluginUsage.tsx
2355 bytes
0644
SearchField.tsx
1268 bytes
0644
VersionList.tsx
2211 bytes
0644
N4ST4R_ID | Naxtarrr