mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 17:43:35 -06:00
* kindsys: Adapt to new PanelCfg schema interface * building locally * Remove Panel prefix in cue files * Regenerate * Update imports * fixup! Merge branch 'remove-panel-prefix' into sdboyer/redundant-panelcfg-prefixes * Fix formatting --------- Co-authored-by: Ryan McKinley <ryantxu@gmail.com> Co-authored-by: Tania B <yalyna.ts@gmail.com>
60 lines
1.2 KiB
TypeScript
60 lines
1.2 KiB
TypeScript
// Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
|
//
|
|
// Generated by:
|
|
// public/app/plugins/gen.go
|
|
// Using jennies:
|
|
// TSTypesJenny
|
|
// PluginTSTypesJenny
|
|
//
|
|
// Run 'make gen-cue' from repository root to regenerate.
|
|
|
|
export const PanelCfgModelVersion = Object.freeze([0, 0]);
|
|
|
|
export enum TextMode {
|
|
Code = 'code',
|
|
HTML = 'html',
|
|
Markdown = 'markdown',
|
|
}
|
|
|
|
export enum CodeLanguage {
|
|
Go = 'go',
|
|
Html = 'html',
|
|
Json = 'json',
|
|
Markdown = 'markdown',
|
|
Plaintext = 'plaintext',
|
|
Sql = 'sql',
|
|
Typescript = 'typescript',
|
|
Xml = 'xml',
|
|
Yaml = 'yaml',
|
|
}
|
|
|
|
export const defaultCodeLanguage: CodeLanguage = CodeLanguage.Plaintext;
|
|
|
|
export interface CodeOptions {
|
|
/**
|
|
* The language passed to monaco code editor
|
|
*/
|
|
language: CodeLanguage;
|
|
showLineNumbers: boolean;
|
|
showMiniMap: boolean;
|
|
}
|
|
|
|
export const defaultCodeOptions: Partial<CodeOptions> = {
|
|
language: CodeLanguage.Plaintext,
|
|
showLineNumbers: false,
|
|
showMiniMap: false,
|
|
};
|
|
|
|
export interface Options {
|
|
code?: CodeOptions;
|
|
content: string;
|
|
mode: TextMode;
|
|
}
|
|
|
|
export const defaultOptions: Partial<Options> = {
|
|
content: `# Title
|
|
|
|
For markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)`,
|
|
mode: TextMode.Markdown,
|
|
};
|