mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Schema: use almost auto generated models.gen.ts for dashlist and text panels (#40174)
This commit is contained in:
parent
fbd8dc59d9
commit
f61ff60805
@ -1,27 +1,26 @@
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// NOTE: This file will be auto generated from models.cue
|
||||
// It is currenty hand written but will serve as the target for cuetsy
|
||||
// This file was almost autogenerated by cuetsy.
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
export const modelVersion = Object.freeze([1, 0]);
|
||||
export const modelVersion = Object.freeze([0, 0]);
|
||||
|
||||
export interface PanelOptions {
|
||||
showStarred: boolean;
|
||||
folderId?: number;
|
||||
maxItems: number;
|
||||
query: string;
|
||||
showHeadings: boolean;
|
||||
showRecentlyViewed: boolean;
|
||||
showSearch: boolean;
|
||||
showHeadings: boolean;
|
||||
maxItems: number;
|
||||
query?: string;
|
||||
folderId?: number;
|
||||
showStarred: boolean;
|
||||
tags: string[];
|
||||
}
|
||||
|
||||
export const defaultPanelOptions: PanelOptions = {
|
||||
showStarred: true,
|
||||
showRecentlyViewed: false,
|
||||
showSearch: false,
|
||||
showHeadings: true,
|
||||
maxItems: 10,
|
||||
query: '',
|
||||
showHeadings: true,
|
||||
showRecentlyViewed: false,
|
||||
showSearch: false,
|
||||
showStarred: true,
|
||||
tags: [],
|
||||
};
|
||||
|
@ -1,9 +1,8 @@
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// NOTE: This file will be auto generated from models.cue
|
||||
// It is currenty hand written but will serve as the target for cuetsy
|
||||
// This file was almost autogenerated by cuetsy.
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
export const modelVersion = Object.freeze([1, 0]);
|
||||
export const modelVersion = Object.freeze([0, 0]);
|
||||
|
||||
export enum TextMode {
|
||||
HTML = 'html',
|
||||
@ -11,14 +10,13 @@ export enum TextMode {
|
||||
}
|
||||
|
||||
export interface PanelOptions {
|
||||
mode: TextMode;
|
||||
content: string;
|
||||
mode: TextMode;
|
||||
}
|
||||
|
||||
export const defaultPanelOptions: PanelOptions = {
|
||||
mode: TextMode.Markdown,
|
||||
content: `# Title
|
||||
|
||||
For markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)
|
||||
`,
|
||||
For markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)`,
|
||||
mode: TextMode.Markdown,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user