.umirc.ts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. import { defineConfig } from "dumi";
  2. import { join } from "path";
  3. export default defineConfig({
  4. history: {
  5. type: "hash",
  6. },
  7. title: "@dage/tools",
  8. favicon: "https://4dkk.4dage.com/FDKKIMG/icon/kankan_icon.ico",
  9. outputPath: "docs-dist",
  10. mode: "site",
  11. resolve: {
  12. includes: ["./docs"],
  13. },
  14. alias: {
  15. "@dage/utils": join(__dirname, "../utils/dist/"),
  16. "@dage/service": join(__dirname, "../service/dist/"),
  17. "@dage/pc-components": join(__dirname, "../pc-components/dist/"),
  18. },
  19. navs: [
  20. {
  21. title: "组件",
  22. path: "/components",
  23. },
  24. {
  25. title: "工具",
  26. path: "/utils",
  27. },
  28. {
  29. title: "service",
  30. path: "/service",
  31. },
  32. {
  33. title: "更新日志",
  34. path: "/log",
  35. },
  36. {
  37. title: "Gogs",
  38. path: "http://face3d.4dage.com:7005/chenlei/dage-web-tools",
  39. },
  40. ],
  41. menus: {
  42. "/components": [
  43. {
  44. title: "获取用户信息",
  45. path: "/components/login",
  46. },
  47. {
  48. title: "布局",
  49. children: ["/components/TableActions"],
  50. },
  51. {
  52. title: "表单组件",
  53. children: [
  54. "/components/Upload",
  55. "/components/FileCheckbox",
  56. "/components/Map",
  57. ],
  58. },
  59. {
  60. title: "工具",
  61. children: [
  62. /**
  63. * @deprecated 将控制权交给应用,使用 @dage/service
  64. */
  65. // "/components/utils/services",
  66. "/components/utils/storage",
  67. ],
  68. },
  69. ],
  70. "/utils": [
  71. {
  72. title: "EventBus 事件",
  73. path: "/utils/eventbus",
  74. },
  75. {
  76. title: "日期格式化",
  77. path: "/utils/date",
  78. },
  79. {
  80. title: "string 方法",
  81. path: "/utils/string",
  82. },
  83. ],
  84. "/log": [
  85. {
  86. title: "pc-components 更新日志",
  87. path: "/log/PC-COMPONENTS_CHANGELOG",
  88. },
  89. {
  90. title: "backend-cli 更新日志",
  91. path: "/log/BACKEND-CLI_CHANGELOG",
  92. },
  93. {
  94. title: "utils 更新日志",
  95. path: "/log/UTILS_CHANGELOG",
  96. },
  97. {
  98. title: "service 更新日志",
  99. path: "/log/SERVICE_CHANGELOG",
  100. },
  101. ],
  102. },
  103. // more config: https://d.umijs.org/config
  104. });