Chore: Rename "marketplace" app to "catalog" (#34149)
@ -0,0 +1,22 @@ |
||||
+++ |
||||
title = "Plugin catalog" |
||||
aliases = ["/docs/grafana/latest/plugins/catalog/"] |
||||
weight = 1 |
||||
+++ |
||||
|
||||
# Plugin catalog |
||||
|
||||
Catalog for Grafana is a plugin bundled with Grafana versions 8.0+. It allows users to browse and manage plugins from within Grafana. Only Grafana Admins can access and use the Marketplace. |
||||
|
||||
[screenshot placeholder] |
||||
|
||||
To use the Catalog for Grafana, you first need to enable it in the Grafana [configuration]({{< relref "../administration/configuration.md#catalog_app_enabled" >}}). |
||||
|
||||
## Install a plugin from the Catalog |
||||
To install a plugin ... |
||||
|
||||
### Updating a plugin |
||||
To update a plugin ... |
||||
|
||||
## Uninstall a plugin from the Catalog |
||||
To uninstall a plugin ... |
@ -1,22 +0,0 @@ |
||||
+++ |
||||
title = "Plugin marketplace" |
||||
aliases = ["/docs/grafana/latest/plugins/marketplace/"] |
||||
weight = 1 |
||||
+++ |
||||
|
||||
# Plugin marketplace |
||||
|
||||
Marketplace for Grafana is a plugin bundled with Grafana versions 8.0+. It allows users to browse and manage plugins from within Grafana. Only Grafana Admins can access and use the Marketplace. |
||||
|
||||
[screenshot placeholder] |
||||
|
||||
To use the Marketplace for Grafana, you first need to enable it in the Grafana [configuration]({{< relref "../administration/configuration.md#marketplace_app_enabled" >}}). |
||||
|
||||
## Install a plugin from the Marketplace |
||||
To install a plugin ... |
||||
|
||||
### Updating a plugin |
||||
To update a plugin ... |
||||
|
||||
## Uninstall a plugin from the Marketplace |
||||
To uninstall a plugin ... |
@ -1,3 +0,0 @@ |
||||
export const API_ROOT = '/api/plugins'; |
||||
export const PLUGIN_ROOT = '/a/grafana-marketplace-app'; |
||||
export const GRAFANA_API_ROOT = '/api/gnet'; |
@ -1,7 +1,7 @@ |
||||
{ |
||||
"name": "@grafana-plugins/marketplace-app", |
||||
"name": "@grafana-plugins/catalog-app", |
||||
"version": "8.1.0-pre", |
||||
"description": "Marketplace", |
||||
"description": "Plugins catalog", |
||||
"private": true, |
||||
"repository": { |
||||
"type": "git", |
@ -1,20 +1,21 @@ |
||||
import React, { useState } from 'react'; |
||||
import { PluginConfigPageProps, AppPluginMeta, PluginMeta } from '@grafana/data'; |
||||
import { MarketplaceAppSettings } from 'types'; |
||||
import { CatalogAppSettings } from 'types'; |
||||
import { Button, Field, Legend, Switch } from '@grafana/ui'; |
||||
import { api } from '../api'; |
||||
import { PLUGIN_ID } from '../constants'; |
||||
|
||||
interface Props extends PluginConfigPageProps<AppPluginMeta<MarketplaceAppSettings>> {} |
||||
interface Props extends PluginConfigPageProps<AppPluginMeta<CatalogAppSettings>> {} |
||||
|
||||
export const Settings = ({ plugin }: Props) => { |
||||
const [meta, setMeta] = useState(plugin.meta); |
||||
const [state, setState] = useState<MarketplaceAppSettings>(meta.jsonData ?? {}); |
||||
const [state, setState] = useState<CatalogAppSettings>(meta.jsonData ?? {}); |
||||
|
||||
const { pinned, enabled } = meta; |
||||
const { includeEnterprise } = state; |
||||
|
||||
const onSave = () => { |
||||
updateAndReload('grafana-marketplace-app', { |
||||
updateAndReload(PLUGIN_ID, { |
||||
pinned, |
||||
enabled, |
||||
jsonData: state, |
@ -0,0 +1,4 @@ |
||||
export const API_ROOT = '/api/plugins'; |
||||
export const PLUGIN_ID = 'grafana-plugin-catalog-app'; |
||||
export const PLUGIN_ROOT = '/a/' + PLUGIN_ID; |
||||
export const GRAFANA_API_ROOT = '/api/gnet'; |
Before Width: | Height: | Size: 529 KiB After Width: | Height: | Size: 529 KiB |
Before Width: | Height: | Size: 396 KiB After Width: | Height: | Size: 396 KiB |
Before Width: | Height: | Size: 509 KiB After Width: | Height: | Size: 509 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
@ -1,4 +1,4 @@ |
||||
export interface MarketplaceAppSettings { |
||||
export interface CatalogAppSettings { |
||||
includeEnterprise?: boolean; |
||||
} |
||||
|