文件操作 - ConfigEditor.tsx
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/grafana/public/app/plugins/datasource/prometheus/configuration/ConfigEditor.tsx
编辑文件内容
import React from 'react'; import { DataSourceHttpSettings } from '@grafana/ui'; import { DataSourcePluginOptionsEditorProps } from '@grafana/data'; import { PromSettings } from './PromSettings'; import { PromOptions } from '../types'; export type Props = DataSourcePluginOptionsEditorProps<PromOptions>; export const ConfigEditor = (props: Props) => { const { options, onOptionsChange } = props; return ( <> <DataSourceHttpSettings defaultUrl="http://localhost:9090" dataSourceConfig={options} showAccessOptions={true} onChange={onOptionsChange} /> <PromSettings options={options} onOptionsChange={onOptionsChange} /> </> ); };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件