.umirc.ts 3.9 KB

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