Schema: use almost auto generated models.gen.ts for dashlist and text panels (#40174)

This commit is contained in:
Ryan McKinley 2021-11-16 12:30:14 -08:00 committed by GitHub
parent fbd8dc59d9
commit f61ff60805
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 19 deletions

View File

@ -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: [],
};

View File

@ -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,
};