mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
2402b4c6f1
* feat: support duplicate UI on web * fix: replace google svg * fix: modified some copy * fix: adjust modal position * fix: upgrade wasm package * fix: text overflow * fix: global comments * fix: replace appflowy icon * fix: demond load outline * fix: lazy load * fix: close duplicate entry * fix: ci error * fix: modified comment styles * fix: adjust space * fix: easy find reply comment * fix: calendar scroll bugs * fix: image render * fix: replace loading * fix: issues of test session * fix: fixed adding comment * fix: database view name
45 lines
1.1 KiB
TypeScript
45 lines
1.1 KiB
TypeScript
/// <reference types="vite/client" />
|
|
/// <reference types="vite-plugin-svgr/client" />
|
|
/// <reference types="vite-plugin-terminal/client" />
|
|
/// <reference types="cypress" />
|
|
/// <reference types="cypress-plugin-tab" />
|
|
|
|
interface Window {
|
|
refresh_token: (token: string) => void;
|
|
invalid_token: () => void;
|
|
WebFont?: {
|
|
load: (options: { google: { families: string[] } }) => void;
|
|
};
|
|
toast: {
|
|
success: (message: string) => void;
|
|
error: (message: string) => void;
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
info: (props: any) => void;
|
|
clear: () => void;
|
|
default: (message: string) => void;
|
|
warning: (message: string) => void;
|
|
};
|
|
|
|
Prism: {
|
|
tokenize: (text: string, grammar: Prism.Grammar) => Prism.Token[];
|
|
languages: Record<string, Prism.Grammar>;
|
|
plugins: {
|
|
autoloader: {
|
|
languages_path: string;
|
|
};
|
|
};
|
|
};
|
|
hljs: {
|
|
highlightAuto: (code: string) => { language: string };
|
|
};
|
|
}
|
|
|
|
namespace Prism {
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
interface Token {
|
|
type: string;
|
|
content: string | Token[];
|
|
length: number;
|
|
}
|
|
}
|