文件操作 - module.ts
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/grafana/public/app/plugins/datasource/influxdb/module.ts
编辑文件内容
import InfluxDatasource from './datasource'; import { InfluxQueryCtrl } from './query_ctrl'; import InfluxStartPage from './components/InfluxStartPage'; import { DataSourcePlugin } from '@grafana/data'; import ConfigEditor from './components/ConfigEditor'; // This adds a directive that is used in the query editor import './components/FluxQueryEditor'; class InfluxAnnotationsQueryCtrl { static templateUrl = 'partials/annotations.editor.html'; } export const plugin = new DataSourcePlugin(InfluxDatasource) .setConfigEditor(ConfigEditor) .setQueryCtrl(InfluxQueryCtrl) .setAnnotationQueryCtrl(InfluxAnnotationsQueryCtrl) .setExploreStartPage(InfluxStartPage);
修改文件时间
将文件时间修改为当前时间的前一年
删除文件