types.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. export const routerArrays: Array<RouteConfigs> = [
  2. {
  3. path: "/welcome",
  4. parentPath: "/",
  5. meta: {
  6. title: "message.hshome",
  7. icon: "el-icon-s-home",
  8. showLink: true
  9. }
  10. }
  11. ];
  12. export type RouteConfigs = {
  13. path?: string;
  14. parentPath?: string;
  15. meta?: {
  16. title?: string;
  17. icon?: string;
  18. showLink?: boolean;
  19. savedPosition?: boolean;
  20. };
  21. name?: string;
  22. };
  23. export type relativeStorageType = {
  24. routesInStorage: Array<RouteConfigs>;
  25. };
  26. export type tagsViewsType = {
  27. icon: string;
  28. text: string;
  29. divided: boolean;
  30. disabled: boolean;
  31. show: boolean;
  32. };
  33. export interface setType {
  34. sidebar: {
  35. opened: boolean;
  36. withoutAnimation: boolean;
  37. };
  38. device: string;
  39. fixedHeader: boolean;
  40. classes: {
  41. hideSidebar: boolean;
  42. openSidebar: boolean;
  43. withoutAnimation: boolean;
  44. mobile: boolean;
  45. };
  46. hideTabs: boolean;
  47. }
  48. export type childrenType = {
  49. path?: string;
  50. noShowingChildren?: boolean;
  51. children?: childrenType[];
  52. value: unknown;
  53. meta?: {
  54. icon?: string;
  55. title?: string;
  56. i18n?: boolean;
  57. extraIcon?: {
  58. svg?: boolean;
  59. name?: string;
  60. };
  61. };
  62. showTooltip?: boolean;
  63. };
  64. export type themeColorsType = {
  65. rgb: string;
  66. themeColor: string;
  67. };
  68. export type noticeItemType = {
  69. imgUrl: string;
  70. title: string;
  71. description: string;
  72. };