+
+
-
- {/* Title & navigation */}
-
+
+ {/* Title & navigation */}
+
-
- {/* Org name */}
-
{plugin.orgName}
+
+ {/* Org name */}
+
{plugin.orgName}
- {/* Links */}
- {plugin.details?.links.map((link: any) => (
-
- {link.name}
-
- ))}
+ {/* Links */}
+ {plugin.details?.links.map((link: any) => (
+
+ {link.name}
+
+ ))}
- {/* Downloads */}
- {plugin.downloads > 0 && (
-
-
- {` ${new Intl.NumberFormat().format(plugin.downloads)}`}{' '}
-
- )}
+ {/* Downloads */}
+ {plugin.downloads > 0 && (
+
+
+ {` ${new Intl.NumberFormat().format(plugin.downloads)}`}{' '}
+
+ )}
- {/* Version */}
- {Boolean(version) &&
{version}}
+ {/* Version */}
+ {Boolean(version) &&
{version}}
- {/* Signature information */}
-
+ {/* Signature information */}
+
- {plugin.isDisabled &&
}
+ {plugin.isDisabled &&
}
+
+
+
+
+
{plugin.description}
+
+
+
+
+
+
-
-
-
-
{plugin.description}
-
-
-
-
-
);
diff --git a/public/app/features/plugins/admin/pages/Browse.tsx b/public/app/features/plugins/admin/pages/Browse.tsx
index 91d5ae6d2e9..53072615042 100644
--- a/public/app/features/plugins/admin/pages/Browse.tsx
+++ b/public/app/features/plugins/admin/pages/Browse.tsx
@@ -12,7 +12,6 @@ import { getNavModel } from 'app/core/selectors/navModel';
import { StoreState } from 'app/types/store';
import { HorizontalGroup } from '../components/HorizontalGroup';
-import { Page as PluginPage } from '../components/Page';
import { PluginList } from '../components/PluginList';
import { SearchField } from '../components/SearchField';
import { Sorters } from '../helpers';
@@ -69,94 +68,92 @@ export default function Browse({ route }: GrafanaRouteComponentProps): ReactElem
return (
-
-
-
-
- {/* Filter by type */}
-
-
-
-
- {/* Filter by installed / all */}
- {remotePluginsAvailable ? (
-
-
-
- ) : (
-
-
-
-
-
- )}
-
- {/* Sorting */}
-
-
-
-
- {/* Display mode */}
-
-
- className={styles.displayAs}
- value={displayMode}
- onChange={setDisplayMode}
- options={[
- {
- value: PluginListDisplayMode.Grid,
- icon: 'table',
- description: 'Display plugins in a grid layout',
- },
- { value: PluginListDisplayMode.List, icon: 'list-ul', description: 'Display plugins in list' },
- ]}
- />
-
-
-
-
- {isLoading ? (
-
+
+
+ {/* Filter by type */}
+
+
+
+
+ {/* Filter by installed / all */}
+ {remotePluginsAvailable ? (
+
+
+
) : (
-
+
+
+
+
+
)}
-
-
+
+ {/* Sorting */}
+
+
+
+
+ {/* Display mode */}
+
+
+ className={styles.displayAs}
+ value={displayMode}
+ onChange={setDisplayMode}
+ options={[
+ {
+ value: PluginListDisplayMode.Grid,
+ icon: 'table',
+ description: 'Display plugins in a grid layout',
+ },
+ { value: PluginListDisplayMode.List, icon: 'list-ul', description: 'Display plugins in list' },
+ ]}
+ />
+
+
+
+
+ {isLoading ? (
+
+ ) : (
+
+ )}
+
);
diff --git a/public/app/features/plugins/admin/pages/NotEnabed.tsx b/public/app/features/plugins/admin/pages/NotEnabed.tsx
index 9d56dab9319..8a54f4045f4 100644
--- a/public/app/features/plugins/admin/pages/NotEnabed.tsx
+++ b/public/app/features/plugins/admin/pages/NotEnabed.tsx
@@ -4,8 +4,6 @@ import React from 'react';
import { NavModel, NavModelItem } from '@grafana/data';
import { Page } from 'app/core/components/Page/Page';
-import { Page as PluginPage } from '../components/Page';
-
const node: NavModelItem = {
id: 'not-found',
text: 'The plugin catalog is not enabled',
@@ -19,18 +17,16 @@ export default function NotEnabled(): JSX.Element | null {
return (
-
- To enable installing plugins via catalog, please refer to the{' '}
-
- Plugin Catalog
- {' '}
- instructions
-
+ To enable installing plugins via catalog, please refer to the{' '}
+
+ Plugin Catalog
+ {' '}
+ instructions
);
diff --git a/public/app/features/plugins/admin/pages/PluginDetails.tsx b/public/app/features/plugins/admin/pages/PluginDetails.tsx
index 394bdfbe8b1..0369046067c 100644
--- a/public/app/features/plugins/admin/pages/PluginDetails.tsx
+++ b/public/app/features/plugins/admin/pages/PluginDetails.tsx
@@ -11,7 +11,6 @@ import { GrafanaRouteComponentProps } from 'app/core/navigation/types';
import { AppNotificationSeverity } from 'app/types';
import { Loader } from '../components/Loader';
-import { Page as PluginPage } from '../components/Page';
import { PluginDetailsBody } from '../components/PluginDetailsBody';
import { PluginDetailsDisabledError } from '../components/PluginDetailsDisabledError';
import { PluginDetailsHeader } from '../components/PluginDetailsHeader';
@@ -75,9 +74,8 @@ export default function PluginDetails({ match, queryParams }: Props): JSX.Elemen
return (
-
-
-
+
+
{/* Tab navigation */}
{tabs.map((tab: PluginDetailsTab) => {
@@ -99,7 +97,7 @@ export default function PluginDetails({ match, queryParams }: Props): JSX.Elemen
-
+
);
}