2023-03-24 01:00:33 +08:00
|
|
|
export const OWNER = "Yidadaa";
|
|
|
|
export const REPO = "ChatGPT-Next-Web";
|
|
|
|
export const REPO_URL = `https://github.com/${OWNER}/${REPO}`;
|
2023-04-03 13:29:37 +08:00
|
|
|
export const ISSUE_URL = `https://github.com/${OWNER}/${REPO}/issues`;
|
2023-04-06 00:41:44 +08:00
|
|
|
export const UPDATE_URL = `${REPO_URL}#keep-updated`;
|
2023-03-24 01:00:33 +08:00
|
|
|
export const FETCH_COMMIT_URL = `https://api.github.com/repos/${OWNER}/${REPO}/commits?per_page=1`;
|
2023-03-31 00:46:17 +08:00
|
|
|
export const FETCH_TAG_URL = `https://api.github.com/repos/${OWNER}/${REPO}/tags?per_page=1`;
|
2023-04-11 01:21:34 +08:00
|
|
|
export const RUNTIME_CONFIG_DOM = "danger-runtime-config";
|
2023-06-15 01:34:21 +08:00
|
|
|
export const DEFAULT_API_HOST = "https://chatgpt1.nextweb.fun/api/proxy";
|
2023-04-21 01:12:39 +08:00
|
|
|
|
|
|
|
export enum Path {
|
|
|
|
Home = "/",
|
|
|
|
Chat = "/chat",
|
|
|
|
Settings = "/settings",
|
2023-04-24 01:15:44 +08:00
|
|
|
NewChat = "/new-chat",
|
2023-04-25 00:49:27 +08:00
|
|
|
Masks = "/masks",
|
2023-06-07 02:18:24 +08:00
|
|
|
Auth = "/auth",
|
2023-04-24 01:15:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export enum SlotID {
|
|
|
|
AppBody = "app-body",
|
2023-04-21 01:12:39 +08:00
|
|
|
}
|
2023-04-21 02:52:53 +08:00
|
|
|
|
2023-04-27 01:16:21 +08:00
|
|
|
export enum FileName {
|
|
|
|
Masks = "masks.json",
|
|
|
|
Prompts = "prompts.json",
|
|
|
|
}
|
|
|
|
|
2023-04-27 02:00:22 +08:00
|
|
|
export enum StoreKey {
|
|
|
|
Chat = "chat-next-web-store",
|
|
|
|
Access = "access-control",
|
|
|
|
Config = "app-config",
|
|
|
|
Mask = "mask-store",
|
|
|
|
Prompt = "prompt-store",
|
|
|
|
Update = "chat-update",
|
|
|
|
}
|
|
|
|
|
2023-04-21 02:52:53 +08:00
|
|
|
export const MAX_SIDEBAR_WIDTH = 500;
|
|
|
|
export const MIN_SIDEBAR_WIDTH = 230;
|
|
|
|
export const NARROW_SIDEBAR_WIDTH = 100;
|
2023-05-04 22:50:07 +08:00
|
|
|
|
|
|
|
export const ACCESS_CODE_PREFIX = "ak-";
|
2023-05-09 23:01:17 +08:00
|
|
|
|
|
|
|
export const LAST_INPUT_KEY = "last-input";
|
2023-05-14 23:00:17 +08:00
|
|
|
|
|
|
|
export const REQUEST_TIMEOUT_MS = 60000;
|
2023-05-25 01:04:37 +08:00
|
|
|
|
|
|
|
export const EXPORT_MESSAGE_CLASS_NAME = "export-markdown";
|
2023-06-13 00:39:29 +08:00
|
|
|
|
|
|
|
export const OpenaiPath = {
|
|
|
|
ChatPath: "v1/chat/completions",
|
|
|
|
UsagePath: "dashboard/billing/usage",
|
|
|
|
SubsPath: "dashboard/billing/subscription",
|
|
|
|
};
|
2023-06-24 00:07:46 +08:00
|
|
|
|
2023-06-24 16:50:05 +08:00
|
|
|
export const DEFAULT_INPUT_TEMPLATE = `{{input}}`; // input / time / model / lang
|