mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-12 05:01:13 +08:00
.github
.husky
app
api
client
components
config
icons
locales
masks
store
styles
utils
azure.ts
command.ts
constant.ts
global.d.ts
layout.tsx
page.tsx
polyfill.ts
typing.ts
utils.ts
docs
public
scripts
src-tauri
.babelrc
.dockerignore
.env.template
.eslintignore
.eslintrc.json
.gitignore
.gitpod.yml
.lintstagedrc.json
.prettierrc.js
CODE_OF_CONDUCT.md
Dockerfile
LICENSE
README.md
README_CN.md
docker-compose.yml
next.config.mjs
package.json
tsconfig.json
vercel.json
yarn.lock
[+] fix(exporter.tsx): add async keyword to download function [+] feat(exporter.tsx): add support for saving image file using window.__TAURI__ API [+] feat(global.d.ts): add types for window.__TAURI__ API methods [+] feat(locales): add translations for download success and failure messages [+] feat(sync.ts): add support for generating backup file name with date and time [+] fix(utils.ts): add async keyword to downloadAs function and add support for saving file using window.__TAURI__ API
30 lines
773 B
TypeScript
30 lines
773 B
TypeScript
declare module "*.jpg";
|
|
declare module "*.png";
|
|
declare module "*.woff2";
|
|
declare module "*.woff";
|
|
declare module "*.ttf";
|
|
declare module "*.scss" {
|
|
const content: Record<string, string>;
|
|
export default content;
|
|
}
|
|
|
|
declare module "*.svg";
|
|
|
|
declare interface Window {
|
|
__TAURI__?: {
|
|
writeText(text: string): Promise<void>;
|
|
invoke(command: string, payload?: Record<string, unknown>): Promise<any>;
|
|
dialog: {
|
|
save(options?: Record<string, unknown>): Promise<string | null>;
|
|
};
|
|
fs: {
|
|
writeBinaryFile(path: string, data: Uint8Array): Promise<void>;
|
|
};
|
|
notification:{
|
|
requestPermission(): Promise<Permission>;
|
|
isPermissionGranted(): Promise<boolean>;
|
|
sendNotification(options: string | Options): void;
|
|
};
|
|
};
|
|
}
|