Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
app
/
plugins
/
datasource
/
cloudwatch
/
components
/
ConfigEditor
/
File Content:
SecureSocksProxySettingsNewStyling.tsx
import React from 'react'; import { DataSourceJsonData, DataSourcePluginOptionsEditorProps } from '@grafana/data'; import { ConfigSection } from '@grafana/experimental'; import { Field, Switch } from '@grafana/ui'; export interface Props<T extends DataSourceJsonData> extends Pick<DataSourcePluginOptionsEditorProps<T>, 'options' | 'onOptionsChange'> {} export interface SecureSocksProxyConfig extends DataSourceJsonData { enableSecureSocksProxy?: boolean; } export function SecureSocksProxySettingsNewStyling<T extends SecureSocksProxyConfig>({ options, onOptionsChange, }: Props<T>): JSX.Element { return ( <ConfigSection title="Secure Socks Proxy"> <Field label="Enabled" description="Connect to this datasource via the secure socks proxy."> <Switch value={options.jsonData.enableSecureSocksProxy ?? false} onChange={(event) => onOptionsChange({ ...options, jsonData: { ...options.jsonData, enableSecureSocksProxy: event.currentTarget.checked }, }) } /> </Field> </ConfigSection> ); }
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
ConfigEditor.test.tsx
11895 bytes
0644
ConfigEditor.tsx
13386 bytes
0644
SecureSocksProxySettingsNewStyling.tsx
1122 bytes
0644
XrayLinkConfig.tsx
2648 bytes
0644
N4ST4R_ID | Naxtarrr