.umirc.ts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. headScripts: [
  15. { src: "https://houseoss.4dkankan.com/project/leifeng-transfer/tour.js" },
  16. ],
  17. alias: {
  18. "@dage/utils": join(__dirname, "../utils/dist/"),
  19. "@dage/service": join(__dirname, "../service/dist/"),
  20. "@dage/pc-components": join(__dirname, "../pc-components/dist/"),
  21. "@dage/krpano": join(__dirname, "../krpano/dist/"),
  22. },
  23. navs: [
  24. {
  25. title: "组件",
  26. path: "/components",
  27. },
  28. {
  29. title: "工具",
  30. path: "/utils",
  31. },
  32. {
  33. title: "service",
  34. path: "/service",
  35. },
  36. {
  37. title: "krpano",
  38. path: "/krpano",
  39. },
  40. {
  41. title: "更新日志",
  42. path: "/log",
  43. },
  44. {
  45. title: "Gogs",
  46. path: "http://face3d.4dage.com:7005/chenlei/dage-web-tools",
  47. },
  48. ],
  49. menus: {
  50. "/components": [
  51. {
  52. title: "获取用户信息",
  53. path: "/components/login",
  54. },
  55. {
  56. title: "布局",
  57. children: ["/components/TableActions"],
  58. },
  59. {
  60. title: "表单组件",
  61. children: [
  62. "/components/Upload",
  63. "/components/FileCheckbox",
  64. "/components/Map",
  65. ],
  66. },
  67. {
  68. title: "工具",
  69. children: [
  70. /**
  71. * @deprecated 将控制权交给应用,使用 @dage/service
  72. */
  73. // "/components/utils/services",
  74. "/components/utils/storage",
  75. ],
  76. },
  77. ],
  78. "/utils": [
  79. {
  80. title: "EventBus 事件",
  81. path: "/utils/eventbus",
  82. },
  83. {
  84. title: "日期格式化",
  85. path: "/utils/date",
  86. },
  87. {
  88. title: "string 方法",
  89. path: "/utils/string",
  90. },
  91. ],
  92. "/log": [
  93. {
  94. title: "pc-components 更新日志",
  95. path: "/log/PC-COMPONENTS_CHANGELOG",
  96. },
  97. {
  98. title: "backend-cli 更新日志",
  99. path: "/log/BACKEND-CLI_CHANGELOG",
  100. },
  101. {
  102. title: "utils 更新日志",
  103. path: "/log/UTILS_CHANGELOG",
  104. },
  105. {
  106. title: "service 更新日志",
  107. path: "/log/SERVICE_CHANGELOG",
  108. },
  109. ],
  110. "/krpano": [
  111. {
  112. title: "基本使用",
  113. path: "/krpano",
  114. },
  115. {
  116. title: "Scene 场景",
  117. path: "/krpano/scene",
  118. },
  119. {
  120. title: "HotSpot 热点",
  121. path: "/krpano/hotspot",
  122. },
  123. {
  124. title: "Autorotate 自动旋转",
  125. path: "/krpano/autorotate",
  126. },
  127. {
  128. title: "View 视角",
  129. path: "/krpano/view",
  130. },
  131. ],
  132. },
  133. // more config: https://d.umijs.org/config
  134. });