constant.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. export const OWNER = "Yidadaa";
  2. export const REPO = "ChatGPT-Next-Web";
  3. export const REPO_URL = `https://github.com/${OWNER}/${REPO}`;
  4. export const ISSUE_URL = `https://github.com/${OWNER}/${REPO}/issues`;
  5. export const UPDATE_URL = `${REPO_URL}#keep-updated`;
  6. export const FETCH_COMMIT_URL = `https://api.github.com/repos/${OWNER}/${REPO}/commits?per_page=1`;
  7. export const FETCH_TAG_URL = `https://api.github.com/repos/${OWNER}/${REPO}/tags?per_page=1`;
  8. export const RUNTIME_CONFIG_DOM = "danger-runtime-config";
  9. export enum Path {
  10. Home = "/",
  11. Chat = "/chat",
  12. Settings = "/settings",
  13. NewChat = "/new-chat",
  14. Masks = "/masks",
  15. Auth = "/auth",
  16. }
  17. export enum SlotID {
  18. AppBody = "app-body",
  19. }
  20. export enum FileName {
  21. Masks = "masks.json",
  22. Prompts = "prompts.json",
  23. }
  24. export enum StoreKey {
  25. Chat = "chat-next-web-store",
  26. Access = "access-control",
  27. Config = "app-config",
  28. Mask = "mask-store",
  29. Prompt = "prompt-store",
  30. Update = "chat-update",
  31. }
  32. export const MAX_SIDEBAR_WIDTH = 500;
  33. export const MIN_SIDEBAR_WIDTH = 230;
  34. export const NARROW_SIDEBAR_WIDTH = 100;
  35. export const ACCESS_CODE_PREFIX = "ak-";
  36. export const LAST_INPUT_KEY = "last-input";
  37. export const REQUEST_TIMEOUT_MS = 60000;
  38. export const EXPORT_MESSAGE_CLASS_NAME = "export-markdown";