mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 09:33:34 -06:00
* Add go code generator for coremodels * Just generate the entire coremodel for now Maybe we'll need more flexibility as more coremodels are added, but for now this is fine. * Add note on type comment about stability, grodkit * Remove local replace directive for thema * Generate typescript from coremodel * Update pkg/coremodel/dashboard/addenda.go Co-authored-by: Ryan McKinley <ryantxu@gmail.com> * Update cuetsy to new release * Update thema to latest * Fix enum generation for FieldColorModeId * Put main generated object at the end of the file * Tweaks to generated Go output * Retweak back to var * Add generated coremodel test * Remove local replace statement again * Add Make target and call into cuetsy cmd from gen * Rename and comment linsrc for readability * Move key codegen bits into reusable package * Move body of cuetsifier into codegen pkg Also genericize the diffing output into reusable WriteDiffer. * Refactor coremodel generator to use WriteDiffer * Add gen-cue step to CI * Whip all the codegen automation into shape * Add simplistic coremodel canonicality controls * Remove erroneously committed test * Bump thema version * Remove dead code * Improve wording of non-canonicality comment Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
38 lines
859 B
TypeScript
38 lines
859 B
TypeScript
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
// This file is autogenerated. DO NOT EDIT.
|
|
//
|
|
// To regenerate, run "make gen-cue" from the repository root.
|
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
export const modelVersion = Object.freeze([0, 0]);
|
|
|
|
|
|
export enum PanelLayout {
|
|
List = 'list',
|
|
Previews = 'previews',
|
|
}
|
|
|
|
export interface PanelOptions {
|
|
folderId?: number;
|
|
layout?: PanelLayout;
|
|
maxItems: number;
|
|
query: string;
|
|
showHeadings: boolean;
|
|
showRecentlyViewed: boolean;
|
|
showSearch: boolean;
|
|
showStarred: boolean;
|
|
tags: string[];
|
|
}
|
|
|
|
export const defaultPanelOptions: Partial<PanelOptions> = {
|
|
layout: PanelLayout.List,
|
|
maxItems: 10,
|
|
query: '',
|
|
showHeadings: true,
|
|
showRecentlyViewed: false,
|
|
showSearch: false,
|
|
showStarred: true,
|
|
tags: [],
|
|
};
|