const dataMaps = {
    "/": {
        "canRegister": true,
        "canResetPassword": true,
        "emailCanLogin": true,
        "faviconFileId": 0,
        "from": "",
        "isUser": false,
        "menu": "signIn",
        "mobileCanLogin": false,
        "password": "123456",
        "passwordMd5": "e10adc3949ba59abbe56e057f20f883e",
        "showVersion": true,
        "systemName": "FlexCDN用户系统演示",
        "teaTheme": "violet",
        "token": "c4516cc5050b5698c977464c1b10637a1757299126",
        "username": "user",
        "version": "1.1.1"
    },
    "/dashboard": {
        "emailVerificationMessage": "尚未绑定电子邮箱，请点此绑定。",
        "firstMenuItem": "",
        "isIdentified": true,
        "isVerified": true,
        "mainMenu": "",
        "mainTab": "",
        "mobileVerificationMessage": "",
        "posts": [],
        "teaBadge": 0,
        "teaCommon": {
            "teaIsPlus": true,
            "teaLogoFileId": 0,
            "teaShowVersion": true,
            "teaUsername": "默认用户"
        },
        "teaDemoEnabled": false,
        "teaDocURL": "",
        "teaFaviconFileId": 0,
        "teaFrontMode": "",
        "teaIsSuper": false,
        "teaLang": "zh-cn",
        "teaMenu": "dashboard",
        "teaModules": [
            {
                "code": "dashboard",
                "icon": "dashboard",
                "isOn": true,
                "name": "概览",
                "subItems": []
            },
            {
                "code": "servers",
                "icon": "pi-sitemap",
                "isOn": true,
                "name": "CDN加速",
                "subItems": [
                    {
                        "code": "servers",
                        "name": "我的网站",
                        "url": "/servers"
                    },
                    {
                        "code": "cache",
                        "name": "刷新预热",
                        "url": "/servers/cache"
                    },
                    {
                        "code": "certs",
                        "name": "证书管理",
                        "url": "/servers/certs"
                    },
                    {
                        "code": "acme",
                        "isOn": true,
                        "name": "证书申请",
                        "url": "/servers/certs/acme"
                    },
                    {
                        "code": "trafficStat",
                        "isOn": true,
                        "name": "用量统计",
                        "url": "/servers/traffic-stats"
                    },
                    {
                        "code": "fee",
                        "isOn": false,
                        "name": "计费方式",
                        "url": "/servers/fee"
                    },
                    {
                        "code": "trafficPackage",
                        "isOn": false,
                        "name": "流量包",
                        "url": "/servers/packages"
                    }
                ]
            },
            {
                "code": "lb",
                "icon": "paper plane",
                "isOn": true,
                "name": "负载均衡"
            },
            {
                "code": "waf",
                "icon": "magnet",
                "isOn": true,
                "name": "WAF安全",
                "subItems": [
                    {
                        "code": "overview",
                        "name": "概览",
                        "url": "/waf"
                    },
                    {
                        "code": "wafLogs",
                        "name": "拦截日志",
                        "url": "/waf/logs"
                    },
                    {
                        "code": "iplist",
                        "name": "拦截IP",
                        "url": "/waf/iplists"
                    }
                ]
            },
            {
                "code": "plans",
                "icon": "puzzle piece",
                "isOn": true,
                "name": "套餐管理"
            },
            {
                "code": "anti-ddos",
                "icon": "shield",
                "isOn": true,
                "name": "DDoS高防",
                "subItems": [
                    {
                        "code": "instance",
                        "name": "实例列表",
                        "url": "/anti-ddos/instances"
                    },
                    {
                        "code": "package",
                        "name": "购买实例",
                        "url": "/anti-ddos/packages"
                    }
                ]
            },
            {
                "code": "ns",
                "icon": "globe",
                "isOn": true,
                "name": "域名解析",
                "subItems": [
                    {
                        "code": "domain",
                        "name": "我的域名",
                        "url": "/ns/domains"
                    },
                    {
                        "code": "domainGroup",
                        "name": "域名分组",
                        "url": "/ns/domains/groups"
                    },
                    {
                        "code": "domainBatch",
                        "name": "批量操作",
                        "url": "/ns/domains/batch"
                    },
                    {
                        "code": "route",
                        "name": "线路管理",
                        "url": "/ns/routes"
                    },
                    {
                        "code": "plan",
                        "name": "套餐",
                        "url": "/ns/plans"
                    }
                ]
            },
            {
                "code": "finance",
                "icon": "dollar sign",
                "isOn": true,
                "name": "财务管理",
                "subItems": [
                    {
                        "code": "overview",
                        "name": "概览",
                        "url": "/finance"
                    },
                    {
                        "code": "bills",
                        "name": "费用账单",
                        "url": "/finance/bills"
                    },
                    {
                        "code": "logs",
                        "name": "收支明细",
                        "url": "/finance/logs"
                    },
                    {
                        "code": "charge",
                        "name": "充值",
                        "url": "/finance/charge"
                    }
                ]
            },
            {
                "code": "tickets",
                "icon": "ticket",
                "isOn": true,
                "name": "工单系统"
            },
            {
                "code": "acl",
                "icon": "address book",
                "isOn": true,
                "name": "访问控制"
            }
        ],
        "teaName": "FlexCDN演示",
        "teaPageFooterHTML": "",
        "teaRole": "user",
        "teaShowIndexPage": false,
        "teaShowPageFooter": false,
        "teaSubMenu": "",
        "teaSubMenus": [],
        "teaTabbar": [],
        "teaTheme": "violet",
        "teaTitle": "FlexCDN用户系统演示",
        "teaUserAvatar": "",
        "teaVersion": "1.1.1",
        "uiConfig": {
            "bandwidthUnit": "bit",
            "showBandwidthCharts": true,
            "showTrafficCharts": true
        }
    },
    "/servers": {
        "countUnpaidBills": 0,
        "firstMenuItem": "index",
        "groupId": 0,
        "groups": [],
        "keyword": "",
        "mainMenu": "",
        "mainTab": "",
        "page": {
            "offset": 0,
            "size": 10,
            "current": 1,
            "max": 1,
            "total": 1,
            "path": "/servers",
            "query": {}
        },
        "servers": [
            {
                "cname": "",
                "countServerNames": 2,
                "groups": [],
                "httpIsOn": true,
                "httpsIsOn": true,
                "id": 1,
                "isAuditing": false,
                "isOn": true,
                "name": "测试网站",
                "serverNames": [
                    {
                        "name": "example.com",
                        "type": "full",
                        "subNames": null
                    }
                ],
                "status": {
                    "isOk": false,
                    "message": "集群配置错误",
                    "todo": "所属集群没有配置DNS，请联系管理员修复此问题。网站ID：1",
                    "type": "clusterDNSEmpty"
                },
                "trafficLimitStatus": null,
                "userPlan": {
                    "id": 0
                }
            }
        ],
        "serversIsEnabled": true,
        "teaBadge": 0,
        "teaCommon": {
            "teaIsPlus": true,
            "teaLogoFileId": 0,
            "teaShowVersion": true,
            "teaUsername": "默认用户"
        },
        "teaDemoEnabled": false,
        "teaDocURL": "",
        "teaFaviconFileId": 0,
        "teaFrontMode": "",
        "teaIsSuper": false,
        "teaLang": "zh-cn",
        "teaMenu": "servers",
        "teaModules": [
            {
                "code": "dashboard",
                "icon": "dashboard",
                "isOn": true,
                "name": "概览",
                "subItems": []
            },
            {
                "code": "servers",
                "icon": "pi-sitemap",
                "isOn": true,
                "name": "CDN加速",
                "subItems": [
                    {
                        "code": "servers",
                        "name": "我的网站",
                        "url": "/servers"
                    },
                    {
                        "code": "cache",
                        "name": "刷新预热",
                        "url": "/servers/cache"
                    },
                    {
                        "code": "certs",
                        "name": "证书管理",
                        "url": "/servers/certs"
                    },
                    {
                        "code": "acme",
                        "isOn": true,
                        "name": "证书申请",
                        "url": "/servers/certs/acme"
                    },
                    {
                        "code": "trafficStat",
                        "isOn": true,
                        "name": "用量统计",
                        "url": "/servers/traffic-stats"
                    },
                    {
                        "code": "fee",
                        "isOn": false,
                        "name": "计费方式",
                        "url": "/servers/fee"
                    },
                    {
                        "code": "trafficPackage",
                        "isOn": false,
                        "name": "流量包",
                        "url": "/servers/packages"
                    }
                ]
            },
            {
                "code": "lb",
                "icon": "paper plane",
                "isOn": true,
                "name": "负载均衡"
            },
            {
                "code": "waf",
                "icon": "magnet",
                "isOn": true,
                "name": "WAF安全",
                "subItems": [
                    {
                        "code": "overview",
                        "name": "概览",
                        "url": "/waf"
                    },
                    {
                        "code": "wafLogs",
                        "name": "拦截日志",
                        "url": "/waf/logs"
                    },
                    {
                        "code": "iplist",
                        "name": "拦截IP",
                        "url": "/waf/iplists"
                    }
                ]
            },
            {
                "code": "plans",
                "icon": "puzzle piece",
                "isOn": true,
                "name": "套餐管理"
            },
            {
                "code": "anti-ddos",
                "icon": "shield",
                "isOn": true,
                "name": "DDoS高防",
                "subItems": [
                    {
                        "code": "instance",
                        "name": "实例列表",
                        "url": "/anti-ddos/instances"
                    },
                    {
                        "code": "package",
                        "name": "购买实例",
                        "url": "/anti-ddos/packages"
                    }
                ]
            },
            {
                "code": "ns",
                "icon": "globe",
                "isOn": true,
                "name": "域名解析",
                "subItems": [
                    {
                        "code": "domain",
                        "name": "我的域名",
                        "url": "/ns/domains"
                    },
                    {
                        "code": "domainGroup",
                        "name": "域名分组",
                        "url": "/ns/domains/groups"
                    },
                    {
                        "code": "domainBatch",
                        "name": "批量操作",
                        "url": "/ns/domains/batch"
                    },
                    {
                        "code": "route",
                        "name": "线路管理",
                        "url": "/ns/routes"
                    },
                    {
                        "code": "plan",
                        "name": "套餐",
                        "url": "/ns/plans"
                    }
                ]
            },
            {
                "code": "finance",
                "icon": "dollar sign",
                "isOn": true,
                "name": "财务管理",
                "subItems": [
                    {
                        "code": "overview",
                        "name": "概览",
                        "url": "/finance"
                    },
                    {
                        "code": "bills",
                        "name": "费用账单",
                        "url": "/finance/bills"
                    },
                    {
                        "code": "logs",
                        "name": "收支明细",
                        "url": "/finance/logs"
                    },
                    {
                        "code": "charge",
                        "name": "充值",
                        "url": "/finance/charge"
                    }
                ]
            },
            {
                "code": "tickets",
                "icon": "ticket",
                "isOn": true,
                "name": "工单系统"
            },
            {
                "code": "acl",
                "icon": "address book",
                "isOn": true,
                "name": "访问控制"
            }
        ],
        "teaName": "FlexCDN演示",
        "teaPageFooterHTML": "",
        "teaRole": "user",
        "teaShowIndexPage": false,
        "teaShowPageFooter": false,
        "teaSubMenu": "servers",
        "teaSubMenus": [],
        "teaTabbar": [],
        "teaTheme": "violet",
        "teaTitle": "FlexCDN用户系统演示",
        "teaUserAvatar": "",
        "teaVersion": "1.1.1"
    },
    "/servers/create": {
        "clusterId": 1,
        "firstMenuItem": "create",
        "mainMenu": "",
        "mainTab": "",
        "ossBucketParams": [
            {
                "name": "指定${optionName}",
                "code": "input",
                "description": "在当前表单中输入${optionName}名称",
                "example": ""
            },
            {
                "name": "URL前缀",
                "code": "prefix",
                "description": "从访问的URL中的文件路径前缀中获取${optionName}名称",
                "example": "/BUCKET-NAME/filename"
            },
            {
                "name": "参数",
                "code": "arg",
                "description": "从访问的URL参数中获取${optionName}名称",
                "example": "/filename?ARG=BUCKET-NAME"
            },
            {
                "name": "子域名",
                "code": "subDomain",
                "description": "从访问的子域名中获取${optionName}名称",
                "example": "BUCKET-NAME.example.com/filename"
            }
        ],
        "ossTypes": [
            {
                "name": "腾讯云COS",
                "code": "oss:tencentCOS",
                "bucketOptionName": "存储桶",
                "bucketIgnored": false
            },
            {
                "name": "阿里云OSS",
                "code": "oss:aliyunOSS",
                "bucketOptionName": "存储空间",
                "bucketIgnored": false
            },
            {
                "name": "华为云OBS",
                "code": "oss:huaweiOBS",
                "bucketOptionName": "存储桶",
                "bucketIgnored": false
            },
            {
                "name": "百度云BOS",
                "code": "oss:baiduBOS",
                "bucketOptionName": "Bucket",
                "bucketIgnored": false
            },
            {
                "name": "七牛云Kodo",
                "code": "oss:qiniuKodo",
                "bucketOptionName": "存储空间",
                "bucketIgnored": true
            },
            {
                "name": "Amazon S3",
                "code": "oss:amazonS3",
                "bucketOptionName": "存储桶",
                "bucketIgnored": false
            },
            {
                "name": "B2云存储",
                "code": "oss:b2",
                "bucketOptionName": "存储桶",
                "bucketIgnored": false
            }
        ],
        "requirePlan": true,
        "teaBadge": 0,
        "teaCommon": {
            "teaIsPlus": true,
            "teaLogoFileId": 0,
            "teaShowVersion": true,
            "teaUsername": "默认用户"
        },
        "teaDemoEnabled": false,
        "teaDocURL": "",
        "teaFaviconFileId": 0,
        "teaFrontMode": "",
        "teaIsSuper": false,
        "teaLang": "zh-cn",
        "teaMenu": "servers",
        "teaModules": [
            {
                "code": "dashboard",
                "icon": "dashboard",
                "isOn": true,
                "name": "概览",
                "subItems": []
            },
            {
                "code": "servers",
                "icon": "pi-sitemap",
                "isOn": true,
                "name": "CDN加速",
                "subItems": [
                    {
                        "code": "servers",
                        "name": "我的网站",
                        "url": "/servers"
                    },
                    {
                        "code": "cache",
                        "name": "刷新预热",
                        "url": "/servers/cache"
                    },
                    {
                        "code": "certs",
                        "name": "证书管理",
                        "url": "/servers/certs"
                    },
                    {
                        "code": "acme",
                        "isOn": true,
                        "name": "证书申请",
                        "url": "/servers/certs/acme"
                    },
                    {
                        "code": "trafficStat",
                        "isOn": true,
                        "name": "用量统计",
                        "url": "/servers/traffic-stats"
                    },
                    {
                        "code": "fee",
                        "isOn": false,
                        "name": "计费方式",
                        "url": "/servers/fee"
                    },
                    {
                        "code": "trafficPackage",
                        "isOn": false,
                        "name": "流量包",
                        "url": "/servers/packages"
                    }
                ]
            },
            {
                "code": "lb",
                "icon": "paper plane",
                "isOn": true,
                "name": "负载均衡"
            },
            {
                "code": "waf",
                "icon": "magnet",
                "isOn": true,
                "name": "WAF安全",
                "subItems": [
                    {
                        "code": "overview",
                        "name": "概览",
                        "url": "/waf"
                    },
                    {
                        "code": "wafLogs",
                        "name": "拦截日志",
                        "url": "/waf/logs"
                    },
                    {
                        "code": "iplist",
                        "name": "拦截IP",
                        "url": "/waf/iplists"
                    }
                ]
            },
            {
                "code": "plans",
                "icon": "puzzle piece",
                "isOn": true,
                "name": "套餐管理"
            },
            {
                "code": "anti-ddos",
                "icon": "shield",
                "isOn": true,
                "name": "DDoS高防",
                "subItems": [
                    {
                        "code": "instance",
                        "name": "实例列表",
                        "url": "/anti-ddos/instances"
                    },
                    {
                        "code": "package",
                        "name": "购买实例",
                        "url": "/anti-ddos/packages"
                    }
                ]
            },
            {
                "code": "ns",
                "icon": "globe",
                "isOn": true,
                "name": "域名解析",
                "subItems": [
                    {
                        "code": "domain",
                        "name": "我的域名",
                        "url": "/ns/domains"
                    },
                    {
                        "code": "domainGroup",
                        "name": "域名分组",
                        "url": "/ns/domains/groups"
                    },
                    {
                        "code": "domainBatch",
                        "name": "批量操作",
                        "url": "/ns/domains/batch"
                    },
                    {
                        "code": "route",
                        "name": "线路管理",
                        "url": "/ns/routes"
                    },
                    {
                        "code": "plan",
                        "name": "套餐",
                        "url": "/ns/plans"
                    }
                ]
            },
            {
                "code": "finance",
                "icon": "dollar sign",
                "isOn": true,
                "name": "财务管理",
                "subItems": [
                    {
                        "code": "overview",
                        "name": "概览",
                        "url": "/finance"
                    },
                    {
                        "code": "bills",
                        "name": "费用账单",
                        "url": "/finance/bills"
                    },
                    {
                        "code": "logs",
                        "name": "收支明细",
                        "url": "/finance/logs"
                    },
                    {
                        "code": "charge",
                        "name": "充值",
                        "url": "/finance/charge"
                    }
                ]
            },
            {
                "code": "tickets",
                "icon": "ticket",
                "isOn": true,
                "name": "工单系统"
            },
            {
                "code": "acl",
                "icon": "address book",
                "isOn": true,
                "name": "访问控制"
            }
        ],
        "teaName": "FlexCDN演示",
        "teaPageFooterHTML": "",
        "teaRole": "user",
        "teaShowIndexPage": false,
        "teaShowPageFooter": false,
        "teaSubMenu": "servers",
        "teaSubMenus": [],
        "teaTabbar": [],
        "teaTheme": "violet",
        "teaTitle": "FlexCDN用户系统演示",
        "teaUserAvatar": "",
        "teaVersion": "1.1.1",
        "userPlans": []
    }
}

export default function InitData() {
    if (import.meta.env.MODE === "development") {
        const path = window.location.pathname;
        console.log("🚀current path is：", path);
        window.X_VIEW_DATA = dataMaps[path];
    }
}