mip-shell-xiaoshuo

优质
小牛编辑
129浏览
2023-12-01

说明

为极速小说阅读器定制的 mip-shell, 详细使用方法见wiki

简单示例

为极速小说阅读器定制的 mip-shell-xiaoshuo 目录页传入格式。pageType分为四种:'catalog'目录页,'page'小说内容页,'detail'小说详情页,'bookEnd'小说结尾页。officeId为熊掌号id。

<mip-shell-xiaoshuo mip-shell="">
  <script type="application/json">
    {
      "routes": [{
        "pattern": "mipx-xiaoshuo-(\\d)+-(\\d)+.html",
        "meta": {
          "header": {
            "show": true,
            "title": "神武天帝"
          },
          "pageType": "page",
          "officeId": "160957******0959",
          "footer": {
            "actionGroup": [
              {"name": "catalog", "text": "目录"},
              {"name": "darkmode", "text": "夜间模式", "text2": "白天模式"},
              {"name": "settings", "text": "更多设置"}
            ],
            "hrefButton": {
              "previous": "上一页",
              "next": "下一页"
            }
          },
          "book": {
            "title": "将夜",
            "chapterNumber": "共1347章",
            "chapterStatus": "已完结"
          },
          "catalog": [
            {
              "name": "第1章 灵魂重生",
              "link": "mipx-xiaoshuo-1-1.html",
              "pages": [
                "mipx-xiaoshuo-1-1.html",
                "mipx-xiaoshuo-1-2.html",
                "mipx-xiaoshuo-1-3.html"
              ]
            }
          ]
        }
      }]
    }
  </script>
</mip-shell-xiaoshuo>

routes

参考mip-shell用法