@fangzhongya/vue-archive 0.0.95 → 0.0.97
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 -13
- package/dist/node/index.cjs +51 -39
- package/dist/node/index.js +51 -39
- package/dist/packages/components/code/highlight.vue2.cjs +1 -1
- package/dist/packages/components/code/highlight.vue2.js +1 -1
- package/dist/packages/directives/adjust/index.cjs +1 -1
- package/dist/packages/directives/adjust/index.js +94 -97
- package/package.json +18 -18
- /package/dist/node_modules/.pnpm/{@highlightjs_vue-plugin@2.1_5dcf460b2cab0b2df1badb9cb42568f4 → @highlightjs_vue-plugin@2.1_2e3909c55ec4dbb48bb9fd38d8dc2691}/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@highlightjs_vue-plugin@2.1_5dcf460b2cab0b2df1badb9cb42568f4 → @highlightjs_vue-plugin@2.1_2e3909c55ec4dbb48bb9fd38d8dc2691}/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.js +0 -0
package/dist/index.css
CHANGED
|
@@ -1,13 +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}/*!
|
|
2
|
-
Theme: StackOverflow Light
|
|
3
|
-
Description: Light theme as used on stackoverflow.com
|
|
4
|
-
Author: stackoverflow.com
|
|
5
|
-
Maintainer: @Hirse
|
|
6
|
-
Website: https://github.com/StackExchange/Stacks
|
|
7
|
-
License: MIT
|
|
8
|
-
Updated: 2021-05-15
|
|
9
|
-
|
|
10
|
-
Updated for @stackoverflow/stacks v0.64.0
|
|
11
|
-
Code Blocks: /blob/v0.64.0/lib/css/components/_stacks-code-blocks.less
|
|
12
|
-
Colors: /blob/v0.64.0/lib/css/exports/_stacks-constants-colors.less
|
|
13
|
-
*/.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);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.44/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.44/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.44/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];
|
|
@@ -116,10 +116,7 @@ function getImportUrl(url, imp) {
|
|
|
116
116
|
const regs = ts2.match(/[\\|\/]([^\\|\/]*)$/);
|
|
117
117
|
if (regs && regs.length > 0) {
|
|
118
118
|
const a = regs[1];
|
|
119
|
-
arr[0] = ts2.substring(
|
|
120
|
-
0,
|
|
121
|
-
regs.index + 1
|
|
122
|
-
);
|
|
119
|
+
arr[0] = ts2.substring(0, regs.index + 1);
|
|
123
120
|
arr[1] = a + arr[1];
|
|
124
121
|
arr[2] = a + arr[2];
|
|
125
122
|
}
|
|
@@ -135,12 +132,12 @@ function getImportUrl(url, imp) {
|
|
|
135
132
|
return ds.join("") + arr[2].replace(/\\/g, "/");
|
|
136
133
|
}
|
|
137
134
|
|
|
138
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
135
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
|
|
139
136
|
function firstUpper(str) {
|
|
140
137
|
return str.slice(0, 1).toUpperCase() + str.slice(1);
|
|
141
138
|
}
|
|
142
139
|
|
|
143
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
140
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
|
|
144
141
|
function lineToLargeHump(name) {
|
|
145
142
|
let arr = name.split("-");
|
|
146
143
|
arr = arr.map((vs) => {
|
|
@@ -149,11 +146,11 @@ function lineToLargeHump(name) {
|
|
|
149
146
|
return arr.join("");
|
|
150
147
|
}
|
|
151
148
|
|
|
152
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
149
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.41/node_modules/@fangzhongya/create/dist/chunk-RFW66U5U.js
|
|
153
150
|
var import_fs = require("fs");
|
|
154
151
|
var import_path = require("path");
|
|
155
152
|
function getUrlCatalogueObj(str) {
|
|
156
|
-
const reg = /(\\|\/)([^\\|\/]+)\.([a-z|A-Z]
|
|
153
|
+
const reg = /(\\|\/)([^\\|\/]+)\.([a-z|A-Z][a-z|A-Z|0-9]*)$/g;
|
|
157
154
|
const ml = str.replace(reg, "");
|
|
158
155
|
let name = "";
|
|
159
156
|
let suffix = "";
|
|
@@ -408,7 +405,7 @@ function writeFileUrl(url, files, callback, isDirs, isFile, issynch) {
|
|
|
408
405
|
});
|
|
409
406
|
}
|
|
410
407
|
|
|
411
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
408
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.41/node_modules/@fangzhongya/create/dist/chunk-O3FMXCTC.js
|
|
412
409
|
var import_path2 = require("path");
|
|
413
410
|
function styleLog(msg = "", obj2) {
|
|
414
411
|
const arr = ["\x1B[0m"];
|
|
@@ -439,7 +436,7 @@ function styleLog(msg = "", obj2) {
|
|
|
439
436
|
return arr.join("");
|
|
440
437
|
}
|
|
441
438
|
function getSuffix(url) {
|
|
442
|
-
const reg = /\.([a-z|A-Z]
|
|
439
|
+
const reg = /\.([a-z|A-Z][a-z|A-Z|0-9]*)$/;
|
|
443
440
|
const regs = reg.exec(url);
|
|
444
441
|
if (regs && regs.length > 0) {
|
|
445
442
|
return regs[1];
|
|
@@ -483,7 +480,7 @@ function matchsStart(key, matchs) {
|
|
|
483
480
|
}
|
|
484
481
|
}
|
|
485
482
|
function getUrlCatalogue(str) {
|
|
486
|
-
const reg = /((\\|\/)([^\\|\/]+)(\.[a-z|A-Z]
|
|
483
|
+
const reg = /((\\|\/)([^\\|\/]+)(\.[a-z|A-Z][a-z|A-Z|0-9]*))?$/g;
|
|
487
484
|
return str.replace(reg, "");
|
|
488
485
|
}
|
|
489
486
|
var defaultSuffixReg = /\\.[a-z|A-Z]+$/;
|
|
@@ -611,14 +608,14 @@ var FangCom = class {
|
|
|
611
608
|
}
|
|
612
609
|
isForceUpdate(url) {
|
|
613
610
|
if (this.config.forceUpdate && this.config.forceUpdate.length > 0) {
|
|
614
|
-
return matchsEnd(url, this.config.forceUpdate);
|
|
611
|
+
return matchsEnd(url.replace(/\\/g, "/"), this.config.forceUpdate);
|
|
615
612
|
} else {
|
|
616
613
|
return false;
|
|
617
614
|
}
|
|
618
615
|
}
|
|
619
616
|
isMatchFile(url, name) {
|
|
620
617
|
const dirUrl = this.getDirUrl();
|
|
621
|
-
const dir = (0, import_path2.join)(url, name).replace(dirUrl, "");
|
|
618
|
+
const dir = (0, import_path2.join)(url, name).replace(dirUrl, "").replace(/\\/g, "/");
|
|
622
619
|
const is = matchsEnd(dir, this.config.matchexts);
|
|
623
620
|
const nomatchexts = this.config.nomatchexts;
|
|
624
621
|
if (is && nomatchexts && nomatchexts.length > 0) {
|
|
@@ -633,7 +630,7 @@ var FangCom = class {
|
|
|
633
630
|
}
|
|
634
631
|
isMatchDir(url, name) {
|
|
635
632
|
const dirUrl = this.getDirUrl();
|
|
636
|
-
const dir = (0, import_path2.join)(url, name).replace(dirUrl, "");
|
|
633
|
+
const dir = (0, import_path2.join)(url, name).replace(dirUrl, "").replace(/\\/g, "/");
|
|
637
634
|
const is = matchsStart(dir, this.config.matchs);
|
|
638
635
|
const nomatchs = this.config.nomatchs;
|
|
639
636
|
if (is && nomatchs && nomatchs.length > 0) {
|
|
@@ -830,7 +827,7 @@ var FangCom = class {
|
|
|
830
827
|
}
|
|
831
828
|
};
|
|
832
829
|
|
|
833
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
830
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.41/node_modules/@fangzhongya/create/dist/bins/md.js
|
|
834
831
|
var defaultConfig2 = Object.assign({}, defaultConfig, {
|
|
835
832
|
name: "md"
|
|
836
833
|
});
|
|
@@ -849,7 +846,7 @@ function runDev(config2, configCallback) {
|
|
|
849
846
|
return new FangMd(config2, configCallback);
|
|
850
847
|
}
|
|
851
848
|
|
|
852
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
849
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-NCSN3MC5.js
|
|
853
850
|
var zObj = {
|
|
854
851
|
"<": "<",
|
|
855
852
|
">": ">",
|
|
@@ -870,7 +867,7 @@ function htmlEscape(str) {
|
|
|
870
867
|
// packages/node/index.ts
|
|
871
868
|
var import_node_path = require("path");
|
|
872
869
|
|
|
873
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
870
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
|
|
874
871
|
function mergeObject(a, b, j = 0, i) {
|
|
875
872
|
if (a instanceof Array) {
|
|
876
873
|
if (j > 0 && i) {
|
|
@@ -924,7 +921,7 @@ function getConfig(key) {
|
|
|
924
921
|
return config[key];
|
|
925
922
|
}
|
|
926
923
|
|
|
927
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
924
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-7PJ2D3KR.js
|
|
928
925
|
function getVueText(content) {
|
|
929
926
|
const result = {
|
|
930
927
|
template: "",
|
|
@@ -971,7 +968,7 @@ function getVueTexts(content) {
|
|
|
971
968
|
};
|
|
972
969
|
}
|
|
973
970
|
|
|
974
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
971
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
|
|
975
972
|
function humpToLine(name) {
|
|
976
973
|
const reg = /(([A-Z])([^A-Z]*))/g;
|
|
977
974
|
let result;
|
|
@@ -993,12 +990,12 @@ function humpToLine(name) {
|
|
|
993
990
|
}
|
|
994
991
|
}
|
|
995
992
|
|
|
996
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
993
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
|
|
997
994
|
function firstLower(str) {
|
|
998
995
|
return str.slice(0, 1).toLowerCase() + str.slice(1);
|
|
999
996
|
}
|
|
1000
997
|
|
|
1001
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
998
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
|
|
1002
999
|
function asyncMergeArray(arr, callback) {
|
|
1003
1000
|
return new Promise((resolve2, reject) => {
|
|
1004
1001
|
let index = 0;
|
|
@@ -1022,9 +1019,9 @@ function asyncMergeArray(arr, callback) {
|
|
|
1022
1019
|
});
|
|
1023
1020
|
}
|
|
1024
1021
|
|
|
1025
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1022
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-Z7NTQAAJ.js
|
|
1026
1023
|
function getSuffix2(url) {
|
|
1027
|
-
const reg = /\.([a-z|A-Z]
|
|
1024
|
+
const reg = /\.([a-z|A-Z][a-z|A-Z|0-9]*)$/;
|
|
1028
1025
|
const regs = reg.exec(url);
|
|
1029
1026
|
if (regs && regs.length > 0) {
|
|
1030
1027
|
return regs[1];
|
|
@@ -1032,7 +1029,7 @@ function getSuffix2(url) {
|
|
|
1032
1029
|
return "";
|
|
1033
1030
|
}
|
|
1034
1031
|
|
|
1035
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1032
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-S6JRKYPY.js
|
|
1036
1033
|
function matchsStart2(key, matchs) {
|
|
1037
1034
|
if (matchs && matchs.length > 0) {
|
|
1038
1035
|
for (const value of matchs) {
|
|
@@ -1052,7 +1049,7 @@ function matchsStart2(key, matchs) {
|
|
|
1052
1049
|
}
|
|
1053
1050
|
}
|
|
1054
1051
|
|
|
1055
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1052
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-YNOFNHEK.js
|
|
1056
1053
|
function matchsEnd2(key, matchs) {
|
|
1057
1054
|
if (matchs && matchs.length > 0) {
|
|
1058
1055
|
for (const value of matchs) {
|
|
@@ -1715,7 +1712,7 @@ function parse(source, options = {}) {
|
|
|
1715
1712
|
}
|
|
1716
1713
|
var stringify = getStringifier();
|
|
1717
1714
|
|
|
1718
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1715
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-FS4JPT23.js
|
|
1719
1716
|
function deComment(code) {
|
|
1720
1717
|
let output = "";
|
|
1721
1718
|
let state = "code";
|
|
@@ -1807,24 +1804,39 @@ function deComment(code) {
|
|
|
1807
1804
|
return output;
|
|
1808
1805
|
}
|
|
1809
1806
|
|
|
1810
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1807
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-75J5ZAUX.js
|
|
1811
1808
|
function getImports(code, includeType = false) {
|
|
1812
1809
|
code = deComment(code);
|
|
1813
1810
|
const imports = /* @__PURE__ */ new Set();
|
|
1814
|
-
const regex = /(
|
|
1811
|
+
const regex = /(?:import\s*(?:type\s+)?(?:(?:\w+|\*\s*as\s+\w+|\{[^}]*\})\s+from\s*)?['"]([^'"]+)['"]|import\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)|export\s*(?:type\s+)?(?:(?:\*|\*?\s*as\s+\w+|\{[^}]*\})\s+from\s*)?['"]([^'"]+)['"])/g;
|
|
1815
1812
|
let match;
|
|
1816
1813
|
while ((match = regex.exec(code)) !== null) {
|
|
1817
|
-
const
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1814
|
+
const path = match[1] || match[2] || match[3] || match[4];
|
|
1815
|
+
if (!path) continue;
|
|
1816
|
+
const fullMatch = match[0];
|
|
1817
|
+
if (!includeType) {
|
|
1818
|
+
if (fullMatch.includes("import") && containsNonTypeImport(fullMatch) || fullMatch.includes("export") && containsNonTypeExport(fullMatch)) {
|
|
1819
|
+
continue;
|
|
1820
|
+
}
|
|
1824
1821
|
}
|
|
1822
|
+
imports.add(path);
|
|
1825
1823
|
}
|
|
1826
1824
|
return Array.from(imports);
|
|
1827
1825
|
}
|
|
1826
|
+
function containsNonTypeImport(importStatement) {
|
|
1827
|
+
if (importStatement.includes("{")) {
|
|
1828
|
+
const braceContent = importStatement.match(/\{([^}]*)\}/)?.[1] || "";
|
|
1829
|
+
return braceContent.split(",").some((item) => item.trim() && item.trim().startsWith("type "));
|
|
1830
|
+
}
|
|
1831
|
+
return importStatement.includes("import type");
|
|
1832
|
+
}
|
|
1833
|
+
function containsNonTypeExport(exportStatement) {
|
|
1834
|
+
if (exportStatement.includes("{")) {
|
|
1835
|
+
const braceContent = exportStatement.match(/\{([^}]*)\}/)?.[1] || "";
|
|
1836
|
+
return braceContent.split(",").some((item) => item.trim() && item.trim().startsWith("type "));
|
|
1837
|
+
}
|
|
1838
|
+
return exportStatement.includes("export type");
|
|
1839
|
+
}
|
|
1828
1840
|
|
|
1829
1841
|
// packages/utils/index.ts
|
|
1830
1842
|
function getTextNotes(text) {
|
|
@@ -3211,7 +3223,7 @@ var top_default2 = (0, import_vue2.defineComponent)({
|
|
|
3211
3223
|
}
|
|
3212
3224
|
});
|
|
3213
3225
|
|
|
3214
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
3226
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-7O4MJOHM.js
|
|
3215
3227
|
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]*))$/;
|
|
3216
3228
|
function getFunctionFormat(v) {
|
|
3217
3229
|
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.44/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.44/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.44/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];
|
|
@@ -87,10 +87,7 @@ function getImportUrl(url, imp) {
|
|
|
87
87
|
const regs = ts2.match(/[\\|\/]([^\\|\/]*)$/);
|
|
88
88
|
if (regs && regs.length > 0) {
|
|
89
89
|
const a = regs[1];
|
|
90
|
-
arr[0] = ts2.substring(
|
|
91
|
-
0,
|
|
92
|
-
regs.index + 1
|
|
93
|
-
);
|
|
90
|
+
arr[0] = ts2.substring(0, regs.index + 1);
|
|
94
91
|
arr[1] = a + arr[1];
|
|
95
92
|
arr[2] = a + arr[2];
|
|
96
93
|
}
|
|
@@ -106,12 +103,12 @@ function getImportUrl(url, imp) {
|
|
|
106
103
|
return ds.join("") + arr[2].replace(/\\/g, "/");
|
|
107
104
|
}
|
|
108
105
|
|
|
109
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
106
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
|
|
110
107
|
function firstUpper(str) {
|
|
111
108
|
return str.slice(0, 1).toUpperCase() + str.slice(1);
|
|
112
109
|
}
|
|
113
110
|
|
|
114
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
111
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
|
|
115
112
|
function lineToLargeHump(name) {
|
|
116
113
|
let arr = name.split("-");
|
|
117
114
|
arr = arr.map((vs) => {
|
|
@@ -120,7 +117,7 @@ function lineToLargeHump(name) {
|
|
|
120
117
|
return arr.join("");
|
|
121
118
|
}
|
|
122
119
|
|
|
123
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
120
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.41/node_modules/@fangzhongya/create/dist/chunk-RFW66U5U.js
|
|
124
121
|
import {
|
|
125
122
|
open,
|
|
126
123
|
readdir,
|
|
@@ -135,7 +132,7 @@ import {
|
|
|
135
132
|
} from "fs";
|
|
136
133
|
import { join } from "path";
|
|
137
134
|
function getUrlCatalogueObj(str) {
|
|
138
|
-
const reg = /(\\|\/)([^\\|\/]+)\.([a-z|A-Z]
|
|
135
|
+
const reg = /(\\|\/)([^\\|\/]+)\.([a-z|A-Z][a-z|A-Z|0-9]*)$/g;
|
|
139
136
|
const ml = str.replace(reg, "");
|
|
140
137
|
let name = "";
|
|
141
138
|
let suffix = "";
|
|
@@ -390,7 +387,7 @@ function writeFileUrl(url, files, callback, isDirs, isFile, issynch) {
|
|
|
390
387
|
});
|
|
391
388
|
}
|
|
392
389
|
|
|
393
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
390
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.41/node_modules/@fangzhongya/create/dist/chunk-O3FMXCTC.js
|
|
394
391
|
import { resolve, join as join2 } from "path";
|
|
395
392
|
function styleLog(msg = "", obj2) {
|
|
396
393
|
const arr = ["\x1B[0m"];
|
|
@@ -421,7 +418,7 @@ function styleLog(msg = "", obj2) {
|
|
|
421
418
|
return arr.join("");
|
|
422
419
|
}
|
|
423
420
|
function getSuffix(url) {
|
|
424
|
-
const reg = /\.([a-z|A-Z]
|
|
421
|
+
const reg = /\.([a-z|A-Z][a-z|A-Z|0-9]*)$/;
|
|
425
422
|
const regs = reg.exec(url);
|
|
426
423
|
if (regs && regs.length > 0) {
|
|
427
424
|
return regs[1];
|
|
@@ -465,7 +462,7 @@ function matchsStart(key, matchs) {
|
|
|
465
462
|
}
|
|
466
463
|
}
|
|
467
464
|
function getUrlCatalogue(str) {
|
|
468
|
-
const reg = /((\\|\/)([^\\|\/]+)(\.[a-z|A-Z]
|
|
465
|
+
const reg = /((\\|\/)([^\\|\/]+)(\.[a-z|A-Z][a-z|A-Z|0-9]*))?$/g;
|
|
469
466
|
return str.replace(reg, "");
|
|
470
467
|
}
|
|
471
468
|
var defaultSuffixReg = /\\.[a-z|A-Z]+$/;
|
|
@@ -593,14 +590,14 @@ var FangCom = class {
|
|
|
593
590
|
}
|
|
594
591
|
isForceUpdate(url) {
|
|
595
592
|
if (this.config.forceUpdate && this.config.forceUpdate.length > 0) {
|
|
596
|
-
return matchsEnd(url, this.config.forceUpdate);
|
|
593
|
+
return matchsEnd(url.replace(/\\/g, "/"), this.config.forceUpdate);
|
|
597
594
|
} else {
|
|
598
595
|
return false;
|
|
599
596
|
}
|
|
600
597
|
}
|
|
601
598
|
isMatchFile(url, name) {
|
|
602
599
|
const dirUrl = this.getDirUrl();
|
|
603
|
-
const dir = join2(url, name).replace(dirUrl, "");
|
|
600
|
+
const dir = join2(url, name).replace(dirUrl, "").replace(/\\/g, "/");
|
|
604
601
|
const is = matchsEnd(dir, this.config.matchexts);
|
|
605
602
|
const nomatchexts = this.config.nomatchexts;
|
|
606
603
|
if (is && nomatchexts && nomatchexts.length > 0) {
|
|
@@ -615,7 +612,7 @@ var FangCom = class {
|
|
|
615
612
|
}
|
|
616
613
|
isMatchDir(url, name) {
|
|
617
614
|
const dirUrl = this.getDirUrl();
|
|
618
|
-
const dir = join2(url, name).replace(dirUrl, "");
|
|
615
|
+
const dir = join2(url, name).replace(dirUrl, "").replace(/\\/g, "/");
|
|
619
616
|
const is = matchsStart(dir, this.config.matchs);
|
|
620
617
|
const nomatchs = this.config.nomatchs;
|
|
621
618
|
if (is && nomatchs && nomatchs.length > 0) {
|
|
@@ -812,7 +809,7 @@ var FangCom = class {
|
|
|
812
809
|
}
|
|
813
810
|
};
|
|
814
811
|
|
|
815
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
812
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.41/node_modules/@fangzhongya/create/dist/bins/md.js
|
|
816
813
|
var defaultConfig2 = Object.assign({}, defaultConfig, {
|
|
817
814
|
name: "md"
|
|
818
815
|
});
|
|
@@ -831,7 +828,7 @@ function runDev(config2, configCallback) {
|
|
|
831
828
|
return new FangMd(config2, configCallback);
|
|
832
829
|
}
|
|
833
830
|
|
|
834
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
831
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-NCSN3MC5.js
|
|
835
832
|
var zObj = {
|
|
836
833
|
"<": "<",
|
|
837
834
|
">": ">",
|
|
@@ -852,7 +849,7 @@ function htmlEscape(str) {
|
|
|
852
849
|
// packages/node/index.ts
|
|
853
850
|
import { join as join4 } from "path";
|
|
854
851
|
|
|
855
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
852
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
|
|
856
853
|
function mergeObject(a, b, j = 0, i) {
|
|
857
854
|
if (a instanceof Array) {
|
|
858
855
|
if (j > 0 && i) {
|
|
@@ -906,7 +903,7 @@ function getConfig(key) {
|
|
|
906
903
|
return config[key];
|
|
907
904
|
}
|
|
908
905
|
|
|
909
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
906
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-7PJ2D3KR.js
|
|
910
907
|
function getVueText(content) {
|
|
911
908
|
const result = {
|
|
912
909
|
template: "",
|
|
@@ -953,7 +950,7 @@ function getVueTexts(content) {
|
|
|
953
950
|
};
|
|
954
951
|
}
|
|
955
952
|
|
|
956
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
953
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
|
|
957
954
|
function humpToLine(name) {
|
|
958
955
|
const reg = /(([A-Z])([^A-Z]*))/g;
|
|
959
956
|
let result;
|
|
@@ -975,12 +972,12 @@ function humpToLine(name) {
|
|
|
975
972
|
}
|
|
976
973
|
}
|
|
977
974
|
|
|
978
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
975
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
|
|
979
976
|
function firstLower(str) {
|
|
980
977
|
return str.slice(0, 1).toLowerCase() + str.slice(1);
|
|
981
978
|
}
|
|
982
979
|
|
|
983
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
980
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
|
|
984
981
|
function asyncMergeArray(arr, callback) {
|
|
985
982
|
return new Promise((resolve2, reject) => {
|
|
986
983
|
let index = 0;
|
|
@@ -1004,9 +1001,9 @@ function asyncMergeArray(arr, callback) {
|
|
|
1004
1001
|
});
|
|
1005
1002
|
}
|
|
1006
1003
|
|
|
1007
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1004
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-Z7NTQAAJ.js
|
|
1008
1005
|
function getSuffix2(url) {
|
|
1009
|
-
const reg = /\.([a-z|A-Z]
|
|
1006
|
+
const reg = /\.([a-z|A-Z][a-z|A-Z|0-9]*)$/;
|
|
1010
1007
|
const regs = reg.exec(url);
|
|
1011
1008
|
if (regs && regs.length > 0) {
|
|
1012
1009
|
return regs[1];
|
|
@@ -1014,7 +1011,7 @@ function getSuffix2(url) {
|
|
|
1014
1011
|
return "";
|
|
1015
1012
|
}
|
|
1016
1013
|
|
|
1017
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1014
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-S6JRKYPY.js
|
|
1018
1015
|
function matchsStart2(key, matchs) {
|
|
1019
1016
|
if (matchs && matchs.length > 0) {
|
|
1020
1017
|
for (const value of matchs) {
|
|
@@ -1034,7 +1031,7 @@ function matchsStart2(key, matchs) {
|
|
|
1034
1031
|
}
|
|
1035
1032
|
}
|
|
1036
1033
|
|
|
1037
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1034
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-YNOFNHEK.js
|
|
1038
1035
|
function matchsEnd2(key, matchs) {
|
|
1039
1036
|
if (matchs && matchs.length > 0) {
|
|
1040
1037
|
for (const value of matchs) {
|
|
@@ -1697,7 +1694,7 @@ function parse(source, options = {}) {
|
|
|
1697
1694
|
}
|
|
1698
1695
|
var stringify = getStringifier();
|
|
1699
1696
|
|
|
1700
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1697
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-FS4JPT23.js
|
|
1701
1698
|
function deComment(code) {
|
|
1702
1699
|
let output = "";
|
|
1703
1700
|
let state = "code";
|
|
@@ -1789,24 +1786,39 @@ function deComment(code) {
|
|
|
1789
1786
|
return output;
|
|
1790
1787
|
}
|
|
1791
1788
|
|
|
1792
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1789
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-75J5ZAUX.js
|
|
1793
1790
|
function getImports(code, includeType = false) {
|
|
1794
1791
|
code = deComment(code);
|
|
1795
1792
|
const imports = /* @__PURE__ */ new Set();
|
|
1796
|
-
const regex = /(
|
|
1793
|
+
const regex = /(?:import\s*(?:type\s+)?(?:(?:\w+|\*\s*as\s+\w+|\{[^}]*\})\s+from\s*)?['"]([^'"]+)['"]|import\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)|export\s*(?:type\s+)?(?:(?:\*|\*?\s*as\s+\w+|\{[^}]*\})\s+from\s*)?['"]([^'"]+)['"])/g;
|
|
1797
1794
|
let match;
|
|
1798
1795
|
while ((match = regex.exec(code)) !== null) {
|
|
1799
|
-
const
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1796
|
+
const path = match[1] || match[2] || match[3] || match[4];
|
|
1797
|
+
if (!path) continue;
|
|
1798
|
+
const fullMatch = match[0];
|
|
1799
|
+
if (!includeType) {
|
|
1800
|
+
if (fullMatch.includes("import") && containsNonTypeImport(fullMatch) || fullMatch.includes("export") && containsNonTypeExport(fullMatch)) {
|
|
1801
|
+
continue;
|
|
1802
|
+
}
|
|
1806
1803
|
}
|
|
1804
|
+
imports.add(path);
|
|
1807
1805
|
}
|
|
1808
1806
|
return Array.from(imports);
|
|
1809
1807
|
}
|
|
1808
|
+
function containsNonTypeImport(importStatement) {
|
|
1809
|
+
if (importStatement.includes("{")) {
|
|
1810
|
+
const braceContent = importStatement.match(/\{([^}]*)\}/)?.[1] || "";
|
|
1811
|
+
return braceContent.split(",").some((item) => item.trim() && item.trim().startsWith("type "));
|
|
1812
|
+
}
|
|
1813
|
+
return importStatement.includes("import type");
|
|
1814
|
+
}
|
|
1815
|
+
function containsNonTypeExport(exportStatement) {
|
|
1816
|
+
if (exportStatement.includes("{")) {
|
|
1817
|
+
const braceContent = exportStatement.match(/\{([^}]*)\}/)?.[1] || "";
|
|
1818
|
+
return braceContent.split(",").some((item) => item.trim() && item.trim().startsWith("type "));
|
|
1819
|
+
}
|
|
1820
|
+
return exportStatement.includes("export type");
|
|
1821
|
+
}
|
|
1810
1822
|
|
|
1811
1823
|
// packages/utils/index.ts
|
|
1812
1824
|
function getTextNotes(text) {
|
|
@@ -3193,7 +3205,7 @@ var top_default2 = defineComponent2({
|
|
|
3193
3205
|
}
|
|
3194
3206
|
});
|
|
3195
3207
|
|
|
3196
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
3208
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.44/node_modules/@fangzhongya/utils/dist/chunk-7O4MJOHM.js
|
|
3197
3209
|
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]*))$/;
|
|
3198
3210
|
function getFunctionFormat(v) {
|
|
3199
3211
|
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_2e3909c55ec4dbb48bb9fd38d8dc2691/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_2e3909c55ec4dbb48bb9fd38d8dc2691/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";const
|
|
1
|
+
"use strict";const T=require("@fangzhongya/utils/name/lineToSmallHump"),V=require("@fangzhongya/utils/css/getCss"),H=require("@fangzhongya/utils/basic/string/splitUpper"),U=require("@fangzhongya/utils/dom/getShiftEvent"),r=require("@fangzhongya/utils/css/setCss"),L=14,w=14,C=1e3,h="px";function q(s){const t=["left","right","top","bottom","width","height"],n={};return t.forEach(e=>{s?n[e]=Number(V.getCss(s,e).replace(/[a-z|A-Z]*$/,"")):n[e]=0}),n}function B(s,t){t||(t=s.parentElement||s);const n=t.childNodes;let e=0,i=n.length;for(;e<n.length;e++){const o=n[e];if(o===s&&(i=e),i<e&&o.nodeType==1)break}return n[e]}function I(s,t){t||(t=s.parentElement||s);const n=t.childNodes;let e=n.length-1,i=-1;for(;e>=0;e--){const o=n[e];if(o===s&&(i=e),i>e&&o.nodeType==1)break}return n[e]}function F(s,t){return t=="bottom"||t=="right"?B(s):I(s)}function M(){const s=document.querySelector(".v-adjust-xux-height");if(s)return s;{const t=document.createElement("div");return t.className="v-adjust-xux-height",t.style.zIndex="100000",t.style.position="fixed",t.style.left="0",t.style.right="0",t.style.height="0",t.style.display="none",t.style.borderBottom="3px dashed #1d8bfa",document.body.appendChild(t),t}}function R(){const s=document.querySelector(".v-adjust-xux-width");if(s)return s;{const t=document.createElement("div");return t.className="v-adjust-xux-width",t.style.zIndex="100000",t.style.position="fixed",t.style.top="0",t.style.bottom="0",t.style.width="0",t.style.display="none",t.style.borderLeft="3px dashed #1d8bfa",document.body.appendChild(t),t}}function P(s){return s=="bottom"||s=="top"?"row-resize":s=="right"||s=="left"?"col-resize":s=="topRight"?"ne-resize":s=="topLeft"?"nw-resize":s=="bottomRight"?"se-resize":s=="bottomLeft"?"sw-resize":""}function W(s,t){const n=H.splitUpper(s);if(n.length==1)return s=="bottom"||s=="top"?(e,i)=>t&&t()?C:i[s]-e.pageY:s=="right"||s=="left"?(e,i)=>t&&t()?C:i[s]-e.pageX:(e,i)=>t&&t()?C:0;{const e=n[0],i=n[1];return(o,l)=>{if(t&&t())return C;const c=l[e]-o.pageY,f=l[i]-o.pageX;return f<w&&f>0-w&&c<L&&c>0-w?0:C}}}function Z(s){if(s=="bottom"||s=="top"){const t=M();return{show:()=>{r.setCss(t,"display","block")},set:n=>{r.setCss(t,"top",n+h)}}}else if(s=="right"||s=="left"){const t=R();return{show:()=>{r.setCss(t,"display","block")},set:n=>{r.setCss(t,"left",n+h)}}}else{const t=R(),n=M();return{show:()=>{r.setCss(t,"display","block"),r.setCss(n,"display","block")},set:(e,i)=>{r.setCss(t,"left",e+h),r.setCss(n,"top",i+h)}}}}function $(s,t){return s=="bottom"?(n,e,i)=>{const o=i.clientY-n.clientY+e.bottom;t(o,0)}:s=="top"?(n,e,i)=>{const o=i.clientY-n.clientY+e.top;t(o,0)}:s=="right"?(n,e,i)=>{const o=i.clientX-n.clientX+e.right;t(o,0)}:s=="left"?(n,e,i)=>{const o=i.clientX-n.clientX+e.left;t(o,0)}:s=="topRight"?(n,e,i)=>{const o=i.clientX-n.clientX+e.right,l=i.clientY-n.clientY+e.top;t(o,l)}:s=="bottomRight"?(n,e,i)=>{const o=i.clientX-n.clientX+e.right,l=i.clientY-n.clientY+e.bottom;t(o,l)}:s=="topLeft"?(n,e,i)=>{const o=i.clientX-n.clientX+e.left,l=i.clientY-n.clientY+e.top;t(o,l)}:s=="bottomLeft"?(n,e,i)=>{const o=i.clientX-n.clientX+e.left,l=i.clientY-n.clientY+e.bottom;t(o,l)}:(n,e,i)=>{const o=i.clientX-n.clientX+e.right,l=i.clientY-n.clientY+e.top;t(o,l)}}function v(s,t,n){return s=="bottom"?(e,i,o,l,c)=>{const f=l.height+i;f>0&&(r.setCss(e,"height",f+h),t&&r.setCss(t,"height",c.height-i+h))}:s=="top"?(e,i,o,l,c)=>{const f=l.height+i;f>0&&(r.setCss(e,"height",f+h),t&&r.setCss(t,"height",c.height-i+h),n&&r.setCss(e,"top",l.top-i+h))}:s=="right"?(e,i,o,l,c)=>{const f=l.width+i;f>0&&(r.setCss(e,"width",f+h),t&&r.setCss(t,"width",c.width-i+h))}:s=="left"?(e,i,o,l,c)=>{const f=l.width+i;f>0&&(r.setCss(e,"width",f+h),t&&r.setCss(t,"width",c.width-i+h),n&&r.setCss(e,"left",l.left-i+h))}:s=="topRight"?(e,i,o,l,c)=>{const f=l.width+i;f>0&&(r.setCss(e,"width",f+h),t&&r.setCss(t,"width",c.width-i+h));const u=l.height+o;u>0&&(r.setCss(e,"height",u+h),t&&r.setCss(t,"height",c.height-o+h),n&&r.setCss(e,"top",l.top-o+h))}:s=="bottomRight"?(e,i,o,l,c)=>{const f=l.width+i;f>0&&(r.setCss(e,"width",f+h),t&&r.setCss(t,"width",c.width-i+h));const u=l.height+o;u>0&&(r.setCss(e,"height",u+h),t&&r.setCss(t,"height",c.height-o+h))}:s=="topLeft"?(e,i,o,l,c)=>{const f=l.width+i;f>0&&(r.setCss(e,"width",f+h),t&&r.setCss(t,"width",c.width-i+h),n&&r.setCss(e,"left",l.left-i+h));const u=l.height+o;u>0&&(r.setCss(e,"height",u+h),t&&r.setCss(t,"height",c.height-o+h),n&&r.setCss(e,"top",l.top-o+h))}:s=="bottomLeft"?(e,i,o,l,c)=>{const f=l.width+i;f>0&&(r.setCss(e,"width",f+h),t&&r.setCss(t,"width",c.width-i+h),n&&r.setCss(e,"left",l.left-i+h));const u=l.height+o;u>0&&(r.setCss(e,"height",u+h),t&&r.setCss(t,"height",c.height-o+h))}:(e,i,o,l,c)=>{}}const G=["bottom","top","right","left","topRight","bottomRight","topLeft","bottomLeft"];function J(s,t,n){t=T.lineToSmallHump(t);let e={};n.adjoin&&(typeof n.adjoin=="boolean"?e.adjoin=F(s,t):typeof n.adjoin=="string"?e.adjoin=s.parentElement?.querySelector(n.adjoin):e.adjoin=n.adjoin),e.cursor=P(t),e.domObj=Z(t),e.setMousemove=$(t,e.domObj.set),e.setMousedown=o=>{t=="bottom"||t=="top"?e.domObj.set(o.clientY,0):t=="right"||t=="left"?e.domObj.set(o.clientX,0):e.domObj.set(o.clientX,o.clientY),e.domObj.show()},e.setValue=v(t,e.adjoin,n.position),e.setMouseup=(o,l,c,f)=>{let u=0,d=0;t=="bottom"?u=l.clientY-o.clientY:t=="top"?u=o.clientY-l.clientY:t=="right"?u=l.clientX-o.clientX:t=="left"?u=o.clientX-l.clientX:t=="topRight"?(d=o.clientY-l.clientY,u=l.clientX-o.clientX):t=="bottomRight"?(d=l.clientY-o.clientY,u=l.clientX-o.clientX):t=="topLeft"?(d=o.clientY-l.clientY,u=o.clientX-l.clientX):t=="bottomLeft"&&(d=l.clientY-o.clientY,u=o.clientX-l.clientX),e.setValue(s,u,d,c,f)};const i=W(t,n.getDisabled);return(o,l)=>{const c=i(o,l);if(c<L&&c>0-L)return e}}function K(s,t){return(s.all?G:Object.keys(s)).sort((e,i)=>i.length-e.length).map(e=>{const i=s.all?s.all:s[e];return J(t,e,i)})}const Q={name:"Adjust",mounted(s,t){const n=t.value,e=n.often;if(delete n.often,n&&Object.keys(n).length>0){let i=function(g){let b=!0;for(let x=0;x<l.length;x++){const O=l[x](g,X);if(O)return c=O,p=!0,b=!1,f.cursor=c.cursor,!0}if(b)return p=!1,f.cursor=u,!1},o=function(){f.cursor=u,d=!0,p=!1,r.setCss(M(),"display","none"),r.setCss(R(),"display","none")};const l=K(n,s);let c;const f=document.body.style,u=f.cursor;let d=!0,p=!1,X,Y,a;const S=g=>{d&&(X=s.getBoundingClientRect(),i(g))},A=g=>{d&&o()};let m;const N=g=>{c.setMousemove(m,X,g),e&&c.setMouseup(m,g,Y,a)},z=g=>{p&&c.setMouseup(m,g,Y,a),o()},D=(g,b)=>{p&&(m=g,Y=q(s),a=q(c.adjoin),d=!1,c.setMousedown(g),f.cursor=c.cursor,U.shiftEvent(b,document,N,z))};s.addEventListener("mousemove",S),s.addEventListener("mouseout",A),s.addEventListener("mousedown",g=>{p&&D(g,"mouse")})}}};module.exports=Q;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { lineToSmallHump as
|
|
2
|
-
import { getCss as
|
|
1
|
+
import { lineToSmallHump as q } from "@fangzhongya/utils/name/lineToSmallHump";
|
|
2
|
+
import { getCss as T } from "@fangzhongya/utils/css/getCss";
|
|
3
3
|
import { splitUpper as B } from "@fangzhongya/utils/basic/string/splitUpper";
|
|
4
4
|
import { shiftEvent as H } from "@fangzhongya/utils/dom/getShiftEvent";
|
|
5
|
-
import { setCss as
|
|
6
|
-
const
|
|
7
|
-
function
|
|
5
|
+
import { setCss as r } from "@fangzhongya/utils/css/setCss";
|
|
6
|
+
const M = 14, L = 14, m = 1e3, h = "px";
|
|
7
|
+
function A(i) {
|
|
8
8
|
const t = ["left", "right", "top", "bottom", "width", "height"], o = {};
|
|
9
9
|
return t.forEach((e) => {
|
|
10
|
-
i ? o[e] = Number(
|
|
10
|
+
i ? o[e] = Number(T(i, e).replace(/[a-z|A-Z]*$/, "")) : o[e] = 0;
|
|
11
11
|
}), o;
|
|
12
12
|
}
|
|
13
13
|
function I(i, t) {
|
|
@@ -35,7 +35,7 @@ function U(i, t) {
|
|
|
35
35
|
function F(i, t) {
|
|
36
36
|
return t == "bottom" || t == "right" ? I(i) : U(i);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function R() {
|
|
39
39
|
const i = document.querySelector(".v-adjust-xux-height");
|
|
40
40
|
if (i)
|
|
41
41
|
return i;
|
|
@@ -59,46 +59,46 @@ function P(i) {
|
|
|
59
59
|
function W(i, t) {
|
|
60
60
|
const o = B(i);
|
|
61
61
|
if (o.length == 1)
|
|
62
|
-
return i == "bottom" || i == "top" ? (e, n) => t && t() ?
|
|
62
|
+
return i == "bottom" || i == "top" ? (e, n) => t && t() ? m : n[i] - e.pageY : i == "right" || i == "left" ? (e, n) => t && t() ? m : n[i] - e.pageX : (e, n) => t && t() ? m : 0;
|
|
63
63
|
{
|
|
64
64
|
const e = o[0], n = o[1];
|
|
65
|
-
return (s,
|
|
65
|
+
return (s, l) => {
|
|
66
66
|
if (t && t())
|
|
67
|
-
return
|
|
68
|
-
const c =
|
|
69
|
-
return f < L && f > 0 - L && c <
|
|
67
|
+
return m;
|
|
68
|
+
const c = l[e] - s.pageY, f = l[n] - s.pageX;
|
|
69
|
+
return f < L && f > 0 - L && c < M && c > 0 - L ? 0 : m;
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
function Z(i) {
|
|
74
74
|
if (i == "bottom" || i == "top") {
|
|
75
|
-
const t =
|
|
75
|
+
const t = R();
|
|
76
76
|
return {
|
|
77
77
|
show: () => {
|
|
78
|
-
|
|
78
|
+
r(t, "display", "block");
|
|
79
79
|
},
|
|
80
80
|
set: (o) => {
|
|
81
|
-
|
|
81
|
+
r(t, "top", o + h);
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
84
|
} else if (i == "right" || i == "left") {
|
|
85
85
|
const t = O();
|
|
86
86
|
return {
|
|
87
87
|
show: () => {
|
|
88
|
-
|
|
88
|
+
r(t, "display", "block");
|
|
89
89
|
},
|
|
90
90
|
set: (o) => {
|
|
91
|
-
|
|
91
|
+
r(t, "left", o + h);
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
94
|
} else {
|
|
95
|
-
const t = O(), o =
|
|
95
|
+
const t = O(), o = R();
|
|
96
96
|
return {
|
|
97
97
|
show: () => {
|
|
98
|
-
|
|
98
|
+
r(t, "display", "block"), r(o, "display", "block");
|
|
99
99
|
},
|
|
100
100
|
set: (e, n) => {
|
|
101
|
-
|
|
101
|
+
r(t, "left", e + h), r(o, "top", n + h);
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
}
|
|
@@ -117,59 +117,59 @@ function $(i, t) {
|
|
|
117
117
|
const s = n.clientX - o.clientX + e.left;
|
|
118
118
|
t(s, 0);
|
|
119
119
|
} : i == "topRight" ? (o, e, n) => {
|
|
120
|
-
const s = n.clientX - o.clientX + e.right,
|
|
121
|
-
t(s,
|
|
120
|
+
const s = n.clientX - o.clientX + e.right, l = n.clientY - o.clientY + e.top;
|
|
121
|
+
t(s, l);
|
|
122
122
|
} : i == "bottomRight" ? (o, e, n) => {
|
|
123
|
-
const s = n.clientX - o.clientX + e.right,
|
|
124
|
-
t(s,
|
|
123
|
+
const s = n.clientX - o.clientX + e.right, l = n.clientY - o.clientY + e.bottom;
|
|
124
|
+
t(s, l);
|
|
125
125
|
} : i == "topLeft" ? (o, e, n) => {
|
|
126
|
-
const s = n.clientX - o.clientX + e.left,
|
|
127
|
-
t(s,
|
|
126
|
+
const s = n.clientX - o.clientX + e.left, l = n.clientY - o.clientY + e.top;
|
|
127
|
+
t(s, l);
|
|
128
128
|
} : i == "bottomLeft" ? (o, e, n) => {
|
|
129
|
-
const s = n.clientX - o.clientX + e.left,
|
|
130
|
-
t(s,
|
|
129
|
+
const s = n.clientX - o.clientX + e.left, l = n.clientY - o.clientY + e.bottom;
|
|
130
|
+
t(s, l);
|
|
131
131
|
} : (o, e, n) => {
|
|
132
|
-
const s = n.clientX - o.clientX + e.right,
|
|
133
|
-
t(s,
|
|
132
|
+
const s = n.clientX - o.clientX + e.right, l = n.clientY - o.clientY + e.top;
|
|
133
|
+
t(s, l);
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
return i == "bottom" ? (e, n, s,
|
|
138
|
-
const f =
|
|
139
|
-
f > 0 && (
|
|
140
|
-
} : i == "top" ? (e, n, s,
|
|
141
|
-
const f =
|
|
142
|
-
f > 0 && (
|
|
143
|
-
} : i == "right" ? (e, n, s,
|
|
144
|
-
const f =
|
|
145
|
-
f > 0 && (
|
|
146
|
-
} : i == "left" ? (e, n, s,
|
|
147
|
-
const f =
|
|
148
|
-
f > 0 && (
|
|
149
|
-
} : i == "topRight" ? (e, n, s,
|
|
150
|
-
const f =
|
|
151
|
-
f > 0 && (
|
|
152
|
-
const u =
|
|
153
|
-
u > 0 && (
|
|
154
|
-
} : i == "bottomRight" ? (e, n, s,
|
|
155
|
-
const f =
|
|
156
|
-
f > 0 && (
|
|
157
|
-
const u =
|
|
158
|
-
u > 0 && (
|
|
159
|
-
} : i == "topLeft" ? (e, n, s,
|
|
160
|
-
const f =
|
|
161
|
-
f > 0 && (
|
|
162
|
-
const u =
|
|
163
|
-
u > 0 && (
|
|
164
|
-
} : i == "bottomLeft" ? (e, n, s,
|
|
165
|
-
const f =
|
|
166
|
-
f > 0 && (
|
|
167
|
-
const u =
|
|
168
|
-
u > 0 && (
|
|
169
|
-
} : (e, n, s,
|
|
136
|
+
function G(i, t, o) {
|
|
137
|
+
return i == "bottom" ? (e, n, s, l, c) => {
|
|
138
|
+
const f = l.height + n;
|
|
139
|
+
f > 0 && (r(e, "height", f + h), t && r(t, "height", c.height - n + h));
|
|
140
|
+
} : i == "top" ? (e, n, s, l, c) => {
|
|
141
|
+
const f = l.height + n;
|
|
142
|
+
f > 0 && (r(e, "height", f + h), t && r(t, "height", c.height - n + h), o && r(e, "top", l.top - n + h));
|
|
143
|
+
} : i == "right" ? (e, n, s, l, c) => {
|
|
144
|
+
const f = l.width + n;
|
|
145
|
+
f > 0 && (r(e, "width", f + h), t && r(t, "width", c.width - n + h));
|
|
146
|
+
} : i == "left" ? (e, n, s, l, c) => {
|
|
147
|
+
const f = l.width + n;
|
|
148
|
+
f > 0 && (r(e, "width", f + h), t && r(t, "width", c.width - n + h), o && r(e, "left", l.left - n + h));
|
|
149
|
+
} : i == "topRight" ? (e, n, s, l, c) => {
|
|
150
|
+
const f = l.width + n;
|
|
151
|
+
f > 0 && (r(e, "width", f + h), t && r(t, "width", c.width - n + h));
|
|
152
|
+
const u = l.height + s;
|
|
153
|
+
u > 0 && (r(e, "height", u + h), t && r(t, "height", c.height - s + h), o && r(e, "top", l.top - s + h));
|
|
154
|
+
} : i == "bottomRight" ? (e, n, s, l, c) => {
|
|
155
|
+
const f = l.width + n;
|
|
156
|
+
f > 0 && (r(e, "width", f + h), t && r(t, "width", c.width - n + h));
|
|
157
|
+
const u = l.height + s;
|
|
158
|
+
u > 0 && (r(e, "height", u + h), t && r(t, "height", c.height - s + h));
|
|
159
|
+
} : i == "topLeft" ? (e, n, s, l, c) => {
|
|
160
|
+
const f = l.width + n;
|
|
161
|
+
f > 0 && (r(e, "width", f + h), t && r(t, "width", c.width - n + h), o && r(e, "left", l.left - n + h));
|
|
162
|
+
const u = l.height + s;
|
|
163
|
+
u > 0 && (r(e, "height", u + h), t && r(t, "height", c.height - s + h), o && r(e, "top", l.top - s + h));
|
|
164
|
+
} : i == "bottomLeft" ? (e, n, s, l, c) => {
|
|
165
|
+
const f = l.width + n;
|
|
166
|
+
f > 0 && (r(e, "width", f + h), t && r(t, "width", c.width - n + h), o && r(e, "left", l.left - n + h));
|
|
167
|
+
const u = l.height + s;
|
|
168
|
+
u > 0 && (r(e, "height", u + h), t && r(t, "height", c.height - s + h));
|
|
169
|
+
} : (e, n, s, l, c) => {
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
|
-
const
|
|
172
|
+
const J = [
|
|
173
173
|
"bottom",
|
|
174
174
|
"top",
|
|
175
175
|
"right",
|
|
@@ -179,26 +179,26 @@ const G = [
|
|
|
179
179
|
"topLeft",
|
|
180
180
|
"bottomLeft"
|
|
181
181
|
];
|
|
182
|
-
function
|
|
183
|
-
t =
|
|
182
|
+
function K(i, t, o) {
|
|
183
|
+
t = q(t);
|
|
184
184
|
let e = {};
|
|
185
185
|
o.adjoin && (typeof o.adjoin == "boolean" ? e.adjoin = F(i, t) : typeof o.adjoin == "string" ? e.adjoin = i.parentElement?.querySelector(o.adjoin) : e.adjoin = o.adjoin), e.cursor = P(t), e.domObj = Z(t), e.setMousemove = $(t, e.domObj.set), e.setMousedown = (s) => {
|
|
186
186
|
t == "bottom" || t == "top" ? e.domObj.set(s.clientY, 0) : t == "right" || t == "left" ? e.domObj.set(s.clientX, 0) : e.domObj.set(s.clientX, s.clientY), e.domObj.show();
|
|
187
|
-
}, e.setValue =
|
|
187
|
+
}, e.setValue = G(t, e.adjoin, o.position), e.setMouseup = (s, l, c, f) => {
|
|
188
188
|
let u = 0, d = 0;
|
|
189
|
-
t == "bottom" ? u =
|
|
189
|
+
t == "bottom" ? u = l.clientY - s.clientY : t == "top" ? u = s.clientY - l.clientY : t == "right" ? u = l.clientX - s.clientX : t == "left" ? u = s.clientX - l.clientX : t == "topRight" ? (d = s.clientY - l.clientY, u = l.clientX - s.clientX) : t == "bottomRight" ? (d = l.clientY - s.clientY, u = l.clientX - s.clientX) : t == "topLeft" ? (d = s.clientY - l.clientY, u = s.clientX - l.clientX) : t == "bottomLeft" && (d = l.clientY - s.clientY, u = s.clientX - l.clientX), e.setValue(i, u, d, c, f);
|
|
190
190
|
};
|
|
191
191
|
const n = W(t, o.getDisabled);
|
|
192
|
-
return (s,
|
|
193
|
-
const c = n(s,
|
|
194
|
-
if (c <
|
|
192
|
+
return (s, l) => {
|
|
193
|
+
const c = n(s, l);
|
|
194
|
+
if (c < M && c > 0 - M)
|
|
195
195
|
return e;
|
|
196
196
|
};
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
return (i.all ?
|
|
198
|
+
function Q(i, t) {
|
|
199
|
+
return (i.all ? J : Object.keys(i)).sort((e, n) => n.length - e.length).map((e) => {
|
|
200
200
|
const n = i.all ? i.all : i[e];
|
|
201
|
-
return
|
|
201
|
+
return K(t, e, n);
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
204
|
const k = {
|
|
@@ -207,39 +207,36 @@ const k = {
|
|
|
207
207
|
const o = t.value, e = o.often;
|
|
208
208
|
if (delete o.often, o && Object.keys(o).length > 0) {
|
|
209
209
|
let n = function(g) {
|
|
210
|
-
let
|
|
211
|
-
for (let
|
|
212
|
-
const
|
|
213
|
-
if (
|
|
214
|
-
return c =
|
|
210
|
+
let X = !0;
|
|
211
|
+
for (let w = 0; w < l.length; w++) {
|
|
212
|
+
const C = l[w](g, a);
|
|
213
|
+
if (C)
|
|
214
|
+
return c = C, p = !0, X = !1, f.cursor = c.cursor, !0;
|
|
215
215
|
}
|
|
216
|
-
if (
|
|
217
|
-
return
|
|
216
|
+
if (X)
|
|
217
|
+
return p = !1, f.cursor = u, !1;
|
|
218
218
|
}, s = function() {
|
|
219
|
-
f.cursor = u, d = !0,
|
|
219
|
+
f.cursor = u, d = !0, p = !1, r(R(), "display", "none"), r(O(), "display", "none");
|
|
220
220
|
};
|
|
221
|
-
const
|
|
221
|
+
const l = Q(o, i);
|
|
222
222
|
let c;
|
|
223
223
|
const f = document.body.style, u = f.cursor;
|
|
224
|
-
let d = !0,
|
|
225
|
-
const
|
|
224
|
+
let d = !0, p = !1, a, Y, x;
|
|
225
|
+
const N = (g) => {
|
|
226
226
|
d && (a = i.getBoundingClientRect(), n(g));
|
|
227
|
-
},
|
|
227
|
+
}, S = (g) => {
|
|
228
228
|
d && s();
|
|
229
229
|
};
|
|
230
|
-
let
|
|
230
|
+
let b;
|
|
231
231
|
const z = (g) => {
|
|
232
|
-
c.setMousemove(
|
|
232
|
+
c.setMousemove(b, a, g), e && c.setMouseup(b, g, Y, x);
|
|
233
233
|
}, D = (g) => {
|
|
234
|
-
|
|
235
|
-
},
|
|
236
|
-
|
|
234
|
+
p && c.setMouseup(b, g, Y, x), s();
|
|
235
|
+
}, V = (g, X) => {
|
|
236
|
+
p && (b = g, Y = A(i), x = A(c.adjoin), d = !1, c.setMousedown(g), f.cursor = c.cursor, H(X, document, z, D));
|
|
237
237
|
};
|
|
238
|
-
i.addEventListener("mousemove",
|
|
239
|
-
|
|
240
|
-
a = i.getBoundingClientRect(), n(p) && C(p, "touch");
|
|
241
|
-
}), i.addEventListener("mousedown", (g) => {
|
|
242
|
-
m && C(g, "mouse");
|
|
238
|
+
i.addEventListener("mousemove", N), i.addEventListener("mouseout", S), i.addEventListener("mousedown", (g) => {
|
|
239
|
+
p && V(g, "mouse");
|
|
243
240
|
});
|
|
244
241
|
}
|
|
245
242
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fangzhongya/vue-archive",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.97",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description ": "vue 组件注释生成文档",
|
|
7
7
|
"author": "fangzhongya ",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"registry": "https://registry.npmjs.org/"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@codemirror/autocomplete": "6.19.
|
|
21
|
+
"@codemirror/autocomplete": "6.19.1",
|
|
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
27
|
"@codemirror/view": "^6.38.6",
|
|
28
|
-
"@fangzhongya/create": "0.2.
|
|
29
|
-
"@fangzhongya/utils": "0.0.
|
|
30
|
-
"@fangzhongya/vue-components": "0.1.
|
|
28
|
+
"@fangzhongya/create": "0.2.41",
|
|
29
|
+
"@fangzhongya/utils": "0.0.44",
|
|
30
|
+
"@fangzhongya/vue-components": "0.1.20",
|
|
31
31
|
"@highlightjs/vue-plugin": "^2.1.0",
|
|
32
|
-
"@types/node": "^24.
|
|
32
|
+
"@types/node": "^24.10.0",
|
|
33
33
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
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.
|
|
34
|
+
"@vue/compiler-dom": "3.5.24",
|
|
35
|
+
"@vue/compiler-sfc": "3.5.24",
|
|
36
|
+
"@vue/runtime-dom": "3.5.24",
|
|
37
|
+
"@vue/server-renderer": "3.5.24",
|
|
38
|
+
"@vue/shared": "3.5.24",
|
|
39
39
|
"codemirror": "^6.0.2",
|
|
40
40
|
"fast-glob": "^3.3.3",
|
|
41
|
-
"sass": "^1.93.
|
|
41
|
+
"sass": "^1.93.3",
|
|
42
42
|
"ts-node": "^10.9.2",
|
|
43
43
|
"tsup": "^8.5.0",
|
|
44
44
|
"typescript": "^5.9.3",
|
|
45
|
-
"unplugin-vue-components": "^
|
|
46
|
-
"vite": "^7.
|
|
45
|
+
"unplugin-vue-components": "^30.0.0",
|
|
46
|
+
"vite": "^7.2.2",
|
|
47
47
|
"vite-plugin-dts": "4.5.4",
|
|
48
|
-
"vitest": "^
|
|
49
|
-
"vue-tsc": "^3.1.
|
|
48
|
+
"vitest": "^4.0.8",
|
|
49
|
+
"vue-tsc": "^3.1.3"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"comment-parser": "^1.4.1",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"markdown-it": "^14.1.0",
|
|
55
55
|
"monaco-editor": "^0.54.0",
|
|
56
56
|
"prettier": "^3.6.2",
|
|
57
|
-
"vue": "^3.5.
|
|
58
|
-
"vue-router": "^4.6.
|
|
57
|
+
"vue": "^3.5.24",
|
|
58
|
+
"vue-router": "^4.6.3"
|
|
59
59
|
},
|
|
60
60
|
"types": "./dist/packages/index.d.ts",
|
|
61
61
|
"main": "./dist/packages/index.cjs",
|
|
File without changes
|