35 lines
661 B
TypeScript
35 lines
661 B
TypeScript
export enum EditorTheme {
|
|
ESPRESSO = "espresso",
|
|
COBALT = "cobalt",
|
|
}
|
|
|
|
export enum CSSOption {
|
|
TAILWIND = "tailwind",
|
|
BOOTSTRAP = "bootstrap",
|
|
}
|
|
|
|
export enum JSFrameworkOption {
|
|
VANILLA = "vanilla",
|
|
REACT = "react",
|
|
VUE = "vue",
|
|
}
|
|
|
|
export interface OutputSettings {
|
|
css: CSSOption;
|
|
js: JSFrameworkOption;
|
|
}
|
|
|
|
export interface Settings {
|
|
openAiApiKey: string | null;
|
|
screenshotOneApiKey: string | null;
|
|
isImageGenerationEnabled: boolean;
|
|
editorTheme: EditorTheme;
|
|
isTermOfServiceAccepted: boolean; // Only relevant for hosted version
|
|
}
|
|
|
|
export enum AppState {
|
|
INITIAL = "INITIAL",
|
|
CODING = "CODING",
|
|
CODE_READY = "CODE_READY",
|
|
}
|