config.d.ts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. export interface ProjectSettingState {
  2. //导航模式
  3. navMode: string;
  4. //导航风格
  5. navTheme: string;
  6. //顶部设置
  7. headerSetting: object;
  8. //页脚
  9. showFooter: boolean;
  10. //菜单设置
  11. menuSetting: object;
  12. //多标签
  13. multiTabsSetting: object;
  14. //面包屑
  15. crumbsSetting: object;
  16. //权限模式
  17. permissionMode: string;
  18. }
  19. export interface IbodySetting {
  20. fixed: boolean;
  21. }
  22. export interface IheaderSetting {
  23. bgColor: string;
  24. fixed: boolean;
  25. isReload: boolean;
  26. }
  27. export interface ImenuSetting {
  28. minMenuWidth: number;
  29. menuWidth: number;
  30. fixed: boolean;
  31. mixMenu: boolean;
  32. collapsed: boolean;
  33. uniqueOpened: boolean;
  34. }
  35. export interface IcrumbsSetting {
  36. show: boolean;
  37. showIcon: boolean;
  38. }
  39. export interface ImultiTabsSetting {
  40. bgColor: string;
  41. fixed: boolean;
  42. show: boolean;
  43. }
  44. export type NoticeChannelAppConfig = 'lanxin' | 'platform' | 'wecom';
  45. export interface GlobConfig {
  46. // 标题
  47. title: string;
  48. // api 接口前缀
  49. urlPrefix: string;
  50. // 签到二维码地址
  51. drillSignUrl: string;
  52. // 租户code
  53. tenantCode?: string;
  54. // 天眼外链地址
  55. skyeyeLoginHost: string | undefined;
  56. skyeyePlatformHost: string | undefined;
  57. skyeyeAdminHost: string | undefined;
  58. skyeyeH5Host: string | undefined;
  59. // 天梭外链地址
  60. tiansuoHost: string | undefined;
  61. showCaptcha: boolean;
  62. // C大脑 OAuth2.0 单点登录
  63. cbrainLoginApp: string | undefined;
  64. cbrainLoginClientId: string | undefined;
  65. }
  66. export interface GlobEnvConfig {
  67. // 标题
  68. VITE_GLOB_APP_TITLE: string;
  69. // 接口前缀
  70. VITE_GLOB_API_URL_PREFIX: string;
  71. // 签到二维码地址
  72. VITE_GLOB_DRILL_SIGN_URL: string;
  73. // 租户code
  74. VITE_GLOB_TENANT_CODE: string;
  75. // 天眼外链地址
  76. VITE_GLOB_SKYEYE_LOGIN_URL: string;
  77. VITE_GLOB_SKYEYE_PLATFORM_URL: string;
  78. VITE_GLOB_SKYEYE_ADMIN_URL: string;
  79. VITE_GLOB_SKYEYE_H5_URL: string;
  80. // 天梭外链地址
  81. VITE_GLOB_TIANSUO_PLATFORM: string;
  82. VITE_GLOB_SHOW_CAPTCHA: boolean;
  83. // C大脑 OAuth2.0
  84. VITE_GLOB_CBRAIN_LOGIN_APP: string;
  85. VITE_GLOB_CBRAIN_LOGIN_CLIENT_ID: string;
  86. }