Spaces:
Running
Running
File size: 977 Bytes
c10f8f8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
import { SpaceEntry } from "@huggingface/hub";
export interface User {
fullname: string;
avatarUrl: string;
name: string;
isLocalUse?: boolean;
isPro: boolean;
id: string;
token?: string;
}
export interface HtmlHistory {
pages: Page[];
createdAt: Date;
prompt: string;
}
export interface Project {
title: string;
html: string;
prompts: string[];
user_id: string;
space_id: string;
pages: Page[];
files: string[];
cardData?: any;
name?: string;
_id?: string;
_updatedAt?: Date;
_createdAt?: Date;
}
// expand SpaceEntry type
export interface ProjectType extends SpaceEntry {
cardData?: any;
}
export interface Page {
path: string;
html: string;
}
export interface Commit {
title: string;
oid: string;
date: Date;
}
export interface EnhancedSettings {
isActive: boolean;
primaryColor: string | undefined;
secondaryColor: string | undefined;
theme: Theme;
}
export type Theme = "light" | "dark" | undefined;
|