.umirc.ts 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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"],
  61. },
  62. {
  63. title: "表单组件",
  64. children: [
  65. "/components/CheckboxGroup",
  66. "/components/Upload",
  67. "/components/FileCheckbox",
  68. "/components/Map",
  69. "/components/Editor",
  70. ],
  71. },
  72. {
  73. title: "反馈",
  74. children: ["/components/Loading"],
  75. },
  76. {
  77. title: "工具",
  78. children: [
  79. /**
  80. * @deprecated 将控制权交给应用,使用 @dage/service
  81. */
  82. // "/components/utils/services",
  83. "/components/utils/storage",
  84. ],
  85. },
  86. ],
  87. "/utils": [
  88. {
  89. title: "hooks",
  90. path: "/utils/hooks",
  91. },
  92. {
  93. title: "string 方法",
  94. path: "/utils/string",
  95. },
  96. {
  97. title: "图片方法",
  98. path: "/utils/image",
  99. },
  100. {
  101. title: "日期格式化",
  102. path: "/utils/date",
  103. },
  104. {
  105. title: "EventBus 事件",
  106. path: "/utils/eventbus",
  107. },
  108. ],
  109. "/log": [
  110. {
  111. title: "pc-components 更新日志",
  112. path: "/log/PC-COMPONENTS_CHANGELOG",
  113. },
  114. {
  115. title: "backend-cli 更新日志",
  116. path: "/log/BACKEND-CLI_CHANGELOG",
  117. },
  118. {
  119. title: "utils 更新日志",
  120. path: "/log/UTILS_CHANGELOG",
  121. },
  122. {
  123. title: "service 更新日志",
  124. path: "/log/SERVICE_CHANGELOG",
  125. },
  126. {
  127. title: "krpano 更新日志",
  128. path: "/log/KRPANO_CHANGELOG",
  129. },
  130. ],
  131. "/krpano": [
  132. {
  133. title: "基本使用",
  134. path: "/krpano",
  135. },
  136. {
  137. title: "VideoScene 全景视频",
  138. path: "/krpano/video-scene",
  139. },
  140. {
  141. title: "Control 控制器",
  142. path: "/krpano/control",
  143. },
  144. {
  145. title: "Scene 场景",
  146. path: "/krpano/scene",
  147. },
  148. {
  149. title: "HotSpot 热点",
  150. path: "/krpano/hotspot",
  151. },
  152. {
  153. title: "Autorotate 自动旋转",
  154. path: "/krpano/autorotate",
  155. },
  156. {
  157. title: "View 视角",
  158. path: "/krpano/view",
  159. },
  160. {
  161. title: "Events 事件",
  162. path: "/krpano/events",
  163. },
  164. {
  165. title: "Layer 图层",
  166. path: "/krpano/layer",
  167. },
  168. ],
  169. },
  170. // more config: https://d.umijs.org/config
  171. });