Define.ts 797 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import { API_BASE_WS } from "../api"
  2. export const APP_LOGIN_TYPE = {
  3. ID: "id",
  4. PHONE: "phone",
  5. SMS: "sms",
  6. MAIL: "mail",
  7. GUEST: "guest",
  8. FACEBOOK: "facebook",
  9. GOOGLE: "google",
  10. }
  11. export type Login3rdType = "facebook" | "google";
  12. export const APP_SERVER = {
  13. SERVER_URL: API_BASE_WS,
  14. ROOM_HALL: "hall",
  15. }
  16. /** 货币类型 */
  17. export const CURRENCY_TYPE = {
  18. SC: "SC",
  19. GC: "GC"
  20. } as const
  21. export type CurrencyType = typeof CURRENCY_TYPE[keyof typeof CURRENCY_TYPE];
  22. export const GAME_TAG_ID = {
  23. HOT: 1,
  24. NEW: 2,
  25. } as const;
  26. export const COUNTRY_CODE = 1;
  27. export const GAME_TABS = {
  28. Home: "Home",
  29. Hot: "hot",
  30. New: "new",
  31. Recent: "Recent",
  32. Favs: "Favs",
  33. }
  34. export type GameTabType = typeof GAME_TABS[keyof typeof GAME_TABS];