config.d.ts 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. }
  62. export interface GlobEnvConfig {
  63. // 标题
  64. VITE_GLOB_APP_TITLE: string;
  65. // 接口前缀
  66. VITE_GLOB_API_URL_PREFIX: string;
  67. // 签到二维码地址
  68. VITE_GLOB_DRILL_SIGN_URL: string;
  69. // 租户code
  70. VITE_GLOB_TENANT_CODE: string;
  71. // 天眼外链地址
  72. VITE_GLOB_SKYEYE_LOGIN_URL: string;
  73. VITE_GLOB_SKYEYE_PLATFORM_URL: string;
  74. VITE_GLOB_SKYEYE_ADMIN_URL: string;
  75. VITE_GLOB_SKYEYE_H5_URL: string;
  76. // 天梭外链地址
  77. VITE_GLOB_TIANSUO_PLATFORM: string;
  78. }
  79. // export interface GlobConfig {
  80. // title: string;
  81. // apiUrl: string;
  82. // shortName: string;
  83. // urlPrefix: string;
  84. // uploadUrl?: string;
  85. // prodMock: boolean;
  86. // imgUrl?: string;
  87. // appDownloadUrl?: string;
  88. // loginApp?: string;
  89. // appPCUrl?: string;
  90. // questionListVersion: string;
  91. // disableDepartmentEdit?: boolean;
  92. // hideReportMessageTabs?: boolean;
  93. // noticeChannel: NoticeChannelAppConfig[];
  94. // }
  95. // export interface GlobEnvConfig {
  96. // // 标题
  97. // VITE_GLOB_APP_TITLE: string;
  98. // // 接口地址
  99. // VITE_GLOB_API_URL: string;
  100. // // 接口前缀
  101. // VITE_GLOB_API_URL_PREFIX?: string;
  102. // // 项目简称
  103. // VITE_GLOB_APP_SHORT_NAME: string;
  104. // // 图片上传地址
  105. // VITE_GLOB_UPLOAD_URL?: string;
  106. // //图片前缀地址
  107. // VITE_GLOB_IMG_URL?: string;
  108. // //生产环境开启mock
  109. // VITE_GLOB_PROD_MOCK: boolean;
  110. // /** 下载app的url */
  111. // VITE_GLOB_APP_DOWNLOAD_QRCODE: string;
  112. // /** 登录地址 */
  113. // VITE_GLOB_LOGIN_APP: string;
  114. // /** 地球模块登录地址 */
  115. // VITE_GLOB_SKYEYE_WORLD: string;
  116. // /** PC模块登录地址 */
  117. // VITE_GLOB_APP_PC: string;
  118. // VITE_GLOB_TENANT_CODE: string;
  119. // VITE_GLOB_QUESTION_LIST_VERSION: string;
  120. // VITE_GLOB_DISABLE_DEPARTMENT_EDIT: boolean;
  121. // // 是否隐藏掉平台违规报警 平台访问统计和人员访问数据的tab, 默认不隐藏
  122. // VITE_GLOB_HIDE_REPORT_MESSAGE_TABS: boolean;
  123. // // 消息管理可选择的推送渠道
  124. // VITE_GLOB_NOTICE_CHANNEL: NoticeChannelAppConfig[];
  125. // }
  126. // export interface GlobConfig {
  127. // // 标题
  128. // title: string;
  129. // // 接口地址
  130. // apiUrl: string;
  131. // // 图片上传地址
  132. // uploadUrl?: string;
  133. // // api 接口前缀
  134. // urlPrefix: string;
  135. // // 项目简称
  136. // shortName: string;
  137. // // 生产环境开启 mock
  138. // prodMock: boolean;
  139. // // 图片访问地址
  140. // imgUrl: string | undefined;
  141. // tenantCode: string;
  142. // minifyImgUrl?: string;
  143. // }