config.d.ts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. * Copyright (c) 2024 LangChat. TyCoding All Rights Reserved.
  3. *
  4. * Licensed under the GNU Affero General Public License, Version 3 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * https://www.gnu.org/licenses/agpl-3.0.html
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. export interface ProjectSettingState {
  17. //导航模式
  18. navMode: string;
  19. //导航风格
  20. navTheme: string;
  21. //顶部设置
  22. headerSetting: object;
  23. //页脚
  24. showFooter: boolean;
  25. //菜单设置
  26. menuSetting: object;
  27. //多标签
  28. multiTabsSetting: object;
  29. //面包屑
  30. crumbsSetting: object;
  31. //权限模式
  32. permissionMode: string;
  33. }
  34. export interface IBodySetting {
  35. fixed: boolean;
  36. }
  37. export interface IHeaderSetting {
  38. bgColor: string;
  39. fixed: boolean;
  40. isReload: boolean;
  41. }
  42. export interface IMenuSetting {
  43. minMenuWidth: number;
  44. menuWidth: number;
  45. fixed: boolean;
  46. mixMenu: boolean;
  47. collapsed: boolean;
  48. mobileWidth: number;
  49. }
  50. export interface ICrumbsSetting {
  51. show: boolean;
  52. showIcon: boolean;
  53. }
  54. export interface IMultiTabsSetting {
  55. bgColor: string;
  56. fixed: boolean;
  57. show: boolean;
  58. }
  59. export interface GlobConfig {
  60. title: string;
  61. apiUrl: string;
  62. shortName: string;
  63. urlPrefix?: string;
  64. uploadUrl?: string;
  65. imgUrl?: string;
  66. }
  67. export interface GlobEnvConfig {
  68. // 标题
  69. VITE_GLOB_APP_TITLE: string;
  70. // 接口地址
  71. VITE_GLOB_API_URL: string;
  72. // 接口前缀
  73. VITE_GLOB_API_URL_PREFIX?: string;
  74. // Project abbreviation
  75. VITE_GLOB_APP_SHORT_NAME: string;
  76. // 图片上传地址
  77. VITE_GLOB_UPLOAD_URL?: string;
  78. //图片前缀地址
  79. VITE_GLOB_IMG_URL?: string;
  80. }