@codernote/record-tree 2.2.2 → 2.2.4
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.js +121 -111
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.node-complex[data-v-5b050bf4]{display:flex;flex-direction:row;align-self:center;justify-self:center;outline:none}.holder[data-v-5b050bf4]{width:0px;overflow:hidden;border-width:1px;border-style:solid;border-color:transparent;outline:none}.node-element[data-v-5b050bf4]{display:inline-block;position:relative;margin:5px 1px}.node-element:hover .node-del[data-v-5b050bf4]{display:block}.node-image img[data-v-5b050bf4]{outline:none}.node-audio[data-v-5b050bf4]{width:300px}.node-audio audio[data-v-5b050bf4]{width:300px;outline:none}.node-video video[data-v-5b050bf4]{outline:none}.node-del[data-v-5b050bf4]{cursor:pointer;display:none;width:15px;height:15px;position:absolute;top:-3px;right:-3px;background-color:#e6f7ff;background-size:100% 100%;border-radius:50%}.node-del[data-v-5b050bf4]:before,.node-del[data-v-5b050bf4]:after{content:"";position:absolute;top:50%;left:50%;width:2px;height:10px;background-color:#595959}.node-del[data-v-5b050bf4]:before{transform:translate(-50%,-50%) rotate(45deg)}.node-del[data-v-5b050bf4]:after{transform:translate(-50%,-50%) rotate(-45deg)}.node-file-wrap[data-v-5b050bf4]{width:260px;padding:10px 16px;display:flex;background:#f2f2f2;border-radius:5px;justify-content:center;align-items:center}.node-file-left[data-v-5b050bf4]{flex:1}.node-file-left h6[data-v-5b050bf4]{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;white-space:nowrap}.node-file-left p[data-v-5b050bf4]{margin:0;padding:0;font-size:12px;color:#999}.node-file-right a[data-v-5b050bf4]{color:#52a770;font-size:14px}@keyframes blinkBorder-5b050bf4{0%,to{border-color:transparent}50%{border-color:#333}}.node-complex .holder[data-v-5b050bf4]:focus{animation:blinkBorder-5b050bf4 1s infinite}.fullscreen-handle[data-v-5b050bf4]{width:15px;height:15px;position:absolute;bottom:0;right:16px;cursor:pointer;background:#fff9}.resize-handle[data-v-5b050bf4]{width:15px;height:15px;position:absolute;bottom:0;right:0;cursor:se-resize;transform:rotate(90deg);background:#fff9}.resize-handle svg[data-v-5b050bf4]{cursor:se-resize}.ProseMirror{outline:none}.node-div[data-v-40df90a8]{display:flex;align-items:center;position:relative}.node-div>div[data-v-40df90a8]{flex:1}.node-icon[data-v-40df90a8]{position:relative;width:17px;height:17px;border-radius:10px;background-color:#fff;cursor:pointer;margin-left:5px;align-self:flex-start;top:3px}.node-icon[data-v-40df90a8]:after{content:"";position:absolute;top:5px;left:5px;width:7px;height:7px;border-radius:10px;background-color:#eee}.node-icon[data-v-40df90a8]:hover{background-color:#ccc}.node-ul[data-v-7cac94d3]{background-color:#fff;margin:0;padding:0;list-style:none}.node-li[data-v-7cac94d3]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-7cac94d3] .sublevel .node-li{margin-left:15px}[data-v-7cac94d3] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute}[data-v-7cac94d3] .drag-over-center{background-color:#eee}[data-v-7cac94d3] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0}.collapsed>ul[data-v-7cac94d3]{display:none}[data-v-7cac94d3] .collapsed .node-icon:before{display:none}.tree-title[data-v-7cac94d3]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-7cac94d3] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-7cac94d3] .node-li.dragging .node-icon:before{display:none}[data-v-7cac94d3] .has-child>.node-div>.node-icon:before{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-7cac94d3] .has-child>.node-div>.node-icon:hover:before{background-color:#52a770}.record-tree-popper-content{display:flex;flex-wrap:wrap;padding:10px;box-shadow:0 2px 12px #1d1c1c1f;border:1px solid rgba(29,28,28,.12);border-radius:5px;overflow:hidden;background:#fff;z-index:9999}.record-tree-popper-content-item{padding:8px 10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.record-tree-svg{display:inline-block;border-radius:9999px;color:#fff;cursor:pointer}.record-tree-title-bar{position:relative;display:flex;margin-bottom:3px}.record-tree-title{padding-left:25px;font-weight:700;outline:none;font-size:18px;line-height:1.5;width:100%}.record-tree-popper-reference{display:flex;position:absolute;top:0;left:0;text-align:center;border-radius:9999px;color:#fff}.record-tree-empty-icon{display:inline-block;border-radius:9999px}.record-tree-title .node-text{margin-left:0!important}.popper{transform:translate3d(0,22px,0)!important}.record-audio[data-v-e8535564]{position:absolute;background:#fff;padding:20px;width:400px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.record-audio .recwave[data-v-e8535564]{width:300px;height:40px}.record-audio .audio-item[data-v-e8535564]{margin-top:10px;display:flex;align-items:center}.record-audio .audio-item a[data-v-e8535564]{color:#52a770;margin-left:10px;font-size:12px;cursor:pointer}.record-audio .audio-text[data-v-e8535564]{background:#f5f5f5;margin-top:10px;padding:8px 12px;border-radius:5px}.record-audio .buttons[data-v-e8535564]{margin-top:10px;display:flex;align-items:center}.record-audio .buttons .btn[data-v-e8535564]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.record-audio .buttons .finish[data-v-e8535564]{color:#fff;background:#1677ff;border:1px solid #1677ff}.record-audio .buttons .disabled[data-v-e8535564]{background:#eee;cursor:default;border-color:#eee}.record-audio .buttons .cancel[data-v-e8535564]{border:1px solid #eee}.record-audio .buttons .oper[data-v-e8535564]{margin-right:10px}.record-audio .main[data-v-e8535564]{display:flex;align-items:center}.record-audio .duration[data-v-e8535564]{width:60px;margin-left:10px;color:#999;font-size:12px}.wrap[data-v-e8535564]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-e8535564]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-audio-mobile[data-v-e8535564]{display:flex;width:100vw;position:absolute;background:#fff;padding:20px;left:50%;top:50%;transform:translate(-50%,-50%);z-index:999;align-items:center}.record-audio-mobile .recwave[data-v-e8535564]{flex:1;height:30px}.record-audio-mobile .oper[data-v-e8535564]{margin-right:10px}.record-video[data-v-be255be7]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-be255be7]{width:300px}.buttons[data-v-be255be7]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-be255be7]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-be255be7]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-be255be7]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-be255be7]{border:1px solid #eee}.buttons .oper[data-v-be255be7]{margin-right:10px}.wrap[data-v-be255be7]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-be255be7]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-video[data-v-d1a4de11]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;width:452px;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-d1a4de11]{width:200px}.img-item[data-v-d1a4de11]{width:200px;height:150px;border:1px dashed #eee;margin-left:10px}.img-item img[data-v-d1a4de11]{width:200px}.record-content[data-v-d1a4de11]{display:flex}.buttons[data-v-d1a4de11]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-d1a4de11]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-d1a4de11]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-d1a4de11]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-d1a4de11]{border:1px solid #eee}.buttons .oper[data-v-d1a4de11]{margin-right:10px}.wrap[data-v-d1a4de11]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-d1a4de11]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-tree-mobile .record-tree{height:calc(100vh - 45px);overflow-y:scroll}.record-tree-mobile .record-tree-main{padding-left:0}.record-tree-mobile .record-tree-options{padding:12px 0;display:flex;position:fixed}.record-tree-mobile .record-tree-option-item{flex:1;max-width:32px}.record-tree-mobile .node-file-wrap{width:200px}.record-tree-mobile .node-file-right{display:none}.record-tree-mobile .node-image img{width:auto;max-height:80px}.record-tree-mobile .node-audio,.record-tree-mobile .node-video{width:200px}.record-tree-mobile .node-audio audio{width:200px;outline:none}.record-tree-mobile .node-video video{width:200px;outline:none}.record-tree-container{position:relative;height:100%}.record-tree-main{padding-left:15px;overflow:scroll;flex:1}.record-tree{position:relative;padding-bottom:40px;display:flex;flex-direction:column;overflow:hidden;height:100%}.record-tree-options{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:space-between;padding:5px 0;background:#fff;border-top:1px dotted #ddd}.record-tree-option-left{display:flex;flex:1;padding-left:10px}.record-tree-option-right{padding-right:10px;font-size:14px}.record-tree-option-item{margin:0 5px;cursor:pointer;display:flex;justify-content:center;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}img:-webkit-full-screen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain}img:fullscreen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;-o-object-fit:contain;object-fit:contain}.record-tree .node-text{margin-left:5px;flex:1;border:none;outline:none;word-break:break-all}.record-tree .node-text a{color:#0076ff;cursor:pointer}.date-popover{display:block;padding:5px 10px;background:#333;border-radius:4px;position:fixed;z-index:9999;transform:translate(-50%,-120%);font-size:12px;color:#666;text-align:center;transition:opacity .3s;color:#fff}.date-popover:after{content:"";position:absolute;top:95%;left:50%;transform:translate(-50%);border-width:6px;border-style:solid;border-color:#333 transparent transparent transparent}.tiptap p.is-editor-empty:first-child:before{color:#adb5bd;content:attr(data-placeholder);float:left;height:0;pointer-events:none}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
-
import { detectDeviceType as
|
|
3
|
-
import { reactive as wr, ref as zt, openBlock as Qe, createElementBlock as nt, withModifiers as kt, createElementVNode as Je, normalizeClass as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.node-complex[data-v-5b050bf4]{display:flex;flex-direction:row;align-self:center;justify-self:center;outline:none}.holder[data-v-5b050bf4]{width:0px;overflow:hidden;border-width:1px;border-style:solid;border-color:transparent;outline:none}.node-element[data-v-5b050bf4]{display:inline-block;position:relative;margin:5px 1px}.node-element:hover .node-del[data-v-5b050bf4]{display:block}.node-image img[data-v-5b050bf4]{outline:none}.node-audio[data-v-5b050bf4]{width:300px}.node-audio audio[data-v-5b050bf4]{width:300px;outline:none}.node-video video[data-v-5b050bf4]{outline:none}.node-del[data-v-5b050bf4]{cursor:pointer;display:none;width:15px;height:15px;position:absolute;top:-3px;right:-3px;background-color:#e6f7ff;background-size:100% 100%;border-radius:50%}.node-del[data-v-5b050bf4]:before,.node-del[data-v-5b050bf4]:after{content:"";position:absolute;top:50%;left:50%;width:2px;height:10px;background-color:#595959}.node-del[data-v-5b050bf4]:before{transform:translate(-50%,-50%) rotate(45deg)}.node-del[data-v-5b050bf4]:after{transform:translate(-50%,-50%) rotate(-45deg)}.node-file-wrap[data-v-5b050bf4]{width:260px;padding:10px 16px;display:flex;background:#f2f2f2;border-radius:5px;justify-content:center;align-items:center}.node-file-left[data-v-5b050bf4]{flex:1}.node-file-left h6[data-v-5b050bf4]{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;white-space:nowrap}.node-file-left p[data-v-5b050bf4]{margin:0;padding:0;font-size:12px;color:#999}.node-file-right a[data-v-5b050bf4]{color:#52a770;font-size:14px}@keyframes blinkBorder-5b050bf4{0%,to{border-color:transparent}50%{border-color:#333}}.node-complex .holder[data-v-5b050bf4]:focus{animation:blinkBorder-5b050bf4 1s infinite}.fullscreen-handle[data-v-5b050bf4]{width:15px;height:15px;position:absolute;bottom:0;right:16px;cursor:pointer;background:#fff9}.resize-handle[data-v-5b050bf4]{width:15px;height:15px;position:absolute;bottom:0;right:0;cursor:se-resize;transform:rotate(90deg);background:#fff9}.resize-handle svg[data-v-5b050bf4]{cursor:se-resize}.ProseMirror{outline:none}.node-div[data-v-40df90a8]{display:flex;align-items:center;position:relative}.node-div>div[data-v-40df90a8]{flex:1}.node-icon[data-v-40df90a8]{position:relative;width:17px;height:17px;border-radius:10px;background-color:#fff;cursor:pointer;margin-left:5px;align-self:flex-start;top:3px}.node-icon[data-v-40df90a8]:after{content:"";position:absolute;top:5px;left:5px;width:7px;height:7px;border-radius:10px;background-color:#eee}.node-icon[data-v-40df90a8]:hover{background-color:#ccc}.node-ul[data-v-7cac94d3]{background-color:#fff;margin:0;padding:0;list-style:none}.node-li[data-v-7cac94d3]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-7cac94d3] .sublevel .node-li{margin-left:15px}[data-v-7cac94d3] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute}[data-v-7cac94d3] .drag-over-center{background-color:#eee}[data-v-7cac94d3] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0}.collapsed>ul[data-v-7cac94d3]{display:none}[data-v-7cac94d3] .collapsed .node-icon:before{display:none}.tree-title[data-v-7cac94d3]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-7cac94d3] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-7cac94d3] .node-li.dragging .node-icon:before{display:none}[data-v-7cac94d3] .has-child>.node-div>.node-icon:before{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-7cac94d3] .has-child>.node-div>.node-icon:hover:before{background-color:#52a770}.record-tree-popper-content{display:flex;flex-wrap:wrap;padding:10px;box-shadow:0 2px 12px #1d1c1c1f;border:1px solid rgba(29,28,28,.12);border-radius:5px;overflow:hidden;background:#fff;z-index:9999}.record-tree-popper-content-item{padding:8px 10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.record-tree-svg{display:inline-block;border-radius:9999px;color:#fff;cursor:pointer}.record-tree-title-bar{position:relative;display:flex;margin-bottom:3px}.record-tree-title{padding-left:25px;font-weight:700;outline:none;font-size:18px;line-height:1.5;width:100%}.record-tree-popper-reference{display:flex;position:absolute;top:0;left:0;text-align:center;border-radius:9999px;color:#fff}.record-tree-empty-icon{display:inline-block;border-radius:9999px}.record-tree-title .node-text{margin-left:0!important}.popper{transform:translate3d(0,22px,0)!important}.record-audio[data-v-e8535564]{position:absolute;background:#fff;padding:20px;width:400px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.record-audio .recwave[data-v-e8535564]{width:300px;height:40px}.record-audio .audio-item[data-v-e8535564]{margin-top:10px;display:flex;align-items:center}.record-audio .audio-item a[data-v-e8535564]{color:#52a770;margin-left:10px;font-size:12px;cursor:pointer}.record-audio .audio-text[data-v-e8535564]{background:#f5f5f5;margin-top:10px;padding:8px 12px;border-radius:5px}.record-audio .buttons[data-v-e8535564]{margin-top:10px;display:flex;align-items:center}.record-audio .buttons .btn[data-v-e8535564]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.record-audio .buttons .finish[data-v-e8535564]{color:#fff;background:#1677ff;border:1px solid #1677ff}.record-audio .buttons .disabled[data-v-e8535564]{background:#eee;cursor:default;border-color:#eee}.record-audio .buttons .cancel[data-v-e8535564]{border:1px solid #eee}.record-audio .buttons .oper[data-v-e8535564]{margin-right:10px}.record-audio .main[data-v-e8535564]{display:flex;align-items:center}.record-audio .duration[data-v-e8535564]{width:60px;margin-left:10px;color:#999;font-size:12px}.wrap[data-v-e8535564]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-e8535564]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-audio-mobile[data-v-e8535564]{display:flex;width:100vw;position:absolute;background:#fff;padding:20px;left:50%;top:50%;transform:translate(-50%,-50%);z-index:999;align-items:center}.record-audio-mobile .recwave[data-v-e8535564]{flex:1;height:30px}.record-audio-mobile .oper[data-v-e8535564]{margin-right:10px}.record-video[data-v-be255be7]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-be255be7]{width:300px}.buttons[data-v-be255be7]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-be255be7]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-be255be7]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-be255be7]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-be255be7]{border:1px solid #eee}.buttons .oper[data-v-be255be7]{margin-right:10px}.wrap[data-v-be255be7]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-be255be7]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-video[data-v-d1a4de11]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;width:452px;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-d1a4de11]{width:200px}.img-item[data-v-d1a4de11]{width:200px;height:150px;border:1px dashed #eee;margin-left:10px}.img-item img[data-v-d1a4de11]{width:200px}.record-content[data-v-d1a4de11]{display:flex}.buttons[data-v-d1a4de11]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-d1a4de11]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-d1a4de11]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-d1a4de11]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-d1a4de11]{border:1px solid #eee}.buttons .oper[data-v-d1a4de11]{margin-right:10px}.wrap[data-v-d1a4de11]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-d1a4de11]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-tree-mobile .record-tree{height:calc(100vh - 45px);overflow-y:scroll}.record-tree-mobile .record-tree-main{padding-left:0;padding-right:0}.record-tree-mobile .record-tree-options{padding:12px 0;display:flex;position:fixed}.record-tree-mobile .record-tree-option-item{flex:1;max-width:32px}.record-tree-mobile .node-file-wrap{width:200px}.record-tree-mobile .node-file-right{display:none}.record-tree-mobile .node-image img{width:auto;max-height:80px}.record-tree-mobile .node-audio,.record-tree-mobile .node-video{width:200px}.record-tree-mobile .node-audio audio{width:200px;outline:none}.record-tree-mobile .node-video video{width:200px;outline:none}.record-tree-container{position:relative;height:100%}.record-tree-main{padding-left:15px;padding-right:15px;overflow:scroll;flex:1}.record-tree{position:relative;padding-bottom:140px;display:flex;flex-direction:column;overflow:hidden;height:100%}.record-tree.record-tree-nobar{padding-bottom:0}.record-tree-options{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:space-between;padding:5px 0;background:#fff;border-top:1px dotted #ddd}.record-tree-option-left{display:flex;flex:1;padding-left:10px}.record-tree-option-right{padding-right:10px;font-size:14px}.record-tree-option-item{margin:0 5px;cursor:pointer;display:flex;justify-content:center;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}img:-webkit-full-screen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain}img:fullscreen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;-o-object-fit:contain;object-fit:contain}.record-tree .node-text{margin-left:5px;flex:1;border:none;outline:none;word-break:break-all}.record-tree .node-text a{color:#0076ff;cursor:pointer}.date-popover{display:block;padding:5px 10px;background:#333;border-radius:4px;position:fixed;z-index:9999;transform:translate(-50%,-120%);font-size:12px;color:#666;text-align:center;transition:opacity .3s;color:#fff}.date-popover:after{content:"";position:absolute;top:95%;left:50%;transform:translate(-50%);border-width:6px;border-style:solid;border-color:#333 transparent transparent transparent}.tiptap p.is-editor-empty:first-child:before{color:#adb5bd;content:attr(data-placeholder);float:left;height:0;pointer-events:none}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
+
import { detectDeviceType as B0, truncateString as _r, formatBytes as mr, uuid as Vt, byNameFindIcon as pr, icons as br, parseMimeType as J0, getSize as er, oss as tr } from "@codernote/utils";
|
|
3
|
+
import { reactive as wr, ref as zt, openBlock as Qe, createElementBlock as nt, withModifiers as kt, createElementVNode as Je, normalizeClass as Ht, createCommentVNode as Tt, unref as Ft, toDisplayString as o0, createVNode as Rt, nextTick as z0, watch as q0, onMounted as yr, onBeforeUnmount as gr, createBlock as Yt, resolveComponent as Bt, Fragment as R0, renderList as M0, createSlots as xr, withCtx as j0, normalizeStyle as Gt, pushScopeId as Sr, popScopeId as Tr } from "vue";
|
|
4
4
|
import Rr from "mitt";
|
|
5
5
|
import Jt from "vue-inline-svg";
|
|
6
6
|
import { useEditor as Mr, EditorContent as Cr } from "@tiptap/vue-3";
|
|
@@ -10,12 +10,12 @@ import Br from "@tiptap/extension-placeholder";
|
|
|
10
10
|
import Er from "@tiptap/starter-kit";
|
|
11
11
|
import at from "dayjs";
|
|
12
12
|
import Dr from "vue3-popper";
|
|
13
|
-
const
|
|
13
|
+
const Et = wr({
|
|
14
14
|
currentId: null,
|
|
15
15
|
dragId: null,
|
|
16
16
|
pos: null,
|
|
17
|
-
isMobile:
|
|
18
|
-
}),
|
|
17
|
+
isMobile: B0() === "mobile"
|
|
18
|
+
}), G0 = Rr();
|
|
19
19
|
function Lr(a) {
|
|
20
20
|
return a && a.uuid ? document.getElementById(a.uuid) : null;
|
|
21
21
|
}
|
|
@@ -73,7 +73,7 @@ function rr(a = !0) {
|
|
|
73
73
|
const x = window.visualViewport.height, g = () => {
|
|
74
74
|
window.visualViewport.height < x && (s.style.display = "none", setTimeout(() => {
|
|
75
75
|
if (s.style.display = "", a) {
|
|
76
|
-
const m =
|
|
76
|
+
const m = Et.currentId, V = Nt({ uuid: m });
|
|
77
77
|
Ir(V) || V.scrollIntoView({
|
|
78
78
|
behavior: "smooth",
|
|
79
79
|
block: "center"
|
|
@@ -133,7 +133,7 @@ const Or = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
133
133
|
},
|
|
134
134
|
emits: ["remove", "change", "keydown", "focus"],
|
|
135
135
|
setup(a, { expose: s, emit: x }) {
|
|
136
|
-
const g =
|
|
136
|
+
const g = Et.isMobile, Y = x, m = a, V = zt(), B = zt(), J = zt(), se = zt(), _e = zt();
|
|
137
137
|
s({
|
|
138
138
|
focus: () => {
|
|
139
139
|
V.value.focus();
|
|
@@ -145,12 +145,12 @@ const Or = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
145
145
|
function Me(k) {
|
|
146
146
|
const de = s0();
|
|
147
147
|
if (k.key === "ArrowLeft" && de > 0) {
|
|
148
|
-
|
|
148
|
+
z0(() => {
|
|
149
149
|
Qt(k.currentTarget, 0);
|
|
150
150
|
});
|
|
151
151
|
return;
|
|
152
152
|
}
|
|
153
|
-
k.key === "ArrowRight" && de === 0 &&
|
|
153
|
+
k.key === "ArrowRight" && de === 0 && z0(() => {
|
|
154
154
|
Qt(k.currentTarget, 1 / 0, !0);
|
|
155
155
|
}), Y("keydown", k);
|
|
156
156
|
}
|
|
@@ -204,7 +204,7 @@ const Or = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
204
204
|
}, [
|
|
205
205
|
Je("div", {
|
|
206
206
|
contenteditable: !1,
|
|
207
|
-
class:
|
|
207
|
+
class: Ht(`node-complex node-${a.data.type}`)
|
|
208
208
|
}, [
|
|
209
209
|
a.readOnly ? Tt("", !0) : (Qe(), nt("span", Xr)),
|
|
210
210
|
Je("div", Kr, [
|
|
@@ -340,13 +340,13 @@ const Or = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
340
340
|
下下周今天: () => at().add(2, "week").format("YYYY-MM-DD")
|
|
341
341
|
}, ir = Object.keys(C0);
|
|
342
342
|
ir.sort((a, s) => s.length - a.length);
|
|
343
|
-
const nr = (a) => a.tagName.toLowerCase() === "mark",
|
|
343
|
+
const nr = (a) => a.tagName.toLowerCase() === "mark", E0 = () => {
|
|
344
344
|
document.querySelectorAll(`.${ar}`).forEach((s) => {
|
|
345
345
|
s.remove();
|
|
346
346
|
});
|
|
347
|
-
},
|
|
347
|
+
}, W0 = (a) => {
|
|
348
348
|
if (nr(a.target)) {
|
|
349
|
-
|
|
349
|
+
E0();
|
|
350
350
|
const s = a.target.innerText;
|
|
351
351
|
if (C0[s]) {
|
|
352
352
|
const x = document.createElement("div");
|
|
@@ -355,21 +355,21 @@ const nr = (a) => a.tagName.toLowerCase() === "mark", B0 = () => {
|
|
|
355
355
|
x.innerText = C0[s](), x.style.top = `${g}px`, x.style.left = `${Y + parseInt(m / 2)}px`, document.body.appendChild(x);
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
},
|
|
359
|
-
nr(a.target) &&
|
|
358
|
+
}, X0 = (a) => {
|
|
359
|
+
nr(a.target) && E0();
|
|
360
360
|
}, c0 = {
|
|
361
361
|
install(a) {
|
|
362
|
-
a.addEventListener("mouseover",
|
|
362
|
+
a.addEventListener("mouseover", W0), a.addEventListener("mouseout", X0);
|
|
363
363
|
},
|
|
364
364
|
uninstall(a) {
|
|
365
|
-
a && (a.removeEventListener("mouseover",
|
|
365
|
+
a && (a.removeEventListener("mouseover", W0), a.removeEventListener("mouseout", X0));
|
|
366
366
|
},
|
|
367
367
|
getHtml(a) {
|
|
368
368
|
const s = new RegExp(`(${ir.join("|")})`, "g");
|
|
369
369
|
return a.replace(/<\/?mark>/g, "").replace(s, "<mark>$1</mark>");
|
|
370
370
|
},
|
|
371
371
|
clear() {
|
|
372
|
-
|
|
372
|
+
E0();
|
|
373
373
|
}
|
|
374
374
|
}, na = {
|
|
375
375
|
__name: "text",
|
|
@@ -413,7 +413,7 @@ const nr = (a) => a.tagName.toLowerCase() === "mark", B0 = () => {
|
|
|
413
413
|
},
|
|
414
414
|
handleKeyDown(ge, pe) {
|
|
415
415
|
const { selection: Me, doc: re } = ge.state, { from: te, to: ye } = Me, Ye = re.content.size - 1, k = te === 1 && ye === 1, de = te === Ye && ye === Ye;
|
|
416
|
-
return
|
|
416
|
+
return Et.pos = te, // 回车,缩进,光标上下移动
|
|
417
417
|
["Enter", "Tab", "ArrowUp", "ArrowDown"].includes(pe.key) || // 行首生效: 删除,和光标左移到上一行仅在
|
|
418
418
|
["Backspace", "ArrowLeft"].includes(pe.key) && k || // 行尾生效:光标右移到下一行
|
|
419
419
|
["ArrowRight"].includes(pe.key) && de ? (m("keydown", pe), !0) : !1;
|
|
@@ -424,7 +424,7 @@ const nr = (a) => a.tagName.toLowerCase() === "mark", B0 = () => {
|
|
|
424
424
|
Me !== pe && ge.commands.setContent(Me, !1), V.value || J();
|
|
425
425
|
},
|
|
426
426
|
onFocus({ editor: ge }) {
|
|
427
|
-
const pe =
|
|
427
|
+
const pe = Et.pos;
|
|
428
428
|
typeof pe == "number" && ge.commands.setTextSelection(pe || 0), m("focus"), c0.clear();
|
|
429
429
|
},
|
|
430
430
|
onBlur({ editor: ge }) {
|
|
@@ -437,12 +437,12 @@ const nr = (a) => a.tagName.toLowerCase() === "mark", B0 = () => {
|
|
|
437
437
|
}, _e = (ge = "end") => {
|
|
438
438
|
B.value && B.value.commands.focus(ge);
|
|
439
439
|
};
|
|
440
|
-
return
|
|
440
|
+
return q0(
|
|
441
441
|
() => Y.content,
|
|
442
442
|
() => {
|
|
443
443
|
B != null && B.value && (B.value.getHTML() === Y.content || B.value.commands.setContent(Y.content, !1));
|
|
444
444
|
}
|
|
445
|
-
),
|
|
445
|
+
), q0(
|
|
446
446
|
() => Y.readOnly,
|
|
447
447
|
() => {
|
|
448
448
|
B != null && B.value && B.value.setEditable(!Y.readOnly);
|
|
@@ -549,7 +549,7 @@ const nr = (a) => a.tagName.toLowerCase() === "mark", B0 = () => {
|
|
|
549
549
|
data: function() {
|
|
550
550
|
return {
|
|
551
551
|
icon: Wt,
|
|
552
|
-
store:
|
|
552
|
+
store: Et
|
|
553
553
|
};
|
|
554
554
|
},
|
|
555
555
|
methods: {
|
|
@@ -600,7 +600,7 @@ const nr = (a) => a.tagName.toLowerCase() === "mark", B0 = () => {
|
|
|
600
600
|
this.$emit("collapse", s, !1);
|
|
601
601
|
const x = {
|
|
602
602
|
text: "",
|
|
603
|
-
uuid:
|
|
603
|
+
uuid: Vt()
|
|
604
604
|
};
|
|
605
605
|
s.children ? s.children.unshift(x) : s.children = [x], this.update(), this.$nextTick(() => {
|
|
606
606
|
this.$emit("toFocus", x);
|
|
@@ -666,8 +666,8 @@ function A0() {
|
|
|
666
666
|
}
|
|
667
667
|
function ca(a, s) {
|
|
668
668
|
var V;
|
|
669
|
-
const x = a.currentTarget, g =
|
|
670
|
-
if (!x ||
|
|
669
|
+
const x = a.currentTarget, g = Et.dragId ? document.getElementById(Et.dragId) : null;
|
|
670
|
+
if (!x || Et.dragId === s.uuid || g != null && g.querySelector(`[id="${s.uuid}"]`)) {
|
|
671
671
|
a.dataTransfer.dropEffect = "none";
|
|
672
672
|
return;
|
|
673
673
|
}
|
|
@@ -730,7 +730,7 @@ const ha = {
|
|
|
730
730
|
return {
|
|
731
731
|
status: {},
|
|
732
732
|
timeout: null,
|
|
733
|
-
store:
|
|
733
|
+
store: Et
|
|
734
734
|
};
|
|
735
735
|
},
|
|
736
736
|
watch: {
|
|
@@ -745,7 +745,7 @@ const ha = {
|
|
|
745
745
|
handleDragOver: ca,
|
|
746
746
|
handleDragLeave: A0,
|
|
747
747
|
handleDragStart(a, s) {
|
|
748
|
-
a.currentTarget.classList.add("dragging"), a.dataTransfer.setData("dragNode", JSON.stringify(s)),
|
|
748
|
+
a.currentTarget.classList.add("dragging"), a.dataTransfer.setData("dragNode", JSON.stringify(s)), G0.on("dragEnd", () => {
|
|
749
749
|
const x = this.nodes.filter((g) => g !== s);
|
|
750
750
|
this.update(x);
|
|
751
751
|
}), this.store.dragId = s.uuid;
|
|
@@ -773,7 +773,7 @@ const ha = {
|
|
|
773
773
|
)
|
|
774
774
|
return;
|
|
775
775
|
let m = [...this.nodes];
|
|
776
|
-
if (m.find((V) => V.uuid === g.uuid) ? m = m.filter((V) => V.uuid !== g.uuid) :
|
|
776
|
+
if (m.find((V) => V.uuid === g.uuid) ? m = m.filter((V) => V.uuid !== g.uuid) : G0.emit("dragEnd"), this.store.dragId = null, Y === "center" && (this.status[s.uuid].collapsed = !1, s.children ? s.children.push(g) : s.children = [g], this.$nextTick(() => {
|
|
777
777
|
this.update(m);
|
|
778
778
|
})), Y === "top") {
|
|
779
779
|
const V = m.findIndex((B) => B === s);
|
|
@@ -809,7 +809,7 @@ const ha = {
|
|
|
809
809
|
if (!this.allowEmpty && this.nodes.length === 1) {
|
|
810
810
|
const x = {
|
|
811
811
|
text: "",
|
|
812
|
-
uuid:
|
|
812
|
+
uuid: Vt()
|
|
813
813
|
};
|
|
814
814
|
s.push(x), setTimeout(() => {
|
|
815
815
|
this.toFocus(x);
|
|
@@ -831,7 +831,7 @@ const ha = {
|
|
|
831
831
|
this.$emit("dbEnter");
|
|
832
832
|
},
|
|
833
833
|
keyEnter(a) {
|
|
834
|
-
const s = this.nodes.findIndex((Y) => Y.uuid === a.uuid), x = [...this.nodes], g = { text: "", uuid:
|
|
834
|
+
const s = this.nodes.findIndex((Y) => Y.uuid === a.uuid), x = [...this.nodes], g = { text: "", uuid: Vt() };
|
|
835
835
|
x.splice(s + 1, 0, g), this.update(x), this.$nextTick(() => {
|
|
836
836
|
const Y = Nt(g);
|
|
837
837
|
Y == null || Y.focus();
|
|
@@ -940,7 +940,7 @@ const ha = {
|
|
|
940
940
|
precheck() {
|
|
941
941
|
let a = !1;
|
|
942
942
|
this.nodes.forEach((s) => {
|
|
943
|
-
if (s.uuid || (s.uuid =
|
|
943
|
+
if (s.uuid || (s.uuid = Vt(), a = !0), da(s) && !s.type) {
|
|
944
944
|
const x = fa(s.text);
|
|
945
945
|
x && (s.type = x.type, s.content = x.content), a = !0;
|
|
946
946
|
}
|
|
@@ -969,14 +969,14 @@ const ha = {
|
|
|
969
969
|
}
|
|
970
970
|
}, va = {
|
|
971
971
|
key: 0,
|
|
972
|
-
class: /* @__PURE__ */
|
|
972
|
+
class: /* @__PURE__ */ Ht({
|
|
973
973
|
"node-ul": !0,
|
|
974
974
|
readOnly: !0,
|
|
975
975
|
sublevel: !0
|
|
976
976
|
})
|
|
977
977
|
}, _a = ["id"], ma = {
|
|
978
978
|
key: 1,
|
|
979
|
-
class: /* @__PURE__ */
|
|
979
|
+
class: /* @__PURE__ */ Ht({
|
|
980
980
|
"node-ul": !0,
|
|
981
981
|
sublevel: !0
|
|
982
982
|
})
|
|
@@ -987,7 +987,7 @@ function ba(a, s, x, g, Y, m) {
|
|
|
987
987
|
(Qe(!0), nt(R0, null, M0(m.filterNodes(x.nodes), (J) => (Qe(), nt("li", {
|
|
988
988
|
key: J.uuid,
|
|
989
989
|
id: `${J.uuid}`,
|
|
990
|
-
class:
|
|
990
|
+
class: Ht({
|
|
991
991
|
"node-li": !0,
|
|
992
992
|
collapsed: a.status[J.uuid] ? a.status[J.uuid].collapsed : !1,
|
|
993
993
|
"has-child": !!(J.children || []).length
|
|
@@ -1011,7 +1011,7 @@ function ba(a, s, x, g, Y, m) {
|
|
|
1011
1011
|
ref_for: !0,
|
|
1012
1012
|
ref: "elements",
|
|
1013
1013
|
draggable: "true",
|
|
1014
|
-
class:
|
|
1014
|
+
class: Ht({
|
|
1015
1015
|
"node-li": !0,
|
|
1016
1016
|
collapsed: a.status[J.uuid] ? a.status[J.uuid].collapsed : !1,
|
|
1017
1017
|
"has-child": !!(J.children || []).length
|
|
@@ -1105,9 +1105,9 @@ const wa = /* @__PURE__ */ Xt(ha, [["render", ba], ["__scopeId", "data-v-7cac94d
|
|
|
1105
1105
|
timeout: null,
|
|
1106
1106
|
tagConfig: { ...ya },
|
|
1107
1107
|
icon: Wt,
|
|
1108
|
-
isMobile:
|
|
1108
|
+
isMobile: B0() === "mobile",
|
|
1109
1109
|
titleEmpty: !1,
|
|
1110
|
-
store:
|
|
1110
|
+
store: Et
|
|
1111
1111
|
};
|
|
1112
1112
|
},
|
|
1113
1113
|
computed: {
|
|
@@ -1160,7 +1160,7 @@ const wa = /* @__PURE__ */ Xt(ha, [["render", ba], ["__scopeId", "data-v-7cac94d
|
|
|
1160
1160
|
});
|
|
1161
1161
|
},
|
|
1162
1162
|
handleTitleFocus() {
|
|
1163
|
-
|
|
1163
|
+
Et.currentId = "tree_title", this.isMobile && rr(!1);
|
|
1164
1164
|
},
|
|
1165
1165
|
handleChange(a) {
|
|
1166
1166
|
if (a.type)
|
|
@@ -1248,7 +1248,7 @@ function Ta(a, s, x, g, Y, m) {
|
|
|
1248
1248
|
const V = Bt("inline-svg"), B = Bt("Popper"), J = Bt("Editor");
|
|
1249
1249
|
return Qe(), nt("div", xa, [
|
|
1250
1250
|
x.tags.length ? (Qe(), Yt(B, { key: 0 }, xr({
|
|
1251
|
-
default:
|
|
1251
|
+
default: j0(() => [
|
|
1252
1252
|
Je("span", {
|
|
1253
1253
|
class: "record-tree-popper-reference",
|
|
1254
1254
|
style: Gt({
|
|
@@ -1278,7 +1278,7 @@ function Ta(a, s, x, g, Y, m) {
|
|
|
1278
1278
|
}, [
|
|
1279
1279
|
x.readOnly ? void 0 : {
|
|
1280
1280
|
name: "content",
|
|
1281
|
-
fn:
|
|
1281
|
+
fn: j0(() => [
|
|
1282
1282
|
Je("div", {
|
|
1283
1283
|
class: "record-tree-popper-content",
|
|
1284
1284
|
style: Gt({ width: Y.tagConfig.popW, height: Y.tagConfig.popH })
|
|
@@ -1329,7 +1329,7 @@ function Ta(a, s, x, g, Y, m) {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
const Ra = /* @__PURE__ */ Xt(ga, [["render", Ta]]);
|
|
1331
1331
|
var ct = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1332
|
-
function
|
|
1332
|
+
function D0(a) {
|
|
1333
1333
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
1334
1334
|
}
|
|
1335
1335
|
function Ma(a) {
|
|
@@ -1362,9 +1362,9 @@ const Aa = {}, ka = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1362
1362
|
__proto__: null,
|
|
1363
1363
|
default: Aa
|
|
1364
1364
|
}, Symbol.toStringTag, { value: "Module" })), Ba = /* @__PURE__ */ Ma(ka);
|
|
1365
|
-
var
|
|
1365
|
+
var K0;
|
|
1366
1366
|
function h0() {
|
|
1367
|
-
return
|
|
1367
|
+
return K0 || (K0 = 1, function(a, s) {
|
|
1368
1368
|
(function(x, g) {
|
|
1369
1369
|
a.exports = g();
|
|
1370
1370
|
})(ct, function() {
|
|
@@ -1863,9 +1863,9 @@ function h0() {
|
|
|
1863
1863
|
});
|
|
1864
1864
|
}(g0)), g0.exports;
|
|
1865
1865
|
}
|
|
1866
|
-
var x0 = { exports: {} },
|
|
1866
|
+
var x0 = { exports: {} }, Z0;
|
|
1867
1867
|
function Ea() {
|
|
1868
|
-
return
|
|
1868
|
+
return Z0 || (Z0 = 1, function(a, s) {
|
|
1869
1869
|
(function(x, g) {
|
|
1870
1870
|
a.exports = g(h0());
|
|
1871
1871
|
})(ct, function(x) {
|
|
@@ -1915,9 +1915,9 @@ function Ea() {
|
|
|
1915
1915
|
});
|
|
1916
1916
|
}(x0)), x0.exports;
|
|
1917
1917
|
}
|
|
1918
|
-
var S0 = { exports: {} },
|
|
1918
|
+
var S0 = { exports: {} }, $0;
|
|
1919
1919
|
function Da() {
|
|
1920
|
-
return
|
|
1920
|
+
return $0 || ($0 = 1, function(a, s) {
|
|
1921
1921
|
(function(x, g) {
|
|
1922
1922
|
a.exports = g(h0());
|
|
1923
1923
|
})(ct, function(x) {
|
|
@@ -2001,7 +2001,7 @@ function Da() {
|
|
|
2001
2001
|
});
|
|
2002
2002
|
})(lr);
|
|
2003
2003
|
var La = lr.exports;
|
|
2004
|
-
const Ia = /* @__PURE__ */
|
|
2004
|
+
const Ia = /* @__PURE__ */ D0(La);
|
|
2005
2005
|
var ur = { exports: {} };
|
|
2006
2006
|
(function(a, s) {
|
|
2007
2007
|
(function(x, g) {
|
|
@@ -2076,8 +2076,8 @@ var ur = { exports: {} };
|
|
|
2076
2076
|
});
|
|
2077
2077
|
})(ur);
|
|
2078
2078
|
var Oa = ur.exports;
|
|
2079
|
-
const Fa = /* @__PURE__ */
|
|
2080
|
-
let
|
|
2079
|
+
const Fa = /* @__PURE__ */ D0(Oa);
|
|
2080
|
+
let Pt, t0 = "", f0 = "", dr = null;
|
|
2081
2081
|
function Na() {
|
|
2082
2082
|
var a = "wss://iat-api.xfyun.cn/v2/iat", s = "iat-api.xfyun.cn", x = "4f2bbe08d7ee54da888cfd009514e89f", g = "NTc3MWNlNDNiZWFmMGM2Yzk0ZjRlZjdi", Y = (/* @__PURE__ */ new Date()).toGMTString(), m = "hmac-sha256", V = "host date request-line", B = `host: ${s}
|
|
2083
2083
|
date: ${Y}
|
|
@@ -2097,11 +2097,11 @@ function Ha(a) {
|
|
|
2097
2097
|
g = g + Y[m].cw[0].w;
|
|
2098
2098
|
x.pgs ? (x.pgs === "apd" && (t0 = f0), f0 = t0 + g) : t0 = t0 + g, dr(f0 || t0 || "");
|
|
2099
2099
|
}
|
|
2100
|
-
s.code === 0 && s.data.status === 2 &&
|
|
2100
|
+
s.code === 0 && s.data.status === 2 && Pt.close(), s.code !== 0 && (Pt.close(), console.error(s));
|
|
2101
2101
|
}
|
|
2102
2102
|
function Va(a) {
|
|
2103
2103
|
const s = Na();
|
|
2104
|
-
|
|
2104
|
+
Pt = new WebSocket(s), Pt.onopen = () => {
|
|
2105
2105
|
var x = {
|
|
2106
2106
|
common: {
|
|
2107
2107
|
app_id: "c54ef25c"
|
|
@@ -2119,15 +2119,15 @@ function Va(a) {
|
|
|
2119
2119
|
encoding: "lame"
|
|
2120
2120
|
}
|
|
2121
2121
|
};
|
|
2122
|
-
|
|
2123
|
-
},
|
|
2122
|
+
Pt.send(JSON.stringify(x)), a();
|
|
2123
|
+
}, Pt.onmessage = (x) => {
|
|
2124
2124
|
Ha(x.data);
|
|
2125
|
-
},
|
|
2125
|
+
}, Pt.onerror = (x) => {
|
|
2126
2126
|
console.error(x);
|
|
2127
2127
|
};
|
|
2128
2128
|
}
|
|
2129
2129
|
function Pa(a, s) {
|
|
2130
|
-
|
|
2130
|
+
Pt = null, t0 = "", f0 = "", dr = s, Va(() => {
|
|
2131
2131
|
const x = new FileReader();
|
|
2132
2132
|
x.readAsArrayBuffer(a), x.onload = (g) => {
|
|
2133
2133
|
const Y = Ya(g.target.result);
|
|
@@ -2136,7 +2136,7 @@ function Pa(a, s) {
|
|
|
2136
2136
|
const V = Y.substring(m, m + 1280);
|
|
2137
2137
|
m += 1280;
|
|
2138
2138
|
const B = m >= Y.length;
|
|
2139
|
-
|
|
2139
|
+
Pt.send(
|
|
2140
2140
|
JSON.stringify({
|
|
2141
2141
|
data: {
|
|
2142
2142
|
status: B ? 2 : 1,
|
|
@@ -2148,7 +2148,7 @@ function Pa(a, s) {
|
|
|
2148
2148
|
);
|
|
2149
2149
|
}
|
|
2150
2150
|
}, x.onerror = () => {
|
|
2151
|
-
|
|
2151
|
+
Pt.close();
|
|
2152
2152
|
};
|
|
2153
2153
|
});
|
|
2154
2154
|
}
|
|
@@ -2986,7 +2986,7 @@ var cr = { exports: {} };
|
|
|
2986
2986
|
});
|
|
2987
2987
|
})(cr);
|
|
2988
2988
|
var Ua = cr.exports;
|
|
2989
|
-
const T0 = /* @__PURE__ */
|
|
2989
|
+
const T0 = /* @__PURE__ */ D0(Ua);
|
|
2990
2990
|
(function(a) {
|
|
2991
2991
|
var s = typeof window == "object" && !!window.document, x = s ? window : Object, g = x.Recorder, Y = g.i18n;
|
|
2992
2992
|
a(g, Y, Y.$T, s);
|
|
@@ -10140,7 +10140,7 @@ const T0 = /* @__PURE__ */ E0(Ua);
|
|
|
10140
10140
|
-0.313819 * 2
|
|
10141
10141
|
];
|
|
10142
10142
|
this.L3psycho_anal_ns = function(ne, U, ee, Fe, Le, we, Ee, De, Ve, et) {
|
|
10143
|
-
var Pe = ne.internal_flags, _t = se([2, o.BLKSIZE]), st = se([2, 3, o.BLKSIZE_s]), ft = B(o.CBANDS + 1), yt = B(o.CBANDS + 1), ot = B(o.CBANDS + 2), $e = V(2), dt = V(2), Ct, Ue, rt, Xe, pt, qt,
|
|
10143
|
+
var Pe = ne.internal_flags, _t = se([2, o.BLKSIZE]), st = se([2, 3, o.BLKSIZE_s]), ft = B(o.CBANDS + 1), yt = B(o.CBANDS + 1), ot = B(o.CBANDS + 2), $e = V(2), dt = V(2), Ct, Ue, rt, Xe, pt, qt, Dt, ut, l0 = se([2, 576]), It, Kt = V(o.CBANDS + 2), e0 = V(o.CBANDS + 2);
|
|
10144
10144
|
for (Me.fill(e0, 0), Ct = Pe.channels_out, ne.mode == de.JOINT_STEREO && (Ct = 4), ne.VBR == k.vbr_off ? It = Pe.ResvMax == 0 ? 0 : Pe.ResvSize / Pe.ResvMax * 0.5 : ne.VBR == k.vbr_rh || ne.VBR == k.vbr_mtrh || ne.VBR == k.vbr_mt ? It = 0.6 : It = 1, Ue = 0; Ue < Pe.channels_out; Ue++) {
|
|
10145
10145
|
var r0 = U[Ue], a0 = ee + 576 - 350 - P + 192;
|
|
10146
10146
|
for (Xe = 0; Xe < 576; Xe++) {
|
|
@@ -10152,63 +10152,63 @@ const T0 = /* @__PURE__ */ E0(Ua);
|
|
|
10152
10152
|
Le[Fe][Ue].en.assign(Pe.en[Ue]), Le[Fe][Ue].thm.assign(Pe.thm[Ue]), Ct > 2 && g();
|
|
10153
10153
|
}
|
|
10154
10154
|
for (Ue = 0; Ue < Ct; Ue++) {
|
|
10155
|
-
var
|
|
10155
|
+
var L0, I0, Ot = B(12), jt = [0, 0, 0, 0], m0 = B(12), O0 = 1, F0, N0 = B(o.CBANDS), Y0 = B(o.CBANDS), St = [0, 0, 0, 0], H0 = B(o.HBLKSIZE), V0 = se([3, o.HBLKSIZE_s]);
|
|
10156
10156
|
for (Xe = 0; Xe < 3; Xe++)
|
|
10157
10157
|
Ot[Xe] = Pe.nsPsy.last_en_subshort[Ue][Xe + 6], m0[Xe] = Ot[Xe] / Pe.nsPsy.last_en_subshort[Ue][Xe + 4], jt[0] += Ot[Xe];
|
|
10158
10158
|
Ue == 2 && g();
|
|
10159
10159
|
{
|
|
10160
|
-
var
|
|
10160
|
+
var P0 = l0[Ue & 1], i0 = 0;
|
|
10161
10161
|
for (Xe = 0; Xe < 9; Xe++) {
|
|
10162
10162
|
for (var vr = i0 + 64, At = 1; i0 < vr; i0++)
|
|
10163
|
-
At < Math.abs(
|
|
10163
|
+
At < Math.abs(P0[i0]) && (At = Math.abs(P0[i0]));
|
|
10164
10164
|
Pe.nsPsy.last_en_subshort[Ue][Xe] = Ot[Xe + 3] = At, jt[1 + Xe / 3] += At, At > Ot[Xe + 3 - 2] ? At = At / Ot[Xe + 3 - 2] : Ot[Xe + 3 - 2] > At * 10 ? At = Ot[Xe + 3 - 2] / (At * 10) : At = 0, m0[Xe + 3] = At;
|
|
10165
10165
|
}
|
|
10166
10166
|
}
|
|
10167
|
-
for (ne.analysis && g(),
|
|
10168
|
-
St[Xe / 3] == 0 && m0[Xe] >
|
|
10167
|
+
for (ne.analysis && g(), F0 = Ue == 3 ? Pe.nsPsy.attackthre_s : Pe.nsPsy.attackthre, Xe = 0; Xe < 12; Xe++)
|
|
10168
|
+
St[Xe / 3] == 0 && m0[Xe] > F0 && (St[Xe / 3] = Xe % 3 + 1);
|
|
10169
10169
|
for (Xe = 1; Xe < 4; Xe++) {
|
|
10170
10170
|
var p0;
|
|
10171
10171
|
jt[Xe - 1] > jt[Xe] ? p0 = jt[Xe - 1] / jt[Xe] : p0 = jt[Xe] / jt[Xe - 1], p0 < 1.7 && (St[Xe] = 0, Xe == 1 && (St[0] = 0));
|
|
10172
10172
|
}
|
|
10173
|
-
for (St[0] != 0 && Pe.nsPsy.lastAttacks[Ue] != 0 && (St[0] = 0), (Pe.nsPsy.lastAttacks[Ue] == 3 || St[0] + St[1] + St[2] + St[3] != 0) && (
|
|
10173
|
+
for (St[0] != 0 && Pe.nsPsy.lastAttacks[Ue] != 0 && (St[0] = 0), (Pe.nsPsy.lastAttacks[Ue] == 3 || St[0] + St[1] + St[2] + St[3] != 0) && (O0 = 0, St[1] != 0 && St[0] != 0 && (St[1] = 0), St[2] != 0 && St[1] != 0 && (St[2] = 0), St[3] != 0 && St[2] != 0 && (St[3] = 0)), Ue < 2 ? dt[Ue] = O0 : g(), Ve[Ue] = Pe.tot_ener[Ue], I0 = st, L0 = _t, C(
|
|
10174
10174
|
ne,
|
|
10175
|
-
Y0,
|
|
10176
10175
|
H0,
|
|
10177
|
-
|
|
10178
|
-
Ue & 1,
|
|
10176
|
+
V0,
|
|
10179
10177
|
L0,
|
|
10180
10178
|
Ue & 1,
|
|
10179
|
+
I0,
|
|
10180
|
+
Ue & 1,
|
|
10181
10181
|
Fe,
|
|
10182
10182
|
Ue,
|
|
10183
10183
|
U,
|
|
10184
10184
|
ee
|
|
10185
|
-
), ze(Pe,
|
|
10186
|
-
var b0,
|
|
10187
|
-
for (i(ne,
|
|
10188
|
-
if (
|
|
10185
|
+
), ze(Pe, H0, ft, N0, Y0), Ke(Pe, N0, Y0, Kt), ut = 0; ut < 3; ut++) {
|
|
10186
|
+
var b0, Lt;
|
|
10187
|
+
for (i(ne, V0, yt, ot, Ue, ut), L(Pe, yt, ot, Ue, ut), Dt = 0; Dt < o.SBMAX_s; Dt++) {
|
|
10188
|
+
if (Lt = Pe.thm[Ue].s[Dt][ut], Lt *= ie, St[ut] >= 2 || St[ut + 1] == 1) {
|
|
10189
10189
|
var n0 = ut != 0 ? ut - 1 : 2, At = O(
|
|
10190
|
-
Pe.thm[Ue].s[
|
|
10191
|
-
|
|
10190
|
+
Pe.thm[Ue].s[Dt][n0],
|
|
10191
|
+
Lt,
|
|
10192
10192
|
N * It
|
|
10193
10193
|
);
|
|
10194
|
-
|
|
10194
|
+
Lt = Math.min(Lt, At);
|
|
10195
10195
|
}
|
|
10196
10196
|
if (St[ut] == 1) {
|
|
10197
10197
|
var n0 = ut != 0 ? ut - 1 : 2, At = O(
|
|
10198
|
-
Pe.thm[Ue].s[
|
|
10199
|
-
|
|
10198
|
+
Pe.thm[Ue].s[Dt][n0],
|
|
10199
|
+
Lt,
|
|
10200
10200
|
me * It
|
|
10201
10201
|
);
|
|
10202
|
-
|
|
10202
|
+
Lt = Math.min(Lt, At);
|
|
10203
10203
|
} else if (ut != 0 && St[ut - 1] == 3 || ut == 0 && Pe.nsPsy.lastAttacks[Ue] == 3) {
|
|
10204
10204
|
var n0 = ut != 2 ? ut + 1 : 0, At = O(
|
|
10205
|
-
Pe.thm[Ue].s[
|
|
10206
|
-
|
|
10205
|
+
Pe.thm[Ue].s[Dt][n0],
|
|
10206
|
+
Lt,
|
|
10207
10207
|
me * It
|
|
10208
10208
|
);
|
|
10209
|
-
|
|
10209
|
+
Lt = Math.min(Lt, At);
|
|
10210
10210
|
}
|
|
10211
|
-
b0 = Ot[ut * 3 + 3] + Ot[ut * 3 + 4] + Ot[ut * 3 + 5], Ot[ut * 3 + 5] * 6 < b0 && (
|
|
10211
|
+
b0 = Ot[ut * 3 + 3] + Ot[ut * 3 + 4] + Ot[ut * 3 + 5], Ot[ut * 3 + 5] * 6 < b0 && (Lt *= 0.5, Ot[ut * 3 + 4] * 6 < b0 && (Lt *= 0.5)), Pe.thm[Ue].s[Dt][ut] = Lt;
|
|
10212
10212
|
}
|
|
10213
10213
|
}
|
|
10214
10214
|
for (Pe.nsPsy.lastAttacks[Ue] = St[2], qt = 0, rt = 0; rt < Pe.npart_l; rt++) {
|
|
@@ -10231,8 +10231,8 @@ const T0 = /* @__PURE__ */ E0(Ua);
|
|
|
10231
10231
|
r(Pe, ft, ot, Ue);
|
|
10232
10232
|
}
|
|
10233
10233
|
for ((ne.mode == de.STEREO || ne.mode == de.JOINT_STEREO) && g(), ne.mode == de.JOINT_STEREO && g(), $(ne, dt, et, $e), Ue = 0; Ue < Ct; Ue++) {
|
|
10234
|
-
var u0, d0 = 0,
|
|
10235
|
-
Ue > 1 ? g() : (u0 = Ee, d0 = 0,
|
|
10234
|
+
var u0, d0 = 0, U0, y0;
|
|
10235
|
+
Ue > 1 ? g() : (u0 = Ee, d0 = 0, U0 = et[Ue], y0 = Le[Fe][Ue]), U0 == o.SHORT_TYPE ? u0[d0 + Ue] = ve(y0, Pe.masking_lower) : u0[d0 + Ue] = Ae(y0, Pe.masking_lower), ne.analysis && (Pe.pinfo.pe[Fe][Ue] = u0[d0 + Ue]);
|
|
10236
10236
|
}
|
|
10237
10237
|
return 0;
|
|
10238
10238
|
};
|
|
@@ -10260,9 +10260,9 @@ const T0 = /* @__PURE__ */ E0(Ua);
|
|
|
10260
10260
|
}
|
|
10261
10261
|
st[ot] = De * $e;
|
|
10262
10262
|
for (var rt = 0; rt < _t; rt++) {
|
|
10263
|
-
var Xe, pt, qt,
|
|
10264
|
-
qt = et[rt],
|
|
10265
|
-
var l0 = ft *
|
|
10263
|
+
var Xe, pt, qt, Dt, ut;
|
|
10264
|
+
qt = et[rt], Dt = et[rt + 1], Xe = 0 | Math.floor(0.5 + Pe * (qt - 0.5)), Xe < 0 && (Xe = 0), pt = 0 | Math.floor(0.5 + Pe * (Dt - 0.5)), pt > Ve / 2 && (pt = Ve / 2), ee[rt] = (yt[Xe] + yt[pt]) / 2, U[rt] = yt[pt];
|
|
10265
|
+
var l0 = ft * Dt;
|
|
10266
10266
|
Ee[rt] = (l0 - st[U[rt]]) / (st[U[rt] + 1] - st[U[rt]]), Ee[rt] < 0 ? Ee[rt] = 0 : Ee[rt] > 1 && (Ee[rt] = 1), ut = xt(De * et[rt] * Pe), ut = Math.min(ut, 15.5) / 15.5, we[rt] = Math.pow(
|
|
10267
10267
|
10,
|
|
10268
10268
|
1.25 * (1 - Math.cos(Math.PI * ut)) - 2.5
|
|
@@ -10407,9 +10407,9 @@ const T0 = /* @__PURE__ */ E0(Ua);
|
|
|
10407
10407
|
}
|
|
10408
10408
|
var qt = 576 * U.mode_gr / ft;
|
|
10409
10409
|
if (U.ATH.decay = Math.pow(10, -12 / 10 * qt), U.ATH.adjust = 0.01, U.ATH.adjustLimit = 1, ne.ATHtype != -1) {
|
|
10410
|
-
var Ue,
|
|
10410
|
+
var Ue, Dt = ne.out_samplerate / o.BLKSIZE, ut = 0;
|
|
10411
10411
|
for (Ue = 0, ee = 0; ee < o.BLKSIZE / 2; ++ee)
|
|
10412
|
-
Ue +=
|
|
10412
|
+
Ue += Dt, U.ATH.eql_w[ee] = 1 / Math.pow(10, this.ATHformula(Ue, ne) / 10), ut += U.ATH.eql_w[ee];
|
|
10413
10413
|
for (ut = 1 / ut, ee = o.BLKSIZE / 2; --ee >= 0; )
|
|
10414
10414
|
U.ATH.eql_w[ee] *= ut;
|
|
10415
10415
|
}
|
|
@@ -11068,7 +11068,7 @@ const za = {
|
|
|
11068
11068
|
icon: Wt,
|
|
11069
11069
|
width: "100vw",
|
|
11070
11070
|
text: "",
|
|
11071
|
-
isMobile:
|
|
11071
|
+
isMobile: Et.isMobile
|
|
11072
11072
|
};
|
|
11073
11073
|
},
|
|
11074
11074
|
methods: {
|
|
@@ -11200,7 +11200,7 @@ function ei(a, s, x, g, Y, m) {
|
|
|
11200
11200
|
])),
|
|
11201
11201
|
Je("a", {
|
|
11202
11202
|
onClick: s[5] || (s[5] = (...B) => m.handleFinish && m.handleFinish(...B)),
|
|
11203
|
-
class:
|
|
11203
|
+
class: Ht({
|
|
11204
11204
|
btn: !0,
|
|
11205
11205
|
finish: !0,
|
|
11206
11206
|
disabled: !a.blob
|
|
@@ -11209,7 +11209,7 @@ function ei(a, s, x, g, Y, m) {
|
|
|
11209
11209
|
a.text ? (Qe(), nt("a", {
|
|
11210
11210
|
key: 2,
|
|
11211
11211
|
onClick: s[6] || (s[6] = (...B) => m.handleFinishText && m.handleFinishText(...B)),
|
|
11212
|
-
class:
|
|
11212
|
+
class: Ht({
|
|
11213
11213
|
btn: !0,
|
|
11214
11214
|
finish: !0
|
|
11215
11215
|
})
|
|
@@ -13883,7 +13883,7 @@ function oi(a, s, x, g, Y, m) {
|
|
|
13883
13883
|
])),
|
|
13884
13884
|
Je("a", {
|
|
13885
13885
|
onClick: s[2] || (s[2] = (...B) => m.handleFinish && m.handleFinish(...B)),
|
|
13886
|
-
class:
|
|
13886
|
+
class: Ht(["btn", {
|
|
13887
13887
|
finish: !0,
|
|
13888
13888
|
disabled: !a.blob
|
|
13889
13889
|
}])
|
|
@@ -13998,7 +13998,7 @@ function pi(a, s, x, g, Y, m) {
|
|
|
13998
13998
|
])),
|
|
13999
13999
|
Je("a", {
|
|
14000
14000
|
onClick: s[1] || (s[1] = (...B) => m.handleFinish && m.handleFinish(...B)),
|
|
14001
|
-
class:
|
|
14001
|
+
class: Ht(["btn", {
|
|
14002
14002
|
finish: !0,
|
|
14003
14003
|
disabled: !a.url
|
|
14004
14004
|
}])
|
|
@@ -14015,7 +14015,7 @@ function pi(a, s, x, g, Y, m) {
|
|
|
14015
14015
|
})
|
|
14016
14016
|
], 4);
|
|
14017
14017
|
}
|
|
14018
|
-
const bi = /* @__PURE__ */ Xt(ui, [["render", pi], ["__scopeId", "data-v-d1a4de11"]]),
|
|
14018
|
+
const bi = /* @__PURE__ */ Xt(ui, [["render", pi], ["__scopeId", "data-v-d1a4de11"]]), Q0 = "KEY_PENDING_NODES", wi = "tree_title", yi = {
|
|
14019
14019
|
name: "recordTree",
|
|
14020
14020
|
components: {
|
|
14021
14021
|
InlineSvg: Jt,
|
|
@@ -14057,21 +14057,25 @@ const bi = /* @__PURE__ */ Xt(ui, [["render", pi], ["__scopeId", "data-v-d1a4de1
|
|
|
14057
14057
|
enableDbEnter: {
|
|
14058
14058
|
type: Boolean,
|
|
14059
14059
|
default: !1
|
|
14060
|
+
},
|
|
14061
|
+
mobile: {
|
|
14062
|
+
type: Boolean,
|
|
14063
|
+
default: B0() === "mobile"
|
|
14060
14064
|
}
|
|
14061
14065
|
},
|
|
14062
14066
|
emits: ["change", "hideHoverNote", "complete", "cancel", "dbEnter", ""],
|
|
14063
14067
|
expose: ["focusTitle", "focusContent"],
|
|
14064
14068
|
data() {
|
|
14065
14069
|
return {
|
|
14066
|
-
curNodes: [{ text: "", uuid:
|
|
14070
|
+
curNodes: [{ text: "", uuid: Vt() }],
|
|
14067
14071
|
noteId: null,
|
|
14068
14072
|
recordAudioVisible: !1,
|
|
14069
14073
|
recordVideoVisible: !1,
|
|
14070
14074
|
recordPhotoVisible: !1,
|
|
14071
14075
|
icon: Wt,
|
|
14072
|
-
hash:
|
|
14073
|
-
store:
|
|
14074
|
-
isMobile:
|
|
14076
|
+
hash: Vt(),
|
|
14077
|
+
store: Et,
|
|
14078
|
+
isMobile: Et.isMobile,
|
|
14075
14079
|
// 仅新建场景使用, 用于判断是否做了改动
|
|
14076
14080
|
modified: !1
|
|
14077
14081
|
};
|
|
@@ -14083,7 +14087,7 @@ const bi = /* @__PURE__ */ Xt(ui, [["render", pi], ["__scopeId", "data-v-d1a4de1
|
|
|
14083
14087
|
try {
|
|
14084
14088
|
this.noteId = a.id, this.curNodes = JSON.parse(a.content), this.curNodes.filter((g) => !g.pending).length || this.curNodes.push({
|
|
14085
14089
|
text: "",
|
|
14086
|
-
uuid:
|
|
14090
|
+
uuid: Vt()
|
|
14087
14091
|
}), this.restorePendingNodes(a.id), this.checkModified();
|
|
14088
14092
|
} catch {
|
|
14089
14093
|
}
|
|
@@ -14091,6 +14095,9 @@ const bi = /* @__PURE__ */ Xt(ui, [["render", pi], ["__scopeId", "data-v-d1a4de1
|
|
|
14091
14095
|
immediate: !0
|
|
14092
14096
|
}
|
|
14093
14097
|
},
|
|
14098
|
+
created() {
|
|
14099
|
+
console.log(typeof this.mobile), typeof this.mobile == "boolean" && (Et.isMobile = this.mobile, this.isMobile = this.mobile);
|
|
14100
|
+
},
|
|
14094
14101
|
methods: {
|
|
14095
14102
|
treeChange(a) {
|
|
14096
14103
|
"content" in this.note && (this.note.content != a.content || this.note.title != a.title) && (this.checkModified(), this.$emit("change", {
|
|
@@ -14213,7 +14220,7 @@ const bi = /* @__PURE__ */ Xt(ui, [["render", pi], ["__scopeId", "data-v-d1a4de1
|
|
|
14213
14220
|
},
|
|
14214
14221
|
handleFinishAudio(a) {
|
|
14215
14222
|
typeof a == "string" ? this.store.currentId === "" ? this.handleChangeTitle(a) : this.$refs.treeEditor.appendNode({
|
|
14216
|
-
uuid:
|
|
14223
|
+
uuid: Vt(),
|
|
14217
14224
|
text: a
|
|
14218
14225
|
}) : this.handleFileUpload(a);
|
|
14219
14226
|
},
|
|
@@ -14228,7 +14235,7 @@ const bi = /* @__PURE__ */ Xt(ui, [["render", pi], ["__scopeId", "data-v-d1a4de1
|
|
|
14228
14235
|
case "audio":
|
|
14229
14236
|
case "video":
|
|
14230
14237
|
return {
|
|
14231
|
-
uuid:
|
|
14238
|
+
uuid: Vt(),
|
|
14232
14239
|
type: B.mainType,
|
|
14233
14240
|
content: J,
|
|
14234
14241
|
pending: !0,
|
|
@@ -14237,7 +14244,7 @@ const bi = /* @__PURE__ */ Xt(ui, [["render", pi], ["__scopeId", "data-v-d1a4de1
|
|
|
14237
14244
|
};
|
|
14238
14245
|
default:
|
|
14239
14246
|
return {
|
|
14240
|
-
uuid:
|
|
14247
|
+
uuid: Vt(),
|
|
14241
14248
|
type: "file",
|
|
14242
14249
|
name: V.name,
|
|
14243
14250
|
content: J,
|
|
@@ -14273,11 +14280,11 @@ const bi = /* @__PURE__ */ Xt(ui, [["render", pi], ["__scopeId", "data-v-d1a4de1
|
|
|
14273
14280
|
});
|
|
14274
14281
|
},
|
|
14275
14282
|
savePendingNodes(a, s) {
|
|
14276
|
-
const x = `${
|
|
14283
|
+
const x = `${Q0}_${a}`, g = JSON.parse(window.localStorage.getItem(x) || "[]");
|
|
14277
14284
|
g.push(s), window.localStorage.setItem(x, JSON.stringify(g));
|
|
14278
14285
|
},
|
|
14279
14286
|
restorePendingNodes(a) {
|
|
14280
|
-
const s = `${
|
|
14287
|
+
const s = `${Q0}_${a}`, x = window.localStorage.getItem(s);
|
|
14281
14288
|
x && this.$nextTick(() => {
|
|
14282
14289
|
const g = JSON.parse(x);
|
|
14283
14290
|
window.localStorage.removeItem(s), g.forEach((Y) => {
|
|
@@ -14296,13 +14303,16 @@ const bi = /* @__PURE__ */ Xt(ui, [["render", pi], ["__scopeId", "data-v-d1a4de1
|
|
|
14296
14303
|
function Ci(a, s, x, g, Y, m) {
|
|
14297
14304
|
const V = Bt("RecordTitle"), B = Bt("TreeEditor"), J = Bt("inline-svg"), se = Bt("RecordAudio"), _e = Bt("RecordVideo"), ge = Bt("RecordPhoto");
|
|
14298
14305
|
return Qe(), nt("div", {
|
|
14299
|
-
class:
|
|
14306
|
+
class: Ht({
|
|
14300
14307
|
"record-tree-container": !0,
|
|
14301
14308
|
"record-tree-mobile": Y.isMobile
|
|
14302
14309
|
})
|
|
14303
14310
|
}, [
|
|
14304
14311
|
Je("div", {
|
|
14305
|
-
class:
|
|
14312
|
+
class: Ht({
|
|
14313
|
+
"record-tree": !0,
|
|
14314
|
+
"record-tree-nobar": !x.bar
|
|
14315
|
+
}),
|
|
14306
14316
|
onMouseenter: s[1] || (s[1] = (...pe) => m.hideHoverNote && m.hideHoverNote(...pe))
|
|
14307
14317
|
}, [
|
|
14308
14318
|
x.showTitle ? (Qe(), Yt(V, {
|
|
@@ -14334,7 +14344,7 @@ function Ci(a, s, x, g, Y, m) {
|
|
|
14334
14344
|
}, null, 8, ["nodes", "readOnly", "enableDbEnter", "hash", "isMobile", "onChange", "onFileUpload"])
|
|
14335
14345
|
])
|
|
14336
14346
|
])
|
|
14337
|
-
],
|
|
14347
|
+
], 34),
|
|
14338
14348
|
x.bar ? (Qe(), nt("div", Si, [
|
|
14339
14349
|
Je("div", Ti, [
|
|
14340
14350
|
Je("div", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codernote/record-tree",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"dependencies": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"recordrtc": "^5.6.2",
|
|
19
19
|
"vue-inline-svg": "^3.1.2",
|
|
20
20
|
"vue3-popper": "^1.5.0",
|
|
21
|
-
"@codernote/utils": "1.6.
|
|
21
|
+
"@codernote/utils": "1.6.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@vitejs/plugin-vue": "^5.0.4",
|