From d2d7c984897499ecbe11ee5fb95f74d0dccf5bec Mon Sep 17 00:00:00 2001 From: winixt Date: Sun, 23 Apr 2023 11:50:48 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20WeBankFi?= =?UTF-8?q?nTech/fes.js@acfac3dadbd6b7295da217d227a15ed4ff382443=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 6 +++--- ....html.ef11e76b.js => 404.html.2f935918.js} | 2 +- ...ml.701eacb0.js => access.html.6852bb72.js} | 2 +- ...ml.2783c102.js => access.html.96612f2a.js} | 2 +- assets/api.html.20695f57.js | 1 - ....html.3fadc9c0.js => api.html.21761e66.js} | 2 +- assets/api.html.3f905643.js | 1 + ....html.1aa2bbfa.js => api.html.d2c39420.js} | 2 +- ....html.b17fa30f.js => api.html.fb115fae.js} | 2 +- assets/{app.005e0daf.js => app.136d0839.js} | 2 +- ...l.e970d1bc.js => builder.html.92740dcf.js} | 2 +- ...l.999bf635.js => builder.html.d4d5757f.js} | 2 +- ....html.768b01bb.js => cli.html.3fb8d311.js} | 2 +- ....html.b37682a1.js => cli.html.dc7874d5.js} | 2 +- ...ml.3c4760e9.js => config.html.0f95fee4.js} | 2 +- ...ml.5d92a440.js => config.html.23adbc41.js} | 2 +- ...d4b5e.js => contributing.html.64460810.js} | 2 +- ...74808.js => contributing.html.ffe5b610.js} | 2 +- ....html.3990f0c1.js => css.html.01ba51a1.js} | 2 +- ....html.a45df14e.js => css.html.f84ebf1b.js} | 2 +- ...s => directory-structure.html.648522d5.js} | 2 +- ...s => directory-structure.html.a3497558.js} | 2 +- ...ml.604dae94.js => editor.html.00d961a1.js} | 2 +- ...ml.2fb88cf1.js => editor.html.4ada78c1.js} | 2 +- ...tml.e894dfd6.js => enums.html.193a4559.js} | 2 +- ...tml.7c55aefa.js => enums.html.6fdcc819.js} | 2 +- ....html.805df8a5.js => env.html.22a8783f.js} | 2 +- ....html.35aa0f1a.js => env.html.f0883984.js} | 2 +- ....html.f70ba546.js => faq.html.19ca02b3.js} | 2 +- assets/faq.html.1e599082.js | 1 - assets/faq.html.297bbbdd.js | 1 + ...2e.js => getting-started.html.75327633.js} | 2 +- ...66.js => getting-started.html.8fe3ee18.js} | 2 +- ...html.d2dc60da.js => icon.html.09ccd8f7.js} | 2 +- ...html.c524fb7f.js => icon.html.4241b668.js} | 2 +- ...tml.20b52f7d.js => image.html.79a8b9cd.js} | 2 +- ...tml.58aa17c7.js => image.html.a1010faf.js} | 2 +- ...tml.85db73e3.js => index.html.046ff532.js} | 2 +- ...tml.82e50780.js => index.html.1008b448.js} | 2 +- ...tml.bc74ee4c.js => index.html.41fe35ac.js} | 2 +- ...tml.d460e0cc.js => index.html.4d69d8eb.js} | 2 +- ...tml.5f811d7d.js => index.html.7fdbe73f.js} | 2 +- ...tml.174811be.js => index.html.9c124f68.js} | 2 +- ...tml.35cddc8c.js => index.html.a2c7ff1b.js} | 2 +- ...tml.7417ac5c.js => index.html.a83808da.js} | 2 +- ...tml.7e2b22df.js => index.html.b9b03365.js} | 2 +- ...tml.1f2b7059.js => index.html.c40cc049.js} | 2 +- ...tml.74321f46.js => index.html.d14f5124.js} | 2 +- ...tml.b3f98887.js => index.html.de23200e.js} | 2 +- ...tml.c22810d3.js => index.html.f7fd713b.js} | 15 ++++++++++++--- ...tml.8a34550e.js => index.html.fb3234bc.js} | 2 +- ...html.de551700.js => jest.html.300ecc20.js} | 2 +- ...html.9bcb2ce1.js => jest.html.f2aff521.js} | 2 +- ...ml.b7ee50eb.js => layout.html.76e01b19.js} | 2 +- ...ml.bccb8e74.js => layout.html.d2b5d2e8.js} | 2 +- ...ml.c1dcd857.js => locale.html.88762a65.js} | 2 +- ...ml.4d3b3790.js => locale.html.a3153873.js} | 2 +- ...tml.0ea4b7ad.js => login.html.31ddef26.js} | 2 +- ...tml.2f0338ab.js => login.html.d0c46ddc.js} | 2 +- ...html.9cef5d45.js => mock.html.7e263949.js} | 2 +- ...html.6d653289.js => mock.html.cde530fd.js} | 2 +- ...tml.3cd49de2.js => model.html.be6653d7.js} | 2 +- ...tml.fab33d63.js => model.html.ca3b743a.js} | 2 +- ...tml.1e6ca3bb.js => pinia.html.0c40ecc3.js} | 2 +- ...tml.1eb91490.js => pinia.html.bae2441d.js} | 2 +- ...ml.0095f814.js => plugin.html.2a53561b.js} | 2 +- ...ml.ccfb9074.js => plugin.html.daa490bd.js} | 2 +- ...ml.9d99cf84.js => public.html.21fc842c.js} | 2 +- ...ml.848eef99.js => public.html.f994234a.js} | 2 +- ...l.deb33c50.js => qiankun.html.2cf2e202.js} | 2 +- ...l.b3592391.js => qiankun.html.da0d7b2f.js} | 2 +- ...l.fe4ceade.js => request.html.35428bf8.js} | 2 +- ...l.f4de04c7.js => request.html.de605ef1.js} | 2 +- ...tml.3d217616.js => route.html.3b4ca41d.js} | 2 +- ...tml.aa1f3f0b.js => route.html.a925296f.js} | 2 +- ...810.js => runtime-config.html.759e2890.js} | 2 +- ...63e.js => runtime-config.html.b5a30568.js} | 2 +- ...html.9338147b.js => sass.html.c97cdc49.js} | 2 +- ...html.177ef37c.js => sass.html.f1aed3ec.js} | 2 +- ....html.0bd38fed.js => swc.html.01bd96f2.js} | 2 +- ....html.a56bb9f7.js => swc.html.22ce965c.js} | 2 +- ....decb42ff.js => template.html.c9556527.js} | 2 +- ....91640404.js => template.html.d37be6af.js} | 2 +- ....3629ebda.js => upgrade3.html.3968d9f9.js} | 2 +- ....0ae06c8e.js => upgrade3.html.907fe370.js} | 2 +- ...html.6d094802.js => vuex.html.7d6af135.js} | 2 +- ...html.36df398e.js => vuex.html.a4a38c6f.js} | 2 +- ...1d51b560.js => watermark.html.1c77b6b4.js} | 2 +- ...855d80c4.js => watermark.html.edeb015d.js} | 2 +- ....cc303ad2.js => windicss.html.6def97ac.js} | 2 +- ....17e40609.js => windicss.html.ab8a587e.js} | 2 +- guide/builder.html | 6 +++--- guide/config.html | 6 +++--- guide/contributing.html | 6 +++--- guide/css.html | 6 +++--- guide/directory-structure.html | 6 +++--- guide/env.html | 6 +++--- guide/faq.html | 6 +++--- guide/getting-started.html | 6 +++--- guide/image.html | 6 +++--- guide/index.html | 6 +++--- guide/mock.html | 6 +++--- guide/plugin.html | 6 +++--- guide/public.html | 6 +++--- guide/route.html | 6 +++--- guide/runtime-config.html | 6 +++--- guide/template.html | 6 +++--- guide/upgrade3.html | 6 +++--- index.html | 4 ++-- reference/api.html | 6 +++--- reference/api/index.html | 6 +++--- reference/cli.html | 6 +++--- reference/cli/index.html | 6 +++--- reference/config/index.html | 19 ++++++++++++++----- reference/plugin/dev/api.html | 6 +++--- reference/plugin/dev/index.html | 6 +++--- reference/plugin/index.html | 6 +++--- reference/plugin/plugins/access.html | 6 +++--- reference/plugin/plugins/editor.html | 6 +++--- reference/plugin/plugins/enums.html | 6 +++--- reference/plugin/plugins/icon.html | 6 +++--- reference/plugin/plugins/jest.html | 6 +++--- reference/plugin/plugins/layout.html | 6 +++--- reference/plugin/plugins/locale.html | 6 +++--- reference/plugin/plugins/login.html | 6 +++--- reference/plugin/plugins/model.html | 6 +++--- reference/plugin/plugins/pinia.html | 6 +++--- reference/plugin/plugins/qiankun.html | 6 +++--- reference/plugin/plugins/request.html | 6 +++--- reference/plugin/plugins/sass.html | 6 +++--- reference/plugin/plugins/swc.html | 6 +++--- reference/plugin/plugins/vuex.html | 6 +++--- reference/plugin/plugins/watermark.html | 6 +++--- reference/plugin/plugins/windicss.html | 6 +++--- service-worker.js | 2 +- 135 files changed, 242 insertions(+), 224 deletions(-) rename assets/{404.html.ef11e76b.js => 404.html.2f935918.js} (63%) rename assets/{access.html.701eacb0.js => access.html.6852bb72.js} (87%) rename assets/{access.html.2783c102.js => access.html.96612f2a.js} (99%) delete mode 100644 assets/api.html.20695f57.js rename assets/{api.html.3fadc9c0.js => api.html.21761e66.js} (79%) create mode 100644 assets/api.html.3f905643.js rename assets/{api.html.1aa2bbfa.js => api.html.d2c39420.js} (99%) rename assets/{api.html.b17fa30f.js => api.html.fb115fae.js} (96%) rename assets/{app.005e0daf.js => app.136d0839.js} (97%) rename assets/{builder.html.e970d1bc.js => builder.html.92740dcf.js} (71%) rename assets/{builder.html.999bf635.js => builder.html.d4d5757f.js} (97%) rename assets/{cli.html.768b01bb.js => cli.html.3fb8d311.js} (99%) rename assets/{cli.html.b37682a1.js => cli.html.dc7874d5.js} (72%) rename assets/{config.html.3c4760e9.js => config.html.0f95fee4.js} (99%) rename assets/{config.html.5d92a440.js => config.html.23adbc41.js} (68%) rename assets/{contributing.html.8cad4b5e.js => contributing.html.64460810.js} (99%) rename assets/{contributing.html.24d74808.js => contributing.html.ffe5b610.js} (73%) rename assets/{css.html.3990f0c1.js => css.html.01ba51a1.js} (77%) rename assets/{css.html.a45df14e.js => css.html.f84ebf1b.js} (98%) rename assets/{directory-structure.html.15096386.js => directory-structure.html.648522d5.js} (99%) rename assets/{directory-structure.html.4960a3b9.js => directory-structure.html.a3497558.js} (87%) rename assets/{editor.html.604dae94.js => editor.html.00d961a1.js} (99%) rename assets/{editor.html.2fb88cf1.js => editor.html.4ada78c1.js} (83%) rename assets/{enums.html.e894dfd6.js => enums.html.193a4559.js} (99%) rename assets/{enums.html.7c55aefa.js => enums.html.6fdcc819.js} (84%) rename assets/{env.html.805df8a5.js => env.html.22a8783f.js} (99%) rename assets/{env.html.35aa0f1a.js => env.html.f0883984.js} (89%) rename assets/{faq.html.f70ba546.js => faq.html.19ca02b3.js} (93%) delete mode 100644 assets/faq.html.1e599082.js create mode 100644 assets/faq.html.297bbbdd.js rename assets/{getting-started.html.8eca842e.js => getting-started.html.75327633.js} (80%) rename assets/{getting-started.html.3b600666.js => getting-started.html.8fe3ee18.js} (99%) rename assets/{icon.html.d2dc60da.js => icon.html.09ccd8f7.js} (75%) rename assets/{icon.html.c524fb7f.js => icon.html.4241b668.js} (98%) rename assets/{image.html.20b52f7d.js => image.html.79a8b9cd.js} (85%) rename assets/{image.html.58aa17c7.js => image.html.a1010faf.js} (99%) rename assets/{index.html.85db73e3.js => index.html.046ff532.js} (83%) rename assets/{index.html.82e50780.js => index.html.1008b448.js} (82%) rename assets/{index.html.bc74ee4c.js => index.html.41fe35ac.js} (91%) rename assets/{index.html.d460e0cc.js => index.html.4d69d8eb.js} (64%) rename assets/{index.html.5f811d7d.js => index.html.7fdbe73f.js} (99%) rename assets/{index.html.174811be.js => index.html.9c124f68.js} (98%) rename assets/{index.html.35cddc8c.js => index.html.a2c7ff1b.js} (91%) rename assets/{index.html.7417ac5c.js => index.html.a83808da.js} (98%) rename assets/{index.html.7e2b22df.js => index.html.b9b03365.js} (99%) rename assets/{index.html.1f2b7059.js => index.html.c40cc049.js} (97%) rename assets/{index.html.74321f46.js => index.html.d14f5124.js} (57%) rename assets/{index.html.b3f98887.js => index.html.de23200e.js} (63%) rename assets/{index.html.c22810d3.js => index.html.f7fd713b.js} (88%) rename assets/{index.html.8a34550e.js => index.html.fb3234bc.js} (99%) rename assets/{jest.html.de551700.js => jest.html.300ecc20.js} (80%) rename assets/{jest.html.9bcb2ce1.js => jest.html.f2aff521.js} (99%) rename assets/{layout.html.b7ee50eb.js => layout.html.76e01b19.js} (99%) rename assets/{layout.html.bccb8e74.js => layout.html.d2b5d2e8.js} (92%) rename assets/{locale.html.c1dcd857.js => locale.html.88762a65.js} (99%) rename assets/{locale.html.4d3b3790.js => locale.html.a3153873.js} (83%) rename assets/{login.html.0ea4b7ad.js => login.html.31ddef26.js} (98%) rename assets/{login.html.2f0338ab.js => login.html.d0c46ddc.js} (70%) rename assets/{mock.html.9cef5d45.js => mock.html.7e263949.js} (99%) rename assets/{mock.html.6d653289.js => mock.html.cde530fd.js} (81%) rename assets/{model.html.3cd49de2.js => model.html.be6653d7.js} (99%) rename assets/{model.html.fab33d63.js => model.html.ca3b743a.js} (83%) rename assets/{pinia.html.1e6ca3bb.js => pinia.html.0c40ecc3.js} (83%) rename assets/{pinia.html.1eb91490.js => pinia.html.bae2441d.js} (99%) rename assets/{plugin.html.0095f814.js => plugin.html.2a53561b.js} (99%) rename assets/{plugin.html.ccfb9074.js => plugin.html.daa490bd.js} (83%) rename assets/{public.html.9d99cf84.js => public.html.21fc842c.js} (75%) rename assets/{public.html.848eef99.js => public.html.f994234a.js} (98%) rename assets/{qiankun.html.deb33c50.js => qiankun.html.2cf2e202.js} (90%) rename assets/{qiankun.html.b3592391.js => qiankun.html.da0d7b2f.js} (99%) rename assets/{request.html.fe4ceade.js => request.html.35428bf8.js} (88%) rename assets/{request.html.f4de04c7.js => request.html.de605ef1.js} (99%) rename assets/{route.html.3d217616.js => route.html.3b4ca41d.js} (99%) rename assets/{route.html.aa1f3f0b.js => route.html.a925296f.js} (87%) rename assets/{runtime-config.html.d036f810.js => runtime-config.html.759e2890.js} (86%) rename assets/{runtime-config.html.c81fa63e.js => runtime-config.html.b5a30568.js} (99%) rename assets/{sass.html.9338147b.js => sass.html.c97cdc49.js} (97%) rename assets/{sass.html.177ef37c.js => sass.html.f1aed3ec.js} (70%) rename assets/{swc.html.0bd38fed.js => swc.html.01bd96f2.js} (98%) rename assets/{swc.html.a56bb9f7.js => swc.html.22ce965c.js} (71%) rename assets/{template.html.decb42ff.js => template.html.c9556527.js} (60%) rename assets/{template.html.91640404.js => template.html.d37be6af.js} (99%) rename assets/{upgrade3.html.3629ebda.js => upgrade3.html.3968d9f9.js} (98%) rename assets/{upgrade3.html.0ae06c8e.js => upgrade3.html.907fe370.js} (77%) rename assets/{vuex.html.6d094802.js => vuex.html.7d6af135.js} (99%) rename assets/{vuex.html.36df398e.js => vuex.html.a4a38c6f.js} (84%) rename assets/{watermark.html.1d51b560.js => watermark.html.1c77b6b4.js} (99%) rename assets/{watermark.html.855d80c4.js => watermark.html.edeb015d.js} (78%) rename assets/{windicss.html.cc303ad2.js => windicss.html.6def97ac.js} (72%) rename assets/{windicss.html.17e40609.js => windicss.html.ab8a587e.js} (97%) diff --git a/404.html b/404.html index effad636..8401b9be 100644 --- a/404.html +++ b/404.html @@ -24,10 +24,10 @@ | Fes.js - + -

404

这里什么都没有
返回首页
- +

404

这是一个 404 页面
返回首页
+ diff --git a/assets/404.html.ef11e76b.js b/assets/404.html.2f935918.js similarity index 63% rename from assets/404.html.ef11e76b.js rename to assets/404.html.2f935918.js index 2a0832fe..c15b2c99 100644 --- a/assets/404.html.ef11e76b.js +++ b/assets/404.html.2f935918.js @@ -1 +1 @@ -import{_ as e,o as c,c as t}from"./app.005e0daf.js";const _={};function o(r,n){return c(),t("div")}const a=e(_,[["render",o],["__file","404.html.vue"]]);export{a as default}; +import{_ as e,o as c,c as t}from"./app.136d0839.js";const _={};function o(r,n){return c(),t("div")}const a=e(_,[["render",o],["__file","404.html.vue"]]);export{a as default}; diff --git a/assets/access.html.701eacb0.js b/assets/access.html.6852bb72.js similarity index 87% rename from assets/access.html.701eacb0.js rename to assets/access.html.6852bb72.js index 60863b45..759229a5 100644 --- a/assets/access.html.701eacb0.js +++ b/assets/access.html.6852bb72.js @@ -1 +1 @@ -const e=JSON.parse('{"key":"v-2fe128e7","path":"/reference/plugin/plugins/access.html","title":"@fesjs/plugin-access","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[{"level":3,"title":"资源","slug":"资源","link":"#资源","children":[]},{"level":3,"title":"匹配规则","slug":"匹配规则","link":"#匹配规则","children":[]},{"level":3,"title":"角色","slug":"角色","link":"#角色","children":[]}]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"编译时配置","slug":"编译时配置","link":"#编译时配置","children":[{"level":3,"title":"roles","slug":"roles","link":"#roles","children":[]}]},{"level":2,"title":"运行时配置","slug":"运行时配置","link":"#运行时配置","children":[{"level":3,"title":"unAccessHandler","slug":"unaccesshandler","link":"#unaccesshandler","children":[]},{"level":3,"title":"noFoundHandler","slug":"nofoundhandler","link":"#nofoundhandler","children":[]},{"level":3,"title":"ignoreAccess","slug":"ignoreaccess","link":"#ignoreaccess","children":[]}]},{"level":2,"title":"API","slug":"api","link":"#api","children":[{"level":3,"title":"access","slug":"access","link":"#access","children":[]},{"level":3,"title":"useAccess","slug":"useaccess","link":"#useaccess","children":[]},{"level":3,"title":"v-access","slug":"v-access","link":"#v-access","children":[]},{"level":3,"title":"组件 Access","slug":"组件-access","link":"#组件-access","children":[]}]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/access.md"}');export{e as data}; +const e=JSON.parse('{"key":"v-2fe128e7","path":"/reference/plugin/plugins/access.html","title":"@fesjs/plugin-access","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[{"level":3,"title":"资源","slug":"资源","link":"#资源","children":[]},{"level":3,"title":"匹配规则","slug":"匹配规则","link":"#匹配规则","children":[]},{"level":3,"title":"角色","slug":"角色","link":"#角色","children":[]}]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"编译时配置","slug":"编译时配置","link":"#编译时配置","children":[{"level":3,"title":"roles","slug":"roles","link":"#roles","children":[]}]},{"level":2,"title":"运行时配置","slug":"运行时配置","link":"#运行时配置","children":[{"level":3,"title":"unAccessHandler","slug":"unaccesshandler","link":"#unaccesshandler","children":[]},{"level":3,"title":"noFoundHandler","slug":"nofoundhandler","link":"#nofoundhandler","children":[]},{"level":3,"title":"ignoreAccess","slug":"ignoreaccess","link":"#ignoreaccess","children":[]}]},{"level":2,"title":"API","slug":"api","link":"#api","children":[{"level":3,"title":"access","slug":"access","link":"#access","children":[]},{"level":3,"title":"useAccess","slug":"useaccess","link":"#useaccess","children":[]},{"level":3,"title":"v-access","slug":"v-access","link":"#v-access","children":[]},{"level":3,"title":"组件 Access","slug":"组件-access","link":"#组件-access","children":[]}]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/access.md"}');export{e as data}; diff --git a/assets/access.html.2783c102.js b/assets/access.html.96612f2a.js similarity index 99% rename from assets/access.html.2783c102.js rename to assets/access.html.96612f2a.js index 7a16d999..56c1ddb9 100644 --- a/assets/access.html.2783c102.js +++ b/assets/access.html.96612f2a.js @@ -1,4 +1,4 @@ -import{_ as p,r as c,o,c as l,b as s,d as a,a as e,f as n}from"./app.005e0daf.js";const i={},u=n(`

@fesjs/plugin-access

介绍

对于前端应用来说,权限就是页面、页面元素是否可见。

资源

Fes.js 把页面、页面元素统一叫做资源,用资源 ID 来识别区分他们:

<template>
+import{_ as p,r as c,o,c as l,b as s,d as a,a as e,f as n}from"./app.136d0839.js";const i={},u=n(`

@fesjs/plugin-access

介绍

对于前端应用来说,权限就是页面、页面元素是否可见。

资源

Fes.js 把页面、页面元素统一叫做资源,用资源 ID 来识别区分他们:

  • 页面的资源 ID 默认是页面的路由 path 。比如页面 pages/a.vue 的路由 path/a。当页面访问 /a 时会渲染当前页面,/a 也就是页面的 accessId
  • 页面元素的资源 ID 没有默认值,需要自定义。
<template>
     <access :id="accessId"> accessOnepicess1 </access>
     <div v-access="accessId">accessOnepicess2</div>
 </template>
diff --git a/assets/api.html.20695f57.js b/assets/api.html.20695f57.js
deleted file mode 100644
index ab6cf11c..00000000
--- a/assets/api.html.20695f57.js
+++ /dev/null
@@ -1 +0,0 @@
-const e=JSON.parse('{"key":"v-a1a49808","path":"/reference/api.html","title":"API","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/api.md"}');export{e as data};
diff --git a/assets/api.html.3fadc9c0.js b/assets/api.html.21761e66.js
similarity index 79%
rename from assets/api.html.3fadc9c0.js
rename to assets/api.html.21761e66.js
index dd7c4553..3fcc8386 100644
--- a/assets/api.html.3fadc9c0.js
+++ b/assets/api.html.21761e66.js
@@ -1 +1 @@
-import{_ as a,o as t,c,b as e,d as o}from"./app.005e0daf.js";const r={},s=e("h1",{id:"api",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#api","aria-hidden":"true"},"#"),o(" API")],-1),n=[s];function _(i,d){return t(),c("div",null,n)}const l=a(r,[["render",_],["__file","api.html.vue"]]);export{l as default};
+import{_ as a,o as t,c,b as e,d as o}from"./app.136d0839.js";const r={},s=e("h1",{id:"api",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#api","aria-hidden":"true"},"#"),o(" API")],-1),n=[s];function _(i,d){return t(),c("div",null,n)}const l=a(r,[["render",_],["__file","api.html.vue"]]);export{l as default};
diff --git a/assets/api.html.3f905643.js b/assets/api.html.3f905643.js
new file mode 100644
index 00000000..a6d34bdc
--- /dev/null
+++ b/assets/api.html.3f905643.js
@@ -0,0 +1 @@
+const e=JSON.parse('{"key":"v-a1a49808","path":"/reference/api.html","title":"API","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/api.md"}');export{e as data};
diff --git a/assets/api.html.1aa2bbfa.js b/assets/api.html.d2c39420.js
similarity index 99%
rename from assets/api.html.1aa2bbfa.js
rename to assets/api.html.d2c39420.js
index f2ce9d3a..c5c5bdcd 100644
--- a/assets/api.html.1aa2bbfa.js
+++ b/assets/api.html.d2c39420.js
@@ -1,4 +1,4 @@
-import{_ as e,r as i,o,c,b as n,d as a,a as p,f as t}from"./app.005e0daf.js";const l={},u=t(`

插件 API

属性

api.paths

一些关键的路径:

  • cwd,执行命令的绝对路径
  • absNodeModulesPath,nodeModule 的绝对路径
  • absOutputPath,输出 build 产物的绝对路径
  • absSrcPath,src 目录的绝对路径
  • absPagesPath,pages目录的绝对路径
  • absTmpPath,.fes临时文件目录的绝对路径

api.cwd

执行命令的绝对路径

api.pkg

package.json的内容

api.configInstance

config实例

userConfig

用户配置

config

插件配置可被修改,此为最终的配置

env

process.env

args

环境变量

核心方法

describe

注册阶段执行,用于描述插件或插件集的 id、key、配置信息、启用方式等。

用法:describe({ id?: string, key?: string, config?: { default, schema, onChange } }, enableBy?)

例如:

api.describe({
+import{_ as e,r as i,o,c,b as n,d as a,a as p,f as t}from"./app.136d0839.js";const l={},u=t(`

插件 API

属性

api.paths

一些关键的路径:

  • cwd,执行命令的绝对路径
  • absNodeModulesPath,nodeModule 的绝对路径
  • absOutputPath,输出 build 产物的绝对路径
  • absSrcPath,src 目录的绝对路径
  • absPagesPath,pages目录的绝对路径
  • absTmpPath,.fes临时文件目录的绝对路径

api.cwd

执行命令的绝对路径

api.pkg

package.json的内容

api.configInstance

config实例

userConfig

用户配置

config

插件配置可被修改,此为最终的配置

env

process.env

args

环境变量

核心方法

describe

注册阶段执行,用于描述插件或插件集的 id、key、配置信息、启用方式等。

用法:describe({ id?: string, key?: string, config?: { default, schema, onChange } }, enableBy?)

例如:

api.describe({
     key: 'esbuild',
     config: {
         schema(joi) {
diff --git a/assets/api.html.b17fa30f.js b/assets/api.html.fb115fae.js
similarity index 96%
rename from assets/api.html.b17fa30f.js
rename to assets/api.html.fb115fae.js
index 5781817a..fd320c69 100644
--- a/assets/api.html.b17fa30f.js
+++ b/assets/api.html.fb115fae.js
@@ -1 +1 @@
-const e=JSON.parse('{"key":"v-c5618810","path":"/reference/plugin/dev/api.html","title":"插件 API","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"属性","slug":"属性","link":"#属性","children":[{"level":3,"title":"api.paths","slug":"api-paths","link":"#api-paths","children":[]},{"level":3,"title":"api.cwd","slug":"api-cwd","link":"#api-cwd","children":[]},{"level":3,"title":"api.pkg","slug":"api-pkg","link":"#api-pkg","children":[]},{"level":3,"title":"api.configInstance","slug":"api-configinstance","link":"#api-configinstance","children":[]},{"level":3,"title":"userConfig","slug":"userconfig","link":"#userconfig","children":[]},{"level":3,"title":"config","slug":"config","link":"#config","children":[]},{"level":3,"title":"env","slug":"env","link":"#env","children":[]},{"level":3,"title":"args","slug":"args","link":"#args","children":[]}]},{"level":2,"title":"核心方法","slug":"核心方法","link":"#核心方法","children":[{"level":3,"title":"describe","slug":"describe","link":"#describe","children":[]},{"level":3,"title":"register","slug":"register","link":"#register","children":[]},{"level":3,"title":"applyPlugins","slug":"applyplugins","link":"#applyplugins","children":[]},{"level":3,"title":"registerMethod","slug":"registermethod","link":"#registermethod","children":[]},{"level":3,"title":"registerCommand","slug":"registercommand","link":"#registercommand","children":[]},{"level":3,"title":"registerPresets","slug":"registerpresets","link":"#registerpresets","children":[]},{"level":3,"title":"registerPlugins","slug":"registerplugins","link":"#registerplugins","children":[]},{"level":3,"title":"hasPlugins","slug":"hasplugins","link":"#hasplugins","children":[]},{"level":3,"title":"hasPresets","slug":"haspresets","link":"#haspresets","children":[]},{"level":3,"title":"skipPlugins","slug":"skipplugins","link":"#skipplugins","children":[]}]},{"level":2,"title":"扩展方法","slug":"扩展方法","link":"#扩展方法","children":[{"level":3,"title":"addPluginExports","slug":"addpluginexports","link":"#addpluginexports","children":[]},{"level":3,"title":"addCoreExports","slug":"addcoreexports","link":"#addcoreexports","children":[]},{"level":3,"title":"addRuntimePlugin","slug":"addruntimeplugin","link":"#addruntimeplugin","children":[]},{"level":3,"title":"addRuntimePluginKey","slug":"addruntimepluginkey","link":"#addruntimepluginkey","children":[]},{"level":3,"title":"addEntryImportsAhead","slug":"addentryimportsahead","link":"#addentryimportsahead","children":[]},{"level":3,"title":"addEntryImports","slug":"addentryimports","link":"#addentryimports","children":[]},{"level":3,"title":"addEntryCodeAhead","slug":"addentrycodeahead","link":"#addentrycodeahead","children":[]},{"level":3,"title":"addEntryCode","slug":"addentrycode","link":"#addentrycode","children":[]},{"level":3,"title":"addHTMLHeadScripts","slug":"addhtmlheadscripts","link":"#addhtmlheadscripts","children":[]},{"level":3,"title":"addBeforeMiddlewares","slug":"addbeforemiddlewares","link":"#addbeforemiddlewares","children":[]},{"level":3,"title":"addMiddlewares","slug":"addmiddlewares","link":"#addmiddlewares","children":[]},{"level":3,"title":"addTmpGenerateWatcherPaths","slug":"addtmpgeneratewatcherpaths","link":"#addtmpgeneratewatcherpaths","children":[]},{"level":3,"title":"chainWebpack","slug":"chainwebpack","link":"#chainwebpack","children":[]},{"level":3,"title":"copyTmpFiles","slug":"copytmpfiles","link":"#copytmpfiles","children":[]},{"level":3,"title":"getPort","slug":"getport","link":"#getport","children":[]},{"level":3,"title":"getHostname","slug":"gethostname","link":"#gethostname","children":[]},{"level":3,"title":"getServer","slug":"getserver","link":"#getserver","children":[]},{"level":3,"title":"getRoutes","slug":"getroutes","link":"#getroutes","children":[]},{"level":3,"title":"getRoutesJSON","slug":"getroutesjson","link":"#getroutesjson","children":[]},{"level":3,"title":"modifyRoutes","slug":"modifyroutes","link":"#modifyroutes","children":[]},{"level":3,"title":"modifyBundleConfigOpts","slug":"modifybundleconfigopts","link":"#modifybundleconfigopts","children":[]},{"level":3,"title":"modifyBundleConfig","slug":"modifybundleconfig","link":"#modifybundleconfig","children":[]},{"level":3,"title":"modifyBabelOpts","slug":"modifybabelopts","link":"#modifybabelopts","children":[]},{"level":3,"title":"modifyBabelPresetOpts","slug":"modifybabelpresetopts","link":"#modifybabelpresetopts","children":[]},{"level":3,"title":"modifyPaths","slug":"modifypaths","link":"#modifypaths","children":[]},{"level":3,"title":"modifyDefaultConfig","slug":"modifydefaultconfig","link":"#modifydefaultconfig","children":[]},{"level":3,"title":"modifyConfig","slug":"modifyconfig","link":"#modifyconfig","children":[]},{"level":3,"title":"modifyPublicPathStr","slug":"modifypublicpathstr","link":"#modifypublicpathstr","children":[]},{"level":3,"title":"onPluginReady","slug":"onpluginready","link":"#onpluginready","children":[]},{"level":3,"title":"onStart","slug":"onstart","link":"#onstart","children":[]},{"level":3,"title":"onExit","slug":"onexit","link":"#onexit","children":[]},{"level":3,"title":"onGenerateFiles","slug":"ongeneratefiles","link":"#ongeneratefiles","children":[]},{"level":3,"title":"restartServer","slug":"restartserver","link":"#restartserver","children":[]},{"level":3,"title":"writeTmpFile","slug":"writetmpfile","link":"#writetmpfile","children":[]}]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/dev/api.md"}');export{e as data};
+const e=JSON.parse('{"key":"v-c5618810","path":"/reference/plugin/dev/api.html","title":"插件 API","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"属性","slug":"属性","link":"#属性","children":[{"level":3,"title":"api.paths","slug":"api-paths","link":"#api-paths","children":[]},{"level":3,"title":"api.cwd","slug":"api-cwd","link":"#api-cwd","children":[]},{"level":3,"title":"api.pkg","slug":"api-pkg","link":"#api-pkg","children":[]},{"level":3,"title":"api.configInstance","slug":"api-configinstance","link":"#api-configinstance","children":[]},{"level":3,"title":"userConfig","slug":"userconfig","link":"#userconfig","children":[]},{"level":3,"title":"config","slug":"config","link":"#config","children":[]},{"level":3,"title":"env","slug":"env","link":"#env","children":[]},{"level":3,"title":"args","slug":"args","link":"#args","children":[]}]},{"level":2,"title":"核心方法","slug":"核心方法","link":"#核心方法","children":[{"level":3,"title":"describe","slug":"describe","link":"#describe","children":[]},{"level":3,"title":"register","slug":"register","link":"#register","children":[]},{"level":3,"title":"applyPlugins","slug":"applyplugins","link":"#applyplugins","children":[]},{"level":3,"title":"registerMethod","slug":"registermethod","link":"#registermethod","children":[]},{"level":3,"title":"registerCommand","slug":"registercommand","link":"#registercommand","children":[]},{"level":3,"title":"registerPresets","slug":"registerpresets","link":"#registerpresets","children":[]},{"level":3,"title":"registerPlugins","slug":"registerplugins","link":"#registerplugins","children":[]},{"level":3,"title":"hasPlugins","slug":"hasplugins","link":"#hasplugins","children":[]},{"level":3,"title":"hasPresets","slug":"haspresets","link":"#haspresets","children":[]},{"level":3,"title":"skipPlugins","slug":"skipplugins","link":"#skipplugins","children":[]}]},{"level":2,"title":"扩展方法","slug":"扩展方法","link":"#扩展方法","children":[{"level":3,"title":"addPluginExports","slug":"addpluginexports","link":"#addpluginexports","children":[]},{"level":3,"title":"addCoreExports","slug":"addcoreexports","link":"#addcoreexports","children":[]},{"level":3,"title":"addRuntimePlugin","slug":"addruntimeplugin","link":"#addruntimeplugin","children":[]},{"level":3,"title":"addRuntimePluginKey","slug":"addruntimepluginkey","link":"#addruntimepluginkey","children":[]},{"level":3,"title":"addEntryImportsAhead","slug":"addentryimportsahead","link":"#addentryimportsahead","children":[]},{"level":3,"title":"addEntryImports","slug":"addentryimports","link":"#addentryimports","children":[]},{"level":3,"title":"addEntryCodeAhead","slug":"addentrycodeahead","link":"#addentrycodeahead","children":[]},{"level":3,"title":"addEntryCode","slug":"addentrycode","link":"#addentrycode","children":[]},{"level":3,"title":"addHTMLHeadScripts","slug":"addhtmlheadscripts","link":"#addhtmlheadscripts","children":[]},{"level":3,"title":"addBeforeMiddlewares","slug":"addbeforemiddlewares","link":"#addbeforemiddlewares","children":[]},{"level":3,"title":"addMiddlewares","slug":"addmiddlewares","link":"#addmiddlewares","children":[]},{"level":3,"title":"addTmpGenerateWatcherPaths","slug":"addtmpgeneratewatcherpaths","link":"#addtmpgeneratewatcherpaths","children":[]},{"level":3,"title":"chainWebpack","slug":"chainwebpack","link":"#chainwebpack","children":[]},{"level":3,"title":"copyTmpFiles","slug":"copytmpfiles","link":"#copytmpfiles","children":[]},{"level":3,"title":"getPort","slug":"getport","link":"#getport","children":[]},{"level":3,"title":"getHostname","slug":"gethostname","link":"#gethostname","children":[]},{"level":3,"title":"getServer","slug":"getserver","link":"#getserver","children":[]},{"level":3,"title":"getRoutes","slug":"getroutes","link":"#getroutes","children":[]},{"level":3,"title":"getRoutesJSON","slug":"getroutesjson","link":"#getroutesjson","children":[]},{"level":3,"title":"modifyRoutes","slug":"modifyroutes","link":"#modifyroutes","children":[]},{"level":3,"title":"modifyBundleConfigOpts","slug":"modifybundleconfigopts","link":"#modifybundleconfigopts","children":[]},{"level":3,"title":"modifyBundleConfig","slug":"modifybundleconfig","link":"#modifybundleconfig","children":[]},{"level":3,"title":"modifyBabelOpts","slug":"modifybabelopts","link":"#modifybabelopts","children":[]},{"level":3,"title":"modifyBabelPresetOpts","slug":"modifybabelpresetopts","link":"#modifybabelpresetopts","children":[]},{"level":3,"title":"modifyPaths","slug":"modifypaths","link":"#modifypaths","children":[]},{"level":3,"title":"modifyDefaultConfig","slug":"modifydefaultconfig","link":"#modifydefaultconfig","children":[]},{"level":3,"title":"modifyConfig","slug":"modifyconfig","link":"#modifyconfig","children":[]},{"level":3,"title":"modifyPublicPathStr","slug":"modifypublicpathstr","link":"#modifypublicpathstr","children":[]},{"level":3,"title":"onPluginReady","slug":"onpluginready","link":"#onpluginready","children":[]},{"level":3,"title":"onStart","slug":"onstart","link":"#onstart","children":[]},{"level":3,"title":"onExit","slug":"onexit","link":"#onexit","children":[]},{"level":3,"title":"onGenerateFiles","slug":"ongeneratefiles","link":"#ongeneratefiles","children":[]},{"level":3,"title":"restartServer","slug":"restartserver","link":"#restartserver","children":[]},{"level":3,"title":"writeTmpFile","slug":"writetmpfile","link":"#writetmpfile","children":[]}]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/dev/api.md"}');export{e as data};
diff --git a/assets/app.005e0daf.js b/assets/app.136d0839.js
similarity index 97%
rename from assets/app.005e0daf.js
rename to assets/app.136d0839.js
index 2d263331..f0895452 100644
--- a/assets/app.005e0daf.js
+++ b/assets/app.136d0839.js
@@ -1,4 +1,4 @@
-const sf="modulepreload",af=function(e){return"/fes.js/"+e},vs={},B=function(t,n,r){return!n||n.length===0?t():Promise.all(n.map(o=>{if(o=af(o),o in vs)return;vs[o]=!0;const i=o.endsWith(".css"),s=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${s}`))return;const a=document.createElement("link");if(a.rel=i?"stylesheet":sf,i||(a.as="script",a.crossOrigin=""),a.href=o,document.head.appendChild(a),i)return new Promise((l,u)=>{a.addEventListener("load",l),a.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())},lf={"v-8daa1a0e":()=>B(()=>import("./index.html.bc74ee4c.js"),[]).then(({data:e})=>e),"v-fffb8e28":()=>B(()=>import("./index.html.85db73e3.js"),[]).then(({data:e})=>e),"v-0cca110a":()=>B(()=>import("./builder.html.e970d1bc.js"),[]).then(({data:e})=>e),"v-85fa9b2a":()=>B(()=>import("./config.html.5d92a440.js"),[]).then(({data:e})=>e),"v-d7fa887a":()=>B(()=>import("./contributing.html.24d74808.js"),[]).then(({data:e})=>e),"v-884fd4bc":()=>B(()=>import("./css.html.3990f0c1.js"),[]).then(({data:e})=>e),"v-040800dc":()=>B(()=>import("./directory-structure.html.4960a3b9.js"),[]).then(({data:e})=>e),"v-ef8c5e10":()=>B(()=>import("./env.html.35aa0f1a.js"),[]).then(({data:e})=>e),"v-37e1c06f":()=>B(()=>import("./faq.html.1e599082.js"),[]).then(({data:e})=>e),"v-fb0f0066":()=>B(()=>import("./getting-started.html.8eca842e.js"),[]).then(({data:e})=>e),"v-528b8b6c":()=>B(()=>import("./image.html.20b52f7d.js"),[]).then(({data:e})=>e),"v-00cf7e23":()=>B(()=>import("./mock.html.6d653289.js"),[]).then(({data:e})=>e),"v-1d14d5cc":()=>B(()=>import("./plugin.html.ccfb9074.js"),[]).then(({data:e})=>e),"v-7b96e3a4":()=>B(()=>import("./public.html.9d99cf84.js"),[]).then(({data:e})=>e),"v-6320961c":()=>B(()=>import("./route.html.aa1f3f0b.js"),[]).then(({data:e})=>e),"v-3dba8814":()=>B(()=>import("./runtime-config.html.d036f810.js"),[]).then(({data:e})=>e),"v-7b48519a":()=>B(()=>import("./template.html.decb42ff.js"),[]).then(({data:e})=>e),"v-4acab794":()=>B(()=>import("./upgrade3.html.0ae06c8e.js"),[]).then(({data:e})=>e),"v-a1a49808":()=>B(()=>import("./api.html.20695f57.js"),[]).then(({data:e})=>e),"v-a951be94":()=>B(()=>import("./cli.html.b37682a1.js"),[]).then(({data:e})=>e),"v-76cd065c":()=>B(()=>import("./index.html.35cddc8c.js"),[]).then(({data:e})=>e),"v-76cb52e8":()=>B(()=>import("./index.html.82e50780.js"),[]).then(({data:e})=>e),"v-2c05b6e0":()=>B(()=>import("./index.html.74321f46.js"),[]).then(({data:e})=>e),"v-d61a9282":()=>B(()=>import("./index.html.d460e0cc.js"),[]).then(({data:e})=>e),"v-494b840e":()=>B(()=>import("./index.html.b3f98887.js"),[]).then(({data:e})=>e),"v-c5618810":()=>B(()=>import("./api.html.b17fa30f.js"),[]).then(({data:e})=>e),"v-2fe128e7":()=>B(()=>import("./access.html.701eacb0.js"),[]).then(({data:e})=>e),"v-323bda7e":()=>B(()=>import("./editor.html.2fb88cf1.js"),[]).then(({data:e})=>e),"v-c253c956":()=>B(()=>import("./enums.html.7c55aefa.js"),[]).then(({data:e})=>e),"v-0a0e491c":()=>B(()=>import("./icon.html.d2dc60da.js"),[]).then(({data:e})=>e),"v-3cd5a4ef":()=>B(()=>import("./jest.html.de551700.js"),[]).then(({data:e})=>e),"v-355ee23e":()=>B(()=>import("./layout.html.bccb8e74.js"),[]).then(({data:e})=>e),"v-411c0c9e":()=>B(()=>import("./locale.html.4d3b3790.js"),[]).then(({data:e})=>e),"v-56ab05de":()=>B(()=>import("./login.html.2f0338ab.js"),[]).then(({data:e})=>e),"v-3c4e521e":()=>B(()=>import("./model.html.fab33d63.js"),[]).then(({data:e})=>e),"v-6f2f6a5a":()=>B(()=>import("./pinia.html.1e6ca3bb.js"),[]).then(({data:e})=>e),"v-b15becb0":()=>B(()=>import("./qiankun.html.deb33c50.js"),[]).then(({data:e})=>e),"v-41dee210":()=>B(()=>import("./request.html.fe4ceade.js"),[]).then(({data:e})=>e),"v-5bf80046":()=>B(()=>import("./sass.html.177ef37c.js"),[]).then(({data:e})=>e),"v-317f9008":()=>B(()=>import("./swc.html.a56bb9f7.js"),[]).then(({data:e})=>e),"v-5f4c684e":()=>B(()=>import("./vuex.html.36df398e.js"),[]).then(({data:e})=>e),"v-1c0edac3":()=>B(()=>import("./watermark.html.855d80c4.js"),[]).then(({data:e})=>e),"v-392e58ee":()=>B(()=>import("./windicss.html.cc303ad2.js"),[]).then(({data:e})=>e),"v-3706649a":()=>B(()=>import("./404.html.c3e557d0.js"),[]).then(({data:e})=>e)};function Ri(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}function _r(e){if(oe(e)){const t={};for(let n=0;n{if(n){const r=n.split(uf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function et(e){let t="";if(Oe(e))t=e;else if(oe(e))for(let n=0;nOe(e)?e:e==null?"":oe(e)||Te(e)&&(e.toString===ql||!fe(e.toString))?JSON.stringify(e,Fl,2):String(e),Fl=(e,t)=>t&&t.__v_isRef?Fl(e,t.value):Sn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:Bl(t)?{[`Set(${t.size})`]:[...t.values()]}:Te(t)&&!oe(t)&&!Ul(t)?String(t):t,xe={},wn=[],mt=()=>{},hf=()=>!1,vf=/^on[^a-z]/,yr=e=>vf.test(e),ji=e=>e.startsWith("onUpdate:"),ze=Object.assign,Di=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},gf=Object.prototype.hasOwnProperty,_e=(e,t)=>gf.call(e,t),oe=Array.isArray,Sn=e=>_o(e)==="[object Map]",Bl=e=>_o(e)==="[object Set]",fe=e=>typeof e=="function",Oe=e=>typeof e=="string",Ni=e=>typeof e=="symbol",Te=e=>e!==null&&typeof e=="object",Vl=e=>Te(e)&&fe(e.then)&&fe(e.catch),ql=Object.prototype.toString,_o=e=>ql.call(e),_f=e=>_o(e).slice(8,-1),Ul=e=>_o(e)==="[object Object]",Mi=e=>Oe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Gn=Ri(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),yo=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},yf=/-(\w)/g,Et=yo(e=>e.replace(yf,(t,n)=>n?n.toUpperCase():"")),bf=/\B([A-Z])/g,dn=yo(e=>e.replace(bf,"-$1").toLowerCase()),bo=yo(e=>e.charAt(0).toUpperCase()+e.slice(1)),Do=yo(e=>e?`on${bo(e)}`:""),ar=(e,t)=>!Object.is(e,t),No=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ef=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Of=e=>{const t=Oe(e)?Number(e):NaN;return isNaN(t)?e:t};let gs;const wf=()=>gs||(gs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let rt;class Sf{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=rt,!t&&rt&&(this.index=(rt.scopes||(rt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=rt;try{return rt=this,t()}finally{rt=n}}}on(){rt=this}off(){rt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Kl=e=>(e.w&qt)>0,Wl=e=>(e.n&qt)>0,If=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(c==="length"||c>=l)&&a.push(u)})}else switch(n!==void 0&&a.push(s.get(n)),t){case"add":oe(e)?Mi(n)&&a.push(s.get("length")):(a.push(s.get(un)),Sn(e)&&a.push(s.get(oi)));break;case"delete":oe(e)||(a.push(s.get(un)),Sn(e)&&a.push(s.get(oi)));break;case"set":Sn(e)&&a.push(s.get(un));break}if(a.length===1)a[0]&&ii(a[0]);else{const l=[];for(const u of a)u&&l.push(...u);ii($i(l))}}function ii(e,t){const n=oe(e)?e:[...e];for(const r of n)r.computed&&ys(r);for(const r of n)r.computed||ys(r)}function ys(e,t){(e!==dt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Af(e,t){var n;return(n=Yr.get(e))===null||n===void 0?void 0:n.get(t)}const xf=Ri("__proto__,__v_isRef,__isVue"),Zl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ni)),Tf=Fi(),Lf=Fi(!1,!0),Rf=Fi(!0),bs=jf();function jf(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=be(this);for(let i=0,s=this.length;i{e[t]=function(...n){Dn();const r=be(this)[t].apply(this,n);return Nn(),r}}),e}function Df(e){const t=be(this);return tt(t,"has",e),t.hasOwnProperty(e)}function Fi(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?Yf:tc:t?ec:Xl).get(r))return r;const s=oe(r);if(!e){if(s&&_e(bs,o))return Reflect.get(bs,o,i);if(o==="hasOwnProperty")return Df}const a=Reflect.get(r,o,i);return(Ni(o)?Zl.has(o):xf(o))||(e||tt(r,"get",o),t)?a:Ve(a)?s&&Mi(o)?a:a.value:Te(a)?e?Oo(a):Mn(a):a}}const Nf=Yl(),Mf=Yl(!0);function Yl(e=!1){return function(n,r,o,i){let s=n[r];if(An(s)&&Ve(s)&&!Ve(o))return!1;if(!e&&(!Gr(o)&&!An(o)&&(s=be(s),o=be(o)),!oe(n)&&Ve(s)&&!Ve(o)))return s.value=o,!0;const a=oe(n)&&Mi(r)?Number(r)e,Eo=e=>Reflect.getPrototypeOf(e);function Pr(e,t,n=!1,r=!1){e=e.__v_raw;const o=be(e),i=be(t);n||(t!==i&&tt(o,"get",t),tt(o,"get",i));const{has:s}=Eo(o),a=r?Bi:n?Ui:lr;if(s.call(o,t))return a(e.get(t));if(s.call(o,i))return a(e.get(i));e!==o&&e.get(t)}function Cr(e,t=!1){const n=this.__v_raw,r=be(n),o=be(e);return t||(e!==o&&tt(r,"has",e),tt(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Ir(e,t=!1){return e=e.__v_raw,!t&&tt(be(e),"iterate",un),Reflect.get(e,"size",e)}function Es(e){e=be(e);const t=be(this);return Eo(t).has.call(t,e)||(t.add(e),xt(t,"add",e,e)),this}function Os(e,t){t=be(t);const n=be(this),{has:r,get:o}=Eo(n);let i=r.call(n,e);i||(e=be(e),i=r.call(n,e));const s=o.call(n,e);return n.set(e,t),i?ar(t,s)&&xt(n,"set",e,t):xt(n,"add",e,t),this}function ws(e){const t=be(this),{has:n,get:r}=Eo(t);let o=n.call(t,e);o||(e=be(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&xt(t,"delete",e,void 0),i}function Ss(){const e=be(this),t=e.size!==0,n=e.clear();return t&&xt(e,"clear",void 0,void 0),n}function kr(e,t){return function(r,o){const i=this,s=i.__v_raw,a=be(s),l=t?Bi:e?Ui:lr;return!e&&tt(a,"iterate",un),s.forEach((u,c)=>r.call(o,l(u),l(c),i))}}function Ar(e,t,n){return function(...r){const o=this.__v_raw,i=be(o),s=Sn(i),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=o[e](...r),c=n?Bi:t?Ui:lr;return!t&&tt(i,"iterate",l?oi:un),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:a?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Rt(e){return function(...t){return e==="delete"?!1:this}}function qf(){const e={get(i){return Pr(this,i)},get size(){return Ir(this)},has:Cr,add:Es,set:Os,delete:ws,clear:Ss,forEach:kr(!1,!1)},t={get(i){return Pr(this,i,!1,!0)},get size(){return Ir(this)},has:Cr,add:Es,set:Os,delete:ws,clear:Ss,forEach:kr(!1,!0)},n={get(i){return Pr(this,i,!0)},get size(){return Ir(this,!0)},has(i){return Cr.call(this,i,!0)},add:Rt("add"),set:Rt("set"),delete:Rt("delete"),clear:Rt("clear"),forEach:kr(!0,!1)},r={get(i){return Pr(this,i,!0,!0)},get size(){return Ir(this,!0)},has(i){return Cr.call(this,i,!0)},add:Rt("add"),set:Rt("set"),delete:Rt("delete"),clear:Rt("clear"),forEach:kr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Ar(i,!1,!1),n[i]=Ar(i,!0,!1),t[i]=Ar(i,!1,!0),r[i]=Ar(i,!0,!0)}),[e,n,t,r]}const[Uf,zf,Kf,Wf]=qf();function Vi(e,t){const n=t?e?Wf:Kf:e?zf:Uf;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(_e(n,o)&&o in r?n:r,o,i)}const Jf={get:Vi(!1,!1)},Qf={get:Vi(!1,!0)},Zf={get:Vi(!0,!1)},Xl=new WeakMap,ec=new WeakMap,tc=new WeakMap,Yf=new WeakMap;function Gf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Xf(e){return e.__v_skip||!Object.isExtensible(e)?0:Gf(_f(e))}function Mn(e){return An(e)?e:qi(e,!1,Gl,Jf,Xl)}function ed(e){return qi(e,!1,Vf,Qf,ec)}function Oo(e){return qi(e,!0,Bf,Zf,tc)}function qi(e,t,n,r,o){if(!Te(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const s=Xf(e);if(s===0)return e;const a=new Proxy(e,s===2?r:n);return o.set(e,a),a}function Pn(e){return An(e)?Pn(e.__v_raw):!!(e&&e.__v_isReactive)}function An(e){return!!(e&&e.__v_isReadonly)}function Gr(e){return!!(e&&e.__v_isShallow)}function nc(e){return Pn(e)||An(e)}function be(e){const t=e&&e.__v_raw;return t?be(t):e}function rc(e){return Zr(e,"__v_skip",!0),e}const lr=e=>Te(e)?Mn(e):e,Ui=e=>Te(e)?Oo(e):e;function oc(e){Ht&&dt&&(e=be(e),Ql(e.dep||(e.dep=$i())))}function ic(e,t){e=be(e);const n=e.dep;n&&ii(n)}function Ve(e){return!!(e&&e.__v_isRef===!0)}function Ce(e){return ac(e,!1)}function sc(e){return ac(e,!0)}function ac(e,t){return Ve(e)?e:new td(e,t)}class td{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:be(t),this._value=n?t:lr(t)}get value(){return oc(this),this._value}set value(t){const n=this.__v_isShallow||Gr(t)||An(t);t=n?t:be(t),ar(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:lr(t),ic(this))}}function V(e){return Ve(e)?e.value:e}const nd={get:(e,t,n)=>V(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Ve(o)&&!Ve(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function lc(e){return Pn(e)?e:new Proxy(e,nd)}function zi(e){const t=oe(e)?new Array(e.length):{};for(const n in e)t[n]=od(e,n);return t}class rd{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Af(be(this._object),this._key)}}function od(e,t,n){const r=e[t];return Ve(r)?r:new rd(e,t,n)}var cc;class id{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[cc]=!1,this._dirty=!0,this.effect=new Hi(t,()=>{this._dirty||(this._dirty=!0,ic(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=be(this);return oc(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}cc="__v_isReadonly";function sd(e,t,n=!1){let r,o;const i=fe(e);return i?(r=e,o=mt):(r=e.get,o=e.set),new id(r,o,i||!o,n)}function Ft(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){br(i,t,n)}return o}function at(e,t,n,r){if(fe(e)){const i=Ft(e,t,n,r);return i&&Vl(i)&&i.catch(s=>{br(s,t,n)}),i}const o=[];for(let i=0;i>>1;ur(We[r])_t&&We.splice(t,1)}function ud(e){oe(e)?Cn.push(...e):(!Pt||!Pt.includes(e,e.allowRecurse?rn+1:rn))&&Cn.push(e),fc()}function Ps(e,t=cr?_t+1:0){for(;tur(n)-ur(r)),rn=0;rne.id==null?1/0:e.id,fd=(e,t)=>{const n=ur(e)-ur(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function dc(e){si=!1,cr=!0,We.sort(fd);const t=mt;try{for(_t=0;_tOe(p)?p.trim():p)),f&&(o=n.map(Ef))}let a,l=r[a=Do(t)]||r[a=Do(Et(t))];!l&&i&&(l=r[a=Do(dn(t))]),l&&at(l,e,6,o);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,at(u,e,6,o)}}function pc(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let s={},a=!1;if(!fe(e)){const l=u=>{const c=pc(u,t,!0);c&&(a=!0,ze(s,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(Te(e)&&r.set(e,null),null):(oe(i)?i.forEach(l=>s[l]=null):ze(s,i),Te(e)&&r.set(e,s),s)}function So(e,t){return!e||!yr(t)?!1:(t=t.slice(2).replace(/Once$/,""),_e(e,t[0].toLowerCase()+t.slice(1))||_e(e,dn(t))||_e(e,t))}let Ue=null,mc=null;function eo(e){const t=Ue;return Ue=e,mc=e&&e.type.__scopeId||null,t}function qe(e,t=Ue,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Ds(-1);const i=eo(t);let s;try{s=e(...o)}finally{eo(i),r._d&&Ds(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Mo(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[s],slots:a,attrs:l,emit:u,render:c,renderCache:f,data:d,setupState:p,ctx:_,inheritAttrs:g}=e;let O,h;const E=eo(e);try{if(n.shapeFlag&4){const S=o||r;O=ft(c.call(S,S,f,i,p,d,_)),h=l}else{const S=t;O=ft(S.length>1?S(i,{attrs:l,slots:a,emit:u}):S(i,null)),h=t.props?l:pd(l)}}catch(S){tr.length=0,br(S,e,1),O=ae(ot)}let w=O;if(h&&g!==!1){const S=Object.keys(h),{shapeFlag:I}=w;S.length&&I&7&&(s&&S.some(ji)&&(h=md(h,s)),w=zt(w,h))}return n.dirs&&(w=zt(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),O=w,eo(E),O}const pd=e=>{let t;for(const n in e)(n==="class"||n==="style"||yr(n))&&((t||(t={}))[n]=e[n]);return t},md=(e,t)=>{const n={};for(const r in e)(!ji(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function hd(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Cs(r,s,u):!!s;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;function hc(e,t){t&&t.pendingBranch?oe(e)?t.effects.push(...e):t.effects.push(e):ud(e)}function Bt(e,t){if(je){let n=je.provides;const r=je.parent&&je.parent.provides;r===n&&(n=je.provides=Object.create(r)),n[e]=t}}function Fe(e,t,n=!1){const r=je||Ue;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&fe(t)?t.call(r.proxy):t}}function _d(e,t){return Wi(e,null,t)}const xr={};function lt(e,t,n){return Wi(e,t,n)}function Wi(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:s}=xe){const a=zl()===(je==null?void 0:je.scope)?je:null;let l,u=!1,c=!1;if(Ve(e)?(l=()=>e.value,u=Gr(e)):Pn(e)?(l=()=>e,r=!0):oe(e)?(c=!0,u=e.some(w=>Pn(w)||Gr(w)),l=()=>e.map(w=>{if(Ve(w))return w.value;if(Pn(w))return ln(w);if(fe(w))return Ft(w,a,2)})):fe(e)?t?l=()=>Ft(e,a,2):l=()=>{if(!(a&&a.isUnmounted))return f&&f(),at(e,a,3,[d])}:l=mt,t&&r){const w=l;l=()=>ln(w())}let f,d=w=>{f=h.onStop=()=>{Ft(w,a,4)}},p;if(Ln)if(d=mt,t?n&&at(t,a,3,[l(),c?[]:void 0,d]):l(),o==="sync"){const w=dp();p=w.__watcherHandles||(w.__watcherHandles=[])}else return mt;let _=c?new Array(e.length).fill(xr):xr;const g=()=>{if(!!h.active)if(t){const w=h.run();(r||u||(c?w.some((S,I)=>ar(S,_[I])):ar(w,_)))&&(f&&f(),at(t,a,3,[w,_===xr?void 0:c&&_[0]===xr?[]:_,d]),_=w)}else h.run()};g.allowRecurse=!!t;let O;o==="sync"?O=g:o==="post"?O=()=>Xe(g,a&&a.suspense):(g.pre=!0,a&&(g.id=a.uid),O=()=>wo(g));const h=new Hi(l,O);t?n?g():_=h.run():o==="post"?Xe(h.run.bind(h),a&&a.suspense):h.run();const E=()=>{h.stop(),a&&a.scope&&Di(a.scope.effects,h)};return p&&p.push(E),E}function yd(e,t,n){const r=this.proxy,o=Oe(e)?e.includes(".")?vc(r,e):()=>r[e]:e.bind(r,r);let i;fe(t)?i=t:(i=t.handler,n=t);const s=je;Tn(this);const a=Wi(o,i.bind(r),n);return s?Tn(s):fn(),a}function vc(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{ln(n,t)});else if(Ul(e))for(const n in e)ln(e[n],t);return e}function bd(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ye(()=>{e.isMounted=!0}),Co(()=>{e.isUnmounting=!0}),e}const it=[Function,Array],Ed={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:it,onEnter:it,onAfterEnter:it,onEnterCancelled:it,onBeforeLeave:it,onLeave:it,onAfterLeave:it,onLeaveCancelled:it,onBeforeAppear:it,onAppear:it,onAfterAppear:it,onAppearCancelled:it},setup(e,{slots:t}){const n=Rc(),r=bd();let o;return()=>{const i=t.default&&yc(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const g of i)if(g.type!==ot){s=g;break}}const a=be(e),{mode:l}=a;if(r.isLeaving)return $o(s);const u=Is(s);if(!u)return $o(s);const c=ai(u,a,r,n);li(u,c);const f=n.subTree,d=f&&Is(f);let p=!1;const{getTransitionKey:_}=u.type;if(_){const g=_();o===void 0?o=g:g!==o&&(o=g,p=!0)}if(d&&d.type!==ot&&(!on(u,d)||p)){const g=ai(d,a,r,n);if(li(d,g),l==="out-in")return r.isLeaving=!0,g.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},$o(s);l==="in-out"&&u.type!==ot&&(g.delayLeave=(O,h,E)=>{const w=_c(r,d);w[String(d.key)]=d,O._leaveCb=()=>{h(),O._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=E})}return s}}},gc=Ed;function _c(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ai(e,t,n,r){const{appear:o,mode:i,persisted:s=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:d,onAfterLeave:p,onLeaveCancelled:_,onBeforeAppear:g,onAppear:O,onAfterAppear:h,onAppearCancelled:E}=t,w=String(e.key),S=_c(n,e),I=(b,M)=>{b&&at(b,r,9,M)},z=(b,M)=>{const N=M[1];I(b,M),oe(b)?b.every(K=>K.length<=1)&&N():b.length<=1&&N()},H={mode:i,persisted:s,beforeEnter(b){let M=a;if(!n.isMounted)if(o)M=g||a;else return;b._leaveCb&&b._leaveCb(!0);const N=S[w];N&&on(e,N)&&N.el._leaveCb&&N.el._leaveCb(),I(M,[b])},enter(b){let M=l,N=u,K=c;if(!n.isMounted)if(o)M=O||l,N=h||u,K=E||c;else return;let k=!1;const R=b._enterCb=$=>{k||(k=!0,$?I(K,[b]):I(N,[b]),H.delayedLeave&&H.delayedLeave(),b._enterCb=void 0)};M?z(M,[b,R]):R()},leave(b,M){const N=String(e.key);if(b._enterCb&&b._enterCb(!0),n.isUnmounting)return M();I(f,[b]);let K=!1;const k=b._leaveCb=R=>{K||(K=!0,M(),R?I(_,[b]):I(p,[b]),b._leaveCb=void 0,S[N]===e&&delete S[N])};S[N]=e,d?z(d,[b,k]):k()},clone(b){return ai(b,t,n,r)}};return H}function $o(e){if(Or(e))return e=zt(e),e.children=null,e}function Is(e){return Or(e)?e.children?e.children[0]:void 0:e}function li(e,t){e.shapeFlag&6&&e.component?li(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function yc(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader;function ce(e){fe(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:i,suspensible:s=!0,onError:a}=e;let l=null,u,c=0;const f=()=>(c++,l=null,d()),d=()=>{let p;return l||(p=l=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),a)return new Promise((g,O)=>{a(_,()=>g(f()),()=>O(_),c+1)});throw _}).then(_=>p!==l&&l?l:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),u=_,_)))};return me({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return u},setup(){const p=je;if(u)return()=>Ho(u,p);const _=E=>{l=null,br(E,p,13,!r)};if(s&&p.suspense||Ln)return d().then(E=>()=>Ho(E,p)).catch(E=>(_(E),()=>r?ae(r,{error:E}):null));const g=Ce(!1),O=Ce(),h=Ce(!!o);return o&&setTimeout(()=>{h.value=!1},o),i!=null&&setTimeout(()=>{if(!g.value&&!O.value){const E=new Error(`Async component timed out after ${i}ms.`);_(E),O.value=E}},i),d().then(()=>{g.value=!0,p.parent&&Or(p.parent.vnode)&&wo(p.parent.update)}).catch(E=>{_(E),O.value=E}),()=>{if(g.value&&u)return Ho(u,p);if(O.value&&r)return ae(r,{error:O.value});if(n&&!h.value)return ae(n)}}})}function Ho(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,s=ae(e,r,o);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const Or=e=>e.type.__isKeepAlive;function Od(e,t){bc(e,"a",t)}function wd(e,t){bc(e,"da",t)}function bc(e,t,n=je){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Po(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Or(o.parent.vnode)&&Sd(r,t,n,o),o=o.parent}}function Sd(e,t,n,r){const o=Po(t,e,r,!0);Io(()=>{Di(r[t],o)},n)}function Po(e,t,n=je,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Dn(),Tn(n);const a=at(t,n,e,s);return fn(),Nn(),a});return r?o.unshift(i):o.push(i),i}}const Lt=e=>(t,n=je)=>(!Ln||e==="sp")&&Po(e,(...r)=>t(...r),n),Pd=Lt("bm"),Ye=Lt("m"),Cd=Lt("bu"),Id=Lt("u"),Co=Lt("bum"),Io=Lt("um"),kd=Lt("sp"),Ad=Lt("rtg"),xd=Lt("rtc");function Td(e,t=je){Po("ec",e,t)}function to(e,t){const n=Ue;if(n===null)return e;const r=Ao(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;it(s,a,void 0,i&&i[a]));else{const s=Object.keys(e);o=new Array(s.length);for(let a=0,l=s.length;aoo(t)?!(t.type===ot||t.type===ke&&!Oc(t.children)):!0)?e:null}const ci=e=>e?jc(e)?Ao(e)||e.proxy:ci(e.parent):null,Xn=ze(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ci(e.parent),$root:e=>ci(e.root),$emit:e=>e.emit,$options:e=>Ji(e),$forceUpdate:e=>e.f||(e.f=()=>wo(e.update)),$nextTick:e=>e.n||(e.n=Er.bind(e.proxy)),$watch:e=>yd.bind(e)}),Fo=(e,t)=>e!==xe&&!e.__isScriptSetup&&_e(e,t),jd={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:s,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const p=s[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Fo(r,t))return s[t]=1,r[t];if(o!==xe&&_e(o,t))return s[t]=2,o[t];if((u=e.propsOptions[0])&&_e(u,t))return s[t]=3,i[t];if(n!==xe&&_e(n,t))return s[t]=4,n[t];ui&&(s[t]=0)}}const c=Xn[t];let f,d;if(c)return t==="$attrs"&&tt(e,"get",t),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==xe&&_e(n,t))return s[t]=4,n[t];if(d=l.config.globalProperties,_e(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Fo(o,t)?(o[t]=n,!0):r!==xe&&_e(r,t)?(r[t]=n,!0):_e(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},s){let a;return!!n[s]||e!==xe&&_e(e,s)||Fo(t,s)||(a=i[0])&&_e(a,s)||_e(r,s)||_e(Xn,s)||_e(o.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:_e(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let ui=!0;function Dd(e){const t=Ji(e),n=e.proxy,r=e.ctx;ui=!1,t.beforeCreate&&As(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:s,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:p,updated:_,activated:g,deactivated:O,beforeDestroy:h,beforeUnmount:E,destroyed:w,unmounted:S,render:I,renderTracked:z,renderTriggered:H,errorCaptured:b,serverPrefetch:M,expose:N,inheritAttrs:K,components:k,directives:R,filters:$}=t;if(u&&Nd(u,r,null,e.appContext.config.unwrapInjectedRef),s)for(const re in s){const se=s[re];fe(se)&&(r[re]=se.bind(n))}if(o){const re=o.call(n,n);Te(re)&&(e.data=Mn(re))}if(ui=!0,i)for(const re in i){const se=i[re],Le=fe(se)?se.bind(n,n):fe(se.get)?se.get.bind(n,n):mt,De=!fe(se)&&fe(se.set)?se.set.bind(n):mt,Ne=Q({get:Le,set:De});Object.defineProperty(r,re,{enumerable:!0,configurable:!0,get:()=>Ne.value,set:Ae=>Ne.value=Ae})}if(a)for(const re in a)wc(a[re],r,n,re);if(l){const re=fe(l)?l.call(n):l;Reflect.ownKeys(re).forEach(se=>{Bt(se,re[se])})}c&&As(c,e,"c");function W(re,se){oe(se)?se.forEach(Le=>re(Le.bind(n))):se&&re(se.bind(n))}if(W(Pd,f),W(Ye,d),W(Cd,p),W(Id,_),W(Od,g),W(wd,O),W(Td,b),W(xd,z),W(Ad,H),W(Co,E),W(Io,S),W(kd,M),oe(N))if(N.length){const re=e.exposed||(e.exposed={});N.forEach(se=>{Object.defineProperty(re,se,{get:()=>n[se],set:Le=>n[se]=Le})})}else e.exposed||(e.exposed={});I&&e.render===mt&&(e.render=I),K!=null&&(e.inheritAttrs=K),k&&(e.components=k),R&&(e.directives=R)}function Nd(e,t,n=mt,r=!1){oe(e)&&(e=fi(e));for(const o in e){const i=e[o];let s;Te(i)?"default"in i?s=Fe(i.from||o,i.default,!0):s=Fe(i.from||o):s=Fe(i),Ve(s)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:a=>s.value=a}):t[o]=s}}function As(e,t,n){at(oe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function wc(e,t,n,r){const o=r.includes(".")?vc(n,r):()=>n[r];if(Oe(e)){const i=t[e];fe(i)&<(o,i)}else if(fe(e))lt(o,e.bind(n));else if(Te(e))if(oe(e))e.forEach(i=>wc(i,t,n,r));else{const i=fe(e.handler)?e.handler.bind(n):t[e.handler];fe(i)&<(o,i,e)}}function Ji(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let l;return a?l=a:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(u=>no(l,u,s,!0)),no(l,t,s)),Te(t)&&i.set(t,l),l}function no(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&no(e,i,n,!0),o&&o.forEach(s=>no(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const a=Md[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const Md={data:xs,props:en,emits:en,methods:en,computed:en,beforeCreate:Je,created:Je,beforeMount:Je,mounted:Je,beforeUpdate:Je,updated:Je,beforeDestroy:Je,beforeUnmount:Je,destroyed:Je,unmounted:Je,activated:Je,deactivated:Je,errorCaptured:Je,serverPrefetch:Je,components:en,directives:en,watch:Hd,provide:xs,inject:$d};function xs(e,t){return t?e?function(){return ze(fe(e)?e.call(this,this):e,fe(t)?t.call(this,this):t)}:t:e}function $d(e,t){return en(fi(e),fi(t))}function fi(e){if(oe(e)){const t={};for(let n=0;n0)&&!(s&16)){if(s&8){const c=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,p]=Pc(f,t,!0);ze(s,d),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return Te(e)&&r.set(e,wn),wn;if(oe(i))for(let c=0;c-1,p[1]=g<0||_-1||_e(p,"default"))&&a.push(f)}}}const u=[s,a];return Te(e)&&r.set(e,u),u}function Ts(e){return e[0]!=="$"}function Ls(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Rs(e,t){return Ls(e)===Ls(t)}function js(e,t){return oe(t)?t.findIndex(n=>Rs(n,e)):fe(t)&&Rs(t,e)?0:-1}const Cc=e=>e[0]==="_"||e==="$stable",Qi=e=>oe(e)?e.map(ft):[ft(e)],Vd=(e,t,n)=>{if(t._n)return t;const r=qe((...o)=>Qi(t(...o)),n);return r._c=!1,r},Ic=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Cc(o))continue;const i=e[o];if(fe(i))t[o]=Vd(o,i,r);else if(i!=null){const s=Qi(i);t[o]=()=>s}}},kc=(e,t)=>{const n=Qi(t);e.slots.default=()=>n},qd=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=be(t),Zr(t,"_",n)):Ic(t,e.slots={})}else e.slots={},t&&kc(e,t);Zr(e.slots,ko,1)},Ud=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,s=xe;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(ze(o,t),!n&&a===1&&delete o._):(i=!t.$stable,Ic(t,o)),s=t}else t&&(kc(e,t),s={default:1});if(i)for(const a in o)!Cc(a)&&!(a in s)&&delete o[a]};function Ac(){return{app:null,config:{isNativeTag:hf,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let zd=0;function Kd(e,t){return function(r,o=null){fe(r)||(r=Object.assign({},r)),o!=null&&!Te(o)&&(o=null);const i=Ac(),s=new Set;let a=!1;const l=i.app={_uid:zd++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:pp,get config(){return i.config},set config(u){},use(u,...c){return s.has(u)||(u&&fe(u.install)?(s.add(u),u.install(l,...c)):fe(u)&&(s.add(u),u(l,...c))),l},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),l},component(u,c){return c?(i.components[u]=c,l):i.components[u]},directive(u,c){return c?(i.directives[u]=c,l):i.directives[u]},mount(u,c,f){if(!a){const d=ae(r,o);return d.appContext=i,c&&t?t(d,u):e(d,u,f),a=!0,l._container=u,u.__vue_app__=l,Ao(d.component)||d.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,c){return i.provides[u]=c,l}};return l}}function ro(e,t,n,r,o=!1){if(oe(e)){e.forEach((d,p)=>ro(d,t&&(oe(t)?t[p]:t),n,r,o));return}if(In(r)&&!o)return;const i=r.shapeFlag&4?Ao(r.component)||r.component.proxy:r.el,s=o?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===xe?a.refs={}:a.refs,f=a.setupState;if(u!=null&&u!==l&&(Oe(u)?(c[u]=null,_e(f,u)&&(f[u]=null)):Ve(u)&&(u.value=null)),fe(l))Ft(l,a,12,[s,c]);else{const d=Oe(l),p=Ve(l);if(d||p){const _=()=>{if(e.f){const g=d?_e(f,l)?f[l]:c[l]:l.value;o?oe(g)&&Di(g,i):oe(g)?g.includes(i)||g.push(i):d?(c[l]=[i],_e(f,l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else d?(c[l]=s,_e(f,l)&&(f[l]=s)):p&&(l.value=s,e.k&&(c[e.k]=s))};s?(_.id=-1,Xe(_,n)):_()}}}let jt=!1;const Tr=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Lr=e=>e.nodeType===8;function Wd(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:i,parentNode:s,remove:a,insert:l,createComment:u}}=e,c=(h,E)=>{if(!E.hasChildNodes()){n(null,h,E),Xr(),E._vnode=h;return}jt=!1,f(E.firstChild,h,null,null,null),Xr(),E._vnode=h,jt&&console.error("Hydration completed but contains mismatches.")},f=(h,E,w,S,I,z=!1)=>{const H=Lr(h)&&h.data==="[",b=()=>g(h,E,w,S,I,H),{type:M,ref:N,shapeFlag:K,patchFlag:k}=E;let R=h.nodeType;E.el=h,k===-2&&(z=!1,E.dynamicChildren=null);let $=null;switch(M){case xn:R!==3?E.children===""?(l(E.el=o(""),s(h),h),$=h):$=b():(h.data!==E.children&&(jt=!0,h.data=E.children),$=i(h));break;case ot:R!==8||H?$=b():$=i(h);break;case er:if(H&&(h=i(h),R=h.nodeType),R===1||R===3){$=h;const ie=!E.children.length;for(let W=0;W{z=z||!!E.dynamicChildren;const{type:H,props:b,patchFlag:M,shapeFlag:N,dirs:K}=E,k=H==="input"&&K||H==="option";if(k||M!==-1){if(K&>(E,null,w,"created"),b)if(k||!z||M&48)for(const $ in b)(k&&$.endsWith("value")||yr($)&&!Gn($))&&r(h,$,null,b[$],!1,void 0,w);else b.onClick&&r(h,"onClick",null,b.onClick,!1,void 0,w);let R;if((R=b&&b.onVnodeBeforeMount)&&st(R,w,E),K&>(E,null,w,"beforeMount"),((R=b&&b.onVnodeMounted)||K)&&hc(()=>{R&&st(R,w,E),K&>(E,null,w,"mounted")},S),N&16&&!(b&&(b.innerHTML||b.textContent))){let $=p(h.firstChild,E,h,w,S,I,z);for(;$;){jt=!0;const ie=$;$=$.nextSibling,a(ie)}}else N&8&&h.textContent!==E.children&&(jt=!0,h.textContent=E.children)}return h.nextSibling},p=(h,E,w,S,I,z,H)=>{H=H||!!E.dynamicChildren;const b=E.children,M=b.length;for(let N=0;N{const{slotScopeIds:H}=E;H&&(I=I?I.concat(H):H);const b=s(h),M=p(i(h),E,b,w,S,I,z);return M&&Lr(M)&&M.data==="]"?i(E.anchor=M):(jt=!0,l(E.anchor=u("]"),b,M),M)},g=(h,E,w,S,I,z)=>{if(jt=!0,E.el=null,z){const M=O(h);for(;;){const N=i(h);if(N&&N!==M)a(N);else break}}const H=i(h),b=s(h);return a(h),n(null,E,b,H,w,S,Tr(b),I),H},O=h=>{let E=0;for(;h;)if(h=i(h),h&&Lr(h)&&(h.data==="["&&E++,h.data==="]")){if(E===0)return i(h);E--}return h};return[c,f]}const Xe=hc;function Jd(e){return Qd(e,Wd)}function Qd(e,t){const n=wf();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:s,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:p=mt,insertStaticContent:_}=e,g=(m,v,P,C=null,A=null,D=null,j=!1,T=null,F=!!v.dynamicChildren)=>{if(m===v)return;m&&!on(m,v)&&(C=q(m),Ae(m,A,D,!0),m=null),v.patchFlag===-2&&(F=!1,v.dynamicChildren=null);const{type:L,ref:G,shapeFlag:Y}=v;switch(L){case xn:O(m,v,P,C);break;case ot:h(m,v,P,C);break;case er:m==null&&E(v,P,C,j);break;case ke:k(m,v,P,C,A,D,j,T,F);break;default:Y&1?I(m,v,P,C,A,D,j,T,F):Y&6?R(m,v,P,C,A,D,j,T,F):(Y&64||Y&128)&&L.process(m,v,P,C,A,D,j,T,F,de)}G!=null&&A&&ro(G,m&&m.ref,D,v||m,!v)},O=(m,v,P,C)=>{if(m==null)r(v.el=a(v.children),P,C);else{const A=v.el=m.el;v.children!==m.children&&u(A,v.children)}},h=(m,v,P,C)=>{m==null?r(v.el=l(v.children||""),P,C):v.el=m.el},E=(m,v,P,C)=>{[m.el,m.anchor]=_(m.children,v,P,C,m.el,m.anchor)},w=({el:m,anchor:v},P,C)=>{let A;for(;m&&m!==v;)A=d(m),r(m,P,C),m=A;r(v,P,C)},S=({el:m,anchor:v})=>{let P;for(;m&&m!==v;)P=d(m),o(m),m=P;o(v)},I=(m,v,P,C,A,D,j,T,F)=>{j=j||v.type==="svg",m==null?z(v,P,C,A,D,j,T,F):M(m,v,A,D,j,T,F)},z=(m,v,P,C,A,D,j,T)=>{let F,L;const{type:G,props:Y,shapeFlag:X,transition:ee,dirs:ue}=m;if(F=m.el=s(m.type,D,Y&&Y.is,Y),X&8?c(F,m.children):X&16&&b(m.children,F,null,C,A,D&&G!=="foreignObject",j,T),ue&>(m,null,C,"created"),H(F,m,m.scopeId,j,C),Y){for(const Se in Y)Se!=="value"&&!Gn(Se)&&i(F,Se,null,Y[Se],D,m.children,C,A,U);"value"in Y&&i(F,"value",null,Y.value),(L=Y.onVnodeBeforeMount)&&st(L,C,m)}ue&>(m,null,C,"beforeMount");const ve=(!A||A&&!A.pendingBranch)&&ee&&!ee.persisted;ve&&ee.beforeEnter(F),r(F,v,P),((L=Y&&Y.onVnodeMounted)||ve||ue)&&Xe(()=>{L&&st(L,C,m),ve&&ee.enter(F),ue&>(m,null,C,"mounted")},A)},H=(m,v,P,C,A)=>{if(P&&p(m,P),C)for(let D=0;D{for(let L=F;L{const T=v.el=m.el;let{patchFlag:F,dynamicChildren:L,dirs:G}=v;F|=m.patchFlag&16;const Y=m.props||xe,X=v.props||xe;let ee;P&&Qt(P,!1),(ee=X.onVnodeBeforeUpdate)&&st(ee,P,v,m),G&>(v,m,P,"beforeUpdate"),P&&Qt(P,!0);const ue=A&&v.type!=="foreignObject";if(L?N(m.dynamicChildren,L,T,P,C,ue,D):j||se(m,v,T,null,P,C,ue,D,!1),F>0){if(F&16)K(T,v,Y,X,P,C,A);else if(F&2&&Y.class!==X.class&&i(T,"class",null,X.class,A),F&4&&i(T,"style",Y.style,X.style,A),F&8){const ve=v.dynamicProps;for(let Se=0;Se{ee&&st(ee,P,v,m),G&>(v,m,P,"updated")},C)},N=(m,v,P,C,A,D,j)=>{for(let T=0;T{if(P!==C){if(P!==xe)for(const T in P)!Gn(T)&&!(T in C)&&i(m,T,P[T],null,j,v.children,A,D,U);for(const T in C){if(Gn(T))continue;const F=C[T],L=P[T];F!==L&&T!=="value"&&i(m,T,L,F,j,v.children,A,D,U)}"value"in C&&i(m,"value",P.value,C.value)}},k=(m,v,P,C,A,D,j,T,F)=>{const L=v.el=m?m.el:a(""),G=v.anchor=m?m.anchor:a("");let{patchFlag:Y,dynamicChildren:X,slotScopeIds:ee}=v;ee&&(T=T?T.concat(ee):ee),m==null?(r(L,P,C),r(G,P,C),b(v.children,P,G,A,D,j,T,F)):Y>0&&Y&64&&X&&m.dynamicChildren?(N(m.dynamicChildren,X,P,A,D,j,T),(v.key!=null||A&&v===A.subTree)&&xc(m,v,!0)):se(m,v,P,G,A,D,j,T,F)},R=(m,v,P,C,A,D,j,T,F)=>{v.slotScopeIds=T,m==null?v.shapeFlag&512?A.ctx.activate(v,P,C,j,F):$(v,P,C,A,D,j,F):ie(m,v,F)},$=(m,v,P,C,A,D,j)=>{const T=m.component=op(m,C,A);if(Or(m)&&(T.ctx.renderer=de),ip(T),T.asyncDep){if(A&&A.registerDep(T,W),!m.el){const F=T.subTree=ae(ot);h(null,F,v,P)}return}W(T,m,v,P,A,D,j)},ie=(m,v,P)=>{const C=v.component=m.component;if(hd(m,v,P))if(C.asyncDep&&!C.asyncResolved){re(C,v,P);return}else C.next=v,cd(C.update),C.update();else v.el=m.el,C.vnode=v},W=(m,v,P,C,A,D,j)=>{const T=()=>{if(m.isMounted){let{next:G,bu:Y,u:X,parent:ee,vnode:ue}=m,ve=G,Se;Qt(m,!1),G?(G.el=ue.el,re(m,G,j)):G=ue,Y&&No(Y),(Se=G.props&&G.props.onVnodeBeforeUpdate)&&st(Se,ee,G,ue),Qt(m,!0);const $e=Mo(m),ut=m.subTree;m.subTree=$e,g(ut,$e,f(ut.el),q(ut),m,A,D),G.el=$e.el,ve===null&&vd(m,$e.el),X&&Xe(X,A),(Se=G.props&&G.props.onVnodeUpdated)&&Xe(()=>st(Se,ee,G,ue),A)}else{let G;const{el:Y,props:X}=v,{bm:ee,m:ue,parent:ve}=m,Se=In(v);if(Qt(m,!1),ee&&No(ee),!Se&&(G=X&&X.onVnodeBeforeMount)&&st(G,ve,v),Qt(m,!0),Y&&le){const $e=()=>{m.subTree=Mo(m),le(Y,m.subTree,m,A,null)};Se?v.type.__asyncLoader().then(()=>!m.isUnmounted&&$e()):$e()}else{const $e=m.subTree=Mo(m);g(null,$e,P,C,m,A,D),v.el=$e.el}if(ue&&Xe(ue,A),!Se&&(G=X&&X.onVnodeMounted)){const $e=v;Xe(()=>st(G,ve,$e),A)}(v.shapeFlag&256||ve&&In(ve.vnode)&&ve.vnode.shapeFlag&256)&&m.a&&Xe(m.a,A),m.isMounted=!0,v=P=C=null}},F=m.effect=new Hi(T,()=>wo(L),m.scope),L=m.update=()=>F.run();L.id=m.uid,Qt(m,!0),L()},re=(m,v,P)=>{v.component=m;const C=m.vnode.props;m.vnode=v,m.next=null,Bd(m,v.props,C,P),Ud(m,v.children,P),Dn(),Ps(),Nn()},se=(m,v,P,C,A,D,j,T,F=!1)=>{const L=m&&m.children,G=m?m.shapeFlag:0,Y=v.children,{patchFlag:X,shapeFlag:ee}=v;if(X>0){if(X&128){De(L,Y,P,C,A,D,j,T,F);return}else if(X&256){Le(L,Y,P,C,A,D,j,T,F);return}}ee&8?(G&16&&U(L,A,D),Y!==L&&c(P,Y)):G&16?ee&16?De(L,Y,P,C,A,D,j,T,F):U(L,A,D,!0):(G&8&&c(P,""),ee&16&&b(Y,P,C,A,D,j,T,F))},Le=(m,v,P,C,A,D,j,T,F)=>{m=m||wn,v=v||wn;const L=m.length,G=v.length,Y=Math.min(L,G);let X;for(X=0;XG?U(m,A,D,!0,!1,Y):b(v,P,C,A,D,j,T,F,Y)},De=(m,v,P,C,A,D,j,T,F)=>{let L=0;const G=v.length;let Y=m.length-1,X=G-1;for(;L<=Y&&L<=X;){const ee=m[L],ue=v[L]=F?Mt(v[L]):ft(v[L]);if(on(ee,ue))g(ee,ue,P,null,A,D,j,T,F);else break;L++}for(;L<=Y&&L<=X;){const ee=m[Y],ue=v[X]=F?Mt(v[X]):ft(v[X]);if(on(ee,ue))g(ee,ue,P,null,A,D,j,T,F);else break;Y--,X--}if(L>Y){if(L<=X){const ee=X+1,ue=eeX)for(;L<=Y;)Ae(m[L],A,D,!0),L++;else{const ee=L,ue=L,ve=new Map;for(L=ue;L<=X;L++){const nt=v[L]=F?Mt(v[L]):ft(v[L]);nt.key!=null&&ve.set(nt.key,L)}let Se,$e=0;const ut=X-ue+1;let mn=!1,ps=0;const Bn=new Array(ut);for(L=0;L=ut){Ae(nt,A,D,!0);continue}let vt;if(nt.key!=null)vt=ve.get(nt.key);else for(Se=ue;Se<=X;Se++)if(Bn[Se-ue]===0&&on(nt,v[Se])){vt=Se;break}vt===void 0?Ae(nt,A,D,!0):(Bn[vt-ue]=L+1,vt>=ps?ps=vt:mn=!0,g(nt,v[vt],P,null,A,D,j,T,F),$e++)}const ms=mn?Zd(Bn):wn;for(Se=ms.length-1,L=ut-1;L>=0;L--){const nt=ue+L,vt=v[nt],hs=nt+1{const{el:D,type:j,transition:T,children:F,shapeFlag:L}=m;if(L&6){Ne(m.component.subTree,v,P,C);return}if(L&128){m.suspense.move(v,P,C);return}if(L&64){j.move(m,v,P,de);return}if(j===ke){r(D,v,P);for(let Y=0;YT.enter(D),A);else{const{leave:Y,delayLeave:X,afterLeave:ee}=T,ue=()=>r(D,v,P),ve=()=>{Y(D,()=>{ue(),ee&&ee()})};X?X(D,ue,ve):ve()}else r(D,v,P)},Ae=(m,v,P,C=!1,A=!1)=>{const{type:D,props:j,ref:T,children:F,dynamicChildren:L,shapeFlag:G,patchFlag:Y,dirs:X}=m;if(T!=null&&ro(T,null,P,m,!0),G&256){v.ctx.deactivate(m);return}const ee=G&1&&X,ue=!In(m);let ve;if(ue&&(ve=j&&j.onVnodeBeforeUnmount)&&st(ve,v,m),G&6)x(m.component,P,C);else{if(G&128){m.suspense.unmount(P,C);return}ee&>(m,null,v,"beforeUnmount"),G&64?m.type.remove(m,v,P,A,de,C):L&&(D!==ke||Y>0&&Y&64)?U(L,v,P,!1,!0):(D===ke&&Y&384||!A&&G&16)&&U(F,v,P),C&&ct(m)}(ue&&(ve=j&&j.onVnodeUnmounted)||ee)&&Xe(()=>{ve&&st(ve,v,m),ee&>(m,null,v,"unmounted")},P)},ct=m=>{const{type:v,el:P,anchor:C,transition:A}=m;if(v===ke){Ge(P,C);return}if(v===er){S(m);return}const D=()=>{o(P),A&&!A.persisted&&A.afterLeave&&A.afterLeave()};if(m.shapeFlag&1&&A&&!A.persisted){const{leave:j,delayLeave:T}=A,F=()=>j(P,D);T?T(m.el,D,F):F()}else D()},Ge=(m,v)=>{let P;for(;m!==v;)P=d(m),o(m),m=P;o(v)},x=(m,v,P)=>{const{bum:C,scope:A,update:D,subTree:j,um:T}=m;C&&No(C),A.stop(),D&&(D.active=!1,Ae(j,m,v,P)),T&&Xe(T,v),Xe(()=>{m.isUnmounted=!0},v),v&&v.pendingBranch&&!v.isUnmounted&&m.asyncDep&&!m.asyncResolved&&m.suspenseId===v.pendingId&&(v.deps--,v.deps===0&&v.resolve())},U=(m,v,P,C=!1,A=!1,D=0)=>{for(let j=D;jm.shapeFlag&6?q(m.component.subTree):m.shapeFlag&128?m.suspense.next():d(m.anchor||m.el),Z=(m,v,P)=>{m==null?v._vnode&&Ae(v._vnode,null,null,!0):g(v._vnode||null,m,v,null,null,null,P),Ps(),Xr(),v._vnode=m},de={p:g,um:Ae,m:Ne,r:ct,mt:$,mc:b,pc:se,pbc:N,n:q,o:e};let Pe,le;return t&&([Pe,le]=t(de)),{render:Z,hydrate:Pe,createApp:Kd(Z,Pe)}}function Qt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function xc(e,t,n=!1){const r=e.children,o=t.children;if(oe(r)&&oe(o))for(let i=0;i>1,e[n[a]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}const Yd=e=>e.__isTeleport,ke=Symbol(void 0),xn=Symbol(void 0),ot=Symbol(void 0),er=Symbol(void 0),tr=[];let pt=null;function J(e=!1){tr.push(pt=e?null:[])}function Gd(){tr.pop(),pt=tr[tr.length-1]||null}let fr=1;function Ds(e){fr+=e}function Tc(e){return e.dynamicChildren=fr>0?pt||wn:null,Gd(),fr>0&&pt&&pt.push(e),e}function ne(e,t,n,r,o,i){return Tc(ye(e,t,n,r,o,i,!0))}function He(e,t,n,r,o){return Tc(ae(e,t,n,r,o,!0))}function oo(e){return e?e.__v_isVNode===!0:!1}function on(e,t){return e.type===t.type&&e.key===t.key}const ko="__vInternal",Lc=({key:e})=>e!=null?e:null,qr=({ref:e,ref_key:t,ref_for:n})=>e!=null?Oe(e)||Ve(e)||fe(e)?{i:Ue,r:e,k:t,f:!!n}:e:null;function ye(e,t=null,n=null,r=0,o=null,i=e===ke?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Lc(t),ref:t&&qr(t),scopeId:mc,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ue};return a?(Zi(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Oe(n)?8:16),fr>0&&!s&&pt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&pt.push(l),l}const ae=Xd;function Xd(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===Ld)&&(e=ot),oo(e)){const a=zt(e,t,!0);return n&&Zi(a,n),fr>0&&!i&&pt&&(a.shapeFlag&6?pt[pt.indexOf(e)]=a:pt.push(a)),a.patchFlag|=-2,a}if(up(e)&&(e=e.__vccOpts),t){t=ep(t);let{class:a,style:l}=t;a&&!Oe(a)&&(t.class=et(a)),Te(l)&&(nc(l)&&!oe(l)&&(l=ze({},l)),t.style=_r(l))}const s=Oe(e)?1:gd(e)?128:Yd(e)?64:Te(e)?4:fe(e)?2:0;return ye(e,t,n,r,o,s,i,!0)}function ep(e){return e?nc(e)||ko in e?ze({},e):e:null}function zt(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:s}=e,a=t?pi(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Lc(a),ref:t&&t.ref?n&&o?oe(o)?o.concat(qr(t)):[o,qr(t)]:qr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ke?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&zt(e.ssContent),ssFallback:e.ssFallback&&zt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Kt(e=" ",t=0){return ae(xn,null,e,t)}function tp(e,t){const n=ae(er,null,e);return n.staticCount=t,n}function Me(e="",t=!1){return t?(J(),He(ot,null,e)):ae(ot,null,e)}function ft(e){return e==null||typeof e=="boolean"?ae(ot):oe(e)?ae(ke,null,e.slice()):typeof e=="object"?Mt(e):ae(xn,null,String(e))}function Mt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:zt(e)}function Zi(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(oe(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Zi(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(ko in t)?t._ctx=Ue:o===3&&Ue&&(Ue.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else fe(t)?(t={default:t,_ctx:Ue},n=32):(t=String(t),r&64?(n=16,t=[Kt(t)]):n=8);e.children=t,e.shapeFlag|=n}function pi(...e){const t={};for(let n=0;nje||Ue,Tn=e=>{je=e,e.scope.on()},fn=()=>{je&&je.scope.off(),je=null};function jc(e){return e.vnode.shapeFlag&4}let Ln=!1;function ip(e,t=!1){Ln=t;const{props:n,children:r}=e.vnode,o=jc(e);Fd(e,n,o,t),qd(e,r);const i=o?sp(e,t):void 0;return Ln=!1,i}function sp(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=rc(new Proxy(e.ctx,jd));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?lp(e):null;Tn(e),Dn();const i=Ft(r,e,0,[e.props,o]);if(Nn(),fn(),Vl(i)){if(i.then(fn,fn),t)return i.then(s=>{Ns(e,s,t)}).catch(s=>{br(s,e,0)});e.asyncDep=i}else Ns(e,i,t)}else Dc(e,t)}function Ns(e,t,n){fe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Te(t)&&(e.setupState=lc(t)),Dc(e,n)}let Ms;function Dc(e,t,n){const r=e.type;if(!e.render){if(!t&&Ms&&!r.render){const o=r.template||Ji(e).template;if(o){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,u=ze(ze({isCustomElement:i,delimiters:a},s),l);r.render=Ms(o,u)}}e.render=r.render||mt}Tn(e),Dn(),Dd(e),Nn(),fn()}function ap(e){return new Proxy(e.attrs,{get(t,n){return tt(e,"get","$attrs"),t[n]}})}function lp(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=ap(e))},slots:e.slots,emit:e.emit,expose:t}}function Ao(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(lc(rc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Xn)return Xn[n](e)},has(t,n){return n in t||n in Xn}}))}function cp(e,t=!0){return fe(e)?e.displayName||e.name:e.name||t&&e.__name}function up(e){return fe(e)&&"__vccOpts"in e}const Q=(e,t)=>sd(e,t,Ln);function he(e,t,n){const r=arguments.length;return r===2?Te(t)&&!oe(t)?oo(t)?ae(e,null,[t]):ae(e,t):ae(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&oo(n)&&(n=[n]),ae(e,t,n))}const fp=Symbol(""),dp=()=>Fe(fp),pp="3.2.47",mp="http://www.w3.org/2000/svg",sn=typeof document<"u"?document:null,$s=sn&&sn.createElement("template"),hp={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?sn.createElementNS(mp,e):sn.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>sn.createTextNode(e),createComment:e=>sn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>sn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const s=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{$s.innerHTML=r?`${e}`:e;const a=$s.content;if(r){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function vp(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function gp(e,t,n){const r=e.style,o=Oe(n);if(n&&!o){if(t&&!Oe(t))for(const i in t)n[i]==null&&mi(r,i,"");for(const i in n)mi(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const Hs=/\s*!important$/;function mi(e,t,n){if(oe(n))n.forEach(r=>mi(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=_p(e,t);Hs.test(n)?e.setProperty(dn(r),n.replace(Hs,""),"important"):e[r]=n}}const Fs=["Webkit","Moz","ms"],Bo={};function _p(e,t){const n=Bo[t];if(n)return n;let r=Et(t);if(r!=="filter"&&r in e)return Bo[t]=r;r=bo(r);for(let o=0;oVo||(Pp.then(()=>Vo=0),Vo=Date.now());function Ip(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;at(kp(r,n.value),t,5,[r])};return n.value=e,n.attached=Cp(),n}function kp(e,t){if(oe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const qs=/^on[a-z]/,Ap=(e,t,n,r,o=!1,i,s,a,l)=>{t==="class"?vp(e,r,o):t==="style"?gp(e,n,r):yr(t)?ji(t)||wp(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):xp(e,t,r,o))?bp(e,t,r,i,s,a,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),yp(e,t,r,o))};function xp(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&qs.test(t)&&fe(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||qs.test(t)&&Oe(n)?!1:t in e}const Dt="transition",Vn="animation",$n=(e,{slots:t})=>he(gc,Tp(e),t);$n.displayName="Transition";const Nc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};$n.props=ze({},gc.props,Nc);const Zt=(e,t=[])=>{oe(e)?e.forEach(n=>n(...t)):e&&e(...t)},Us=e=>e?oe(e)?e.some(t=>t.length>1):e.length>1:!1;function Tp(e){const t={};for(const k in e)k in Nc||(t[k]=e[k]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=s,appearToClass:c=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,_=Lp(o),g=_&&_[0],O=_&&_[1],{onBeforeEnter:h,onEnter:E,onEnterCancelled:w,onLeave:S,onLeaveCancelled:I,onBeforeAppear:z=h,onAppear:H=E,onAppearCancelled:b=w}=t,M=(k,R,$)=>{Yt(k,R?c:a),Yt(k,R?u:s),$&&$()},N=(k,R)=>{k._isLeaving=!1,Yt(k,f),Yt(k,p),Yt(k,d),R&&R()},K=k=>(R,$)=>{const ie=k?H:E,W=()=>M(R,k,$);Zt(ie,[R,W]),zs(()=>{Yt(R,k?l:i),Nt(R,k?c:a),Us(ie)||Ks(R,r,g,W)})};return ze(t,{onBeforeEnter(k){Zt(h,[k]),Nt(k,i),Nt(k,s)},onBeforeAppear(k){Zt(z,[k]),Nt(k,l),Nt(k,u)},onEnter:K(!1),onAppear:K(!0),onLeave(k,R){k._isLeaving=!0;const $=()=>N(k,R);Nt(k,f),Dp(),Nt(k,d),zs(()=>{!k._isLeaving||(Yt(k,f),Nt(k,p),Us(S)||Ks(k,r,O,$))}),Zt(S,[k,$])},onEnterCancelled(k){M(k,!1),Zt(w,[k])},onAppearCancelled(k){M(k,!0),Zt(b,[k])},onLeaveCancelled(k){N(k),Zt(I,[k])}})}function Lp(e){if(e==null)return null;if(Te(e))return[qo(e.enter),qo(e.leave)];{const t=qo(e);return[t,t]}}function qo(e){return Of(e)}function Nt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Yt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function zs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Rp=0;function Ks(e,t,n,r){const o=e._endId=++Rp,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:s,timeout:a,propCount:l}=jp(e,t);if(!s)return r();const u=s+"end";let c=0;const f=()=>{e.removeEventListener(u,d),i()},d=p=>{p.target===e&&++c>=l&&f()};setTimeout(()=>{c(n[_]||"").split(", "),o=r(`${Dt}Delay`),i=r(`${Dt}Duration`),s=Ws(o,i),a=r(`${Vn}Delay`),l=r(`${Vn}Duration`),u=Ws(a,l);let c=null,f=0,d=0;t===Dt?s>0&&(c=Dt,f=s,d=i.length):t===Vn?u>0&&(c=Vn,f=u,d=l.length):(f=Math.max(s,u),c=f>0?s>u?Dt:Vn:null,d=c?c===Dt?i.length:l.length:0);const p=c===Dt&&/\b(transform|all)(,|$)/.test(r(`${Dt}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:p}}function Ws(e,t){for(;e.lengthJs(n)+Js(e[r])))}function Js(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Dp(){return document.body.offsetHeight}const Np={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Mp=(e,t)=>n=>{if(!("key"in n))return;const r=dn(n.key);if(t.some(o=>o===r||Np[o]===r))return e(n)},io={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):qn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),qn(e,!0),r.enter(e)):r.leave(e,()=>{qn(e,!1)}):qn(e,t))},beforeUnmount(e,{value:t}){qn(e,t)}};function qn(e,t){e.style.display=t?e._vod:"none"}const $p=ze({patchProp:Ap},hp);let Uo,Qs=!1;function Hp(){return Uo=Qs?Uo:Jd($p),Qs=!0,Uo}const Fp=(...e)=>{const t=Hp().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Bp(r);if(o)return n(o,!0,o instanceof SVGElement)},t};function Bp(e){return Oe(e)?document.querySelector(e):e}const Vp=JSON.parse('{"base":"/fes.js/","lang":"en-US","title":"","description":"","head":[["link",{"rel":"manifest","href":"/manifest.webmanifest"}],["link",{"rel":"icon","href":"/logo.png"}]],"locales":{"/":{"lang":"zh-CN","title":"Fes.js","description":"一个好用的前端应用解决方案"}}}');var qp=([e,t,n])=>e==="meta"&&t.name?`${e}.${t.name}`:["title","base"].includes(e)?e:e==="template"&&t.id?`${e}.${t.id}`:JSON.stringify([e,t,n]),Up=e=>{const t=new Set,n=[];return e.forEach(r=>{const o=qp(r);t.has(o)||(t.add(o),n.push(r))}),n},wr=e=>/^(https?:)?\/\//.test(e),zp=e=>/^mailto:/.test(e),Kp=e=>/^tel:/.test(e),Yi=e=>Object.prototype.toString.call(e)==="[object Object]",Mc=e=>e.replace(/\/$/,""),$c=e=>e.replace(/^\//,""),Hc=(e,t)=>{const n=Object.keys(e).sort((r,o)=>{const i=o.split("/").length-r.split("/").length;return i!==0?i:o.length-r.length});for(const r of n)if(t.startsWith(r))return r;return"/"},Zs=(e,t="/")=>e.replace(/^(https?:)?\/\/[^/]*/,"").replace(new RegExp(`^${t}`),"/");const Fc={"v-8daa1a0e":ce(()=>B(()=>import("./index.html.1f2b7059.js"),[])),"v-fffb8e28":ce(()=>B(()=>import("./index.html.174811be.js"),[])),"v-0cca110a":ce(()=>B(()=>import("./builder.html.999bf635.js"),[])),"v-85fa9b2a":ce(()=>B(()=>import("./config.html.3c4760e9.js"),[])),"v-d7fa887a":ce(()=>B(()=>import("./contributing.html.8cad4b5e.js"),[])),"v-884fd4bc":ce(()=>B(()=>import("./css.html.a45df14e.js"),[])),"v-040800dc":ce(()=>B(()=>import("./directory-structure.html.15096386.js"),[])),"v-ef8c5e10":ce(()=>B(()=>import("./env.html.805df8a5.js"),[])),"v-37e1c06f":ce(()=>B(()=>import("./faq.html.f70ba546.js"),[])),"v-fb0f0066":ce(()=>B(()=>import("./getting-started.html.3b600666.js"),[])),"v-528b8b6c":ce(()=>B(()=>import("./image.html.58aa17c7.js"),[])),"v-00cf7e23":ce(()=>B(()=>import("./mock.html.9cef5d45.js"),[])),"v-1d14d5cc":ce(()=>B(()=>import("./plugin.html.0095f814.js"),[])),"v-7b96e3a4":ce(()=>B(()=>import("./public.html.848eef99.js"),[])),"v-6320961c":ce(()=>B(()=>import("./route.html.3d217616.js"),[])),"v-3dba8814":ce(()=>B(()=>import("./runtime-config.html.c81fa63e.js"),[])),"v-7b48519a":ce(()=>B(()=>import("./template.html.91640404.js"),[])),"v-4acab794":ce(()=>B(()=>import("./upgrade3.html.3629ebda.js"),[])),"v-a1a49808":ce(()=>B(()=>import("./api.html.3fadc9c0.js"),[])),"v-a951be94":ce(()=>B(()=>import("./cli.html.768b01bb.js"),[])),"v-76cd065c":ce(()=>B(()=>import("./index.html.8a34550e.js"),[])),"v-76cb52e8":ce(()=>B(()=>import("./index.html.5f811d7d.js"),[])),"v-2c05b6e0":ce(()=>B(()=>import("./index.html.c22810d3.js"),[])),"v-d61a9282":ce(()=>B(()=>import("./index.html.7417ac5c.js"),[])),"v-494b840e":ce(()=>B(()=>import("./index.html.7e2b22df.js"),[])),"v-c5618810":ce(()=>B(()=>import("./api.html.1aa2bbfa.js"),[])),"v-2fe128e7":ce(()=>B(()=>import("./access.html.2783c102.js"),[])),"v-323bda7e":ce(()=>B(()=>import("./editor.html.604dae94.js"),[])),"v-c253c956":ce(()=>B(()=>import("./enums.html.e894dfd6.js"),[])),"v-0a0e491c":ce(()=>B(()=>import("./icon.html.c524fb7f.js"),[])),"v-3cd5a4ef":ce(()=>B(()=>import("./jest.html.9bcb2ce1.js"),[])),"v-355ee23e":ce(()=>B(()=>import("./layout.html.b7ee50eb.js"),[])),"v-411c0c9e":ce(()=>B(()=>import("./locale.html.c1dcd857.js"),[])),"v-56ab05de":ce(()=>B(()=>import("./login.html.0ea4b7ad.js"),[])),"v-3c4e521e":ce(()=>B(()=>import("./model.html.3cd49de2.js"),[])),"v-6f2f6a5a":ce(()=>B(()=>import("./pinia.html.1eb91490.js"),[])),"v-b15becb0":ce(()=>B(()=>import("./qiankun.html.b3592391.js"),[])),"v-41dee210":ce(()=>B(()=>import("./request.html.f4de04c7.js"),[])),"v-5bf80046":ce(()=>B(()=>import("./sass.html.9338147b.js"),[])),"v-317f9008":ce(()=>B(()=>import("./swc.html.0bd38fed.js"),[])),"v-5f4c684e":ce(()=>B(()=>import("./vuex.html.6d094802.js"),[])),"v-1c0edac3":ce(()=>B(()=>import("./watermark.html.1d51b560.js"),[])),"v-392e58ee":ce(()=>B(()=>import("./windicss.html.17e40609.js"),[])),"v-3706649a":ce(()=>B(()=>import("./404.html.ef11e76b.js"),[]))};var Ot=(e={})=>e;function Gi(e,t,n){var r,o,i;t===void 0&&(t=50),n===void 0&&(n={});var s=(r=n.isImmediate)!=null&&r,a=(o=n.callback)!=null&&o,l=n.maxWait,u=Date.now(),c=[];function f(){if(l!==void 0){var p=Date.now()-u;if(p+t>=l)return l-p}return t}var d=function(){var p=[].slice.call(arguments),_=this;return new Promise(function(g,O){var h=s&&i===void 0;if(i!==void 0&&clearTimeout(i),i=setTimeout(function(){if(i=void 0,u=Date.now(),!s){var w=e.apply(_,p);a&&a(w),c.forEach(function(S){return(0,S.resolve)(w)}),c=[]}},f()),h){var E=e.apply(_,p);return a&&a(E),g(E)}c.push({resolve:g,reject:O})})};return d.cancel=function(p){i!==void 0&&clearTimeout(i),c.forEach(function(_){return(0,_.reject)(p)}),c=[]},d}/*!
+const sf="modulepreload",af=function(e){return"/fes.js/"+e},vs={},B=function(t,n,r){return!n||n.length===0?t():Promise.all(n.map(o=>{if(o=af(o),o in vs)return;vs[o]=!0;const i=o.endsWith(".css"),s=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${s}`))return;const a=document.createElement("link");if(a.rel=i?"stylesheet":sf,i||(a.as="script",a.crossOrigin=""),a.href=o,document.head.appendChild(a),i)return new Promise((l,u)=>{a.addEventListener("load",l),a.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())},lf={"v-8daa1a0e":()=>B(()=>import("./index.html.41fe35ac.js"),[]).then(({data:e})=>e),"v-fffb8e28":()=>B(()=>import("./index.html.046ff532.js"),[]).then(({data:e})=>e),"v-0cca110a":()=>B(()=>import("./builder.html.92740dcf.js"),[]).then(({data:e})=>e),"v-85fa9b2a":()=>B(()=>import("./config.html.23adbc41.js"),[]).then(({data:e})=>e),"v-d7fa887a":()=>B(()=>import("./contributing.html.ffe5b610.js"),[]).then(({data:e})=>e),"v-884fd4bc":()=>B(()=>import("./css.html.01ba51a1.js"),[]).then(({data:e})=>e),"v-040800dc":()=>B(()=>import("./directory-structure.html.a3497558.js"),[]).then(({data:e})=>e),"v-ef8c5e10":()=>B(()=>import("./env.html.f0883984.js"),[]).then(({data:e})=>e),"v-37e1c06f":()=>B(()=>import("./faq.html.297bbbdd.js"),[]).then(({data:e})=>e),"v-fb0f0066":()=>B(()=>import("./getting-started.html.75327633.js"),[]).then(({data:e})=>e),"v-528b8b6c":()=>B(()=>import("./image.html.79a8b9cd.js"),[]).then(({data:e})=>e),"v-00cf7e23":()=>B(()=>import("./mock.html.cde530fd.js"),[]).then(({data:e})=>e),"v-1d14d5cc":()=>B(()=>import("./plugin.html.daa490bd.js"),[]).then(({data:e})=>e),"v-7b96e3a4":()=>B(()=>import("./public.html.21fc842c.js"),[]).then(({data:e})=>e),"v-6320961c":()=>B(()=>import("./route.html.a925296f.js"),[]).then(({data:e})=>e),"v-3dba8814":()=>B(()=>import("./runtime-config.html.759e2890.js"),[]).then(({data:e})=>e),"v-7b48519a":()=>B(()=>import("./template.html.c9556527.js"),[]).then(({data:e})=>e),"v-4acab794":()=>B(()=>import("./upgrade3.html.907fe370.js"),[]).then(({data:e})=>e),"v-a1a49808":()=>B(()=>import("./api.html.3f905643.js"),[]).then(({data:e})=>e),"v-a951be94":()=>B(()=>import("./cli.html.dc7874d5.js"),[]).then(({data:e})=>e),"v-76cd065c":()=>B(()=>import("./index.html.a2c7ff1b.js"),[]).then(({data:e})=>e),"v-76cb52e8":()=>B(()=>import("./index.html.1008b448.js"),[]).then(({data:e})=>e),"v-2c05b6e0":()=>B(()=>import("./index.html.d14f5124.js"),[]).then(({data:e})=>e),"v-d61a9282":()=>B(()=>import("./index.html.4d69d8eb.js"),[]).then(({data:e})=>e),"v-494b840e":()=>B(()=>import("./index.html.de23200e.js"),[]).then(({data:e})=>e),"v-c5618810":()=>B(()=>import("./api.html.fb115fae.js"),[]).then(({data:e})=>e),"v-2fe128e7":()=>B(()=>import("./access.html.6852bb72.js"),[]).then(({data:e})=>e),"v-323bda7e":()=>B(()=>import("./editor.html.4ada78c1.js"),[]).then(({data:e})=>e),"v-c253c956":()=>B(()=>import("./enums.html.6fdcc819.js"),[]).then(({data:e})=>e),"v-0a0e491c":()=>B(()=>import("./icon.html.09ccd8f7.js"),[]).then(({data:e})=>e),"v-3cd5a4ef":()=>B(()=>import("./jest.html.300ecc20.js"),[]).then(({data:e})=>e),"v-355ee23e":()=>B(()=>import("./layout.html.d2b5d2e8.js"),[]).then(({data:e})=>e),"v-411c0c9e":()=>B(()=>import("./locale.html.a3153873.js"),[]).then(({data:e})=>e),"v-56ab05de":()=>B(()=>import("./login.html.d0c46ddc.js"),[]).then(({data:e})=>e),"v-3c4e521e":()=>B(()=>import("./model.html.ca3b743a.js"),[]).then(({data:e})=>e),"v-6f2f6a5a":()=>B(()=>import("./pinia.html.0c40ecc3.js"),[]).then(({data:e})=>e),"v-b15becb0":()=>B(()=>import("./qiankun.html.2cf2e202.js"),[]).then(({data:e})=>e),"v-41dee210":()=>B(()=>import("./request.html.35428bf8.js"),[]).then(({data:e})=>e),"v-5bf80046":()=>B(()=>import("./sass.html.f1aed3ec.js"),[]).then(({data:e})=>e),"v-317f9008":()=>B(()=>import("./swc.html.22ce965c.js"),[]).then(({data:e})=>e),"v-5f4c684e":()=>B(()=>import("./vuex.html.a4a38c6f.js"),[]).then(({data:e})=>e),"v-1c0edac3":()=>B(()=>import("./watermark.html.edeb015d.js"),[]).then(({data:e})=>e),"v-392e58ee":()=>B(()=>import("./windicss.html.6def97ac.js"),[]).then(({data:e})=>e),"v-3706649a":()=>B(()=>import("./404.html.c3e557d0.js"),[]).then(({data:e})=>e)};function Ri(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}function _r(e){if(oe(e)){const t={};for(let n=0;n{if(n){const r=n.split(uf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function et(e){let t="";if(Oe(e))t=e;else if(oe(e))for(let n=0;nOe(e)?e:e==null?"":oe(e)||Te(e)&&(e.toString===ql||!fe(e.toString))?JSON.stringify(e,Fl,2):String(e),Fl=(e,t)=>t&&t.__v_isRef?Fl(e,t.value):Sn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:Bl(t)?{[`Set(${t.size})`]:[...t.values()]}:Te(t)&&!oe(t)&&!Ul(t)?String(t):t,xe={},wn=[],mt=()=>{},hf=()=>!1,vf=/^on[^a-z]/,yr=e=>vf.test(e),ji=e=>e.startsWith("onUpdate:"),ze=Object.assign,Di=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},gf=Object.prototype.hasOwnProperty,_e=(e,t)=>gf.call(e,t),oe=Array.isArray,Sn=e=>_o(e)==="[object Map]",Bl=e=>_o(e)==="[object Set]",fe=e=>typeof e=="function",Oe=e=>typeof e=="string",Ni=e=>typeof e=="symbol",Te=e=>e!==null&&typeof e=="object",Vl=e=>Te(e)&&fe(e.then)&&fe(e.catch),ql=Object.prototype.toString,_o=e=>ql.call(e),_f=e=>_o(e).slice(8,-1),Ul=e=>_o(e)==="[object Object]",Mi=e=>Oe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Gn=Ri(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),yo=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},yf=/-(\w)/g,Et=yo(e=>e.replace(yf,(t,n)=>n?n.toUpperCase():"")),bf=/\B([A-Z])/g,dn=yo(e=>e.replace(bf,"-$1").toLowerCase()),bo=yo(e=>e.charAt(0).toUpperCase()+e.slice(1)),Do=yo(e=>e?`on${bo(e)}`:""),ar=(e,t)=>!Object.is(e,t),No=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ef=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Of=e=>{const t=Oe(e)?Number(e):NaN;return isNaN(t)?e:t};let gs;const wf=()=>gs||(gs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let rt;class Sf{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=rt,!t&&rt&&(this.index=(rt.scopes||(rt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=rt;try{return rt=this,t()}finally{rt=n}}}on(){rt=this}off(){rt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Kl=e=>(e.w&qt)>0,Wl=e=>(e.n&qt)>0,If=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(c==="length"||c>=l)&&a.push(u)})}else switch(n!==void 0&&a.push(s.get(n)),t){case"add":oe(e)?Mi(n)&&a.push(s.get("length")):(a.push(s.get(un)),Sn(e)&&a.push(s.get(oi)));break;case"delete":oe(e)||(a.push(s.get(un)),Sn(e)&&a.push(s.get(oi)));break;case"set":Sn(e)&&a.push(s.get(un));break}if(a.length===1)a[0]&&ii(a[0]);else{const l=[];for(const u of a)u&&l.push(...u);ii($i(l))}}function ii(e,t){const n=oe(e)?e:[...e];for(const r of n)r.computed&&ys(r);for(const r of n)r.computed||ys(r)}function ys(e,t){(e!==dt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Af(e,t){var n;return(n=Yr.get(e))===null||n===void 0?void 0:n.get(t)}const xf=Ri("__proto__,__v_isRef,__isVue"),Zl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ni)),Tf=Fi(),Lf=Fi(!1,!0),Rf=Fi(!0),bs=jf();function jf(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=be(this);for(let i=0,s=this.length;i{e[t]=function(...n){Dn();const r=be(this)[t].apply(this,n);return Nn(),r}}),e}function Df(e){const t=be(this);return tt(t,"has",e),t.hasOwnProperty(e)}function Fi(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?Yf:tc:t?ec:Xl).get(r))return r;const s=oe(r);if(!e){if(s&&_e(bs,o))return Reflect.get(bs,o,i);if(o==="hasOwnProperty")return Df}const a=Reflect.get(r,o,i);return(Ni(o)?Zl.has(o):xf(o))||(e||tt(r,"get",o),t)?a:Ve(a)?s&&Mi(o)?a:a.value:Te(a)?e?Oo(a):Mn(a):a}}const Nf=Yl(),Mf=Yl(!0);function Yl(e=!1){return function(n,r,o,i){let s=n[r];if(An(s)&&Ve(s)&&!Ve(o))return!1;if(!e&&(!Gr(o)&&!An(o)&&(s=be(s),o=be(o)),!oe(n)&&Ve(s)&&!Ve(o)))return s.value=o,!0;const a=oe(n)&&Mi(r)?Number(r)e,Eo=e=>Reflect.getPrototypeOf(e);function Pr(e,t,n=!1,r=!1){e=e.__v_raw;const o=be(e),i=be(t);n||(t!==i&&tt(o,"get",t),tt(o,"get",i));const{has:s}=Eo(o),a=r?Bi:n?Ui:lr;if(s.call(o,t))return a(e.get(t));if(s.call(o,i))return a(e.get(i));e!==o&&e.get(t)}function Cr(e,t=!1){const n=this.__v_raw,r=be(n),o=be(e);return t||(e!==o&&tt(r,"has",e),tt(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Ir(e,t=!1){return e=e.__v_raw,!t&&tt(be(e),"iterate",un),Reflect.get(e,"size",e)}function Es(e){e=be(e);const t=be(this);return Eo(t).has.call(t,e)||(t.add(e),xt(t,"add",e,e)),this}function Os(e,t){t=be(t);const n=be(this),{has:r,get:o}=Eo(n);let i=r.call(n,e);i||(e=be(e),i=r.call(n,e));const s=o.call(n,e);return n.set(e,t),i?ar(t,s)&&xt(n,"set",e,t):xt(n,"add",e,t),this}function ws(e){const t=be(this),{has:n,get:r}=Eo(t);let o=n.call(t,e);o||(e=be(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&xt(t,"delete",e,void 0),i}function Ss(){const e=be(this),t=e.size!==0,n=e.clear();return t&&xt(e,"clear",void 0,void 0),n}function kr(e,t){return function(r,o){const i=this,s=i.__v_raw,a=be(s),l=t?Bi:e?Ui:lr;return!e&&tt(a,"iterate",un),s.forEach((u,c)=>r.call(o,l(u),l(c),i))}}function Ar(e,t,n){return function(...r){const o=this.__v_raw,i=be(o),s=Sn(i),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=o[e](...r),c=n?Bi:t?Ui:lr;return!t&&tt(i,"iterate",l?oi:un),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:a?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Rt(e){return function(...t){return e==="delete"?!1:this}}function qf(){const e={get(i){return Pr(this,i)},get size(){return Ir(this)},has:Cr,add:Es,set:Os,delete:ws,clear:Ss,forEach:kr(!1,!1)},t={get(i){return Pr(this,i,!1,!0)},get size(){return Ir(this)},has:Cr,add:Es,set:Os,delete:ws,clear:Ss,forEach:kr(!1,!0)},n={get(i){return Pr(this,i,!0)},get size(){return Ir(this,!0)},has(i){return Cr.call(this,i,!0)},add:Rt("add"),set:Rt("set"),delete:Rt("delete"),clear:Rt("clear"),forEach:kr(!0,!1)},r={get(i){return Pr(this,i,!0,!0)},get size(){return Ir(this,!0)},has(i){return Cr.call(this,i,!0)},add:Rt("add"),set:Rt("set"),delete:Rt("delete"),clear:Rt("clear"),forEach:kr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Ar(i,!1,!1),n[i]=Ar(i,!0,!1),t[i]=Ar(i,!1,!0),r[i]=Ar(i,!0,!0)}),[e,n,t,r]}const[Uf,zf,Kf,Wf]=qf();function Vi(e,t){const n=t?e?Wf:Kf:e?zf:Uf;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(_e(n,o)&&o in r?n:r,o,i)}const Jf={get:Vi(!1,!1)},Qf={get:Vi(!1,!0)},Zf={get:Vi(!0,!1)},Xl=new WeakMap,ec=new WeakMap,tc=new WeakMap,Yf=new WeakMap;function Gf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Xf(e){return e.__v_skip||!Object.isExtensible(e)?0:Gf(_f(e))}function Mn(e){return An(e)?e:qi(e,!1,Gl,Jf,Xl)}function ed(e){return qi(e,!1,Vf,Qf,ec)}function Oo(e){return qi(e,!0,Bf,Zf,tc)}function qi(e,t,n,r,o){if(!Te(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const s=Xf(e);if(s===0)return e;const a=new Proxy(e,s===2?r:n);return o.set(e,a),a}function Pn(e){return An(e)?Pn(e.__v_raw):!!(e&&e.__v_isReactive)}function An(e){return!!(e&&e.__v_isReadonly)}function Gr(e){return!!(e&&e.__v_isShallow)}function nc(e){return Pn(e)||An(e)}function be(e){const t=e&&e.__v_raw;return t?be(t):e}function rc(e){return Zr(e,"__v_skip",!0),e}const lr=e=>Te(e)?Mn(e):e,Ui=e=>Te(e)?Oo(e):e;function oc(e){Ht&&dt&&(e=be(e),Ql(e.dep||(e.dep=$i())))}function ic(e,t){e=be(e);const n=e.dep;n&&ii(n)}function Ve(e){return!!(e&&e.__v_isRef===!0)}function Ce(e){return ac(e,!1)}function sc(e){return ac(e,!0)}function ac(e,t){return Ve(e)?e:new td(e,t)}class td{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:be(t),this._value=n?t:lr(t)}get value(){return oc(this),this._value}set value(t){const n=this.__v_isShallow||Gr(t)||An(t);t=n?t:be(t),ar(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:lr(t),ic(this))}}function V(e){return Ve(e)?e.value:e}const nd={get:(e,t,n)=>V(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Ve(o)&&!Ve(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function lc(e){return Pn(e)?e:new Proxy(e,nd)}function zi(e){const t=oe(e)?new Array(e.length):{};for(const n in e)t[n]=od(e,n);return t}class rd{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Af(be(this._object),this._key)}}function od(e,t,n){const r=e[t];return Ve(r)?r:new rd(e,t,n)}var cc;class id{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[cc]=!1,this._dirty=!0,this.effect=new Hi(t,()=>{this._dirty||(this._dirty=!0,ic(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=be(this);return oc(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}cc="__v_isReadonly";function sd(e,t,n=!1){let r,o;const i=fe(e);return i?(r=e,o=mt):(r=e.get,o=e.set),new id(r,o,i||!o,n)}function Ft(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){br(i,t,n)}return o}function at(e,t,n,r){if(fe(e)){const i=Ft(e,t,n,r);return i&&Vl(i)&&i.catch(s=>{br(s,t,n)}),i}const o=[];for(let i=0;i>>1;ur(We[r])_t&&We.splice(t,1)}function ud(e){oe(e)?Cn.push(...e):(!Pt||!Pt.includes(e,e.allowRecurse?rn+1:rn))&&Cn.push(e),fc()}function Ps(e,t=cr?_t+1:0){for(;tur(n)-ur(r)),rn=0;rne.id==null?1/0:e.id,fd=(e,t)=>{const n=ur(e)-ur(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function dc(e){si=!1,cr=!0,We.sort(fd);const t=mt;try{for(_t=0;_tOe(p)?p.trim():p)),f&&(o=n.map(Ef))}let a,l=r[a=Do(t)]||r[a=Do(Et(t))];!l&&i&&(l=r[a=Do(dn(t))]),l&&at(l,e,6,o);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,at(u,e,6,o)}}function pc(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let s={},a=!1;if(!fe(e)){const l=u=>{const c=pc(u,t,!0);c&&(a=!0,ze(s,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(Te(e)&&r.set(e,null),null):(oe(i)?i.forEach(l=>s[l]=null):ze(s,i),Te(e)&&r.set(e,s),s)}function So(e,t){return!e||!yr(t)?!1:(t=t.slice(2).replace(/Once$/,""),_e(e,t[0].toLowerCase()+t.slice(1))||_e(e,dn(t))||_e(e,t))}let Ue=null,mc=null;function eo(e){const t=Ue;return Ue=e,mc=e&&e.type.__scopeId||null,t}function qe(e,t=Ue,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Ds(-1);const i=eo(t);let s;try{s=e(...o)}finally{eo(i),r._d&&Ds(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Mo(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[s],slots:a,attrs:l,emit:u,render:c,renderCache:f,data:d,setupState:p,ctx:_,inheritAttrs:g}=e;let O,h;const E=eo(e);try{if(n.shapeFlag&4){const S=o||r;O=ft(c.call(S,S,f,i,p,d,_)),h=l}else{const S=t;O=ft(S.length>1?S(i,{attrs:l,slots:a,emit:u}):S(i,null)),h=t.props?l:pd(l)}}catch(S){tr.length=0,br(S,e,1),O=ae(ot)}let w=O;if(h&&g!==!1){const S=Object.keys(h),{shapeFlag:I}=w;S.length&&I&7&&(s&&S.some(ji)&&(h=md(h,s)),w=zt(w,h))}return n.dirs&&(w=zt(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),O=w,eo(E),O}const pd=e=>{let t;for(const n in e)(n==="class"||n==="style"||yr(n))&&((t||(t={}))[n]=e[n]);return t},md=(e,t)=>{const n={};for(const r in e)(!ji(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function hd(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Cs(r,s,u):!!s;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;function hc(e,t){t&&t.pendingBranch?oe(e)?t.effects.push(...e):t.effects.push(e):ud(e)}function Bt(e,t){if(je){let n=je.provides;const r=je.parent&&je.parent.provides;r===n&&(n=je.provides=Object.create(r)),n[e]=t}}function Fe(e,t,n=!1){const r=je||Ue;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&fe(t)?t.call(r.proxy):t}}function _d(e,t){return Wi(e,null,t)}const xr={};function lt(e,t,n){return Wi(e,t,n)}function Wi(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:s}=xe){const a=zl()===(je==null?void 0:je.scope)?je:null;let l,u=!1,c=!1;if(Ve(e)?(l=()=>e.value,u=Gr(e)):Pn(e)?(l=()=>e,r=!0):oe(e)?(c=!0,u=e.some(w=>Pn(w)||Gr(w)),l=()=>e.map(w=>{if(Ve(w))return w.value;if(Pn(w))return ln(w);if(fe(w))return Ft(w,a,2)})):fe(e)?t?l=()=>Ft(e,a,2):l=()=>{if(!(a&&a.isUnmounted))return f&&f(),at(e,a,3,[d])}:l=mt,t&&r){const w=l;l=()=>ln(w())}let f,d=w=>{f=h.onStop=()=>{Ft(w,a,4)}},p;if(Ln)if(d=mt,t?n&&at(t,a,3,[l(),c?[]:void 0,d]):l(),o==="sync"){const w=dp();p=w.__watcherHandles||(w.__watcherHandles=[])}else return mt;let _=c?new Array(e.length).fill(xr):xr;const g=()=>{if(!!h.active)if(t){const w=h.run();(r||u||(c?w.some((S,I)=>ar(S,_[I])):ar(w,_)))&&(f&&f(),at(t,a,3,[w,_===xr?void 0:c&&_[0]===xr?[]:_,d]),_=w)}else h.run()};g.allowRecurse=!!t;let O;o==="sync"?O=g:o==="post"?O=()=>Xe(g,a&&a.suspense):(g.pre=!0,a&&(g.id=a.uid),O=()=>wo(g));const h=new Hi(l,O);t?n?g():_=h.run():o==="post"?Xe(h.run.bind(h),a&&a.suspense):h.run();const E=()=>{h.stop(),a&&a.scope&&Di(a.scope.effects,h)};return p&&p.push(E),E}function yd(e,t,n){const r=this.proxy,o=Oe(e)?e.includes(".")?vc(r,e):()=>r[e]:e.bind(r,r);let i;fe(t)?i=t:(i=t.handler,n=t);const s=je;Tn(this);const a=Wi(o,i.bind(r),n);return s?Tn(s):fn(),a}function vc(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{ln(n,t)});else if(Ul(e))for(const n in e)ln(e[n],t);return e}function bd(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ye(()=>{e.isMounted=!0}),Co(()=>{e.isUnmounting=!0}),e}const it=[Function,Array],Ed={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:it,onEnter:it,onAfterEnter:it,onEnterCancelled:it,onBeforeLeave:it,onLeave:it,onAfterLeave:it,onLeaveCancelled:it,onBeforeAppear:it,onAppear:it,onAfterAppear:it,onAppearCancelled:it},setup(e,{slots:t}){const n=Rc(),r=bd();let o;return()=>{const i=t.default&&yc(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const g of i)if(g.type!==ot){s=g;break}}const a=be(e),{mode:l}=a;if(r.isLeaving)return $o(s);const u=Is(s);if(!u)return $o(s);const c=ai(u,a,r,n);li(u,c);const f=n.subTree,d=f&&Is(f);let p=!1;const{getTransitionKey:_}=u.type;if(_){const g=_();o===void 0?o=g:g!==o&&(o=g,p=!0)}if(d&&d.type!==ot&&(!on(u,d)||p)){const g=ai(d,a,r,n);if(li(d,g),l==="out-in")return r.isLeaving=!0,g.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},$o(s);l==="in-out"&&u.type!==ot&&(g.delayLeave=(O,h,E)=>{const w=_c(r,d);w[String(d.key)]=d,O._leaveCb=()=>{h(),O._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=E})}return s}}},gc=Ed;function _c(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ai(e,t,n,r){const{appear:o,mode:i,persisted:s=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:d,onAfterLeave:p,onLeaveCancelled:_,onBeforeAppear:g,onAppear:O,onAfterAppear:h,onAppearCancelled:E}=t,w=String(e.key),S=_c(n,e),I=(b,M)=>{b&&at(b,r,9,M)},z=(b,M)=>{const N=M[1];I(b,M),oe(b)?b.every(K=>K.length<=1)&&N():b.length<=1&&N()},H={mode:i,persisted:s,beforeEnter(b){let M=a;if(!n.isMounted)if(o)M=g||a;else return;b._leaveCb&&b._leaveCb(!0);const N=S[w];N&&on(e,N)&&N.el._leaveCb&&N.el._leaveCb(),I(M,[b])},enter(b){let M=l,N=u,K=c;if(!n.isMounted)if(o)M=O||l,N=h||u,K=E||c;else return;let k=!1;const R=b._enterCb=$=>{k||(k=!0,$?I(K,[b]):I(N,[b]),H.delayedLeave&&H.delayedLeave(),b._enterCb=void 0)};M?z(M,[b,R]):R()},leave(b,M){const N=String(e.key);if(b._enterCb&&b._enterCb(!0),n.isUnmounting)return M();I(f,[b]);let K=!1;const k=b._leaveCb=R=>{K||(K=!0,M(),R?I(_,[b]):I(p,[b]),b._leaveCb=void 0,S[N]===e&&delete S[N])};S[N]=e,d?z(d,[b,k]):k()},clone(b){return ai(b,t,n,r)}};return H}function $o(e){if(Or(e))return e=zt(e),e.children=null,e}function Is(e){return Or(e)?e.children?e.children[0]:void 0:e}function li(e,t){e.shapeFlag&6&&e.component?li(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function yc(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader;function ce(e){fe(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:i,suspensible:s=!0,onError:a}=e;let l=null,u,c=0;const f=()=>(c++,l=null,d()),d=()=>{let p;return l||(p=l=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),a)return new Promise((g,O)=>{a(_,()=>g(f()),()=>O(_),c+1)});throw _}).then(_=>p!==l&&l?l:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),u=_,_)))};return me({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return u},setup(){const p=je;if(u)return()=>Ho(u,p);const _=E=>{l=null,br(E,p,13,!r)};if(s&&p.suspense||Ln)return d().then(E=>()=>Ho(E,p)).catch(E=>(_(E),()=>r?ae(r,{error:E}):null));const g=Ce(!1),O=Ce(),h=Ce(!!o);return o&&setTimeout(()=>{h.value=!1},o),i!=null&&setTimeout(()=>{if(!g.value&&!O.value){const E=new Error(`Async component timed out after ${i}ms.`);_(E),O.value=E}},i),d().then(()=>{g.value=!0,p.parent&&Or(p.parent.vnode)&&wo(p.parent.update)}).catch(E=>{_(E),O.value=E}),()=>{if(g.value&&u)return Ho(u,p);if(O.value&&r)return ae(r,{error:O.value});if(n&&!h.value)return ae(n)}}})}function Ho(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,s=ae(e,r,o);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const Or=e=>e.type.__isKeepAlive;function Od(e,t){bc(e,"a",t)}function wd(e,t){bc(e,"da",t)}function bc(e,t,n=je){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Po(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Or(o.parent.vnode)&&Sd(r,t,n,o),o=o.parent}}function Sd(e,t,n,r){const o=Po(t,e,r,!0);Io(()=>{Di(r[t],o)},n)}function Po(e,t,n=je,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Dn(),Tn(n);const a=at(t,n,e,s);return fn(),Nn(),a});return r?o.unshift(i):o.push(i),i}}const Lt=e=>(t,n=je)=>(!Ln||e==="sp")&&Po(e,(...r)=>t(...r),n),Pd=Lt("bm"),Ye=Lt("m"),Cd=Lt("bu"),Id=Lt("u"),Co=Lt("bum"),Io=Lt("um"),kd=Lt("sp"),Ad=Lt("rtg"),xd=Lt("rtc");function Td(e,t=je){Po("ec",e,t)}function to(e,t){const n=Ue;if(n===null)return e;const r=Ao(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;it(s,a,void 0,i&&i[a]));else{const s=Object.keys(e);o=new Array(s.length);for(let a=0,l=s.length;aoo(t)?!(t.type===ot||t.type===ke&&!Oc(t.children)):!0)?e:null}const ci=e=>e?jc(e)?Ao(e)||e.proxy:ci(e.parent):null,Xn=ze(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ci(e.parent),$root:e=>ci(e.root),$emit:e=>e.emit,$options:e=>Ji(e),$forceUpdate:e=>e.f||(e.f=()=>wo(e.update)),$nextTick:e=>e.n||(e.n=Er.bind(e.proxy)),$watch:e=>yd.bind(e)}),Fo=(e,t)=>e!==xe&&!e.__isScriptSetup&&_e(e,t),jd={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:s,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const p=s[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Fo(r,t))return s[t]=1,r[t];if(o!==xe&&_e(o,t))return s[t]=2,o[t];if((u=e.propsOptions[0])&&_e(u,t))return s[t]=3,i[t];if(n!==xe&&_e(n,t))return s[t]=4,n[t];ui&&(s[t]=0)}}const c=Xn[t];let f,d;if(c)return t==="$attrs"&&tt(e,"get",t),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==xe&&_e(n,t))return s[t]=4,n[t];if(d=l.config.globalProperties,_e(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Fo(o,t)?(o[t]=n,!0):r!==xe&&_e(r,t)?(r[t]=n,!0):_e(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},s){let a;return!!n[s]||e!==xe&&_e(e,s)||Fo(t,s)||(a=i[0])&&_e(a,s)||_e(r,s)||_e(Xn,s)||_e(o.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:_e(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let ui=!0;function Dd(e){const t=Ji(e),n=e.proxy,r=e.ctx;ui=!1,t.beforeCreate&&As(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:s,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:p,updated:_,activated:g,deactivated:O,beforeDestroy:h,beforeUnmount:E,destroyed:w,unmounted:S,render:I,renderTracked:z,renderTriggered:H,errorCaptured:b,serverPrefetch:M,expose:N,inheritAttrs:K,components:k,directives:R,filters:$}=t;if(u&&Nd(u,r,null,e.appContext.config.unwrapInjectedRef),s)for(const re in s){const se=s[re];fe(se)&&(r[re]=se.bind(n))}if(o){const re=o.call(n,n);Te(re)&&(e.data=Mn(re))}if(ui=!0,i)for(const re in i){const se=i[re],Le=fe(se)?se.bind(n,n):fe(se.get)?se.get.bind(n,n):mt,De=!fe(se)&&fe(se.set)?se.set.bind(n):mt,Ne=Q({get:Le,set:De});Object.defineProperty(r,re,{enumerable:!0,configurable:!0,get:()=>Ne.value,set:Ae=>Ne.value=Ae})}if(a)for(const re in a)wc(a[re],r,n,re);if(l){const re=fe(l)?l.call(n):l;Reflect.ownKeys(re).forEach(se=>{Bt(se,re[se])})}c&&As(c,e,"c");function W(re,se){oe(se)?se.forEach(Le=>re(Le.bind(n))):se&&re(se.bind(n))}if(W(Pd,f),W(Ye,d),W(Cd,p),W(Id,_),W(Od,g),W(wd,O),W(Td,b),W(xd,z),W(Ad,H),W(Co,E),W(Io,S),W(kd,M),oe(N))if(N.length){const re=e.exposed||(e.exposed={});N.forEach(se=>{Object.defineProperty(re,se,{get:()=>n[se],set:Le=>n[se]=Le})})}else e.exposed||(e.exposed={});I&&e.render===mt&&(e.render=I),K!=null&&(e.inheritAttrs=K),k&&(e.components=k),R&&(e.directives=R)}function Nd(e,t,n=mt,r=!1){oe(e)&&(e=fi(e));for(const o in e){const i=e[o];let s;Te(i)?"default"in i?s=Fe(i.from||o,i.default,!0):s=Fe(i.from||o):s=Fe(i),Ve(s)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:a=>s.value=a}):t[o]=s}}function As(e,t,n){at(oe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function wc(e,t,n,r){const o=r.includes(".")?vc(n,r):()=>n[r];if(Oe(e)){const i=t[e];fe(i)&<(o,i)}else if(fe(e))lt(o,e.bind(n));else if(Te(e))if(oe(e))e.forEach(i=>wc(i,t,n,r));else{const i=fe(e.handler)?e.handler.bind(n):t[e.handler];fe(i)&<(o,i,e)}}function Ji(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let l;return a?l=a:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(u=>no(l,u,s,!0)),no(l,t,s)),Te(t)&&i.set(t,l),l}function no(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&no(e,i,n,!0),o&&o.forEach(s=>no(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const a=Md[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const Md={data:xs,props:en,emits:en,methods:en,computed:en,beforeCreate:Je,created:Je,beforeMount:Je,mounted:Je,beforeUpdate:Je,updated:Je,beforeDestroy:Je,beforeUnmount:Je,destroyed:Je,unmounted:Je,activated:Je,deactivated:Je,errorCaptured:Je,serverPrefetch:Je,components:en,directives:en,watch:Hd,provide:xs,inject:$d};function xs(e,t){return t?e?function(){return ze(fe(e)?e.call(this,this):e,fe(t)?t.call(this,this):t)}:t:e}function $d(e,t){return en(fi(e),fi(t))}function fi(e){if(oe(e)){const t={};for(let n=0;n0)&&!(s&16)){if(s&8){const c=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,p]=Pc(f,t,!0);ze(s,d),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return Te(e)&&r.set(e,wn),wn;if(oe(i))for(let c=0;c-1,p[1]=g<0||_-1||_e(p,"default"))&&a.push(f)}}}const u=[s,a];return Te(e)&&r.set(e,u),u}function Ts(e){return e[0]!=="$"}function Ls(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Rs(e,t){return Ls(e)===Ls(t)}function js(e,t){return oe(t)?t.findIndex(n=>Rs(n,e)):fe(t)&&Rs(t,e)?0:-1}const Cc=e=>e[0]==="_"||e==="$stable",Qi=e=>oe(e)?e.map(ft):[ft(e)],Vd=(e,t,n)=>{if(t._n)return t;const r=qe((...o)=>Qi(t(...o)),n);return r._c=!1,r},Ic=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Cc(o))continue;const i=e[o];if(fe(i))t[o]=Vd(o,i,r);else if(i!=null){const s=Qi(i);t[o]=()=>s}}},kc=(e,t)=>{const n=Qi(t);e.slots.default=()=>n},qd=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=be(t),Zr(t,"_",n)):Ic(t,e.slots={})}else e.slots={},t&&kc(e,t);Zr(e.slots,ko,1)},Ud=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,s=xe;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(ze(o,t),!n&&a===1&&delete o._):(i=!t.$stable,Ic(t,o)),s=t}else t&&(kc(e,t),s={default:1});if(i)for(const a in o)!Cc(a)&&!(a in s)&&delete o[a]};function Ac(){return{app:null,config:{isNativeTag:hf,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let zd=0;function Kd(e,t){return function(r,o=null){fe(r)||(r=Object.assign({},r)),o!=null&&!Te(o)&&(o=null);const i=Ac(),s=new Set;let a=!1;const l=i.app={_uid:zd++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:pp,get config(){return i.config},set config(u){},use(u,...c){return s.has(u)||(u&&fe(u.install)?(s.add(u),u.install(l,...c)):fe(u)&&(s.add(u),u(l,...c))),l},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),l},component(u,c){return c?(i.components[u]=c,l):i.components[u]},directive(u,c){return c?(i.directives[u]=c,l):i.directives[u]},mount(u,c,f){if(!a){const d=ae(r,o);return d.appContext=i,c&&t?t(d,u):e(d,u,f),a=!0,l._container=u,u.__vue_app__=l,Ao(d.component)||d.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,c){return i.provides[u]=c,l}};return l}}function ro(e,t,n,r,o=!1){if(oe(e)){e.forEach((d,p)=>ro(d,t&&(oe(t)?t[p]:t),n,r,o));return}if(In(r)&&!o)return;const i=r.shapeFlag&4?Ao(r.component)||r.component.proxy:r.el,s=o?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===xe?a.refs={}:a.refs,f=a.setupState;if(u!=null&&u!==l&&(Oe(u)?(c[u]=null,_e(f,u)&&(f[u]=null)):Ve(u)&&(u.value=null)),fe(l))Ft(l,a,12,[s,c]);else{const d=Oe(l),p=Ve(l);if(d||p){const _=()=>{if(e.f){const g=d?_e(f,l)?f[l]:c[l]:l.value;o?oe(g)&&Di(g,i):oe(g)?g.includes(i)||g.push(i):d?(c[l]=[i],_e(f,l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else d?(c[l]=s,_e(f,l)&&(f[l]=s)):p&&(l.value=s,e.k&&(c[e.k]=s))};s?(_.id=-1,Xe(_,n)):_()}}}let jt=!1;const Tr=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Lr=e=>e.nodeType===8;function Wd(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:i,parentNode:s,remove:a,insert:l,createComment:u}}=e,c=(h,E)=>{if(!E.hasChildNodes()){n(null,h,E),Xr(),E._vnode=h;return}jt=!1,f(E.firstChild,h,null,null,null),Xr(),E._vnode=h,jt&&console.error("Hydration completed but contains mismatches.")},f=(h,E,w,S,I,z=!1)=>{const H=Lr(h)&&h.data==="[",b=()=>g(h,E,w,S,I,H),{type:M,ref:N,shapeFlag:K,patchFlag:k}=E;let R=h.nodeType;E.el=h,k===-2&&(z=!1,E.dynamicChildren=null);let $=null;switch(M){case xn:R!==3?E.children===""?(l(E.el=o(""),s(h),h),$=h):$=b():(h.data!==E.children&&(jt=!0,h.data=E.children),$=i(h));break;case ot:R!==8||H?$=b():$=i(h);break;case er:if(H&&(h=i(h),R=h.nodeType),R===1||R===3){$=h;const ie=!E.children.length;for(let W=0;W{z=z||!!E.dynamicChildren;const{type:H,props:b,patchFlag:M,shapeFlag:N,dirs:K}=E,k=H==="input"&&K||H==="option";if(k||M!==-1){if(K&>(E,null,w,"created"),b)if(k||!z||M&48)for(const $ in b)(k&&$.endsWith("value")||yr($)&&!Gn($))&&r(h,$,null,b[$],!1,void 0,w);else b.onClick&&r(h,"onClick",null,b.onClick,!1,void 0,w);let R;if((R=b&&b.onVnodeBeforeMount)&&st(R,w,E),K&>(E,null,w,"beforeMount"),((R=b&&b.onVnodeMounted)||K)&&hc(()=>{R&&st(R,w,E),K&>(E,null,w,"mounted")},S),N&16&&!(b&&(b.innerHTML||b.textContent))){let $=p(h.firstChild,E,h,w,S,I,z);for(;$;){jt=!0;const ie=$;$=$.nextSibling,a(ie)}}else N&8&&h.textContent!==E.children&&(jt=!0,h.textContent=E.children)}return h.nextSibling},p=(h,E,w,S,I,z,H)=>{H=H||!!E.dynamicChildren;const b=E.children,M=b.length;for(let N=0;N{const{slotScopeIds:H}=E;H&&(I=I?I.concat(H):H);const b=s(h),M=p(i(h),E,b,w,S,I,z);return M&&Lr(M)&&M.data==="]"?i(E.anchor=M):(jt=!0,l(E.anchor=u("]"),b,M),M)},g=(h,E,w,S,I,z)=>{if(jt=!0,E.el=null,z){const M=O(h);for(;;){const N=i(h);if(N&&N!==M)a(N);else break}}const H=i(h),b=s(h);return a(h),n(null,E,b,H,w,S,Tr(b),I),H},O=h=>{let E=0;for(;h;)if(h=i(h),h&&Lr(h)&&(h.data==="["&&E++,h.data==="]")){if(E===0)return i(h);E--}return h};return[c,f]}const Xe=hc;function Jd(e){return Qd(e,Wd)}function Qd(e,t){const n=wf();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:s,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:p=mt,insertStaticContent:_}=e,g=(m,v,P,C=null,A=null,D=null,j=!1,T=null,F=!!v.dynamicChildren)=>{if(m===v)return;m&&!on(m,v)&&(C=q(m),Ae(m,A,D,!0),m=null),v.patchFlag===-2&&(F=!1,v.dynamicChildren=null);const{type:L,ref:G,shapeFlag:Y}=v;switch(L){case xn:O(m,v,P,C);break;case ot:h(m,v,P,C);break;case er:m==null&&E(v,P,C,j);break;case ke:k(m,v,P,C,A,D,j,T,F);break;default:Y&1?I(m,v,P,C,A,D,j,T,F):Y&6?R(m,v,P,C,A,D,j,T,F):(Y&64||Y&128)&&L.process(m,v,P,C,A,D,j,T,F,de)}G!=null&&A&&ro(G,m&&m.ref,D,v||m,!v)},O=(m,v,P,C)=>{if(m==null)r(v.el=a(v.children),P,C);else{const A=v.el=m.el;v.children!==m.children&&u(A,v.children)}},h=(m,v,P,C)=>{m==null?r(v.el=l(v.children||""),P,C):v.el=m.el},E=(m,v,P,C)=>{[m.el,m.anchor]=_(m.children,v,P,C,m.el,m.anchor)},w=({el:m,anchor:v},P,C)=>{let A;for(;m&&m!==v;)A=d(m),r(m,P,C),m=A;r(v,P,C)},S=({el:m,anchor:v})=>{let P;for(;m&&m!==v;)P=d(m),o(m),m=P;o(v)},I=(m,v,P,C,A,D,j,T,F)=>{j=j||v.type==="svg",m==null?z(v,P,C,A,D,j,T,F):M(m,v,A,D,j,T,F)},z=(m,v,P,C,A,D,j,T)=>{let F,L;const{type:G,props:Y,shapeFlag:X,transition:ee,dirs:ue}=m;if(F=m.el=s(m.type,D,Y&&Y.is,Y),X&8?c(F,m.children):X&16&&b(m.children,F,null,C,A,D&&G!=="foreignObject",j,T),ue&>(m,null,C,"created"),H(F,m,m.scopeId,j,C),Y){for(const Se in Y)Se!=="value"&&!Gn(Se)&&i(F,Se,null,Y[Se],D,m.children,C,A,U);"value"in Y&&i(F,"value",null,Y.value),(L=Y.onVnodeBeforeMount)&&st(L,C,m)}ue&>(m,null,C,"beforeMount");const ve=(!A||A&&!A.pendingBranch)&&ee&&!ee.persisted;ve&&ee.beforeEnter(F),r(F,v,P),((L=Y&&Y.onVnodeMounted)||ve||ue)&&Xe(()=>{L&&st(L,C,m),ve&&ee.enter(F),ue&>(m,null,C,"mounted")},A)},H=(m,v,P,C,A)=>{if(P&&p(m,P),C)for(let D=0;D{for(let L=F;L{const T=v.el=m.el;let{patchFlag:F,dynamicChildren:L,dirs:G}=v;F|=m.patchFlag&16;const Y=m.props||xe,X=v.props||xe;let ee;P&&Qt(P,!1),(ee=X.onVnodeBeforeUpdate)&&st(ee,P,v,m),G&>(v,m,P,"beforeUpdate"),P&&Qt(P,!0);const ue=A&&v.type!=="foreignObject";if(L?N(m.dynamicChildren,L,T,P,C,ue,D):j||se(m,v,T,null,P,C,ue,D,!1),F>0){if(F&16)K(T,v,Y,X,P,C,A);else if(F&2&&Y.class!==X.class&&i(T,"class",null,X.class,A),F&4&&i(T,"style",Y.style,X.style,A),F&8){const ve=v.dynamicProps;for(let Se=0;Se{ee&&st(ee,P,v,m),G&>(v,m,P,"updated")},C)},N=(m,v,P,C,A,D,j)=>{for(let T=0;T{if(P!==C){if(P!==xe)for(const T in P)!Gn(T)&&!(T in C)&&i(m,T,P[T],null,j,v.children,A,D,U);for(const T in C){if(Gn(T))continue;const F=C[T],L=P[T];F!==L&&T!=="value"&&i(m,T,L,F,j,v.children,A,D,U)}"value"in C&&i(m,"value",P.value,C.value)}},k=(m,v,P,C,A,D,j,T,F)=>{const L=v.el=m?m.el:a(""),G=v.anchor=m?m.anchor:a("");let{patchFlag:Y,dynamicChildren:X,slotScopeIds:ee}=v;ee&&(T=T?T.concat(ee):ee),m==null?(r(L,P,C),r(G,P,C),b(v.children,P,G,A,D,j,T,F)):Y>0&&Y&64&&X&&m.dynamicChildren?(N(m.dynamicChildren,X,P,A,D,j,T),(v.key!=null||A&&v===A.subTree)&&xc(m,v,!0)):se(m,v,P,G,A,D,j,T,F)},R=(m,v,P,C,A,D,j,T,F)=>{v.slotScopeIds=T,m==null?v.shapeFlag&512?A.ctx.activate(v,P,C,j,F):$(v,P,C,A,D,j,F):ie(m,v,F)},$=(m,v,P,C,A,D,j)=>{const T=m.component=op(m,C,A);if(Or(m)&&(T.ctx.renderer=de),ip(T),T.asyncDep){if(A&&A.registerDep(T,W),!m.el){const F=T.subTree=ae(ot);h(null,F,v,P)}return}W(T,m,v,P,A,D,j)},ie=(m,v,P)=>{const C=v.component=m.component;if(hd(m,v,P))if(C.asyncDep&&!C.asyncResolved){re(C,v,P);return}else C.next=v,cd(C.update),C.update();else v.el=m.el,C.vnode=v},W=(m,v,P,C,A,D,j)=>{const T=()=>{if(m.isMounted){let{next:G,bu:Y,u:X,parent:ee,vnode:ue}=m,ve=G,Se;Qt(m,!1),G?(G.el=ue.el,re(m,G,j)):G=ue,Y&&No(Y),(Se=G.props&&G.props.onVnodeBeforeUpdate)&&st(Se,ee,G,ue),Qt(m,!0);const $e=Mo(m),ut=m.subTree;m.subTree=$e,g(ut,$e,f(ut.el),q(ut),m,A,D),G.el=$e.el,ve===null&&vd(m,$e.el),X&&Xe(X,A),(Se=G.props&&G.props.onVnodeUpdated)&&Xe(()=>st(Se,ee,G,ue),A)}else{let G;const{el:Y,props:X}=v,{bm:ee,m:ue,parent:ve}=m,Se=In(v);if(Qt(m,!1),ee&&No(ee),!Se&&(G=X&&X.onVnodeBeforeMount)&&st(G,ve,v),Qt(m,!0),Y&&le){const $e=()=>{m.subTree=Mo(m),le(Y,m.subTree,m,A,null)};Se?v.type.__asyncLoader().then(()=>!m.isUnmounted&&$e()):$e()}else{const $e=m.subTree=Mo(m);g(null,$e,P,C,m,A,D),v.el=$e.el}if(ue&&Xe(ue,A),!Se&&(G=X&&X.onVnodeMounted)){const $e=v;Xe(()=>st(G,ve,$e),A)}(v.shapeFlag&256||ve&&In(ve.vnode)&&ve.vnode.shapeFlag&256)&&m.a&&Xe(m.a,A),m.isMounted=!0,v=P=C=null}},F=m.effect=new Hi(T,()=>wo(L),m.scope),L=m.update=()=>F.run();L.id=m.uid,Qt(m,!0),L()},re=(m,v,P)=>{v.component=m;const C=m.vnode.props;m.vnode=v,m.next=null,Bd(m,v.props,C,P),Ud(m,v.children,P),Dn(),Ps(),Nn()},se=(m,v,P,C,A,D,j,T,F=!1)=>{const L=m&&m.children,G=m?m.shapeFlag:0,Y=v.children,{patchFlag:X,shapeFlag:ee}=v;if(X>0){if(X&128){De(L,Y,P,C,A,D,j,T,F);return}else if(X&256){Le(L,Y,P,C,A,D,j,T,F);return}}ee&8?(G&16&&U(L,A,D),Y!==L&&c(P,Y)):G&16?ee&16?De(L,Y,P,C,A,D,j,T,F):U(L,A,D,!0):(G&8&&c(P,""),ee&16&&b(Y,P,C,A,D,j,T,F))},Le=(m,v,P,C,A,D,j,T,F)=>{m=m||wn,v=v||wn;const L=m.length,G=v.length,Y=Math.min(L,G);let X;for(X=0;XG?U(m,A,D,!0,!1,Y):b(v,P,C,A,D,j,T,F,Y)},De=(m,v,P,C,A,D,j,T,F)=>{let L=0;const G=v.length;let Y=m.length-1,X=G-1;for(;L<=Y&&L<=X;){const ee=m[L],ue=v[L]=F?Mt(v[L]):ft(v[L]);if(on(ee,ue))g(ee,ue,P,null,A,D,j,T,F);else break;L++}for(;L<=Y&&L<=X;){const ee=m[Y],ue=v[X]=F?Mt(v[X]):ft(v[X]);if(on(ee,ue))g(ee,ue,P,null,A,D,j,T,F);else break;Y--,X--}if(L>Y){if(L<=X){const ee=X+1,ue=eeX)for(;L<=Y;)Ae(m[L],A,D,!0),L++;else{const ee=L,ue=L,ve=new Map;for(L=ue;L<=X;L++){const nt=v[L]=F?Mt(v[L]):ft(v[L]);nt.key!=null&&ve.set(nt.key,L)}let Se,$e=0;const ut=X-ue+1;let mn=!1,ps=0;const Bn=new Array(ut);for(L=0;L=ut){Ae(nt,A,D,!0);continue}let vt;if(nt.key!=null)vt=ve.get(nt.key);else for(Se=ue;Se<=X;Se++)if(Bn[Se-ue]===0&&on(nt,v[Se])){vt=Se;break}vt===void 0?Ae(nt,A,D,!0):(Bn[vt-ue]=L+1,vt>=ps?ps=vt:mn=!0,g(nt,v[vt],P,null,A,D,j,T,F),$e++)}const ms=mn?Zd(Bn):wn;for(Se=ms.length-1,L=ut-1;L>=0;L--){const nt=ue+L,vt=v[nt],hs=nt+1{const{el:D,type:j,transition:T,children:F,shapeFlag:L}=m;if(L&6){Ne(m.component.subTree,v,P,C);return}if(L&128){m.suspense.move(v,P,C);return}if(L&64){j.move(m,v,P,de);return}if(j===ke){r(D,v,P);for(let Y=0;YT.enter(D),A);else{const{leave:Y,delayLeave:X,afterLeave:ee}=T,ue=()=>r(D,v,P),ve=()=>{Y(D,()=>{ue(),ee&&ee()})};X?X(D,ue,ve):ve()}else r(D,v,P)},Ae=(m,v,P,C=!1,A=!1)=>{const{type:D,props:j,ref:T,children:F,dynamicChildren:L,shapeFlag:G,patchFlag:Y,dirs:X}=m;if(T!=null&&ro(T,null,P,m,!0),G&256){v.ctx.deactivate(m);return}const ee=G&1&&X,ue=!In(m);let ve;if(ue&&(ve=j&&j.onVnodeBeforeUnmount)&&st(ve,v,m),G&6)x(m.component,P,C);else{if(G&128){m.suspense.unmount(P,C);return}ee&>(m,null,v,"beforeUnmount"),G&64?m.type.remove(m,v,P,A,de,C):L&&(D!==ke||Y>0&&Y&64)?U(L,v,P,!1,!0):(D===ke&&Y&384||!A&&G&16)&&U(F,v,P),C&&ct(m)}(ue&&(ve=j&&j.onVnodeUnmounted)||ee)&&Xe(()=>{ve&&st(ve,v,m),ee&>(m,null,v,"unmounted")},P)},ct=m=>{const{type:v,el:P,anchor:C,transition:A}=m;if(v===ke){Ge(P,C);return}if(v===er){S(m);return}const D=()=>{o(P),A&&!A.persisted&&A.afterLeave&&A.afterLeave()};if(m.shapeFlag&1&&A&&!A.persisted){const{leave:j,delayLeave:T}=A,F=()=>j(P,D);T?T(m.el,D,F):F()}else D()},Ge=(m,v)=>{let P;for(;m!==v;)P=d(m),o(m),m=P;o(v)},x=(m,v,P)=>{const{bum:C,scope:A,update:D,subTree:j,um:T}=m;C&&No(C),A.stop(),D&&(D.active=!1,Ae(j,m,v,P)),T&&Xe(T,v),Xe(()=>{m.isUnmounted=!0},v),v&&v.pendingBranch&&!v.isUnmounted&&m.asyncDep&&!m.asyncResolved&&m.suspenseId===v.pendingId&&(v.deps--,v.deps===0&&v.resolve())},U=(m,v,P,C=!1,A=!1,D=0)=>{for(let j=D;jm.shapeFlag&6?q(m.component.subTree):m.shapeFlag&128?m.suspense.next():d(m.anchor||m.el),Z=(m,v,P)=>{m==null?v._vnode&&Ae(v._vnode,null,null,!0):g(v._vnode||null,m,v,null,null,null,P),Ps(),Xr(),v._vnode=m},de={p:g,um:Ae,m:Ne,r:ct,mt:$,mc:b,pc:se,pbc:N,n:q,o:e};let Pe,le;return t&&([Pe,le]=t(de)),{render:Z,hydrate:Pe,createApp:Kd(Z,Pe)}}function Qt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function xc(e,t,n=!1){const r=e.children,o=t.children;if(oe(r)&&oe(o))for(let i=0;i>1,e[n[a]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}const Yd=e=>e.__isTeleport,ke=Symbol(void 0),xn=Symbol(void 0),ot=Symbol(void 0),er=Symbol(void 0),tr=[];let pt=null;function J(e=!1){tr.push(pt=e?null:[])}function Gd(){tr.pop(),pt=tr[tr.length-1]||null}let fr=1;function Ds(e){fr+=e}function Tc(e){return e.dynamicChildren=fr>0?pt||wn:null,Gd(),fr>0&&pt&&pt.push(e),e}function ne(e,t,n,r,o,i){return Tc(ye(e,t,n,r,o,i,!0))}function He(e,t,n,r,o){return Tc(ae(e,t,n,r,o,!0))}function oo(e){return e?e.__v_isVNode===!0:!1}function on(e,t){return e.type===t.type&&e.key===t.key}const ko="__vInternal",Lc=({key:e})=>e!=null?e:null,qr=({ref:e,ref_key:t,ref_for:n})=>e!=null?Oe(e)||Ve(e)||fe(e)?{i:Ue,r:e,k:t,f:!!n}:e:null;function ye(e,t=null,n=null,r=0,o=null,i=e===ke?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Lc(t),ref:t&&qr(t),scopeId:mc,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ue};return a?(Zi(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Oe(n)?8:16),fr>0&&!s&&pt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&pt.push(l),l}const ae=Xd;function Xd(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===Ld)&&(e=ot),oo(e)){const a=zt(e,t,!0);return n&&Zi(a,n),fr>0&&!i&&pt&&(a.shapeFlag&6?pt[pt.indexOf(e)]=a:pt.push(a)),a.patchFlag|=-2,a}if(up(e)&&(e=e.__vccOpts),t){t=ep(t);let{class:a,style:l}=t;a&&!Oe(a)&&(t.class=et(a)),Te(l)&&(nc(l)&&!oe(l)&&(l=ze({},l)),t.style=_r(l))}const s=Oe(e)?1:gd(e)?128:Yd(e)?64:Te(e)?4:fe(e)?2:0;return ye(e,t,n,r,o,s,i,!0)}function ep(e){return e?nc(e)||ko in e?ze({},e):e:null}function zt(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:s}=e,a=t?pi(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Lc(a),ref:t&&t.ref?n&&o?oe(o)?o.concat(qr(t)):[o,qr(t)]:qr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ke?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&zt(e.ssContent),ssFallback:e.ssFallback&&zt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Kt(e=" ",t=0){return ae(xn,null,e,t)}function tp(e,t){const n=ae(er,null,e);return n.staticCount=t,n}function Me(e="",t=!1){return t?(J(),He(ot,null,e)):ae(ot,null,e)}function ft(e){return e==null||typeof e=="boolean"?ae(ot):oe(e)?ae(ke,null,e.slice()):typeof e=="object"?Mt(e):ae(xn,null,String(e))}function Mt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:zt(e)}function Zi(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(oe(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Zi(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(ko in t)?t._ctx=Ue:o===3&&Ue&&(Ue.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else fe(t)?(t={default:t,_ctx:Ue},n=32):(t=String(t),r&64?(n=16,t=[Kt(t)]):n=8);e.children=t,e.shapeFlag|=n}function pi(...e){const t={};for(let n=0;nje||Ue,Tn=e=>{je=e,e.scope.on()},fn=()=>{je&&je.scope.off(),je=null};function jc(e){return e.vnode.shapeFlag&4}let Ln=!1;function ip(e,t=!1){Ln=t;const{props:n,children:r}=e.vnode,o=jc(e);Fd(e,n,o,t),qd(e,r);const i=o?sp(e,t):void 0;return Ln=!1,i}function sp(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=rc(new Proxy(e.ctx,jd));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?lp(e):null;Tn(e),Dn();const i=Ft(r,e,0,[e.props,o]);if(Nn(),fn(),Vl(i)){if(i.then(fn,fn),t)return i.then(s=>{Ns(e,s,t)}).catch(s=>{br(s,e,0)});e.asyncDep=i}else Ns(e,i,t)}else Dc(e,t)}function Ns(e,t,n){fe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Te(t)&&(e.setupState=lc(t)),Dc(e,n)}let Ms;function Dc(e,t,n){const r=e.type;if(!e.render){if(!t&&Ms&&!r.render){const o=r.template||Ji(e).template;if(o){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,u=ze(ze({isCustomElement:i,delimiters:a},s),l);r.render=Ms(o,u)}}e.render=r.render||mt}Tn(e),Dn(),Dd(e),Nn(),fn()}function ap(e){return new Proxy(e.attrs,{get(t,n){return tt(e,"get","$attrs"),t[n]}})}function lp(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=ap(e))},slots:e.slots,emit:e.emit,expose:t}}function Ao(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(lc(rc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Xn)return Xn[n](e)},has(t,n){return n in t||n in Xn}}))}function cp(e,t=!0){return fe(e)?e.displayName||e.name:e.name||t&&e.__name}function up(e){return fe(e)&&"__vccOpts"in e}const Q=(e,t)=>sd(e,t,Ln);function he(e,t,n){const r=arguments.length;return r===2?Te(t)&&!oe(t)?oo(t)?ae(e,null,[t]):ae(e,t):ae(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&oo(n)&&(n=[n]),ae(e,t,n))}const fp=Symbol(""),dp=()=>Fe(fp),pp="3.2.47",mp="http://www.w3.org/2000/svg",sn=typeof document<"u"?document:null,$s=sn&&sn.createElement("template"),hp={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?sn.createElementNS(mp,e):sn.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>sn.createTextNode(e),createComment:e=>sn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>sn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const s=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{$s.innerHTML=r?`${e}`:e;const a=$s.content;if(r){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function vp(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function gp(e,t,n){const r=e.style,o=Oe(n);if(n&&!o){if(t&&!Oe(t))for(const i in t)n[i]==null&&mi(r,i,"");for(const i in n)mi(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const Hs=/\s*!important$/;function mi(e,t,n){if(oe(n))n.forEach(r=>mi(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=_p(e,t);Hs.test(n)?e.setProperty(dn(r),n.replace(Hs,""),"important"):e[r]=n}}const Fs=["Webkit","Moz","ms"],Bo={};function _p(e,t){const n=Bo[t];if(n)return n;let r=Et(t);if(r!=="filter"&&r in e)return Bo[t]=r;r=bo(r);for(let o=0;oVo||(Pp.then(()=>Vo=0),Vo=Date.now());function Ip(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;at(kp(r,n.value),t,5,[r])};return n.value=e,n.attached=Cp(),n}function kp(e,t){if(oe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const qs=/^on[a-z]/,Ap=(e,t,n,r,o=!1,i,s,a,l)=>{t==="class"?vp(e,r,o):t==="style"?gp(e,n,r):yr(t)?ji(t)||wp(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):xp(e,t,r,o))?bp(e,t,r,i,s,a,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),yp(e,t,r,o))};function xp(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&qs.test(t)&&fe(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||qs.test(t)&&Oe(n)?!1:t in e}const Dt="transition",Vn="animation",$n=(e,{slots:t})=>he(gc,Tp(e),t);$n.displayName="Transition";const Nc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};$n.props=ze({},gc.props,Nc);const Zt=(e,t=[])=>{oe(e)?e.forEach(n=>n(...t)):e&&e(...t)},Us=e=>e?oe(e)?e.some(t=>t.length>1):e.length>1:!1;function Tp(e){const t={};for(const k in e)k in Nc||(t[k]=e[k]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=s,appearToClass:c=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,_=Lp(o),g=_&&_[0],O=_&&_[1],{onBeforeEnter:h,onEnter:E,onEnterCancelled:w,onLeave:S,onLeaveCancelled:I,onBeforeAppear:z=h,onAppear:H=E,onAppearCancelled:b=w}=t,M=(k,R,$)=>{Yt(k,R?c:a),Yt(k,R?u:s),$&&$()},N=(k,R)=>{k._isLeaving=!1,Yt(k,f),Yt(k,p),Yt(k,d),R&&R()},K=k=>(R,$)=>{const ie=k?H:E,W=()=>M(R,k,$);Zt(ie,[R,W]),zs(()=>{Yt(R,k?l:i),Nt(R,k?c:a),Us(ie)||Ks(R,r,g,W)})};return ze(t,{onBeforeEnter(k){Zt(h,[k]),Nt(k,i),Nt(k,s)},onBeforeAppear(k){Zt(z,[k]),Nt(k,l),Nt(k,u)},onEnter:K(!1),onAppear:K(!0),onLeave(k,R){k._isLeaving=!0;const $=()=>N(k,R);Nt(k,f),Dp(),Nt(k,d),zs(()=>{!k._isLeaving||(Yt(k,f),Nt(k,p),Us(S)||Ks(k,r,O,$))}),Zt(S,[k,$])},onEnterCancelled(k){M(k,!1),Zt(w,[k])},onAppearCancelled(k){M(k,!0),Zt(b,[k])},onLeaveCancelled(k){N(k),Zt(I,[k])}})}function Lp(e){if(e==null)return null;if(Te(e))return[qo(e.enter),qo(e.leave)];{const t=qo(e);return[t,t]}}function qo(e){return Of(e)}function Nt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Yt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function zs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Rp=0;function Ks(e,t,n,r){const o=e._endId=++Rp,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:s,timeout:a,propCount:l}=jp(e,t);if(!s)return r();const u=s+"end";let c=0;const f=()=>{e.removeEventListener(u,d),i()},d=p=>{p.target===e&&++c>=l&&f()};setTimeout(()=>{c(n[_]||"").split(", "),o=r(`${Dt}Delay`),i=r(`${Dt}Duration`),s=Ws(o,i),a=r(`${Vn}Delay`),l=r(`${Vn}Duration`),u=Ws(a,l);let c=null,f=0,d=0;t===Dt?s>0&&(c=Dt,f=s,d=i.length):t===Vn?u>0&&(c=Vn,f=u,d=l.length):(f=Math.max(s,u),c=f>0?s>u?Dt:Vn:null,d=c?c===Dt?i.length:l.length:0);const p=c===Dt&&/\b(transform|all)(,|$)/.test(r(`${Dt}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:p}}function Ws(e,t){for(;e.lengthJs(n)+Js(e[r])))}function Js(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Dp(){return document.body.offsetHeight}const Np={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Mp=(e,t)=>n=>{if(!("key"in n))return;const r=dn(n.key);if(t.some(o=>o===r||Np[o]===r))return e(n)},io={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):qn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),qn(e,!0),r.enter(e)):r.leave(e,()=>{qn(e,!1)}):qn(e,t))},beforeUnmount(e,{value:t}){qn(e,t)}};function qn(e,t){e.style.display=t?e._vod:"none"}const $p=ze({patchProp:Ap},hp);let Uo,Qs=!1;function Hp(){return Uo=Qs?Uo:Jd($p),Qs=!0,Uo}const Fp=(...e)=>{const t=Hp().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Bp(r);if(o)return n(o,!0,o instanceof SVGElement)},t};function Bp(e){return Oe(e)?document.querySelector(e):e}const Vp=JSON.parse('{"base":"/fes.js/","lang":"en-US","title":"","description":"","head":[["link",{"rel":"manifest","href":"/manifest.webmanifest"}],["link",{"rel":"icon","href":"/logo.png"}]],"locales":{"/":{"lang":"zh-CN","title":"Fes.js","description":"一个好用的前端应用解决方案"}}}');var qp=([e,t,n])=>e==="meta"&&t.name?`${e}.${t.name}`:["title","base"].includes(e)?e:e==="template"&&t.id?`${e}.${t.id}`:JSON.stringify([e,t,n]),Up=e=>{const t=new Set,n=[];return e.forEach(r=>{const o=qp(r);t.has(o)||(t.add(o),n.push(r))}),n},wr=e=>/^(https?:)?\/\//.test(e),zp=e=>/^mailto:/.test(e),Kp=e=>/^tel:/.test(e),Yi=e=>Object.prototype.toString.call(e)==="[object Object]",Mc=e=>e.replace(/\/$/,""),$c=e=>e.replace(/^\//,""),Hc=(e,t)=>{const n=Object.keys(e).sort((r,o)=>{const i=o.split("/").length-r.split("/").length;return i!==0?i:o.length-r.length});for(const r of n)if(t.startsWith(r))return r;return"/"},Zs=(e,t="/")=>e.replace(/^(https?:)?\/\/[^/]*/,"").replace(new RegExp(`^${t}`),"/");const Fc={"v-8daa1a0e":ce(()=>B(()=>import("./index.html.c40cc049.js"),[])),"v-fffb8e28":ce(()=>B(()=>import("./index.html.9c124f68.js"),[])),"v-0cca110a":ce(()=>B(()=>import("./builder.html.d4d5757f.js"),[])),"v-85fa9b2a":ce(()=>B(()=>import("./config.html.0f95fee4.js"),[])),"v-d7fa887a":ce(()=>B(()=>import("./contributing.html.64460810.js"),[])),"v-884fd4bc":ce(()=>B(()=>import("./css.html.f84ebf1b.js"),[])),"v-040800dc":ce(()=>B(()=>import("./directory-structure.html.648522d5.js"),[])),"v-ef8c5e10":ce(()=>B(()=>import("./env.html.22a8783f.js"),[])),"v-37e1c06f":ce(()=>B(()=>import("./faq.html.19ca02b3.js"),[])),"v-fb0f0066":ce(()=>B(()=>import("./getting-started.html.8fe3ee18.js"),[])),"v-528b8b6c":ce(()=>B(()=>import("./image.html.a1010faf.js"),[])),"v-00cf7e23":ce(()=>B(()=>import("./mock.html.7e263949.js"),[])),"v-1d14d5cc":ce(()=>B(()=>import("./plugin.html.2a53561b.js"),[])),"v-7b96e3a4":ce(()=>B(()=>import("./public.html.f994234a.js"),[])),"v-6320961c":ce(()=>B(()=>import("./route.html.3b4ca41d.js"),[])),"v-3dba8814":ce(()=>B(()=>import("./runtime-config.html.b5a30568.js"),[])),"v-7b48519a":ce(()=>B(()=>import("./template.html.d37be6af.js"),[])),"v-4acab794":ce(()=>B(()=>import("./upgrade3.html.3968d9f9.js"),[])),"v-a1a49808":ce(()=>B(()=>import("./api.html.21761e66.js"),[])),"v-a951be94":ce(()=>B(()=>import("./cli.html.3fb8d311.js"),[])),"v-76cd065c":ce(()=>B(()=>import("./index.html.fb3234bc.js"),[])),"v-76cb52e8":ce(()=>B(()=>import("./index.html.7fdbe73f.js"),[])),"v-2c05b6e0":ce(()=>B(()=>import("./index.html.f7fd713b.js"),[])),"v-d61a9282":ce(()=>B(()=>import("./index.html.a83808da.js"),[])),"v-494b840e":ce(()=>B(()=>import("./index.html.b9b03365.js"),[])),"v-c5618810":ce(()=>B(()=>import("./api.html.d2c39420.js"),[])),"v-2fe128e7":ce(()=>B(()=>import("./access.html.96612f2a.js"),[])),"v-323bda7e":ce(()=>B(()=>import("./editor.html.00d961a1.js"),[])),"v-c253c956":ce(()=>B(()=>import("./enums.html.193a4559.js"),[])),"v-0a0e491c":ce(()=>B(()=>import("./icon.html.4241b668.js"),[])),"v-3cd5a4ef":ce(()=>B(()=>import("./jest.html.f2aff521.js"),[])),"v-355ee23e":ce(()=>B(()=>import("./layout.html.76e01b19.js"),[])),"v-411c0c9e":ce(()=>B(()=>import("./locale.html.88762a65.js"),[])),"v-56ab05de":ce(()=>B(()=>import("./login.html.31ddef26.js"),[])),"v-3c4e521e":ce(()=>B(()=>import("./model.html.be6653d7.js"),[])),"v-6f2f6a5a":ce(()=>B(()=>import("./pinia.html.bae2441d.js"),[])),"v-b15becb0":ce(()=>B(()=>import("./qiankun.html.da0d7b2f.js"),[])),"v-41dee210":ce(()=>B(()=>import("./request.html.de605ef1.js"),[])),"v-5bf80046":ce(()=>B(()=>import("./sass.html.c97cdc49.js"),[])),"v-317f9008":ce(()=>B(()=>import("./swc.html.01bd96f2.js"),[])),"v-5f4c684e":ce(()=>B(()=>import("./vuex.html.7d6af135.js"),[])),"v-1c0edac3":ce(()=>B(()=>import("./watermark.html.1c77b6b4.js"),[])),"v-392e58ee":ce(()=>B(()=>import("./windicss.html.ab8a587e.js"),[])),"v-3706649a":ce(()=>B(()=>import("./404.html.2f935918.js"),[]))};var Ot=(e={})=>e;function Gi(e,t,n){var r,o,i;t===void 0&&(t=50),n===void 0&&(n={});var s=(r=n.isImmediate)!=null&&r,a=(o=n.callback)!=null&&o,l=n.maxWait,u=Date.now(),c=[];function f(){if(l!==void 0){var p=Date.now()-u;if(p+t>=l)return l-p}return t}var d=function(){var p=[].slice.call(arguments),_=this;return new Promise(function(g,O){var h=s&&i===void 0;if(i!==void 0&&clearTimeout(i),i=setTimeout(function(){if(i=void 0,u=Date.now(),!s){var w=e.apply(_,p);a&&a(w),c.forEach(function(S){return(0,S.resolve)(w)}),c=[]}},f()),h){var E=e.apply(_,p);return a&&a(E),g(E)}c.push({resolve:g,reject:O})})};return d.cancel=function(p){i!==void 0&&clearTimeout(i),c.forEach(function(_){return(0,_.reject)(p)}),c=[]},d}/*!
   * vue-router v4.1.6
   * (c) 2022 Eduardo San Martin Morote
   * @license MIT
diff --git a/assets/builder.html.e970d1bc.js b/assets/builder.html.92740dcf.js
similarity index 71%
rename from assets/builder.html.e970d1bc.js
rename to assets/builder.html.92740dcf.js
index 43c34f3a..c83a2ec4 100644
--- a/assets/builder.html.e970d1bc.js
+++ b/assets/builder.html.92740dcf.js
@@ -1 +1 @@
-const e=JSON.parse('{"key":"v-0cca110a","path":"/guide/builder.html","title":"支持 Vite 和 Webpack 双构建","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"使用差异","slug":"使用差异","link":"#使用差异","children":[{"level":3,"title":"配置","slug":"配置","link":"#配置","children":[]},{"level":3,"title":"静态文件处理","slug":"静态文件处理","link":"#静态文件处理","children":[]},{"level":3,"title":"html 模版","slug":"html-模版","link":"#html-模版","children":[]}]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/builder.md"}');export{e as data};
+const e=JSON.parse('{"key":"v-0cca110a","path":"/guide/builder.html","title":"支持 Vite 和 Webpack 双构建","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"使用差异","slug":"使用差异","link":"#使用差异","children":[{"level":3,"title":"配置","slug":"配置","link":"#配置","children":[]},{"level":3,"title":"静态文件处理","slug":"静态文件处理","link":"#静态文件处理","children":[]},{"level":3,"title":"html 模版","slug":"html-模版","link":"#html-模版","children":[]}]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/builder.md"}');export{e as data};
diff --git a/assets/builder.html.999bf635.js b/assets/builder.html.d4d5757f.js
similarity index 97%
rename from assets/builder.html.999bf635.js
rename to assets/builder.html.d4d5757f.js
index 8dfe293b..31fde109 100644
--- a/assets/builder.html.999bf635.js
+++ b/assets/builder.html.d4d5757f.js
@@ -1 +1 @@
-import{_ as n,r as i,o as c,c as o,b as e,d as t,a as r,f as s}from"./app.005e0daf.js";const l={},h=s('

支持 Vite 和 Webpack 双构建

Fes.js@3.0.x 版本支持 Vite 和 Webpack 两种构建方式,不再内置构建方式,需要开发者自行选择:

  • 选用 Vite 构建,安装 npm i @fesjs/builder-vite 依赖即可。
  • 选用 Webpack 构建,安装 npm i @fesjs/builder-webpack 依赖即可。

使用差异

由于 Fes.js 在 Vite 和 Webpack 上做了一层封装,开发者关心的构建配置不会太多。从使用上来说,主要存在以下几个差异点:

配置

Webpack 和 Vite 构建在配置方面有一些差异,具体可以查看配置

静态文件处理

',8),d=e("code",null,"require",-1),p={href:"https://cn.vitejs.dev/guide/assets.html",target:"_blank",rel:"noopener noreferrer"},u=e("h3",{id:"html-模版",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#html-模版","aria-hidden":"true"},"#"),t(" html 模版")],-1),_={href:"https://github.com/jantimon/html-webpack-plugin",target:"_blank",rel:"noopener noreferrer"},b={href:"https://github.com/vbenjs/vite-plugin-html",target:"_blank",rel:"noopener noreferrer"},m=e("div",{class:"custom-container tip"},[e("p",{class:"custom-container-title"},"提示"),e("p",null,[t("fes3.0+ html 模版文件从 "),e("code",null,"public/index.html"),t(" 挪到项目根目录。")])],-1);function f(k,x){const a=i("ExternalLinkIcon");return c(),o("div",null,[h,e("p",null,[t("由于 Vite 的限制,不支持 "),d,t(" 语法,具体 Vite 的用法可以查看"),e("a",p,[t("官网"),r(a)])]),u,e("p",null,[t("html 模版比较常规的需求,例如模版变量,Webpack 和 Vite 之间没什么差异。如果有其他特殊的需求, Webpack 可以使用 "),e("a",_,[t("html-webpack-plugin"),r(a)]),t(",Vite 使用"),e("a",b,[t("vite-plugin-html"),r(a)]),t(" 进行个性化配置。")]),m])}const v=n(l,[["render",f],["__file","builder.html.vue"]]);export{v as default}; +import{_ as n,r as i,o as c,c as o,b as e,d as t,a as r,f as s}from"./app.136d0839.js";const l={},h=s('

支持 Vite 和 Webpack 双构建

Fes.js@3.0.x 版本支持 Vite 和 Webpack 两种构建方式,不再内置构建方式,需要开发者自行选择:

  • 选用 Vite 构建,安装 npm i @fesjs/builder-vite 依赖即可。
  • 选用 Webpack 构建,安装 npm i @fesjs/builder-webpack 依赖即可。

使用差异

由于 Fes.js 在 Vite 和 Webpack 上做了一层封装,开发者关心的构建配置不会太多。从使用上来说,主要存在以下几个差异点:

配置

Webpack 和 Vite 构建在配置方面有一些差异,具体可以查看配置

静态文件处理

',8),d=e("code",null,"require",-1),p={href:"https://cn.vitejs.dev/guide/assets.html",target:"_blank",rel:"noopener noreferrer"},u=e("h3",{id:"html-模版",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#html-模版","aria-hidden":"true"},"#"),t(" html 模版")],-1),_={href:"https://github.com/jantimon/html-webpack-plugin",target:"_blank",rel:"noopener noreferrer"},b={href:"https://github.com/vbenjs/vite-plugin-html",target:"_blank",rel:"noopener noreferrer"},m=e("div",{class:"custom-container tip"},[e("p",{class:"custom-container-title"},"提示"),e("p",null,[t("fes3.0+ html 模版文件从 "),e("code",null,"public/index.html"),t(" 挪到项目根目录。")])],-1);function f(k,x){const a=i("ExternalLinkIcon");return c(),o("div",null,[h,e("p",null,[t("由于 Vite 的限制,不支持 "),d,t(" 语法,具体 Vite 的用法可以查看"),e("a",p,[t("官网"),r(a)])]),u,e("p",null,[t("html 模版比较常规的需求,例如模版变量,Webpack 和 Vite 之间没什么差异。如果有其他特殊的需求, Webpack 可以使用 "),e("a",_,[t("html-webpack-plugin"),r(a)]),t(",Vite 使用"),e("a",b,[t("vite-plugin-html"),r(a)]),t(" 进行个性化配置。")]),m])}const v=n(l,[["render",f],["__file","builder.html.vue"]]);export{v as default}; diff --git a/assets/cli.html.768b01bb.js b/assets/cli.html.3fb8d311.js similarity index 99% rename from assets/cli.html.768b01bb.js rename to assets/cli.html.3fb8d311.js index 1f6bea50..4fb8d2f7 100644 --- a/assets/cli.html.768b01bb.js +++ b/assets/cli.html.3fb8d311.js @@ -1,4 +1,4 @@ -import{_ as r,r as t,o as p,c as o,b as a,d as e,a as s,w as c,f as i}from"./app.005e0daf.js";const d={},u=a("h1",{id:"命令行接口",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#命令行接口","aria-hidden":"true"},"#"),e(" 命令行接口")],-1),v={href:"https://www.npmjs.com/package/@vuepress/cli",target:"_blank",rel:"noopener noreferrer"},m={href:"https://www.npmjs.com/package/vuepress",target:"_blank",rel:"noopener noreferrer"},b=i(`

执行 vuepress --help 来获取下列帮助信息:

Usage:
+import{_ as r,r as t,o as p,c as o,b as a,d as e,a as s,w as c,f as i}from"./app.136d0839.js";const d={},u=a("h1",{id:"命令行接口",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#命令行接口","aria-hidden":"true"},"#"),e(" 命令行接口")],-1),v={href:"https://www.npmjs.com/package/@vuepress/cli",target:"_blank",rel:"noopener noreferrer"},m={href:"https://www.npmjs.com/package/vuepress",target:"_blank",rel:"noopener noreferrer"},b=i(`

执行 vuepress --help 来获取下列帮助信息:

Usage:
   $ vuepress <command> [options]
 
 Commands:
diff --git a/assets/cli.html.b37682a1.js b/assets/cli.html.dc7874d5.js
similarity index 72%
rename from assets/cli.html.b37682a1.js
rename to assets/cli.html.dc7874d5.js
index fa0231e3..3d8ffaea 100644
--- a/assets/cli.html.b37682a1.js
+++ b/assets/cli.html.dc7874d5.js
@@ -1 +1 @@
-const e=JSON.parse('{"key":"v-a951be94","path":"/reference/cli.html","title":"命令行接口","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"dev","slug":"dev","link":"#dev","children":[]},{"level":2,"title":"build","slug":"build","link":"#build","children":[]},{"level":2,"title":"info","slug":"info","link":"#info","children":[]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/cli.md"}');export{e as data};
+const e=JSON.parse('{"key":"v-a951be94","path":"/reference/cli.html","title":"命令行接口","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"dev","slug":"dev","link":"#dev","children":[]},{"level":2,"title":"build","slug":"build","link":"#build","children":[]},{"level":2,"title":"info","slug":"info","link":"#info","children":[]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/cli.md"}');export{e as data};
diff --git a/assets/config.html.3c4760e9.js b/assets/config.html.0f95fee4.js
similarity index 99%
rename from assets/config.html.3c4760e9.js
rename to assets/config.html.0f95fee4.js
index 3db3cfec..732ce047 100644
--- a/assets/config.html.3c4760e9.js
+++ b/assets/config.html.0f95fee4.js
@@ -1,4 +1,4 @@
-import{_ as n,o as s,c as a,f as e}from"./app.005e0daf.js";const p={},t=e(`

编译时配置

Fes.js 约定 .fes.js 文件为项目编译需要编译时配置文件,可以引入 node 端依赖项,不要引入浏览器端依赖项。

一份常见的配置示例如下(更多配置项请查阅配置):

import { defineBuildConfig } from '@fesjs/fes';
+import{_ as n,o as s,c as a,f as e}from"./app.136d0839.js";const p={},t=e(`

编译时配置

Fes.js 约定 .fes.js 文件为项目编译需要编译时配置文件,可以引入 node 端依赖项,不要引入浏览器端依赖项。

一份常见的配置示例如下(更多配置项请查阅配置):

import { defineBuildConfig } from '@fesjs/fes';
 
 export default defineBuildConfig({
     publicPath: '/',
diff --git a/assets/config.html.5d92a440.js b/assets/config.html.23adbc41.js
similarity index 68%
rename from assets/config.html.5d92a440.js
rename to assets/config.html.23adbc41.js
index 7859de55..24327f14 100644
--- a/assets/config.html.5d92a440.js
+++ b/assets/config.html.23adbc41.js
@@ -1 +1 @@
-const e=JSON.parse('{"key":"v-85fa9b2a","path":"/guide/config.html","title":"编译时配置","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"本地临时配置文件","slug":"本地临时配置文件","link":"#本地临时配置文件","children":[]},{"level":2,"title":"多环境多份配置","slug":"多环境多份配置","link":"#多环境多份配置","children":[]},{"level":2,"title":"优先级","slug":"优先级","link":"#优先级","children":[]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/config.md"}');export{e as data};
+const e=JSON.parse('{"key":"v-85fa9b2a","path":"/guide/config.html","title":"编译时配置","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"本地临时配置文件","slug":"本地临时配置文件","link":"#本地临时配置文件","children":[]},{"level":2,"title":"多环境多份配置","slug":"多环境多份配置","link":"#多环境多份配置","children":[]},{"level":2,"title":"优先级","slug":"优先级","link":"#优先级","children":[]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/config.md"}');export{e as data};
diff --git a/assets/contributing.html.8cad4b5e.js b/assets/contributing.html.64460810.js
similarity index 99%
rename from assets/contributing.html.8cad4b5e.js
rename to assets/contributing.html.64460810.js
index 85a7a95f..f798f921 100644
--- a/assets/contributing.html.8cad4b5e.js
+++ b/assets/contributing.html.64460810.js
@@ -1,4 +1,4 @@
-import{_ as d,r as t,o as i,c as r,b as e,d as a,a as n,f as o}from"./app.005e0daf.js";const c={},l=e("h1",{id:"贡献指南",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#贡献指南","aria-hidden":"true"},"#"),a(" 贡献指南")],-1),p=e("h2",{id:"包概览",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#包概览","aria-hidden":"true"},"#"),a(" 包概览")],-1),h={href:"https://pnpm.io/pnpm-workspace_yaml",target:"_blank",rel:"noopener noreferrer"},u={href:"https://en.wikipedia.org/wiki/Monorepo",target:"_blank",rel:"noopener noreferrer"},m=e("code",null,"packages",-1),f=o('
  • @fesjs/create-fes-app: 创建项目模板模块。提供create-fes-app命令,提供创建多种类型项目模板的能力。

  • @fesjs/compiler: 编译时插件管理模块。定义插件的生命周期、插件配置、插件通讯机制等。

  • @fesjs/runtime: 运行时插件模块。集成了 vue-router,定义运行时插件生命周期、插件通讯机制。

  • @fesjs/preset-build-in: 内置插件集。包含devbuild等命令,集成 webpack5+babel,提供方便编写插件的 API,入口文件处理,路由处理等能力。

  • @fesjs/fes-template: 适用于 PC 类型的模板项目。

  • @fesjs/fes-template-h5: 适用于 H5 类型的模板项目。

  • @fesjs/plugin-${name}: 官方插件。

  • @fesjs/fes: 入口模块。提供fes命令和 API 入口,封装@fesjs/compiler + @fesjs/runtime + @fesjs/preset-build-in,用户只需要安装此依赖和其他插件。

开发准备

开发要求:

',3),b={href:"http://nodejs.org",target:"_blank",rel:"noopener noreferrer"},v={href:"https://pnpm.io/",target:"_blank",rel:"noopener noreferrer"},g=e("p",null,"本项目开发使用的一些主要工具:",-1),_={href:"https://jestjs.io/",target:"_blank",rel:"noopener noreferrer"},k={href:"https://eslint.org/",target:"_blank",rel:"noopener noreferrer"},x={href:"https://prettier.io/",target:"_blank",rel:"noopener noreferrer"},j=o(`

克隆仓库:

git clone https://github.com/WeBankFinTech/fes.js.git
+import{_ as d,r as t,o as i,c as r,b as e,d as a,a as n,f as o}from"./app.136d0839.js";const c={},l=e("h1",{id:"贡献指南",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#贡献指南","aria-hidden":"true"},"#"),a(" 贡献指南")],-1),p=e("h2",{id:"包概览",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#包概览","aria-hidden":"true"},"#"),a(" 包概览")],-1),h={href:"https://pnpm.io/pnpm-workspace_yaml",target:"_blank",rel:"noopener noreferrer"},u={href:"https://en.wikipedia.org/wiki/Monorepo",target:"_blank",rel:"noopener noreferrer"},m=e("code",null,"packages",-1),f=o('
  • @fesjs/create-fes-app: 创建项目模板模块。提供create-fes-app命令,提供创建多种类型项目模板的能力。

  • @fesjs/compiler: 编译时插件管理模块。定义插件的生命周期、插件配置、插件通讯机制等。

  • @fesjs/runtime: 运行时插件模块。集成了 vue-router,定义运行时插件生命周期、插件通讯机制。

  • @fesjs/preset-build-in: 内置插件集。包含devbuild等命令,集成 webpack5+babel,提供方便编写插件的 API,入口文件处理,路由处理等能力。

  • @fesjs/fes-template: 适用于 PC 类型的模板项目。

  • @fesjs/fes-template-h5: 适用于 H5 类型的模板项目。

  • @fesjs/plugin-${name}: 官方插件。

  • @fesjs/fes: 入口模块。提供fes命令和 API 入口,封装@fesjs/compiler + @fesjs/runtime + @fesjs/preset-build-in,用户只需要安装此依赖和其他插件。

开发准备

开发要求:

',3),b={href:"http://nodejs.org",target:"_blank",rel:"noopener noreferrer"},v={href:"https://pnpm.io/",target:"_blank",rel:"noopener noreferrer"},g=e("p",null,"本项目开发使用的一些主要工具:",-1),_={href:"https://jestjs.io/",target:"_blank",rel:"noopener noreferrer"},k={href:"https://eslint.org/",target:"_blank",rel:"noopener noreferrer"},x={href:"https://prettier.io/",target:"_blank",rel:"noopener noreferrer"},j=o(`

克隆仓库:

git clone https://github.com/WeBankFinTech/fes.js.git
 

进入fes.js目录,安装依赖:

pnpm i
 

贡献文档

`,5),w=e("code",null,"docs",-1),q={href:"https://v2.vuepress.vuejs.org/zh/",target:"_blank",rel:"noopener noreferrer"},P=o(`

第一步:启动服务

pnpm docs:dev
 

第二步:修改 md 文件

菜单配置在/docs/.vuepress/configs/sidebar/zh.ts中,可以通过此配置找到对应想修改的文档。

如果想添加图片,则可以先把图片添加至/docs/.vuepress/public,在代码中使用:

<img :src="$withBase('framework.png')" alt="架构" />
diff --git a/assets/contributing.html.24d74808.js b/assets/contributing.html.ffe5b610.js
similarity index 73%
rename from assets/contributing.html.24d74808.js
rename to assets/contributing.html.ffe5b610.js
index 9fd28f36..65f73e88 100644
--- a/assets/contributing.html.24d74808.js
+++ b/assets/contributing.html.ffe5b610.js
@@ -1 +1 @@
-const e=JSON.parse('{"key":"v-d7fa887a","path":"/guide/contributing.html","title":"贡献指南","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"包概览","slug":"包概览","link":"#包概览","children":[]},{"level":2,"title":"开发准备","slug":"开发准备","link":"#开发准备","children":[]},{"level":2,"title":"贡献文档","slug":"贡献文档","link":"#贡献文档","children":[]},{"level":2,"title":"贡献源码","slug":"贡献源码","link":"#贡献源码","children":[]},{"level":2,"title":"提交 PR","slug":"提交-pr","link":"#提交-pr","children":[]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/contributing.md"}');export{e as data};
+const e=JSON.parse('{"key":"v-d7fa887a","path":"/guide/contributing.html","title":"贡献指南","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"包概览","slug":"包概览","link":"#包概览","children":[]},{"level":2,"title":"开发准备","slug":"开发准备","link":"#开发准备","children":[]},{"level":2,"title":"贡献文档","slug":"贡献文档","link":"#贡献文档","children":[]},{"level":2,"title":"贡献源码","slug":"贡献源码","link":"#贡献源码","children":[]},{"level":2,"title":"提交 PR","slug":"提交-pr","link":"#提交-pr","children":[]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/contributing.md"}');export{e as data};
diff --git a/assets/css.html.3990f0c1.js b/assets/css.html.01ba51a1.js
similarity index 77%
rename from assets/css.html.3990f0c1.js
rename to assets/css.html.01ba51a1.js
index 20291781..80ed14ac 100644
--- a/assets/css.html.3990f0c1.js
+++ b/assets/css.html.01ba51a1.js
@@ -1 +1 @@
-const e=JSON.parse('{"key":"v-884fd4bc","path":"/guide/css.html","title":"使用 css","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"全局样式","slug":"全局样式","link":"#全局样式","children":[]},{"level":2,"title":"组件内样式","slug":"组件内样式","link":"#组件内样式","children":[]},{"level":2,"title":"引入第三方样式","slug":"引入第三方样式","link":"#引入第三方样式","children":[]},{"level":2,"title":"CSS Modules","slug":"css-modules","link":"#css-modules","children":[]},{"level":2,"title":"CSS 预处理器","slug":"css-预处理器","link":"#css-预处理器","children":[]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/css.md"}');export{e as data};
+const e=JSON.parse('{"key":"v-884fd4bc","path":"/guide/css.html","title":"使用 css","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"全局样式","slug":"全局样式","link":"#全局样式","children":[]},{"level":2,"title":"组件内样式","slug":"组件内样式","link":"#组件内样式","children":[]},{"level":2,"title":"引入第三方样式","slug":"引入第三方样式","link":"#引入第三方样式","children":[]},{"level":2,"title":"CSS Modules","slug":"css-modules","link":"#css-modules","children":[]},{"level":2,"title":"CSS 预处理器","slug":"css-预处理器","link":"#css-预处理器","children":[]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/css.md"}');export{e as data};
diff --git a/assets/css.html.a45df14e.js b/assets/css.html.f84ebf1b.js
similarity index 98%
rename from assets/css.html.a45df14e.js
rename to assets/css.html.f84ebf1b.js
index c4b901ed..683d2ff8 100644
--- a/assets/css.html.a45df14e.js
+++ b/assets/css.html.f84ebf1b.js
@@ -1,4 +1,4 @@
-import{_ as t,r as c,o,c as d,b as a,d as s,a as i,f as n}from"./app.005e0daf.js";const l={},p=n(`

使用 css

提示

本文档以 css 为示例,把后缀换成 .less 同样适用。

全局样式

Fes.js 中约定 src/global.css 为全局样式,如果存在此文件,会被自动引入到入口文件最前面。

比如用于覆盖样式,

.layout-content {
+import{_ as t,r as c,o,c as d,b as a,d as s,a as i,f as n}from"./app.136d0839.js";const l={},p=n(`

使用 css

提示

本文档以 css 为示例,把后缀换成 .less 同样适用。

全局样式

Fes.js 中约定 src/global.css 为全局样式,如果存在此文件,会被自动引入到入口文件最前面。

比如用于覆盖样式,

.layout-content {
   max-width: 1000px;
 }
 

组件内样式

<style>
diff --git a/assets/directory-structure.html.15096386.js b/assets/directory-structure.html.648522d5.js
similarity index 99%
rename from assets/directory-structure.html.15096386.js
rename to assets/directory-structure.html.648522d5.js
index d3c197bc..2ebec510 100644
--- a/assets/directory-structure.html.15096386.js
+++ b/assets/directory-structure.html.648522d5.js
@@ -1,4 +1,4 @@
-import{_ as e,r as t,o,c as p,b as n,d as s,a as c,w as i,f as u}from"./app.005e0daf.js";const l={},r=n("h1",{id:"目录结构",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#目录结构","aria-hidden":"true"},"#"),s(" 目录结构")],-1),d=n("code",null,"约定优于配置",-1),k=u(`
fes-template
+import{_ as e,r as t,o,c as p,b as n,d as s,a as c,w as i,f as u}from"./app.136d0839.js";const l={},r=n("h1",{id:"目录结构",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#目录结构","aria-hidden":"true"},"#"),s(" 目录结构")],-1),d=n("code",null,"约定优于配置",-1),k=u(`
fes-template
 ├── package.json
 ├── tsconfig.json
 ├── mock.js
diff --git a/assets/directory-structure.html.4960a3b9.js b/assets/directory-structure.html.a3497558.js
similarity index 87%
rename from assets/directory-structure.html.4960a3b9.js
rename to assets/directory-structure.html.a3497558.js
index f13037ab..9cc8f62c 100644
--- a/assets/directory-structure.html.4960a3b9.js
+++ b/assets/directory-structure.html.a3497558.js
@@ -1 +1 @@
-const e=JSON.parse('{"key":"v-040800dc","path":"/guide/directory-structure.html","title":"目录结构","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":3,"title":"package.json","slug":"package-json","link":"#package-json","children":[]},{"level":3,"title":"tsconfig.json","slug":"tsconfig-json","link":"#tsconfig-json","children":[]},{"level":3,"title":".fes.js","slug":"fes-js","link":"#fes-js","children":[]},{"level":3,"title":"mock.js","slug":"mock-js","link":"#mock-js","children":[]},{"level":3,"title":".env","slug":"env","link":"#env","children":[]},{"level":3,"title":"dist 目录","slug":"dist-目录","link":"#dist-目录","children":[]},{"level":3,"title":"public 目录","slug":"public-目录","link":"#public-目录","children":[]},{"level":3,"title":"index.html","slug":"index-html","link":"#index-html","children":[]},{"level":3,"title":"src 目录","slug":"src-目录","link":"#src-目录","children":[]},{"level":3,"title":".fes 目录","slug":"fes-目录","link":"#fes-目录","children":[]},{"level":3,"title":"pages 目录","slug":"pages-目录","link":"#pages-目录","children":[]},{"level":3,"title":"app.js","slug":"app-js","link":"#app-js","children":[]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/directory-structure.md"}');export{e as data};
+const e=JSON.parse('{"key":"v-040800dc","path":"/guide/directory-structure.html","title":"目录结构","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":3,"title":"package.json","slug":"package-json","link":"#package-json","children":[]},{"level":3,"title":"tsconfig.json","slug":"tsconfig-json","link":"#tsconfig-json","children":[]},{"level":3,"title":".fes.js","slug":"fes-js","link":"#fes-js","children":[]},{"level":3,"title":"mock.js","slug":"mock-js","link":"#mock-js","children":[]},{"level":3,"title":".env","slug":"env","link":"#env","children":[]},{"level":3,"title":"dist 目录","slug":"dist-目录","link":"#dist-目录","children":[]},{"level":3,"title":"public 目录","slug":"public-目录","link":"#public-目录","children":[]},{"level":3,"title":"index.html","slug":"index-html","link":"#index-html","children":[]},{"level":3,"title":"src 目录","slug":"src-目录","link":"#src-目录","children":[]},{"level":3,"title":".fes 目录","slug":"fes-目录","link":"#fes-目录","children":[]},{"level":3,"title":"pages 目录","slug":"pages-目录","link":"#pages-目录","children":[]},{"level":3,"title":"app.js","slug":"app-js","link":"#app-js","children":[]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/directory-structure.md"}');export{e as data};
diff --git a/assets/editor.html.604dae94.js b/assets/editor.html.00d961a1.js
similarity index 99%
rename from assets/editor.html.604dae94.js
rename to assets/editor.html.00d961a1.js
index 83e8068c..63cf3856 100644
--- a/assets/editor.html.604dae94.js
+++ b/assets/editor.html.00d961a1.js
@@ -1,4 +1,4 @@
-import{_ as o,r as p,o as c,c as l,b as s,d as n,a as t,f as e}from"./app.005e0daf.js";const i={},r=s("h1",{id:"fesjs-plugin-monaco-editor",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#fesjs-plugin-monaco-editor","aria-hidden":"true"},"#"),n(" @fesjs/plugin-monaco-editor")],-1),d=s("h2",{id:"介绍",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#介绍","aria-hidden":"true"},"#"),n(" 介绍")],-1),u=s("code",null,"json",-1),k=s("code",null,"javascript",-1),h=s("code",null,"python",-1),v={href:"https://github.com/Microsoft/monaco-editor",target:"_blank",rel:"noopener noreferrer"},m=s("code",null,"Monaco Editor",-1),g=s("code",null,"Monaco Editor",-1),b=s("code",null,"1.9.1",-1),f=e(`

启用方式

package.json 中引入依赖:

{
+import{_ as o,r as p,o as c,c as l,b as s,d as n,a as t,f as e}from"./app.136d0839.js";const i={},r=s("h1",{id:"fesjs-plugin-monaco-editor",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#fesjs-plugin-monaco-editor","aria-hidden":"true"},"#"),n(" @fesjs/plugin-monaco-editor")],-1),d=s("h2",{id:"介绍",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#介绍","aria-hidden":"true"},"#"),n(" 介绍")],-1),u=s("code",null,"json",-1),k=s("code",null,"javascript",-1),h=s("code",null,"python",-1),v={href:"https://github.com/Microsoft/monaco-editor",target:"_blank",rel:"noopener noreferrer"},m=s("code",null,"Monaco Editor",-1),g=s("code",null,"Monaco Editor",-1),b=s("code",null,"1.9.1",-1),f=e(`

启用方式

package.json 中引入依赖:

{
     "dependencies": {
         "@fesjs/fes": "^3.0.0",
         "@fesjs/plugin-monaco-editor": "^3.0.0"
diff --git a/assets/editor.html.2fb88cf1.js b/assets/editor.html.4ada78c1.js
similarity index 83%
rename from assets/editor.html.2fb88cf1.js
rename to assets/editor.html.4ada78c1.js
index b7a6902f..fd7a15c8 100644
--- a/assets/editor.html.2fb88cf1.js
+++ b/assets/editor.html.4ada78c1.js
@@ -1 +1 @@
-const e=JSON.parse('{"key":"v-323bda7e","path":"/reference/plugin/plugins/editor.html","title":"@fesjs/plugin-monaco-editor","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"编译时配置","slug":"编译时配置","link":"#编译时配置","children":[{"level":3,"title":"filename","slug":"filename","link":"#filename","children":[]},{"level":3,"title":"publicPath","slug":"publicpath","link":"#publicpath","children":[]},{"level":3,"title":"languages","slug":"languages","link":"#languages","children":[]}]},{"level":2,"title":"API","slug":"api","link":"#api","children":[{"level":3,"title":"monaco","slug":"monaco","link":"#monaco","children":[]},{"level":3,"title":"组件 MonacoEditor","slug":"组件-monacoeditor","link":"#组件-monacoeditor","children":[]}]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/editor.md"}');export{e as data};
+const e=JSON.parse('{"key":"v-323bda7e","path":"/reference/plugin/plugins/editor.html","title":"@fesjs/plugin-monaco-editor","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"编译时配置","slug":"编译时配置","link":"#编译时配置","children":[{"level":3,"title":"filename","slug":"filename","link":"#filename","children":[]},{"level":3,"title":"publicPath","slug":"publicpath","link":"#publicpath","children":[]},{"level":3,"title":"languages","slug":"languages","link":"#languages","children":[]}]},{"level":2,"title":"API","slug":"api","link":"#api","children":[{"level":3,"title":"monaco","slug":"monaco","link":"#monaco","children":[]},{"level":3,"title":"组件 MonacoEditor","slug":"组件-monacoeditor","link":"#组件-monacoeditor","children":[]}]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/editor.md"}');export{e as data};
diff --git a/assets/enums.html.e894dfd6.js b/assets/enums.html.193a4559.js
similarity index 99%
rename from assets/enums.html.e894dfd6.js
rename to assets/enums.html.193a4559.js
index d3f550a7..bf6bcd43 100644
--- a/assets/enums.html.e894dfd6.js
+++ b/assets/enums.html.193a4559.js
@@ -1,4 +1,4 @@
-import{_ as n,o as s,c as a,f as t}from"./app.005e0daf.js";const p={},e=t(`

@fesjs/plugin-enums

介绍

日常业务开发中,有很多场景会使用到枚举值,比如 select-options、table-column。

该插件提供统一的枚举存取及丰富的函数来处理枚举。

启用方式

package.json 中引入依赖:

{
+import{_ as n,o as s,c as a,f as t}from"./app.136d0839.js";const p={},e=t(`

@fesjs/plugin-enums

介绍

日常业务开发中,有很多场景会使用到枚举值,比如 select-options、table-column。

该插件提供统一的枚举存取及丰富的函数来处理枚举。

启用方式

package.json 中引入依赖:

{
     "dependencies": {
         "@fesjs/fes": "^3.0.0",
         "@fesjs/plugin-enums": "^3.0.0"
diff --git a/assets/enums.html.7c55aefa.js b/assets/enums.html.6fdcc819.js
similarity index 84%
rename from assets/enums.html.7c55aefa.js
rename to assets/enums.html.6fdcc819.js
index 9dad7ba5..929aedec 100644
--- a/assets/enums.html.7c55aefa.js
+++ b/assets/enums.html.6fdcc819.js
@@ -1 +1 @@
-const e=JSON.parse('{"key":"v-c253c956","path":"/reference/plugin/plugins/enums.html","title":"@fesjs/plugin-enums","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"配置","slug":"配置","link":"#配置","children":[{"level":3,"title":"静态配置","slug":"静态配置","link":"#静态配置","children":[]},{"level":3,"title":"动态配置","slug":"动态配置","link":"#动态配置","children":[]}]},{"level":2,"title":"场景使用","slug":"场景使用","link":"#场景使用","children":[]},{"level":2,"title":"API","slug":"api","link":"#api","children":[{"level":3,"title":"get","slug":"get","link":"#get","children":[]},{"level":3,"title":"push","slug":"push","link":"#push","children":[]},{"level":3,"title":"remove","slug":"remove","link":"#remove","children":[]},{"level":3,"title":"concat","slug":"concat","link":"#concat","children":[]},{"level":3,"title":"convert","slug":"convert","link":"#convert","children":[]},{"level":3,"title":"extend 配置","slug":"extend-配置","link":"#extend-配置","children":[]},{"level":3,"title":"dir 规则","slug":"dir-规则","link":"#dir-规则","children":[]}]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/enums.md"}');export{e as data};
+const e=JSON.parse('{"key":"v-c253c956","path":"/reference/plugin/plugins/enums.html","title":"@fesjs/plugin-enums","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"配置","slug":"配置","link":"#配置","children":[{"level":3,"title":"静态配置","slug":"静态配置","link":"#静态配置","children":[]},{"level":3,"title":"动态配置","slug":"动态配置","link":"#动态配置","children":[]}]},{"level":2,"title":"场景使用","slug":"场景使用","link":"#场景使用","children":[]},{"level":2,"title":"API","slug":"api","link":"#api","children":[{"level":3,"title":"get","slug":"get","link":"#get","children":[]},{"level":3,"title":"push","slug":"push","link":"#push","children":[]},{"level":3,"title":"remove","slug":"remove","link":"#remove","children":[]},{"level":3,"title":"concat","slug":"concat","link":"#concat","children":[]},{"level":3,"title":"convert","slug":"convert","link":"#convert","children":[]},{"level":3,"title":"extend 配置","slug":"extend-配置","link":"#extend-配置","children":[]},{"level":3,"title":"dir 规则","slug":"dir-规则","link":"#dir-规则","children":[]}]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/enums.md"}');export{e as data};
diff --git a/assets/env.html.805df8a5.js b/assets/env.html.22a8783f.js
similarity index 99%
rename from assets/env.html.805df8a5.js
rename to assets/env.html.22a8783f.js
index 07dac1ab..e6878ea3 100644
--- a/assets/env.html.805df8a5.js
+++ b/assets/env.html.22a8783f.js
@@ -1,4 +1,4 @@
-import{_ as o,r as n,o as l,c as p,b as e,d as a,a as s,w as d,f as r}from"./app.005e0daf.js";const h={},u=r(`

环境变量

在构建或者代码在端上运行中需要一些跟区分于环境的变量,用于配置构建流程或者运行时过程,这时候我们可以配置环境变量。

配置环境变量

命令行添加

比如:

# OS X, Linux
+import{_ as o,r as n,o as l,c as p,b as e,d as a,a as s,w as d,f as r}from"./app.136d0839.js";const h={},u=r(`

环境变量

在构建或者代码在端上运行中需要一些跟区分于环境的变量,用于配置构建流程或者运行时过程,这时候我们可以配置环境变量。

配置环境变量

命令行添加

比如:

# OS X, Linux
 PORT=3000 fes dev
 
 # Windows (cmd.exe)
diff --git a/assets/env.html.35aa0f1a.js b/assets/env.html.f0883984.js
similarity index 89%
rename from assets/env.html.35aa0f1a.js
rename to assets/env.html.f0883984.js
index 1a67118a..4efd9146 100644
--- a/assets/env.html.35aa0f1a.js
+++ b/assets/env.html.f0883984.js
@@ -1 +1 @@
-const e=JSON.parse('{"key":"v-ef8c5e10","path":"/guide/env.html","title":"环境变量","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"配置环境变量","slug":"配置环境变量","link":"#配置环境变量","children":[{"level":3,"title":"命令行添加","slug":"命令行添加","link":"#命令行添加","children":[]},{"level":3,"title":".env 文件配置","slug":"env-文件配置","link":"#env-文件配置","children":[]}]},{"level":2,"title":"编译时配置列表","slug":"编译时配置列表","link":"#编译时配置列表","children":[{"level":3,"title":"FES_ENV","slug":"fes-env","link":"#fes-env","children":[]},{"level":3,"title":"FES_PRESETS","slug":"fes-presets","link":"#fes-presets","children":[]},{"level":3,"title":"FES_PLUGINS","slug":"fes-plugins","link":"#fes-plugins","children":[]},{"level":3,"title":"PORT","slug":"port","link":"#port","children":[]},{"level":3,"title":"HOST","slug":"host","link":"#host","children":[]},{"level":3,"title":"HTTPS","slug":"https","link":"#https","children":[]},{"level":3,"title":"WATCH","slug":"watch","link":"#watch","children":[]},{"level":3,"title":"BABEL_CACHE","slug":"babel-cache","link":"#babel-cache","children":[]},{"level":3,"title":"ANALYZE","slug":"analyze","link":"#analyze","children":[]},{"level":3,"title":"ANALYZE_MODE","slug":"analyze-mode","link":"#analyze-mode","children":[]},{"level":3,"title":"ANALYZE_PORT","slug":"analyze-port","link":"#analyze-port","children":[]},{"level":3,"title":"CLEAR_OUTPUT","slug":"clear-output","link":"#clear-output","children":[]},{"level":3,"title":"RM_TMPDIR","slug":"rm-tmpdir","link":"#rm-tmpdir","children":[]}]},{"level":2,"title":"p​rocess.env","slug":"process-env","link":"#process-env","children":[]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/env.md"}');export{e as data};
+const e=JSON.parse('{"key":"v-ef8c5e10","path":"/guide/env.html","title":"环境变量","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"配置环境变量","slug":"配置环境变量","link":"#配置环境变量","children":[{"level":3,"title":"命令行添加","slug":"命令行添加","link":"#命令行添加","children":[]},{"level":3,"title":".env 文件配置","slug":"env-文件配置","link":"#env-文件配置","children":[]}]},{"level":2,"title":"编译时配置列表","slug":"编译时配置列表","link":"#编译时配置列表","children":[{"level":3,"title":"FES_ENV","slug":"fes-env","link":"#fes-env","children":[]},{"level":3,"title":"FES_PRESETS","slug":"fes-presets","link":"#fes-presets","children":[]},{"level":3,"title":"FES_PLUGINS","slug":"fes-plugins","link":"#fes-plugins","children":[]},{"level":3,"title":"PORT","slug":"port","link":"#port","children":[]},{"level":3,"title":"HOST","slug":"host","link":"#host","children":[]},{"level":3,"title":"HTTPS","slug":"https","link":"#https","children":[]},{"level":3,"title":"WATCH","slug":"watch","link":"#watch","children":[]},{"level":3,"title":"BABEL_CACHE","slug":"babel-cache","link":"#babel-cache","children":[]},{"level":3,"title":"ANALYZE","slug":"analyze","link":"#analyze","children":[]},{"level":3,"title":"ANALYZE_MODE","slug":"analyze-mode","link":"#analyze-mode","children":[]},{"level":3,"title":"ANALYZE_PORT","slug":"analyze-port","link":"#analyze-port","children":[]},{"level":3,"title":"CLEAR_OUTPUT","slug":"clear-output","link":"#clear-output","children":[]},{"level":3,"title":"RM_TMPDIR","slug":"rm-tmpdir","link":"#rm-tmpdir","children":[]}]},{"level":2,"title":"p​rocess.env","slug":"process-env","link":"#process-env","children":[]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/env.md"}');export{e as data};
diff --git a/assets/faq.html.f70ba546.js b/assets/faq.html.19ca02b3.js
similarity index 93%
rename from assets/faq.html.f70ba546.js
rename to assets/faq.html.19ca02b3.js
index 2c893579..77980c1d 100644
--- a/assets/faq.html.f70ba546.js
+++ b/assets/faq.html.19ca02b3.js
@@ -1,3 +1,3 @@
-import{_ as e,o as t,c as a,f as o}from"./app.005e0daf.js";const c={},d=o(`

常见问题

为什么代码提示不生效?

  1. 需要先运行一次fes dev
  2. 检查tsconfig.json,include包含当前编辑文件,compilerOptions.path包含
"@/*": ["./src/*"],
+import{_ as e,o as t,c as a,f as o}from"./app.136d0839.js";const c={},d=o(`

常见问题

为什么代码提示不生效?

  1. 需要先运行一次fes dev
  2. 检查tsconfig.json,include包含当前编辑文件,compilerOptions.path包含
"@/*": ["./src/*"],
 "@@/*": ["./src/.fes/*"]
 
`,4),i=[d];function s(n,r){return t(),a("div",null,i)}const u=e(c,[["render",s],["__file","faq.html.vue"]]);export{u as default}; diff --git a/assets/faq.html.1e599082.js b/assets/faq.html.1e599082.js deleted file mode 100644 index 1e0d43b9..00000000 --- a/assets/faq.html.1e599082.js +++ /dev/null @@ -1 +0,0 @@ -const e=JSON.parse('{"key":"v-37e1c06f","path":"/guide/faq.html","title":"常见问题","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/faq.md"}');export{e as data}; diff --git a/assets/faq.html.297bbbdd.js b/assets/faq.html.297bbbdd.js new file mode 100644 index 00000000..e2abd0ed --- /dev/null +++ b/assets/faq.html.297bbbdd.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-37e1c06f","path":"/guide/faq.html","title":"常见问题","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/faq.md"}');export{e as data}; diff --git a/assets/getting-started.html.8eca842e.js b/assets/getting-started.html.75327633.js similarity index 80% rename from assets/getting-started.html.8eca842e.js rename to assets/getting-started.html.75327633.js index 1b44ef15..3364d939 100644 --- a/assets/getting-started.html.8eca842e.js +++ b/assets/getting-started.html.75327633.js @@ -1 +1 @@ -const e=JSON.parse('{"key":"v-fb0f0066","path":"/guide/getting-started.html","title":"快速上手","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"依赖环境","slug":"依赖环境","link":"#依赖环境","children":[]},{"level":2,"title":"创建项目","slug":"创建项目","link":"#创建项目","children":[]},{"level":2,"title":"启动项目","slug":"启动项目","link":"#启动项目","children":[]},{"level":2,"title":"部署发布","slug":"部署发布","link":"#部署发布","children":[{"level":3,"title":"构建","slug":"构建","link":"#构建","children":[]},{"level":3,"title":"本地验证","slug":"本地验证","link":"#本地验证","children":[]},{"level":3,"title":"部署","slug":"部署","link":"#部署","children":[]}]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/getting-started.md"}');export{e as data}; +const e=JSON.parse('{"key":"v-fb0f0066","path":"/guide/getting-started.html","title":"快速上手","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"依赖环境","slug":"依赖环境","link":"#依赖环境","children":[]},{"level":2,"title":"创建项目","slug":"创建项目","link":"#创建项目","children":[]},{"level":2,"title":"启动项目","slug":"启动项目","link":"#启动项目","children":[]},{"level":2,"title":"部署发布","slug":"部署发布","link":"#部署发布","children":[{"level":3,"title":"构建","slug":"构建","link":"#构建","children":[]},{"level":3,"title":"本地验证","slug":"本地验证","link":"#本地验证","children":[]},{"level":3,"title":"部署","slug":"部署","link":"#部署","children":[]}]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/getting-started.md"}');export{e as data}; diff --git a/assets/getting-started.html.3b600666.js b/assets/getting-started.html.8fe3ee18.js similarity index 99% rename from assets/getting-started.html.3b600666.js rename to assets/getting-started.html.8fe3ee18.js index 2ee606b7..825ff899 100644 --- a/assets/getting-started.html.3b600666.js +++ b/assets/getting-started.html.8fe3ee18.js @@ -1,4 +1,4 @@ -import{_ as o,r as t,o as u,c as m,b as e,d as n,a as s,w as a,f as r}from"./app.005e0daf.js";const p={},h=e("h1",{id:"快速上手",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#快速上手","aria-hidden":"true"},"#"),n(" 快速上手")],-1),b=e("h2",{id:"依赖环境",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#依赖环境","aria-hidden":"true"},"#"),n(" 依赖环境")],-1),v={href:"https://nodejs.org/",target:"_blank",rel:"noopener noreferrer"},_=r(`
# 打印 node 版本
+import{_ as o,r as t,o as u,c as m,b as e,d as n,a as s,w as a,f as r}from"./app.136d0839.js";const p={},h=e("h1",{id:"快速上手",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#快速上手","aria-hidden":"true"},"#"),n(" 快速上手")],-1),b=e("h2",{id:"依赖环境",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#依赖环境","aria-hidden":"true"},"#"),n(" 依赖环境")],-1),v={href:"https://nodejs.org/",target:"_blank",rel:"noopener noreferrer"},_=r(`
# 打印 node 版本
 node -v
 v12.13.0
 
`,1),k={href:"https://pnpm.io/installation",target:"_blank",rel:"noopener noreferrer"},g=r(`
# 全局安装 pnpm
diff --git a/assets/icon.html.d2dc60da.js b/assets/icon.html.09ccd8f7.js
similarity index 75%
rename from assets/icon.html.d2dc60da.js
rename to assets/icon.html.09ccd8f7.js
index 4731aab9..dd246b5d 100644
--- a/assets/icon.html.d2dc60da.js
+++ b/assets/icon.html.09ccd8f7.js
@@ -1 +1 @@
-const e=JSON.parse('{"key":"v-0a0e491c","path":"/reference/plugin/plugins/icon.html","title":"@fesjs/plugin-icon","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[{"level":3,"title":"属性","slug":"属性","link":"#属性","children":[]}]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/icon.md"}');export{e as data};
+const e=JSON.parse('{"key":"v-0a0e491c","path":"/reference/plugin/plugins/icon.html","title":"@fesjs/plugin-icon","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[{"level":3,"title":"属性","slug":"属性","link":"#属性","children":[]}]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/icon.md"}');export{e as data};
diff --git a/assets/icon.html.c524fb7f.js b/assets/icon.html.4241b668.js
similarity index 98%
rename from assets/icon.html.c524fb7f.js
rename to assets/icon.html.4241b668.js
index fd4acbfc..932626ea 100644
--- a/assets/icon.html.c524fb7f.js
+++ b/assets/icon.html.4241b668.js
@@ -1,4 +1,4 @@
-import{_ as t,o as e,c as n,f as a}from"./app.005e0daf.js";const s={},o=a(`

@fesjs/plugin-icon

介绍

提供以 component 的方式,直接使用 svg icon 的能力。

启用方式

package.json 中引入依赖:

{
+import{_ as t,o as e,c as n,f as a}from"./app.136d0839.js";const s={},o=a(`

@fesjs/plugin-icon

介绍

提供以 component 的方式,直接使用 svg icon 的能力。

启用方式

package.json 中引入依赖:

{
     "dependencies": {
         "@fesjs/fes": "^3.0.0",
         "@fesjs/plugin-icon": "^3.0.0"
diff --git a/assets/image.html.20b52f7d.js b/assets/image.html.79a8b9cd.js
similarity index 85%
rename from assets/image.html.20b52f7d.js
rename to assets/image.html.79a8b9cd.js
index 72b2e4f2..6e705b31 100644
--- a/assets/image.html.20b52f7d.js
+++ b/assets/image.html.79a8b9cd.js
@@ -1 +1 @@
-const e=JSON.parse('{"key":"v-528b8b6c","path":"/guide/image.html","title":"使用图片","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"使用图片","slug":"使用图片-1","link":"#使用图片-1","children":[{"level":3,"title":"Vue 里使用图片","slug":"vue-里使用图片","link":"#vue-里使用图片","children":[]},{"level":3,"title":"JS 里使用图片","slug":"js-里使用图片","link":"#js-里使用图片","children":[]},{"level":3,"title":"CSS 里使用图片","slug":"css-里使用图片","link":"#css-里使用图片","children":[]}]},{"level":2,"title":"public 文件夹","slug":"public-文件夹","link":"#public-文件夹","children":[{"level":3,"title":"在 HTML 模板中使用","slug":"在-html-模板中使用","link":"#在-html-模板中使用","children":[]},{"level":3,"title":"在.vue 文件中使用","slug":"在-vue-文件中使用","link":"#在-vue-文件中使用","children":[]}]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/image.md"}');export{e as data};
+const e=JSON.parse('{"key":"v-528b8b6c","path":"/guide/image.html","title":"使用图片","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"使用图片","slug":"使用图片-1","link":"#使用图片-1","children":[{"level":3,"title":"Vue 里使用图片","slug":"vue-里使用图片","link":"#vue-里使用图片","children":[]},{"level":3,"title":"JS 里使用图片","slug":"js-里使用图片","link":"#js-里使用图片","children":[]},{"level":3,"title":"CSS 里使用图片","slug":"css-里使用图片","link":"#css-里使用图片","children":[]}]},{"level":2,"title":"public 文件夹","slug":"public-文件夹","link":"#public-文件夹","children":[{"level":3,"title":"在 HTML 模板中使用","slug":"在-html-模板中使用","link":"#在-html-模板中使用","children":[]},{"level":3,"title":"在.vue 文件中使用","slug":"在-vue-文件中使用","link":"#在-vue-文件中使用","children":[]}]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/image.md"}');export{e as data};
diff --git a/assets/image.html.58aa17c7.js b/assets/image.html.a1010faf.js
similarity index 99%
rename from assets/image.html.58aa17c7.js
rename to assets/image.html.a1010faf.js
index c5c344ec..711832cb 100644
--- a/assets/image.html.58aa17c7.js
+++ b/assets/image.html.a1010faf.js
@@ -1,4 +1,4 @@
-import{_ as a,o as n,c as s,f as e}from"./app.005e0daf.js";const t={},p=e(`

使用图片

使用图片

假设在 src/images 目录下有 logo.png

Vue 里使用图片

<template>
+import{_ as a,o as n,c as s,f as e}from"./app.136d0839.js";const t={},p=e(`

使用图片

使用图片

假设在 src/images 目录下有 logo.png

Vue 里使用图片

<template>
     <img src="@/images/logo.png\`" />
 </template>
 

JS 里使用图片

import imageUrl from '@/images/logo.png\`';
diff --git a/assets/index.html.85db73e3.js b/assets/index.html.046ff532.js
similarity index 83%
rename from assets/index.html.85db73e3.js
rename to assets/index.html.046ff532.js
index 8e54ab55..163854f0 100644
--- a/assets/index.html.85db73e3.js
+++ b/assets/index.html.046ff532.js
@@ -1 +1 @@
-const e=JSON.parse('{"key":"v-fffb8e28","path":"/guide/","title":"介绍","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"痛点","slug":"痛点","link":"#痛点","children":[]},{"level":2,"title":"Fes.js 是什么?","slug":"fes-js-是什么","link":"#fes-js-是什么","children":[]},{"level":2,"title":"Fes.js 如何工作?","slug":"fes-js-如何工作","link":"#fes-js-如何工作","children":[{"level":3,"title":"架构","slug":"架构","link":"#架构","children":[]},{"level":3,"title":"插件和插件集","slug":"插件和插件集","link":"#插件和插件集","children":[]},{"level":3,"title":".fes 临时文件","slug":"fes-临时文件","link":"#fes-临时文件","children":[]}]},{"level":2,"title":"为什么不是 ...?","slug":"为什么不是","link":"#为什么不是","children":[{"level":3,"title":"Vue CLI","slug":"vue-cli","link":"#vue-cli","children":[]},{"level":3,"title":"UMI","slug":"umi","link":"#umi","children":[]}]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/README.md"}');export{e as data};
+const e=JSON.parse('{"key":"v-fffb8e28","path":"/guide/","title":"介绍","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"痛点","slug":"痛点","link":"#痛点","children":[]},{"level":2,"title":"Fes.js 是什么?","slug":"fes-js-是什么","link":"#fes-js-是什么","children":[]},{"level":2,"title":"Fes.js 如何工作?","slug":"fes-js-如何工作","link":"#fes-js-如何工作","children":[{"level":3,"title":"架构","slug":"架构","link":"#架构","children":[]},{"level":3,"title":"插件和插件集","slug":"插件和插件集","link":"#插件和插件集","children":[]},{"level":3,"title":".fes 临时文件","slug":"fes-临时文件","link":"#fes-临时文件","children":[]}]},{"level":2,"title":"为什么不是 ...?","slug":"为什么不是","link":"#为什么不是","children":[{"level":3,"title":"Vue CLI","slug":"vue-cli","link":"#vue-cli","children":[]},{"level":3,"title":"UMI","slug":"umi","link":"#umi","children":[]}]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/README.md"}');export{e as data};
diff --git a/assets/index.html.82e50780.js b/assets/index.html.1008b448.js
similarity index 82%
rename from assets/index.html.82e50780.js
rename to assets/index.html.1008b448.js
index 1474f306..ecc7351c 100644
--- a/assets/index.html.82e50780.js
+++ b/assets/index.html.1008b448.js
@@ -1 +1 @@
-const e=JSON.parse('{"key":"v-76cb52e8","path":"/reference/cli/","title":"命令行工具","lang":"zh-CN","frontmatter":{"sidebar":"auto"},"excerpt":"","headers":[{"level":2,"title":"create-fes-app","slug":"create-fes-app","link":"#create-fes-app","children":[]},{"level":2,"title":"fes","slug":"fes","link":"#fes","children":[{"level":3,"title":"fes dev","slug":"fes-dev","link":"#fes-dev","children":[]},{"level":3,"title":"fes build","slug":"fes-build","link":"#fes-build","children":[]},{"level":3,"title":"fes help","slug":"fes-help","link":"#fes-help","children":[]},{"level":3,"title":"fes info","slug":"fes-info","link":"#fes-info","children":[]},{"level":3,"title":"fes webpack","slug":"fes-webpack","link":"#fes-webpack","children":[]}]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/cli/README.md"}');export{e as data};
+const e=JSON.parse('{"key":"v-76cb52e8","path":"/reference/cli/","title":"命令行工具","lang":"zh-CN","frontmatter":{"sidebar":"auto"},"excerpt":"","headers":[{"level":2,"title":"create-fes-app","slug":"create-fes-app","link":"#create-fes-app","children":[]},{"level":2,"title":"fes","slug":"fes","link":"#fes","children":[{"level":3,"title":"fes dev","slug":"fes-dev","link":"#fes-dev","children":[]},{"level":3,"title":"fes build","slug":"fes-build","link":"#fes-build","children":[]},{"level":3,"title":"fes help","slug":"fes-help","link":"#fes-help","children":[]},{"level":3,"title":"fes info","slug":"fes-info","link":"#fes-info","children":[]},{"level":3,"title":"fes webpack","slug":"fes-webpack","link":"#fes-webpack","children":[]}]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/cli/README.md"}');export{e as data};
diff --git a/assets/index.html.bc74ee4c.js b/assets/index.html.41fe35ac.js
similarity index 91%
rename from assets/index.html.bc74ee4c.js
rename to assets/index.html.41fe35ac.js
index 3212fe62..bc7171ef 100644
--- a/assets/index.html.bc74ee4c.js
+++ b/assets/index.html.41fe35ac.js
@@ -1 +1 @@
-const e=JSON.parse('{"key":"v-8daa1a0e","path":"/","title":"首页","lang":"zh-CN","frontmatter":{"home":true,"title":"首页","heroImage":"/logo.png","actions":[{"text":"快速上手","link":"/guide/getting-started.html","type":"primary"},{"text":"项目简介","link":"/guide/","type":"secondary"}],"features":[{"title":"Fast","details":"Fes.js 内置路由、构建、插件管理,提供测试、布局、权限、国际化、状态管理、请求、数据字典、SVG等插件,可以满足大部分日常开发需求。"},{"title":"Easy","details":"基于Vue.js 3.0,上手非常简单。贯彻 “约定优于配置” 思想,在设计插件上尽可能用约定替代配置,依然提供统一的插件配置入口,简单简洁又不失灵活。提供一致性的API入口,一致化的体验,学习起来更轻松。"},{"title":"Strong","details":"仅仅需要关心页面内容,减少犯错的机会!提供单元测试、覆盖测试的能力保障项目质量。"},{"title":"可扩展","details":"借鉴 UMI 实现完整的生命周期和插件化机制,插件可以管理项目的编译时和运行时,能力均可以通过插件封装进来,在 Fes.js 中协调有序的运行。"},{"title":"面向未来","details":"在满足需求的同时,我们也不会停止对新技术的探索。已使用 Vue3.0 来提升应用性能,已使用 webpack5 和 vite 提升构建性能和实现微服务。"},{"title":"令人愉悦","details":"我们的主要重点是开发人员体验。我们喜欢 Fes.js,并且会不断改进框架,所以您也喜欢它!期待有吸引力的解决方案,描述性的错误消息,强大的默认值和详细的文档。如果有问题或疑问,我们有用的社区将为您提供帮助。"}],"footer":"MIT Licensed | Copyright © 2020-present Webank"},"excerpt":"","headers":[{"level":2,"title":"像数 1, 2, 3 一样容易","slug":"像数-1-2-3-一样容易","link":"#像数-1-2-3-一样容易","children":[]},{"level":2,"title":"反馈","slug":"反馈","link":"#反馈","children":[]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"README.md"}');export{e as data};
+const e=JSON.parse('{"key":"v-8daa1a0e","path":"/","title":"首页","lang":"zh-CN","frontmatter":{"home":true,"title":"首页","heroImage":"/logo.png","actions":[{"text":"快速上手","link":"/guide/getting-started.html","type":"primary"},{"text":"项目简介","link":"/guide/","type":"secondary"}],"features":[{"title":"Fast","details":"Fes.js 内置路由、构建、插件管理,提供测试、布局、权限、国际化、状态管理、请求、数据字典、SVG等插件,可以满足大部分日常开发需求。"},{"title":"Easy","details":"基于Vue.js 3.0,上手非常简单。贯彻 “约定优于配置” 思想,在设计插件上尽可能用约定替代配置,依然提供统一的插件配置入口,简单简洁又不失灵活。提供一致性的API入口,一致化的体验,学习起来更轻松。"},{"title":"Strong","details":"仅仅需要关心页面内容,减少犯错的机会!提供单元测试、覆盖测试的能力保障项目质量。"},{"title":"可扩展","details":"借鉴 UMI 实现完整的生命周期和插件化机制,插件可以管理项目的编译时和运行时,能力均可以通过插件封装进来,在 Fes.js 中协调有序的运行。"},{"title":"面向未来","details":"在满足需求的同时,我们也不会停止对新技术的探索。已使用 Vue3.0 来提升应用性能,已使用 webpack5 和 vite 提升构建性能和实现微服务。"},{"title":"令人愉悦","details":"我们的主要重点是开发人员体验。我们喜欢 Fes.js,并且会不断改进框架,所以您也喜欢它!期待有吸引力的解决方案,描述性的错误消息,强大的默认值和详细的文档。如果有问题或疑问,我们有用的社区将为您提供帮助。"}],"footer":"MIT Licensed | Copyright © 2020-present Webank"},"excerpt":"","headers":[{"level":2,"title":"像数 1, 2, 3 一样容易","slug":"像数-1-2-3-一样容易","link":"#像数-1-2-3-一样容易","children":[]},{"level":2,"title":"反馈","slug":"反馈","link":"#反馈","children":[]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"README.md"}');export{e as data};
diff --git a/assets/index.html.d460e0cc.js b/assets/index.html.4d69d8eb.js
similarity index 64%
rename from assets/index.html.d460e0cc.js
rename to assets/index.html.4d69d8eb.js
index 317b4566..ee833bdd 100644
--- a/assets/index.html.d460e0cc.js
+++ b/assets/index.html.4d69d8eb.js
@@ -1 +1 @@
-const e=JSON.parse('{"key":"v-d61a9282","path":"/reference/plugin/","title":"介绍","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"插件列表","slug":"插件列表","link":"#插件列表","children":[]},{"level":2,"title":"架构","slug":"架构","link":"#架构","children":[]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/README.md"}');export{e as data};
+const e=JSON.parse('{"key":"v-d61a9282","path":"/reference/plugin/","title":"介绍","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"插件列表","slug":"插件列表","link":"#插件列表","children":[]},{"level":2,"title":"架构","slug":"架构","link":"#架构","children":[]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/README.md"}');export{e as data};
diff --git a/assets/index.html.5f811d7d.js b/assets/index.html.7fdbe73f.js
similarity index 99%
rename from assets/index.html.5f811d7d.js
rename to assets/index.html.7fdbe73f.js
index d7472f08..b0522f5b 100644
--- a/assets/index.html.5f811d7d.js
+++ b/assets/index.html.7fdbe73f.js
@@ -1,4 +1,4 @@
-import{_ as r,r as d,o as t,c as u,a as s,w as a,f as c,b as e,d as n}from"./app.005e0daf.js";const o={},v=c(`

命令行工具

create-fes-app

通过 create-fes-app 命令创建项目模板,输入create-fes-app -h则可以看到如下信息:

Usage: create-fes-app <name>
+import{_ as r,r as d,o as t,c as u,a as s,w as a,f as c,b as e,d as n}from"./app.136d0839.js";const o={},v=c(`

命令行工具

create-fes-app

通过 create-fes-app 命令创建项目模板,输入create-fes-app -h则可以看到如下信息:

Usage: create-fes-app <name>
 
 Options:
     -v, --version            Output the current version
diff --git a/assets/index.html.174811be.js b/assets/index.html.9c124f68.js
similarity index 98%
rename from assets/index.html.174811be.js
rename to assets/index.html.9c124f68.js
index 475ade34..1ac5be17 100644
--- a/assets/index.html.174811be.js
+++ b/assets/index.html.9c124f68.js
@@ -1,4 +1,4 @@
-import{_ as r,o as d,c as n,e as t,b as e,d as a,f as i}from"./app.005e0daf.js";const l={},h=i('

介绍

痛点

在开发一个前端项目之前,我们可能需要做如下准备工作:

  • 搭建开发环境
  • 约定代码规范
  • 封装API请求
  • 配置路由
  • 实现布局、菜单、导航
  • 实现登录
  • 权限管理
  • ...

除了准备工作之外,还会遇到很多相似的业务类型,比如中后台应用大多都是工作台、增删改查、权限、图表等。如果每次项目都完全手动处理一遍,不仅耗费时间,久而久之可能会存在多种技术栈、开发规范,导致开发流程不统一,历史项目越来越难维护。所以我们需要一套完整的解决方案,管理开发到部署整个流程。

Fes.js 是什么?

Fes.js 是一个好用的前端应用解决方案。Fes.js 以 Vue 3.0 和路由为基础,同时支持配置式路由和约定式路由,并以此进行功能扩展。配以覆盖编译时和运行时生命周期完善的插件体系,支持各种功能扩展和业务需求。

它主要具备以下特点:

  • 🚀 快速 ,内置了路由、开发、构建等,并且提供测试、布局、权限、国际化、状态管理、API请求、数据字典、SvgIcon等插件,可以满足大部分日常开发需求。

  • 🧨 简单 ,基于Vue.js 3.0,上手简单。贯彻“约定优于配置”思想,设计插件上尽可能用约定替代配置,同时提供统一的插件配置入口,简单简洁又不失灵活。提供一致性的API入口,一致化的体验,学习起来更轻松。

  • 💪 健壮 ,只需要关心页面内容,减少写BUG的机会!提供单元测试、覆盖测试能力保障项目质量。

  • 📦 可扩展 ,借鉴Umi实现了完整的生命周期和插件化机制,插件可以管理项目的编译时和运行时,能力均可以通过插件封装进来,在 Fes.js 中协调有序的运行。

  • 📡 面向未来 ,在满足需求的同时,我们也不会停止对新技术的探索。已使用Vue3.0来提升应用性能,已使用webpack5提升构建性能和实现微服务,未来会探索vite等新技术。

Fes.js 如何工作?

架构

',11),c=["src"],o=e("p",null,"Fes.js 把大家常用的技术栈封装成一个个插件进行整理,收敛到一起,让大家只用 Fes.js 就可以完成 80% 的日常工作。",-1),u=e("h3",{id:"插件和插件集",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#插件和插件集","aria-hidden":"true"},"#"),a(" 插件和插件集")],-1),p=["src"],f=i(`

.fes 临时文件

.fes 临时目录是整个 Fes.js 项目的发动机,你的入口文件、路由等等都在这里,这些是由 fes 内部插件及三方插件生成的。

你通常会在 .fes 下看到以下目录

+ .fes
+import{_ as r,o as d,c as n,e as t,b as e,d as a,f as i}from"./app.136d0839.js";const l={},h=i('

介绍

痛点

在开发一个前端项目之前,我们可能需要做如下准备工作:

  • 搭建开发环境
  • 约定代码规范
  • 封装API请求
  • 配置路由
  • 实现布局、菜单、导航
  • 实现登录
  • 权限管理
  • ...

除了准备工作之外,还会遇到很多相似的业务类型,比如中后台应用大多都是工作台、增删改查、权限、图表等。如果每次项目都完全手动处理一遍,不仅耗费时间,久而久之可能会存在多种技术栈、开发规范,导致开发流程不统一,历史项目越来越难维护。所以我们需要一套完整的解决方案,管理开发到部署整个流程。

Fes.js 是什么?

Fes.js 是一个好用的前端应用解决方案。Fes.js 以 Vue 3.0 和路由为基础,同时支持配置式路由和约定式路由,并以此进行功能扩展。配以覆盖编译时和运行时生命周期完善的插件体系,支持各种功能扩展和业务需求。

它主要具备以下特点:

  • 🚀 快速 ,内置了路由、开发、构建等,并且提供测试、布局、权限、国际化、状态管理、API请求、数据字典、SvgIcon等插件,可以满足大部分日常开发需求。

  • 🧨 简单 ,基于Vue.js 3.0,上手简单。贯彻“约定优于配置”思想,设计插件上尽可能用约定替代配置,同时提供统一的插件配置入口,简单简洁又不失灵活。提供一致性的API入口,一致化的体验,学习起来更轻松。

  • 💪 健壮 ,只需要关心页面内容,减少写BUG的机会!提供单元测试、覆盖测试能力保障项目质量。

  • 📦 可扩展 ,借鉴Umi实现了完整的生命周期和插件化机制,插件可以管理项目的编译时和运行时,能力均可以通过插件封装进来,在 Fes.js 中协调有序的运行。

  • 📡 面向未来 ,在满足需求的同时,我们也不会停止对新技术的探索。已使用Vue3.0来提升应用性能,已使用webpack5提升构建性能和实现微服务,未来会探索vite等新技术。

Fes.js 如何工作?

架构

',11),c=["src"],o=e("p",null,"Fes.js 把大家常用的技术栈封装成一个个插件进行整理,收敛到一起,让大家只用 Fes.js 就可以完成 80% 的日常工作。",-1),u=e("h3",{id:"插件和插件集",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#插件和插件集","aria-hidden":"true"},"#"),a(" 插件和插件集")],-1),p=["src"],f=i(`

.fes 临时文件

.fes 临时目录是整个 Fes.js 项目的发动机,你的入口文件、路由等等都在这里,这些是由 fes 内部插件及三方插件生成的。

你通常会在 .fes 下看到以下目录

+ .fes
   + core     # 内部插件生成
   + pluginA  # 外部插件生成
   + presetB  # 外部插件生成
diff --git a/assets/index.html.35cddc8c.js b/assets/index.html.a2c7ff1b.js
similarity index 91%
rename from assets/index.html.35cddc8c.js
rename to assets/index.html.a2c7ff1b.js
index cc97f069..709c22a5 100644
--- a/assets/index.html.35cddc8c.js
+++ b/assets/index.html.a2c7ff1b.js
@@ -1 +1 @@
-const e=JSON.parse('{"key":"v-76cd065c","path":"/reference/api/","title":"API","lang":"zh-CN","frontmatter":{"sidebar":"auto"},"excerpt":"","headers":[{"level":2,"title":"基础API","slug":"基础api","link":"#基础api","children":[{"level":3,"title":"plugin","slug":"plugin","link":"#plugin","children":[]},{"level":3,"title":"ApplyPluginsType","slug":"applypluginstype","link":"#applypluginstype","children":[]},{"level":3,"title":"defineRouteMeta","slug":"defineroutemeta","link":"#defineroutemeta","children":[]},{"level":3,"title":"defineBuildConfig","slug":"definebuildconfig","link":"#definebuildconfig","children":[]},{"level":3,"title":"defineRuntimeConfig","slug":"defineruntimeconfig","link":"#defineruntimeconfig","children":[]}]},{"level":2,"title":"路由API","slug":"路由api","link":"#路由api","children":[{"level":3,"title":"getRouter","slug":"getrouter","link":"#getrouter","children":[]},{"level":3,"title":"getHistory","slug":"gethistory","link":"#gethistory","children":[]},{"level":3,"title":"useRoute","slug":"useroute","link":"#useroute","children":[]},{"level":3,"title":"useRouter","slug":"userouter","link":"#userouter","children":[]},{"level":3,"title":"onBeforeRouteUpdate","slug":"onbeforerouteupdate","link":"#onbeforerouteupdate","children":[]},{"level":3,"title":"onBeforeRouteLeave","slug":"onbeforerouteleave","link":"#onbeforerouteleave","children":[]},{"level":3,"title":"createWebHashHistory","slug":"createwebhashhistory","link":"#createwebhashhistory","children":[]},{"level":3,"title":"createWebHistory","slug":"createwebhistory","link":"#createwebhistory","children":[]},{"level":3,"title":"createMemoryHistory","slug":"creatememoryhistory","link":"#creatememoryhistory","children":[]},{"level":3,"title":"createRouter","slug":"createrouter","link":"#createrouter","children":[]},{"level":3,"title":"RouterLink","slug":"routerlink","link":"#routerlink","children":[]},{"level":3,"title":"useLink","slug":"uselink","link":"#uselink","children":[]},{"level":3,"title":"RouterView","slug":"routerview","link":"#routerview","children":[]},{"level":3,"title":"其他 Router Methods","slug":"其他-router-methods","link":"#其他-router-methods","children":[]}]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/api/README.md"}');export{e as data};
+const e=JSON.parse('{"key":"v-76cd065c","path":"/reference/api/","title":"API","lang":"zh-CN","frontmatter":{"sidebar":"auto"},"excerpt":"","headers":[{"level":2,"title":"基础API","slug":"基础api","link":"#基础api","children":[{"level":3,"title":"plugin","slug":"plugin","link":"#plugin","children":[]},{"level":3,"title":"ApplyPluginsType","slug":"applypluginstype","link":"#applypluginstype","children":[]},{"level":3,"title":"defineRouteMeta","slug":"defineroutemeta","link":"#defineroutemeta","children":[]},{"level":3,"title":"defineBuildConfig","slug":"definebuildconfig","link":"#definebuildconfig","children":[]},{"level":3,"title":"defineRuntimeConfig","slug":"defineruntimeconfig","link":"#defineruntimeconfig","children":[]}]},{"level":2,"title":"路由API","slug":"路由api","link":"#路由api","children":[{"level":3,"title":"getRouter","slug":"getrouter","link":"#getrouter","children":[]},{"level":3,"title":"getHistory","slug":"gethistory","link":"#gethistory","children":[]},{"level":3,"title":"useRoute","slug":"useroute","link":"#useroute","children":[]},{"level":3,"title":"useRouter","slug":"userouter","link":"#userouter","children":[]},{"level":3,"title":"onBeforeRouteUpdate","slug":"onbeforerouteupdate","link":"#onbeforerouteupdate","children":[]},{"level":3,"title":"onBeforeRouteLeave","slug":"onbeforerouteleave","link":"#onbeforerouteleave","children":[]},{"level":3,"title":"createWebHashHistory","slug":"createwebhashhistory","link":"#createwebhashhistory","children":[]},{"level":3,"title":"createWebHistory","slug":"createwebhistory","link":"#createwebhistory","children":[]},{"level":3,"title":"createMemoryHistory","slug":"creatememoryhistory","link":"#creatememoryhistory","children":[]},{"level":3,"title":"createRouter","slug":"createrouter","link":"#createrouter","children":[]},{"level":3,"title":"RouterLink","slug":"routerlink","link":"#routerlink","children":[]},{"level":3,"title":"useLink","slug":"uselink","link":"#uselink","children":[]},{"level":3,"title":"RouterView","slug":"routerview","link":"#routerview","children":[]},{"level":3,"title":"其他 Router Methods","slug":"其他-router-methods","link":"#其他-router-methods","children":[]}]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/api/README.md"}');export{e as data};
diff --git a/assets/index.html.7417ac5c.js b/assets/index.html.a83808da.js
similarity index 98%
rename from assets/index.html.7417ac5c.js
rename to assets/index.html.a83808da.js
index cd6713d2..ce02f9de 100644
--- a/assets/index.html.7417ac5c.js
+++ b/assets/index.html.a83808da.js
@@ -1 +1 @@
-import{_ as d,r as i,o,c as r,b as l,a as t,w as s,d as e,e as c}from"./app.005e0daf.js";const a={},_=l("h1",{id:"介绍",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#介绍","aria-hidden":"true"},"#"),e(" 介绍")],-1),h=l("h2",{id:"插件列表",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#插件列表","aria-hidden":"true"},"#"),e(" 插件列表")],-1),f=l("thead",null,[l("tr",null,[l("th",null,"插件"),l("th",null,"介绍")])],-1),p=l("td",null,"提供对页面资源的权限控制能力",-1),g=l("td",null,"提供统一的枚举存取及丰富的函数来处理枚举",-1),m=l("td",null,"svg 文件自动注册为组件",-1),j=l("td",null,[e("基于 "),l("code",null,"Jest"),e(",提供单元测试、覆盖测试能力")],-1),w=l("td",null,"简单的配置即可拥有布局,包括导航以及侧边栏",-1),x=l("td",null,[e("基于 "),l("code",null,"Vue I18n"),e(",提供国际化能力")],-1),k=l("td",null,"简易的数据管理方案",-1),V=l("td",null,[e("基于 "),l("code",null,"Axios"),e(" 封装的 request,内置防止重复请求、请求节流、错误处理等功能")],-1),b=l("td",null,[e("基于 "),l("code",null,"Vuex"),e(", 提供状态管理能力")],-1),q=l("td",null,[e("基于 "),l("code",null,"qiankun"),e(",提供微服务能力")],-1),v=l("td",null,"样式支持sass",-1),C=l("td",null,[e("提供代码编辑器能力, 基于"),l("code",null,"monaco-editor"),e("(VS Code使用的代码编辑器)")],-1),B=l("td",null,[e("基于 "),l("code",null,"windicss"),e(",提供原子化 CSS 能力")],-1),N=l("td",null,[e("基于 "),l("code",null,"pinia"),e(",提供状态管理")],-1),y=l("td",null,"水印",-1),S=l("td",null,"swc",-1),F=l("h2",{id:"架构",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#架构","aria-hidden":"true"},"#"),e(" 架构")],-1),L=["src"],R=l("p",null,"Fes.js 把大家常用的技术栈封装成一个个插件进行整理,收敛到一起,让大家只用 Fes.js 就可以完成 80% 的日常工作。",-1);function A(u,E){const n=i("RouterLink");return o(),r("div",null,[_,h,l("table",null,[f,l("tbody",null,[l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/access.html"},{default:s(()=>[e("@fesjs/plugin-access")]),_:1})]),p]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/enums.html"},{default:s(()=>[e("@fesjs/plugin-enums")]),_:1})]),g]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/icon.html"},{default:s(()=>[e("@fesjs/plugin-icon")]),_:1})]),m]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/jest.html"},{default:s(()=>[e("@fesjs/plugin-jest")]),_:1})]),j]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/layout.html"},{default:s(()=>[e("@fesjs/plugin-layout")]),_:1})]),w]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/locale.html"},{default:s(()=>[e("@fesjs/plugin-locale")]),_:1})]),x]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/model.html"},{default:s(()=>[e("@fesjs/plugin-model")]),_:1})]),k]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/request.html"},{default:s(()=>[e("@fesjs/plugin-request")]),_:1})]),V]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/vuex.html"},{default:s(()=>[e("@fesjs/plugin-vuex")]),_:1})]),b]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/qiankun.html"},{default:s(()=>[e("@fesjs/plugin-qiankun")]),_:1})]),q]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/sass.html"},{default:s(()=>[e("@fesjs/plugin-sass")]),_:1})]),v]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/editor.html"},{default:s(()=>[e("@fesjs/plugin-monaco-editor")]),_:1})]),C]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/windicss.html"},{default:s(()=>[e("@fesjs/plugin-windicss")]),_:1})]),B]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/pinia.html"},{default:s(()=>[e("@fesjs/plugin-pinia")]),_:1})]),N]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/watermark.html"},{default:s(()=>[e("@fesjs/plugin-watermark")]),_:1})]),y]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/swc.html"},{default:s(()=>[e("@fesjs/plugin-swc")]),_:1})]),S])])]),F,c(' ![架构](/framework.png "架构") '),l("img",{src:u.$withBase("framework.png"),alt:"架构"},null,8,L),R])}const J=d(a,[["render",A],["__file","index.html.vue"]]);export{J as default};
+import{_ as d,r as i,o,c as r,b as l,a as t,w as s,d as e,e as c}from"./app.136d0839.js";const a={},_=l("h1",{id:"介绍",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#介绍","aria-hidden":"true"},"#"),e(" 介绍")],-1),h=l("h2",{id:"插件列表",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#插件列表","aria-hidden":"true"},"#"),e(" 插件列表")],-1),f=l("thead",null,[l("tr",null,[l("th",null,"插件"),l("th",null,"介绍")])],-1),p=l("td",null,"提供对页面资源的权限控制能力",-1),g=l("td",null,"提供统一的枚举存取及丰富的函数来处理枚举",-1),m=l("td",null,"svg 文件自动注册为组件",-1),j=l("td",null,[e("基于 "),l("code",null,"Jest"),e(",提供单元测试、覆盖测试能力")],-1),w=l("td",null,"简单的配置即可拥有布局,包括导航以及侧边栏",-1),x=l("td",null,[e("基于 "),l("code",null,"Vue I18n"),e(",提供国际化能力")],-1),k=l("td",null,"简易的数据管理方案",-1),V=l("td",null,[e("基于 "),l("code",null,"Axios"),e(" 封装的 request,内置防止重复请求、请求节流、错误处理等功能")],-1),b=l("td",null,[e("基于 "),l("code",null,"Vuex"),e(", 提供状态管理能力")],-1),q=l("td",null,[e("基于 "),l("code",null,"qiankun"),e(",提供微服务能力")],-1),v=l("td",null,"样式支持sass",-1),C=l("td",null,[e("提供代码编辑器能力, 基于"),l("code",null,"monaco-editor"),e("(VS Code使用的代码编辑器)")],-1),B=l("td",null,[e("基于 "),l("code",null,"windicss"),e(",提供原子化 CSS 能力")],-1),N=l("td",null,[e("基于 "),l("code",null,"pinia"),e(",提供状态管理")],-1),y=l("td",null,"水印",-1),S=l("td",null,"swc",-1),F=l("h2",{id:"架构",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#架构","aria-hidden":"true"},"#"),e(" 架构")],-1),L=["src"],R=l("p",null,"Fes.js 把大家常用的技术栈封装成一个个插件进行整理,收敛到一起,让大家只用 Fes.js 就可以完成 80% 的日常工作。",-1);function A(u,E){const n=i("RouterLink");return o(),r("div",null,[_,h,l("table",null,[f,l("tbody",null,[l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/access.html"},{default:s(()=>[e("@fesjs/plugin-access")]),_:1})]),p]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/enums.html"},{default:s(()=>[e("@fesjs/plugin-enums")]),_:1})]),g]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/icon.html"},{default:s(()=>[e("@fesjs/plugin-icon")]),_:1})]),m]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/jest.html"},{default:s(()=>[e("@fesjs/plugin-jest")]),_:1})]),j]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/layout.html"},{default:s(()=>[e("@fesjs/plugin-layout")]),_:1})]),w]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/locale.html"},{default:s(()=>[e("@fesjs/plugin-locale")]),_:1})]),x]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/model.html"},{default:s(()=>[e("@fesjs/plugin-model")]),_:1})]),k]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/request.html"},{default:s(()=>[e("@fesjs/plugin-request")]),_:1})]),V]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/vuex.html"},{default:s(()=>[e("@fesjs/plugin-vuex")]),_:1})]),b]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/qiankun.html"},{default:s(()=>[e("@fesjs/plugin-qiankun")]),_:1})]),q]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/sass.html"},{default:s(()=>[e("@fesjs/plugin-sass")]),_:1})]),v]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/editor.html"},{default:s(()=>[e("@fesjs/plugin-monaco-editor")]),_:1})]),C]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/windicss.html"},{default:s(()=>[e("@fesjs/plugin-windicss")]),_:1})]),B]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/pinia.html"},{default:s(()=>[e("@fesjs/plugin-pinia")]),_:1})]),N]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/watermark.html"},{default:s(()=>[e("@fesjs/plugin-watermark")]),_:1})]),y]),l("tr",null,[l("td",null,[t(n,{to:"/reference/plugin/plugins/swc.html"},{default:s(()=>[e("@fesjs/plugin-swc")]),_:1})]),S])])]),F,c(' ![架构](/framework.png "架构") '),l("img",{src:u.$withBase("framework.png"),alt:"架构"},null,8,L),R])}const J=d(a,[["render",A],["__file","index.html.vue"]]);export{J as default};
diff --git a/assets/index.html.7e2b22df.js b/assets/index.html.b9b03365.js
similarity index 99%
rename from assets/index.html.7e2b22df.js
rename to assets/index.html.b9b03365.js
index 1143c9b3..48cdb489 100644
--- a/assets/index.html.7e2b22df.js
+++ b/assets/index.html.b9b03365.js
@@ -1,4 +1,4 @@
-import{_ as a,o as n,c as s,f as e}from"./app.005e0daf.js";const p={},i=e(`

插件介绍

开始

一个插件是一个 npm 包,它能够为 Fes.js 创建的项目添加额外的功能,这些功能包括:

  • 项目的 webpack 配置。
  • 修改项目的 babel 配置。
  • 添加新的 fes 命令 - 例如 @fes/plugin-jest 添加了 fes test 命令,允许开发者运行单元测试。
  • 集成 Vue 的插件。
  • 修改路由配置
  • 提供运行时 API
  • ...

插件的入口是一个函数,函数会以 API 对象作为第一个参数:

export default (api) => {
+import{_ as a,o as n,c as s,f as e}from"./app.136d0839.js";const p={},i=e(`

插件介绍

开始

一个插件是一个 npm 包,它能够为 Fes.js 创建的项目添加额外的功能,这些功能包括:

  • 项目的 webpack 配置。
  • 修改项目的 babel 配置。
  • 添加新的 fes 命令 - 例如 @fes/plugin-jest 添加了 fes test 命令,允许开发者运行单元测试。
  • 集成 Vue 的插件。
  • 修改路由配置
  • 提供运行时 API
  • ...

插件的入口是一个函数,函数会以 API 对象作为第一个参数:

export default (api) => {
     api.describe({
         key: 'esbuild',
         config: {
diff --git a/assets/index.html.1f2b7059.js b/assets/index.html.c40cc049.js
similarity index 97%
rename from assets/index.html.1f2b7059.js
rename to assets/index.html.c40cc049.js
index 2d0ec1a4..a267aae0 100644
--- a/assets/index.html.1f2b7059.js
+++ b/assets/index.html.c40cc049.js
@@ -1,4 +1,4 @@
-import{_ as i,r as a,o as r,c as d,a as s,w as t,b as e,d as n}from"./app.005e0daf.js";const u={},m=e("h2",{id:"像数-1-2-3-一样容易",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#像数-1-2-3-一样容易","aria-hidden":"true"},"#"),n(" 像数 1, 2, 3 一样容易")],-1),p=e("div",{class:"language-bash line-numbers-mode","data-ext":"sh"},[e("pre",{class:"language-bash"},[e("code",null,[e("span",{class:"token comment"},"# 创建模板"),n(`
+import{_ as i,r as a,o as r,c as d,a as s,w as t,b as e,d as n}from"./app.136d0839.js";const u={},m=e("h2",{id:"像数-1-2-3-一样容易",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#像数-1-2-3-一样容易","aria-hidden":"true"},"#"),n(" 像数 1, 2, 3 一样容易")],-1),p=e("div",{class:"language-bash line-numbers-mode","data-ext":"sh"},[e("pre",{class:"language-bash"},[e("code",null,[e("span",{class:"token comment"},"# 创建模板"),n(`
 `),e("span",{class:"token function"},"pnpm"),n(` create @fesjs/fes-app myapp
 
 `),e("span",{class:"token comment"},"# 安装依赖"),n(`
diff --git a/assets/index.html.74321f46.js b/assets/index.html.d14f5124.js
similarity index 57%
rename from assets/index.html.74321f46.js
rename to assets/index.html.d14f5124.js
index 842d2c27..28e6bbd7 100644
--- a/assets/index.html.74321f46.js
+++ b/assets/index.html.d14f5124.js
@@ -1 +1 @@
-const e=JSON.parse('{"key":"v-2c05b6e0","path":"/reference/config/","title":"","lang":"zh-CN","frontmatter":{"sidebar":"auto"},"excerpt":"","headers":[{"level":2,"title":"配置文件","slug":"配置文件","link":"#配置文件","children":[{"level":3,"title":"配置文件解析","slug":"配置文件解析","link":"#配置文件解析","children":[]},{"level":3,"title":"配置智能提示","slug":"配置智能提示","link":"#配置智能提示","children":[]}]},{"level":2,"title":"共享配置","slug":"共享配置","link":"#共享配置","children":[{"level":3,"title":"alias","slug":"alias","link":"#alias","children":[]},{"level":3,"title":"autoprefixer","slug":"autoprefixer","link":"#autoprefixer","children":[]},{"level":3,"title":"base","slug":"base","link":"#base","children":[]},{"level":3,"title":"builder","slug":"builder","link":"#builder","children":[]},{"level":3,"title":"define","slug":"define","link":"#define","children":[]},{"level":3,"title":"dynamicImport","slug":"dynamicimport","link":"#dynamicimport","children":[]},{"level":3,"title":"inlineLimit","slug":"inlinelimit","link":"#inlinelimit","children":[]},{"level":3,"title":"mock","slug":"mock","link":"#mock","children":[]},{"level":3,"title":"mountElementId","slug":"mountelementid","link":"#mountelementid","children":[]},{"level":3,"title":"outputPath","slug":"outputpath","link":"#outputpath","children":[]},{"level":3,"title":"plugins","slug":"plugins","link":"#plugins","children":[]},{"level":3,"title":"proxy","slug":"proxy","link":"#proxy","children":[]},{"level":3,"title":"publicPath","slug":"publicpath","link":"#publicpath","children":[]},{"level":3,"title":"router","slug":"router","link":"#router","children":[]},{"level":3,"title":"singular","slug":"singular","link":"#singular","children":[]},{"level":3,"title":"targets","slug":"targets","link":"#targets","children":[]},{"level":3,"title":"terserOptions","slug":"terseroptions","link":"#terseroptions","children":[]},{"level":3,"title":"title","slug":"title","link":"#title","children":[]}]},{"level":2,"title":"webpack 专属配置","slug":"webpack-专属配置","link":"#webpack-专属配置","children":[{"level":3,"title":"analyze","slug":"analyze","link":"#analyze","children":[]},{"level":3,"title":"chainWebpack","slug":"chainwebpack","link":"#chainwebpack","children":[]},{"level":3,"title":"cssLoader","slug":"cssloader","link":"#cssloader","children":[]},{"level":3,"title":"copy","slug":"copy","link":"#copy","children":[]},{"level":3,"title":"devServer","slug":"devserver","link":"#devserver","children":[]},{"level":3,"title":"devtool","slug":"devtool","link":"#devtool","children":[]},{"level":3,"title":"exportStatic","slug":"exportstatic","link":"#exportstatic","children":[]},{"level":3,"title":"externals","slug":"externals","link":"#externals","children":[]},{"level":3,"title":"extraBabelPlugins","slug":"extrababelplugins","link":"#extrababelplugins","children":[]},{"level":3,"title":"extraBabelPresets","slug":"extrababelpresets","link":"#extrababelpresets","children":[]},{"level":3,"title":"extraPostCSSPlugins","slug":"extrapostcssplugins","link":"#extrapostcssplugins","children":[]},{"level":3,"title":"html","slug":"html","link":"#html","children":[]},{"level":3,"title":"lessLoader","slug":"lessloader","link":"#lessloader","children":[]},{"level":3,"title":"nodeModulesTransform","slug":"nodemodulestransform","link":"#nodemodulestransform","children":[]},{"level":3,"title":"postcssLoader","slug":"postcssloader","link":"#postcssloader","children":[]},{"level":3,"title":"vueLoader","slug":"vueloader","link":"#vueloader","children":[]}]},{"level":2,"title":"Vite 专属配置","slug":"vite-专属配置","link":"#vite-专属配置","children":[{"level":3,"title":"viteOption","slug":"viteoption","link":"#viteoption","children":[]},{"level":3,"title":"viteVuePlugin","slug":"vitevueplugin","link":"#vitevueplugin","children":[]},{"level":3,"title":"viteVueJsx","slug":"vitevuejsx","link":"#vitevuejsx","children":[]},{"level":3,"title":"viteLegacy","slug":"vitelegacy","link":"#vitelegacy","children":[]},{"level":3,"title":"viteHtml","slug":"vitehtml","link":"#vitehtml","children":[]}]},{"level":2,"title":"更多配置项","slug":"更多配置项","link":"#更多配置项","children":[]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/config/README.md"}');export{e as data};
+const e=JSON.parse('{"key":"v-2c05b6e0","path":"/reference/config/","title":"","lang":"zh-CN","frontmatter":{"sidebar":"auto"},"excerpt":"","headers":[{"level":2,"title":"配置文件","slug":"配置文件","link":"#配置文件","children":[{"level":3,"title":"配置文件解析","slug":"配置文件解析","link":"#配置文件解析","children":[]},{"level":3,"title":"配置智能提示","slug":"配置智能提示","link":"#配置智能提示","children":[]}]},{"level":2,"title":"共享配置","slug":"共享配置","link":"#共享配置","children":[{"level":3,"title":"alias","slug":"alias","link":"#alias","children":[]},{"level":3,"title":"autoprefixer","slug":"autoprefixer","link":"#autoprefixer","children":[]},{"level":3,"title":"base","slug":"base","link":"#base","children":[]},{"level":3,"title":"builder","slug":"builder","link":"#builder","children":[]},{"level":3,"title":"define","slug":"define","link":"#define","children":[]},{"level":3,"title":"dynamicImport","slug":"dynamicimport","link":"#dynamicimport","children":[]},{"level":3,"title":"inlineLimit","slug":"inlinelimit","link":"#inlinelimit","children":[]},{"level":3,"title":"mock","slug":"mock","link":"#mock","children":[]},{"level":3,"title":"mountElementId","slug":"mountelementid","link":"#mountelementid","children":[]},{"level":3,"title":"outputPath","slug":"outputpath","link":"#outputpath","children":[]},{"level":3,"title":"plugins","slug":"plugins","link":"#plugins","children":[]},{"level":3,"title":"proxy","slug":"proxy","link":"#proxy","children":[]},{"level":3,"title":"publicPath","slug":"publicpath","link":"#publicpath","children":[]},{"level":3,"title":"router","slug":"router","link":"#router","children":[]},{"level":3,"title":"singular","slug":"singular","link":"#singular","children":[]},{"level":3,"title":"targets","slug":"targets","link":"#targets","children":[]},{"level":3,"title":"terserOptions","slug":"terseroptions","link":"#terseroptions","children":[]},{"level":3,"title":"title","slug":"title","link":"#title","children":[]}]},{"level":2,"title":"webpack 专属配置","slug":"webpack-专属配置","link":"#webpack-专属配置","children":[{"level":3,"title":"analyze","slug":"analyze","link":"#analyze","children":[]},{"level":3,"title":"chainWebpack","slug":"chainwebpack","link":"#chainwebpack","children":[]},{"level":3,"title":"cssLoader","slug":"cssloader","link":"#cssloader","children":[]},{"level":3,"title":"copy","slug":"copy","link":"#copy","children":[]},{"level":3,"title":"devServer","slug":"devserver","link":"#devserver","children":[]},{"level":3,"title":"devtool","slug":"devtool","link":"#devtool","children":[]},{"level":3,"title":"extraCSS","slug":"extracss","link":"#extracss","children":[]},{"level":3,"title":"exportStatic","slug":"exportstatic","link":"#exportstatic","children":[]},{"level":3,"title":"externals","slug":"externals","link":"#externals","children":[]},{"level":3,"title":"extraBabelPlugins","slug":"extrababelplugins","link":"#extrababelplugins","children":[]},{"level":3,"title":"extraBabelPresets","slug":"extrababelpresets","link":"#extrababelpresets","children":[]},{"level":3,"title":"extraPostCSSPlugins","slug":"extrapostcssplugins","link":"#extrapostcssplugins","children":[]},{"level":3,"title":"html","slug":"html","link":"#html","children":[]},{"level":3,"title":"lessLoader","slug":"lessloader","link":"#lessloader","children":[]},{"level":3,"title":"nodeModulesTransform","slug":"nodemodulestransform","link":"#nodemodulestransform","children":[]},{"level":3,"title":"postcssLoader","slug":"postcssloader","link":"#postcssloader","children":[]},{"level":3,"title":"vueLoader","slug":"vueloader","link":"#vueloader","children":[]}]},{"level":2,"title":"Vite 专属配置","slug":"vite-专属配置","link":"#vite-专属配置","children":[{"level":3,"title":"viteOption","slug":"viteoption","link":"#viteoption","children":[]},{"level":3,"title":"viteVuePlugin","slug":"vitevueplugin","link":"#vitevueplugin","children":[]},{"level":3,"title":"viteVueJsx","slug":"vitevuejsx","link":"#vitevuejsx","children":[]},{"level":3,"title":"viteLegacy","slug":"vitelegacy","link":"#vitelegacy","children":[]},{"level":3,"title":"viteHtml","slug":"vitehtml","link":"#vitehtml","children":[]}]},{"level":2,"title":"更多配置项","slug":"更多配置项","link":"#更多配置项","children":[]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/config/README.md"}');export{e as data};
diff --git a/assets/index.html.b3f98887.js b/assets/index.html.de23200e.js
similarity index 63%
rename from assets/index.html.b3f98887.js
rename to assets/index.html.de23200e.js
index 0cf7b778..a6eb75c4 100644
--- a/assets/index.html.b3f98887.js
+++ b/assets/index.html.de23200e.js
@@ -1 +1 @@
-const e=JSON.parse('{"key":"v-494b840e","path":"/reference/plugin/dev/","title":"插件介绍","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"开始","slug":"开始","link":"#开始","children":[]},{"level":2,"title":"创建插件","slug":"创建插件","link":"#创建插件","children":[]},{"level":2,"title":"发布到 npm","slug":"发布到-npm","link":"#发布到-npm","children":[]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/dev/README.md"}');export{e as data};
+const e=JSON.parse('{"key":"v-494b840e","path":"/reference/plugin/dev/","title":"插件介绍","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"开始","slug":"开始","link":"#开始","children":[]},{"level":2,"title":"创建插件","slug":"创建插件","link":"#创建插件","children":[]},{"level":2,"title":"发布到 npm","slug":"发布到-npm","link":"#发布到-npm","children":[]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/dev/README.md"}');export{e as data};
diff --git a/assets/index.html.c22810d3.js b/assets/index.html.f7fd713b.js
similarity index 88%
rename from assets/index.html.c22810d3.js
rename to assets/index.html.f7fd713b.js
index 66be6515..189fe923 100644
--- a/assets/index.html.c22810d3.js
+++ b/assets/index.html.f7fd713b.js
@@ -1,4 +1,4 @@
-import{_ as p,r as l,o,c as i,b as n,d as s,a as e,f as t}from"./app.005e0daf.js";const c={},r=t(`

配置文件

Fes.js 内置了比较通用的构建方式,如果没有个性化需求,不需要修改构建相关的配置。

配置文件解析

Fes.js 会自动解析项目根目录下的 .fes.js 文件。

最基础的配置文件是这样的:

// .fes.js
+import{_ as p,r as o,o as l,c as i,b as n,d as s,a as e,f as t}from"./app.136d0839.js";const c={},r=t(`

配置文件

Fes.js 内置了比较通用的构建方式,如果没有个性化需求,不需要修改构建相关的配置。

配置文件解析

Fes.js 会自动解析项目根目录下的 .fes.js 文件。

最基础的配置文件是这样的:

// .fes.js
 export default {};
 

可以通过环境变量 FES_ENV 进行环境差异化配置,当我们运行 FES_ENV=prod fes dev 时,Fes.js 会找到 .fes.js.fes.prod.js(可选) 的配置文件进行 deepmerge

配置智能提示

可以通过 defineBuildConfig 工具函数获取类型提示:

import { defineBuildConfig } from '@fesjs/fes';
 
@@ -100,7 +100,16 @@ import{_ as p,r as l,o,c as i,b as n,d as s,a as e,f as t}from"./app.005e0daf.js
         to: 'assets/images',
     },
 };
-

上面示例中,实现了将 cwd 路径中的 /src/assets/images 文件夹,在编译完成后,copy 到输出路径下的 assets/images 文件夹。

devServer

  • 类型: object

  • 默认值: {}

  • 详情:

    配置开发服务器。支持以下子配置项:

    • port,端口号,默认 8000
    • host,默认 localhost
    • https,是否启用 https server,同时也会开启 HTTP/2

    启用 port 和 host 也可以通过环境变量 PORTHOST 临时指定。

devtool

`,7),V=n("li",null,[n("p",null,[s("类型: "),n("code",null,"string")])],-1),S=n("li",null,[n("p",null,[s("默认值: "),n("code",null,"cheap-module-source-map"),s(" in dev, "),n("code",null,"undefined"),s(" in build")])],-1),B=n("p",null,"详情:",-1),O={href:"https://webpack.js.org/configuration/devtool/#devtool",target:"_blank",rel:"noopener noreferrer"},z=t(`

exportStatic

  • 类型: object
  • 默认值: {}
  • 详情:

配置 html 的输出形式,默认只输出 index.html

如果开启 exportStatic,则会针对每个路由输出 html 文件。

比如以下路由,

/
+

上面示例中,实现了将 cwd 路径中的 /src/assets/images 文件夹,在编译完成后,copy 到输出路径下的 assets/images 文件夹。

devServer

  • 类型: object

  • 默认值: {}

  • 详情:

    配置开发服务器。支持以下子配置项:

    • port,端口号,默认 8000
    • host,默认 localhost
    • https,是否启用 https server,同时也会开启 HTTP/2

    启用 port 和 host 也可以通过环境变量 PORTHOST 临时指定。

devtool

`,7),S=n("li",null,[n("p",null,[s("类型: "),n("code",null,"string")])],-1),V=n("li",null,[n("p",null,[s("默认值: "),n("code",null,"cheap-module-source-map"),s(" in dev, "),n("code",null,"undefined"),s(" in build")])],-1),B=n("p",null,"详情:",-1),C={href:"https://webpack.js.org/configuration/devtool/#devtool",target:"_blank",rel:"noopener noreferrer"},O=t(`

extraCSS

  • 类型: object

  • 默认值: {}

  • 详情:

    配置如何使用mini-css-extract-plugin,默认使用插件的默认配置。loader 选项对应loader参数,plugin选项对应插件参数。例如:

export default {
+    // 配置 mini-css-extract-plugin
+    extraCSS: {
+        loader: {
+            publicPath: (resourcePath, context) => \`\${path.relative(path.dirname(resourcePath), context)}/\`,
+        },
+    },
+};
+
+

exportStatic

  • 类型: object
  • 默认值: {}
  • 详情:

配置 html 的输出形式,默认只输出 index.html

如果开启 exportStatic,则会针对每个路由输出 html 文件。

比如以下路由,

/
 /users
 /list
 

不开启 exportStatic 时,输出,

- index.html
@@ -115,4 +124,4 @@ import{_ as p,r as l,o,c as i,b as n,d as s,a as e,f as t}from"./app.005e0daf.js
 

extraBabelPlugins

  • 类型: array
  • 默认值: []
  • 详情:

配置额外的 babel 插件。

  • 示例:
export default {
     extraBabelPlugins: [['import', { libraryName: 'ant-design-vue', libraryDirectory: 'es', style: 'css' }]],
 };
-

extraBabelPresets

  • 类型: array
  • 默认值: []
  • 详情:

配置额外的 babel 插件集。

extraPostCSSPlugins

`,23),D=n("li",null,[n("p",null,[s("类型: "),n("code",null,"array")])],-1),T=n("li",null,[n("p",null,[s("默认值: "),n("code",null,"[]")])],-1),Y=n("p",null,"详情:",-1),Z={href:"https://github.com/postcss/postcss/blob/master/docs/plugins.md",target:"_blank",rel:"noopener noreferrer"},C=n("h3",{id:"html",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#html","aria-hidden":"true"},"#"),s(" html")],-1),F=n("li",null,[n("p",null,[s("类型: "),n("code",null,"object")])],-1),M=n("li",null,[n("p",null,[s("默认值: "),n("code",null,"{}")])],-1),I=n("p",null,"详情:",-1),H={href:"https://github.com/jantimon/html-webpack-plugin#options",target:"_blank",rel:"noopener noreferrer"},U=n("h3",{id:"lessloader",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#lessloader","aria-hidden":"true"},"#"),s(" lessLoader")],-1),q=n("li",null,[n("p",null,[s("类型: "),n("code",null,"object")])],-1),R=n("li",null,[n("p",null,[s("默认值: "),n("code",null,"{}")])],-1),W=n("p",null,"详情:",-1),G={href:"https://github.com/webpack-contrib/less-loader",target:"_blank",rel:"noopener noreferrer"},J=t('

nodeModulesTransform

  • 类型: object

  • 默认值: { exclude: [] }

  • 详情:

    默认编译所有 node_modules 下的包,可以通过配置 exclude 来跳过某些包,以提高编译速度。

postcssLoader

',3),$=n("li",null,[n("p",null,[s("类型: "),n("code",null,"object")])],-1),K=n("li",null,[n("p",null,[s("默认值: "),n("code",null,"{}")])],-1),Q=n("p",null,"详情:",-1),X={href:"https://github.com/postcss/postcss-loader#options",target:"_blank",rel:"noopener noreferrer"},nn=n("h3",{id:"vueloader",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#vueloader","aria-hidden":"true"},"#"),s(" vueLoader")],-1),sn=n("li",null,[n("p",null,[s("类型: "),n("code",null,"object")])],-1),an=n("li",null,[n("p",null,[s("默认值:"),n("code",null,"{}")])],-1),en=n("p",null,"详情:",-1),tn={href:"https://vue-loader.vuejs.org/zh/options.html",target:"_blank",rel:"noopener noreferrer"},pn=n("h2",{id:"vite-专属配置",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#vite-专属配置","aria-hidden":"true"},"#"),s(" Vite 专属配置")],-1),ln=n("h3",{id:"viteoption",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#viteoption","aria-hidden":"true"},"#"),s(" viteOption")],-1),on=n("li",null,[n("p",null,[s("类型: "),n("code",null,"object")])],-1),cn=n("p",null,"详情:",-1),rn={href:"https://cn.vitejs.dev/config/",target:"_blank",rel:"noopener noreferrer"},dn=n("h3",{id:"vitevueplugin",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#vitevueplugin","aria-hidden":"true"},"#"),s(" viteVuePlugin")],-1),un=n("li",null,[n("p",null,[s("类型: "),n("code",null,"object")])],-1),kn=n("p",null,"详情:",-1),hn={href:"https://github.com/vitejs/vite/tree/main/packages/plugin-vue",target:"_blank",rel:"noopener noreferrer"},vn=n("h3",{id:"vitevuejsx",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#vitevuejsx","aria-hidden":"true"},"#"),s(" viteVueJsx")],-1),bn=n("li",null,[n("p",null,[s("类型: "),n("code",null,"object")])],-1),mn=n("p",null,"详情:",-1),gn={href:"https://github.com/vitejs/vite/tree/main/packages/plugin-vue-jsx",target:"_blank",rel:"noopener noreferrer"},_n=n("h3",{id:"vitelegacy",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#vitelegacy","aria-hidden":"true"},"#"),s(" viteLegacy")],-1),fn=n("li",null,[n("p",null,[s("类型: "),n("code",null,"object")])],-1),yn=n("p",null,"详情:",-1),xn={href:"https://github.com/vitejs/vite/tree/main/packages/plugin-legacy",target:"_blank",rel:"noopener noreferrer"},jn=n("h3",{id:"vitehtml",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#vitehtml","aria-hidden":"true"},"#"),s(" viteHtml")],-1),wn=n("li",null,[n("p",null,[s("类型: "),n("code",null,"object")])],-1),An=n("p",null,"详情:",-1),En={href:"https://github.com/vbenjs/vite-plugin-html",target:"_blank",rel:"noopener noreferrer"},Ln=n("h2",{id:"更多配置项",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#更多配置项","aria-hidden":"true"},"#"),s(" 更多配置项")],-1),Pn=n("p",null,"Fes.js 允许插件注册配置,如果你使用插件,肯定会在插件里找到更多配置项。",-1);function Nn(Vn,Sn){const a=l("ExternalLinkIcon");return o(),i("div",null,[r,n("ul",null,[n("li",null,[d,n("p",null,[n("a",u,[s("postcss autoprefixer 插件"),e(a)]),s(" 配置。")])])]),k,n("p",null,[s("然后访问 "),h,s(" 就能访问到 "),n("a",v,[s("http://api.douban.com/v2/movie/in_theaters_proxy"),e(a)]),s(" 的数据。")]),b,n("ul",null,[n("li",null,[m,n("p",null,[s("配置 "),n("a",g,[s("压缩器 terser 的配置项"),e(a)])])])]),_,n("ul",null,[f,y,n("li",null,[x,n("p",null,[s("通过 "),n("a",j,[s("webpack-chain"),e(a)]),s(" 的 API 修改 webpack 配置。")])])]),w,n("ul",null,[A,E,n("li",null,[L,n("p",null,[s("设置 "),n("a",P,[s("css-loader 配置项"),e(a)]),s("。")])])]),N,n("ul",null,[V,S,n("li",null,[B,n("p",null,[s("用户配置 sourcemap 类型。详见 "),n("a",O,[s(" webpack#devtool 配置"),e(a)]),s("。")])])]),z,n("ul",null,[D,T,n("li",null,[Y,n("p",null,[s("设置额外的 "),n("a",Z,[s("postcss 插件"),e(a)]),s("。")])])]),C,n("ul",null,[F,M,n("li",null,[I,n("p",null,[s("设置"),n("a",H,[s("html-webpack-plugin"),e(a)]),s("。")])])]),U,n("ul",null,[q,R,n("li",null,[W,n("p",null,[s("设置 "),n("a",G,[s("less-loader 配置项"),e(a)]),s("。")])])]),J,n("ul",null,[$,K,n("li",null,[Q,n("p",null,[s("设置 "),n("a",X,[s("postcss-loader 配置项"),e(a)]),s("。")])])]),nn,n("ul",null,[sn,an,n("li",null,[en,n("p",null,[s("配置 "),n("a",tn,[s("Vue Loader"),e(a)])])])]),pn,ln,n("ul",null,[on,n("li",null,[cn,n("p",null,[s("Vite 的配置,详情请看 "),n("a",rn,[s("Vite Config"),e(a)])])])]),dn,n("ul",null,[un,n("li",null,[kn,n("p",null,[s("自定义 "),n("a",hn,[s("@vitejs/plugin-vue"),e(a)]),s(" 的配置。")])])]),vn,n("ul",null,[bn,n("li",null,[mn,n("p",null,[s("自定义 "),n("a",gn,[s("@vitejs/plugin-vue-jsx"),e(a)]),s(" 的配置。")])])]),_n,n("ul",null,[fn,n("li",null,[yn,n("p",null,[s("自定义 "),n("a",xn,[s("@vitejs/plugin-legacy"),e(a)]),s(" 的配置。")])])]),jn,n("ul",null,[wn,n("li",null,[An,n("p",null,[s("自定义 "),n("a",En,[s("vite-plugin-html"),e(a)]),s(" 的配置。")])])]),Ln,Pn])}const On=p(c,[["render",Nn],["__file","index.html.vue"]]);export{On as default}; +

extraBabelPresets

  • 类型: array
  • 默认值: []
  • 详情:

配置额外的 babel 插件集。

extraPostCSSPlugins

`,26),z=n("li",null,[n("p",null,[s("类型: "),n("code",null,"array")])],-1),D=n("li",null,[n("p",null,[s("默认值: "),n("code",null,"[]")])],-1),T=n("p",null,"详情:",-1),Y={href:"https://github.com/postcss/postcss/blob/master/docs/plugins.md",target:"_blank",rel:"noopener noreferrer"},Z=n("h3",{id:"html",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#html","aria-hidden":"true"},"#"),s(" html")],-1),F=n("li",null,[n("p",null,[s("类型: "),n("code",null,"object")])],-1),M=n("li",null,[n("p",null,[s("默认值: "),n("code",null,"{}")])],-1),I=n("p",null,"详情:",-1),H={href:"https://github.com/jantimon/html-webpack-plugin#options",target:"_blank",rel:"noopener noreferrer"},U=n("h3",{id:"lessloader",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#lessloader","aria-hidden":"true"},"#"),s(" lessLoader")],-1),q=n("li",null,[n("p",null,[s("类型: "),n("code",null,"object")])],-1),R=n("li",null,[n("p",null,[s("默认值: "),n("code",null,"{}")])],-1),W=n("p",null,"详情:",-1),$={href:"https://github.com/webpack-contrib/less-loader",target:"_blank",rel:"noopener noreferrer"},G=t('

nodeModulesTransform

  • 类型: object

  • 默认值: { exclude: [] }

  • 详情:

    默认编译所有 node_modules 下的包,可以通过配置 exclude 来跳过某些包,以提高编译速度。

postcssLoader

',3),J=n("li",null,[n("p",null,[s("类型: "),n("code",null,"object")])],-1),K=n("li",null,[n("p",null,[s("默认值: "),n("code",null,"{}")])],-1),Q=n("p",null,"详情:",-1),X={href:"https://github.com/postcss/postcss-loader#options",target:"_blank",rel:"noopener noreferrer"},nn=n("h3",{id:"vueloader",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#vueloader","aria-hidden":"true"},"#"),s(" vueLoader")],-1),sn=n("li",null,[n("p",null,[s("类型: "),n("code",null,"object")])],-1),an=n("li",null,[n("p",null,[s("默认值:"),n("code",null,"{}")])],-1),en=n("p",null,"详情:",-1),tn={href:"https://vue-loader.vuejs.org/zh/options.html",target:"_blank",rel:"noopener noreferrer"},pn=n("h2",{id:"vite-专属配置",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#vite-专属配置","aria-hidden":"true"},"#"),s(" Vite 专属配置")],-1),on=n("h3",{id:"viteoption",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#viteoption","aria-hidden":"true"},"#"),s(" viteOption")],-1),ln=n("li",null,[n("p",null,[s("类型: "),n("code",null,"object")])],-1),cn=n("p",null,"详情:",-1),rn={href:"https://cn.vitejs.dev/config/",target:"_blank",rel:"noopener noreferrer"},dn=n("h3",{id:"vitevueplugin",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#vitevueplugin","aria-hidden":"true"},"#"),s(" viteVuePlugin")],-1),un=n("li",null,[n("p",null,[s("类型: "),n("code",null,"object")])],-1),kn=n("p",null,"详情:",-1),hn={href:"https://github.com/vitejs/vite/tree/main/packages/plugin-vue",target:"_blank",rel:"noopener noreferrer"},vn=n("h3",{id:"vitevuejsx",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#vitevuejsx","aria-hidden":"true"},"#"),s(" viteVueJsx")],-1),bn=n("li",null,[n("p",null,[s("类型: "),n("code",null,"object")])],-1),mn=n("p",null,"详情:",-1),gn={href:"https://github.com/vitejs/vite/tree/main/packages/plugin-vue-jsx",target:"_blank",rel:"noopener noreferrer"},_n=n("h3",{id:"vitelegacy",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#vitelegacy","aria-hidden":"true"},"#"),s(" viteLegacy")],-1),fn=n("li",null,[n("p",null,[s("类型: "),n("code",null,"object")])],-1),yn=n("p",null,"详情:",-1),xn={href:"https://github.com/vitejs/vite/tree/main/packages/plugin-legacy",target:"_blank",rel:"noopener noreferrer"},jn=n("h3",{id:"vitehtml",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#vitehtml","aria-hidden":"true"},"#"),s(" viteHtml")],-1),wn=n("li",null,[n("p",null,[s("类型: "),n("code",null,"object")])],-1),An=n("p",null,"详情:",-1),En={href:"https://github.com/vbenjs/vite-plugin-html",target:"_blank",rel:"noopener noreferrer"},Ln=n("h2",{id:"更多配置项",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#更多配置项","aria-hidden":"true"},"#"),s(" 更多配置项")],-1),Pn=n("p",null,"Fes.js 允许插件注册配置,如果你使用插件,肯定会在插件里找到更多配置项。",-1);function Nn(Sn,Vn){const a=o("ExternalLinkIcon");return l(),i("div",null,[r,n("ul",null,[n("li",null,[d,n("p",null,[n("a",u,[s("postcss autoprefixer 插件"),e(a)]),s(" 配置。")])])]),k,n("p",null,[s("然后访问 "),h,s(" 就能访问到 "),n("a",v,[s("http://api.douban.com/v2/movie/in_theaters_proxy"),e(a)]),s(" 的数据。")]),b,n("ul",null,[n("li",null,[m,n("p",null,[s("配置 "),n("a",g,[s("压缩器 terser 的配置项"),e(a)])])])]),_,n("ul",null,[f,y,n("li",null,[x,n("p",null,[s("通过 "),n("a",j,[s("webpack-chain"),e(a)]),s(" 的 API 修改 webpack 配置。")])])]),w,n("ul",null,[A,E,n("li",null,[L,n("p",null,[s("设置 "),n("a",P,[s("css-loader 配置项"),e(a)]),s("。")])])]),N,n("ul",null,[S,V,n("li",null,[B,n("p",null,[s("用户配置 sourcemap 类型。详见 "),n("a",C,[s(" webpack#devtool 配置"),e(a)]),s("。")])])]),O,n("ul",null,[z,D,n("li",null,[T,n("p",null,[s("设置额外的 "),n("a",Y,[s("postcss 插件"),e(a)]),s("。")])])]),Z,n("ul",null,[F,M,n("li",null,[I,n("p",null,[s("设置"),n("a",H,[s("html-webpack-plugin"),e(a)]),s("。")])])]),U,n("ul",null,[q,R,n("li",null,[W,n("p",null,[s("设置 "),n("a",$,[s("less-loader 配置项"),e(a)]),s("。")])])]),G,n("ul",null,[J,K,n("li",null,[Q,n("p",null,[s("设置 "),n("a",X,[s("postcss-loader 配置项"),e(a)]),s("。")])])]),nn,n("ul",null,[sn,an,n("li",null,[en,n("p",null,[s("配置 "),n("a",tn,[s("Vue Loader"),e(a)])])])]),pn,on,n("ul",null,[ln,n("li",null,[cn,n("p",null,[s("Vite 的配置,详情请看 "),n("a",rn,[s("Vite Config"),e(a)])])])]),dn,n("ul",null,[un,n("li",null,[kn,n("p",null,[s("自定义 "),n("a",hn,[s("@vitejs/plugin-vue"),e(a)]),s(" 的配置。")])])]),vn,n("ul",null,[bn,n("li",null,[mn,n("p",null,[s("自定义 "),n("a",gn,[s("@vitejs/plugin-vue-jsx"),e(a)]),s(" 的配置。")])])]),_n,n("ul",null,[fn,n("li",null,[yn,n("p",null,[s("自定义 "),n("a",xn,[s("@vitejs/plugin-legacy"),e(a)]),s(" 的配置。")])])]),jn,n("ul",null,[wn,n("li",null,[An,n("p",null,[s("自定义 "),n("a",En,[s("vite-plugin-html"),e(a)]),s(" 的配置。")])])]),Ln,Pn])}const Cn=p(c,[["render",Nn],["__file","index.html.vue"]]);export{Cn as default}; diff --git a/assets/index.html.8a34550e.js b/assets/index.html.fb3234bc.js similarity index 99% rename from assets/index.html.8a34550e.js rename to assets/index.html.fb3234bc.js index 4b49815e..9191c0b7 100644 --- a/assets/index.html.8a34550e.js +++ b/assets/index.html.fb3234bc.js @@ -1,4 +1,4 @@ -import{_ as p,r as o,o as i,c as r,b as s,d as n,a as e,f as t}from"./app.005e0daf.js";const c={},l=t(`

API

Fes.js 统一了API的出口,所有运行时API(包含Fes.js内置API和插件提供的API)全部通过@fesjs/fes导出。

import { someApi  } from "@fesjs/fes"
+import{_ as p,r as o,o as i,c as r,b as s,d as n,a as e,f as t}from"./app.136d0839.js";const c={},l=t(`

API

Fes.js 统一了API的出口,所有运行时API(包含Fes.js内置API和插件提供的API)全部通过@fesjs/fes导出。

import { someApi  } from "@fesjs/fes"
 

基础API

plugin

提示

主要在插件里面使用,项目代码中一般用不到。

运行时插件接口,是 Fes.js 内置的跑在浏览器里的一套插件体系。

import { plugin, ApplyPluginsType } from '@fesjs/fes';
 
 // 注册插件
diff --git a/assets/jest.html.de551700.js b/assets/jest.html.300ecc20.js
similarity index 80%
rename from assets/jest.html.de551700.js
rename to assets/jest.html.300ecc20.js
index d88ec526..ce7ee62f 100644
--- a/assets/jest.html.de551700.js
+++ b/assets/jest.html.300ecc20.js
@@ -1 +1 @@
-const e=JSON.parse('{"key":"v-3cd5a4ef","path":"/reference/plugin/plugins/jest.html","title":"@fesjs/plugin-jest","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"约定","slug":"约定","link":"#约定","children":[]},{"level":2,"title":"命令","slug":"命令","link":"#命令","children":[]},{"level":2,"title":"配置","slug":"配置","link":"#配置","children":[{"level":3,"title":"args 变量","slug":"args-变量","link":"#args-变量","children":[]},{"level":3,"title":"配置文件","slug":"配置文件","link":"#配置文件","children":[]},{"level":3,"title":"优先级","slug":"优先级","link":"#优先级","children":[]}]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/jest.md"}');export{e as data};
+const e=JSON.parse('{"key":"v-3cd5a4ef","path":"/reference/plugin/plugins/jest.html","title":"@fesjs/plugin-jest","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"约定","slug":"约定","link":"#约定","children":[]},{"level":2,"title":"命令","slug":"命令","link":"#命令","children":[]},{"level":2,"title":"配置","slug":"配置","link":"#配置","children":[{"level":3,"title":"args 变量","slug":"args-变量","link":"#args-变量","children":[]},{"level":3,"title":"配置文件","slug":"配置文件","link":"#配置文件","children":[]},{"level":3,"title":"优先级","slug":"优先级","link":"#优先级","children":[]}]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/jest.md"}');export{e as data};
diff --git a/assets/jest.html.9bcb2ce1.js b/assets/jest.html.f2aff521.js
similarity index 99%
rename from assets/jest.html.9bcb2ce1.js
rename to assets/jest.html.f2aff521.js
index 34ae3559..c6802c81 100644
--- a/assets/jest.html.9bcb2ce1.js
+++ b/assets/jest.html.f2aff521.js
@@ -1,4 +1,4 @@
-import{_ as a,r as l,o as r,c as d,b as n,d as e,a as i,f as t}from"./app.005e0daf.js";const o={},c=n("h1",{id:"fesjs-plugin-jest",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#fesjs-plugin-jest","aria-hidden":"true"},"#"),e(" @fesjs/plugin-jest")],-1),u={href:"https://www.jestjs.cn/",target:"_blank",rel:"noopener noreferrer"},v=t(`

启用方式

package.json 中引入依赖:

{
+import{_ as a,r as l,o as r,c as d,b as n,d as e,a as i,f as t}from"./app.136d0839.js";const o={},c=n("h1",{id:"fesjs-plugin-jest",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#fesjs-plugin-jest","aria-hidden":"true"},"#"),e(" @fesjs/plugin-jest")],-1),u={href:"https://www.jestjs.cn/",target:"_blank",rel:"noopener noreferrer"},v=t(`

启用方式

package.json 中引入依赖:

{
     "dependencies": {
         "@fesjs/fes": "^3.0.0",
         "@fesjs/plugin-jest": "^3.0.0"
diff --git a/assets/layout.html.b7ee50eb.js b/assets/layout.html.76e01b19.js
similarity index 99%
rename from assets/layout.html.b7ee50eb.js
rename to assets/layout.html.76e01b19.js
index 96752f53..061a39a0 100644
--- a/assets/layout.html.b7ee50eb.js
+++ b/assets/layout.html.76e01b19.js
@@ -1,4 +1,4 @@
-import{_ as u,r as c,o as r,c as d,b as n,d as s,a as e,w as o,e as l,f as a}from"./app.005e0daf.js";const k={},v=n("h1",{id:"fesjs-plugin-layout",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#fesjs-plugin-layout","aria-hidden":"true"},"#"),s(" @fesjs/plugin-layout")],-1),g=n("h2",{id:"介绍",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#介绍","aria-hidden":"true"},"#"),s(" 介绍")],-1),h=n("p",null,[s("为了进一步降低研发成本,我们将布局利用 "),n("code",null,"fes.js"),s(" 插件的方式内置,只需通过简单的配置即可拥有布局,包括导航以及侧边栏。从而做到用户无需关心布局。")],-1),m=a("
  • 侧边栏菜单数据根据路由中的配置自动生成。
  • 布局,提供 sidetopmixinleft-right 四种布局。
  • 主题,提供 lightdark 两种主题。
  • 默认实现对路由的 404、403 处理。
  • ",4),b=n("li",null,"支持自定义头部或者侧边栏区域。",-1),f=n("li",null,"菜单支持配置 icon。",-1),_=n("li",null,"菜单标题支持国际化。",-1),x=n("li",null,"可配置页面是否需要 layout。",-1),y=a(`

    启用方式

    package.json 中引入依赖:

    {
    +import{_ as u,r as c,o as r,c as d,b as n,d as s,a as e,w as o,e as l,f as a}from"./app.136d0839.js";const k={},v=n("h1",{id:"fesjs-plugin-layout",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#fesjs-plugin-layout","aria-hidden":"true"},"#"),s(" @fesjs/plugin-layout")],-1),g=n("h2",{id:"介绍",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#介绍","aria-hidden":"true"},"#"),s(" 介绍")],-1),h=n("p",null,[s("为了进一步降低研发成本,我们将布局利用 "),n("code",null,"fes.js"),s(" 插件的方式内置,只需通过简单的配置即可拥有布局,包括导航以及侧边栏。从而做到用户无需关心布局。")],-1),m=a("
  • 侧边栏菜单数据根据路由中的配置自动生成。
  • 布局,提供 sidetopmixinleft-right 四种布局。
  • 主题,提供 lightdark 两种主题。
  • 默认实现对路由的 404、403 处理。
  • ",4),b=n("li",null,"支持自定义头部或者侧边栏区域。",-1),f=n("li",null,"菜单支持配置 icon。",-1),_=n("li",null,"菜单标题支持国际化。",-1),x=n("li",null,"可配置页面是否需要 layout。",-1),y=a(`

    启用方式

    package.json 中引入依赖:

    {
         "dependencies": {
             "@fesjs/fes": "^3.0.0",
             "@fesjs/plugin-layout": "^5.0.0"
    diff --git a/assets/layout.html.bccb8e74.js b/assets/layout.html.d2b5d2e8.js
    similarity index 92%
    rename from assets/layout.html.bccb8e74.js
    rename to assets/layout.html.d2b5d2e8.js
    index 9c6c619b..54e1feea 100644
    --- a/assets/layout.html.bccb8e74.js
    +++ b/assets/layout.html.d2b5d2e8.js
    @@ -1 +1 @@
    -const e=JSON.parse('{"key":"v-355ee23e","path":"/reference/plugin/plugins/layout.html","title":"@fesjs/plugin-layout","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"布局类型","slug":"布局类型","link":"#布局类型","children":[{"level":3,"title":"side","slug":"side","link":"#side","children":[]},{"level":3,"title":"top","slug":"top","link":"#top","children":[]},{"level":3,"title":"mixin","slug":"mixin","link":"#mixin","children":[]},{"level":3,"title":"left-right","slug":"left-right","link":"#left-right","children":[]},{"level":3,"title":"页面个性化","slug":"页面个性化","link":"#页面个性化","children":[]}]},{"level":2,"title":"页面缓存","slug":"页面缓存","link":"#页面缓存","children":[{"level":3,"title":"处理嵌套路由","slug":"处理嵌套路由","link":"#处理嵌套路由","children":[]}]},{"level":2,"title":"配置","slug":"配置","link":"#配置","children":[{"level":3,"title":"footer","slug":"footer","link":"#footer","children":[]},{"level":3,"title":"theme","slug":"theme","link":"#theme","children":[]},{"level":3,"title":"navigation","slug":"navigation","link":"#navigation","children":[]},{"level":3,"title":"isFixedHeader","slug":"isfixedheader","link":"#isfixedheader","children":[]},{"level":3,"title":"isFixedSidebar","slug":"isfixedsidebar","link":"#isfixedsidebar","children":[]},{"level":3,"title":"title","slug":"title","link":"#title","children":[]},{"level":3,"title":"logo","slug":"logo","link":"#logo","children":[]},{"level":3,"title":"multiTabs","slug":"multitabs","link":"#multitabs","children":[]},{"level":3,"title":"menus","slug":"menus","link":"#menus","children":[]},{"level":3,"title":"menuProps","slug":"menuprops","link":"#menuprops","children":[]},{"level":3,"title":"sideWidth","slug":"sidewidth","link":"#sidewidth","children":[]},{"level":3,"title":"renderCustom","slug":"rendercustom","link":"#rendercustom","children":[]},{"level":3,"title":"unAccessHandler","slug":"unaccesshandler","link":"#unaccesshandler","children":[]},{"level":3,"title":"noFoundHandler","slug":"nofoundhandler","link":"#nofoundhandler","children":[]}]},{"level":2,"title":"API","slug":"api","link":"#api","children":[{"level":3,"title":"useTabTitle","slug":"usetabtitle","link":"#usetabtitle","children":[]}]},{"level":2,"title":"4.x 升级到 5.x","slug":"_4-x-升级到-5-x","link":"#_4-x-升级到-5-x","children":[]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/layout.md"}');export{e as data};
    +const e=JSON.parse('{"key":"v-355ee23e","path":"/reference/plugin/plugins/layout.html","title":"@fesjs/plugin-layout","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"布局类型","slug":"布局类型","link":"#布局类型","children":[{"level":3,"title":"side","slug":"side","link":"#side","children":[]},{"level":3,"title":"top","slug":"top","link":"#top","children":[]},{"level":3,"title":"mixin","slug":"mixin","link":"#mixin","children":[]},{"level":3,"title":"left-right","slug":"left-right","link":"#left-right","children":[]},{"level":3,"title":"页面个性化","slug":"页面个性化","link":"#页面个性化","children":[]}]},{"level":2,"title":"页面缓存","slug":"页面缓存","link":"#页面缓存","children":[{"level":3,"title":"处理嵌套路由","slug":"处理嵌套路由","link":"#处理嵌套路由","children":[]}]},{"level":2,"title":"配置","slug":"配置","link":"#配置","children":[{"level":3,"title":"footer","slug":"footer","link":"#footer","children":[]},{"level":3,"title":"theme","slug":"theme","link":"#theme","children":[]},{"level":3,"title":"navigation","slug":"navigation","link":"#navigation","children":[]},{"level":3,"title":"isFixedHeader","slug":"isfixedheader","link":"#isfixedheader","children":[]},{"level":3,"title":"isFixedSidebar","slug":"isfixedsidebar","link":"#isfixedsidebar","children":[]},{"level":3,"title":"title","slug":"title","link":"#title","children":[]},{"level":3,"title":"logo","slug":"logo","link":"#logo","children":[]},{"level":3,"title":"multiTabs","slug":"multitabs","link":"#multitabs","children":[]},{"level":3,"title":"menus","slug":"menus","link":"#menus","children":[]},{"level":3,"title":"menuProps","slug":"menuprops","link":"#menuprops","children":[]},{"level":3,"title":"sideWidth","slug":"sidewidth","link":"#sidewidth","children":[]},{"level":3,"title":"renderCustom","slug":"rendercustom","link":"#rendercustom","children":[]},{"level":3,"title":"unAccessHandler","slug":"unaccesshandler","link":"#unaccesshandler","children":[]},{"level":3,"title":"noFoundHandler","slug":"nofoundhandler","link":"#nofoundhandler","children":[]}]},{"level":2,"title":"API","slug":"api","link":"#api","children":[{"level":3,"title":"useTabTitle","slug":"usetabtitle","link":"#usetabtitle","children":[]}]},{"level":2,"title":"4.x 升级到 5.x","slug":"_4-x-升级到-5-x","link":"#_4-x-升级到-5-x","children":[]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/layout.md"}');export{e as data};
    diff --git a/assets/locale.html.c1dcd857.js b/assets/locale.html.88762a65.js
    similarity index 99%
    rename from assets/locale.html.c1dcd857.js
    rename to assets/locale.html.88762a65.js
    index eff0d123..be47bd79 100644
    --- a/assets/locale.html.c1dcd857.js
    +++ b/assets/locale.html.88762a65.js
    @@ -1,4 +1,4 @@
    -import{_ as o,r as p,o as l,c,b as s,d as n,a as e,f as t}from"./app.005e0daf.js";const i={},r=s("h1",{id:"fesjs-plugin-locale",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#fesjs-plugin-locale","aria-hidden":"true"},"#"),n(" @fesjs/plugin-locale")],-1),u=s("h2",{id:"介绍",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#介绍","aria-hidden":"true"},"#"),n(" 介绍")],-1),d={href:"https://github.com/intlify/vue-i18n-next",target:"_blank",rel:"noopener noreferrer"},k=t(`

    启用方式

    package.json 中引入依赖:

    {
    +import{_ as o,r as p,o as l,c,b as s,d as n,a as e,f as t}from"./app.136d0839.js";const i={},r=s("h1",{id:"fesjs-plugin-locale",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#fesjs-plugin-locale","aria-hidden":"true"},"#"),n(" @fesjs/plugin-locale")],-1),u=s("h2",{id:"介绍",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#介绍","aria-hidden":"true"},"#"),n(" 介绍")],-1),d={href:"https://github.com/intlify/vue-i18n-next",target:"_blank",rel:"noopener noreferrer"},k=t(`

    启用方式

    package.json 中引入依赖:

    {
         "dependencies": {
             "@fesjs/fes": "^3.0.0",
             "@fesjs/plugin-locale": "^3.0.0"
    diff --git a/assets/locale.html.4d3b3790.js b/assets/locale.html.a3153873.js
    similarity index 83%
    rename from assets/locale.html.4d3b3790.js
    rename to assets/locale.html.a3153873.js
    index 513f023f..48be82b1 100644
    --- a/assets/locale.html.4d3b3790.js
    +++ b/assets/locale.html.a3153873.js
    @@ -1 +1 @@
    -const l=JSON.parse('{"key":"v-411c0c9e","path":"/reference/plugin/plugins/locale.html","title":"@fesjs/plugin-locale","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"配置","slug":"配置","link":"#配置","children":[{"level":3,"title":"约定式配置","slug":"约定式配置","link":"#约定式配置","children":[]},{"level":3,"title":"编译时配置","slug":"编译时配置","link":"#编译时配置","children":[]},{"level":3,"title":"运行时配置","slug":"运行时配置","link":"#运行时配置","children":[]}]},{"level":2,"title":"API","slug":"api","link":"#api","children":[{"level":3,"title":"locale","slug":"locale-1","link":"#locale-1","children":[]},{"level":3,"title":"useI18n","slug":"usei18n","link":"#usei18n","children":[]}]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/locale.md"}');export{l as data};
    +const l=JSON.parse('{"key":"v-411c0c9e","path":"/reference/plugin/plugins/locale.html","title":"@fesjs/plugin-locale","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"配置","slug":"配置","link":"#配置","children":[{"level":3,"title":"约定式配置","slug":"约定式配置","link":"#约定式配置","children":[]},{"level":3,"title":"编译时配置","slug":"编译时配置","link":"#编译时配置","children":[]},{"level":3,"title":"运行时配置","slug":"运行时配置","link":"#运行时配置","children":[]}]},{"level":2,"title":"API","slug":"api","link":"#api","children":[{"level":3,"title":"locale","slug":"locale-1","link":"#locale-1","children":[]},{"level":3,"title":"useI18n","slug":"usei18n","link":"#usei18n","children":[]}]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/locale.md"}');export{l as data};
    diff --git a/assets/login.html.0ea4b7ad.js b/assets/login.html.31ddef26.js
    similarity index 98%
    rename from assets/login.html.0ea4b7ad.js
    rename to assets/login.html.31ddef26.js
    index 069c8ffd..415cd976 100644
    --- a/assets/login.html.0ea4b7ad.js
    +++ b/assets/login.html.31ddef26.js
    @@ -1,4 +1,4 @@
    -import{_ as n,o as s,c as a,f as e}from"./app.005e0daf.js";const t={},o=e(`

    @fesjs/plugin-login

    介绍

    管理自定义 login 页面,包括 login 页面权限问题,跳转登陆问题。

    启用方式

    package.json 中引入依赖:

    {
    +import{_ as n,o as s,c as a,f as e}from"./app.136d0839.js";const t={},o=e(`

    @fesjs/plugin-login

    介绍

    管理自定义 login 页面,包括 login 页面权限问题,跳转登陆问题。

    启用方式

    package.json 中引入依赖:

    {
         "dependencies": {
             "@fesjs/fes": "^3.0.0",
             "@fesjs/plugin-login": "^3.0.0"
    diff --git a/assets/login.html.2f0338ab.js b/assets/login.html.d0c46ddc.js
    similarity index 70%
    rename from assets/login.html.2f0338ab.js
    rename to assets/login.html.d0c46ddc.js
    index 53af8ce7..4e764b44 100644
    --- a/assets/login.html.2f0338ab.js
    +++ b/assets/login.html.d0c46ddc.js
    @@ -1 +1 @@
    -const e=JSON.parse('{"key":"v-56ab05de","path":"/reference/plugin/plugins/login.html","title":"@fesjs/plugin-login","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"运行时配置","slug":"运行时配置","link":"#运行时配置","children":[]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/login.md"}');export{e as data};
    +const e=JSON.parse('{"key":"v-56ab05de","path":"/reference/plugin/plugins/login.html","title":"@fesjs/plugin-login","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"运行时配置","slug":"运行时配置","link":"#运行时配置","children":[]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/login.md"}');export{e as data};
    diff --git a/assets/mock.html.9cef5d45.js b/assets/mock.html.7e263949.js
    similarity index 99%
    rename from assets/mock.html.9cef5d45.js
    rename to assets/mock.html.7e263949.js
    index 7a1b1fb7..1ad8fb71 100644
    --- a/assets/mock.html.9cef5d45.js
    +++ b/assets/mock.html.7e263949.js
    @@ -1,4 +1,4 @@
    -import{_ as c,r as p,o as i,c as l,b as s,d as n,a as t,w as u,f as a}from"./app.005e0daf.js";const r={},k=a(`

    Mock 数据

    Mock 数据是前端开发过程中必不可少的一环,是分离前后端开发的关键链路。通过预先跟服务器端约定好的接口,模拟请求数据甚至逻辑,能够让前端开发独立自主,不会被服务端的开发所阻塞。

    约定式 Mock 文件

    Fes.js 约定 ./mock.js 为 mock 文件。

    比如:

    .
    +import{_ as c,r as p,o as i,c as l,b as s,d as n,a as t,w as u,f as a}from"./app.136d0839.js";const r={},k=a(`

    Mock 数据

    Mock 数据是前端开发过程中必不可少的一环,是分离前后端开发的关键链路。通过预先跟服务器端约定好的接口,模拟请求数据甚至逻辑,能够让前端开发独立自主,不会被服务端的开发所阻塞。

    约定式 Mock 文件

    Fes.js 约定 ./mock.js 为 mock 文件。

    比如:

    .
     ├── mock.js
     └── src
         └── pages
    diff --git a/assets/mock.html.6d653289.js b/assets/mock.html.cde530fd.js
    similarity index 81%
    rename from assets/mock.html.6d653289.js
    rename to assets/mock.html.cde530fd.js
    index 303e103f..1f7bba06 100644
    --- a/assets/mock.html.6d653289.js
    +++ b/assets/mock.html.cde530fd.js
    @@ -1 +1 @@
    -const l=JSON.parse('{"key":"v-00cf7e23","path":"/guide/mock.html","title":"Mock 数据","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"约定式 Mock 文件","slug":"约定式-mock-文件","link":"#约定式-mock-文件","children":[]},{"level":2,"title":"编写 Mock 文件","slug":"编写-mock-文件","link":"#编写-mock-文件","children":[{"level":3,"title":"cgiMock 参数","slug":"cgimock-参数","link":"#cgimock-参数","children":[]},{"level":3,"title":"mockjs 参数","slug":"mockjs-参数","link":"#mockjs-参数","children":[]},{"level":3,"title":"utils 参数","slug":"utils-参数","link":"#utils-参数","children":[]}]},{"level":2,"title":"配置 Mock","slug":"配置-mock","link":"#配置-mock","children":[]},{"level":2,"title":"关闭 Mock","slug":"关闭-mock","link":"#关闭-mock","children":[]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/mock.md"}');export{l as data};
    +const l=JSON.parse('{"key":"v-00cf7e23","path":"/guide/mock.html","title":"Mock 数据","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"约定式 Mock 文件","slug":"约定式-mock-文件","link":"#约定式-mock-文件","children":[]},{"level":2,"title":"编写 Mock 文件","slug":"编写-mock-文件","link":"#编写-mock-文件","children":[{"level":3,"title":"cgiMock 参数","slug":"cgimock-参数","link":"#cgimock-参数","children":[]},{"level":3,"title":"mockjs 参数","slug":"mockjs-参数","link":"#mockjs-参数","children":[]},{"level":3,"title":"utils 参数","slug":"utils-参数","link":"#utils-参数","children":[]}]},{"level":2,"title":"配置 Mock","slug":"配置-mock","link":"#配置-mock","children":[]},{"level":2,"title":"关闭 Mock","slug":"关闭-mock","link":"#关闭-mock","children":[]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/mock.md"}');export{l as data};
    diff --git a/assets/model.html.3cd49de2.js b/assets/model.html.be6653d7.js
    similarity index 99%
    rename from assets/model.html.3cd49de2.js
    rename to assets/model.html.be6653d7.js
    index 2ec226c1..39130527 100644
    --- a/assets/model.html.3cd49de2.js
    +++ b/assets/model.html.be6653d7.js
    @@ -1,4 +1,4 @@
    -import{_ as n,o as s,c as a,f as t}from"./app.005e0daf.js";const e={},p=t(`

    @fesjs/plugin-model

    启用方式

    在 package.json 中引入依赖:

    {
    +import{_ as n,o as s,c as a,f as t}from"./app.136d0839.js";const e={},p=t(`

    @fesjs/plugin-model

    启用方式

    在 package.json 中引入依赖:

    {
         "dependencies": {
             "@fesjs/fes": "^3.0.0",
             "@fesjs/plugin-model": "^3.0.0"
    diff --git a/assets/model.html.fab33d63.js b/assets/model.html.ca3b743a.js
    similarity index 83%
    rename from assets/model.html.fab33d63.js
    rename to assets/model.html.ca3b743a.js
    index fe07d81f..a3ef9033 100644
    --- a/assets/model.html.fab33d63.js
    +++ b/assets/model.html.ca3b743a.js
    @@ -1 +1 @@
    -const e=JSON.parse('{"key":"v-3c4e521e","path":"/reference/plugin/plugins/model.html","title":"@fesjs/plugin-model","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[{"level":3,"title":"Model 文件","slug":"model-文件","link":"#model-文件","children":[]},{"level":3,"title":"在组件中使用 Model","slug":"在组件中使用-model","link":"#在组件中使用-model","children":[]},{"level":3,"title":"@@initialState","slug":"initialstate","link":"#initialstate","children":[]}]},{"level":2,"title":"API","slug":"api","link":"#api","children":[{"level":3,"title":"useModel","slug":"usemodel","link":"#usemodel","children":[]}]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/model.md"}');export{e as data};
    +const e=JSON.parse('{"key":"v-3c4e521e","path":"/reference/plugin/plugins/model.html","title":"@fesjs/plugin-model","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[{"level":3,"title":"Model 文件","slug":"model-文件","link":"#model-文件","children":[]},{"level":3,"title":"在组件中使用 Model","slug":"在组件中使用-model","link":"#在组件中使用-model","children":[]},{"level":3,"title":"@@initialState","slug":"initialstate","link":"#initialstate","children":[]}]},{"level":2,"title":"API","slug":"api","link":"#api","children":[{"level":3,"title":"useModel","slug":"usemodel","link":"#usemodel","children":[]}]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/model.md"}');export{e as data};
    diff --git a/assets/pinia.html.1e6ca3bb.js b/assets/pinia.html.0c40ecc3.js
    similarity index 83%
    rename from assets/pinia.html.1e6ca3bb.js
    rename to assets/pinia.html.0c40ecc3.js
    index d2c48906..bc56d8e7 100644
    --- a/assets/pinia.html.1e6ca3bb.js
    +++ b/assets/pinia.html.0c40ecc3.js
    @@ -1 +1 @@
    -const e=JSON.parse('{"key":"v-6f2f6a5a","path":"/reference/plugin/plugins/pinia.html","title":"@fesjs/plugin-pinia","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"API","slug":"api","link":"#api","children":[{"level":3,"title":"pinia","slug":"pinia","link":"#pinia","children":[]}]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[{"level":3,"title":"定义 store","slug":"定义-store","link":"#定义-store","children":[]},{"level":3,"title":"setup","slug":"setup","link":"#setup","children":[]},{"level":3,"title":"非 setup","slug":"非-setup","link":"#非-setup","children":[]}]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/pinia.md"}');export{e as data};
    +const e=JSON.parse('{"key":"v-6f2f6a5a","path":"/reference/plugin/plugins/pinia.html","title":"@fesjs/plugin-pinia","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"API","slug":"api","link":"#api","children":[{"level":3,"title":"pinia","slug":"pinia","link":"#pinia","children":[]}]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[{"level":3,"title":"定义 store","slug":"定义-store","link":"#定义-store","children":[]},{"level":3,"title":"setup","slug":"setup","link":"#setup","children":[]},{"level":3,"title":"非 setup","slug":"非-setup","link":"#非-setup","children":[]}]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/pinia.md"}');export{e as data};
    diff --git a/assets/pinia.html.1eb91490.js b/assets/pinia.html.bae2441d.js
    similarity index 99%
    rename from assets/pinia.html.1eb91490.js
    rename to assets/pinia.html.bae2441d.js
    index 562f2974..cbf0b63d 100644
    --- a/assets/pinia.html.1eb91490.js
    +++ b/assets/pinia.html.bae2441d.js
    @@ -1,4 +1,4 @@
    -import{_ as e,r as t,o as p,c as o,b as n,d as s,a as i,f as c}from"./app.005e0daf.js";const l={},r=n("h1",{id:"fesjs-plugin-pinia",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#fesjs-plugin-pinia","aria-hidden":"true"},"#"),s(" @fesjs/plugin-pinia")],-1),u=n("h2",{id:"介绍",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#介绍","aria-hidden":"true"},"#"),s(" 介绍")],-1),d={href:"https://pinia.vuejs.org/",target:"_blank",rel:"noopener noreferrer"},k=c(`

    为了防止 Fes.jspinia 提供的 API 冲突,Fes.js不提供任何 pinia 的 API,相关 API 直接从 pinia 导出:

    import { defineStore } from 'pinia';
    +import{_ as e,r as t,o as p,c as o,b as n,d as s,a as i,f as c}from"./app.136d0839.js";const l={},r=n("h1",{id:"fesjs-plugin-pinia",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#fesjs-plugin-pinia","aria-hidden":"true"},"#"),s(" @fesjs/plugin-pinia")],-1),u=n("h2",{id:"介绍",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#介绍","aria-hidden":"true"},"#"),s(" 介绍")],-1),d={href:"https://pinia.vuejs.org/",target:"_blank",rel:"noopener noreferrer"},k=c(`

    为了防止 Fes.jspinia 提供的 API 冲突,Fes.js不提供任何 pinia 的 API,相关 API 直接从 pinia 导出:

    import { defineStore } from 'pinia';
     

    约定 plugin 定义放在 stores 目录下,文件名包含 plugin 被解析为插件,无需额外配置,定义即可用。

    └── src
         ├── pages
         │    └── index.vue
    diff --git a/assets/plugin.html.0095f814.js b/assets/plugin.html.2a53561b.js
    similarity index 99%
    rename from assets/plugin.html.0095f814.js
    rename to assets/plugin.html.2a53561b.js
    index a45d4974..c76e5d17 100644
    --- a/assets/plugin.html.0095f814.js
    +++ b/assets/plugin.html.2a53561b.js
    @@ -1,4 +1,4 @@
    -import{_ as s,o as a,c as e,f as n}from"./app.005e0daf.js";const o={},p=n(`

    插件

    插件的 id 和 key

    每个插件都会对应一个 id 和一个 keyid 是路径的简写,key 是进一步简化后用于配置的唯一值

    比如插件 /node_modules/@fesjs/plugin-foo/index.js,通常来说,其 id@fesjs/plugin-fookeyfoo

    提示

    id 一般用不上,对于普通开发者 key 用来配置插件,而插件开发者可以使用 key 判断是否安装某个插件。

    启动插件

    有多种方式引入插件

    package.json 依赖

    Fes.js 会自动检测 dependenciesdevDependencies 里的 fes 插件,比如:

    {
    +import{_ as s,o as a,c as e,f as n}from"./app.136d0839.js";const o={},p=n(`

    插件

    插件的 id 和 key

    每个插件都会对应一个 id 和一个 keyid 是路径的简写,key 是进一步简化后用于配置的唯一值

    比如插件 /node_modules/@fesjs/plugin-foo/index.js,通常来说,其 id@fesjs/plugin-fookeyfoo

    提示

    id 一般用不上,对于普通开发者 key 用来配置插件,而插件开发者可以使用 key 判断是否安装某个插件。

    启动插件

    有多种方式引入插件

    package.json 依赖

    Fes.js 会自动检测 dependenciesdevDependencies 里的 fes 插件,比如:

    {
         "dependencies": {
             "@fesjs/plugin-request": "^3.0.0"
         }
    diff --git a/assets/plugin.html.ccfb9074.js b/assets/plugin.html.daa490bd.js
    similarity index 83%
    rename from assets/plugin.html.ccfb9074.js
    rename to assets/plugin.html.daa490bd.js
    index ffc39993..d432d733 100644
    --- a/assets/plugin.html.ccfb9074.js
    +++ b/assets/plugin.html.daa490bd.js
    @@ -1 +1 @@
    -const e=JSON.parse('{"key":"v-1d14d5cc","path":"/guide/plugin.html","title":"插件","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"插件的 id 和 key","slug":"插件的-id-和-key","link":"#插件的-id-和-key","children":[]},{"level":2,"title":"启动插件","slug":"启动插件","link":"#启动插件","children":[{"level":3,"title":"package.json 依赖","slug":"package-json-依赖","link":"#package-json-依赖","children":[]},{"level":3,"title":"配置","slug":"配置","link":"#配置","children":[]},{"level":3,"title":"环境变量","slug":"环境变量","link":"#环境变量","children":[]}]},{"level":2,"title":"禁用插件","slug":"禁用插件","link":"#禁用插件","children":[]},{"level":2,"title":"配置插件","slug":"配置插件","link":"#配置插件","children":[]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/plugin.md"}');export{e as data};
    +const e=JSON.parse('{"key":"v-1d14d5cc","path":"/guide/plugin.html","title":"插件","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"插件的 id 和 key","slug":"插件的-id-和-key","link":"#插件的-id-和-key","children":[]},{"level":2,"title":"启动插件","slug":"启动插件","link":"#启动插件","children":[{"level":3,"title":"package.json 依赖","slug":"package-json-依赖","link":"#package-json-依赖","children":[]},{"level":3,"title":"配置","slug":"配置","link":"#配置","children":[]},{"level":3,"title":"环境变量","slug":"环境变量","link":"#环境变量","children":[]}]},{"level":2,"title":"禁用插件","slug":"禁用插件","link":"#禁用插件","children":[]},{"level":2,"title":"配置插件","slug":"配置插件","link":"#配置插件","children":[]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/plugin.md"}');export{e as data};
    diff --git a/assets/public.html.9d99cf84.js b/assets/public.html.21fc842c.js
    similarity index 75%
    rename from assets/public.html.9d99cf84.js
    rename to assets/public.html.21fc842c.js
    index 481e2102..46a4ec45 100644
    --- a/assets/public.html.9d99cf84.js
    +++ b/assets/public.html.21fc842c.js
    @@ -1 +1 @@
    -const e=JSON.parse('{"key":"v-7b96e3a4","path":"/guide/public.html","title":"静态资源","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":3,"title":"在 HTML 模板中使用","slug":"在-html-模板中使用","link":"#在-html-模板中使用","children":[]},{"level":3,"title":"在.vue 和 js 文件中使用","slug":"在-vue-和-js-文件中使用","link":"#在-vue-和-js-文件中使用","children":[]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/public.md"}');export{e as data};
    +const e=JSON.parse('{"key":"v-7b96e3a4","path":"/guide/public.html","title":"静态资源","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":3,"title":"在 HTML 模板中使用","slug":"在-html-模板中使用","link":"#在-html-模板中使用","children":[]},{"level":3,"title":"在.vue 和 js 文件中使用","slug":"在-vue-和-js-文件中使用","link":"#在-vue-和-js-文件中使用","children":[]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/public.md"}');export{e as data};
    diff --git a/assets/public.html.848eef99.js b/assets/public.html.f994234a.js
    similarity index 98%
    rename from assets/public.html.848eef99.js
    rename to assets/public.html.f994234a.js
    index ffca3fcf..88d673b7 100644
    --- a/assets/public.html.848eef99.js
    +++ b/assets/public.html.f994234a.js
    @@ -1,4 +1,4 @@
    -import{_ as n,o as a,c as s,f as t}from"./app.005e0daf.js";const e={},p=t(`

    静态资源

    有些内容不需要经过 webpack 模块化处理,则可以将这些内容放在 public 文件夹,构建后会直接复制到 dist 目录,所以你需要通过BASE_URL来引入它们。

    在 HTML 模板中使用

    index.html 中需要设置:

    <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
    +import{_ as n,o as a,c as s,f as t}from"./app.136d0839.js";const e={},p=t(`

    静态资源

    有些内容不需要经过 webpack 模块化处理,则可以将这些内容放在 public 文件夹,构建后会直接复制到 dist 目录,所以你需要通过BASE_URL来引入它们。

    在 HTML 模板中使用

    index.html 中需要设置:

    <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
     

    在.vue 和 js 文件中使用

    <template>
         <img :src="\`\${publicPath}my-image.png\`" />
     </template>
    diff --git a/assets/qiankun.html.deb33c50.js b/assets/qiankun.html.2cf2e202.js
    similarity index 90%
    rename from assets/qiankun.html.deb33c50.js
    rename to assets/qiankun.html.2cf2e202.js
    index 824435ea..9337bfb5 100644
    --- a/assets/qiankun.html.deb33c50.js
    +++ b/assets/qiankun.html.2cf2e202.js
    @@ -1 +1 @@
    -const l=JSON.parse('{"key":"v-b15becb0","path":"/reference/plugin/plugins/qiankun.html","title":"@fesjs/plugin-qiankun","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"主应用配置","slug":"主应用配置","link":"#主应用配置","children":[{"level":3,"title":"第一步:注册子应用","slug":"第一步-注册子应用","link":"#第一步-注册子应用","children":[]},{"level":3,"title":"第二步:装载子应用","slug":"第二步-装载子应用","link":"#第二步-装载子应用","children":[]}]},{"level":2,"title":"子应用配置","slug":"子应用配置","link":"#子应用配置","children":[{"level":3,"title":"第一步:插件注册","slug":"第一步-插件注册","link":"#第一步-插件注册","children":[]},{"level":3,"title":"第二步:配置运行时生命周期钩子(可选)","slug":"第二步-配置运行时生命周期钩子-可选","link":"#第二步-配置运行时生命周期钩子-可选","children":[]}]},{"level":2,"title":"父子应用通讯","slug":"父子应用通讯","link":"#父子应用通讯","children":[{"level":3,"title":"配合 useModel 使用","slug":"配合-usemodel-使用","link":"#配合-usemodel-使用","children":[]},{"level":3,"title":"基于 props 传递","slug":"基于-props-传递","link":"#基于-props-传递","children":[]},{"level":3,"title":"MicroApp","slug":"microapp","link":"#microapp","children":[]},{"level":3,"title":"MicroAppWithMemoHistory","slug":"microappwithmemohistory","link":"#microappwithmemohistory","children":[]}]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/qiankun.md"}');export{l as data};
    +const l=JSON.parse('{"key":"v-b15becb0","path":"/reference/plugin/plugins/qiankun.html","title":"@fesjs/plugin-qiankun","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"主应用配置","slug":"主应用配置","link":"#主应用配置","children":[{"level":3,"title":"第一步:注册子应用","slug":"第一步-注册子应用","link":"#第一步-注册子应用","children":[]},{"level":3,"title":"第二步:装载子应用","slug":"第二步-装载子应用","link":"#第二步-装载子应用","children":[]}]},{"level":2,"title":"子应用配置","slug":"子应用配置","link":"#子应用配置","children":[{"level":3,"title":"第一步:插件注册","slug":"第一步-插件注册","link":"#第一步-插件注册","children":[]},{"level":3,"title":"第二步:配置运行时生命周期钩子(可选)","slug":"第二步-配置运行时生命周期钩子-可选","link":"#第二步-配置运行时生命周期钩子-可选","children":[]}]},{"level":2,"title":"父子应用通讯","slug":"父子应用通讯","link":"#父子应用通讯","children":[{"level":3,"title":"配合 useModel 使用","slug":"配合-usemodel-使用","link":"#配合-usemodel-使用","children":[]},{"level":3,"title":"基于 props 传递","slug":"基于-props-传递","link":"#基于-props-传递","children":[]},{"level":3,"title":"MicroApp","slug":"microapp","link":"#microapp","children":[]},{"level":3,"title":"MicroAppWithMemoHistory","slug":"microappwithmemohistory","link":"#microappwithmemohistory","children":[]}]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/qiankun.md"}');export{l as data};
    diff --git a/assets/qiankun.html.b3592391.js b/assets/qiankun.html.da0d7b2f.js
    similarity index 99%
    rename from assets/qiankun.html.b3592391.js
    rename to assets/qiankun.html.da0d7b2f.js
    index b28a1f18..f122c07a 100644
    --- a/assets/qiankun.html.b3592391.js
    +++ b/assets/qiankun.html.da0d7b2f.js
    @@ -1,4 +1,4 @@
    -import{_ as c,r as p,o as i,c as l,b as s,d as n,a,w as u,f as e}from"./app.005e0daf.js";const r={},d=s("h1",{id:"fesjs-plugin-qiankun",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#fesjs-plugin-qiankun","aria-hidden":"true"},"#"),n(" @fesjs/plugin-qiankun")],-1),k={href:"https://qiankun.umijs.org/",target:"_blank",rel:"noopener noreferrer"},v={href:"https://umijs.org/zh-CN/plugins/plugin-qiankun#MicroApp",target:"_blank",rel:"noopener noreferrer"},m=e(`

    启用方式

    package.json 中引入依赖:

    {
    +import{_ as c,r as p,o as i,c as l,b as s,d as n,a,w as u,f as e}from"./app.136d0839.js";const r={},d=s("h1",{id:"fesjs-plugin-qiankun",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#fesjs-plugin-qiankun","aria-hidden":"true"},"#"),n(" @fesjs/plugin-qiankun")],-1),k={href:"https://qiankun.umijs.org/",target:"_blank",rel:"noopener noreferrer"},v={href:"https://umijs.org/zh-CN/plugins/plugin-qiankun#MicroApp",target:"_blank",rel:"noopener noreferrer"},m=e(`

    启用方式

    package.json 中引入依赖:

    {
         "dependencies": {
             "@fesjs/fes": "^3.0.0",
             "@fesjs/plugin-qiankun": "^3.0.0"
    diff --git a/assets/request.html.fe4ceade.js b/assets/request.html.35428bf8.js
    similarity index 88%
    rename from assets/request.html.fe4ceade.js
    rename to assets/request.html.35428bf8.js
    index 2566ac3e..09821472 100644
    --- a/assets/request.html.fe4ceade.js
    +++ b/assets/request.html.35428bf8.js
    @@ -1 +1 @@
    -const e=JSON.parse('{"key":"v-41dee210","path":"/reference/plugin/plugins/request.html","title":"@fesjs/plugin-request","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"运行时配置","slug":"运行时配置","link":"#运行时配置","children":[]},{"level":2,"title":"API","slug":"api","link":"#api","children":[{"level":3,"title":"request","slug":"request","link":"#request","children":[]},{"level":3,"title":"useRequest","slug":"userequest","link":"#userequest","children":[]}]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[{"level":3,"title":"发起一个普通 post 请求","slug":"发起一个普通-post-请求","link":"#发起一个普通-post-请求","children":[]},{"level":3,"title":"merge 重复请求","slug":"merge-重复请求","link":"#merge-重复请求","children":[]},{"level":3,"title":"请求缓存","slug":"请求缓存","link":"#请求缓存","children":[]},{"level":3,"title":"请求 abort","slug":"请求-abort","link":"#请求-abort","children":[]},{"level":3,"title":"获取 response headers","slug":"获取-response-headers","link":"#获取-response-headers","children":[]},{"level":3,"title":"结合 use 使用","slug":"结合-use-使用","link":"#结合-use-使用","children":[]}]},{"level":2,"title":"3.x 升级到 4.x","slug":"_3-x-升级到-4-x","link":"#_3-x-升级到-4-x","children":[]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/request.md"}');export{e as data};
    +const e=JSON.parse('{"key":"v-41dee210","path":"/reference/plugin/plugins/request.html","title":"@fesjs/plugin-request","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"运行时配置","slug":"运行时配置","link":"#运行时配置","children":[]},{"level":2,"title":"API","slug":"api","link":"#api","children":[{"level":3,"title":"request","slug":"request","link":"#request","children":[]},{"level":3,"title":"useRequest","slug":"userequest","link":"#userequest","children":[]}]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[{"level":3,"title":"发起一个普通 post 请求","slug":"发起一个普通-post-请求","link":"#发起一个普通-post-请求","children":[]},{"level":3,"title":"merge 重复请求","slug":"merge-重复请求","link":"#merge-重复请求","children":[]},{"level":3,"title":"请求缓存","slug":"请求缓存","link":"#请求缓存","children":[]},{"level":3,"title":"请求 abort","slug":"请求-abort","link":"#请求-abort","children":[]},{"level":3,"title":"获取 response headers","slug":"获取-response-headers","link":"#获取-response-headers","children":[]},{"level":3,"title":"结合 use 使用","slug":"结合-use-使用","link":"#结合-use-使用","children":[]}]},{"level":2,"title":"3.x 升级到 4.x","slug":"_3-x-升级到-4-x","link":"#_3-x-升级到-4-x","children":[]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/request.md"}');export{e as data};
    diff --git a/assets/request.html.f4de04c7.js b/assets/request.html.de605ef1.js
    similarity index 99%
    rename from assets/request.html.f4de04c7.js
    rename to assets/request.html.de605ef1.js
    index 3563d6dc..6865ccde 100644
    --- a/assets/request.html.f4de04c7.js
    +++ b/assets/request.html.de605ef1.js
    @@ -1,4 +1,4 @@
    -import{_ as p,r as o,o as c,c as l,b as n,d as s,a as e,f as a}from"./app.005e0daf.js";const i={},u=a(`

    @fesjs/plugin-request

    基于 fetch 封装的 request,内置防止重复请求、请求缓存、错误处理等功能。

    启用方式

    package.json 中引入依赖:

    {
    +import{_ as p,r as o,o as c,c as l,b as n,d as s,a as e,f as a}from"./app.136d0839.js";const i={},u=a(`

    @fesjs/plugin-request

    基于 fetch 封装的 request,内置防止重复请求、请求缓存、错误处理等功能。

    启用方式

    package.json 中引入依赖:

    {
         "dependencies": {
             "@fesjs/fes": "^3.0.0",
             "@fesjs/plugin-request": "^4.0.0-beta.0"
    diff --git a/assets/route.html.3d217616.js b/assets/route.html.3b4ca41d.js
    similarity index 99%
    rename from assets/route.html.3d217616.js
    rename to assets/route.html.3b4ca41d.js
    index 676eaa57..49cfa6ee 100644
    --- a/assets/route.html.3d217616.js
    +++ b/assets/route.html.3b4ca41d.js
    @@ -1,4 +1,4 @@
    -import{_ as t,r as o,o as c,c as l,b as n,d as s,a as e,f as p}from"./app.005e0daf.js";const i={},r=n("h1",{id:"路由",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#路由","aria-hidden":"true"},"#"),s(" 路由")],-1),u=n("code",null,"Vue Router",-1),d={href:"https://next.router.vuejs.org/",target:"_blank",rel:"noopener noreferrer"},k=p(`

    路由配置

    在配置文件 .fes.js中通过 router 进行配置。

    export default {
    +import{_ as t,r as o,o as c,c as l,b as n,d as s,a as e,f as p}from"./app.136d0839.js";const i={},r=n("h1",{id:"路由",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#路由","aria-hidden":"true"},"#"),s(" 路由")],-1),u=n("code",null,"Vue Router",-1),d={href:"https://next.router.vuejs.org/",target:"_blank",rel:"noopener noreferrer"},k=p(`

    路由配置

    在配置文件 .fes.js中通过 router 进行配置。

    export default {
         router: {
             routes: [],
             mode: 'hash',
    diff --git a/assets/route.html.aa1f3f0b.js b/assets/route.html.a925296f.js
    similarity index 87%
    rename from assets/route.html.aa1f3f0b.js
    rename to assets/route.html.a925296f.js
    index b5576e5d..4d343e5c 100644
    --- a/assets/route.html.aa1f3f0b.js
    +++ b/assets/route.html.a925296f.js
    @@ -1 +1 @@
    -const l=JSON.parse('{"key":"v-6320961c","path":"/guide/route.html","title":"路由","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"路由配置","slug":"路由配置","link":"#路由配置","children":[{"level":3,"title":"routes","slug":"routes","link":"#routes","children":[]},{"level":3,"title":"mode","slug":"mode","link":"#mode","children":[]}]},{"level":2,"title":"约定式路由","slug":"约定式路由","link":"#约定式路由","children":[{"level":3,"title":"约定规范","slug":"约定规范","link":"#约定规范","children":[]},{"level":3,"title":"动态路由","slug":"动态路由","link":"#动态路由","children":[]},{"level":3,"title":"模糊匹配","slug":"模糊匹配","link":"#模糊匹配","children":[]},{"level":3,"title":"嵌套路由","slug":"嵌套路由","link":"#嵌套路由","children":[]},{"level":3,"title":"模糊匹配","slug":"模糊匹配-1","link":"#模糊匹配-1","children":[]},{"level":3,"title":"智能路由","slug":"智能路由","link":"#智能路由","children":[]}]},{"level":2,"title":"扩展路由元信息","slug":"扩展路由元信息","link":"#扩展路由元信息","children":[]},{"level":2,"title":"路由跳转","slug":"路由跳转","link":"#路由跳转","children":[{"level":3,"title":"声明式","slug":"声明式","link":"#声明式","children":[]},{"level":3,"title":"命令式","slug":"命令式","link":"#命令式","children":[]}]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/route.md"}');export{l as data};
    +const l=JSON.parse('{"key":"v-6320961c","path":"/guide/route.html","title":"路由","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"路由配置","slug":"路由配置","link":"#路由配置","children":[{"level":3,"title":"routes","slug":"routes","link":"#routes","children":[]},{"level":3,"title":"mode","slug":"mode","link":"#mode","children":[]}]},{"level":2,"title":"约定式路由","slug":"约定式路由","link":"#约定式路由","children":[{"level":3,"title":"约定规范","slug":"约定规范","link":"#约定规范","children":[]},{"level":3,"title":"动态路由","slug":"动态路由","link":"#动态路由","children":[]},{"level":3,"title":"模糊匹配","slug":"模糊匹配","link":"#模糊匹配","children":[]},{"level":3,"title":"嵌套路由","slug":"嵌套路由","link":"#嵌套路由","children":[]},{"level":3,"title":"模糊匹配","slug":"模糊匹配-1","link":"#模糊匹配-1","children":[]},{"level":3,"title":"智能路由","slug":"智能路由","link":"#智能路由","children":[]}]},{"level":2,"title":"扩展路由元信息","slug":"扩展路由元信息","link":"#扩展路由元信息","children":[]},{"level":2,"title":"路由跳转","slug":"路由跳转","link":"#路由跳转","children":[{"level":3,"title":"声明式","slug":"声明式","link":"#声明式","children":[]},{"level":3,"title":"命令式","slug":"命令式","link":"#命令式","children":[]}]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/route.md"}');export{l as data};
    diff --git a/assets/runtime-config.html.d036f810.js b/assets/runtime-config.html.759e2890.js
    similarity index 86%
    rename from assets/runtime-config.html.d036f810.js
    rename to assets/runtime-config.html.759e2890.js
    index 1f11f9ec..d03bae7a 100644
    --- a/assets/runtime-config.html.d036f810.js
    +++ b/assets/runtime-config.html.759e2890.js
    @@ -1 +1 @@
    -const e=JSON.parse('{"key":"v-3dba8814","path":"/guide/runtime-config.html","title":"运行时配置","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"运行时为啥需要配置?","slug":"运行时为啥需要配置","link":"#运行时为啥需要配置","children":[]},{"level":2,"title":"配置智能提示","slug":"配置智能提示","link":"#配置智能提示","children":[]},{"level":2,"title":"配置项","slug":"配置项","link":"#配置项","children":[{"level":3,"title":"beforeRender","slug":"beforerender","link":"#beforerender","children":[]},{"level":3,"title":"patchRoutes","slug":"patchroutes","link":"#patchroutes","children":[]},{"level":3,"title":"modifyRoute","slug":"modifyroute","link":"#modifyroute","children":[]},{"level":3,"title":"modifyClientRenderOpts","slug":"modifyclientrenderopts","link":"#modifyclientrenderopts","children":[]},{"level":3,"title":"rootContainer","slug":"rootcontainer","link":"#rootcontainer","children":[]},{"level":3,"title":"onAppCreated","slug":"onappcreated","link":"#onappcreated","children":[]},{"level":3,"title":"render","slug":"render","link":"#render","children":[]},{"level":3,"title":"onRouterCreated","slug":"onroutercreated","link":"#onroutercreated","children":[]}]},{"level":2,"title":"更多配置项","slug":"更多配置项","link":"#更多配置项","children":[]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/runtime-config.md"}');export{e as data};
    +const e=JSON.parse('{"key":"v-3dba8814","path":"/guide/runtime-config.html","title":"运行时配置","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"运行时为啥需要配置?","slug":"运行时为啥需要配置","link":"#运行时为啥需要配置","children":[]},{"level":2,"title":"配置智能提示","slug":"配置智能提示","link":"#配置智能提示","children":[]},{"level":2,"title":"配置项","slug":"配置项","link":"#配置项","children":[{"level":3,"title":"beforeRender","slug":"beforerender","link":"#beforerender","children":[]},{"level":3,"title":"patchRoutes","slug":"patchroutes","link":"#patchroutes","children":[]},{"level":3,"title":"modifyRoute","slug":"modifyroute","link":"#modifyroute","children":[]},{"level":3,"title":"modifyClientRenderOpts","slug":"modifyclientrenderopts","link":"#modifyclientrenderopts","children":[]},{"level":3,"title":"rootContainer","slug":"rootcontainer","link":"#rootcontainer","children":[]},{"level":3,"title":"onAppCreated","slug":"onappcreated","link":"#onappcreated","children":[]},{"level":3,"title":"render","slug":"render","link":"#render","children":[]},{"level":3,"title":"onRouterCreated","slug":"onroutercreated","link":"#onroutercreated","children":[]}]},{"level":2,"title":"更多配置项","slug":"更多配置项","link":"#更多配置项","children":[]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/runtime-config.md"}');export{e as data};
    diff --git a/assets/runtime-config.html.c81fa63e.js b/assets/runtime-config.html.b5a30568.js
    similarity index 99%
    rename from assets/runtime-config.html.c81fa63e.js
    rename to assets/runtime-config.html.b5a30568.js
    index 4b551876..9c030b4f 100644
    --- a/assets/runtime-config.html.c81fa63e.js
    +++ b/assets/runtime-config.html.b5a30568.js
    @@ -1,4 +1,4 @@
    -import{_ as n,o as s,c as a,f as e}from"./app.005e0daf.js";const p={},t=e(`

    运行时配置

    Fes.js 约定 src/app.js 为运行时配置文件。运行时配置和配置的区别是他跑在浏览器端,因此我们可以在这里写函数、引入浏览器端依赖项等等,注意不要引入 node 端依赖项。

    运行时为啥需要配置?

    Fes.js 框架跟传统开发模式不一样。传统开发模式中用户编写 entry 文件,而 Fes.js 中 entry 文件由框架生成,用户就不必要编写胶水代码。内置插件和其他插件提供的一些运行时功能提供用户或者其他插件自定义。

    例如:

    plugin-access 插件定义运行时配置项:

    api.addRuntimePluginKey(() => 'access');
    +import{_ as n,o as s,c as a,f as e}from"./app.136d0839.js";const p={},t=e(`

    运行时配置

    Fes.js 约定 src/app.js 为运行时配置文件。运行时配置和配置的区别是他跑在浏览器端,因此我们可以在这里写函数、引入浏览器端依赖项等等,注意不要引入 node 端依赖项。

    运行时为啥需要配置?

    Fes.js 框架跟传统开发模式不一样。传统开发模式中用户编写 entry 文件,而 Fes.js 中 entry 文件由框架生成,用户就不必要编写胶水代码。内置插件和其他插件提供的一些运行时功能提供用户或者其他插件自定义。

    例如:

    plugin-access 插件定义运行时配置项:

    api.addRuntimePluginKey(() => 'access');
     

    plugin-access 插件读取配置项:

    const runtimeConfig = plugin.applyPlugins({
         key: 'access',
         type: ApplyPluginsType.modify,
    diff --git a/assets/sass.html.9338147b.js b/assets/sass.html.c97cdc49.js
    similarity index 97%
    rename from assets/sass.html.9338147b.js
    rename to assets/sass.html.c97cdc49.js
    index d169ce50..65c6aa74 100644
    --- a/assets/sass.html.9338147b.js
    +++ b/assets/sass.html.c97cdc49.js
    @@ -1,4 +1,4 @@
    -import{_ as s,o as a,c as n,f as e}from"./app.005e0daf.js";const t={},c=e(`

    @fesjs/plugin-sass

    介绍

    Fes.js 默认只支持 less,通过此插件扩展支持 sass

    webpack 构建 sass 插件

    如果使用 Vite 构建,直接装 sass 依赖即可,不需要安装此插件。

    启用方式

    package.json 中引入依赖:

    {
    +import{_ as s,o as a,c as n,f as e}from"./app.136d0839.js";const t={},c=e(`

    @fesjs/plugin-sass

    介绍

    Fes.js 默认只支持 less,通过此插件扩展支持 sass

    webpack 构建 sass 插件

    如果使用 Vite 构建,直接装 sass 依赖即可,不需要安装此插件。

    启用方式

    package.json 中引入依赖:

    {
         "dependencies": {
             "@fesjs/fes": "^3.0.0",
             "@fesjs/plugin-sass": "^3.0.0"
    diff --git a/assets/sass.html.177ef37c.js b/assets/sass.html.f1aed3ec.js
    similarity index 70%
    rename from assets/sass.html.177ef37c.js
    rename to assets/sass.html.f1aed3ec.js
    index f31584da..b25b8941 100644
    --- a/assets/sass.html.177ef37c.js
    +++ b/assets/sass.html.f1aed3ec.js
    @@ -1 +1 @@
    -const e=JSON.parse('{"key":"v-5bf80046","path":"/reference/plugin/plugins/sass.html","title":"@fesjs/plugin-sass","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"global css","slug":"global-css","link":"#global-css","children":[]},{"level":2,"title":"Vue 单文件组件","slug":"vue-单文件组件","link":"#vue-单文件组件","children":[]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/sass.md"}');export{e as data};
    +const e=JSON.parse('{"key":"v-5bf80046","path":"/reference/plugin/plugins/sass.html","title":"@fesjs/plugin-sass","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"global css","slug":"global-css","link":"#global-css","children":[]},{"level":2,"title":"Vue 单文件组件","slug":"vue-单文件组件","link":"#vue-单文件组件","children":[]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/sass.md"}');export{e as data};
    diff --git a/assets/swc.html.0bd38fed.js b/assets/swc.html.01bd96f2.js
    similarity index 98%
    rename from assets/swc.html.0bd38fed.js
    rename to assets/swc.html.01bd96f2.js
    index 69683ac7..3abef9ba 100644
    --- a/assets/swc.html.0bd38fed.js
    +++ b/assets/swc.html.01bd96f2.js
    @@ -1,4 +1,4 @@
    -import{_ as t,r as o,o as p,c,b as s,d as n,a as r,f as a}from"./app.005e0daf.js";const i={},l=a(`

    @fesjs/plugin-swc

    介绍

    webpack 启用 swc,构建速度更快!

    启用方式

    package.json 中引入依赖:

    {
    +import{_ as t,r as o,o as p,c,b as s,d as n,a as r,f as a}from"./app.136d0839.js";const i={},l=a(`

    @fesjs/plugin-swc

    介绍

    webpack 启用 swc,构建速度更快!

    启用方式

    package.json 中引入依赖:

    {
         "dependencies": {
             "@fesjs/fes": "^3.0.0",
             "@fesjs/plugin-swc": "^3.0.0"
    diff --git a/assets/swc.html.a56bb9f7.js b/assets/swc.html.22ce965c.js
    similarity index 71%
    rename from assets/swc.html.a56bb9f7.js
    rename to assets/swc.html.22ce965c.js
    index c621e5b5..a9ae6735 100644
    --- a/assets/swc.html.a56bb9f7.js
    +++ b/assets/swc.html.22ce965c.js
    @@ -1 +1 @@
    -const e=JSON.parse('{"key":"v-317f9008","path":"/reference/plugin/plugins/swc.html","title":"@fesjs/plugin-swc","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"编译时配置","slug":"编译时配置","link":"#编译时配置","children":[]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/swc.md"}');export{e as data};
    +const e=JSON.parse('{"key":"v-317f9008","path":"/reference/plugin/plugins/swc.html","title":"@fesjs/plugin-swc","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"编译时配置","slug":"编译时配置","link":"#编译时配置","children":[]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/swc.md"}');export{e as data};
    diff --git a/assets/template.html.decb42ff.js b/assets/template.html.c9556527.js
    similarity index 60%
    rename from assets/template.html.decb42ff.js
    rename to assets/template.html.c9556527.js
    index b6c3eb57..ee465bb8 100644
    --- a/assets/template.html.decb42ff.js
    +++ b/assets/template.html.c9556527.js
    @@ -1 +1 @@
    -const e=JSON.parse('{"key":"v-7b48519a","path":"/guide/template.html","title":"HTML 模板","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"修改页面标题","slug":"修改页面标题","link":"#修改页面标题","children":[]},{"level":2,"title":"模板变量","slug":"模板变量","link":"#模板变量","children":[]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/template.md"}');export{e as data};
    +const e=JSON.parse('{"key":"v-7b48519a","path":"/guide/template.html","title":"HTML 模板","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"修改页面标题","slug":"修改页面标题","link":"#修改页面标题","children":[]},{"level":2,"title":"模板变量","slug":"模板变量","link":"#模板变量","children":[]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/template.md"}');export{e as data};
    diff --git a/assets/template.html.91640404.js b/assets/template.html.d37be6af.js
    similarity index 99%
    rename from assets/template.html.91640404.js
    rename to assets/template.html.d37be6af.js
    index 2dc1768e..ef0bb8d6 100644
    --- a/assets/template.html.91640404.js
    +++ b/assets/template.html.d37be6af.js
    @@ -1,4 +1,4 @@
    -import{_ as n,o as a,c as s,f as t}from"./app.005e0daf.js";const p={},e=t(`

    HTML 模板

    Fes.js 默认模板内容是:

    提示

    fes3.0+ html 模版文件从 public/index.html 挪到项目根目录。

    <!DOCTYPE html>
    +import{_ as n,o as a,c as s,f as t}from"./app.136d0839.js";const p={},e=t(`

    HTML 模板

    Fes.js 默认模板内容是:

    提示

    fes3.0+ html 模版文件从 public/index.html 挪到项目根目录。

    <!DOCTYPE html>
     <html>
         <head>
             <meta charset="utf-8" />
    diff --git a/assets/upgrade3.html.3629ebda.js b/assets/upgrade3.html.3968d9f9.js
    similarity index 98%
    rename from assets/upgrade3.html.3629ebda.js
    rename to assets/upgrade3.html.3968d9f9.js
    index 47024b43..74309220 100644
    --- a/assets/upgrade3.html.3629ebda.js
    +++ b/assets/upgrade3.html.3968d9f9.js
    @@ -1 +1 @@
    -import{_ as i,r as l,o as c,c as s,b as t,d as e,a as n,w as a,f as d}from"./app.005e0daf.js";const h={},u=t("h1",{id:"从-2-0-x-迁移到-3-0-x",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#从-2-0-x-迁移到-3-0-x","aria-hidden":"true"},"#"),e(" 从 2.0.x 迁移到 3.0.x")],-1),_=t("h2",{id:"版本-3-0-x-的-break",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#版本-3-0-x-的-break","aria-hidden":"true"},"#"),e(" 版本 3.0.x 的 break")],-1),p={href:"https://github.com/webpack/webpack-dev-server",target:"_blank",rel:"noopener noreferrer"},b=t("code",null,"v3.x",-1),f=t("code",null,"v4.x",-1),k={href:"https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.md",target:"_blank",rel:"noopener noreferrer"},m=t("h2",{id:"继续使用-webpack",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#继续使用-webpack","aria-hidden":"true"},"#"),e(" 继续使用 Webpack")],-1),x=t("li",null,[e("添加 Webpack 构建依赖包: "),t("code",null,"npm i @fesjs/builder-webpack -D"),e("。")],-1),g=t("code",null,"public/index.html",-1),v={href:"https://github.com/jantimon/html-webpack-plugin",target:"_blank",rel:"noopener noreferrer"},w=t("h2",{id:"换成-vite",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#换成-vite","aria-hidden":"true"},"#"),e(" 换成 Vite")],-1),j=t("li",null,[e("安装依赖包 "),t("code",null,"npm i @fesjs/builder-vite"),e("。")],-1),V=t("li",null,[e("将 Webpack 相关的配置换成 Vite,具体可查看"),t("a",{href:"../reference/config"},"配置"),e("。")],-1),L=t("code",null,"public/index.html",-1),q={href:"https://github.com/jantimon/html-webpack-plugin",target:"_blank",rel:"noopener noreferrer"},N={href:"https://github.com/vbenjs/vite-plugin-html",target:"_blank",rel:"noopener noreferrer"},W=t("li",null,[e("将 "),t("code",null,"require"),e(" 等 Vite 不支持的代码,改写成 Vite 支持的方式。")],-1),B=d('

    插件

    插件都需要升级到 3.0.x 版本,新版添加了兼容builder的逻辑,但是提供的接口和配置没有变化,只需要升级版本即可使用。

    ',3);function E(y,C){const o=l("RouterLink"),r=l("ExternalLinkIcon");return c(),s("div",null,[u,_,t("ol",null,[t("li",null,[e("编译时的 "),n(o,{to:"/reference/config/#base"},{default:a(()=>[e("base")]),_:1}),e(" 配置,移到了 "),n(o,{to:"/reference/config/#router"},{default:a(()=>[e("router.base")]),_:1}),e(" 下。")]),t("li",null,[t("a",p,[e("webpack-dev-server"),n(r)]),e(" 从 "),b,e(" 升级到了 "),f,e(",如果遇到配置不兼容,可以查看"),t("a",k,[e("webpack-dev-server 3.x 升级 4.x"),n(r)]),e("。")])]),m,t("ol",null,[x,t("li",null,[e("如果有,将 "),g,e(" 文件挪到项目根目录,移除 "),t("a",v,[e("html-webpack-plugin"),n(r)]),e(" 相关配置,具体模版变量使用请查看"),n(o,{to:"/guide/template.html"},{default:a(()=>[e("HTML 模版")]),_:1}),e("。")])]),w,t("ol",null,[j,V,t("li",null,[e("将 html 模版文件从 "),L,e(" 挪到项目根目录,如果有相应的 "),t("a",q,[e("html-webpack-plugin"),n(r)]),e(" 配置,需要改成 "),t("a",N,[e("vite-plugin-html"),n(r)]),e(" 的写法。")]),W]),B])}const R=i(h,[["render",E],["__file","upgrade3.html.vue"]]);export{R as default}; +import{_ as i,r as l,o as c,c as s,b as t,d as e,a as n,w as a,f as d}from"./app.136d0839.js";const h={},u=t("h1",{id:"从-2-0-x-迁移到-3-0-x",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#从-2-0-x-迁移到-3-0-x","aria-hidden":"true"},"#"),e(" 从 2.0.x 迁移到 3.0.x")],-1),_=t("h2",{id:"版本-3-0-x-的-break",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#版本-3-0-x-的-break","aria-hidden":"true"},"#"),e(" 版本 3.0.x 的 break")],-1),p={href:"https://github.com/webpack/webpack-dev-server",target:"_blank",rel:"noopener noreferrer"},b=t("code",null,"v3.x",-1),f=t("code",null,"v4.x",-1),k={href:"https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.md",target:"_blank",rel:"noopener noreferrer"},m=t("h2",{id:"继续使用-webpack",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#继续使用-webpack","aria-hidden":"true"},"#"),e(" 继续使用 Webpack")],-1),x=t("li",null,[e("添加 Webpack 构建依赖包: "),t("code",null,"npm i @fesjs/builder-webpack -D"),e("。")],-1),g=t("code",null,"public/index.html",-1),v={href:"https://github.com/jantimon/html-webpack-plugin",target:"_blank",rel:"noopener noreferrer"},w=t("h2",{id:"换成-vite",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#换成-vite","aria-hidden":"true"},"#"),e(" 换成 Vite")],-1),j=t("li",null,[e("安装依赖包 "),t("code",null,"npm i @fesjs/builder-vite"),e("。")],-1),V=t("li",null,[e("将 Webpack 相关的配置换成 Vite,具体可查看"),t("a",{href:"../reference/config"},"配置"),e("。")],-1),L=t("code",null,"public/index.html",-1),q={href:"https://github.com/jantimon/html-webpack-plugin",target:"_blank",rel:"noopener noreferrer"},N={href:"https://github.com/vbenjs/vite-plugin-html",target:"_blank",rel:"noopener noreferrer"},W=t("li",null,[e("将 "),t("code",null,"require"),e(" 等 Vite 不支持的代码,改写成 Vite 支持的方式。")],-1),B=d('

    插件

    插件都需要升级到 3.0.x 版本,新版添加了兼容builder的逻辑,但是提供的接口和配置没有变化,只需要升级版本即可使用。

    ',3);function E(y,C){const o=l("RouterLink"),r=l("ExternalLinkIcon");return c(),s("div",null,[u,_,t("ol",null,[t("li",null,[e("编译时的 "),n(o,{to:"/reference/config/#base"},{default:a(()=>[e("base")]),_:1}),e(" 配置,移到了 "),n(o,{to:"/reference/config/#router"},{default:a(()=>[e("router.base")]),_:1}),e(" 下。")]),t("li",null,[t("a",p,[e("webpack-dev-server"),n(r)]),e(" 从 "),b,e(" 升级到了 "),f,e(",如果遇到配置不兼容,可以查看"),t("a",k,[e("webpack-dev-server 3.x 升级 4.x"),n(r)]),e("。")])]),m,t("ol",null,[x,t("li",null,[e("如果有,将 "),g,e(" 文件挪到项目根目录,移除 "),t("a",v,[e("html-webpack-plugin"),n(r)]),e(" 相关配置,具体模版变量使用请查看"),n(o,{to:"/guide/template.html"},{default:a(()=>[e("HTML 模版")]),_:1}),e("。")])]),w,t("ol",null,[j,V,t("li",null,[e("将 html 模版文件从 "),L,e(" 挪到项目根目录,如果有相应的 "),t("a",q,[e("html-webpack-plugin"),n(r)]),e(" 配置,需要改成 "),t("a",N,[e("vite-plugin-html"),n(r)]),e(" 的写法。")]),W]),B])}const R=i(h,[["render",E],["__file","upgrade3.html.vue"]]);export{R as default}; diff --git a/assets/upgrade3.html.0ae06c8e.js b/assets/upgrade3.html.907fe370.js similarity index 77% rename from assets/upgrade3.html.0ae06c8e.js rename to assets/upgrade3.html.907fe370.js index 6e696431..ff754dd2 100644 --- a/assets/upgrade3.html.0ae06c8e.js +++ b/assets/upgrade3.html.907fe370.js @@ -1 +1 @@ -const e=JSON.parse('{"key":"v-4acab794","path":"/guide/upgrade3.html","title":"从 2.0.x 迁移到 3.0.x","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"版本 3.0.x 的 break","slug":"版本-3-0-x-的-break","link":"#版本-3-0-x-的-break","children":[]},{"level":2,"title":"继续使用 Webpack","slug":"继续使用-webpack","link":"#继续使用-webpack","children":[]},{"level":2,"title":"换成 Vite","slug":"换成-vite","link":"#换成-vite","children":[]},{"level":2,"title":"插件","slug":"插件","link":"#插件","children":[]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/upgrade3.md"}');export{e as data}; +const e=JSON.parse('{"key":"v-4acab794","path":"/guide/upgrade3.html","title":"从 2.0.x 迁移到 3.0.x","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"版本 3.0.x 的 break","slug":"版本-3-0-x-的-break","link":"#版本-3-0-x-的-break","children":[]},{"level":2,"title":"继续使用 Webpack","slug":"继续使用-webpack","link":"#继续使用-webpack","children":[]},{"level":2,"title":"换成 Vite","slug":"换成-vite","link":"#换成-vite","children":[]},{"level":2,"title":"插件","slug":"插件","link":"#插件","children":[]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"guide/upgrade3.md"}');export{e as data}; diff --git a/assets/vuex.html.6d094802.js b/assets/vuex.html.7d6af135.js similarity index 99% rename from assets/vuex.html.6d094802.js rename to assets/vuex.html.7d6af135.js index 32b70616..f904b3a4 100644 --- a/assets/vuex.html.6d094802.js +++ b/assets/vuex.html.7d6af135.js @@ -1,4 +1,4 @@ -import{_ as p,r as e,o,c,b as n,d as s,a as l,f as a}from"./app.005e0daf.js";const i={},u=a(`

    @fesjs/plugin-vuex

    提示

    vue3+ 官方推荐使用pinia,不在推荐使用 vuex。

    介绍

    集成 vuex 插件

    增强 vuex,导出所有的mutationsactionsgetter的事件类型,编辑器提示

    约定模式,module 和 plugin 定义放在 stores 目录下,文件名包含 plugin 被解析为插件,无需额外配置,定义即可用。

    └── src
    +import{_ as p,r as e,o,c,b as n,d as s,a as l,f as a}from"./app.136d0839.js";const i={},u=a(`

    @fesjs/plugin-vuex

    提示

    vue3+ 官方推荐使用pinia,不在推荐使用 vuex。

    介绍

    集成 vuex 插件

    增强 vuex,导出所有的mutationsactionsgetter的事件类型,编辑器提示

    约定模式,module 和 plugin 定义放在 stores 目录下,文件名包含 plugin 被解析为插件,无需额外配置,定义即可用。

    └── src
         ├── pages
         │    └── index.vue
         └── stores
    diff --git a/assets/vuex.html.36df398e.js b/assets/vuex.html.a4a38c6f.js
    similarity index 84%
    rename from assets/vuex.html.36df398e.js
    rename to assets/vuex.html.a4a38c6f.js
    index 1b6ef10d..51bbb962 100644
    --- a/assets/vuex.html.36df398e.js
    +++ b/assets/vuex.html.a4a38c6f.js
    @@ -1 +1 @@
    -const e=JSON.parse('{"key":"v-5f4c684e","path":"/reference/plugin/plugins/vuex.html","title":"@fesjs/plugin-vuex","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"配置","slug":"配置","link":"#配置","children":[]},{"level":2,"title":"场景使用","slug":"场景使用","link":"#场景使用","children":[]},{"level":2,"title":"vuex 插件","slug":"vuex-插件","link":"#vuex-插件","children":[]},{"level":2,"title":"API","slug":"api","link":"#api","children":[{"level":3,"title":"store","slug":"store","link":"#store","children":[]},{"level":3,"title":"MUTATION_TYPES","slug":"mutation-types","link":"#mutation-types","children":[]},{"level":3,"title":"GETTER_TYPES","slug":"getter-types","link":"#getter-types","children":[]},{"level":3,"title":"ACTION_TYPES","slug":"action-types","link":"#action-types","children":[]}]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/vuex.md"}');export{e as data};
    +const e=JSON.parse('{"key":"v-5f4c684e","path":"/reference/plugin/plugins/vuex.html","title":"@fesjs/plugin-vuex","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"配置","slug":"配置","link":"#配置","children":[]},{"level":2,"title":"场景使用","slug":"场景使用","link":"#场景使用","children":[]},{"level":2,"title":"vuex 插件","slug":"vuex-插件","link":"#vuex-插件","children":[]},{"level":2,"title":"API","slug":"api","link":"#api","children":[{"level":3,"title":"store","slug":"store","link":"#store","children":[]},{"level":3,"title":"MUTATION_TYPES","slug":"mutation-types","link":"#mutation-types","children":[]},{"level":3,"title":"GETTER_TYPES","slug":"getter-types","link":"#getter-types","children":[]},{"level":3,"title":"ACTION_TYPES","slug":"action-types","link":"#action-types","children":[]}]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/vuex.md"}');export{e as data};
    diff --git a/assets/watermark.html.1d51b560.js b/assets/watermark.html.1c77b6b4.js
    similarity index 99%
    rename from assets/watermark.html.1d51b560.js
    rename to assets/watermark.html.1c77b6b4.js
    index 9c2ca978..2ac1913a 100644
    --- a/assets/watermark.html.1d51b560.js
    +++ b/assets/watermark.html.1c77b6b4.js
    @@ -1,4 +1,4 @@
    -import{_ as n,o as a,c as s,f as e}from"./app.005e0daf.js";const t={},p=e(`

    @fesjs/plugin-watermark

    介绍

    给页面添加水印效果

    启用方式

    package.json 中引入依赖:

    {
    +import{_ as n,o as a,c as s,f as e}from"./app.136d0839.js";const t={},p=e(`

    @fesjs/plugin-watermark

    介绍

    给页面添加水印效果

    启用方式

    package.json 中引入依赖:

    {
         "dependencies": {
             "@fesjs/fes": "^3.0.0",
             "@fesjs/plugin-watermark": "^3.0.0"
    diff --git a/assets/watermark.html.855d80c4.js b/assets/watermark.html.edeb015d.js
    similarity index 78%
    rename from assets/watermark.html.855d80c4.js
    rename to assets/watermark.html.edeb015d.js
    index 2cdc793b..a2b71b91 100644
    --- a/assets/watermark.html.855d80c4.js
    +++ b/assets/watermark.html.edeb015d.js
    @@ -1 +1 @@
    -const e=JSON.parse('{"key":"v-1c0edac3","path":"/reference/plugin/plugins/watermark.html","title":"@fesjs/plugin-watermark","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"编译时配置","slug":"编译时配置","link":"#编译时配置","children":[{"level":3,"title":"disabled","slug":"disabled","link":"#disabled","children":[]}]},{"level":2,"title":"API","slug":"api","link":"#api","children":[{"level":3,"title":"createWatermark","slug":"createwatermark","link":"#createwatermark","children":[]}]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/watermark.md"}');export{e as data};
    +const e=JSON.parse('{"key":"v-1c0edac3","path":"/reference/plugin/plugins/watermark.html","title":"@fesjs/plugin-watermark","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"编译时配置","slug":"编译时配置","link":"#编译时配置","children":[{"level":3,"title":"disabled","slug":"disabled","link":"#disabled","children":[]}]},{"level":2,"title":"API","slug":"api","link":"#api","children":[{"level":3,"title":"createWatermark","slug":"createwatermark","link":"#createwatermark","children":[]}]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/watermark.md"}');export{e as data};
    diff --git a/assets/windicss.html.cc303ad2.js b/assets/windicss.html.6def97ac.js
    similarity index 72%
    rename from assets/windicss.html.cc303ad2.js
    rename to assets/windicss.html.6def97ac.js
    index 138510d3..f3728e4c 100644
    --- a/assets/windicss.html.cc303ad2.js
    +++ b/assets/windicss.html.6def97ac.js
    @@ -1 +1 @@
    -const e=JSON.parse('{"key":"v-392e58ee","path":"/reference/plugin/plugins/windicss.html","title":"@fesjs/plugin-windicss","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"配置","slug":"配置","link":"#配置","children":[]}],"git":{"updatedTime":1681713428000,"contributors":[{"name":"wanchun","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/windicss.md"}');export{e as data};
    +const e=JSON.parse('{"key":"v-392e58ee","path":"/reference/plugin/plugins/windicss.html","title":"@fesjs/plugin-windicss","lang":"zh-CN","frontmatter":{},"excerpt":"","headers":[{"level":2,"title":"介绍","slug":"介绍","link":"#介绍","children":[]},{"level":2,"title":"启用方式","slug":"启用方式","link":"#启用方式","children":[]},{"level":2,"title":"配置","slug":"配置","link":"#配置","children":[]}],"git":{"updatedTime":1682250578000,"contributors":[{"name":"听海","email":"445436867@qq.com","commits":1}]},"filePathRelative":"reference/plugin/plugins/windicss.md"}');export{e as data};
    diff --git a/assets/windicss.html.17e40609.js b/assets/windicss.html.ab8a587e.js
    similarity index 97%
    rename from assets/windicss.html.17e40609.js
    rename to assets/windicss.html.ab8a587e.js
    index 8205a24d..f6e17ea8 100644
    --- a/assets/windicss.html.17e40609.js
    +++ b/assets/windicss.html.ab8a587e.js
    @@ -1,4 +1,4 @@
    -import{_ as i,r as o,o as c,c as r,b as s,d as n,a as e,f as t}from"./app.005e0daf.js";const p={},d=s("h1",{id:"fesjs-plugin-windicss",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#fesjs-plugin-windicss","aria-hidden":"true"},"#"),n(" @fesjs/plugin-windicss")],-1),l={class:"custom-container warning"},u=s("p",{class:"custom-container-title"},"即将废弃",-1),h={href:"https://tailwindcss.com/",target:"_blank",rel:"noopener noreferrer"},v=t(`

    介绍

    windicss 支持

    启用方式

    package.json 中引入依赖:

    {
    +import{_ as i,r as o,o as c,c as r,b as s,d as n,a as e,f as t}from"./app.136d0839.js";const p={},d=s("h1",{id:"fesjs-plugin-windicss",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#fesjs-plugin-windicss","aria-hidden":"true"},"#"),n(" @fesjs/plugin-windicss")],-1),l={class:"custom-container warning"},u=s("p",{class:"custom-container-title"},"即将废弃",-1),h={href:"https://tailwindcss.com/",target:"_blank",rel:"noopener noreferrer"},v=t(`

    介绍

    windicss 支持

    启用方式

    package.json 中引入依赖:

    {
         "devDependencies": {
             "@fesjs/plugin-windicss": "^2.0.0"
         }
    diff --git a/guide/builder.html b/guide/builder.html
    index f59230ed..dfbeda0a 100644
    --- a/guide/builder.html
    +++ b/guide/builder.html
    @@ -24,10 +24,10 @@
         
         支持 Vite 和 Webpack 双构建 | Fes.js
         
    -    
    +    
       
       
    -    

    支持 Vite 和 Webpack 双构建

    Fes.js@3.0.x 版本支持 Vite 和 Webpack 两种构建方式,不再内置构建方式,需要开发者自行选择:

    • 选用 Vite 构建,安装 npm i @fesjs/builder-vite 依赖即可。
    • 选用 Webpack 构建,安装 npm i @fesjs/builder-webpack 依赖即可。

    使用差异

    由于 Fes.js 在 Vite 和 Webpack 上做了一层封装,开发者关心的构建配置不会太多。从使用上来说,主要存在以下几个差异点:

    配置

    Webpack 和 Vite 构建在配置方面有一些差异,具体可以查看配置

    静态文件处理

    由于 Vite 的限制,不支持 require 语法,具体 Vite 的用法可以查看官网在新窗口打开

    html 模版

    html 模版比较常规的需求,例如模版变量,Webpack 和 Vite 之间没什么差异。如果有其他特殊的需求, Webpack 可以使用 html-webpack-plugin在新窗口打开,Vite 使用vite-plugin-html在新窗口打开 进行个性化配置。

    提示

    fes3.0+ html 模版文件从 public/index.html 挪到项目根目录。

    - +

    支持 Vite 和 Webpack 双构建

    Fes.js@3.0.x 版本支持 Vite 和 Webpack 两种构建方式,不再内置构建方式,需要开发者自行选择:

    • 选用 Vite 构建,安装 npm i @fesjs/builder-vite 依赖即可。
    • 选用 Webpack 构建,安装 npm i @fesjs/builder-webpack 依赖即可。

    使用差异

    由于 Fes.js 在 Vite 和 Webpack 上做了一层封装,开发者关心的构建配置不会太多。从使用上来说,主要存在以下几个差异点:

    配置

    Webpack 和 Vite 构建在配置方面有一些差异,具体可以查看配置

    静态文件处理

    由于 Vite 的限制,不支持 require 语法,具体 Vite 的用法可以查看官网在新窗口打开

    html 模版

    html 模版比较常规的需求,例如模版变量,Webpack 和 Vite 之间没什么差异。如果有其他特殊的需求, Webpack 可以使用 html-webpack-plugin在新窗口打开,Vite 使用vite-plugin-html在新窗口打开 进行个性化配置。

    提示

    fes3.0+ html 模版文件从 public/index.html 挪到项目根目录。

    + diff --git a/guide/config.html b/guide/config.html index 6a55c3bf..a13124e4 100644 --- a/guide/config.html +++ b/guide/config.html @@ -24,7 +24,7 @@ 编译时配置 | Fes.js - +

    编译时配置

    Fes.js 约定 .fes.js 文件为项目编译需要编译时配置文件,可以引入 node 端依赖项,不要引入浏览器端依赖项。

    一份常见的配置示例如下(更多配置项请查阅配置):

    import { defineBuildConfig } from '@fesjs/fes';
    @@ -85,7 +85,7 @@
         mock: true,
         devServer: { port: 8000 }
     };
    -

    优先级

    本地临时配置 > 环境配置 > 基础配置

    提示

    如果多份配置中存在相同的配置项,则优先级高的会覆盖优先级低的

    - +

    优先级

    本地临时配置 > 环境配置 > 基础配置

    提示

    如果多份配置中存在相同的配置项,则优先级高的会覆盖优先级低的

    + diff --git a/guide/contributing.html b/guide/contributing.html index 2003a013..2053dbcb 100644 --- a/guide/contributing.html +++ b/guide/contributing.html @@ -24,7 +24,7 @@ 贡献指南 | Fes.js - +

    贡献指南

    包概览

    项目仓库借助于 pnpm 工作区在新窗口打开 来实现 Monorepo在新窗口打开 ,在 packages 目录下存放多个互相关联的独立包。

    • @fesjs/create-fes-app: 创建项目模板模块。提供create-fes-app命令,提供创建多种类型项目模板的能力。

    • @fesjs/compiler: 编译时插件管理模块。定义插件的生命周期、插件配置、插件通讯机制等。

    • @fesjs/runtime: 运行时插件模块。集成了 vue-router,定义运行时插件生命周期、插件通讯机制。

    • @fesjs/preset-build-in: 内置插件集。包含devbuild等命令,集成 webpack5+babel,提供方便编写插件的 API,入口文件处理,路由处理等能力。

    • @fesjs/fes-template: 适用于 PC 类型的模板项目。

    • @fesjs/fes-template-h5: 适用于 H5 类型的模板项目。

    • @fesjs/plugin-${name}: 官方插件。

    • @fesjs/fes: 入口模块。提供fes命令和 API 入口,封装@fesjs/compiler + @fesjs/runtime + @fesjs/preset-build-in,用户只需要安装此依赖和其他插件。

    开发准备

    开发要求:

    本项目开发使用的一些主要工具:

    克隆仓库:

    git clone https://github.com/WeBankFinTech/fes.js.git
    @@ -34,7 +34,7 @@
     

    第三步:查看更新

    当 md 文档保存后,文档会自动更新,在http://localhost:8080/查看。

    贡献源码

    Fes.js统一使用ES Module规范编写源码,代码会在 node 端和浏览器端执行,所以源码需要编译后才能发布成包,再被执行。

    启动编译服务

    pnpm dev
     

    当我们修改build.config.js中配置的包代码时,会把src目录的源码编译后到lib目录。

    修改源码

    在了解Fes.js设计前提下,修改核心代码或者插件代码。

    验证修改内容

    根据需求选择模板项目来验证修改内容,比如选择fes-template

    1. 查看需待验证包是否已经添加到模板项目的依赖中,如果没有则在模板项目的 package.json 中添加包依赖,添加后在根目录执行pnpm关联依赖
    2. 启动模板项目的开发服务
    cd packages/fes-template
     pnpm dev
    -
    1. 在项目模板中添加代码验证修改内容
    2. 打开localhost:8000查看结果

    快速调试技巧

    每次修改插件或者核心代码后,等待自动编译完,需要在模板目录重新执行fes dev,比较费时费力。

    可以先在模板的 .fes 目录中找到对应临时代码,更改逻辑,验证完后再将变更逻辑保存到正式文件中。

    注意

    直接修改临时文件切莫重新执行fes dev,修改会被覆盖。

    提交 PR

    1. fork 项目!
    2. 创建你的功能分支: git checkout -b my-new-feature
    3. 本地提交新代码: git commit -am 'Add some feature'
    4. 推送本地到服务器分支: git push origin my-new-feature
    5. 创建一个 PR
    - +
    1. 在项目模板中添加代码验证修改内容
    2. 打开localhost:8000查看结果

    快速调试技巧

    每次修改插件或者核心代码后,等待自动编译完,需要在模板目录重新执行fes dev,比较费时费力。

    可以先在模板的 .fes 目录中找到对应临时代码,更改逻辑,验证完后再将变更逻辑保存到正式文件中。

    注意

    直接修改临时文件切莫重新执行fes dev,修改会被覆盖。

    提交 PR

    1. fork 项目!
    2. 创建你的功能分支: git checkout -b my-new-feature
    3. 本地提交新代码: git commit -am 'Add some feature'
    4. 推送本地到服务器分支: git push origin my-new-feature
    5. 创建一个 PR
    + diff --git a/guide/css.html b/guide/css.html index f69e86b0..5d796db7 100644 --- a/guide/css.html +++ b/guide/css.html @@ -24,7 +24,7 @@ 使用 css | Fes.js - +

    使用 css

    提示

    本文档以 css 为示例,把后缀换成 .less 同样适用。

    全局样式

    Fes.js 中约定 src/global.css 为全局样式,如果存在此文件,会被自动引入到入口文件最前面。

    比如用于覆盖样式,

    .layout-content {
    @@ -43,7 +43,7 @@
     }
     

    如果想直接引入CSS文件的话,则CSS文件名需要包含.module,比如:

    import style from '@/styles/index.module.css'
     console.log(style)
    -

    CSS 预处理器

    Fes.js 内置支持 less,不支持 sassstylus,但如果有需求,可以通过 chainWebpack 配置或者 fes-plugin 插件的形式支持。

    - +

    CSS 预处理器

    Fes.js 内置支持 less,不支持 sassstylus,但如果有需求,可以通过 chainWebpack 配置或者 fes-plugin 插件的形式支持。

    + diff --git a/guide/directory-structure.html b/guide/directory-structure.html index 061c8c45..8bf60fff 100644 --- a/guide/directory-structure.html +++ b/guide/directory-structure.html @@ -24,7 +24,7 @@ 目录结构 | Fes.js - +

    目录结构

    快速上手中,大家对框架应该有初步的印象,接下来我们了解下目录结构。Fes.js 遵循 约定优于配置 的原则,一个基础的 Fes.js 项目大致是这样的:

    fes-template
    @@ -96,7 +96,7 @@
     FES_ENV=prod
     

    等同于 node 端运行时,设置如下:

    process.env.PORT = '8888';
     process.env.FES_ENV = 'prod';
    -

    dist 目录

    执行 fes build 后,产物默认会存放在这里。

    public 目录

    此目录下所有文件为静态资源,会被复制到输出路径。

    index.html

    默认的 html 模板文件,如果删除此 html 则会使用内置的 html 模板文件。

    src 目录

    .fes 目录

    临时文件目录,比如入口文件、路由等,都会被临时生成到这里。

    注意

    不要提交 .fes 目录到 git 仓库,他们会在 fes devfes build 时被删除并重新生成。

    pages 目录

    所有路由组件文件存放在这里。

    app.js

    运行时配置文件,可以在这里扩展运行时的能力,比如修改路由等。

    - +

    dist 目录

    执行 fes build 后,产物默认会存放在这里。

    public 目录

    此目录下所有文件为静态资源,会被复制到输出路径。

    index.html

    默认的 html 模板文件,如果删除此 html 则会使用内置的 html 模板文件。

    src 目录

    .fes 目录

    临时文件目录,比如入口文件、路由等,都会被临时生成到这里。

    注意

    不要提交 .fes 目录到 git 仓库,他们会在 fes devfes build 时被删除并重新生成。

    pages 目录

    所有路由组件文件存放在这里。

    app.js

    运行时配置文件,可以在这里扩展运行时的能力,比如修改路由等。

    + diff --git a/guide/env.html b/guide/env.html index db8e90d4..6182e058 100644 --- a/guide/env.html +++ b/guide/env.html @@ -24,7 +24,7 @@ 环境变量 | Fes.js - +

    环境变量

    在构建或者代码在端上运行中需要一些跟区分于环境的变量,用于配置构建流程或者运行时过程,这时候我们可以配置环境变量。

    配置环境变量

    命令行添加

    比如:

    # OS X, Linux
    @@ -44,7 +44,7 @@ cross-env PORT

    ANALYZE_MODE

    默认是server

    ANALYZE_PORT

    默认是8888

    CLEAR_OUTPUT

    仅仅在 build 时生效。如果设置为 none,就不会在构建前清除 Output 文件内容。

    RM_TMPDIR

    仅仅在 build 时生效。如果设置为 none,就不会在构建后清除 .fes 临时文件内容。

    process.env

    运行时配置需要以 FES_APP_ 开头,比如在 .env 中配置:

    FES_APP_KEY=123456789
     

    在代码中使用:

    console.log(process.env.FES_APP_KEY);
     // 输出 123456789
    -

    除了用户自定义的以FES_APP_开头的变量,还提供如下配置:

    • NODE_ENV:Node 环境变量

    • FES_ENV:Fes.js 环境变量

    • BASE_URL:等同于 publicPath

    - +

    除了用户自定义的以FES_APP_开头的变量,还提供如下配置:

    • NODE_ENV:Node 环境变量

    • FES_ENV:Fes.js 环境变量

    • BASE_URL:等同于 publicPath

    + diff --git a/guide/faq.html b/guide/faq.html index 8a07f4e1..6367894f 100644 --- a/guide/faq.html +++ b/guide/faq.html @@ -24,12 +24,12 @@ 常见问题 | Fes.js - + - +
    + diff --git a/guide/getting-started.html b/guide/getting-started.html index 13e81a34..1a85dbf8 100644 --- a/guide/getting-started.html +++ b/guide/getting-started.html @@ -24,7 +24,7 @@ 快速上手 | Fes.js - + - +

    本地验证

    发布之前,可以通过 serve在新窗口打开 做本地验证,验证结果应该跟执行 fes dev 的结果一样。

    部署

    本地验证完,就可以部署了。你需要把 dist 目录部署到服务器上。

    + diff --git a/guide/image.html b/guide/image.html index e86fed44..6c521ced 100644 --- a/guide/image.html +++ b/guide/image.html @@ -24,7 +24,7 @@ 使用图片 | Fes.js - + - +
    + diff --git a/guide/index.html b/guide/index.html index e6a310c3..afd0dd8c 100644 --- a/guide/index.html +++ b/guide/index.html @@ -24,7 +24,7 @@ 介绍 | Fes.js - +

    介绍

    痛点

    在开发一个前端项目之前,我们可能需要做如下准备工作:

    • 搭建开发环境
    • 约定代码规范
    • 封装API请求
    • 配置路由
    • 实现布局、菜单、导航
    • 实现登录
    • 权限管理
    • ...

    除了准备工作之外,还会遇到很多相似的业务类型,比如中后台应用大多都是工作台、增删改查、权限、图表等。如果每次项目都完全手动处理一遍,不仅耗费时间,久而久之可能会存在多种技术栈、开发规范,导致开发流程不统一,历史项目越来越难维护。所以我们需要一套完整的解决方案,管理开发到部署整个流程。

    Fes.js 是什么?

    Fes.js 是一个好用的前端应用解决方案。Fes.js 以 Vue 3.0 和路由为基础,同时支持配置式路由和约定式路由,并以此进行功能扩展。配以覆盖编译时和运行时生命周期完善的插件体系,支持各种功能扩展和业务需求。

    它主要具备以下特点:

    • 🚀 快速 ,内置了路由、开发、构建等,并且提供测试、布局、权限、国际化、状态管理、API请求、数据字典、SvgIcon等插件,可以满足大部分日常开发需求。

    • 🧨 简单 ,基于Vue.js 3.0,上手简单。贯彻“约定优于配置”思想,设计插件上尽可能用约定替代配置,同时提供统一的插件配置入口,简单简洁又不失灵活。提供一致性的API入口,一致化的体验,学习起来更轻松。

    • 💪 健壮 ,只需要关心页面内容,减少写BUG的机会!提供单元测试、覆盖测试能力保障项目质量。

    • 📦 可扩展 ,借鉴Umi实现了完整的生命周期和插件化机制,插件可以管理项目的编译时和运行时,能力均可以通过插件封装进来,在 Fes.js 中协调有序的运行。

    • 📡 面向未来 ,在满足需求的同时,我们也不会停止对新技术的探索。已使用Vue3.0来提升应用性能,已使用webpack5提升构建性能和实现微服务,未来会探索vite等新技术。

    Fes.js 如何工作?

    架构

    架构

    Fes.js 把大家常用的技术栈封装成一个个插件进行整理,收敛到一起,让大家只用 Fes.js 就可以完成 80% 的日常工作。

    插件和插件集

    插件

    Fes.js 支持插件和插件集,通过这张图应该很好理解到他们的关系,通过插件集我们把插件收敛依赖然后支持不同的业务类型。

    .fes 临时文件

    .fes 临时目录是整个 Fes.js 项目的发动机,你的入口文件、路由等等都在这里,这些是由 fes 内部插件及三方插件生成的。

    你通常会在 .fes 下看到以下目录

    + .fes
    @@ -32,7 +32,7 @@
       + pluginA  # 外部插件生成
       + presetB  # 外部插件生成
       + fes.js   # 入口文件
    -

    临时文件是 Fes.js 中非常重要的一部分,框架或插件会根据你的代码生成临时文件,这些原来需要放在项目里的脏乱差的部分都被藏在了这里。

    你可以在这里调试代码,但不要在 .git 仓库里提交他,因为他的临时性,每次启动 fes 时都会被删除并重新生成。

    为什么不是 ...?

    Vue CLI

    Vue CLI 是基于 Vue.js 进行快速开发的完整系统,提供交互式脚手架、丰富的官方插件,并且可通过插件进行扩展,他在打包层把体验做到了极致,但是不包含路由,不是框架。所以,如果大家想基于他修改部分配置,或者希望在打包层之外也做技术收敛时,就会遇到困难。

    UMI

    UMI 是个很好的选择,Fes.js 很多功能是借鉴 UMI 做的。UMI 是基于 React 封装的应用级框架,贯彻着函数式编程的思维。而 Vue 有所不同,虽然 Vue 3.0 向函数式迈了一大步,但大家可能依然喜欢编写 .vue文件,而非 .jsx 文件。两种思维方式会导致部分API设计上有所差异,虽然 UMI 有 plugin-vue ,但不太 "vue"。推荐喜欢 React 的同学使用 UMI。

    - +

    临时文件是 Fes.js 中非常重要的一部分,框架或插件会根据你的代码生成临时文件,这些原来需要放在项目里的脏乱差的部分都被藏在了这里。

    你可以在这里调试代码,但不要在 .git 仓库里提交他,因为他的临时性,每次启动 fes 时都会被删除并重新生成。

    为什么不是 ...?

    Vue CLI

    Vue CLI 是基于 Vue.js 进行快速开发的完整系统,提供交互式脚手架、丰富的官方插件,并且可通过插件进行扩展,他在打包层把体验做到了极致,但是不包含路由,不是框架。所以,如果大家想基于他修改部分配置,或者希望在打包层之外也做技术收敛时,就会遇到困难。

    UMI

    UMI 是个很好的选择,Fes.js 很多功能是借鉴 UMI 做的。UMI 是基于 React 封装的应用级框架,贯彻着函数式编程的思维。而 Vue 有所不同,虽然 Vue 3.0 向函数式迈了一大步,但大家可能依然喜欢编写 .vue文件,而非 .jsx 文件。两种思维方式会导致部分API设计上有所差异,虽然 UMI 有 plugin-vue ,但不太 "vue"。推荐喜欢 React 的同学使用 UMI。

    + diff --git a/guide/mock.html b/guide/mock.html index 2132434d..d4086397 100644 --- a/guide/mock.html +++ b/guide/mock.html @@ -24,7 +24,7 @@ Mock 数据 | Fes.js - +

    Mock 数据

    Mock 数据是前端开发过程中必不可少的一环,是分离前后端开发的关键链路。通过预先跟服务器端约定好的接口,模拟请求数据甚至逻辑,能够让前端开发独立自主,不会被服务端的开发所阻塞。

    约定式 Mock 文件

    Fes.js 约定 ./mock.js 为 mock 文件。

    比如:

    .
    @@ -186,7 +186,7 @@
     

    utils 参数

    工具函数:

    • utils.file(path),从项目根目录根据 path 寻找文件,返回文件流。

    配置 Mock

    详见配置 mock

    关闭 Mock

    可以通过配置关闭。

    export default {
         mock: false,
     };
    -
    - +
    + diff --git a/guide/plugin.html b/guide/plugin.html index e11c56e1..938160f3 100644 --- a/guide/plugin.html +++ b/guide/plugin.html @@ -24,7 +24,7 @@ 插件 | Fes.js - +

    插件

    插件的 id 和 key

    每个插件都会对应一个 id 和一个 keyid 是路径的简写,key 是进一步简化后用于配置的唯一值

    比如插件 /node_modules/@fesjs/plugin-foo/index.js,通常来说,其 id@fesjs/plugin-fookeyfoo

    提示

    id 一般用不上,对于普通开发者 key 用来配置插件,而插件开发者可以使用 key 判断是否安装某个插件。

    启动插件

    有多种方式引入插件

    package.json 依赖

    Fes.js 会自动检测 dependenciesdevDependencies 里的 fes 插件,比如:

    {
    @@ -45,7 +45,7 @@
             prefix: '/v2',
         },
     };
    -

    这里的 mock 是 Mock 插件 的 key。

    - +

    这里的 mock 是 Mock 插件 的 key。

    + diff --git a/guide/public.html b/guide/public.html index f2e224cd..7b72588f 100644 --- a/guide/public.html +++ b/guide/public.html @@ -24,7 +24,7 @@ 静态资源 | Fes.js - + - +
    + diff --git a/guide/route.html b/guide/route.html index 5b2b0380..a5f0bd2d 100644 --- a/guide/route.html +++ b/guide/route.html @@ -24,7 +24,7 @@ 路由 | Fes.js - + - +
    + diff --git a/guide/runtime-config.html b/guide/runtime-config.html index 0f8b67a7..daec5f1c 100644 --- a/guide/runtime-config.html +++ b/guide/runtime-config.html @@ -24,7 +24,7 @@ 运行时配置 | Fes.js - +

    运行时配置

    Fes.js 约定 src/app.js 为运行时配置文件。运行时配置和配置的区别是他跑在浏览器端,因此我们可以在这里写函数、引入浏览器端依赖项等等,注意不要引入 node 端依赖项。

    运行时为啥需要配置?

    Fes.js 框架跟传统开发模式不一样。传统开发模式中用户编写 entry 文件,而 Fes.js 中 entry 文件由框架生成,用户就不必要编写胶水代码。内置插件和其他插件提供的一些运行时功能提供用户或者其他插件自定义。

    例如:

    plugin-access 插件定义运行时配置项:

    api.addRuntimePluginKey(() => 'access');
    @@ -163,7 +163,7 @@
             console.log(to);
         });
     }
    -

    更多配置项

    Fes.js 允许插件注册运行时配置,如果你使用插件,肯定会在插件里找到更多运行时的配置项。

    - +

    更多配置项

    Fes.js 允许插件注册运行时配置,如果你使用插件,肯定会在插件里找到更多运行时的配置项。

    + diff --git a/guide/template.html b/guide/template.html index de0d1dc7..468ea3ec 100644 --- a/guide/template.html +++ b/guide/template.html @@ -24,7 +24,7 @@ HTML 模板 | Fes.js - + - +
    + diff --git a/guide/upgrade3.html b/guide/upgrade3.html index 3ce50b36..ae9611e8 100644 --- a/guide/upgrade3.html +++ b/guide/upgrade3.html @@ -24,10 +24,10 @@ 从 2.0.x 迁移到 3.0.x | Fes.js - + -

    从 2.0.x 迁移到 3.0.x

    版本 3.0.x 的 break

    1. 编译时的 base 配置,移到了 router.base 下。
    2. webpack-dev-server在新窗口打开v3.x 升级到了 v4.x,如果遇到配置不兼容,可以查看webpack-dev-server 3.x 升级 4.x在新窗口打开

    继续使用 Webpack

    1. 添加 Webpack 构建依赖包: npm i @fesjs/builder-webpack -D
    2. 如果有,将 public/index.html 文件挪到项目根目录,移除 html-webpack-plugin在新窗口打开 相关配置,具体模版变量使用请查看HTML 模版

    换成 Vite

    1. 安装依赖包 npm i @fesjs/builder-vite
    2. 将 Webpack 相关的配置换成 Vite,具体可查看配置
    3. 将 html 模版文件从 public/index.html 挪到项目根目录,如果有相应的 html-webpack-plugin在新窗口打开 配置,需要改成 vite-plugin-html在新窗口打开 的写法。
    4. require 等 Vite 不支持的代码,改写成 Vite 支持的方式。

    插件

    插件都需要升级到 3.0.x 版本,新版添加了兼容builder的逻辑,但是提供的接口和配置没有变化,只需要升级版本即可使用。

    - +

    从 2.0.x 迁移到 3.0.x

    版本 3.0.x 的 break

    1. 编译时的 base 配置,移到了 router.base 下。
    2. webpack-dev-server在新窗口打开v3.x 升级到了 v4.x,如果遇到配置不兼容,可以查看webpack-dev-server 3.x 升级 4.x在新窗口打开

    继续使用 Webpack

    1. 添加 Webpack 构建依赖包: npm i @fesjs/builder-webpack -D
    2. 如果有,将 public/index.html 文件挪到项目根目录,移除 html-webpack-plugin在新窗口打开 相关配置,具体模版变量使用请查看HTML 模版

    换成 Vite

    1. 安装依赖包 npm i @fesjs/builder-vite
    2. 将 Webpack 相关的配置换成 Vite,具体可查看配置
    3. 将 html 模版文件从 public/index.html 挪到项目根目录,如果有相应的 html-webpack-plugin在新窗口打开 配置,需要改成 vite-plugin-html在新窗口打开 的写法。
    4. require 等 Vite 不支持的代码,改写成 Vite 支持的方式。

    插件

    插件都需要升级到 3.0.x 版本,新版添加了兼容builder的逻辑,但是提供的接口和配置没有变化,只需要升级版本即可使用。

    + diff --git a/index.html b/index.html index d59820d6..006645c9 100644 --- a/index.html +++ b/index.html @@ -24,7 +24,7 @@ 首页 | Fes.js - +
    Fes.js

    Fes.js

    一个好用的前端应用解决方案

    快速上手 项目简介

    Fast

    Fes.js 内置路由、构建、插件管理,提供测试、布局、权限、国际化、状态管理、请求、数据字典、SVG等插件,可以满足大部分日常开发需求。

    Easy

    基于Vue.js 3.0,上手非常简单。贯彻 “约定优于配置” 思想,在设计插件上尽可能用约定替代配置,依然提供统一的插件配置入口,简单简洁又不失灵活。提供一致性的API入口,一致化的体验,学习起来更轻松。

    Strong

    仅仅需要关心页面内容,减少犯错的机会!提供单元测试、覆盖测试的能力保障项目质量。

    可扩展

    借鉴 UMI 实现完整的生命周期和插件化机制,插件可以管理项目的编译时和运行时,能力均可以通过插件封装进来,在 Fes.js 中协调有序的运行。

    面向未来

    在满足需求的同时,我们也不会停止对新技术的探索。已使用 Vue3.0 来提升应用性能,已使用 webpack5 和 vite 提升构建性能和实现微服务。

    令人愉悦

    我们的主要重点是开发人员体验。我们喜欢 Fes.js,并且会不断改进框架,所以您也喜欢它!期待有吸引力的解决方案,描述性的错误消息,强大的默认值和详细的文档。如果有问题或疑问,我们有用的社区将为您提供帮助。

    像数 1, 2, 3 一样容易

    # 创建模板
    @@ -44,6 +44,6 @@ npx @fesjs/create-fes-app myapp
     # 运行
     npm run dev
     

    反馈

    Github IssueFes.js 开源运营小助手
    @fesjs/fes.js/issues在新窗口打开
    - + diff --git a/reference/api.html b/reference/api.html index 744fc7f5..98a4683a 100644 --- a/reference/api.html +++ b/reference/api.html @@ -24,10 +24,10 @@ API | Fes.js - + -
    - +
    + diff --git a/reference/api/index.html b/reference/api/index.html index 35a0d642..01322a19 100644 --- a/reference/api/index.html +++ b/reference/api/index.html @@ -24,7 +24,7 @@ API | Fes.js - +
    - +

    可以查看官方文档在新窗口打开了解更多 RouterView 的 Porps。查看官方文档在新窗口打开了解 RouterView 的作用域插槽。

    其他 Router Methods

    查看vue-router 官方文档在新窗口打开了解更多。

    + diff --git a/reference/cli.html b/reference/cli.html index 95644496..71b492d8 100644 --- a/reference/cli.html +++ b/reference/cli.html @@ -24,7 +24,7 @@ 命令行接口 | Fes.js - +

    命令行接口

    VuePress 命令行接口是由 @vuepress/cli在新窗口打开 包提供的。它是 vuepress在新窗口打开 包的依赖之一,当然你也可以单独安装它。

    执行 vuepress --help 来获取下列帮助信息:

    Usage:
    @@ -72,7 +72,7 @@ Options:
       --debug                Enable debug mode
       -v, --version          Display version number
       -h, --help             Display this message
    -

    提示

    通过命令行设置的配置项,会覆盖你配置文件中的同名配置项。

    info

    输出当前系统和依赖相关的信息。

    在你想要检查你的环境,或者提交 Issue 时候,可以使用该命令。

    - +

    提示

    通过命令行设置的配置项,会覆盖你配置文件中的同名配置项。

    info

    输出当前系统和依赖相关的信息。

    在你想要检查你的环境,或者提交 Issue 时候,可以使用该命令。

    + diff --git a/reference/cli/index.html b/reference/cli/index.html index 98812c49..8393b406 100644 --- a/reference/cli/index.html +++ b/reference/cli/index.html @@ -24,7 +24,7 @@ 命令行工具 | Fes.js - +

    命令行工具

    create-fes-app

    通过 create-fes-app 命令创建项目模板,输入create-fes-app -h则可以看到如下信息:

    Usage: create-fes-app <name>
    @@ -112,7 +112,7 @@ Options:
       --verbose              show full function definitions in output
       -h, --help             display help for command
     

    比如:

    fes webpack
    -
    - + + diff --git a/reference/config/index.html b/reference/config/index.html index 28cef742..0c05c711 100644 --- a/reference/config/index.html +++ b/reference/config/index.html @@ -24,10 +24,10 @@ | Fes.js - + -

    配置文件

    Fes.js 内置了比较通用的构建方式,如果没有个性化需求,不需要修改构建相关的配置。

    配置文件解析

    Fes.js 会自动解析项目根目录下的 .fes.js 文件。

    最基础的配置文件是这样的:

    // .fes.js
    +    

    配置文件

    Fes.js 内置了比较通用的构建方式,如果没有个性化需求,不需要修改构建相关的配置。

    配置文件解析

    Fes.js 会自动解析项目根目录下的 .fes.js 文件。

    最基础的配置文件是这样的:

    // .fes.js
     export default {};
     

    可以通过环境变量 FES_ENV 进行环境差异化配置,当我们运行 FES_ENV=prod fes dev 时,Fes.js 会找到 .fes.js.fes.prod.js(可选) 的配置文件进行 deepmerge

    配置智能提示

    可以通过 defineBuildConfig 工具函数获取类型提示:

    import { defineBuildConfig } from '@fesjs/fes';
     
    @@ -129,7 +129,16 @@
             to: 'assets/images',
         },
     };
    -

    上面示例中,实现了将 cwd 路径中的 /src/assets/images 文件夹,在编译完成后,copy 到输出路径下的 assets/images 文件夹。

    devServer

    • 类型: object

    • 默认值: {}

    • 详情:

      配置开发服务器。支持以下子配置项:

      • port,端口号,默认 8000
      • host,默认 localhost
      • https,是否启用 https server,同时也会开启 HTTP/2

      启用 port 和 host 也可以通过环境变量 PORTHOST 临时指定。

    devtool

    exportStatic

    • 类型: object
    • 默认值: {}
    • 详情:

    配置 html 的输出形式,默认只输出 index.html

    如果开启 exportStatic,则会针对每个路由输出 html 文件。

    比如以下路由,

    /
    +

    上面示例中,实现了将 cwd 路径中的 /src/assets/images 文件夹,在编译完成后,copy 到输出路径下的 assets/images 文件夹。

    devServer

    • 类型: object

    • 默认值: {}

    • 详情:

      配置开发服务器。支持以下子配置项:

      • port,端口号,默认 8000
      • host,默认 localhost
      • https,是否启用 https server,同时也会开启 HTTP/2

      启用 port 和 host 也可以通过环境变量 PORTHOST 临时指定。

    devtool

    extraCSS

    • 类型: object

    • 默认值: {}

    • 详情:

      配置如何使用mini-css-extract-plugin,默认使用插件的默认配置。loader 选项对应loader参数,plugin选项对应插件参数。例如:

    export default {
    +    // 配置 mini-css-extract-plugin
    +    extraCSS: {
    +        loader: {
    +            publicPath: (resourcePath, context) => `${path.relative(path.dirname(resourcePath), context)}/`,
    +        },
    +    },
    +};
    +
    +

    exportStatic

    • 类型: object
    • 默认值: {}
    • 详情:

    配置 html 的输出形式,默认只输出 index.html

    如果开启 exportStatic,则会针对每个路由输出 html 文件。

    比如以下路由,

    /
     /users
     /list
     

    不开启 exportStatic 时,输出,

    - index.html
    @@ -144,7 +153,7 @@
     

    extraBabelPlugins

    • 类型: array
    • 默认值: []
    • 详情:

    配置额外的 babel 插件。

    • 示例:
    export default {
         extraBabelPlugins: [['import', { libraryName: 'ant-design-vue', libraryDirectory: 'es', style: 'css' }]],
     };
    -

    extraBabelPresets

    • 类型: array
    • 默认值: []
    • 详情:

    配置额外的 babel 插件集。

    extraPostCSSPlugins

    html

    lessLoader

    nodeModulesTransform

    • 类型: object

    • 默认值: { exclude: [] }

    • 详情:

      默认编译所有 node_modules 下的包,可以通过配置 exclude 来跳过某些包,以提高编译速度。

    postcssLoader

    vueLoader

    Vite 专属配置

    viteOption

    viteVuePlugin

    viteVueJsx

    viteLegacy

    viteHtml

    更多配置项

    Fes.js 允许插件注册配置,如果你使用插件,肯定会在插件里找到更多配置项。

    - +

    extraBabelPresets

    • 类型: array
    • 默认值: []
    • 详情:

    配置额外的 babel 插件集。

    extraPostCSSPlugins

    html

    lessLoader

    nodeModulesTransform

    • 类型: object

    • 默认值: { exclude: [] }

    • 详情:

      默认编译所有 node_modules 下的包,可以通过配置 exclude 来跳过某些包,以提高编译速度。

    postcssLoader

    vueLoader

    Vite 专属配置

    viteOption

    viteVuePlugin

    viteVueJsx

    viteLegacy

    viteHtml

    更多配置项

    Fes.js 允许插件注册配置,如果你使用插件,肯定会在插件里找到更多配置项。

    + diff --git a/reference/plugin/dev/api.html b/reference/plugin/dev/api.html index 6f50115c..b4bf988b 100644 --- a/reference/plugin/dev/api.html +++ b/reference/plugin/dev/api.html @@ -24,7 +24,7 @@ 插件 API | Fes.js - +

    插件 API

    属性

    api.paths

    一些关键的路径:

    • cwd,执行命令的绝对路径
    • absNodeModulesPath,nodeModule 的绝对路径
    • absOutputPath,输出 build 产物的绝对路径
    • absSrcPath,src 目录的绝对路径
    • absPagesPath,pages目录的绝对路径
    • absTmpPath,.fes临时文件目录的绝对路径

    api.cwd

    执行命令的绝对路径

    api.pkg

    package.json的内容

    api.configInstance

    config实例

    userConfig

    用户配置

    config

    插件配置可被修改,此为最终的配置

    env

    process.env

    args

    环境变量

    核心方法

    describe

    注册阶段执行,用于描述插件或插件集的 id、key、配置信息、启用方式等。

    用法:describe({ id?: string, key?: string, config?: { default, schema, onChange } }, enableBy?)

    例如:

    api.describe({
    @@ -222,7 +222,7 @@ api.modifyRo
             REPLACE_ROLES: JSON.stringify(roles),
         }),
     });
    -

    参数:

    • path:相对于临时文件夹的路径
    • content:文件内容

    提示

    不能在注册阶段使用,通常放在 api.onGenerateFiles() 里,这样能在需要时重新生成临时文件 临时文件的写入做了缓存处理,如果内容一致,不会做写的操作,以减少触发 webpack 的重新编译

    - +

    参数:

    提示

    不能在注册阶段使用,通常放在 api.onGenerateFiles() 里,这样能在需要时重新生成临时文件 临时文件的写入做了缓存处理,如果内容一致,不会做写的操作,以减少触发 webpack 的重新编译

    + diff --git a/reference/plugin/dev/index.html b/reference/plugin/dev/index.html index 72077526..ac429a2f 100644 --- a/reference/plugin/dev/index.html +++ b/reference/plugin/dev/index.html @@ -24,7 +24,7 @@ 插件介绍 | Fes.js - +

    插件介绍

    开始

    一个插件是一个 npm 包,它能够为 Fes.js 创建的项目添加额外的功能,这些功能包括:

    • 项目的 webpack 配置。
    • 修改项目的 babel 配置。
    • 添加新的 fes 命令 - 例如 @fes/plugin-jest 添加了 fes test 命令,允许开发者运行单元测试。
    • 集成 Vue 的插件。
    • 修改路由配置
    • 提供运行时 API
    • ...

    插件的入口是一个函数,函数会以 API 对象作为第一个参数:

    export default (api) => {
    @@ -43,7 +43,7 @@
     
    第二步:创建插件项目
    create-fes-app pluginName
     

    在询问Pick an template时选择Plugin!

    第三步:进入插件目录 & 安装依赖
    cd pluginName & pnpm i
     
    第四步:启动编译
    pnpm dev
    -
    第五步:使用插件 API 完成你的插件!(可以参考其他插件理解 api 用法和场景)

    发布到 npm

    @fesjs/preset-@fesjs/plugin-@webank/fes-preset-@webank/fes-plugin-fes-preset-fes-plugin- 开头的依赖会被 Fes.js 自动注册为插件或插件集。

    所以编写好的插件想发布到 npm 供其他人使用,包名必须是 fes-preset-fes-plugin- 开头。

    - +
    第五步:使用插件 API 完成你的插件!(可以参考其他插件理解 api 用法和场景)

    发布到 npm

    @fesjs/preset-@fesjs/plugin-@webank/fes-preset-@webank/fes-plugin-fes-preset-fes-plugin- 开头的依赖会被 Fes.js 自动注册为插件或插件集。

    所以编写好的插件想发布到 npm 供其他人使用,包名必须是 fes-preset-fes-plugin- 开头。

    + diff --git a/reference/plugin/index.html b/reference/plugin/index.html index c6210962..7bec47ff 100644 --- a/reference/plugin/index.html +++ b/reference/plugin/index.html @@ -24,10 +24,10 @@ 介绍 | Fes.js - + -

    介绍

    插件列表

    插件介绍
    @fesjs/plugin-access提供对页面资源的权限控制能力
    @fesjs/plugin-enums提供统一的枚举存取及丰富的函数来处理枚举
    @fesjs/plugin-iconsvg 文件自动注册为组件
    @fesjs/plugin-jest基于 Jest,提供单元测试、覆盖测试能力
    @fesjs/plugin-layout简单的配置即可拥有布局,包括导航以及侧边栏
    @fesjs/plugin-locale基于 Vue I18n,提供国际化能力
    @fesjs/plugin-model简易的数据管理方案
    @fesjs/plugin-request基于 Axios 封装的 request,内置防止重复请求、请求节流、错误处理等功能
    @fesjs/plugin-vuex基于 Vuex, 提供状态管理能力
    @fesjs/plugin-qiankun基于 qiankun,提供微服务能力
    @fesjs/plugin-sass样式支持sass
    @fesjs/plugin-monaco-editor提供代码编辑器能力, 基于monaco-editor(VS Code使用的代码编辑器)
    @fesjs/plugin-windicss基于 windicss,提供原子化 CSS 能力
    @fesjs/plugin-pinia基于 pinia,提供状态管理
    @fesjs/plugin-watermark水印
    @fesjs/plugin-swcswc

    架构

    架构

    Fes.js 把大家常用的技术栈封装成一个个插件进行整理,收敛到一起,让大家只用 Fes.js 就可以完成 80% 的日常工作。

    - +

    介绍

    插件列表

    插件介绍
    @fesjs/plugin-access提供对页面资源的权限控制能力
    @fesjs/plugin-enums提供统一的枚举存取及丰富的函数来处理枚举
    @fesjs/plugin-iconsvg 文件自动注册为组件
    @fesjs/plugin-jest基于 Jest,提供单元测试、覆盖测试能力
    @fesjs/plugin-layout简单的配置即可拥有布局,包括导航以及侧边栏
    @fesjs/plugin-locale基于 Vue I18n,提供国际化能力
    @fesjs/plugin-model简易的数据管理方案
    @fesjs/plugin-request基于 Axios 封装的 request,内置防止重复请求、请求节流、错误处理等功能
    @fesjs/plugin-vuex基于 Vuex, 提供状态管理能力
    @fesjs/plugin-qiankun基于 qiankun,提供微服务能力
    @fesjs/plugin-sass样式支持sass
    @fesjs/plugin-monaco-editor提供代码编辑器能力, 基于monaco-editor(VS Code使用的代码编辑器)
    @fesjs/plugin-windicss基于 windicss,提供原子化 CSS 能力
    @fesjs/plugin-pinia基于 pinia,提供状态管理
    @fesjs/plugin-watermark水印
    @fesjs/plugin-swcswc

    架构

    架构

    Fes.js 把大家常用的技术栈封装成一个个插件进行整理,收敛到一起,让大家只用 Fes.js 就可以完成 80% 的日常工作。

    + diff --git a/reference/plugin/plugins/access.html b/reference/plugin/plugins/access.html index 2164d5d8..5f17bb72 100644 --- a/reference/plugin/plugins/access.html +++ b/reference/plugin/plugins/access.html @@ -24,7 +24,7 @@ @fesjs/plugin-access | Fes.js - +

    @fesjs/plugin-access

    介绍

    对于前端应用来说,权限就是页面、页面元素是否可见。

    资源

    Fes.js 把页面、页面元素统一叫做资源,用资源 ID 来识别区分他们:

    • 页面的资源 ID 默认是页面的路由 path 。比如页面 pages/a.vue 的路由 path/a。当页面访问 /a 时会渲染当前页面,/a 也就是页面的 accessId
    • 页面元素的资源 ID 没有默认值,需要自定义。
    <template>
    @@ -133,7 +133,7 @@ access.getAc
         },
     };
     </script>
    -
    - + + diff --git a/reference/plugin/plugins/editor.html b/reference/plugin/plugins/editor.html index c3dbf1db..0478c080 100644 --- a/reference/plugin/plugins/editor.html +++ b/reference/plugin/plugins/editor.html @@ -24,7 +24,7 @@ @fesjs/plugin-monaco-editor | Fes.js - +

    @fesjs/plugin-monaco-editor

    介绍

    我们会遇到需要编辑代码的场景,比如编辑jsonjavascriptpython等等,Monaco Editor在新窗口打开 是  一个好用而且强大的的代码编辑器库,引入Monaco Editor有一定的成本,插件实现了胶水代码,提供轻松引入的能力。目前内置的 Monaco Editor 版本是 1.9.1

    启用方式

    package.json 中引入依赖:

    {
    @@ -72,7 +72,7 @@ monaco.editor},
     };
     </script>
    -

    props

    属性说明类型默认值
    theme编辑器的主题,使用其他主题需要先使用monaco.editor.defineTheme定义主题stringdefaultTheme
    language编辑器的语言string-
    height编辑器的高度string100%
    width编辑器的宽度string100%
    modelValue(v-model)编辑器的代码string-
    readOnly是否只读booleanfalse
    options编辑器的配置对象object{}
    check是否检查代码,如果检查不通过则不更新数据,目前只支持jsonbooleanfalse

    events

    事件名称说明回调参数
    onload编辑器初始化后触发({monaco, editor, editorModel}) => void
    scrollChange滚动时触发(e) => void
    - +

    props

    属性说明类型默认值
    theme编辑器的主题,使用其他主题需要先使用monaco.editor.defineTheme定义主题stringdefaultTheme
    language编辑器的语言string-
    height编辑器的高度string100%
    width编辑器的宽度string100%
    modelValue(v-model)编辑器的代码string-
    readOnly是否只读booleanfalse
    options编辑器的配置对象object{}
    check是否检查代码,如果检查不通过则不更新数据,目前只支持jsonbooleanfalse

    events

    事件名称说明回调参数
    onload编辑器初始化后触发({monaco, editor, editorModel}) => void
    scrollChange滚动时触发(e) => void
    + diff --git a/reference/plugin/plugins/enums.html b/reference/plugin/plugins/enums.html index d862bf5e..72c122df 100644 --- a/reference/plugin/plugins/enums.html +++ b/reference/plugin/plugins/enums.html @@ -24,7 +24,7 @@ @fesjs/plugin-enums | Fes.js - +

    @fesjs/plugin-enums

    介绍

    日常业务开发中,有很多场景会使用到枚举值,比如 select-options、table-column。

    该插件提供统一的枚举存取及丰富的函数来处理枚举。

    启用方式

    package.json 中引入依赖:

    {
    @@ -156,7 +156,7 @@ dir              value
     'age'        =>  18
     'role[0]'    =>  {id: 1, name: '管理员'}
     'role[1].id' =>  2
    -

    提示

    枚举项 value 如果是基本类型,则规则不生效,value 就是当前值

    - +

    提示

    枚举项 value 如果是基本类型,则规则不生效,value 就是当前值

    + diff --git a/reference/plugin/plugins/icon.html b/reference/plugin/plugins/icon.html index 424bae54..60bd5b33 100644 --- a/reference/plugin/plugins/icon.html +++ b/reference/plugin/plugins/icon.html @@ -24,7 +24,7 @@ @fesjs/plugin-icon | Fes.js - +
    - +

    属性

    属性说明类型
    typesvg 文件名string
    spin是否无限旋转boolean
    rotate旋转角度number
    + diff --git a/reference/plugin/plugins/jest.html b/reference/plugin/plugins/jest.html index 466e4edb..f01a180b 100644 --- a/reference/plugin/plugins/jest.html +++ b/reference/plugin/plugins/jest.html @@ -24,7 +24,7 @@ @fesjs/plugin-jest | Fes.js - +

    @fesjs/plugin-jest

    集成 Jest在新窗口打开 测试框架,目前只支持单元测试和覆盖测试。

    启用方式

    package.json 中引入依赖:

    {
    @@ -333,7 +333,7 @@ Options:
       -h, --help                    display help for command
     
     

    比如覆盖测试:

    fes test --coverage
    -

    配置文件

    除了插件内置的默认配置之外,插件遵循 Jest的配置文件规范,约定项目根目录下的 jest.config.js 为用户配置文件,约定 packages.jsonjest 属性内容也是配置。

    优先级

    args 配置 > package.json中的 jest > jest.config.js > 默认配置

    - +

    配置文件

    除了插件内置的默认配置之外,插件遵循 Jest的配置文件规范,约定项目根目录下的 jest.config.js 为用户配置文件,约定 packages.jsonjest 属性内容也是配置。

    优先级

    args 配置 > package.json中的 jest > jest.config.js > 默认配置

    + diff --git a/reference/plugin/plugins/layout.html b/reference/plugin/plugins/layout.html index 9fcd77c6..83539db8 100644 --- a/reference/plugin/plugins/layout.html +++ b/reference/plugin/plugins/layout.html @@ -24,7 +24,7 @@ @fesjs/plugin-layout | Fes.js - +

    @fesjs/plugin-layout

    介绍

    为了进一步降低研发成本,我们将布局利用 fes.js 插件的方式内置,只需通过简单的配置即可拥有布局,包括导航以及侧边栏。从而做到用户无需关心布局。

    • 侧边栏菜单数据根据路由中的配置自动生成。
    • 布局,提供 sidetopmixinleft-right 四种布局。
    • 主题,提供 lightdark 两种主题。
    • 默认实现对路由的 404、403 处理。
    • 搭配 @fesjs/plugin-access 插件使用,可以完成对路由的权限控制。
    • 搭配 @fesjs/plugin-locale 插件使用,提供切换语言的能力。
    • 支持自定义头部或者侧边栏区域。
    • 菜单支持配置 icon。
    • 菜单标题支持国际化。
    • 可配置页面是否需要 layout。

    启用方式

    package.json 中引入依赖:

    {
    @@ -139,7 +139,7 @@
     //如果要更新
     titleRef.value = 'changed';
     </script>
    -

    4.x 升级到 5.x

    1. 个性化 layout 配置改为使用传入 navigation
    2. customHeader 改为 renderCustom
    3. fixedHeader 改为 isFixedHeader
    4. menusConfig 改为 menuProps
    5. fixedSideBar 改为 isFixedSidebar
    6. 去掉运行时 logo、header、sidebar 三个区域显示配置,请改为使用 navigation: left-right
    - +

    4.x 升级到 5.x

    1. 个性化 layout 配置改为使用传入 navigation
    2. customHeader 改为 renderCustom
    3. fixedHeader 改为 isFixedHeader
    4. menusConfig 改为 menuProps
    5. fixedSideBar 改为 isFixedSidebar
    6. 去掉运行时 logo、header、sidebar 三个区域显示配置,请改为使用 navigation: left-right
    + diff --git a/reference/plugin/plugins/locale.html b/reference/plugin/plugins/locale.html index c3f6c0f1..6e768ff2 100644 --- a/reference/plugin/plugins/locale.html +++ b/reference/plugin/plugins/locale.html @@ -24,7 +24,7 @@ @fesjs/plugin-locale | Fes.js - +
    - +

    useI18n()返回结果是 Composer在新窗口打开,提供类似 tnd 等转换函数,在模板中使用。

    + diff --git a/reference/plugin/plugins/login.html b/reference/plugin/plugins/login.html index c84b8551..f8f6097d 100644 --- a/reference/plugin/plugins/login.html +++ b/reference/plugin/plugins/login.html @@ -24,7 +24,7 @@ @fesjs/plugin-login | Fes.js - +
    - + + diff --git a/reference/plugin/plugins/model.html b/reference/plugin/plugins/model.html index 9e39cf1e..38a7ee5e 100644 --- a/reference/plugin/plugins/model.html +++ b/reference/plugin/plugins/model.html @@ -24,7 +24,7 @@ @fesjs/plugin-model | Fes.js - +
    - +

    API

    useModel

    useModel(name)

    + diff --git a/reference/plugin/plugins/pinia.html b/reference/plugin/plugins/pinia.html index 3639184b..47ee3df9 100644 --- a/reference/plugin/plugins/pinia.html +++ b/reference/plugin/plugins/pinia.html @@ -24,7 +24,7 @@ @fesjs/plugin-pinia | Fes.js - +
    - + + diff --git a/reference/plugin/plugins/qiankun.html b/reference/plugin/plugins/qiankun.html index 4d381f3e..9d06d8ed 100644 --- a/reference/plugin/plugins/qiankun.html +++ b/reference/plugin/plugins/qiankun.html @@ -24,7 +24,7 @@ @fesjs/plugin-qiankun | Fes.js - +

    @fesjs/plugin-qiankun

    Fes.js plugin for qiankun在新窗口打开,参考@umijs/plugin-qiankun在新窗口打开 实现,喜欢 React 的同学推荐直接用 Umi。

    启用方式

    package.json 中引入依赖:

    {
    @@ -210,7 +210,7 @@
         },
     };
     </script>
    -

    基于 props 传递

    • 主应用使用 props 的模式传递数据(参考主应用装载子应用配置一节)
    • 子应用在生命周期钩子中获取 props 消费数据(参考子应用运行时配置一节)

    MicroApp

    属性说明类型默认值
    name子应用名称,传入qiankun.main.apps配置中的nameString-
    settings子应用配置信息Object{}
    props传入子应用的参数Object{}
    lifeCycles子应用生命周期钩子Object{}
    cacheName子应用缓存名称,配置后根据name+cacheName缓存子应用实例Object-

    MicroAppWithMemoHistory

    属性说明类型默认值
    name子应用名称,传入qiankun.main.apps配置中的nameString-
    settings子应用配置信息Object{}
    props传入子应用的参数Object{}
    lifeCycles子应用生命周期钩子Object{}
    cacheName子应用缓存名称,配置后根据name+cacheName缓存子应用实例Object-
    url子应用的路由地址String-
    - +

    基于 props 传递

    MicroApp

    属性说明类型默认值
    name子应用名称,传入qiankun.main.apps配置中的nameString-
    settings子应用配置信息Object{}
    props传入子应用的参数Object{}
    lifeCycles子应用生命周期钩子Object{}
    cacheName子应用缓存名称,配置后根据name+cacheName缓存子应用实例Object-

    MicroAppWithMemoHistory

    属性说明类型默认值
    name子应用名称,传入qiankun.main.apps配置中的nameString-
    settings子应用配置信息Object{}
    props传入子应用的参数Object{}
    lifeCycles子应用生命周期钩子Object{}
    cacheName子应用缓存名称,配置后根据name+cacheName缓存子应用实例Object-
    url子应用的路由地址String-
    + diff --git a/reference/plugin/plugins/request.html b/reference/plugin/plugins/request.html index 46628da7..565fa5c3 100644 --- a/reference/plugin/plugins/request.html +++ b/reference/plugin/plugins/request.html @@ -24,7 +24,7 @@ @fesjs/plugin-request | Fes.js - +

    @fesjs/plugin-request

    基于 fetch 封装的 request,内置防止重复请求、请求缓存、错误处理等功能。

    启用方式

    package.json 中引入依赖:

    {
    @@ -163,7 +163,7 @@ controller.a
             };
         },
     };
    -

    3.x 升级到 4.x

    1. 缓存参数 cache 改成 cacheData(避免与 fetch 原本的 cache 冲突)
    2. dataHandler 改成 transformData
    3. requestInterceptors 改为 requestInterceptor,不在支持数组,只支持函数
    4. responseInterceptors 改为 responseInterceptor,不在支持数组,只支持函数
    5. 其他 axios 特有的配置不在支持
    - +

    3.x 升级到 4.x

    1. 缓存参数 cache 改成 cacheData(避免与 fetch 原本的 cache 冲突)
    2. dataHandler 改成 transformData
    3. requestInterceptors 改为 requestInterceptor,不在支持数组,只支持函数
    4. responseInterceptors 改为 responseInterceptor,不在支持数组,只支持函数
    5. 其他 axios 特有的配置不在支持
    + diff --git a/reference/plugin/plugins/sass.html b/reference/plugin/plugins/sass.html index 3bfa0d8c..102e33da 100644 --- a/reference/plugin/plugins/sass.html +++ b/reference/plugin/plugins/sass.html @@ -24,7 +24,7 @@ @fesjs/plugin-sass | Fes.js - +

    @fesjs/plugin-sass

    介绍

    Fes.js 默认只支持 less,通过此插件扩展支持 sass

    webpack 构建 sass 插件

    如果使用 Vite 构建,直接装 sass 依赖即可,不需要安装此插件。

    启用方式

    package.json 中引入依赖:

    {
    @@ -34,7 +34,7 @@
         }
     }
     

    global css

    添加 src/global.scsssrc/global.sass 为全局 CSS 入口,添加一些通用样式内容。

    Vue 单文件组件

    Vue 单文件组件的 <style></style> 添加 lang='scss',例如:

    <style lang="scss"></style>
    -
    - + + diff --git a/reference/plugin/plugins/swc.html b/reference/plugin/plugins/swc.html index 96ec000d..1efca7ef 100644 --- a/reference/plugin/plugins/swc.html +++ b/reference/plugin/plugins/swc.html @@ -24,7 +24,7 @@ @fesjs/plugin-swc | Fes.js - +
    - + + diff --git a/reference/plugin/plugins/vuex.html b/reference/plugin/plugins/vuex.html index abb20927..536cfdc5 100644 --- a/reference/plugin/plugins/vuex.html +++ b/reference/plugin/plugins/vuex.html @@ -24,7 +24,7 @@ @fesjs/plugin-vuex | Fes.js - +

    @fesjs/plugin-vuex

    提示

    vue3+ 官方推荐使用pinia,不在推荐使用 vuex。

    介绍

    集成 vuex 插件

    增强 vuex,导出所有的mutationsactionsgetter的事件类型,编辑器提示

    约定模式,module 和 plugin 定义放在 stores 目录下,文件名包含 plugin 被解析为插件,无需额外配置,定义即可用。

    └── src
    @@ -148,7 +148,7 @@
     </script>
     

    提示

    由于该插件注册在 onAppCreated 中,如果在 onAppCreated 及之前使用 useStore 时,获取不到 vuex 实例

    fesjs导出了 vuex 实例store,如在 app.js 文件中

    import { store, GETTER_TYPES } from '@fesjs/fes';
     console.log(store.getters[GETTER_TYPES.user.address]);
    -

    vuex 插件

    stores 文件夹下的文件名包含 plugin 被解析为插件,vuex 插件写法参考官方文档在新窗口打开

    API

    store

    • 类型 Object
    • vuex 实例

    MUTATION_TYPES

    • 类型 Object
    • mutation 的所有事件类型

    GETTER_TYPES

    • 类型 Object
    • getter 的所有方法名

    ACTION_TYPES

    • 类型 Object
    • action 的所有事件类型
    - +

    vuex 插件

    stores 文件夹下的文件名包含 plugin 被解析为插件,vuex 插件写法参考官方文档在新窗口打开

    API

    store

    MUTATION_TYPES

    GETTER_TYPES

    ACTION_TYPES

    + diff --git a/reference/plugin/plugins/watermark.html b/reference/plugin/plugins/watermark.html index 98ba03c9..5f56dcf3 100644 --- a/reference/plugin/plugins/watermark.html +++ b/reference/plugin/plugins/watermark.html @@ -24,7 +24,7 @@ @fesjs/plugin-watermark | Fes.js - +
    - +

    如果不需要时间戳,则可以设置timestampfalse

    + diff --git a/reference/plugin/plugins/windicss.html b/reference/plugin/plugins/windicss.html index 6f4fc3ff..d17ccfb6 100644 --- a/reference/plugin/plugins/windicss.html +++ b/reference/plugin/plugins/windicss.html @@ -24,7 +24,7 @@ @fesjs/plugin-windicss | Fes.js - +
    - + + diff --git a/service-worker.js b/service-worker.js index dd03f521..7c9300c3 100644 --- a/service-worker.js +++ b/service-worker.js @@ -1 +1 @@ -if(!self.define){let e,s={};const l=(l,i)=>(l=new URL(l+".js",i).href,s[l]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=l,e.onload=s,document.head.appendChild(e)}else e=l,importScripts(l),s()})).then((()=>{let e=s[l];if(!e)throw new Error(`Module ${l} didn’t register its module`);return e})));self.define=(i,r)=>{const n=e||("document"in self?document.currentScript.src:"")||location.href;if(s[n])return;let u={};const t=e=>l(e,n),a={module:{uri:n},exports:u,require:t};s[n]=Promise.all(i.map((e=>a[e]||t(e)))).then((e=>(r(...e),u)))}}define(["./workbox-fa9115e2"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"404.html",revision:"3f6e8ba042ba92e3a233e0dc73cbd9da"},{url:"assets/404.html.c3e557d0.js",revision:null},{url:"assets/404.html.ef11e76b.js",revision:null},{url:"assets/access.html.2783c102.js",revision:null},{url:"assets/access.html.701eacb0.js",revision:null},{url:"assets/api.html.1aa2bbfa.js",revision:null},{url:"assets/api.html.20695f57.js",revision:null},{url:"assets/api.html.3fadc9c0.js",revision:null},{url:"assets/api.html.b17fa30f.js",revision:null},{url:"assets/app.005e0daf.js",revision:null},{url:"assets/back-to-top.8efcbe56.svg",revision:null},{url:"assets/builder.html.999bf635.js",revision:null},{url:"assets/builder.html.e970d1bc.js",revision:null},{url:"assets/cli.html.768b01bb.js",revision:null},{url:"assets/cli.html.b37682a1.js",revision:null},{url:"assets/config.html.3c4760e9.js",revision:null},{url:"assets/config.html.5d92a440.js",revision:null},{url:"assets/contributing.html.24d74808.js",revision:null},{url:"assets/contributing.html.8cad4b5e.js",revision:null},{url:"assets/css.html.3990f0c1.js",revision:null},{url:"assets/css.html.a45df14e.js",revision:null},{url:"assets/directory-structure.html.15096386.js",revision:null},{url:"assets/directory-structure.html.4960a3b9.js",revision:null},{url:"assets/editor.html.2fb88cf1.js",revision:null},{url:"assets/editor.html.604dae94.js",revision:null},{url:"assets/enums.html.7c55aefa.js",revision:null},{url:"assets/enums.html.e894dfd6.js",revision:null},{url:"assets/env.html.35aa0f1a.js",revision:null},{url:"assets/env.html.805df8a5.js",revision:null},{url:"assets/faq.html.1e599082.js",revision:null},{url:"assets/faq.html.f70ba546.js",revision:null},{url:"assets/getting-started.html.3b600666.js",revision:null},{url:"assets/getting-started.html.8eca842e.js",revision:null},{url:"assets/icon.html.c524fb7f.js",revision:null},{url:"assets/icon.html.d2dc60da.js",revision:null},{url:"assets/image.html.20b52f7d.js",revision:null},{url:"assets/image.html.58aa17c7.js",revision:null},{url:"assets/index.0b6f9a66.js",revision:null},{url:"assets/index.html.174811be.js",revision:null},{url:"assets/index.html.1f2b7059.js",revision:null},{url:"assets/index.html.35cddc8c.js",revision:null},{url:"assets/index.html.5f811d7d.js",revision:null},{url:"assets/index.html.7417ac5c.js",revision:null},{url:"assets/index.html.74321f46.js",revision:null},{url:"assets/index.html.7e2b22df.js",revision:null},{url:"assets/index.html.82e50780.js",revision:null},{url:"assets/index.html.85db73e3.js",revision:null},{url:"assets/index.html.8a34550e.js",revision:null},{url:"assets/index.html.b3f98887.js",revision:null},{url:"assets/index.html.bc74ee4c.js",revision:null},{url:"assets/index.html.c22810d3.js",revision:null},{url:"assets/index.html.d460e0cc.js",revision:null},{url:"assets/jest.html.9bcb2ce1.js",revision:null},{url:"assets/jest.html.de551700.js",revision:null},{url:"assets/layout.html.b7ee50eb.js",revision:null},{url:"assets/layout.html.bccb8e74.js",revision:null},{url:"assets/locale.html.4d3b3790.js",revision:null},{url:"assets/locale.html.c1dcd857.js",revision:null},{url:"assets/login.html.0ea4b7ad.js",revision:null},{url:"assets/login.html.2f0338ab.js",revision:null},{url:"assets/mock.html.6d653289.js",revision:null},{url:"assets/mock.html.9cef5d45.js",revision:null},{url:"assets/model.html.3cd49de2.js",revision:null},{url:"assets/model.html.fab33d63.js",revision:null},{url:"assets/pinia.html.1e6ca3bb.js",revision:null},{url:"assets/pinia.html.1eb91490.js",revision:null},{url:"assets/plugin.html.0095f814.js",revision:null},{url:"assets/plugin.html.ccfb9074.js",revision:null},{url:"assets/public.html.848eef99.js",revision:null},{url:"assets/public.html.9d99cf84.js",revision:null},{url:"assets/qiankun.html.b3592391.js",revision:null},{url:"assets/qiankun.html.deb33c50.js",revision:null},{url:"assets/request.html.f4de04c7.js",revision:null},{url:"assets/request.html.fe4ceade.js",revision:null},{url:"assets/route.html.3d217616.js",revision:null},{url:"assets/route.html.aa1f3f0b.js",revision:null},{url:"assets/runtime-config.html.c81fa63e.js",revision:null},{url:"assets/runtime-config.html.d036f810.js",revision:null},{url:"assets/sass.html.177ef37c.js",revision:null},{url:"assets/sass.html.9338147b.js",revision:null},{url:"assets/style.2de37a47.css",revision:null},{url:"assets/swc.html.0bd38fed.js",revision:null},{url:"assets/swc.html.a56bb9f7.js",revision:null},{url:"assets/template.html.91640404.js",revision:null},{url:"assets/template.html.decb42ff.js",revision:null},{url:"assets/upgrade3.html.0ae06c8e.js",revision:null},{url:"assets/upgrade3.html.3629ebda.js",revision:null},{url:"assets/vuex.html.36df398e.js",revision:null},{url:"assets/vuex.html.6d094802.js",revision:null},{url:"assets/watermark.html.1d51b560.js",revision:null},{url:"assets/watermark.html.855d80c4.js",revision:null},{url:"assets/windicss.html.17e40609.js",revision:null},{url:"assets/windicss.html.cc303ad2.js",revision:null},{url:"framework.png",revision:"d5bc1ce01d8f58c2d32e4396441e5dcc"},{url:"guide/builder.html",revision:"ea57b3b9ca9f68b3ce8c34395f6db7d9"},{url:"guide/config.html",revision:"edfc4f70df0afde399fd6100fa8a5f5e"},{url:"guide/contributing.html",revision:"65504695930b59187f29e7de9d09309b"},{url:"guide/css.html",revision:"8b7dcf7cded3f74cdea5440c5e0668ce"},{url:"guide/directory-structure.html",revision:"64b958e766ae9a7fc96a81b37356c308"},{url:"guide/env.html",revision:"58f6db09a714e26a5266c1945a9cbdf6"},{url:"guide/faq.html",revision:"b306bac31683e477cbef0b2785bac825"},{url:"guide/getting-started.html",revision:"13da4252b822019be33398611c163f70"},{url:"guide/image.html",revision:"c39df0dc4650c1bb5e779c73c4af37c8"},{url:"guide/index.html",revision:"86e23e1534511aeb32eece783198a02d"},{url:"guide/mock.html",revision:"d1c9e1785792cf719eb3d7a240336128"},{url:"guide/plugin.html",revision:"05c0ca58723ca45b2ff6d9500111f08b"},{url:"guide/public.html",revision:"ebb69ddbe1d719ef43f2062f880713f9"},{url:"guide/route.html",revision:"c42fe6d06672e6b84769f66034c1a02d"},{url:"guide/runtime-config.html",revision:"e0c288199439eb3f25075409eba42c2d"},{url:"guide/template.html",revision:"a1e956df1f5a01a97eaab43893d8903b"},{url:"guide/upgrade3.html",revision:"77116138bc240c14ab1b7f7acfb9620f"},{url:"home.png",revision:"3a3b46b3bb2f0a9a52f439c80bade53a"},{url:"index.html",revision:"34da6063a0758af1506e5978de8f2ca1"},{url:"left-right.png",revision:"47027ee9621c21cb8f841957bdb7d805"},{url:"logo.png",revision:"41e6de8a94a52a5c1d7914b51111a12c"},{url:"mixin.png",revision:"c58d839aa919cee826f75bf5b348fd81"},{url:"pickTemplate.png",revision:"fb8b8e4e86c33eefe04abee6de5a03d9"},{url:"pickTemplateTip.png",revision:"e0c95971ab1e5692e997fe030c18f2a9"},{url:"plugins.png",revision:"f5e112b065621364d8cd663b245dc619"},{url:"reference/api.html",revision:"b9193206d122b74d52ca6edb050894a8"},{url:"reference/api/index.html",revision:"3b210dc4c4e781ff472a9c1ad51af10a"},{url:"reference/cli.html",revision:"77b1030421786be797a5293181ff4cf3"},{url:"reference/cli/index.html",revision:"9b950ffe37ac73a5050e4db0a9f73bfc"},{url:"reference/config/index.html",revision:"2953ae143b7c8371a66793c6fbf00c7e"},{url:"reference/plugin/dev/api.html",revision:"e00982b6251db18a6f4d71ca4c1a7376"},{url:"reference/plugin/dev/index.html",revision:"f848e6ab46193eb23f0a5219e5b841d2"},{url:"reference/plugin/index.html",revision:"f50c453ff52193ed387db1b6f7ead417"},{url:"reference/plugin/plugins/access.html",revision:"3003f9c5abbfcda8a0978d30148fab7c"},{url:"reference/plugin/plugins/editor.html",revision:"bf7ab04a66e75dc8052652ddf4d9f7c0"},{url:"reference/plugin/plugins/enums.html",revision:"194be35cd2d4e8af2bc41dafc6b987b0"},{url:"reference/plugin/plugins/icon.html",revision:"cbaaba7ccd64686928c4b3f73839dcb6"},{url:"reference/plugin/plugins/jest.html",revision:"af542a5179aa7cb7bdfdf01e1e287187"},{url:"reference/plugin/plugins/layout.html",revision:"9799d8915a2e0b35fc4f22d3f88cf6f3"},{url:"reference/plugin/plugins/locale.html",revision:"459f3680564ae23a0798007436141efb"},{url:"reference/plugin/plugins/login.html",revision:"c7dce0fd71f4efa2056f3fff42dc738f"},{url:"reference/plugin/plugins/model.html",revision:"7dcddc9370e38487daa781d0b0cc44d2"},{url:"reference/plugin/plugins/pinia.html",revision:"fb70436894cdc513ebcc16d7bd7f8d9a"},{url:"reference/plugin/plugins/qiankun.html",revision:"1fffbdc301da9a49eada5cb6fba07dca"},{url:"reference/plugin/plugins/request.html",revision:"f8547a1c4854dd80c5c9edb151db146c"},{url:"reference/plugin/plugins/sass.html",revision:"08ae289264b129edd3ed55010a498f84"},{url:"reference/plugin/plugins/swc.html",revision:"e18988c9c198735e68d2fe9e8f6b368c"},{url:"reference/plugin/plugins/vuex.html",revision:"0daf1bf63e3148539121c4b5a5154acc"},{url:"reference/plugin/plugins/watermark.html",revision:"e137dd5672265df2032c712de8eb7f55"},{url:"reference/plugin/plugins/windicss.html",revision:"9f4ec1bdf309b50eb5a9b6ec51b23f61"},{url:"side.png",revision:"a5bf932a270e116563f7e1da8968d493"},{url:"top.png",revision:"b282c6a45571a8a0aa710c044b7e4893"}],{})})); +if(!self.define){let e,s={};const l=(l,i)=>(l=new URL(l+".js",i).href,s[l]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=l,e.onload=s,document.head.appendChild(e)}else e=l,importScripts(l),s()})).then((()=>{let e=s[l];if(!e)throw new Error(`Module ${l} didn’t register its module`);return e})));self.define=(i,r)=>{const n=e||("document"in self?document.currentScript.src:"")||location.href;if(s[n])return;let u={};const t=e=>l(e,n),a={module:{uri:n},exports:u,require:t};s[n]=Promise.all(i.map((e=>a[e]||t(e)))).then((e=>(r(...e),u)))}}define(["./workbox-fa9115e2"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"404.html",revision:"eb3d03db22b9907897cd6c58ad5f6eb7"},{url:"assets/404.html.2f935918.js",revision:null},{url:"assets/404.html.c3e557d0.js",revision:null},{url:"assets/access.html.6852bb72.js",revision:null},{url:"assets/access.html.96612f2a.js",revision:null},{url:"assets/api.html.21761e66.js",revision:null},{url:"assets/api.html.3f905643.js",revision:null},{url:"assets/api.html.d2c39420.js",revision:null},{url:"assets/api.html.fb115fae.js",revision:null},{url:"assets/app.136d0839.js",revision:null},{url:"assets/back-to-top.8efcbe56.svg",revision:null},{url:"assets/builder.html.92740dcf.js",revision:null},{url:"assets/builder.html.d4d5757f.js",revision:null},{url:"assets/cli.html.3fb8d311.js",revision:null},{url:"assets/cli.html.dc7874d5.js",revision:null},{url:"assets/config.html.0f95fee4.js",revision:null},{url:"assets/config.html.23adbc41.js",revision:null},{url:"assets/contributing.html.64460810.js",revision:null},{url:"assets/contributing.html.ffe5b610.js",revision:null},{url:"assets/css.html.01ba51a1.js",revision:null},{url:"assets/css.html.f84ebf1b.js",revision:null},{url:"assets/directory-structure.html.648522d5.js",revision:null},{url:"assets/directory-structure.html.a3497558.js",revision:null},{url:"assets/editor.html.00d961a1.js",revision:null},{url:"assets/editor.html.4ada78c1.js",revision:null},{url:"assets/enums.html.193a4559.js",revision:null},{url:"assets/enums.html.6fdcc819.js",revision:null},{url:"assets/env.html.22a8783f.js",revision:null},{url:"assets/env.html.f0883984.js",revision:null},{url:"assets/faq.html.19ca02b3.js",revision:null},{url:"assets/faq.html.297bbbdd.js",revision:null},{url:"assets/getting-started.html.75327633.js",revision:null},{url:"assets/getting-started.html.8fe3ee18.js",revision:null},{url:"assets/icon.html.09ccd8f7.js",revision:null},{url:"assets/icon.html.4241b668.js",revision:null},{url:"assets/image.html.79a8b9cd.js",revision:null},{url:"assets/image.html.a1010faf.js",revision:null},{url:"assets/index.0b6f9a66.js",revision:null},{url:"assets/index.html.046ff532.js",revision:null},{url:"assets/index.html.1008b448.js",revision:null},{url:"assets/index.html.41fe35ac.js",revision:null},{url:"assets/index.html.4d69d8eb.js",revision:null},{url:"assets/index.html.7fdbe73f.js",revision:null},{url:"assets/index.html.9c124f68.js",revision:null},{url:"assets/index.html.a2c7ff1b.js",revision:null},{url:"assets/index.html.a83808da.js",revision:null},{url:"assets/index.html.b9b03365.js",revision:null},{url:"assets/index.html.c40cc049.js",revision:null},{url:"assets/index.html.d14f5124.js",revision:null},{url:"assets/index.html.de23200e.js",revision:null},{url:"assets/index.html.f7fd713b.js",revision:null},{url:"assets/index.html.fb3234bc.js",revision:null},{url:"assets/jest.html.300ecc20.js",revision:null},{url:"assets/jest.html.f2aff521.js",revision:null},{url:"assets/layout.html.76e01b19.js",revision:null},{url:"assets/layout.html.d2b5d2e8.js",revision:null},{url:"assets/locale.html.88762a65.js",revision:null},{url:"assets/locale.html.a3153873.js",revision:null},{url:"assets/login.html.31ddef26.js",revision:null},{url:"assets/login.html.d0c46ddc.js",revision:null},{url:"assets/mock.html.7e263949.js",revision:null},{url:"assets/mock.html.cde530fd.js",revision:null},{url:"assets/model.html.be6653d7.js",revision:null},{url:"assets/model.html.ca3b743a.js",revision:null},{url:"assets/pinia.html.0c40ecc3.js",revision:null},{url:"assets/pinia.html.bae2441d.js",revision:null},{url:"assets/plugin.html.2a53561b.js",revision:null},{url:"assets/plugin.html.daa490bd.js",revision:null},{url:"assets/public.html.21fc842c.js",revision:null},{url:"assets/public.html.f994234a.js",revision:null},{url:"assets/qiankun.html.2cf2e202.js",revision:null},{url:"assets/qiankun.html.da0d7b2f.js",revision:null},{url:"assets/request.html.35428bf8.js",revision:null},{url:"assets/request.html.de605ef1.js",revision:null},{url:"assets/route.html.3b4ca41d.js",revision:null},{url:"assets/route.html.a925296f.js",revision:null},{url:"assets/runtime-config.html.759e2890.js",revision:null},{url:"assets/runtime-config.html.b5a30568.js",revision:null},{url:"assets/sass.html.c97cdc49.js",revision:null},{url:"assets/sass.html.f1aed3ec.js",revision:null},{url:"assets/style.2de37a47.css",revision:null},{url:"assets/swc.html.01bd96f2.js",revision:null},{url:"assets/swc.html.22ce965c.js",revision:null},{url:"assets/template.html.c9556527.js",revision:null},{url:"assets/template.html.d37be6af.js",revision:null},{url:"assets/upgrade3.html.3968d9f9.js",revision:null},{url:"assets/upgrade3.html.907fe370.js",revision:null},{url:"assets/vuex.html.7d6af135.js",revision:null},{url:"assets/vuex.html.a4a38c6f.js",revision:null},{url:"assets/watermark.html.1c77b6b4.js",revision:null},{url:"assets/watermark.html.edeb015d.js",revision:null},{url:"assets/windicss.html.6def97ac.js",revision:null},{url:"assets/windicss.html.ab8a587e.js",revision:null},{url:"framework.png",revision:"d5bc1ce01d8f58c2d32e4396441e5dcc"},{url:"guide/builder.html",revision:"f178268f6e67173767072f2da689409d"},{url:"guide/config.html",revision:"2019a0b27649f5c81b4b9c69ca0c7990"},{url:"guide/contributing.html",revision:"0d2c8959ef1dd85141c939bc8ee88f9a"},{url:"guide/css.html",revision:"e6ff4e56c2874bd8245a6a590a9f968d"},{url:"guide/directory-structure.html",revision:"d0b82d0c3fe20792cf5a2cfee814eedc"},{url:"guide/env.html",revision:"a826f1763fd0c5c8308245301520163e"},{url:"guide/faq.html",revision:"c9facb25feb92ef05d7c56af216ab6ee"},{url:"guide/getting-started.html",revision:"8b35e50a22c205c494681eb80b9456d0"},{url:"guide/image.html",revision:"9e5aa735d44e1031625377adedc01d40"},{url:"guide/index.html",revision:"b7bab04c53c958c293dc6fe705a7d375"},{url:"guide/mock.html",revision:"f2381e27aebe99be868eeda454497ca2"},{url:"guide/plugin.html",revision:"74dde53cb97d871ad8a818959a96eca0"},{url:"guide/public.html",revision:"d5bb39e220c6e6f3b9de9f65e6e29424"},{url:"guide/route.html",revision:"9c3c29e87123e2981870e875e7f8c237"},{url:"guide/runtime-config.html",revision:"dd0f0105af54329283572a00d54b01a9"},{url:"guide/template.html",revision:"33bdb34ce7790e8e14f96fb4ca8c0362"},{url:"guide/upgrade3.html",revision:"f960415d2e311a8e993da2e9bcc9eec8"},{url:"home.png",revision:"3a3b46b3bb2f0a9a52f439c80bade53a"},{url:"index.html",revision:"c015775673a62913f57619e8f6db0ed9"},{url:"left-right.png",revision:"47027ee9621c21cb8f841957bdb7d805"},{url:"logo.png",revision:"41e6de8a94a52a5c1d7914b51111a12c"},{url:"mixin.png",revision:"c58d839aa919cee826f75bf5b348fd81"},{url:"pickTemplate.png",revision:"fb8b8e4e86c33eefe04abee6de5a03d9"},{url:"pickTemplateTip.png",revision:"e0c95971ab1e5692e997fe030c18f2a9"},{url:"plugins.png",revision:"f5e112b065621364d8cd663b245dc619"},{url:"reference/api.html",revision:"82365a17b41ed19263158b0a665217f7"},{url:"reference/api/index.html",revision:"50712953e47312d8150fad77633265fa"},{url:"reference/cli.html",revision:"f6e829d1c29d047895be3d353a937df2"},{url:"reference/cli/index.html",revision:"03d5a950987e9b2a14fede447f5dc401"},{url:"reference/config/index.html",revision:"f2c7202dd97c0d4069888880268dc053"},{url:"reference/plugin/dev/api.html",revision:"0785436c39d01062d5a9536e0ea13ae6"},{url:"reference/plugin/dev/index.html",revision:"be19ab54685be6d47e8f2c2149deb82b"},{url:"reference/plugin/index.html",revision:"0141691c3db0c71e8eb369e74c97aaee"},{url:"reference/plugin/plugins/access.html",revision:"2ae9cdcc2d7fe8de6a2eac91936318ce"},{url:"reference/plugin/plugins/editor.html",revision:"7047c5dffaf2754657554a35813c5248"},{url:"reference/plugin/plugins/enums.html",revision:"4f80f804e382d833538372131eb9a6ac"},{url:"reference/plugin/plugins/icon.html",revision:"8971d7cb13ac8ab8c6238bbd6f7ca0ef"},{url:"reference/plugin/plugins/jest.html",revision:"aaa7176fb9eb0749b741eea897636fe7"},{url:"reference/plugin/plugins/layout.html",revision:"b6dbe01cd7b7f4200d7134d29aad2ce1"},{url:"reference/plugin/plugins/locale.html",revision:"339814f4f2c19c14f43c9ff1269ba3f7"},{url:"reference/plugin/plugins/login.html",revision:"d665d4124e2731c3bd8181e3f5a0db02"},{url:"reference/plugin/plugins/model.html",revision:"8809deeb64497a55d3e578f8310629c5"},{url:"reference/plugin/plugins/pinia.html",revision:"5308d031fffc47d41bf9b15299c1078d"},{url:"reference/plugin/plugins/qiankun.html",revision:"e80e011ac890b2c86fae8c43d45177e6"},{url:"reference/plugin/plugins/request.html",revision:"c7c4073c8ea64566599040481c159c07"},{url:"reference/plugin/plugins/sass.html",revision:"59df7cbcb7989d28be4e5637e98165e5"},{url:"reference/plugin/plugins/swc.html",revision:"419a09ed2ff0104251ff62ce22483a25"},{url:"reference/plugin/plugins/vuex.html",revision:"9cfab3d50e1b10d7965afd6829ad557e"},{url:"reference/plugin/plugins/watermark.html",revision:"23bd2c70d5ef4fbe2bc0aa1315b50bc7"},{url:"reference/plugin/plugins/windicss.html",revision:"aff86e11a409378012b5c3164807ac63"},{url:"side.png",revision:"a5bf932a270e116563f7e1da8968d493"},{url:"top.png",revision:"b282c6a45571a8a0aa710c044b7e4893"}],{})}));