mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-06-21 18:44:49 +02:00
57 lines
1.8 KiB
TypeScript
57 lines
1.8 KiB
TypeScript
import { DataType } from './../../models/DataType';
|
|
import { VersionInfo } from '../../models/VersionInfo';
|
|
import { ContentFolder } from '../../models/ContentFolder';
|
|
import { ContentType, CustomScript, CustomTaxonomy, DraftField, Framework, GitSettings, Snippets, SortingSetting } from '../../models';
|
|
import { SortingOption } from './SortingOption';
|
|
import { DashboardViewType } from '.';
|
|
import { DataFile } from '../../models/DataFile';
|
|
|
|
export interface Settings {
|
|
git: GitSettings;
|
|
beta: boolean;
|
|
initialized: boolean;
|
|
wsFolder: string;
|
|
staticFolder: string;
|
|
tags: string[];
|
|
categories: string[];
|
|
customTaxonomy: CustomTaxonomy[];
|
|
openOnStart: boolean | null;
|
|
versionInfo: VersionInfo;
|
|
pageViewType: DashboardViewType | undefined;
|
|
contentTypes: ContentType[];
|
|
contentFolders: ContentFolder[];
|
|
crntFramework: string;
|
|
framework: Framework | null | undefined;
|
|
draftField: DraftField | null | undefined;
|
|
customSorting: SortingSetting[] | undefined;
|
|
dashboardState: DashboardState;
|
|
scripts: CustomScript[];
|
|
dataFiles: DataFile[] | undefined;
|
|
dataTypes: DataType[] | undefined;
|
|
isBacker: boolean | undefined;
|
|
snippets: Snippets | undefined;
|
|
date: { format: string };
|
|
}
|
|
|
|
export interface DashboardState {
|
|
contents: ContentsViewState;
|
|
media: MediaViewState;
|
|
welcome: WelcomeViewState;
|
|
}
|
|
|
|
export interface ContentsViewState {
|
|
sorting: SortingOption | null | undefined;
|
|
defaultSorting: string | null | undefined;
|
|
tags: string | null | undefined;
|
|
templatesEnabled: boolean | null | undefined;
|
|
pagination: boolean | null | undefined;
|
|
}
|
|
|
|
export interface MediaViewState extends ContentsViewState {
|
|
selectedFolder: string | null | undefined;
|
|
mimeTypes: string[] | null | undefined;
|
|
}
|
|
|
|
export interface WelcomeViewState {
|
|
contentFolders: string[];
|
|
} |