@fangzhongya/vue-archive 0.0.98 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/node/index.cjs +37 -27
- package/dist/node/index.js +37 -27
- package/dist/packages/components/code/highlight.vue2.cjs +1 -1
- package/dist/packages/components/code/highlight.vue2.js +1 -1
- package/dist/packages/components/use/retrie/input/editor/editor.cjs +1 -1
- package/dist/packages/components/use/retrie/input/editor/editor.d.ts +49 -0
- package/dist/packages/components/use/retrie/input/editor/editor.js +43 -47
- package/dist/packages/router/index.cjs +1 -1
- package/dist/packages/router/index.js +1 -1
- package/package.json +18 -18
- /package/dist/node_modules/.pnpm/{@highlightjs_vue-plugin@2.1_2e3909c55ec4dbb48bb9fd38d8dc2691 → @highlightjs_vue-plugin@2.1_9b7dd99aa1babbf0e2c1b55c05d36e38}/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@highlightjs_vue-plugin@2.1_2e3909c55ec4dbb48bb9fd38d8dc2691 → @highlightjs_vue-plugin@2.1_9b7dd99aa1babbf0e2c1b55c05d36e38}/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.js +0 -0
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--bor-cor: rgb(239, 248, 255);--but-cor: rgb(27, 155, 253);--but-hover-cor: rgb(0, 145, 255);--bg-but-hover-cor: rgb(128, 199, 253);--bg-aside-cor: rgb(228, 251, 197);--bg-aside-on-cor: rgb(78, 184, 250);--bg-index-cor: rgb(248, 248, 248);--bg-table-th-cor: rgb(207, 246, 251);--bg-table-td-cor: rgb(221, 243, 246);--bg-test-cor: rgb(247, 255, 251);--bg-test-err-cor: rgb(255, 210, 210);--bg-test-pro-cor: rgb(203, 246, 255);--bg-test-err-pro-cor: rgb(251, 203, 255);--te-test-err-cor: rgb(247, 56, 56);--te-test-pro-cor: rgb(106, 131, 255);--bg-test-body: rgb(255, 255, 255);--bg-code-highlig: rgb(255, 251, 223);--bg-code: rgb(255, 255, 255);--bg-box-cor: rgb(227, 227, 227);--bg-md-cor: rgb(255, 233, 243);--bg-use-cor: rgb(255, 255, 255);--bg-use-component-cor: rgb(255, 255, 255);--text-cor: rgb(0, 0, 0);--fs-1: 12px;--fs-2: 14px;--fs-3: 16px;--fs-4: 18px;--fs-5: 20px}.__document{position:fixed;top:0;left:0;width:100vw;height:100vh;overflow:auto;text-align:left;width:100%;height:100%;padding:0;margin:0}.__document .but-div{cursor:pointer}.__document .but-div:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .but-div{color:var(--but-cor);padding:5px 10px}.__document .aside{width:100%;overflow:hidden;padding:10px;box-sizing:border-box}.__document .aside .aside-search{width:100%;box-sizing:border-box;margin-bottom:10px}.__document .aside .aside-search .aside-search-input{width:100%;height:30px;border-radius:4px;box-sizing:border-box}.__document .aside .aside-li{padding:5px 10px;height:60px;font-size:20px;font-weight:600;border-radius:4px;border-bottom:1px solid var(--bor-cor);cursor:pointer}.__document .aside .aside-li:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .aside .aside-li{display:flex;flex-direction:row;align-items:center}.__document .aside .aside-li.on{background-color:var(--bg-aside-on-cor)}.__document .aside .aside-li .aside-li-name{width:100%}.__document .aside .aside-li .aside-li-name .aside-li-name-alias{font-size:var(--fs-2)}.__document .aside .aside-li .aside-li-name .aside-li-name-aliass{font-size:var(--fs-1)}.__document .md{position:relative}.__document .md-top-name{padding:10px;font-size:16px;font-weight:700}.__document .use .use-component{padding:10px;display:flex;justify-content:center;align-items:center;height:300px;background-color:var(--bg-use-component-cor)}.__document .set-code .set-code-buts{display:flex;align-items:center}.__document .form-item.error{background-color:var(--te-test-err-cor)}.__document .compo-info .compo-info-name-span{font-size:18px;font-weight:700;padding:10px 0}.__document .compo .compo-top .compo-top-name{padding:10px;font-size:var(--fs-4)}.__document .compo .compo-top .compo-top-name .compo-top-name-li{font-size:var(--fs-2)}.__document .compo .compo-top .compo-top-info{padding:10px;display:flex;flex-direction:row;align-items:center}.__document .compo .compo-top .compo-top-info .compo-top-athor,.__document .compo .compo-top .compo-top-info .compo-top-date{flex:1;display:flex;flex-direction:row;align-items:center}.__document .compo .compo-top .compo-top-descriptions{padding:0 10px;font-size:var(--fs-2)}.__document .compo .compo-li h4{margin:10px 0 0;padding:10px}.__document .compo .compo-li .compo-talbe{width:100%}.__document .compo .compo-li .compo-talbe .compo-talbe-body{border:1px solid var(--bor-cor);width:100%}.__document .compo .compo-li .compo-talbe .compo-talbe-body td,.__document .compo .compo-li .compo-talbe .compo-talbe-body th{padding:5px 10px;border-bottom:1px solid var(--bor-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body th{background-color:var(--bg-table-th-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body td{background-color:var(--bg-table-td-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body tr:last-child td{border-bottom:0}.__document .compo .compo-li .compo-talbe .compo-talbe-body .compo-talbe-zw{width:100%;text-align:center;padding:10px}.__document .compo .compo-md{padding:10px;background-color:var(--bg-md-cor)}.__document .compo .compo-use{padding:10px;background-color:var(--bg-use-cor)}.__document .main .main-but{text-align:right;display:flex;flex-direction:row;align-items:center}.__document .test.error .test-top-top{background-color:var(--bg-test-err-cor)}.__document .test.proposal .test-top-top{background-color:var(--bg-test-pro-cor)}.__document .test.error-proposal .test-top-top{background-color:var(--bg-test-err-pro-cor)}.__document .test .test-top .test-top-top{padding:10px;background-color:var(--bg-test-cor)}.__document .test .test-top .test-top-error{color:var(--te-test-err-cor)}.__document .test .test-top .test-top-proposal{color:var(--te-test-pro-cor)}.__document .test .test-div .test-body{padding:10px;background-color:var(--bg-test-body)}.__document .code{padding:0}.__document .code .code-top .code-top-but,.__document .code .code-top .code-top-but .top-but-files{display:flex;flex-direction:row;align-items:center}.__document .code .code-highlightjs{padding:0}.__document .code .code-highlightjs .hljs{background-color:var(--bg-code-highlig)}.__document .box-url{position:relative}.__document .box-url:hover .box-url-box{display:block}.__document .box-url .box-url-box{position:fixed;top:25px;display:none;background-color:var(--bg-box-cor);font-size:var(--fs-1);color:var(--text-cor);z-index:100000}.__document .box-url .box-url-box .box-div-li{height:20px;line-height:20px;display:flex;flex-direction:row;align-items:center}.__document .box-url .box-url-box .box-div-li .box-div-li-span{white-space:nowrap;padding:5px 10px}.__document .box-url .box-url-box .box-div-but{padding:10px;cursor:pointer}.__document .box-url .box-url-box .box-div-but:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .box-url .box-url-box .box-div-but{color:var(--but-cor)}.__document .__document-index{width:100%;height:100%;padding:0;margin:0;display:flex;flex-direction:row}.__document .__document-index .index-aside{position:relative;z-index:100}.__document .__document-index .index-aside .index-aside-div{height:100%;overflow-y:auto;background-color:var(--bg-aside-cor)}.__document .__document-index .index-body{flex:1;position:relative;background-color:var(--bg-index-cor)}.__document .__document-index .index-body .index-div{padding:20px;position:absolute;inset:0;overflow-y:auto}.__document .__document-tests{padding:10px;height:100%;position:relative}.__document .__document-tests .tests-top .but-div.on{background-color:var(--bg-aside-on-cor)}.__document .__document-develop,.__document .__document-single{padding:10px;height:100%;position:relative}.__document .__document-single .single-top .single-top-li{display:flex;flex-direction:row;align-items:center}.__document .__document-single .single-top .single-top-li .single-top-li-span{padding:5px 10px}.__document .__document-compon{box-sizing:border-box;height:100%;width:100%;position:relative;display:flex}.__document .__document-compon .__document-compon-body{background-color:var(--bg-index-cor);padding:10px;flex:1;overflow-y:auto}.__document .__document-compon .__document-compon-body.choice{padding-left:30px}.__document .__document-compon .__document-compon-choice{display:flex;overflow-y:auto;background-color:var(--bg-aside-cor)}.__document .__document-compon .__document-compon-choice .aside{width:250px;overflow:hidden}.__document .__document-compon .__document-compon-choice .__document-compon-choice-but{cursor:pointer}.__document .__document-compon .__document-compon-choice .__document-compon-choice-but:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.form-input-text{padding:10px;height:160px;width:100%;box-sizing:border-box}.editor-div{padding:10px;height:160px;background-color:#eee}.editor-div .editor-code{height:100%;width:100%;min-height:80px;background-color:#fff}.form-input{font-size:16px}.form-select{position:relative;font-size:16px}.form-select .form-select-input{padding:10px;width:100%;font-size:16px;box-sizing:border-box}.form-select .form-select-box{position:absolute;width:100%;z-index:100;background-color:#000;text-align:center}.form-select .form-select-box .form-select-list-div{border:1px solid #000000}.form-select .form-select-box .form-select-list-div .form-select-list-li{background-color:#e9e9e9;padding:10px;cursor:pointer;border-bottom:1px solid #000000}.form-select{position:relative}.form-select .form-select-box{position:absolute;background-color:#fff;text-align:center}.form-select .form-select-box .form-select-list-div{border:1px solid #fff}.form-select .form-select-box .form-select-list-div .form-select-list-li{padding:10px;border-bottom:1px solid #eee}.form-select .form-select-box .form-select-list-div .form-select-list-li:last-child{border:0}.form-select .form-select-box .form-select-list-div .form-select-list-li.active{color:#0051ff}.form-boolean{display:flex;font-size:16px;padding:10px}.form-boolean .form-boolean-div{margin-right:10px}.form-string{font-size:16px}.form-string .form-string-text{padding:10px;width:100%;box-sizing:border-box}.form-number{font-size:16px}.form-number .form-number-input{padding:10px;width:100%;box-sizing:border-box}.com-retrie .com-retrie-li .com-retrie-label{padding:5px 0}.set-emit .set-emit-li{padding:10px}.set-emit .set-emit-name{font-size:18px;padding:5px 0}.set-emit .set-emit-value{font-size:16px;background-color:azure}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#2f3337;background:#f6f6f6}.hljs-subst{color:#2f3337}.hljs-comment{color:#656e77}.hljs-keyword,.hljs-selector-tag,.hljs-meta .hljs-keyword,.hljs-doctag,.hljs-section,.hljs-attr{color:#015692}.hljs-attribute{color:#803378}.hljs-name,.hljs-type,.hljs-number,.hljs-selector-id,.hljs-quote,.hljs-template-tag{color:#b75501}.hljs-selector-class{color:#015692}.hljs-string,.hljs-regexp,.hljs-symbol,.hljs-variable,.hljs-template-variable,.hljs-link,.hljs-selector-attr{color:#54790d}.hljs-meta,.hljs-selector-pseudo{color:#015692}.hljs-built_in,.hljs-title,.hljs-literal{color:#b75501}.hljs-bullet,.hljs-code{color:#535a60}.hljs-meta .hljs-string{color:#54790d}.hljs-deletion{color:#c02d2e}.hljs-addition{color:#2f6f44}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.expose .expose-label{padding:10px 0;font-size:18px}.expose .expose-return{padding:5px;background-color:azure}.set-expose .set-expose-li{position:relative}.set-expose .set-expose-li .set-expose-delete{color:red;position:absolute;right:20px;top:10px}.code-edit{padding:10px;display:flex}.code-edit .edit-input{flex:1}.code-edit .edit-effect{flex:1;margin-right:10px}
|
|
1
|
+
:root{--bor-cor: rgb(239, 248, 255);--but-cor: rgb(27, 155, 253);--but-hover-cor: rgb(0, 145, 255);--bg-but-hover-cor: rgb(128, 199, 253);--bg-aside-cor: rgb(228, 251, 197);--bg-aside-on-cor: rgb(78, 184, 250);--bg-index-cor: rgb(248, 248, 248);--bg-table-th-cor: rgb(207, 246, 251);--bg-table-td-cor: rgb(221, 243, 246);--bg-test-cor: rgb(247, 255, 251);--bg-test-err-cor: rgb(255, 210, 210);--bg-test-pro-cor: rgb(203, 246, 255);--bg-test-err-pro-cor: rgb(251, 203, 255);--te-test-err-cor: rgb(247, 56, 56);--te-test-pro-cor: rgb(106, 131, 255);--bg-test-body: rgb(255, 255, 255);--bg-code-highlig: rgb(255, 251, 223);--bg-code: rgb(255, 255, 255);--bg-box-cor: rgb(227, 227, 227);--bg-md-cor: rgb(255, 233, 243);--bg-use-cor: rgb(255, 255, 255);--bg-use-component-cor: rgb(255, 255, 255);--text-cor: rgb(0, 0, 0);--fs-1: 12px;--fs-2: 14px;--fs-3: 16px;--fs-4: 18px;--fs-5: 20px}.__document{position:fixed;top:0;left:0;width:100vw;height:100vh;overflow:auto;text-align:left;width:100%;height:100%;padding:0;margin:0}.__document .but-div{cursor:pointer}.__document .but-div:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .but-div{color:var(--but-cor);padding:5px 10px}.__document .aside{width:100%;overflow:hidden;padding:10px;box-sizing:border-box}.__document .aside .aside-search{width:100%;box-sizing:border-box;margin-bottom:10px}.__document .aside .aside-search .aside-search-input{width:100%;height:30px;border-radius:4px;box-sizing:border-box}.__document .aside .aside-li{padding:5px 10px;height:60px;font-size:20px;font-weight:600;border-radius:4px;border-bottom:1px solid var(--bor-cor);cursor:pointer}.__document .aside .aside-li:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .aside .aside-li{display:flex;flex-direction:row;align-items:center}.__document .aside .aside-li.on{background-color:var(--bg-aside-on-cor)}.__document .aside .aside-li .aside-li-name{width:100%}.__document .aside .aside-li .aside-li-name .aside-li-name-alias{font-size:var(--fs-2)}.__document .aside .aside-li .aside-li-name .aside-li-name-aliass{font-size:var(--fs-1)}.__document .md{position:relative}.__document .md-top-name{padding:10px;font-size:16px;font-weight:700}.__document .use .use-component{padding:10px;display:flex;justify-content:center;align-items:center;height:300px;background-color:var(--bg-use-component-cor)}.__document .set-code .set-code-buts{display:flex;align-items:center}.__document .form-item.error{background-color:var(--te-test-err-cor)}.__document .compo-info .compo-info-name-span{font-size:18px;font-weight:700;padding:10px 0}.__document .compo .compo-top .compo-top-name{padding:10px;font-size:var(--fs-4)}.__document .compo .compo-top .compo-top-name .compo-top-name-li{font-size:var(--fs-2)}.__document .compo .compo-top .compo-top-info{padding:10px;display:flex;flex-direction:row;align-items:center}.__document .compo .compo-top .compo-top-info .compo-top-athor,.__document .compo .compo-top .compo-top-info .compo-top-date{flex:1;display:flex;flex-direction:row;align-items:center}.__document .compo .compo-top .compo-top-descriptions{padding:0 10px;font-size:var(--fs-2)}.__document .compo .compo-li h4{margin:10px 0 0;padding:10px}.__document .compo .compo-li .compo-talbe{width:100%}.__document .compo .compo-li .compo-talbe .compo-talbe-body{border:1px solid var(--bor-cor);width:100%}.__document .compo .compo-li .compo-talbe .compo-talbe-body td,.__document .compo .compo-li .compo-talbe .compo-talbe-body th{padding:5px 10px;border-bottom:1px solid var(--bor-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body th{background-color:var(--bg-table-th-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body td{background-color:var(--bg-table-td-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body tr:last-child td{border-bottom:0}.__document .compo .compo-li .compo-talbe .compo-talbe-body .compo-talbe-zw{width:100%;text-align:center;padding:10px}.__document .compo .compo-md{padding:10px;background-color:var(--bg-md-cor)}.__document .compo .compo-use{padding:10px;background-color:var(--bg-use-cor)}.__document .main .main-but{text-align:right;display:flex;flex-direction:row;align-items:center}.__document .test.error .test-top-top{background-color:var(--bg-test-err-cor)}.__document .test.proposal .test-top-top{background-color:var(--bg-test-pro-cor)}.__document .test.error-proposal .test-top-top{background-color:var(--bg-test-err-pro-cor)}.__document .test .test-top .test-top-top{padding:10px;background-color:var(--bg-test-cor)}.__document .test .test-top .test-top-error{color:var(--te-test-err-cor)}.__document .test .test-top .test-top-proposal{color:var(--te-test-pro-cor)}.__document .test .test-div .test-body{padding:10px;background-color:var(--bg-test-body)}.__document .code{padding:0}.__document .code .code-top .code-top-but,.__document .code .code-top .code-top-but .top-but-files{display:flex;flex-direction:row;align-items:center}.__document .code .code-highlightjs{padding:0}.__document .code .code-highlightjs .hljs{background-color:var(--bg-code-highlig)}.__document .box-url{position:relative}.__document .box-url:hover .box-url-box{display:block}.__document .box-url .box-url-box{position:fixed;top:25px;display:none;background-color:var(--bg-box-cor);font-size:var(--fs-1);color:var(--text-cor);z-index:100000}.__document .box-url .box-url-box .box-div-li{height:20px;line-height:20px;display:flex;flex-direction:row;align-items:center}.__document .box-url .box-url-box .box-div-li .box-div-li-span{white-space:nowrap;padding:5px 10px}.__document .box-url .box-url-box .box-div-but{padding:10px;cursor:pointer}.__document .box-url .box-url-box .box-div-but:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .box-url .box-url-box .box-div-but{color:var(--but-cor)}.__document .__document-index{width:100%;height:100%;padding:0;margin:0;display:flex;flex-direction:row}.__document .__document-index .index-aside{position:relative;z-index:100}.__document .__document-index .index-aside .index-aside-div{height:100%;overflow-y:auto;background-color:var(--bg-aside-cor)}.__document .__document-index .index-body{flex:1;position:relative;background-color:var(--bg-index-cor)}.__document .__document-index .index-body .index-div{padding:20px;position:absolute;inset:0;overflow-y:auto}.__document .__document-tests{padding:10px;height:100%;position:relative}.__document .__document-tests .tests-top .but-div.on{background-color:var(--bg-aside-on-cor)}.__document .__document-develop,.__document .__document-single{padding:10px;height:100%;position:relative}.__document .__document-single .single-top .single-top-li{display:flex;flex-direction:row;align-items:center}.__document .__document-single .single-top .single-top-li .single-top-li-span{padding:5px 10px}.__document .__document-compon{box-sizing:border-box;height:100%;width:100%;position:relative;display:flex}.__document .__document-compon .__document-compon-body{background-color:var(--bg-index-cor);box-sizing:border-box;padding:10px;flex:1;overflow-y:auto}.__document .__document-compon .__document-compon-body.choice{padding-left:30px}.__document .__document-compon .__document-compon-choice{display:flex;overflow-y:auto;background-color:var(--bg-aside-cor)}.__document .__document-compon .__document-compon-choice .aside{width:250px;overflow:hidden}.__document .__document-compon .__document-compon-choice .__document-compon-choice-but{cursor:pointer}.__document .__document-compon .__document-compon-choice .__document-compon-choice-but:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.form-input-text{padding:10px;height:160px;width:100%;box-sizing:border-box}.editor-div{padding:10px;height:160px;background-color:#eee}.editor-div .editor-code{height:100%;width:100%;min-height:80px;background-color:#fff}.form-input{font-size:16px}.form-select{position:relative;font-size:16px}.form-select .form-select-input{padding:10px;width:100%;font-size:16px;box-sizing:border-box}.form-select .form-select-box{position:absolute;width:100%;z-index:100;background-color:#000;text-align:center}.form-select .form-select-box .form-select-list-div{border:1px solid #000000}.form-select .form-select-box .form-select-list-div .form-select-list-li{background-color:#e9e9e9;padding:10px;cursor:pointer;border-bottom:1px solid #000000}.form-select{position:relative}.form-select .form-select-box{position:absolute;background-color:#fff;text-align:center}.form-select .form-select-box .form-select-list-div{border:1px solid #fff}.form-select .form-select-box .form-select-list-div .form-select-list-li{padding:10px;border-bottom:1px solid #eee}.form-select .form-select-box .form-select-list-div .form-select-list-li:last-child{border:0}.form-select .form-select-box .form-select-list-div .form-select-list-li.active{color:#0051ff}.form-boolean{display:flex;font-size:16px;padding:10px}.form-boolean .form-boolean-div{margin-right:10px}.form-string{font-size:16px}.form-string .form-string-text{padding:10px;width:100%;box-sizing:border-box}.form-number{font-size:16px}.form-number .form-number-input{padding:10px;width:100%;box-sizing:border-box}.com-retrie .com-retrie-li .com-retrie-label{padding:5px 0}.set-emit .set-emit-li{padding:10px}.set-emit .set-emit-name{font-size:18px;padding:5px 0}.set-emit .set-emit-value{font-size:16px;background-color:azure}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#2f3337;background:#f6f6f6}.hljs-subst{color:#2f3337}.hljs-comment{color:#656e77}.hljs-keyword,.hljs-selector-tag,.hljs-meta .hljs-keyword,.hljs-doctag,.hljs-section,.hljs-attr{color:#015692}.hljs-attribute{color:#803378}.hljs-name,.hljs-type,.hljs-number,.hljs-selector-id,.hljs-quote,.hljs-template-tag{color:#b75501}.hljs-selector-class{color:#015692}.hljs-string,.hljs-regexp,.hljs-symbol,.hljs-variable,.hljs-template-variable,.hljs-link,.hljs-selector-attr{color:#54790d}.hljs-meta,.hljs-selector-pseudo{color:#015692}.hljs-built_in,.hljs-title,.hljs-literal{color:#b75501}.hljs-bullet,.hljs-code{color:#535a60}.hljs-meta .hljs-string{color:#54790d}.hljs-deletion{color:#c02d2e}.hljs-addition{color:#2f6f44}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.expose .expose-label{padding:10px 0;font-size:18px}.expose .expose-return{padding:5px;background-color:azure}.set-expose .set-expose-li{position:relative}.set-expose .set-expose-li .set-expose-delete{color:red;position:absolute;right:20px;top:10px}.code-edit{padding:10px;display:flex}.code-edit .edit-input{flex:1}.code-edit .edit-effect{flex:1;margin-right:10px}
|
package/dist/node/index.cjs
CHANGED
|
@@ -87,12 +87,12 @@ __export(index_exports, {
|
|
|
87
87
|
});
|
|
88
88
|
module.exports = __toCommonJS(index_exports);
|
|
89
89
|
|
|
90
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
90
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js
|
|
91
91
|
function isArray(obj2) {
|
|
92
92
|
return Object.prototype.toString.call(obj2) == "[object Array]";
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
95
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-A276ZDLP.js
|
|
96
96
|
function getStartSames(str, val) {
|
|
97
97
|
let s = "";
|
|
98
98
|
const vs = [...val];
|
|
@@ -108,7 +108,7 @@ function getStartSames(str, val) {
|
|
|
108
108
|
return [s, str.substring(index), val.substring(index)];
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
111
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-KDOS4NFR.js
|
|
112
112
|
function getImportUrl(url, imp) {
|
|
113
113
|
const arr = getStartSames(url, imp);
|
|
114
114
|
const ts2 = arr[0];
|
|
@@ -132,12 +132,12 @@ function getImportUrl(url, imp) {
|
|
|
132
132
|
return ds.join("") + arr[2].replace(/\\/g, "/");
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
135
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
|
|
136
136
|
function firstUpper(str) {
|
|
137
137
|
return str.slice(0, 1).toUpperCase() + str.slice(1);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
140
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
|
|
141
141
|
function lineToLargeHump(name) {
|
|
142
142
|
let arr = name.split("-");
|
|
143
143
|
arr = arr.map((vs) => {
|
|
@@ -146,7 +146,7 @@ function lineToLargeHump(name) {
|
|
|
146
146
|
return arr.join("");
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
149
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.43/node_modules/@fangzhongya/create/dist/chunk-RFW66U5U.js
|
|
150
150
|
var import_fs = require("fs");
|
|
151
151
|
var import_path = require("path");
|
|
152
152
|
function getUrlCatalogueObj(str) {
|
|
@@ -405,7 +405,7 @@ function writeFileUrl(url, files, callback, isDirs, isFile, issynch) {
|
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
407
|
|
|
408
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
408
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.43/node_modules/@fangzhongya/create/dist/chunk-O3FMXCTC.js
|
|
409
409
|
var import_path2 = require("path");
|
|
410
410
|
function styleLog(msg = "", obj2) {
|
|
411
411
|
const arr = ["\x1B[0m"];
|
|
@@ -827,7 +827,7 @@ var FangCom = class {
|
|
|
827
827
|
}
|
|
828
828
|
};
|
|
829
829
|
|
|
830
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
830
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.43/node_modules/@fangzhongya/create/dist/bins/md.js
|
|
831
831
|
var defaultConfig2 = Object.assign({}, defaultConfig, {
|
|
832
832
|
name: "md"
|
|
833
833
|
});
|
|
@@ -846,7 +846,7 @@ function runDev(config2, configCallback) {
|
|
|
846
846
|
return new FangMd(config2, configCallback);
|
|
847
847
|
}
|
|
848
848
|
|
|
849
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
849
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-NCSN3MC5.js
|
|
850
850
|
var zObj = {
|
|
851
851
|
"<": "<",
|
|
852
852
|
">": ">",
|
|
@@ -867,7 +867,7 @@ function htmlEscape(str) {
|
|
|
867
867
|
// packages/node/index.ts
|
|
868
868
|
var import_node_path = require("path");
|
|
869
869
|
|
|
870
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
870
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
|
|
871
871
|
function mergeObject(a, b, j = 0, i) {
|
|
872
872
|
if (a instanceof Array) {
|
|
873
873
|
if (j > 0 && i) {
|
|
@@ -921,7 +921,7 @@ function getConfig(key) {
|
|
|
921
921
|
return config[key];
|
|
922
922
|
}
|
|
923
923
|
|
|
924
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
924
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-7PJ2D3KR.js
|
|
925
925
|
function getVueText(content) {
|
|
926
926
|
const result = {
|
|
927
927
|
template: "",
|
|
@@ -968,7 +968,7 @@ function getVueTexts(content) {
|
|
|
968
968
|
};
|
|
969
969
|
}
|
|
970
970
|
|
|
971
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
971
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
|
|
972
972
|
function humpToLine(name) {
|
|
973
973
|
const reg = /(([A-Z])([^A-Z]*))/g;
|
|
974
974
|
let result;
|
|
@@ -990,12 +990,12 @@ function humpToLine(name) {
|
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
992
|
|
|
993
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
993
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
|
|
994
994
|
function firstLower(str) {
|
|
995
995
|
return str.slice(0, 1).toLowerCase() + str.slice(1);
|
|
996
996
|
}
|
|
997
997
|
|
|
998
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
998
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
|
|
999
999
|
function asyncMergeArray(arr, callback) {
|
|
1000
1000
|
return new Promise((resolve2, reject) => {
|
|
1001
1001
|
let index = 0;
|
|
@@ -1019,7 +1019,7 @@ function asyncMergeArray(arr, callback) {
|
|
|
1019
1019
|
});
|
|
1020
1020
|
}
|
|
1021
1021
|
|
|
1022
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1022
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-Z7NTQAAJ.js
|
|
1023
1023
|
function getSuffix2(url) {
|
|
1024
1024
|
const reg = /\.([a-z|A-Z][a-z|A-Z|0-9]*)$/;
|
|
1025
1025
|
const regs = reg.exec(url);
|
|
@@ -1029,7 +1029,7 @@ function getSuffix2(url) {
|
|
|
1029
1029
|
return "";
|
|
1030
1030
|
}
|
|
1031
1031
|
|
|
1032
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1032
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-S6JRKYPY.js
|
|
1033
1033
|
function matchsStart2(key, matchs) {
|
|
1034
1034
|
if (matchs && matchs.length > 0) {
|
|
1035
1035
|
for (const value of matchs) {
|
|
@@ -1049,7 +1049,7 @@ function matchsStart2(key, matchs) {
|
|
|
1049
1049
|
}
|
|
1050
1050
|
}
|
|
1051
1051
|
|
|
1052
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1052
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-YNOFNHEK.js
|
|
1053
1053
|
function matchsEnd2(key, matchs) {
|
|
1054
1054
|
if (matchs && matchs.length > 0) {
|
|
1055
1055
|
for (const value of matchs) {
|
|
@@ -1712,7 +1712,7 @@ function parse(source, options = {}) {
|
|
|
1712
1712
|
}
|
|
1713
1713
|
var stringify = getStringifier();
|
|
1714
1714
|
|
|
1715
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1715
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-FS4JPT23.js
|
|
1716
1716
|
function deComment(code) {
|
|
1717
1717
|
let output = "";
|
|
1718
1718
|
let state = "code";
|
|
@@ -1804,7 +1804,7 @@ function deComment(code) {
|
|
|
1804
1804
|
return output;
|
|
1805
1805
|
}
|
|
1806
1806
|
|
|
1807
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1807
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-N5Y3XGHX.js
|
|
1808
1808
|
function getImports(code, includeType = false) {
|
|
1809
1809
|
code = deComment(code);
|
|
1810
1810
|
const imports = /* @__PURE__ */ new Set();
|
|
@@ -1815,7 +1815,7 @@ function getImports(code, includeType = false) {
|
|
|
1815
1815
|
if (!path) continue;
|
|
1816
1816
|
const fullMatch = match[0];
|
|
1817
1817
|
if (!includeType) {
|
|
1818
|
-
if (fullMatch.includes("import") &&
|
|
1818
|
+
if (fullMatch.includes("import") && isPureTypeImport(fullMatch) || fullMatch.includes("export") && isPureTypeExport(fullMatch)) {
|
|
1819
1819
|
continue;
|
|
1820
1820
|
}
|
|
1821
1821
|
}
|
|
@@ -1823,19 +1823,29 @@ function getImports(code, includeType = false) {
|
|
|
1823
1823
|
}
|
|
1824
1824
|
return Array.from(imports);
|
|
1825
1825
|
}
|
|
1826
|
-
function
|
|
1826
|
+
function isPureTypeImport(importStatement) {
|
|
1827
|
+
const importTypeRegex = /^\s*import\s+type\b/;
|
|
1828
|
+
if (importTypeRegex.test(importStatement)) {
|
|
1829
|
+
return true;
|
|
1830
|
+
}
|
|
1827
1831
|
if (importStatement.includes("{")) {
|
|
1828
1832
|
const braceContent = importStatement.match(/\{([^}]*)\}/)?.[1] || "";
|
|
1829
|
-
|
|
1833
|
+
const items = braceContent.split(",").map((item) => item.trim()).filter(Boolean);
|
|
1834
|
+
return items.length > 0 && items.every((item) => item.startsWith("type "));
|
|
1830
1835
|
}
|
|
1831
|
-
return
|
|
1836
|
+
return false;
|
|
1832
1837
|
}
|
|
1833
|
-
function
|
|
1838
|
+
function isPureTypeExport(exportStatement) {
|
|
1839
|
+
const exportTypeRegex = /^\s*export\s+type\b/;
|
|
1840
|
+
if (exportTypeRegex.test(exportStatement)) {
|
|
1841
|
+
return true;
|
|
1842
|
+
}
|
|
1834
1843
|
if (exportStatement.includes("{")) {
|
|
1835
1844
|
const braceContent = exportStatement.match(/\{([^}]*)\}/)?.[1] || "";
|
|
1836
|
-
|
|
1845
|
+
const items = braceContent.split(",").map((item) => item.trim()).filter(Boolean);
|
|
1846
|
+
return items.length > 0 && items.every((item) => item.startsWith("type "));
|
|
1837
1847
|
}
|
|
1838
|
-
return
|
|
1848
|
+
return false;
|
|
1839
1849
|
}
|
|
1840
1850
|
|
|
1841
1851
|
// packages/utils/index.ts
|
|
@@ -3220,7 +3230,7 @@ var top_default2 = (0, import_vue2.defineComponent)({
|
|
|
3220
3230
|
}
|
|
3221
3231
|
});
|
|
3222
3232
|
|
|
3223
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
3233
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-7O4MJOHM.js
|
|
3224
3234
|
var FUNCTION_REGEX = /^\s*(?:(async)\s+)?(?:function\s*(\*?)\s*(\w*)\s*\(([\s\S]*?)\)|(\*?\s*)\b(\w+)\s*\(([\s\S]*?)\)|\(([\s\S]*?)\)|([^=>,\(\)]+?))\s*(?:=>)?\s*(?:\{([\s\S]*?)\}|([\s\S]*))$/;
|
|
3225
3235
|
function getFunctionFormat(v) {
|
|
3226
3236
|
if (!v) return;
|
package/dist/node/index.js
CHANGED
|
@@ -58,12 +58,12 @@ var init_prettier = __esm({
|
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
|
|
61
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
61
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js
|
|
62
62
|
function isArray(obj2) {
|
|
63
63
|
return Object.prototype.toString.call(obj2) == "[object Array]";
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
66
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-A276ZDLP.js
|
|
67
67
|
function getStartSames(str, val) {
|
|
68
68
|
let s = "";
|
|
69
69
|
const vs = [...val];
|
|
@@ -79,7 +79,7 @@ function getStartSames(str, val) {
|
|
|
79
79
|
return [s, str.substring(index), val.substring(index)];
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
82
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-KDOS4NFR.js
|
|
83
83
|
function getImportUrl(url, imp) {
|
|
84
84
|
const arr = getStartSames(url, imp);
|
|
85
85
|
const ts2 = arr[0];
|
|
@@ -103,12 +103,12 @@ function getImportUrl(url, imp) {
|
|
|
103
103
|
return ds.join("") + arr[2].replace(/\\/g, "/");
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
106
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
|
|
107
107
|
function firstUpper(str) {
|
|
108
108
|
return str.slice(0, 1).toUpperCase() + str.slice(1);
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
111
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
|
|
112
112
|
function lineToLargeHump(name) {
|
|
113
113
|
let arr = name.split("-");
|
|
114
114
|
arr = arr.map((vs) => {
|
|
@@ -117,7 +117,7 @@ function lineToLargeHump(name) {
|
|
|
117
117
|
return arr.join("");
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
120
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.43/node_modules/@fangzhongya/create/dist/chunk-RFW66U5U.js
|
|
121
121
|
import {
|
|
122
122
|
open,
|
|
123
123
|
readdir,
|
|
@@ -387,7 +387,7 @@ function writeFileUrl(url, files, callback, isDirs, isFile, issynch) {
|
|
|
387
387
|
});
|
|
388
388
|
}
|
|
389
389
|
|
|
390
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
390
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.43/node_modules/@fangzhongya/create/dist/chunk-O3FMXCTC.js
|
|
391
391
|
import { resolve, join as join2 } from "path";
|
|
392
392
|
function styleLog(msg = "", obj2) {
|
|
393
393
|
const arr = ["\x1B[0m"];
|
|
@@ -809,7 +809,7 @@ var FangCom = class {
|
|
|
809
809
|
}
|
|
810
810
|
};
|
|
811
811
|
|
|
812
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
812
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.43/node_modules/@fangzhongya/create/dist/bins/md.js
|
|
813
813
|
var defaultConfig2 = Object.assign({}, defaultConfig, {
|
|
814
814
|
name: "md"
|
|
815
815
|
});
|
|
@@ -828,7 +828,7 @@ function runDev(config2, configCallback) {
|
|
|
828
828
|
return new FangMd(config2, configCallback);
|
|
829
829
|
}
|
|
830
830
|
|
|
831
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
831
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-NCSN3MC5.js
|
|
832
832
|
var zObj = {
|
|
833
833
|
"<": "<",
|
|
834
834
|
">": ">",
|
|
@@ -849,7 +849,7 @@ function htmlEscape(str) {
|
|
|
849
849
|
// packages/node/index.ts
|
|
850
850
|
import { join as join4 } from "path";
|
|
851
851
|
|
|
852
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
852
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
|
|
853
853
|
function mergeObject(a, b, j = 0, i) {
|
|
854
854
|
if (a instanceof Array) {
|
|
855
855
|
if (j > 0 && i) {
|
|
@@ -903,7 +903,7 @@ function getConfig(key) {
|
|
|
903
903
|
return config[key];
|
|
904
904
|
}
|
|
905
905
|
|
|
906
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
906
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-7PJ2D3KR.js
|
|
907
907
|
function getVueText(content) {
|
|
908
908
|
const result = {
|
|
909
909
|
template: "",
|
|
@@ -950,7 +950,7 @@ function getVueTexts(content) {
|
|
|
950
950
|
};
|
|
951
951
|
}
|
|
952
952
|
|
|
953
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
953
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
|
|
954
954
|
function humpToLine(name) {
|
|
955
955
|
const reg = /(([A-Z])([^A-Z]*))/g;
|
|
956
956
|
let result;
|
|
@@ -972,12 +972,12 @@ function humpToLine(name) {
|
|
|
972
972
|
}
|
|
973
973
|
}
|
|
974
974
|
|
|
975
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
975
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
|
|
976
976
|
function firstLower(str) {
|
|
977
977
|
return str.slice(0, 1).toLowerCase() + str.slice(1);
|
|
978
978
|
}
|
|
979
979
|
|
|
980
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
980
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
|
|
981
981
|
function asyncMergeArray(arr, callback) {
|
|
982
982
|
return new Promise((resolve2, reject) => {
|
|
983
983
|
let index = 0;
|
|
@@ -1001,7 +1001,7 @@ function asyncMergeArray(arr, callback) {
|
|
|
1001
1001
|
});
|
|
1002
1002
|
}
|
|
1003
1003
|
|
|
1004
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1004
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-Z7NTQAAJ.js
|
|
1005
1005
|
function getSuffix2(url) {
|
|
1006
1006
|
const reg = /\.([a-z|A-Z][a-z|A-Z|0-9]*)$/;
|
|
1007
1007
|
const regs = reg.exec(url);
|
|
@@ -1011,7 +1011,7 @@ function getSuffix2(url) {
|
|
|
1011
1011
|
return "";
|
|
1012
1012
|
}
|
|
1013
1013
|
|
|
1014
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1014
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-S6JRKYPY.js
|
|
1015
1015
|
function matchsStart2(key, matchs) {
|
|
1016
1016
|
if (matchs && matchs.length > 0) {
|
|
1017
1017
|
for (const value of matchs) {
|
|
@@ -1031,7 +1031,7 @@ function matchsStart2(key, matchs) {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
}
|
|
1033
1033
|
|
|
1034
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1034
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-YNOFNHEK.js
|
|
1035
1035
|
function matchsEnd2(key, matchs) {
|
|
1036
1036
|
if (matchs && matchs.length > 0) {
|
|
1037
1037
|
for (const value of matchs) {
|
|
@@ -1694,7 +1694,7 @@ function parse(source, options = {}) {
|
|
|
1694
1694
|
}
|
|
1695
1695
|
var stringify = getStringifier();
|
|
1696
1696
|
|
|
1697
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1697
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-FS4JPT23.js
|
|
1698
1698
|
function deComment(code) {
|
|
1699
1699
|
let output = "";
|
|
1700
1700
|
let state = "code";
|
|
@@ -1786,7 +1786,7 @@ function deComment(code) {
|
|
|
1786
1786
|
return output;
|
|
1787
1787
|
}
|
|
1788
1788
|
|
|
1789
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1789
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-N5Y3XGHX.js
|
|
1790
1790
|
function getImports(code, includeType = false) {
|
|
1791
1791
|
code = deComment(code);
|
|
1792
1792
|
const imports = /* @__PURE__ */ new Set();
|
|
@@ -1797,7 +1797,7 @@ function getImports(code, includeType = false) {
|
|
|
1797
1797
|
if (!path) continue;
|
|
1798
1798
|
const fullMatch = match[0];
|
|
1799
1799
|
if (!includeType) {
|
|
1800
|
-
if (fullMatch.includes("import") &&
|
|
1800
|
+
if (fullMatch.includes("import") && isPureTypeImport(fullMatch) || fullMatch.includes("export") && isPureTypeExport(fullMatch)) {
|
|
1801
1801
|
continue;
|
|
1802
1802
|
}
|
|
1803
1803
|
}
|
|
@@ -1805,19 +1805,29 @@ function getImports(code, includeType = false) {
|
|
|
1805
1805
|
}
|
|
1806
1806
|
return Array.from(imports);
|
|
1807
1807
|
}
|
|
1808
|
-
function
|
|
1808
|
+
function isPureTypeImport(importStatement) {
|
|
1809
|
+
const importTypeRegex = /^\s*import\s+type\b/;
|
|
1810
|
+
if (importTypeRegex.test(importStatement)) {
|
|
1811
|
+
return true;
|
|
1812
|
+
}
|
|
1809
1813
|
if (importStatement.includes("{")) {
|
|
1810
1814
|
const braceContent = importStatement.match(/\{([^}]*)\}/)?.[1] || "";
|
|
1811
|
-
|
|
1815
|
+
const items = braceContent.split(",").map((item) => item.trim()).filter(Boolean);
|
|
1816
|
+
return items.length > 0 && items.every((item) => item.startsWith("type "));
|
|
1812
1817
|
}
|
|
1813
|
-
return
|
|
1818
|
+
return false;
|
|
1814
1819
|
}
|
|
1815
|
-
function
|
|
1820
|
+
function isPureTypeExport(exportStatement) {
|
|
1821
|
+
const exportTypeRegex = /^\s*export\s+type\b/;
|
|
1822
|
+
if (exportTypeRegex.test(exportStatement)) {
|
|
1823
|
+
return true;
|
|
1824
|
+
}
|
|
1816
1825
|
if (exportStatement.includes("{")) {
|
|
1817
1826
|
const braceContent = exportStatement.match(/\{([^}]*)\}/)?.[1] || "";
|
|
1818
|
-
|
|
1827
|
+
const items = braceContent.split(",").map((item) => item.trim()).filter(Boolean);
|
|
1828
|
+
return items.length > 0 && items.every((item) => item.startsWith("type "));
|
|
1819
1829
|
}
|
|
1820
|
-
return
|
|
1830
|
+
return false;
|
|
1821
1831
|
}
|
|
1822
1832
|
|
|
1823
1833
|
// packages/utils/index.ts
|
|
@@ -3202,7 +3212,7 @@ var top_default2 = defineComponent2({
|
|
|
3202
3212
|
}
|
|
3203
3213
|
});
|
|
3204
3214
|
|
|
3205
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
3215
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-7O4MJOHM.js
|
|
3206
3216
|
var FUNCTION_REGEX = /^\s*(?:(async)\s+)?(?:function\s*(\*?)\s*(\w*)\s*\(([\s\S]*?)\)|(\*?\s*)\b(\w+)\s*\(([\s\S]*?)\)|\(([\s\S]*?)\)|([^=>,\(\)]+?))\s*(?:=>)?\s*(?:\{([\s\S]*?)\}|([\s\S]*))$/;
|
|
3207
3217
|
function getFunctionFormat(v) {
|
|
3208
3218
|
if (!v) return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";;/* empty css */require("../../../_virtual/common.cjs");const e=require("../../../node_modules/.pnpm/@highlightjs_vue-plugin@2.
|
|
1
|
+
"use strict";;/* empty css */require("../../../_virtual/common.cjs");const e=require("../../../node_modules/.pnpm/@highlightjs_vue-plugin@2.1_9b7dd99aa1babbf0e2c1b55c05d36e38/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.cjs"),n=require("vue"),t=n.defineComponent({props:{language:{type:String},code:{type:String}},components:{highlightjs:e.component}});module.exports=t;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
import "../../../_virtual/common.js";
|
|
3
|
-
import o from "../../../node_modules/.pnpm/@highlightjs_vue-plugin@2.
|
|
3
|
+
import o from "../../../node_modules/.pnpm/@highlightjs_vue-plugin@2.1_9b7dd99aa1babbf0e2c1b55c05d36e38/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.js";
|
|
4
4
|
import { defineComponent as t } from "vue";
|
|
5
5
|
const m = t({
|
|
6
6
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("monaco-editor"),u=require("vue"),a=require("./getExtraLib.cjs");function l(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=l(c),m=l(u),i={theme:"vs",value:""},g=(e=[])=>({provideCompletionItems:(n,t)=>({suggestions:e.map(s=>({label:s,kind:r.languages.CompletionItemKind.Text,insertText:"<"+s+">${1:}</"+s+">",insertTextRules:r.languages.CompletionItemInsertTextRule.InsertAsSnippet,detail:s+"组件",range:new r.Range(t.lineNumber,t.column-1,t.lineNumber,t.column)}))}),triggerCharacters:["<","$"]});function p(e){return["props","ctx"].includes(e)?e+".${1:}":e+"(${1:})"}const d=(e=[])=>(e&&e.length>0&&(e=["props","ctx",...Object.keys(m)]),{provideCompletionItems:(n,t)=>({suggestions:e.map(s=>({label:s,kind:r.languages.CompletionItemKind.Text,insertText:p(s),insertTextRules:r.languages.CompletionItemInsertTextRule.InsertAsSnippet,detail:s+"方法",range:new r.Range(t.lineNumber,t.column-1,t.lineNumber,t.column)}))}),triggerCharacters:["$"]});function f(e,n,t="typescript"){const o=r.Uri.parse(`file:///editor-${Date.now()}.ts`),s=r.editor.createModel(n,t,o);return r.editor.create(e,{...i,value:n,model:s,language:t,minimap:{enabled:!1},theme:"vs",fontSize:14,lineNumbers:"on",roundedSelection:!1,scrollBeyondLastLine:!1,automaticLayout:!0})}function b(e,n,t){if(r.typescript.typescriptDefaults.setEagerModelSync(!0),t&&t?.length>0){const o=d(t);r.languages.registerCompletionItemProvider("typescript",o),r.typescript.typescriptDefaults.setExtraLibs([]),r.typescript.typescriptDefaults.addExtraLib(a.getGlobals(),"globals.d.ts"),r.typescript.typescriptDefaults.addExtraLib(a.getVue(),"vue.d.ts")}return f(e,n,"typescript")}function y(e,n,t){const o=g(t);return r.languages.registerCompletionItemProvider("html",o),r.editor.create(e,{...i,value:n,language:"html"})}function v(e,n,t){return r.editor.create(e,{...i,value:n,language:"json"})}function x(e,n,t){return r.editor.create(e,{...i,value:n,language:"css"})}exports.getCss=x;exports.getHtml=y;exports.getJs=b;exports.getJson=v;
|
|
@@ -3,3 +3,52 @@ export declare function getJs(parent: HTMLElement, value: string, options?: stri
|
|
|
3
3
|
export declare function getHtml(parent: HTMLElement, value: string, options?: string[]): monaco.editor.IStandaloneCodeEditor;
|
|
4
4
|
export declare function getJson(parent: HTMLElement, value: string, options?: string[]): monaco.editor.IStandaloneCodeEditor;
|
|
5
5
|
export declare function getCss(parent: HTMLElement, value: string, options?: string[]): monaco.editor.IStandaloneCodeEditor;
|
|
6
|
+
...items: string[]): string[];
|
|
7
|
+
isArray(arg: any): arg is any[];
|
|
8
|
+
readonly prototype: any[];
|
|
9
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
10
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
11
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
12
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
13
|
+
of<T>(...items: T[]): T[];
|
|
14
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
15
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
16
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
20
|
+
"update:modelValue": (...args: any[]) => void;
|
|
21
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
22
|
+
modelValue: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
format: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
};
|
|
29
|
+
options: {
|
|
30
|
+
type: {
|
|
31
|
+
(arrayLength: number): string[];
|
|
32
|
+
(...items: string[]): string[];
|
|
33
|
+
new (arrayLength: number): string[];
|
|
34
|
+
new (...items: string[]): string[];
|
|
35
|
+
isArray(arg: any): arg is any[];
|
|
36
|
+
readonly prototype: any[];
|
|
37
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
38
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
39
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
40
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
41
|
+
of<T>(...items: T[]): T[];
|
|
42
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
43
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
44
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
}>> & Readonly<{
|
|
48
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
}>, {
|
|
50
|
+
modelValue: string;
|
|
51
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
52
|
+
refText: HTMLDivElement;
|
|
53
|
+
}, HTMLDivElement>;
|
|
54
|
+
export default _default;
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const l = {
|
|
1
|
+
import * as r from "monaco-editor";
|
|
2
|
+
import * as l from "vue";
|
|
3
|
+
import { getGlobals as a, getVue as c } from "./getExtraLib.js";
|
|
4
|
+
const o = {
|
|
6
5
|
theme: "vs",
|
|
7
6
|
value: ""
|
|
8
7
|
}, u = (e = []) => ({
|
|
9
|
-
provideCompletionItems: (
|
|
8
|
+
provideCompletionItems: (n, t) => ({ suggestions: e.map((s) => ({
|
|
10
9
|
label: s,
|
|
11
10
|
// 显示名称
|
|
12
|
-
kind:
|
|
11
|
+
kind: r.languages.CompletionItemKind.Text,
|
|
13
12
|
// 图标类型
|
|
14
13
|
insertText: "<" + s + ">${1:}</" + s + ">",
|
|
15
14
|
//`<${s}>$</${s}>`, // 插入的文本(支持代码片段)
|
|
16
|
-
insertTextRules:
|
|
15
|
+
insertTextRules: r.languages.CompletionItemInsertTextRule.InsertAsSnippet,
|
|
17
16
|
detail: s + "组件",
|
|
18
17
|
// 描述
|
|
19
|
-
range: new
|
|
18
|
+
range: new r.Range(
|
|
20
19
|
// 定义替换范围(可选)
|
|
21
20
|
t.lineNumber,
|
|
22
21
|
t.column - 1,
|
|
@@ -26,20 +25,20 @@ const l = {
|
|
|
26
25
|
})) }),
|
|
27
26
|
triggerCharacters: ["<", "$"]
|
|
28
27
|
});
|
|
29
|
-
function
|
|
28
|
+
function m(e) {
|
|
30
29
|
return ["props", "ctx"].includes(e) ? e + ".${1:}" : e + "(${1:})";
|
|
31
30
|
}
|
|
32
|
-
const
|
|
33
|
-
provideCompletionItems: (
|
|
31
|
+
const p = (e = []) => (e && e.length > 0 && (e = ["props", "ctx", ...Object.keys(l)]), {
|
|
32
|
+
provideCompletionItems: (n, t) => ({ suggestions: e.map((s) => ({
|
|
34
33
|
label: s,
|
|
35
34
|
// 显示名称
|
|
36
|
-
kind:
|
|
35
|
+
kind: r.languages.CompletionItemKind.Text,
|
|
37
36
|
// 图标类型
|
|
38
|
-
insertText:
|
|
39
|
-
insertTextRules:
|
|
37
|
+
insertText: m(s),
|
|
38
|
+
insertTextRules: r.languages.CompletionItemInsertTextRule.InsertAsSnippet,
|
|
40
39
|
detail: s + "方法",
|
|
41
40
|
// 描述
|
|
42
|
-
range: new
|
|
41
|
+
range: new r.Range(
|
|
43
42
|
// 定义替换范围(可选)
|
|
44
43
|
t.lineNumber,
|
|
45
44
|
t.column - 1,
|
|
@@ -49,11 +48,11 @@ const d = (e = []) => (e && e.length > 0 && (e = ["props", "ctx", ...Object.keys
|
|
|
49
48
|
})) }),
|
|
50
49
|
triggerCharacters: ["$"]
|
|
51
50
|
});
|
|
52
|
-
function
|
|
53
|
-
const i =
|
|
54
|
-
return
|
|
55
|
-
...
|
|
56
|
-
value:
|
|
51
|
+
function d(e, n, t = "typescript") {
|
|
52
|
+
const i = r.Uri.parse(`file:///editor-${Date.now()}.ts`), s = r.editor.createModel(n, t, i);
|
|
53
|
+
return r.editor.create(e, {
|
|
54
|
+
...o,
|
|
55
|
+
value: n,
|
|
57
56
|
model: s,
|
|
58
57
|
language: t,
|
|
59
58
|
minimap: { enabled: !1 },
|
|
@@ -65,44 +64,41 @@ function g(e, r, t = "typescript") {
|
|
|
65
64
|
automaticLayout: !0
|
|
66
65
|
});
|
|
67
66
|
}
|
|
68
|
-
function
|
|
69
|
-
if (
|
|
70
|
-
const i =
|
|
71
|
-
|
|
72
|
-
|
|
67
|
+
function f(e, n, t) {
|
|
68
|
+
if (r.typescript.typescriptDefaults.setEagerModelSync(!0), t && t?.length > 0) {
|
|
69
|
+
const i = p(t);
|
|
70
|
+
r.languages.registerCompletionItemProvider("typescript", i), r.typescript.typescriptDefaults.setExtraLibs([]), r.typescript.typescriptDefaults.addExtraLib(
|
|
71
|
+
a(),
|
|
73
72
|
"globals.d.ts"
|
|
74
|
-
),
|
|
75
|
-
m(),
|
|
76
|
-
"vue.d.ts"
|
|
77
|
-
);
|
|
73
|
+
), r.typescript.typescriptDefaults.addExtraLib(c(), "vue.d.ts");
|
|
78
74
|
}
|
|
79
|
-
return
|
|
75
|
+
return d(e, n, "typescript");
|
|
80
76
|
}
|
|
81
|
-
function
|
|
77
|
+
function x(e, n, t) {
|
|
82
78
|
const i = u(t);
|
|
83
|
-
return
|
|
84
|
-
...
|
|
85
|
-
value:
|
|
79
|
+
return r.languages.registerCompletionItemProvider("html", i), r.editor.create(e, {
|
|
80
|
+
...o,
|
|
81
|
+
value: n,
|
|
86
82
|
language: "html"
|
|
87
83
|
});
|
|
88
84
|
}
|
|
89
|
-
function
|
|
90
|
-
return
|
|
91
|
-
...
|
|
92
|
-
value:
|
|
85
|
+
function y(e, n, t) {
|
|
86
|
+
return r.editor.create(e, {
|
|
87
|
+
...o,
|
|
88
|
+
value: n,
|
|
93
89
|
language: "json"
|
|
94
90
|
});
|
|
95
91
|
}
|
|
96
|
-
function
|
|
97
|
-
return
|
|
98
|
-
...
|
|
99
|
-
value:
|
|
92
|
+
function b(e, n, t) {
|
|
93
|
+
return r.editor.create(e, {
|
|
94
|
+
...o,
|
|
95
|
+
value: n,
|
|
100
96
|
language: "css"
|
|
101
97
|
});
|
|
102
98
|
}
|
|
103
99
|
export {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
100
|
+
b as getCss,
|
|
101
|
+
x as getHtml,
|
|
102
|
+
f as getJs,
|
|
103
|
+
y as getJson
|
|
108
104
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../config.cjs"),l=require("../utils/storage.cjs");require("@fangzhongya/utils/basic/string/firstUpper");const p=require("./file.cjs"),f=e=>Object.freeze(Object.defineProperty({__proto__:null,default:e},Symbol.toStringTag,{value:"Module"})),i=[{path:"/__document",name:"__document",component:()=>Promise.resolve().then(()=>f(require("../index/index.vue.cjs"))),redirect:{name:"__documentIndex"},meta:{title:"文档"},children:[]}];let m=0;document.addEventListener("keydown",g);function g(e){e=e||window.event,(e.ctrlKey&&e.location==82||e.location==116)&&l.setSession("-keydown-F5",2)}let o="__document";function y(e){o=d.getConfig("router")||"__document";let t="/"+o;if(i[0].path=t,i[0].name=o,i[0].redirect={name:o+"Index"},i[0].children?.unshift({path:t+"/:chapters+",redirect:{name:o+"Index"}}),p.getFileName().forEach(n=>{i[0].children?.push({path:n.value,name:o+n.name,component:n.component})}),i.forEach(n=>{e.addRoute(n)}),e.beforeEach((n,r)=>{if(r.fullPath=="/"){let c=l.getSession("-keydown-F5");document.referrer||c==2?(console.log("刷新"),m=2):(console.log("地址栏输入 或者 刷新"),m=3)}else console.log("跳转"),m=1;l.setSession("-keydown-F5",0)}),d.getConfig("redirect")){const n=e.getRoutes().filter(r=>r.path=="/")[0]||{path:"/"};n.redirect=t,n.name?e.addRoute(n.name,n):e.addRoute(n)}}const u={};function h(e){let t=e.path,a=e.params;if(a&&Object.keys(a).length)return a;{let n=u[t];return n&&Object.keys(n).length?n:m==3?{}:l.getSession("router.toPage."+t)}}function s(e,t,a="push"){let n=t.path||"";const r=t.name,c=t.params||{};delete t.params,e[a](t),r&&(n=e.resolve({name:r}).path),u[n]=c,l.setSession("router.toPage."+n,c)}function k(e,t){s(e,{name:o+"Single",query:{id:t?.name+"/"+t?.value},params:{key:t?.key,comkey:t?.comkey}})}function v(e,t){s(e,{name:o+"Develop",query:{id:t?.value},params:{key:t?.key}})}function _(e,t){s(e,{name:o+"Edit",query:{id:t?.value},params:{key:t?.key}})}function P(e,t){s(e,{name:o+"Tests",query:{id:t?.value},params:{key:t?.key}})}function S(e,t){s(e,{name:o+"Compon",query:{id:t?.value},params:{key:t?.key}})}exports.getPageParams=h;exports.init=y;exports.toCompon=S;exports.toDevelop=v;exports.toEdit=_;exports.toPage=s;exports.toSingle=k;exports.toTests=P;
|
|
@@ -60,7 +60,7 @@ function P(t) {
|
|
|
60
60
|
function m(t, e, o = "push") {
|
|
61
61
|
let n = e.path || "";
|
|
62
62
|
const r = e.name, c = e.params || {};
|
|
63
|
-
t[o](e), r && (n = t.resolve({ name: r }).path), u[n] = c, s("router.toPage." + n, c);
|
|
63
|
+
delete e.params, t[o](e), r && (n = t.resolve({ name: r }).path), u[n] = c, s("router.toPage." + n, c);
|
|
64
64
|
}
|
|
65
65
|
function w(t, e) {
|
|
66
66
|
m(t, {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fangzhongya/vue-archive",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.1.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description ": "vue 组件注释生成文档",
|
|
7
7
|
"author": "fangzhongya ",
|
|
@@ -18,43 +18,43 @@
|
|
|
18
18
|
"registry": "https://registry.npmjs.org/"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@codemirror/autocomplete": "6.
|
|
21
|
+
"@codemirror/autocomplete": "6.20.0",
|
|
22
22
|
"@codemirror/lang-css": "^6.3.1",
|
|
23
23
|
"@codemirror/lang-html": "^6.4.11",
|
|
24
24
|
"@codemirror/lang-javascript": "^6.2.4",
|
|
25
25
|
"@codemirror/lang-json": "^6.0.2",
|
|
26
26
|
"@codemirror/state": "^6.5.2",
|
|
27
|
-
"@codemirror/view": "^6.38.
|
|
28
|
-
"@fangzhongya/create": "0.2.
|
|
29
|
-
"@fangzhongya/utils": "0.0.
|
|
27
|
+
"@codemirror/view": "^6.38.8",
|
|
28
|
+
"@fangzhongya/create": "0.2.43",
|
|
29
|
+
"@fangzhongya/utils": "0.0.49",
|
|
30
30
|
"@fangzhongya/vue-components": "0.1.20",
|
|
31
31
|
"@highlightjs/vue-plugin": "^2.1.0",
|
|
32
32
|
"@types/node": "^24.10.1",
|
|
33
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
34
|
-
"@vue/compiler-dom": "3.5.
|
|
35
|
-
"@vue/compiler-sfc": "3.5.
|
|
36
|
-
"@vue/runtime-dom": "3.5.
|
|
37
|
-
"@vue/server-renderer": "3.5.
|
|
38
|
-
"@vue/shared": "3.5.
|
|
33
|
+
"@vitejs/plugin-vue": "^6.0.2",
|
|
34
|
+
"@vue/compiler-dom": "3.5.25",
|
|
35
|
+
"@vue/compiler-sfc": "3.5.25",
|
|
36
|
+
"@vue/runtime-dom": "3.5.25",
|
|
37
|
+
"@vue/server-renderer": "3.5.25",
|
|
38
|
+
"@vue/shared": "3.5.25",
|
|
39
39
|
"codemirror": "^6.0.2",
|
|
40
40
|
"fast-glob": "^3.3.3",
|
|
41
|
-
"sass": "^1.94.
|
|
41
|
+
"sass": "^1.94.2",
|
|
42
42
|
"ts-node": "^10.9.2",
|
|
43
43
|
"tsup": "^8.5.1",
|
|
44
44
|
"typescript": "^5.9.3",
|
|
45
45
|
"unplugin-vue-components": "^30.0.0",
|
|
46
|
-
"vite": "^7.2.
|
|
46
|
+
"vite": "^7.2.4",
|
|
47
47
|
"vite-plugin-dts": "4.5.4",
|
|
48
|
-
"vitest": "^4.0.
|
|
49
|
-
"vue-tsc": "^3.1.
|
|
48
|
+
"vitest": "^4.0.14",
|
|
49
|
+
"vue-tsc": "^3.1.5"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"comment-parser": "^1.4.1",
|
|
53
53
|
"highlight.js": "^11.11.1",
|
|
54
54
|
"markdown-it": "^14.1.0",
|
|
55
|
-
"monaco-editor": "^0.
|
|
56
|
-
"prettier": "^3.
|
|
57
|
-
"vue": "^3.5.
|
|
55
|
+
"monaco-editor": "^0.55.1",
|
|
56
|
+
"prettier": "^3.7.3",
|
|
57
|
+
"vue": "^3.5.25",
|
|
58
58
|
"vue-router": "^4.6.3"
|
|
59
59
|
},
|
|
60
60
|
"types": "./dist/packages/index.d.ts",
|
|
File without changes
|