.umirc.ts 3.0 KB

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