.umirc.ts 3.2 KB

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