123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- import { defineConfig } from "dumi";
- import { join } from "path";
- export default defineConfig({
- history: {
- type: "hash",
- },
- title: "@dage/tools",
- favicon: "https://4dkk.4dage.com/FDKKIMG/icon/kankan_icon.ico",
- outputPath: "docs-dist",
- mode: "site",
- resolve: {
- includes: ["./docs"],
- },
- headScripts: [
- {
- src: "https://houseoss.4dkankan.com/project/leifeng-transfer/krpano.js",
- },
- ],
- alias: {
- "@dage/hooks": join(__dirname, "../hooks/dist/"),
- "@dage/utils": join(__dirname, "../utils/dist/"),
- "@dage/service": join(__dirname, "../service/dist/"),
- "@dage/pc-components": join(__dirname, "../pc-components/dist/"),
- "@dage/krpano": join(__dirname, "../krpano/build/"),
- },
- navs: [
- {
- title: "组件",
- path: "/components",
- },
- {
- title: "工具",
- path: "/utils",
- },
- {
- title: "service",
- path: "/service",
- },
- {
- title: "krpano",
- path: "/krpano",
- },
- {
- title: "更新日志",
- path: "/log",
- },
- {
- title: "Gogs",
- path: "http://face3d.4dage.com:7005/chenlei/dage-web-tools",
- },
- ],
- menus: {
- "/components": [
- {
- title: "获取用户信息",
- path: "/components/login",
- },
- {
- title: "布局",
- children: ["/components/TableActions"],
- },
- {
- title: "表单组件",
- children: [
- "/components/CheckboxGroup",
- "/components/Upload",
- "/components/FileCheckbox",
- "/components/Map",
- "/components/Editor",
- ],
- },
- {
- title: "反馈",
- children: ["/components/Loading"],
- },
- {
- title: "工具",
- children: [
- /**
- * @deprecated 将控制权交给应用,使用 @dage/service
- */
- // "/components/utils/services",
- "/components/utils/storage",
- ],
- },
- ],
- "/utils": [
- {
- title: "hooks",
- path: "/utils/hooks",
- },
- {
- title: "string 方法",
- path: "/utils/string",
- },
- {
- title: "图片方法",
- path: "/utils/image",
- },
- {
- title: "日期格式化",
- path: "/utils/date",
- },
- {
- title: "EventBus 事件",
- path: "/utils/eventbus",
- },
- ],
- "/log": [
- {
- title: "pc-components 更新日志",
- path: "/log/PC-COMPONENTS_CHANGELOG",
- },
- {
- title: "backend-cli 更新日志",
- path: "/log/BACKEND-CLI_CHANGELOG",
- },
- {
- title: "utils 更新日志",
- path: "/log/UTILS_CHANGELOG",
- },
- {
- title: "service 更新日志",
- path: "/log/SERVICE_CHANGELOG",
- },
- {
- title: "krpano 更新日志",
- path: "/log/KRPANO_CHANGELOG",
- },
- ],
- "/krpano": [
- {
- title: "基本使用",
- path: "/krpano",
- },
- {
- title: "VideoScene 全景视频",
- path: "/krpano/video-scene",
- },
- {
- title: "Control 控制器",
- path: "/krpano/control",
- },
- {
- title: "Scene 场景",
- path: "/krpano/scene",
- },
- {
- title: "HotSpot 热点",
- path: "/krpano/hotspot",
- },
- {
- title: "Autorotate 自动旋转",
- path: "/krpano/autorotate",
- },
- {
- title: "View 视角",
- path: "/krpano/view",
- },
- {
- title: "Events 事件",
- path: "/krpano/events",
- },
- {
- title: "Layer 图层",
- path: "/krpano/layer",
- },
- ],
- },
- // more config: https://d.umijs.org/config
- });
|