.umirc.ts 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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: "number 方法",
  99. path: "/utils/number",
  100. },
  101. {
  102. title: "图片方法",
  103. path: "/utils/image",
  104. },
  105. {
  106. title: "日期格式化",
  107. path: "/utils/date",
  108. },
  109. {
  110. title: "导出Excel",
  111. path: "/utils/export-excel",
  112. },
  113. {
  114. title: "表单验证",
  115. path: "/utils/valid-form",
  116. },
  117. {
  118. title: "EventBus 事件",
  119. path: "/utils/eventbus",
  120. },
  121. ],
  122. "/log": [
  123. {
  124. title: "pc-components 更新日志",
  125. path: "/log/PC-COMPONENTS_CHANGELOG",
  126. },
  127. {
  128. title: "backend-cli 更新日志",
  129. path: "/log/BACKEND-CLI_CHANGELOG",
  130. },
  131. {
  132. title: "utils 更新日志",
  133. path: "/log/UTILS_CHANGELOG",
  134. },
  135. {
  136. title: "service 更新日志",
  137. path: "/log/SERVICE_CHANGELOG",
  138. },
  139. {
  140. title: "krpano 更新日志",
  141. path: "/log/KRPANO_CHANGELOG",
  142. },
  143. ],
  144. "/krpano": [
  145. {
  146. title: "基本使用",
  147. path: "/krpano",
  148. },
  149. {
  150. title: "VideoScene 全景视频",
  151. path: "/krpano/video-scene",
  152. },
  153. {
  154. title: "Control 控制器",
  155. path: "/krpano/control",
  156. },
  157. {
  158. title: "Scene 场景",
  159. path: "/krpano/scene",
  160. },
  161. {
  162. title: "HotSpot 热点",
  163. path: "/krpano/hotspot",
  164. },
  165. {
  166. title: "Autorotate 自动旋转",
  167. path: "/krpano/autorotate",
  168. },
  169. {
  170. title: "View 视角",
  171. path: "/krpano/view",
  172. },
  173. {
  174. title: "Events 事件",
  175. path: "/krpano/events",
  176. },
  177. {
  178. title: "Layer 图层",
  179. path: "/krpano/layer",
  180. },
  181. ],
  182. },
  183. // more config: https://d.umijs.org/config
  184. });