@codernote/record-list
Advanced tools
+333
-322
@@ -1,14 +0,14 @@ | ||
| (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('.record-list-icon-button[data-v-8d9b1230]{color:#b7b7b7;padding:4px;border-radius:4px;height:24px;cursor:pointer}.record-list-icon-button[data-v-8d9b1230]:hover{color:#4b5563}.record-list-icon-button-active[data-v-8d9b1230]{background:#d8d8d8;color:#4b5563;opacity:1}.record-list-tag[data-v-5dc25025]{width:32px;height:32px;display:flex;color:#fff;border-radius:10px;align-items:center;justify-content:center}.record-list-tag button[data-v-5dc25025]{display:flex;color:#fff;border-radius:9999px;align-items:center;justify-content:center;width:20px;height:20px;border:0;padding:0;cursor:pointer}.record-list-tag-active[data-v-5dc25025]{background-color:#d3d3d3}.record-list-select-multiple-tag[data-v-f588325c]{display:flex;padding:4px;border-radius:4px;flex-wrap:wrap}.record-list-select-multiple-tag>div[data-v-f588325c]{padding:4px}.record-list-mobile.record-list-mobile .record-list-wrap{padding-bottom:80px}.record-list-mobile.record-list-mobile .record-list-wrap::-webkit-scrollbar{background-color:transparent!important;width:0!important}.record-list-mobile.record-list-mobile .record-list-sort,.record-list-mobile.record-list-mobile .record-list-bar-search{right:16px}.record-list-mobile.record-list-mobile .record-list-bar-search-input{min-width:100px}.record-list-mobile.record-list-mobile .record-list-item-active{background-color:#fff}.record-list[data-v-4a1db2f4]{width:100%;height:100vh;position:relative}.record-list img[data-v-4a1db2f4]{border:0}.record-list-sort[data-v-4a1db2f4]{position:absolute;left:16px;right:32px;padding-top:40px;padding-bottom:10px;top:0;z-index:12;background-color:#f6f6f6}.record-list-sort-tags[data-v-4a1db2f4]{margin:0}.record-list-sort-box[data-v-4a1db2f4],.record-list-sort-arrow[data-v-4a1db2f4]{align-items:center;display:flex}.record-list-sort-item[data-v-4a1db2f4]{margin-right:10px;font-size:14px;color:#333;cursor:pointer;-moz-user-select:none;user-select:none;-webkit-user-select:none;align-items:center;display:flex}.record-list-sort-item-active[data-v-4a1db2f4]{color:#52a770}.record-list-context-menu[data-v-4a1db2f4]{padding:8px;background:#fff;z-index:19;box-shadow:0 2px 4px #00000080;border-radius:4px}.record-list-context-menu li[data-v-4a1db2f4]{font-size:14px;line-height:20px;padding:8px 16px;border-radius:4px;cursor:pointer;margin-inline-start:0px}.record-list-context-menu li[data-v-4a1db2f4]:hover{background:#d8d8d8}.record-list-icon[data-v-4a1db2f4]{display:block;width:14px;height:14px;margin:0;padding:0!important;line-height:100%;font-size:0;cursor:pointer}.record-list-opener[data-v-4a1db2f4]{position:absolute;border-radius:4px;width:16px;height:16px;z-index:100;right:16px;top:8px;color:#b7b7b7;border:0;padding:0;background:transparent;cursor:pointer}.record-list-closer[data-v-4a1db2f4]{position:absolute;width:16px;height:16px;z-index:100;top:12px;left:16px;border-radius:4px;border:0;padding:1px 0;background:transparent;cursor:pointer}.record-list-closer[data-v-4a1db2f4]:hover,.record-list-opener[data-v-4a1db2f4]:hover{background:#e8e8e8}.record-list-bar[data-v-4a1db2f4]{position:absolute;z-index:100;top:0;left:0;right:0}.record-list-bar-search[data-v-4a1db2f4]{left:186px;right:16px;position:absolute;top:8px;z-index:100;color:#b7b7b7;display:flex}.record-list-bar-search-icon[data-v-4a1db2f4]{position:absolute;top:4px;left:16px}.record-list-bar-search-input[data-v-4a1db2f4]{color:#333;border-radius:2px;height:24px;background:#fff;border:0;padding:0 32px;width:100%;box-sizing:border-box}.record-list-bar-search-input[data-v-4a1db2f4]::-moz-placeholder{color:#9e9e9e}.record-list-bar-search-input[data-v-4a1db2f4]::placeholder{color:#9e9e9e}.record-list-bar-search-input[data-v-4a1db2f4]:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:#fff 0 0,#52a770 0 0 0 1px,#0000 0 0}.record-list-bar-search-clear[data-v-4a1db2f4]{cursor:pointer;color:#9e9e9e;position:absolute;top:4px;right:4px}.record-list-bar-search-clear[data-v-4a1db2f4]:hover{cursor:pointer;color:#52a770}.record-list-bar-filter[data-v-4a1db2f4]{position:absolute;top:8px;z-index:100;color:#b7b7b7}.record-list-bar-filter button[data-v-4a1db2f4]{margin-right:8px;border:0}.record-list-main[data-v-4a1db2f4]{position:relative;border-left-width:1px;border-color:#e4e4e7}.record-list-empty[data-v-4a1db2f4]{display:flex;justify-content:center;color:#b7b7b7;align-items:center;height:100vh;position:relative!important;transform:none!important}.record-list-wrap[data-v-4a1db2f4]{padding-bottom:16px;padding-left:16px;padding-right:16px;overflow-y:auto;height:100vh}.record-list-item[data-v-4a1db2f4]{padding:16px 32px;min-height:60px;border-radius:8px;margin-bottom:6px;position:relative;cursor:default;background:#fff}[data-v-4a1db2f4] .record-list-item mark{background-color:transparent;text-decoration:underline;text-decoration-color:#9acd32;text-decoration-thickness:2px;text-underline-offset:2px}.record-list-item-active[data-v-4a1db2f4]{background-color:#d8d8d8}.record-list-item-tag-wrap[data-v-4a1db2f4]{cursor:pointer;width:24px;top:22px;left:0;bottom:0;position:absolute}.record-list-item-tag[data-v-4a1db2f4]{display:flex;color:#fff;border-radius:9999px;justify-content:center;align-items:center;width:16px;height:16px;z-index:2;left:8px;position:relative}.record-list-item-title[data-v-4a1db2f4]{font-weight:700;font-size:18px;line-height:28px;overflow-wrap:break-word;margin:0}.record-list-item-title p[data-v-4a1db2f4]{display:inline;word-break:break-all}.record-list-item-title-trash[data-v-4a1db2f4]{color:#777!important}.record-list-item-title-finished[data-v-4a1db2f4]{text-decoration:line-through;color:#999}.record-list-item-content[data-v-4a1db2f4]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;margin:0}.record-list-item-des[data-v-4a1db2f4]{color:#9a9a9a;font-size:12px;margin-top:2px;line-height:16px}[data-v-4a1db2f4] .popper{width:auto;background-color:#fafafa;color:#212121;text-align:center;display:inline-block;border-radius:3px;position:absolute;font-size:14px;font-weight:400;border:1px solid rgba(29,28,28,.12);z-index:200000;box-shadow:0 2px 12px #1d1c1c1f;padding:0}.list-leave-active[data-v-4a1db2f4]{transition:all .5s ease}.list-leave-to[data-v-4a1db2f4]{opacity:0;transform:translate(30px)}.record-drop-before[data-v-4a1db2f4]:after{content:" ";position:absolute;top:-4px;left:0;right:0;border-top:2px solid #52a770}.record-drop-after[data-v-4a1db2f4]:after{content:" ";position:absolute;bottom:-4px;left:0;right:0;border-top:2px solid #52a770}.record-drop-inner[data-v-4a1db2f4]{outline:2px solid #52a770}.record-list-rel[data-v-4a1db2f4]{position:absolute;right:20px;top:20px}.record-folder .record-list-item[data-v-4a1db2f4]{padding:6px 8px 6px 32px;border-radius:8px;margin-bottom:4px;min-height:0}.record-folder .record-list-wrap[data-v-4a1db2f4]{padding:8px}.record-folder .record-list-wrap[data-v-4a1db2f4],.record-folder .record-list-main[data-v-4a1db2f4]{height:100%}.record-folder .record-list-item-tag-wrap[data-v-4a1db2f4]{top:12px}.record-folder .record-list-item-tag[data-v-4a1db2f4]{border-radius:0}.record-folder .record-list-item-title[data-v-4a1db2f4]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.record-list-explorer-add[data-v-4a1db2f4]{cursor:pointer;background:#f6f6f6;text-align:center;position:absolute;left:0;top:0;right:0;z-index:100;-webkit-user-select:none;-moz-user-select:none;user-select:none}.dragging-image{max-width:300px;opacity:.5}.dragging-image .record-list-item-content,.dragging-image .record-list-item-des{display:none!important}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})(); | ||
| import { openBlock as c, createElementBlock as d, normalizeClass as B, renderSlot as Re, createElementVNode as u, normalizeStyle as w, unref as s, Fragment as ye, renderList as Te, createVNode as p, reactive as Ze, ref as x, computed as _, getCurrentInstance as pe, watch as I, onMounted as Fe, onUnmounted as je, withDirectives as y, withKeys as Je, vModelText as Ke, vShow as D, createBlock as fe, withCtx as M, createCommentVNode as m, createTextVNode as me, withModifiers as b, TransitionGroup as Qe, mergeProps as e2, toHandlers as t2, toDisplayString as we, nextTick as l2, pushScopeId as r2, popScopeId as a2 } from "vue"; | ||
| import o2 from "dayjs"; | ||
| import L from "vue-inline-svg"; | ||
| import s2 from "dompurify"; | ||
| import { createPopper as i2 } from "@popperjs/core"; | ||
| import { getTagStyle as n2, detectDeviceType as c2, isTodoTag as O, getExt as G, getTagStyleById as d2, getTag as Ce } from "@codernote/utils"; | ||
| const H = (a, T) => { | ||
| const h = a.__vccOpts || a; | ||
| for (const [i, o] of T) | ||
| h[i] = o; | ||
| (function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode('.record-list-icon-button[data-v-8d9b1230]{color:#b7b7b7;padding:4px;border-radius:4px;height:24px;cursor:pointer}.record-list-icon-button[data-v-8d9b1230]:hover{color:#4b5563}.record-list-icon-button-active[data-v-8d9b1230]{background:#d8d8d8;color:#4b5563;opacity:1}.record-list-tag[data-v-5dc25025]{width:32px;height:32px;display:flex;color:#fff;border-radius:10px;align-items:center;justify-content:center}.record-list-tag button[data-v-5dc25025]{display:flex;color:#fff;border-radius:9999px;align-items:center;justify-content:center;width:20px;height:20px;border:0;padding:0;cursor:pointer}.record-list-tag-active[data-v-5dc25025]{background-color:#d3d3d3}.record-list-select-multiple-tag[data-v-f588325c]{display:flex;padding:4px;border-radius:4px;flex-wrap:wrap}.record-list-select-multiple-tag>div[data-v-f588325c]{padding:4px}.record-list-mobile.record-list-mobile .record-list-wrap{padding-bottom:80px}.record-list-mobile.record-list-mobile .record-list-wrap::-webkit-scrollbar{background-color:transparent!important;width:0!important}.record-list-mobile.record-list-mobile .record-list-sort,.record-list-mobile.record-list-mobile .record-list-bar-search{right:16px}.record-list-mobile.record-list-mobile .record-list-bar-search-input{min-width:100px}.record-list-mobile.record-list-mobile .record-list-item-active{background-color:#fff}.record-list[data-v-aa1af844]{width:100%;height:100vh;position:relative}.record-list img[data-v-aa1af844]{border:0}.record-list-sort[data-v-aa1af844]{position:absolute;left:16px;right:32px;padding-top:40px;padding-bottom:10px;top:0;z-index:12;background-color:#f6f6f6}.record-list-sort-tags[data-v-aa1af844]{margin:0}.record-list-sort-box[data-v-aa1af844],.record-list-sort-arrow[data-v-aa1af844]{align-items:center;display:flex}.record-list-sort-item[data-v-aa1af844]{margin-right:10px;font-size:14px;color:#333;cursor:pointer;-moz-user-select:none;user-select:none;-webkit-user-select:none;align-items:center;display:flex}.record-list-sort-item-active[data-v-aa1af844]{color:#52a770}.record-list-context-menu[data-v-aa1af844]{padding:8px;background:#fff;z-index:19;box-shadow:0 2px 4px #00000080;border-radius:4px}.record-list-context-menu li[data-v-aa1af844]{font-size:14px;line-height:20px;padding:8px 16px;border-radius:4px;cursor:pointer;margin-inline-start:0px}.record-list-context-menu li[data-v-aa1af844]:hover{background:#d8d8d8}.record-list-icon[data-v-aa1af844]{display:block;width:14px;height:14px;margin:0;padding:0!important;line-height:100%;font-size:0;cursor:pointer}.record-list-opener[data-v-aa1af844]{position:absolute;border-radius:4px;width:16px;height:16px;z-index:100;right:16px;top:8px;color:#b7b7b7;border:0;padding:0;background:transparent;cursor:pointer}.record-list-closer[data-v-aa1af844]{position:absolute;width:16px;height:16px;z-index:100;top:12px;left:16px;border-radius:4px;border:0;padding:1px 0;background:transparent;cursor:pointer}.record-list-closer[data-v-aa1af844]:hover,.record-list-opener[data-v-aa1af844]:hover{background:#e8e8e8}.record-list-bar[data-v-aa1af844]{position:absolute;z-index:100;top:0;left:0;right:0}.record-list-bar-search[data-v-aa1af844]{left:186px;right:16px;position:absolute;top:8px;z-index:100;color:#b7b7b7;display:flex}.record-list-bar-search-icon[data-v-aa1af844]{position:absolute;top:4px;left:16px}.record-list-bar-search-input[data-v-aa1af844]{color:#333;border-radius:2px;height:24px;background:#fff;border:0;padding:0 32px;width:100%;box-sizing:border-box}.record-list-bar-search-input[data-v-aa1af844]::-moz-placeholder{color:#9e9e9e}.record-list-bar-search-input[data-v-aa1af844]::placeholder{color:#9e9e9e}.record-list-bar-search-input[data-v-aa1af844]:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:#fff 0 0,#52a770 0 0 0 1px,#0000 0 0}.record-list-bar-search-clear[data-v-aa1af844]{cursor:pointer;color:#9e9e9e;position:absolute;top:4px;right:4px}.record-list-bar-search-clear[data-v-aa1af844]:hover{cursor:pointer;color:#52a770}.record-list-bar-filter[data-v-aa1af844]{position:absolute;top:8px;z-index:100;color:#b7b7b7}.record-list-bar-filter button[data-v-aa1af844]{margin-right:8px;border:0}.record-list-main[data-v-aa1af844]{position:relative;border-left-width:1px;border-color:#e4e4e7}.record-list-empty[data-v-aa1af844]{display:flex;justify-content:center;color:#b7b7b7;align-items:center;height:100vh;position:relative!important;transform:none!important}.record-list-wrap[data-v-aa1af844]{padding-bottom:16px;padding-left:16px;padding-right:16px;overflow-y:auto;height:100vh}.record-list-item[data-v-aa1af844]{padding:16px 32px;min-height:60px;border-radius:8px;margin-bottom:6px;position:relative;cursor:default;background:#fff}[data-v-aa1af844] .record-list-item mark{background-color:transparent;text-decoration:underline;text-decoration-color:#9acd32;text-decoration-thickness:2px;text-underline-offset:2px}.record-list-item-active[data-v-aa1af844]{background-color:#d8d8d8}.record-list-item-tag-wrap[data-v-aa1af844]{cursor:pointer;width:24px;top:22px;left:0;bottom:0;position:absolute}.record-list-item-tag[data-v-aa1af844]{display:flex;color:#fff;border-radius:9999px;justify-content:center;align-items:center;width:16px;height:16px;z-index:2;left:8px;position:relative}.record-list-item-title[data-v-aa1af844]{font-weight:700;font-size:18px;line-height:28px;overflow-wrap:break-word;margin:0}.record-list-item-title p[data-v-aa1af844]{display:inline;word-break:break-all}.record-list-item-title-trash[data-v-aa1af844]{color:#777!important}.record-list-item-title-finished[data-v-aa1af844]{text-decoration:line-through;color:#999}.record-list-item-content[data-v-aa1af844]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;margin:0}.record-list-item-des[data-v-aa1af844]{color:#9a9a9a;font-size:12px;margin-top:2px;line-height:16px}[data-v-aa1af844] .popper{width:auto;background-color:#fafafa;color:#212121;text-align:center;display:inline-block;border-radius:3px;position:absolute;font-size:14px;font-weight:400;border:1px solid rgba(29,28,28,.12);z-index:200000;box-shadow:0 2px 12px #1d1c1c1f;padding:0}.list-leave-active[data-v-aa1af844]{transition:all .5s ease}.list-leave-to[data-v-aa1af844]{opacity:0;transform:translate(30px)}.record-drop-before[data-v-aa1af844]:after{content:" ";position:absolute;top:-4px;left:0;right:0;border-top:2px solid #52a770}.record-drop-after[data-v-aa1af844]:after{content:" ";position:absolute;bottom:-4px;left:0;right:0;border-top:2px solid #52a770}.record-drop-inner[data-v-aa1af844]{outline:2px solid #52a770}.record-list-rel[data-v-aa1af844],.record-list-uploading[data-v-aa1af844]{position:absolute;right:20px;top:20px}@keyframes rotate-aa1af844{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.record-folder .record-list-item[data-v-aa1af844]{padding:6px 8px 6px 32px;border-radius:8px;margin-bottom:4px;min-height:0}.record-folder .record-list-wrap[data-v-aa1af844]{padding:8px}.record-folder .record-list-wrap[data-v-aa1af844],.record-folder .record-list-main[data-v-aa1af844]{height:100%}.record-folder .record-list-item-tag-wrap[data-v-aa1af844]{top:12px}.record-folder .record-list-item-tag[data-v-aa1af844]{border-radius:0}.record-folder .record-list-item-title[data-v-aa1af844]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.record-list-explorer-add[data-v-aa1af844]{cursor:pointer;background:#f6f6f6;text-align:center;position:absolute;left:0;top:0;right:0;z-index:100;-webkit-user-select:none;-moz-user-select:none;user-select:none}.dragging-image{max-width:300px;opacity:.5}.dragging-image .record-list-item-content,.dragging-image .record-list-item-des{display:none!important}')),document.head.appendChild(a)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); | ||
| import { openBlock as i, createElementBlock as d, normalizeClass as M, renderSlot as F2, createElementVNode as u, normalizeStyle as w, unref as o, Fragment as y2, renderList as D2, createVNode as p, reactive as Z2, ref as x, computed as S, getCurrentInstance as f2, watch as I, onMounted as j2, onUnmounted as J2, withDirectives as y, withKeys as K2, vModelText as Q2, vShow as T, createBlock as J, withCtx as B, createCommentVNode as m, createTextVNode as m2, withModifiers as b, TransitionGroup as e0, mergeProps as t0, toHandlers as l0, toDisplayString as w2, nextTick as a0, pushScopeId as r0, popScopeId as o0 } from "vue"; | ||
| import s0 from "dayjs"; | ||
| import _ from "vue-inline-svg"; | ||
| import i0 from "dompurify"; | ||
| import { createPopper as n0 } from "@popperjs/core"; | ||
| import { getTagStyle as c0, detectDeviceType as d0, isTodoTag as O, getExt as G, getTagStyleById as u0, getTag as C2 } from "@codernote/utils"; | ||
| const H = (r, D) => { | ||
| const h = r.__vccOpts || r; | ||
| for (const [n, s] of D) | ||
| h[n] = s; | ||
| return h; | ||
| }, u2 = { | ||
| }, g0 = { | ||
| __name: "icon-button", | ||
@@ -21,13 +21,13 @@ props: { | ||
| }, | ||
| setup(a) { | ||
| return (T, h) => (c(), d("button", { | ||
| class: B([ | ||
| setup(r) { | ||
| return (D, h) => (i(), d("button", { | ||
| class: M([ | ||
| "record-list-icon-button", | ||
| a.active ? "record-list-icon-button-active" : "" | ||
| r.active ? "record-list-icon-button-active" : "" | ||
| ]) | ||
| }, [ | ||
| Re(T.$slots, "default", {}, void 0, !0) | ||
| F2(D.$slots, "default", {}, void 0, !0) | ||
| ], 2)); | ||
| } | ||
| }, N = /* @__PURE__ */ H(u2, [["__scopeId", "data-v-8d9b1230"]]), g2 = { | ||
| }, P = /* @__PURE__ */ H(g0, [["__scopeId", "data-v-8d9b1230"]]), v0 = { | ||
| __name: "tag", | ||
@@ -44,12 +44,12 @@ props: { | ||
| }, | ||
| setup(a) { | ||
| return (T, h) => (c(), d("div", { | ||
| class: B(["record-list-tag", { "record-list-tag-active": a.active }]) | ||
| setup(r) { | ||
| return (D, h) => (i(), d("div", { | ||
| class: M(["record-list-tag", { "record-list-tag-active": r.active }]) | ||
| }, [ | ||
| u("button", { | ||
| style: w(s(n2)(a.tag)) | ||
| style: w(o(c0)(r.tag)) | ||
| }, null, 4) | ||
| ], 2)); | ||
| } | ||
| }, v2 = /* @__PURE__ */ H(g2, [["__scopeId", "data-v-5dc25025"]]), h2 = { class: "record-list-select-multiple-tag" }, p2 = { | ||
| }, h0 = /* @__PURE__ */ H(v0, [["__scopeId", "data-v-5dc25025"]]), p0 = { class: "record-list-select-multiple-tag" }, f0 = { | ||
| __name: "select-multiple-tag", | ||
@@ -71,15 +71,15 @@ props: { | ||
| emits: ["change"], | ||
| setup(a, { emit: T }) { | ||
| const h = T, i = a, o = (g) => g.filter((l) => l.name != ""), E = (g) => { | ||
| const l = [...i.value], f = i.value.indexOf(g.created_at); | ||
| setup(r, { emit: D }) { | ||
| const h = D, n = r, s = (g) => g.filter((l) => l.name != ""), E = (g) => { | ||
| const l = [...n.value], f = n.value.indexOf(g.created_at); | ||
| f === -1 ? l.push(g.created_at) : l.splice(f, 1), h("change", l); | ||
| }; | ||
| return (g, l) => (c(), d("div", h2, [ | ||
| (c(!0), d(ye, null, Te(o(a.tags), (f) => (c(), d("div", { | ||
| return (g, l) => (i(), d("div", p0, [ | ||
| (i(!0), d(y2, null, D2(s(r.tags), (f) => (i(), d("div", { | ||
| key: f.id | ||
| }, [ | ||
| p(s(v2), { | ||
| p(o(h0), { | ||
| tag: f, | ||
| onClick: (A) => E(f), | ||
| active: a.value.includes(f.created_at) | ||
| active: r.value.includes(f.created_at) | ||
| }, null, 8, ["tag", "onClick", "active"]) | ||
@@ -89,78 +89,79 @@ ]))), 128)) | ||
| } | ||
| }, f2 = /* @__PURE__ */ H(p2, [["__scopeId", "data-v-f588325c"]]), m2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1685356134227'%20class='icon'%20viewBox='0%200%201085%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4178'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='211.9140625'%20height='200'%3e%3cpath%20d='M542.797672%20783.398836L0%20240.601164h1085.595343z'%20p-id='4179'%3e%3c/path%3e%3c/svg%3e", w2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1685356123004'%20class='icon'%20viewBox='0%200%201085%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4038'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='211.9140625'%20height='200'%3e%3cpath%20d='M545.20232799%20240.601164L1087.99999999%20783.398836l-1085.595343%200z'%20p-id='4039'%3e%3c/path%3e%3c/svg%3e", C2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1685162926601'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2463'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M460.8%2025.6c240.3584%200%20435.2%20194.8416%20435.2%20435.2%200%20108.288-39.5264%20207.3088-104.96%20283.4688l167.936%20167.9104a51.2%2051.2%200%201%201-72.3968%2072.3968l-170.9568-170.9312A433.2288%20433.2288%200%200%201%20460.8%20896C220.4416%20896%2025.6%20701.1584%2025.6%20460.8S220.4416%2025.6%20460.8%2025.6z%20m0%20102.4C276.992%20128%20128%20276.992%20128%20460.8s148.992%20332.8%20332.8%20332.8%20332.8-148.992%20332.8-332.8S644.608%20128%20460.8%20128z'%20p-id='2464'%3e%3c/path%3e%3c/svg%3e", x2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eico%20/%2024%20/%20actions%20/%20clear@2x%3c/title%3e%3cg%20id='ico-/-24-/-actions-/-clear'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M17.85,16.44%20C17.9446563,16.5338833%2017.9978992,16.6616812%2017.9978992,16.795%20C17.9978992,16.9283188%2017.9446563,17.0561167%2017.85,17.15%20L17.15,17.85%20C17.0561167,17.9446563%2016.9283188,17.9978992%2016.795,17.9978992%20C16.6616812,17.9978992%2016.5338833,17.9446563%2016.44,17.85%20L12,13.41%20L7.56,17.85%20C7.4661167,17.9446563%207.33831877,17.9978992%207.205,17.9978992%20C7.07168123,17.9978992%206.9438833,17.9446563%206.85,17.85%20L6.15,17.15%20C6.05534367,17.0561167%206.00210084,16.9283188%206.00210084,16.795%20C6.00210084,16.6616812%206.05534367,16.5338833%206.15,16.44%20L10.59,12%20L6.15,7.56%20C6.05534367,7.4661167%206.00210084,7.33831877%206.00210084,7.205%20C6.00210084,7.07168123%206.05534367,6.9438833%206.15,6.85%20L6.85,6.15%20C6.9438833,6.05534367%207.07168123,6.00210084%207.205,6.00210084%20C7.33831877,6.00210084%207.4661167,6.05534367%207.56,6.15%20L12,10.59%20L16.44,6.15%20C16.5338833,6.05534367%2016.6616812,6.00210084%2016.795,6.00210084%20C16.9283188,6.00210084%2017.0561167,6.05534367%2017.15,6.15%20L17.85,6.85%20C17.9446563,6.9438833%2017.9978992,7.07168123%2017.9978992,7.205%20C17.9978992,7.33831877%2017.9446563,7.4661167%2017.85,7.56%20L13.41,12%20L17.85,16.44%20Z'%20id='Icon-color'%20fill='currentColor'%20fill-rule='nonzero'%3e%3c/path%3e%3c/g%3e%3c/svg%3e", y2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1%200.25H13C13.4142%200.25%2013.75%200.585786%2013.75%201V1.8775C13.7503%202.27728%2013.591%202.66065%2013.3075%202.9425L8.9425%207.3075C8.65897%207.58935%208.49968%207.97272%208.5%208.3725V11.125C8.5%2011.5971%208.27771%2012.0417%207.9%2012.325L6.1%2013.675C5.98637%2013.7602%205.83434%2013.7739%205.7073%2013.7104C5.58025%2013.6469%205.5%2013.517%205.5%2013.375V8.3725C5.50032%207.97272%205.34103%207.58935%205.0575%207.3075L0.692501%202.9425C0.408971%202.66065%200.249684%202.27728%200.25%201.8775V1C0.25%200.585786%200.585787%200.25%201%200.25ZM10.1275%204L12.25%201.8775V1.75H1.75V1.8775L3.8725%204H10.1275Z'%20fill='currentColor'%20/%3e%3c/svg%3e", T2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='14'%20height='14'%20viewBox='0%200%2016%2020'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20stroke='none'%20stroke-width='1'%20fill='currentColor'%20fill-rule='evenodd'%3e%3cg%20transform='translate(-4.000000,%20-2.000000)'%20fill-rule='nonzero'%3e%3cpath%20d='M20,4.5%20L20,5.5%20C20,5.77614237%2019.7761424,6%2019.5,6%20L4.5,6%20C4.22385763,6%204,5.77614237%204,5.5%20L4,4.5%20C4,4.22385763%204.22385763,4%204.5,4%20L9,4%20L9,3%20C9,2.44771525%209.44771525,2%2010,2%20L14,2%20C14.5522847,2%2015,2.44771525%2015,3%20L15,4%20L19.5,4%20C19.7761424,4%2020,4.22385763%2020,4.5%20Z%20M5.87,20.14%20C5.94364604,21.1895509%206.81787161,22.0025807%207.87,22%20L16.15,22%20C17.2021284,22.0025807%2018.076354,21.1895509%2018.15,20.14%20L19,8%20L5,8%20L5.87,20.14%20Z'%20id='Icon-color'%20%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", D2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='14'%20height='14'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M28.6006%201.20917L28.7906%201.39917C29.08%201.70259%2029.244%202.10412%2029.2498%202.52334V15.1108C29.2505%2015.9548%2028.9142%2016.7642%2028.3156%2017.3592L16.884%2028.7908C16.2664%2029.4047%2015.269%2029.4047%2014.6515%2028.7908L1.20896%2015.3483C0.595061%2014.7308%200.595061%2013.7334%201.20896%2013.1158L12.6406%201.68417C13.2356%201.08561%2014.045%200.749333%2014.889%200.750001H27.4765C27.8957%200.755834%2028.2972%200.91984%2028.6006%201.20917ZM18.1665%208.66667C18.1665%2010.4156%2019.5842%2011.8333%2021.3331%2011.8333C22.173%2011.8333%2022.9784%2011.4997%2023.5723%2010.9058C24.1662%2010.312%2024.4998%209.50652%2024.4998%208.66667C24.4998%206.91777%2023.082%205.5%2021.3331%205.5C19.5842%205.5%2018.1665%206.91777%2018.1665%208.66667Z'%20fill='currentColor'%20/%3e%3c/svg%3e", _2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='14'%20height='14'%20viewBox='0%200%2018%2019'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20transform='translate(-3.000000,%20-2.000000)'%20fill='currentColor'%20fill-rule='nonzero'%3e%3cpath%20d='M21,6%20C21,4.8954305%2020.1045695,4%2019,4%20L18,4%20L18,2.5%20C18,2.22385763%2017.7761424,2%2017.5,2%20L16.5,2%20C16.2238576,2%2016,2.22385763%2016,2.5%20L16,4%20L8,4%20L8,2.5%20C8,2.22385763%207.77614237,2%207.5,2%20L6.5,2%20C6.22385763,2%206,2.22385763%206,2.5%20L6,4%20L5,4%20C3.8954305,4%203,4.8954305%203,6%20L3,19%20C3,20.1045695%203.8954305,21%205,21%20L19,21%20C20.1045695,21%2021,20.1045695%2021,19%20L21,6%20Z%20M19,19%20L5,19%20L5,8%20L19,8%20L19,19%20Z%20M8,14%20L10,14%20C10.5522847,14%2011,13.5522847%2011,13%20L11,11%20C11,10.4477153%2010.5522847,10%2010,10%20L8,10%20C7.44771525,10%207,10.4477153%207,11%20L7,13%20C7,13.5522847%207.44771525,14%208,14%20Z'%20%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", L2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1720592926051'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6945'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M358.4%2076.8v76.8h307.2V76.8h76.8v76.8h204.8v793.6H76.8V153.6h204.8V76.8h76.8z%20m-76.8%20153.6H153.6v640h716.8V230.4h-128v76.8h-76.8V230.4H358.4v76.8h-76.8V230.4z%20m418.9184%20152.6784l54.2976%2054.3232-307.712%20307.712-181.0432-180.992%2054.3232-54.3232%20126.72%20126.72%20253.4144-253.44z'%20p-id='6946'%3e%3c/path%3e%3c/svg%3e", S2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1724214601601'%20class='icon'%20viewBox='0%200%201035%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7572'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='202.1484375'%20height='200'%3e%3cpath%20d='M388.361%20382.546h194.18v64.727h-194.18v-64.727zM0%20576.726h258.907v64.728H0v-64.727z%20m1035.63-129.453H776.723v-64.727h258.907v64.727zM388.361%20900.361H323.635V382.546h64.727v517.815z%20m614.906%200H388.361v-64.726h582.542V447.273h64.727v453.088h-32.363zM32.363%20123.64h614.906v64.726H64.727v388.362H0V123.639h32.363z%20m647.27%20517.815H453.087v-64.727h194.18V123.639h64.728v517.815h-32.364z'%20fill='%23333333'%20p-id='7573'%3e%3c/path%3e%3c/svg%3e", k2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1726194601824'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='10486'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M914.285714%20749.714286l0-402.285714q0-22.820571-16.018286-38.838857t-38.838857-16.018286l-402.285714%200q-22.820571%200-38.838857-16.018286t-16.018286-38.838857l0-36.571429q0-22.820571-16.018286-38.838857t-38.838857-16.018286l-182.857143%200q-22.820571%200-38.838857%2016.018286t-16.018286%2038.838857l0%20548.571429q0%2022.820571%2016.018286%2038.838857t38.838857%2016.018286l694.857143%200q22.820571%200%2038.838857-16.018286t16.018286-38.838857zM987.428571%20347.428571l0%20402.285714q0%2052.589714-37.741714%2090.258286t-90.258286%2037.741714l-694.857143%200q-52.589714%200-90.258286-37.741714t-37.741714-90.258286l0-548.571429q0-52.589714%2037.741714-90.258286t90.258286-37.741714l182.857143%200q52.589714%200%2090.258286%2037.741714t37.741714%2090.258286l0%2018.285714%20384%200q52.589714%200%2090.258286%2037.741714t37.741714%2090.258286z'%20fill='%23444444'%20p-id='10487'%3e%3c/path%3e%3c/svg%3e", b2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1726194606057'%20class='icon'%20viewBox='0%200%201098%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='10644'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='214.453125'%20height='200'%3e%3cpath%20d='M1017.709714%20531.968q0-19.968-30.281143-19.968l-621.714286%200q-22.820571%200-48.859429%2012.288t-40.886857%2029.988571l-168.009143%20207.433143q-10.313143%2013.677714-10.313143%2022.820571%200%2019.968%2030.281143%2019.968l621.714286%200q22.820571%200%2049.152-12.580571t40.594286-30.281143l168.009143-207.433143q10.313143-12.580571%2010.313143-22.308571zM365.714286%20438.857143l438.857143%200%200-91.428571q0-22.820571-16.018286-38.838857t-38.838857-16.018286l-329.142857%200q-22.820571%200-38.838857-16.018286t-16.018286-38.838857l0-36.571429q0-22.820571-16.018286-38.838857t-38.838857-16.018286l-182.857143%200q-22.820571%200-38.838857%2016.018286t-16.018286%2038.838857l0%20487.424%20146.285714-180.004571q25.161143-30.281143%2066.267429-50.029714t80.018286-19.748571zM1090.852571%20531.968q0%2035.401143-26.258286%2068.534857l-168.594286%20207.433143q-24.576%2030.281143-66.267429%2050.029714t-80.018286%2019.748571l-621.714286%200q-52.589714%200-90.258286-37.741714t-37.741714-90.258286l0-548.571429q0-52.589714%2037.741714-90.258286t90.258286-37.741714l182.857143%200q52.589714%200%2090.258286%2037.741714t37.741714%2090.258286l0%2018.285714%20310.857143%200q52.589714%200%2090.258286%2037.741714t37.741714%2090.258286l0%2091.428571%20109.714286%200q30.866286%200%2056.539429%2013.970286t38.253714%2040.301714q8.557714%2018.285714%208.557714%2038.838857z'%20fill='%23444444'%20p-id='10645'%3e%3c/path%3e%3c/svg%3e", S = { | ||
| asc: m2, | ||
| desc: w2, | ||
| search: C2, | ||
| delect: x2, | ||
| filter: y2, | ||
| trash: T2, | ||
| visible: D2, | ||
| delete: _2, | ||
| todo: L2, | ||
| relate: S2, | ||
| folder: k2, | ||
| folderOpen: b2 | ||
| }, m0 = /* @__PURE__ */ H(f0, [["__scopeId", "data-v-f588325c"]]), w0 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1685356134227'%20class='icon'%20viewBox='0%200%201085%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4178'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='211.9140625'%20height='200'%3e%3cpath%20d='M542.797672%20783.398836L0%20240.601164h1085.595343z'%20p-id='4179'%3e%3c/path%3e%3c/svg%3e", C0 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1685356123004'%20class='icon'%20viewBox='0%200%201085%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4038'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='211.9140625'%20height='200'%3e%3cpath%20d='M545.20232799%20240.601164L1087.99999999%20783.398836l-1085.595343%200z'%20p-id='4039'%3e%3c/path%3e%3c/svg%3e", x0 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1685162926601'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2463'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M460.8%2025.6c240.3584%200%20435.2%20194.8416%20435.2%20435.2%200%20108.288-39.5264%20207.3088-104.96%20283.4688l167.936%20167.9104a51.2%2051.2%200%201%201-72.3968%2072.3968l-170.9568-170.9312A433.2288%20433.2288%200%200%201%20460.8%20896C220.4416%20896%2025.6%20701.1584%2025.6%20460.8S220.4416%2025.6%20460.8%2025.6z%20m0%20102.4C276.992%20128%20128%20276.992%20128%20460.8s148.992%20332.8%20332.8%20332.8%20332.8-148.992%20332.8-332.8S644.608%20128%20460.8%20128z'%20p-id='2464'%3e%3c/path%3e%3c/svg%3e", y0 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eico%20/%2024%20/%20actions%20/%20clear@2x%3c/title%3e%3cg%20id='ico-/-24-/-actions-/-clear'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M17.85,16.44%20C17.9446563,16.5338833%2017.9978992,16.6616812%2017.9978992,16.795%20C17.9978992,16.9283188%2017.9446563,17.0561167%2017.85,17.15%20L17.15,17.85%20C17.0561167,17.9446563%2016.9283188,17.9978992%2016.795,17.9978992%20C16.6616812,17.9978992%2016.5338833,17.9446563%2016.44,17.85%20L12,13.41%20L7.56,17.85%20C7.4661167,17.9446563%207.33831877,17.9978992%207.205,17.9978992%20C7.07168123,17.9978992%206.9438833,17.9446563%206.85,17.85%20L6.15,17.15%20C6.05534367,17.0561167%206.00210084,16.9283188%206.00210084,16.795%20C6.00210084,16.6616812%206.05534367,16.5338833%206.15,16.44%20L10.59,12%20L6.15,7.56%20C6.05534367,7.4661167%206.00210084,7.33831877%206.00210084,7.205%20C6.00210084,7.07168123%206.05534367,6.9438833%206.15,6.85%20L6.85,6.15%20C6.9438833,6.05534367%207.07168123,6.00210084%207.205,6.00210084%20C7.33831877,6.00210084%207.4661167,6.05534367%207.56,6.15%20L12,10.59%20L16.44,6.15%20C16.5338833,6.05534367%2016.6616812,6.00210084%2016.795,6.00210084%20C16.9283188,6.00210084%2017.0561167,6.05534367%2017.15,6.15%20L17.85,6.85%20C17.9446563,6.9438833%2017.9978992,7.07168123%2017.9978992,7.205%20C17.9978992,7.33831877%2017.9446563,7.4661167%2017.85,7.56%20L13.41,12%20L17.85,16.44%20Z'%20id='Icon-color'%20fill='currentColor'%20fill-rule='nonzero'%3e%3c/path%3e%3c/g%3e%3c/svg%3e", D0 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1%200.25H13C13.4142%200.25%2013.75%200.585786%2013.75%201V1.8775C13.7503%202.27728%2013.591%202.66065%2013.3075%202.9425L8.9425%207.3075C8.65897%207.58935%208.49968%207.97272%208.5%208.3725V11.125C8.5%2011.5971%208.27771%2012.0417%207.9%2012.325L6.1%2013.675C5.98637%2013.7602%205.83434%2013.7739%205.7073%2013.7104C5.58025%2013.6469%205.5%2013.517%205.5%2013.375V8.3725C5.50032%207.97272%205.34103%207.58935%205.0575%207.3075L0.692501%202.9425C0.408971%202.66065%200.249684%202.27728%200.25%201.8775V1C0.25%200.585786%200.585787%200.25%201%200.25ZM10.1275%204L12.25%201.8775V1.75H1.75V1.8775L3.8725%204H10.1275Z'%20fill='currentColor'%20/%3e%3c/svg%3e", T0 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='14'%20height='14'%20viewBox='0%200%2016%2020'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20stroke='none'%20stroke-width='1'%20fill='currentColor'%20fill-rule='evenodd'%3e%3cg%20transform='translate(-4.000000,%20-2.000000)'%20fill-rule='nonzero'%3e%3cpath%20d='M20,4.5%20L20,5.5%20C20,5.77614237%2019.7761424,6%2019.5,6%20L4.5,6%20C4.22385763,6%204,5.77614237%204,5.5%20L4,4.5%20C4,4.22385763%204.22385763,4%204.5,4%20L9,4%20L9,3%20C9,2.44771525%209.44771525,2%2010,2%20L14,2%20C14.5522847,2%2015,2.44771525%2015,3%20L15,4%20L19.5,4%20C19.7761424,4%2020,4.22385763%2020,4.5%20Z%20M5.87,20.14%20C5.94364604,21.1895509%206.81787161,22.0025807%207.87,22%20L16.15,22%20C17.2021284,22.0025807%2018.076354,21.1895509%2018.15,20.14%20L19,8%20L5,8%20L5.87,20.14%20Z'%20id='Icon-color'%20%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", _0 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='14'%20height='14'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M28.6006%201.20917L28.7906%201.39917C29.08%201.70259%2029.244%202.10412%2029.2498%202.52334V15.1108C29.2505%2015.9548%2028.9142%2016.7642%2028.3156%2017.3592L16.884%2028.7908C16.2664%2029.4047%2015.269%2029.4047%2014.6515%2028.7908L1.20896%2015.3483C0.595061%2014.7308%200.595061%2013.7334%201.20896%2013.1158L12.6406%201.68417C13.2356%201.08561%2014.045%200.749333%2014.889%200.750001H27.4765C27.8957%200.755834%2028.2972%200.91984%2028.6006%201.20917ZM18.1665%208.66667C18.1665%2010.4156%2019.5842%2011.8333%2021.3331%2011.8333C22.173%2011.8333%2022.9784%2011.4997%2023.5723%2010.9058C24.1662%2010.312%2024.4998%209.50652%2024.4998%208.66667C24.4998%206.91777%2023.082%205.5%2021.3331%205.5C19.5842%205.5%2018.1665%206.91777%2018.1665%208.66667Z'%20fill='currentColor'%20/%3e%3c/svg%3e", L0 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='14'%20height='14'%20viewBox='0%200%2018%2019'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20transform='translate(-3.000000,%20-2.000000)'%20fill='currentColor'%20fill-rule='nonzero'%3e%3cpath%20d='M21,6%20C21,4.8954305%2020.1045695,4%2019,4%20L18,4%20L18,2.5%20C18,2.22385763%2017.7761424,2%2017.5,2%20L16.5,2%20C16.2238576,2%2016,2.22385763%2016,2.5%20L16,4%20L8,4%20L8,2.5%20C8,2.22385763%207.77614237,2%207.5,2%20L6.5,2%20C6.22385763,2%206,2.22385763%206,2.5%20L6,4%20L5,4%20C3.8954305,4%203,4.8954305%203,6%20L3,19%20C3,20.1045695%203.8954305,21%205,21%20L19,21%20C20.1045695,21%2021,20.1045695%2021,19%20L21,6%20Z%20M19,19%20L5,19%20L5,8%20L19,8%20L19,19%20Z%20M8,14%20L10,14%20C10.5522847,14%2011,13.5522847%2011,13%20L11,11%20C11,10.4477153%2010.5522847,10%2010,10%20L8,10%20C7.44771525,10%207,10.4477153%207,11%20L7,13%20C7,13.5522847%207.44771525,14%208,14%20Z'%20%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", S0 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1720592926051'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6945'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M358.4%2076.8v76.8h307.2V76.8h76.8v76.8h204.8v793.6H76.8V153.6h204.8V76.8h76.8z%20m-76.8%20153.6H153.6v640h716.8V230.4h-128v76.8h-76.8V230.4H358.4v76.8h-76.8V230.4z%20m418.9184%20152.6784l54.2976%2054.3232-307.712%20307.712-181.0432-180.992%2054.3232-54.3232%20126.72%20126.72%20253.4144-253.44z'%20p-id='6946'%3e%3c/path%3e%3c/svg%3e", k0 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1724214601601'%20class='icon'%20viewBox='0%200%201035%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7572'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='202.1484375'%20height='200'%3e%3cpath%20d='M388.361%20382.546h194.18v64.727h-194.18v-64.727zM0%20576.726h258.907v64.728H0v-64.727z%20m1035.63-129.453H776.723v-64.727h258.907v64.727zM388.361%20900.361H323.635V382.546h64.727v517.815z%20m614.906%200H388.361v-64.726h582.542V447.273h64.727v453.088h-32.363zM32.363%20123.64h614.906v64.726H64.727v388.362H0V123.639h32.363z%20m647.27%20517.815H453.087v-64.727h194.18V123.639h64.728v517.815h-32.364z'%20fill='%23333333'%20p-id='7573'%3e%3c/path%3e%3c/svg%3e", b0 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1726194601824'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='10486'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M914.285714%20749.714286l0-402.285714q0-22.820571-16.018286-38.838857t-38.838857-16.018286l-402.285714%200q-22.820571%200-38.838857-16.018286t-16.018286-38.838857l0-36.571429q0-22.820571-16.018286-38.838857t-38.838857-16.018286l-182.857143%200q-22.820571%200-38.838857%2016.018286t-16.018286%2038.838857l0%20548.571429q0%2022.820571%2016.018286%2038.838857t38.838857%2016.018286l694.857143%200q22.820571%200%2038.838857-16.018286t16.018286-38.838857zM987.428571%20347.428571l0%20402.285714q0%2052.589714-37.741714%2090.258286t-90.258286%2037.741714l-694.857143%200q-52.589714%200-90.258286-37.741714t-37.741714-90.258286l0-548.571429q0-52.589714%2037.741714-90.258286t90.258286-37.741714l182.857143%200q52.589714%200%2090.258286%2037.741714t37.741714%2090.258286l0%2018.285714%20384%200q52.589714%200%2090.258286%2037.741714t37.741714%2090.258286z'%20fill='%23444444'%20p-id='10487'%3e%3c/path%3e%3c/svg%3e", E0 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1726194606057'%20class='icon'%20viewBox='0%200%201098%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='10644'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='214.453125'%20height='200'%3e%3cpath%20d='M1017.709714%20531.968q0-19.968-30.281143-19.968l-621.714286%200q-22.820571%200-48.859429%2012.288t-40.886857%2029.988571l-168.009143%20207.433143q-10.313143%2013.677714-10.313143%2022.820571%200%2019.968%2030.281143%2019.968l621.714286%200q22.820571%200%2049.152-12.580571t40.594286-30.281143l168.009143-207.433143q10.313143-12.580571%2010.313143-22.308571zM365.714286%20438.857143l438.857143%200%200-91.428571q0-22.820571-16.018286-38.838857t-38.838857-16.018286l-329.142857%200q-22.820571%200-38.838857-16.018286t-16.018286-38.838857l0-36.571429q0-22.820571-16.018286-38.838857t-38.838857-16.018286l-182.857143%200q-22.820571%200-38.838857%2016.018286t-16.018286%2038.838857l0%20487.424%20146.285714-180.004571q25.161143-30.281143%2066.267429-50.029714t80.018286-19.748571zM1090.852571%20531.968q0%2035.401143-26.258286%2068.534857l-168.594286%20207.433143q-24.576%2030.281143-66.267429%2050.029714t-80.018286%2019.748571l-621.714286%200q-52.589714%200-90.258286-37.741714t-37.741714-90.258286l0-548.571429q0-52.589714%2037.741714-90.258286t90.258286-37.741714l182.857143%200q52.589714%200%2090.258286%2037.741714t37.741714%2090.258286l0%2018.285714%20310.857143%200q52.589714%200%2090.258286%2037.741714t37.741714%2090.258286l0%2091.428571%20109.714286%200q30.866286%200%2056.539429%2013.970286t38.253714%2040.301714q8.557714%2018.285714%208.557714%2038.838857z'%20fill='%23444444'%20p-id='10645'%3e%3c/path%3e%3c/svg%3e", V0 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1760004998012'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4876'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M672%20640c-8%200-16-3.2-22.4-9.6L512%20492.8l-137.6%20137.6c-12.8%2012.8-32%2012.8-44.8%200-12.8-12.8-12.8-32%200-44.8l160-160c12.8-12.8%2032-12.8%2044.8%200l160%20160c12.8%2012.8%2012.8%2032%200%2044.8-6.4%206.4-14.4%209.6-22.4%209.6z'%20fill='%23FEC10D'%20p-id='4877'%3e%3c/path%3e%3cpath%20d='M512%20960c-17.6%200-32-14.4-32-32V464c0-17.6%2014.4-32%2032-32s32%2014.4%2032%2032v464c0%2017.6-14.4%2032-32%2032z'%20fill='%23FEC10D'%20p-id='4878'%3e%3c/path%3e%3cpath%20d='M768%20768h-64c-17.6%200-32-14.4-32-32s14.4-32%2032-32h64c88%200%20160-72%20160-160%200-76.8-57.6-145.6-134.4-158.4-14.4-1.6-25.6-14.4-27.2-28.8C753.6%20227.2%20643.2%20128%20512%20128s-241.6%2099.2-254.4%20230.4c-1.6%2014.4-12.8%2025.6-27.2%2028.8-76.8%2011.2-134.4%2080-134.4%20156.8%200%2088%2072%20160%20160%20160h64c17.6%200%2032%2014.4%2032%2032s-14.4%2032-32%2032h-64C132.8%20768%2032%20667.2%2032%20544c0-100.8%2068.8-188.8%20164.8-216C224%20176%20355.2%2064%20512%2064c156.8%200%20288%20112%20315.2%20264C923.2%20355.2%20992%20443.2%20992%20544c0%20123.2-100.8%20224-224%20224z'%20fill='%23FEC10D'%20p-id='4879'%3e%3c/path%3e%3c/svg%3e", L = { | ||
| asc: w0, | ||
| desc: C0, | ||
| search: x0, | ||
| delect: y0, | ||
| filter: D0, | ||
| trash: T0, | ||
| visible: _0, | ||
| delete: L0, | ||
| todo: S0, | ||
| relate: k0, | ||
| folder: b0, | ||
| folderOpen: E0, | ||
| uploading: V0 | ||
| // file, | ||
| }; | ||
| function J(a) { | ||
| return window.location.protocol === "https:" && /^http:/.test(a) ? a.replace(/^http:/, "https:") : a; | ||
| function K(r) { | ||
| return window.location.protocol === "https:" && /^http:/.test(r) ? r.replace(/^http:/, "https:") : r; | ||
| } | ||
| function xe(a) { | ||
| if (typeof a == "string" || typeof a == "number") | ||
| return a; | ||
| switch (a.type) { | ||
| function x2(r) { | ||
| if (typeof r == "string" || typeof r == "number") | ||
| return r; | ||
| switch (r.type) { | ||
| case "image": | ||
| return `<img style="width:80px;height: auto;" src="${J( | ||
| a.content | ||
| return `<img style="width:80px;height: auto;" src="${K( | ||
| r.content | ||
| )}" />`; | ||
| case "video": | ||
| return `<video style="width:200px;height: auto;object-fit: cover;background-color: #000;" src="${J( | ||
| a.content | ||
| return `<video style="width:200px;height: auto;object-fit: cover;background-color: #000;" src="${K( | ||
| r.content | ||
| )}" />`; | ||
| case "audio": | ||
| return `<audio width="300" controls src="${J(a.content)}" />`; | ||
| return `<audio width="300" controls src="${K(r.content)}" />`; | ||
| case "file": | ||
| return `文件: ${a.name}`; | ||
| return `文件: ${r.name}`; | ||
| default: | ||
| return a.text || " "; | ||
| return r.text || " "; | ||
| } | ||
| } | ||
| function E2(a, T = !1) { | ||
| const i = a.target.getBoundingClientRect(), o = a.clientY; | ||
| if (T) { | ||
| const E = i.height / 3, g = 2 * E; | ||
| return o < i.top + E ? "before" : o > i.top + g ? "after" : "inner"; | ||
| function I0(r, D = !1) { | ||
| const n = r.target.getBoundingClientRect(), s = r.clientY; | ||
| if (D) { | ||
| const E = n.height / 3, g = 2 * E; | ||
| return s < n.top + E ? "before" : s > n.top + g ? "after" : "inner"; | ||
| } else | ||
| return o < i.top + i.height / 2 ? "before" : "after"; | ||
| return s < n.top + n.height / 2 ? "before" : "after"; | ||
| } | ||
| const C = Ze({ | ||
| const C = Z2({ | ||
| dragging: !1, | ||
| dropId: null, | ||
| dropPosition: "" | ||
| }), De = (a) => (r2("data-v-4a1db2f4"), a = a(), a2(), a), V2 = { | ||
| }), T2 = (r) => (r0("data-v-aa1af844"), r = r(), o0(), r), M0 = { | ||
| key: 0, | ||
| class: "record-list-bar" | ||
| }, I2 = { class: "record-list-bar-search" }, B2 = { | ||
| }, B0 = { class: "record-list-bar-search" }, G0 = { | ||
| key: 1, | ||
| class: "record-list-sort" | ||
| }, M2 = { class: "record-list-sort-tags" }, G2 = { class: "record-list-sort-box" }, N2 = { class: "record-list-sort-arrow" }, P2 = { class: "record-list-sort-arrow" }, Y2 = /* @__PURE__ */ De(() => /* @__PURE__ */ u("path", { | ||
| }, P0 = { class: "record-list-sort-tags" }, N0 = { class: "record-list-sort-box" }, Y0 = { class: "record-list-sort-arrow" }, q0 = { class: "record-list-sort-arrow" }, z0 = /* @__PURE__ */ T2(() => /* @__PURE__ */ u("path", { | ||
| "fill-rule": "evenodd", | ||
| d: "M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z" | ||
| }, null, -1)), q2 = [ | ||
| Y2 | ||
| ], z2 = { | ||
| }, null, -1)), O0 = [ | ||
| z0 | ||
| ], H0 = { | ||
| key: 2, | ||
| class: "record-list-empty" | ||
| }, O2 = ["draggable", "onDragstart", "onDragover"], H2 = { | ||
| }, A0 = ["draggable", "onDragstart", "onDragover"], $0 = { | ||
| key: 0, | ||
| class: "record-list-item-tag-wrap" | ||
| }, A2 = { | ||
| }, U0 = { | ||
| key: 1, | ||
| class: "record-list-item-tag-wrap" | ||
| }, $2 = ["onClick"], U2 = ["innerHTML"], X2 = ["innerHTML"], W2 = /* @__PURE__ */ De(() => /* @__PURE__ */ u("path", { | ||
| }, W0 = ["onClick"], X0 = ["innerHTML"], R0 = ["innerHTML"], F0 = /* @__PURE__ */ T2(() => /* @__PURE__ */ u("path", { | ||
| "fill-rule": "evenodd", | ||
| d: "M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z" | ||
| }, null, -1)), R2 = [ | ||
| W2 | ||
| ], Z2 = { | ||
| }, null, -1)), Z0 = [ | ||
| F0 | ||
| ], j0 = { | ||
| __name: "record-list", | ||
@@ -256,5 +257,5 @@ props: { | ||
| ], | ||
| setup(a, { emit: T }) { | ||
| setup(r, { emit: D }) { | ||
| let h = null; | ||
| const i = T, o = a, E = x(0), g = x(null), l = x({ | ||
| const n = D, s = r, E = x(0), g = x(null), l = x({ | ||
| trash: !1, | ||
@@ -266,35 +267,35 @@ sort: 1, | ||
| noteName: "" | ||
| }), f = x(!1), A = x(null), $ = x(null), P = x(null), V = x(!0), _e = x(null), v = x({ | ||
| }), f = x(!1), A = x(null), $ = x(null), N = x(null), V = x(!0), _2 = x(null), v = x({ | ||
| datetime: !1, | ||
| tagsShow: !1, | ||
| tag: !1 | ||
| }), U = c2() === "mobile", Y = _(() => o.mode === "explorer"), X = _(() => !l.value.trash && o.draggable && !f.value), Le = _(() => V.value && o.mode !== "simple" && o.mode !== "explorer"), Se = _(() => V.value && o.mode !== "simple" && o.mode !== "explorer"), K = _(() => { | ||
| const e = pe(); | ||
| }), U = d0() === "mobile", Y = S(() => s.mode === "explorer"), W = S(() => !l.value.trash && s.draggable && !f.value), L2 = S(() => V.value && s.mode !== "simple" && s.mode !== "explorer"), S2 = S(() => V.value && s.mode !== "simple" && s.mode !== "explorer"), Q = S(() => { | ||
| const e = f2(); | ||
| if (!e || e.vnode.props && e.vnode.props.onGetList) | ||
| return [...o.noteList]; | ||
| const { tagIds: t, trash: r, sortType: n, sort: Z, noteName: F } = l.value, j = o.noteList.filter((k) => { | ||
| return [...s.noteList]; | ||
| const { tagIds: t, trash: a, sortType: c, sort: F, noteName: Z } = l.value, j = s.noteList.filter((k) => { | ||
| const q = k.tag_id; | ||
| return t != null && t.length && !t.includes(q) || F && k.title.indexOf(F) < 0 && k.content.indexOf(F) < 0 ? !1 : r ? !!k.deleted_at : !k.deleted_at; | ||
| return t != null && t.length && !t.includes(q) || Z && k.title.indexOf(Z) < 0 && k.content.indexOf(Z) < 0 ? !1 : a ? !!k.deleted_at : !k.deleted_at; | ||
| }); | ||
| return l.value.sort === 0 || j.sort((k, q) => { | ||
| const z = Z === 1 ? "created_at" : "updated_at"; | ||
| return n === "ASC" ? k[z] > q[z] ? 1 : -1 : k[z] > q[z] ? -1 : 1; | ||
| const z = F === 1 ? "created_at" : "updated_at"; | ||
| return c === "ASC" ? k[z] > q[z] ? 1 : -1 : k[z] > q[z] ? -1 : 1; | ||
| }), j; | ||
| }), ke = _(() => o.tags.filter(O).map((e) => e.created_at)), Q = _(() => l.value.trash || o.mode === "explorer" ? K.value : K.value.filter((e) => { | ||
| const t = ke.value.includes(e.tag_id), r = t && G(e).finished; | ||
| return f.value ? r : !t || !r; | ||
| })), W = x(!1), be = _(() => W.value ? "list" : "disabled"), Ee = _(() => { | ||
| }), k2 = S(() => s.tags.filter(O).map((e) => e.created_at)), e2 = S(() => l.value.trash || s.mode === "explorer" ? Q.value : Q.value.filter((e) => { | ||
| const t = k2.value.includes(e.tag_id), a = t && G(e).finished; | ||
| return f.value ? a : !t || !a; | ||
| })), X = x(!1), b2 = S(() => X.value ? "list" : "disabled"), E2 = S(() => { | ||
| const e = { | ||
| "padding-top": "5rem" | ||
| }; | ||
| return o.mode === "simple" ? (e["padding-top"] = "6px", e) : Y.value ? (e["padding-top"] = "30px", e) : (v.value.tagsShow && (e["padding-top"] = `calc(4rem + ${E.value + 20}px)`), e); | ||
| return s.mode === "simple" ? (e["padding-top"] = "6px", e) : Y.value ? (e["padding-top"] = "30px", e) : (v.value.tagsShow && (e["padding-top"] = `calc(4rem + ${E.value + 20}px)`), e); | ||
| }); | ||
| I( | ||
| () => o.filters, | ||
| () => s.filters, | ||
| () => { | ||
| var e; | ||
| (e = o.filters) != null && e.todo && (l.value.tagIds = [ | ||
| (e = s.filters) != null && e.todo && (l.value.tagIds = [ | ||
| // 防止空数组查询全部 | ||
| "__TODO__", | ||
| ...(o.tags || []).filter(O).map((t) => t.created_at) | ||
| ...(s.tags || []).filter(O).map((t) => t.created_at) | ||
| ]); | ||
@@ -306,9 +307,9 @@ }, | ||
| ), I( | ||
| () => o.activeNote, | ||
| () => s.activeNote, | ||
| (e) => { | ||
| P.value = e == null ? void 0 : e.created_at; | ||
| N.value = e == null ? void 0 : e.created_at; | ||
| }, | ||
| { immediate: !0 } | ||
| ), I( | ||
| () => o.expand, | ||
| () => s.expand, | ||
| (e) => { | ||
@@ -319,3 +320,3 @@ V.value = e; | ||
| ), I( | ||
| () => o.datetimeVisible, | ||
| () => s.datetimeVisible, | ||
| (e) => { | ||
@@ -326,9 +327,9 @@ v.value.datetime = e; | ||
| ), I( | ||
| () => o.tagsShowVisible, | ||
| () => s.tagsShowVisible, | ||
| (e) => { | ||
| v.value.tagsShow = e, e && de(); | ||
| v.value.tagsShow = e, e && u2(); | ||
| }, | ||
| { immediate: !0 } | ||
| ), I( | ||
| () => o.tagVisible, | ||
| () => s.tagVisible, | ||
| (e) => { | ||
@@ -339,16 +340,16 @@ v.value.tag = e; | ||
| ), I( | ||
| () => o.sortType, | ||
| () => s.sortType, | ||
| () => { | ||
| l.value.sort = +o.sort, l.value.sortType = o.sortType || "DESC", l.value.page = 1, i("getList", l.value); | ||
| l.value.sort = +s.sort, l.value.sortType = s.sortType || "DESC", l.value.page = 1, n("getList", l.value); | ||
| }, | ||
| { immediate: !0 } | ||
| ), Fe(() => { | ||
| document.addEventListener("click", se); | ||
| }), je(() => { | ||
| document.removeEventListener("click", se); | ||
| ), j2(() => { | ||
| document.addEventListener("click", i2); | ||
| }), J2(() => { | ||
| document.removeEventListener("click", i2); | ||
| }); | ||
| function ee(e) { | ||
| return o2(e).format("YYYY年MM月DD日 HH:mm:ss"); | ||
| function t2(e) { | ||
| return s0(e).format("YYYY年MM月DD日 HH:mm:ss"); | ||
| } | ||
| function te(e) { | ||
| function l2(e) { | ||
| let t = (e || "").replace("closeIcon", "").replace("contenteditable", "temp"); | ||
@@ -360,23 +361,23 @@ try { | ||
| if (Array.isArray(t)) { | ||
| let r = t.find((n) => n.text || n.type && !n.pending); | ||
| return r ? xe(r) : ""; | ||
| let a = t.find((c) => c.text || c.type && !c.pending); | ||
| return a ? x2(a) : ""; | ||
| } else | ||
| return typeof t != "string" ? xe(t) : s2.sanitize(e); | ||
| return typeof t != "string" ? x2(t) : i0.sanitize(e); | ||
| } | ||
| function Ve(e) { | ||
| const t = Ce(e.tag_id, o.tags), r = G(e); | ||
| return O(t) && r.finished ? { | ||
| function V2(e) { | ||
| const t = C2(e.tag_id, s.tags), a = G(e); | ||
| return O(t) && a.finished ? { | ||
| "record-list-item-title-finished": !0 | ||
| } : {}; | ||
| } | ||
| function le() { | ||
| function a2() { | ||
| const e = !V.value; | ||
| V.value = e, i("toggle", e); | ||
| V.value = e, n("toggle", e); | ||
| } | ||
| function Ie(e) { | ||
| function I2(e) { | ||
| clearTimeout(h), h = null; | ||
| const t = e.currentTarget; | ||
| t.scrollHeight - t.scrollTop - t.clientHeight <= 50 && (l.value.page += 1, i("changePage", l.value)); | ||
| t.scrollHeight - t.scrollTop - t.clientHeight <= 50 && (l.value.page += 1, n("changePage", l.value)); | ||
| } | ||
| function Be(e) { | ||
| function M2(e) { | ||
| const t = { | ||
@@ -387,42 +388,42 @@ touchStartX: 0, | ||
| touchEndY: 0 | ||
| }, r = () => { | ||
| }, a = () => { | ||
| h !== null && (clearTimeout(h), h = null); | ||
| }; | ||
| return U ? { | ||
| click: () => ae(e), | ||
| touchstart: (n) => { | ||
| t.touchStartX = n.touches[0].clientX, t.touchStartY = n.touches[0].clientY, h === null && (h = setTimeout(() => { | ||
| oe(n, e); | ||
| click: () => o2(e), | ||
| touchstart: (c) => { | ||
| t.touchStartX = c.touches[0].clientX, t.touchStartY = c.touches[0].clientY, h === null && (h = setTimeout(() => { | ||
| s2(c, e); | ||
| }, 500)); | ||
| }, | ||
| touchmove: (n) => { | ||
| r(), t.touchEndX = n.touches[0].clientX, t.touchEndY = n.touches[0].clientY; | ||
| touchmove: (c) => { | ||
| a(), t.touchEndX = c.touches[0].clientX, t.touchEndY = c.touches[0].clientY; | ||
| }, | ||
| touchend: () => { | ||
| r(); | ||
| const n = t.touchEndX - t.touchStartX, Z = t.touchEndY - t.touchStartY; | ||
| Math.abs(n) > Math.abs(Z) && Math.abs(n) > 50 && re(e, n > 0); | ||
| a(); | ||
| const c = t.touchEndX - t.touchStartX, F = t.touchEndY - t.touchStartY; | ||
| Math.abs(c) > Math.abs(F) && Math.abs(c) > 50 && r2(e, c > 0); | ||
| } | ||
| } : { | ||
| click: () => ae(e), | ||
| contextmenu: (n) => oe(n, e) | ||
| click: () => o2(e), | ||
| contextmenu: (c) => s2(c, e) | ||
| }; | ||
| } | ||
| function Me(e) { | ||
| function B2(e) { | ||
| if (!U) { | ||
| const t = G(e); | ||
| re(e, !t.finished); | ||
| r2(e, !t.finished); | ||
| } | ||
| } | ||
| function re(e, t) { | ||
| function r2(e, t) { | ||
| if (R(e)) | ||
| return; | ||
| const r = Ce(e.tag_id, o.tags); | ||
| if (O(r)) { | ||
| ue(); | ||
| const n = G(e); | ||
| i("changeNote", { | ||
| const a = C2(e.tag_id, s.tags); | ||
| if (O(a)) { | ||
| g2(); | ||
| const c = G(e); | ||
| n("changeNote", { | ||
| ...e, | ||
| ext: JSON.stringify({ | ||
| ...n, | ||
| ...c, | ||
| finished: t | ||
@@ -434,20 +435,20 @@ }), | ||
| } | ||
| function ae(e) { | ||
| g.value || (P.value = e.created_at, e.deleted_at || i("selectNote", e)); | ||
| function o2(e) { | ||
| g.value || (N.value = e.created_at, e.deleted_at || n("selectNote", e)); | ||
| } | ||
| function Ge() { | ||
| function G2() { | ||
| const e = !v.value.tagsShow; | ||
| v.value.tagsShow = e, i("changeTagsShowVisible", e), e && de(); | ||
| v.value.tagsShow = e, n("changeTagsShowVisible", e), e && u2(); | ||
| } | ||
| function Ne() { | ||
| function P2() { | ||
| const e = !v.value.datetime; | ||
| v.value.datetime = e, i("changeDatetimeVisible", e); | ||
| v.value.datetime = e, n("changeDatetimeVisible", e); | ||
| } | ||
| function Pe() { | ||
| function N2() { | ||
| const e = !v.value.tag; | ||
| v.value.tag = e, i("changeTagVisible", e); | ||
| v.value.tag = e, n("changeTagVisible", e); | ||
| } | ||
| function oe(e, t) { | ||
| e.preventDefault(), g.value = t, l2(() => { | ||
| i2( | ||
| function s2(e, t) { | ||
| e.preventDefault(), g.value = t, a0(() => { | ||
| n0( | ||
| { | ||
@@ -487,27 +488,27 @@ getBoundingClientRect() { | ||
| } | ||
| function se(e) { | ||
| function i2(e) { | ||
| var t; | ||
| (t = $.value) != null && t.contains(e.target) || (g.value = null); | ||
| } | ||
| function ie() { | ||
| function n2() { | ||
| const e = !l.value.trash; | ||
| l.value.trash = e, l.value.page = 1, e && (f.value = !1), i("getList", l.value); | ||
| l.value.trash = e, l.value.page = 1, e && (f.value = !1), n("getList", l.value); | ||
| } | ||
| function Ye() { | ||
| f.value = !f.value, l.value.trash && ie(); | ||
| function Y2() { | ||
| f.value = !f.value, l.value.trash && n2(); | ||
| } | ||
| function qe(e) { | ||
| l.value.noteName = e.target.value, l.value.page = 1, i("getList", l.value); | ||
| function q2(e) { | ||
| l.value.noteName = e.target.value, l.value.page = 1, n("getList", l.value); | ||
| } | ||
| function ze() { | ||
| function z2() { | ||
| var t; | ||
| l.value.noteName = ""; | ||
| const e = pe(); | ||
| (t = e == null ? void 0 : e.proxy) == null || t.$forceUpdate(), i("getList", l.value); | ||
| const e = f2(); | ||
| (t = e == null ? void 0 : e.proxy) == null || t.$forceUpdate(), n("getList", l.value); | ||
| } | ||
| function Oe(e) { | ||
| l.value.tagIds = e, l.value.page = 1, i("getList", l.value); | ||
| function O2(e) { | ||
| l.value.tagIds = e, l.value.page = 1, n("getList", l.value); | ||
| } | ||
| function ne(e) { | ||
| e == l.value.sort ? l.value.sortType = l.value.sortType == "DESC" ? "ASC" : "DESC" : (l.value.sort = e, l.value.sortType = "DESC"), l.value.page = 1, i("getList", l.value), i("changeSort", { | ||
| function c2(e) { | ||
| e == l.value.sort ? l.value.sortType = l.value.sortType == "DESC" ? "ASC" : "DESC" : (l.value.sort = e, l.value.sortType = "DESC"), l.value.page = 1, n("getList", l.value), n("changeSort", { | ||
| sort: e, | ||
@@ -517,9 +518,9 @@ sortType: l.value.sortType | ||
| } | ||
| function ce(e = !1) { | ||
| ue(), i("removeNote", g.value, e), g.value = null; | ||
| function d2(e = !1) { | ||
| g2(), n("removeNote", g.value, e), g.value = null; | ||
| } | ||
| function He() { | ||
| i("rename", g.value); | ||
| function H2() { | ||
| n("rename", g.value); | ||
| } | ||
| function de() { | ||
| function u2() { | ||
| var t; | ||
@@ -531,43 +532,43 @@ const e = (t = A.value) == null ? void 0 : t.$el; | ||
| } | ||
| function ue() { | ||
| W.value = !0, setTimeout(() => { | ||
| W.value = !1; | ||
| function g2() { | ||
| X.value = !0, setTimeout(() => { | ||
| X.value = !1; | ||
| }, 500); | ||
| } | ||
| function ge(e, t = {}) { | ||
| if (!X.value || // 非文件夹模式下不支持拖拽文件夹 | ||
| o.mode !== "explorer" && window.__DRAG_TYPE__ === "folder" || window.__DRAG_ID__ === t.created_at) { | ||
| function v2(e, t = {}) { | ||
| if (!W.value || // 非文件夹模式下不支持拖拽文件夹 | ||
| s.mode !== "explorer" && window.__DRAG_TYPE__ === "folder" || window.__DRAG_ID__ === t.created_at) { | ||
| e.dataTransfer.dropEffect = "none"; | ||
| return; | ||
| } | ||
| C.dropId = t.created_at, C.dropPosition = E2(e, t.type === "folder"); | ||
| C.dropId = t.created_at, C.dropPosition = I0(e, t.type === "folder"); | ||
| } | ||
| function Ae(e) { | ||
| function A2(e) { | ||
| const t = e.cloneNode(!0); | ||
| return t.classList.add("dragging-image"), t.style.width = `${e.offsetWidth}px`, document.body.appendChild(t), t; | ||
| } | ||
| function $e(e, t) { | ||
| const r = t.type || "note"; | ||
| if (window.__DRAG_TYPE__ = r, window.__DRAG_ID__ = t.created_at, e.dataTransfer.setData( | ||
| function $2(e, t) { | ||
| const a = t.type || "note"; | ||
| if (window.__DRAG_TYPE__ = a, window.__DRAG_ID__ = t.created_at, e.dataTransfer.setData( | ||
| "dragData", | ||
| JSON.stringify({ | ||
| type: r, | ||
| type: a, | ||
| data: t, | ||
| action: e.altKey ? "rel" : "move" | ||
| }) | ||
| ), o.mode !== "explorer") { | ||
| const n = Ae(e.target); | ||
| e.dataTransfer.setDragImage(n, 25, 25); | ||
| ), s.mode !== "explorer") { | ||
| const c = A2(e.target); | ||
| e.dataTransfer.setDragImage(c, 25, 25); | ||
| } | ||
| } | ||
| function Ue() { | ||
| function U2() { | ||
| delete window.__DRAG_TYPE__, delete window.__DRAG_ID__, document.querySelectorAll(".dragging-image").forEach((t) => t.remove()); | ||
| } | ||
| function ve(e) { | ||
| X.value && (i("drop", e, { | ||
| function h2(e) { | ||
| W.value && (n("drop", e, { | ||
| id: C.dropId, | ||
| position: C.dropPosition | ||
| }), he()); | ||
| }), p2()); | ||
| } | ||
| function he() { | ||
| function p2() { | ||
| C.dropId = null, C.dropPosition = ""; | ||
@@ -578,10 +579,13 @@ } | ||
| } | ||
| function Xe(e) { | ||
| return Y.value && e.type === "folder" && e.created_at === P.value ? !1 : X.value && !R(e); | ||
| function W2(e) { | ||
| return !!G(e).uploading; | ||
| } | ||
| function We() { | ||
| i("addFolder", g.value); | ||
| function X2(e) { | ||
| return Y.value && e.type === "folder" && e.created_at === N.value ? !1 : W.value && !R(e); | ||
| } | ||
| return (e, t) => (c(), d("div", { | ||
| class: B({ | ||
| function R2() { | ||
| n("addFolder", g.value); | ||
| } | ||
| return (e, t) => (i(), d("div", { | ||
| class: M({ | ||
| "record-list": !0, | ||
@@ -592,7 +596,7 @@ "record-list-mobile": U, | ||
| }, [ | ||
| Le.value ? (c(), d("div", V2, [ | ||
| u("div", I2, [ | ||
| p(s(L), { | ||
| L2.value ? (i(), d("div", M0, [ | ||
| u("div", B0, [ | ||
| p(o(_), { | ||
| class: "record-list-bar-search-icon", | ||
| src: s(S).search, | ||
| src: o(L).search, | ||
| width: "14", | ||
@@ -604,14 +608,14 @@ height: "14", | ||
| class: "record-list-bar-search-input", | ||
| "onUpdate:modelValue": t[0] || (t[0] = (r) => l.value.noteName = r), | ||
| "onUpdate:modelValue": t[0] || (t[0] = (a) => l.value.noteName = a), | ||
| placeholder: "搜索", | ||
| onKeyup: Je(qe, ["enter"]) | ||
| onKeyup: K2(q2, ["enter"]) | ||
| }, null, 544), [ | ||
| [Ke, l.value.noteName] | ||
| [Q2, l.value.noteName] | ||
| ]), | ||
| y(u("div", { | ||
| class: "record-list-bar-search-clear", | ||
| onClick: ze | ||
| onClick: z2 | ||
| }, [ | ||
| p(s(L), { | ||
| src: s(S).delect, | ||
| p(o(_), { | ||
| src: o(L).delect, | ||
| width: "18", | ||
@@ -621,3 +625,3 @@ height: "18" | ||
| ], 512), [ | ||
| [D, l.value.noteName] | ||
| [T, l.value.noteName] | ||
| ]) | ||
@@ -628,15 +632,15 @@ ]), | ||
| style: w({ | ||
| left: a.showToggle ? "36px" : "10px" | ||
| left: r.showToggle ? "36px" : "10px" | ||
| }) | ||
| }, [ | ||
| a.tags.length ? (c(), fe(s(N), { | ||
| r.tags.length ? (i(), J(o(P), { | ||
| key: 0, | ||
| slot: "reference", | ||
| active: v.value.tagsShow, | ||
| onClick: Ge | ||
| onClick: G2 | ||
| }, { | ||
| default: M(() => [ | ||
| p(s(L), { | ||
| default: B(() => [ | ||
| p(o(_), { | ||
| class: "record-list-icon", | ||
| src: s(S).filter | ||
| src: o(L).filter | ||
| }, null, 8, ["src"]) | ||
@@ -646,10 +650,10 @@ ]), | ||
| }, 8, ["active"])) : m("", !0), | ||
| p(s(N), { | ||
| onClick: ie, | ||
| p(o(P), { | ||
| onClick: n2, | ||
| active: l.value.trash | ||
| }, { | ||
| default: M(() => [ | ||
| p(s(L), { | ||
| default: B(() => [ | ||
| p(o(_), { | ||
| class: "record-list-icon", | ||
| src: s(S).trash | ||
| src: o(L).trash | ||
| }, null, 8, ["src"]) | ||
@@ -659,10 +663,10 @@ ]), | ||
| }, 8, ["active"]), | ||
| p(s(N), { | ||
| onClick: Pe, | ||
| p(o(P), { | ||
| onClick: N2, | ||
| active: v.value.tag | ||
| }, { | ||
| default: M(() => [ | ||
| p(s(L), { | ||
| default: B(() => [ | ||
| p(o(_), { | ||
| class: "record-list-icon", | ||
| src: s(S).visible | ||
| src: o(L).visible | ||
| }, null, 8, ["src"]) | ||
@@ -672,10 +676,10 @@ ]), | ||
| }, 8, ["active"]), | ||
| p(s(N), { | ||
| onClick: Ne, | ||
| p(o(P), { | ||
| onClick: P2, | ||
| active: v.value.datetime | ||
| }, { | ||
| default: M(() => [ | ||
| p(s(L), { | ||
| default: B(() => [ | ||
| p(o(_), { | ||
| class: "record-list-icon", | ||
| src: s(S).delete | ||
| src: o(L).delete | ||
| }, null, 8, ["src"]) | ||
@@ -685,10 +689,10 @@ ]), | ||
| }, 8, ["active"]), | ||
| p(s(N), { | ||
| onClick: Ye, | ||
| p(o(P), { | ||
| onClick: Y2, | ||
| active: f.value | ||
| }, { | ||
| default: M(() => [ | ||
| p(s(L), { | ||
| default: B(() => [ | ||
| p(o(_), { | ||
| class: "record-list-icon", | ||
| src: s(S).todo | ||
| src: o(L).todo | ||
| }, null, 8, ["src"]) | ||
@@ -700,20 +704,20 @@ ]), | ||
| ])) : m("", !0), | ||
| Se.value ? (c(), d("div", B2, [ | ||
| y(u("div", M2, [ | ||
| p(s(f2), { | ||
| S2.value ? (i(), d("div", G0, [ | ||
| y(u("div", P0, [ | ||
| p(o(m0), { | ||
| ref_key: "multipleTag", | ||
| ref: A, | ||
| tags: a.tags, | ||
| tags: r.tags, | ||
| value: l.value.tagIds, | ||
| onChange: Oe | ||
| onChange: O2 | ||
| }, null, 8, ["tags", "value"]) | ||
| ], 512), [ | ||
| [D, v.value.tagsShow] | ||
| [T, v.value.tagsShow] | ||
| ]), | ||
| u("div", G2, [ | ||
| u("div", N0, [ | ||
| u("div", { | ||
| class: B(["record-list-sort-item", { | ||
| class: M(["record-list-sort-item", { | ||
| "record-list-sort-item-active": l.value.sort == 1 | ||
| }]), | ||
| onClick: t[1] || (t[1] = (r) => ne(1)), | ||
| onClick: t[1] || (t[1] = (a) => c2(1)), | ||
| style: w({ | ||
@@ -723,4 +727,4 @@ "margin-right": l.value.sort == 2 ? "24px" : "10px" | ||
| }, [ | ||
| me(" 创建时间 "), | ||
| y(u("span", N2, [ | ||
| m2(" 创建时间 "), | ||
| y(u("span", Y0, [ | ||
| y(u("span", { | ||
@@ -731,3 +735,3 @@ style: w({ | ||
| }, "▼", 4), [ | ||
| [D, l.value.sortType === "DESC"] | ||
| [T, l.value.sortType === "DESC"] | ||
| ]), | ||
@@ -739,16 +743,16 @@ y(u("span", { | ||
| }, "▲", 4), [ | ||
| [D, l.value.sortType === "ASC"] | ||
| [T, l.value.sortType === "ASC"] | ||
| ]) | ||
| ], 512), [ | ||
| [D, l.value.sort == 1] | ||
| [T, l.value.sort == 1] | ||
| ]) | ||
| ], 6), | ||
| u("div", { | ||
| class: B(["record-list-sort-item", { | ||
| class: M(["record-list-sort-item", { | ||
| "record-list-sort-item-active": l.value.sort == 2 | ||
| }]), | ||
| onClick: t[2] || (t[2] = (r) => ne(2)) | ||
| onClick: t[2] || (t[2] = (a) => c2(2)) | ||
| }, [ | ||
| me(" 更新时间 "), | ||
| y(u("span", P2, [ | ||
| m2(" 更新时间 "), | ||
| y(u("span", q0, [ | ||
| y(u("span", { | ||
@@ -759,3 +763,3 @@ style: w({ | ||
| }, "▼", 4), [ | ||
| [D, l.value.sortType == "DESC"] | ||
| [T, l.value.sortType == "DESC"] | ||
| ]), | ||
@@ -767,6 +771,6 @@ y(u("span", { | ||
| }, "▲", 4), [ | ||
| [D, l.value.sortType == "ASC"] | ||
| [T, l.value.sortType == "ASC"] | ||
| ]) | ||
| ], 512), [ | ||
| [D, l.value.sort == 2] | ||
| [T, l.value.sort == 2] | ||
| ]) | ||
@@ -776,13 +780,13 @@ ], 2) | ||
| ])) : m("", !0), | ||
| V.value ? (c(), d("div", { | ||
| V.value ? (i(), d("div", { | ||
| key: 2, | ||
| class: "record-list-main", | ||
| style: w({ background: a.bgColor }) | ||
| style: w({ background: r.bgColor }) | ||
| }, [ | ||
| a.showToggle ? (c(), d("button", { | ||
| r.showToggle ? (i(), d("button", { | ||
| key: 0, | ||
| class: "record-list-closer", | ||
| onClick: le | ||
| onClick: a2 | ||
| }, [ | ||
| (c(), d("svg", { | ||
| (i(), d("svg", { | ||
| xmlns: "http://www.w3.org/2000/svg", | ||
@@ -796,44 +800,44 @@ width: "14", | ||
| viewBox: "0 0 16 16" | ||
| }, q2, 4)) | ||
| }, O0, 4)) | ||
| ])) : m("", !0), | ||
| Y.value ? (c(), d("div", { | ||
| Y.value ? (i(), d("div", { | ||
| key: 1, | ||
| class: "record-list-explorer-add", | ||
| onClick: We | ||
| onClick: R2 | ||
| }, " + ")) : m("", !0), | ||
| !Q.value.length && a.mode !== "explorer" ? (c(), d("div", z2, " 0条符合条件的记录 ")) : (c(), d("div", { | ||
| !e2.value.length && r.mode !== "explorer" ? (i(), d("div", H0, " 0条符合条件的记录 ")) : (i(), d("div", { | ||
| key: 3, | ||
| ref_key: "noteList", | ||
| ref: _e, | ||
| style: w(Ee.value), | ||
| ref: _2, | ||
| style: w(E2.value), | ||
| class: "record-list-wrap", | ||
| onScroll: Ie, | ||
| onDragover: t[4] || (t[4] = b((r) => ge(r), ["stop", "prevent"])), | ||
| onDragleave: b(he, ["stop", "prevent"]), | ||
| onDrop: t[5] || (t[5] = b((r) => ve(r), ["stop", "prevent"])) | ||
| onScroll: I2, | ||
| onDragover: t[4] || (t[4] = b((a) => v2(a), ["stop", "prevent"])), | ||
| onDragleave: b(p2, ["stop", "prevent"]), | ||
| onDrop: t[5] || (t[5] = b((a) => h2(a), ["stop", "prevent"])) | ||
| }, [ | ||
| p(Qe, { | ||
| name: be.value, | ||
| p(e0, { | ||
| name: b2.value, | ||
| tag: "div" | ||
| }, { | ||
| default: M(() => [ | ||
| (c(!0), d(ye, null, Te(Q.value, (r) => (c(), d("div", e2({ | ||
| key: r.created_at, | ||
| default: B(() => [ | ||
| (i(!0), d(y2, null, D2(e2.value, (a) => (i(), d("div", t0({ | ||
| key: a.created_at, | ||
| class: ["record-list-item", { | ||
| "record-list-item-active": r.created_at === P.value, | ||
| "record-drop-before": s(C).dropId === r.created_at && s(C).dropPosition === "before", | ||
| "record-drop-after": s(C).dropId === r.created_at && s(C).dropPosition === "after", | ||
| "record-drop-inner": s(C).dropId === r.created_at && s(C).dropPosition === "inner" | ||
| "record-list-item-active": a.created_at === N.value, | ||
| "record-drop-before": o(C).dropId === a.created_at && o(C).dropPosition === "before", | ||
| "record-drop-after": o(C).dropId === a.created_at && o(C).dropPosition === "after", | ||
| "record-drop-inner": o(C).dropId === a.created_at && o(C).dropPosition === "inner" | ||
| }] | ||
| }, t2(Be(r), !0), { | ||
| draggable: Xe(r), | ||
| onDragstart: b((n) => $e(n, r), ["stop"]), | ||
| onDragend: b(Ue, ["stop"]), | ||
| onDragover: b((n) => ge(n, r), ["stop", "prevent"]), | ||
| onDrop: t[3] || (t[3] = b((n) => ve(n), ["stop", "prevent"])) | ||
| }, l0(M2(a), !0), { | ||
| draggable: X2(a), | ||
| onDragstart: b((c) => $2(c, a), ["stop"]), | ||
| onDragend: b(U2, ["stop"]), | ||
| onDragover: b((c) => v2(c, a), ["stop", "prevent"]), | ||
| onDrop: t[3] || (t[3] = b((c) => h2(c), ["stop", "prevent"])) | ||
| }), [ | ||
| r.type === "folder" ? (c(), d("div", H2, [ | ||
| p(s(L), { | ||
| a.type === "folder" ? (i(), d("div", $0, [ | ||
| p(o(_), { | ||
| class: "record-list-item-tag", | ||
| src: s(S).folder, | ||
| src: o(L).folder, | ||
| width: "14", | ||
@@ -843,41 +847,48 @@ height: "14", | ||
| }, null, 8, ["src"]) | ||
| ])) : v.value.tag ? (c(), d("div", A2, [ | ||
| ])) : v.value.tag ? (i(), d("div", U0, [ | ||
| u("span", { | ||
| class: "record-list-item-tag", | ||
| style: w(s(d2)(r.tag_id, a.tags, r)), | ||
| onClick: b((n) => Me(r), ["stop"]) | ||
| }, null, 12, $2) | ||
| style: w(o(u0)(a.tag_id, r.tags, a)), | ||
| onClick: b((c) => B2(a), ["stop"]) | ||
| }, null, 12, W0) | ||
| ])) : m("", !0), | ||
| u("h3", { | ||
| class: B(["record-list-item-title", { | ||
| class: M(["record-list-item-title", { | ||
| "record-list-item-title-trash": l.value.trash, | ||
| ...Ve(r) | ||
| ...V2(a) | ||
| }]), | ||
| innerHTML: te(r.title) | ||
| }, null, 10, U2), | ||
| r.type ? m("", !0) : (c(), d("p", { | ||
| innerHTML: l2(a.title) | ||
| }, null, 10, X0), | ||
| a.type ? m("", !0) : (i(), d("p", { | ||
| key: 2, | ||
| class: B(["record-list-item-content", { | ||
| class: M(["record-list-item-content", { | ||
| "record-list-item-title-trash": l.value.trash | ||
| }]), | ||
| innerHTML: te(r.content) | ||
| }, null, 10, X2)), | ||
| v.value.datetime ? y((c(), d("p", { | ||
| innerHTML: l2(a.content) | ||
| }, null, 10, R0)), | ||
| v.value.datetime ? y((i(), d("p", { | ||
| key: 3, | ||
| style: w({ color: l.value.trash ? "#777777" : "" }), | ||
| class: "record-list-item-des" | ||
| }, we(ee(r.created_at)) + "创建 ", 5)), [ | ||
| [D, l.value.sort == 1] | ||
| }, w2(t2(a.created_at)) + "创建 ", 5)), [ | ||
| [T, l.value.sort == 1] | ||
| ]) : m("", !0), | ||
| v.value.datetime ? y((c(), d("p", { | ||
| v.value.datetime ? y((i(), d("p", { | ||
| key: 4, | ||
| style: w({ color: l.value.trash ? "#777777" : "" }), | ||
| class: "record-list-item-des" | ||
| }, we(ee(r.updated_at)) + "更新 ", 5)), [ | ||
| [D, l.value.sort == 2] | ||
| }, w2(t2(a.updated_at)) + "更新 ", 5)), [ | ||
| [T, l.value.sort == 2] | ||
| ]) : m("", !0), | ||
| R(r) ? (c(), fe(s(L), { | ||
| W2(a) ? (i(), J(o(_), { | ||
| key: 5, | ||
| class: "record-list-uploading", | ||
| src: o(L).uploading, | ||
| width: "14", | ||
| height: "14", | ||
| fill: "#52A770" | ||
| }, null, 8, ["src"])) : R(a) ? (i(), J(o(_), { | ||
| key: 6, | ||
| class: "record-list-rel", | ||
| src: s(S).relate, | ||
| src: o(L).relate, | ||
| width: "14", | ||
@@ -887,3 +898,3 @@ height: "14", | ||
| }, null, 8, ["src"])) : m("", !0) | ||
| ], 16, O2))), 128)) | ||
| ], 16, A0))), 128)) | ||
| ]), | ||
@@ -894,8 +905,8 @@ _: 1 | ||
| ], 4)) : m("", !0), | ||
| !V.value && a.showToggle ? (c(), d("button", { | ||
| !V.value && r.showToggle ? (i(), d("button", { | ||
| key: 3, | ||
| class: "record-list-opener", | ||
| onClick: le | ||
| onClick: a2 | ||
| }, [ | ||
| (c(), d("svg", { | ||
| (i(), d("svg", { | ||
| xmlns: "http://www.w3.org/2000/svg", | ||
@@ -909,5 +920,5 @@ width: "14", | ||
| viewBox: "0 0 16 16" | ||
| }, R2, 4)) | ||
| }, Z0, 4)) | ||
| ])) : m("", !0), | ||
| g.value ? (c(), d("div", { | ||
| g.value ? (i(), d("div", { | ||
| key: 4, | ||
@@ -919,12 +930,12 @@ ref_key: "contentMenu", | ||
| u("ul", null, [ | ||
| g.value.type === "folder" ? (c(), d("li", { | ||
| g.value.type === "folder" ? (i(), d("li", { | ||
| key: 0, | ||
| onClick: He | ||
| onClick: H2 | ||
| }, " 重命名 ")) : m("", !0), | ||
| l.value.trash ? (c(), d("li", { | ||
| l.value.trash ? (i(), d("li", { | ||
| key: 1, | ||
| onClick: t[6] || (t[6] = (r) => ce(!0)) | ||
| }, "彻底删除")) : (c(), d("li", { | ||
| onClick: t[6] || (t[6] = (a) => d2(!0)) | ||
| }, "彻底删除")) : (i(), d("li", { | ||
| key: 2, | ||
| onClick: t[7] || (t[7] = (r) => ce(!1)) | ||
| onClick: t[7] || (t[7] = (a) => d2(!1)) | ||
| }, "删除")) | ||
@@ -935,5 +946,5 @@ ]) | ||
| } | ||
| }, t0 = /* @__PURE__ */ H(Z2, [["__scopeId", "data-v-4a1db2f4"]]); | ||
| }, ae = /* @__PURE__ */ H(j0, [["__scopeId", "data-v-aa1af844"]]); | ||
| export { | ||
| t0 as RecordList | ||
| ae as RecordList | ||
| }; |
+9
-9
| { | ||
| "name": "@codernote/record-list", | ||
| "version": "2.6.5", | ||
| "version": "2.6.6", | ||
| "type": "module", | ||
| "scripts": { | ||
| "dev": "vite", | ||
| "build": "vite build", | ||
| "watch": "vite build --watch" | ||
| }, | ||
| "main": "dist/index.js", | ||
| "dependencies": { | ||
| "@codernote/utils": "workspace:*", | ||
| "@popperjs/core": "^2.11.8", | ||
@@ -11,4 +17,3 @@ "dayjs": "^1.11.8", | ||
| "html-substring": "^1.8.1", | ||
| "vue-inline-svg": "^3.1.2", | ||
| "@codernote/utils": "1.9.1" | ||
| "vue-inline-svg": "^3.1.2" | ||
| }, | ||
@@ -31,8 +36,3 @@ "devDependencies": { | ||
| "registry": "https://registry.npmjs.org/" | ||
| }, | ||
| "scripts": { | ||
| "dev": "vite", | ||
| "build": "vite build", | ||
| "watch": "vite build --watch" | ||
| } | ||
| } | ||
| } |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
53335
3.92%999
1.73%11
10%- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated