mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-03 01:50:59 +08:00
643442e1a5
* fixup site * fix docs versions * test ci * test ci some more * test ci some more * test ci some more * asd * asd * asd * asd * asd * asd * asd * asd * asd * test * fix * add changeset * fix * fix * fix * test ci * test ci * test ci * test ci * test ci * test ci * test ci * test ci * test ci * notebook ci * notebook ci * more ci * more ci * update changeset * update changeset * update changeset * fix site * fix * fix * fix * fix * fix ci * render mising pages * remove changeset * fix path * fix workflows * fix workflows * fix workflows * fix comment * tweaks * tweaks --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
36 lines
761 B
TypeScript
36 lines
761 B
TypeScript
declare global {
|
|
interface Window {
|
|
__gradio_mode__: "app" | "website";
|
|
__gradio_space__: string | null;
|
|
launchGradio: Function;
|
|
launchGradioFromSpaces: Function;
|
|
gradio_config: Config;
|
|
scoped_css_attach: (link: HTMLLinkElement) => void;
|
|
__is_colab__: boolean;
|
|
parentIFrame?: {
|
|
scrollTo: (x: number, y: number) => void;
|
|
};
|
|
}
|
|
}
|
|
|
|
export interface Config {
|
|
auth_required: boolean | undefined;
|
|
auth_message: string;
|
|
components: any[];
|
|
css: string | null;
|
|
dependencies: any[];
|
|
dev_mode: boolean;
|
|
enable_queue: boolean;
|
|
layout: any;
|
|
mode: "blocks" | "interface";
|
|
root: string;
|
|
theme: string;
|
|
title: string;
|
|
version: string;
|
|
space_id: string | null;
|
|
is_colab: boolean;
|
|
show_api: boolean;
|
|
stylesheets: string[];
|
|
path: string;
|
|
}
|