.umirc.ts 3.3 KB

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