文件操作 - module.ts
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/grafana/public/app/plugins/datasource/grafana/module.ts
编辑文件内容
import { GrafanaDatasource } from './datasource'; import { QueryCtrl } from 'app/plugins/sdk'; class GrafanaQueryCtrl extends QueryCtrl { static templateUrl = 'partials/query.editor.html'; } class GrafanaAnnotationsQueryCtrl { annotation: any; types = [ { text: 'Dashboard', value: 'dashboard' }, { text: 'Tags', value: 'tags' }, ]; constructor() { this.annotation.type = this.annotation.type || 'tags'; this.annotation.limit = this.annotation.limit || 100; } static templateUrl = 'partials/annotations.editor.html'; } export { GrafanaDatasource, GrafanaDatasource as Datasource, GrafanaQueryCtrl as QueryCtrl, GrafanaAnnotationsQueryCtrl as AnnotationsQueryCtrl, };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件