constant.ts 784 B

1234567891011121314151617181920212223
  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. }
  15. export enum SlotID {
  16. AppBody = "app-body",
  17. }
  18. export const MAX_SIDEBAR_WIDTH = 500;
  19. export const MIN_SIDEBAR_WIDTH = 230;
  20. export const NARROW_SIDEBAR_WIDTH = 100;