constant.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. }
  16. export enum SlotID {
  17. AppBody = "app-body",
  18. }
  19. export enum FileName {
  20. Masks = "masks.json",
  21. Prompts = "prompts.json",
  22. }
  23. export enum StoreKey {
  24. Chat = "chat-next-web-store",
  25. Access = "access-control",
  26. Config = "app-config",
  27. Mask = "mask-store",
  28. Prompt = "prompt-store",
  29. Update = "chat-update",
  30. }
  31. export const MAX_SIDEBAR_WIDTH = 500;
  32. export const MIN_SIDEBAR_WIDTH = 230;
  33. export const NARROW_SIDEBAR_WIDTH = 100;
  34. export const ACCESS_CODE_PREFIX = "ak-";
  35. export const LAST_INPUT_KEY = "last-input";