NewsPanel: add news as a builtin panel (#21128)

This commit is contained in:
Ryan McKinley
2019-12-20 10:47:45 -08:00
committed by GitHub
parent 22ff0eab15
commit b8c0924ab1
19 changed files with 482 additions and 2 deletions

View File

@@ -73,4 +73,12 @@ export class DataFrameView<T = any> implements Vector<T> {
iterator(this.get(i));
}
}
map<V>(iterator: (item: T, index: number) => V) {
const acc: V[] = [];
for (let i = 0; i < this.data.length; i++) {
acc.push(iterator(this.get(i), i));
}
return acc;
}
}

View File

@@ -206,6 +206,9 @@ export interface GrafanaTheme extends GrafanaThemeCommons {
textFaint: string;
textEmphasis: string;
// panel
panelBg: string;
// TODO: move to background section
bodyBg: string;
pageBg: string;