Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@codernote/record-list

Package Overview
Dependencies
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codernote/record-list - npm Package Compare versions

Comparing version
2.6.8
to
3.0.0
+664
-427
dist/index.js

@@ -1,14 +0,14 @@

(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;
}, g0 = {
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.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-ce9a6620]{width:100%;height:100vh;position:relative}.record-list img[data-v-ce9a6620]{border:0}.record-list-sort[data-v-ce9a6620]{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-ce9a6620]{margin:0}.record-list-sort-box[data-v-ce9a6620],.record-list-sort-arrow[data-v-ce9a6620]{align-items:center;display:flex}.record-list-sort-item[data-v-ce9a6620]{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-ce9a6620]{color:#52a770}.record-list-context-menu[data-v-ce9a6620]{padding:8px;background:#fff;z-index:19;box-shadow:0 2px 4px #00000080;border-radius:4px}.record-list-context-menu li[data-v-ce9a6620]{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-ce9a6620]:hover{background:#d8d8d8}.record-list-icon[data-v-ce9a6620]{display:block;width:14px;height:14px;margin:0;padding:0!important;line-height:100%;font-size:0;cursor:pointer}.record-list-opener[data-v-ce9a6620]{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-ce9a6620]{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-ce9a6620]:hover,.record-list-opener[data-v-ce9a6620]:hover{background:#e8e8e8}.record-list-bar[data-v-ce9a6620]{position:absolute;z-index:100;top:0;left:0;right:0}.record-list-bar-search[data-v-ce9a6620]{left:186px;right:16px;position:absolute;top:8px;z-index:100;color:#b7b7b7;display:flex}.record-list-bar-search-icon[data-v-ce9a6620]{position:absolute;top:4px;left:16px}.record-list-bar-search-input[data-v-ce9a6620]{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-ce9a6620]::-moz-placeholder{color:#9e9e9e}.record-list-bar-search-input[data-v-ce9a6620]::placeholder{color:#9e9e9e}.record-list-bar-search-input[data-v-ce9a6620]: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-ce9a6620]{cursor:pointer;color:#9e9e9e;position:absolute;top:4px;right:4px}.record-list-bar-search-clear[data-v-ce9a6620]:hover{cursor:pointer;color:#52a770}.record-list-bar-filter[data-v-ce9a6620]{position:absolute;top:8px;z-index:100;color:#b7b7b7}.record-list-bar-filter button[data-v-ce9a6620]{margin-right:8px;border:0}.record-list-main[data-v-ce9a6620]{position:relative;border-left-width:1px;border-color:#e4e4e7}.record-list-empty[data-v-ce9a6620]{display:flex;justify-content:center;color:#b7b7b7;align-items:center;height:100vh;position:relative!important;transform:none!important}.record-list-wrap[data-v-ce9a6620]{padding-bottom:16px;padding-left:16px;padding-right:16px;overflow-y:auto;height:100vh}.record-list-item[data-v-ce9a6620]{padding:16px 32px;min-height:60px;border-radius:8px;margin-bottom:6px;position:relative;cursor:default;background:#fff}[data-v-ce9a6620] .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-ce9a6620]{background-color:#d8d8d8}.record-list-item-tag-wrap[data-v-ce9a6620]{cursor:pointer;width:24px;top:22px;left:0;bottom:0;position:absolute}.record-list-item-tag[data-v-ce9a6620]{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-ce9a6620]{font-weight:700;font-size:18px;line-height:28px;overflow-wrap:break-word;margin:0}.record-list-item-title p[data-v-ce9a6620]{display:inline;word-break:break-all}.record-list-item-title-trash[data-v-ce9a6620]{color:#777!important}.record-list-item-title-finished[data-v-ce9a6620]{text-decoration:line-through;color:#999}.record-list-item-content[data-v-ce9a6620]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;margin:0}.record-list-item-des[data-v-ce9a6620]{color:#9a9a9a;font-size:12px;margin-top:2px;line-height:16px}[data-v-ce9a6620] .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-ce9a6620]{transition:all .5s ease}.list-leave-to[data-v-ce9a6620]{opacity:0;transform:translate(30px)}.record-drop-before[data-v-ce9a6620]:after{content:" ";position:absolute;top:-4px;left:0;right:0;border-top:2px solid #52a770}.record-drop-after[data-v-ce9a6620]:after{content:" ";position:absolute;bottom:-4px;left:0;right:0;border-top:2px solid #52a770}.record-drop-inner[data-v-ce9a6620]{outline:2px solid #52a770}.record-list-rel[data-v-ce9a6620],.record-list-uploading[data-v-ce9a6620]{position:absolute;right:20px;top:20px}@keyframes rotate-ce9a6620{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.dragging-image{max-width:300px;opacity:.5}.dragging-image .record-list-item-content,.dragging-image .record-list-item-des{display:none!important}.explorer-list[data-v-6086d66c]{width:100%;height:100%;position:relative;border-right:1px solid rgba(0,0,0,.08)}.explorer-list-main[data-v-6086d66c]{position:relative;height:100%}.explorer-list-wrap[data-v-6086d66c]{padding:8px;overflow-y:auto;height:100%}.explorer-list-item[data-v-6086d66c]{padding:6px 8px 6px 32px;border-radius:6px;margin-bottom:2px;position:relative;cursor:default;background:transparent;transition:background-color .15s ease}.explorer-list-item[data-v-6086d66c]:hover{background:#0000000a}.explorer-list-item-active[data-v-6086d66c]{background-color:#fff;box-shadow:0 1px 3px #0000001a}.explorer-list-item-active .explorer-list-item-title[data-v-6086d66c]{color:#16a34a}.explorer-list-item-active .explorer-list-item-icon[data-v-6086d66c] svg{fill:#16a34a!important}.explorer-list-item-active[data-v-6086d66c]:hover{background:#fff}.explorer-list-item-icon[data-v-6086d66c]{position:absolute;left:8px;top:12px;width:14px;height:14px}.explorer-list-item-tag[data-v-6086d66c]{display:block;border-radius:9999px;width:12px;height:12px}.explorer-list-item-title[data-v-6086d66c]{font-weight:700;font-size:18px;line-height:28px;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;user-select:none}.explorer-list-item-title p[data-v-6086d66c]{display:inline;word-break:break-all}.explorer-list-context-menu[data-v-6086d66c]{padding:8px;background:#fff;z-index:19;box-shadow:0 2px 4px #00000080;border-radius:4px}.explorer-list-context-menu li[data-v-6086d66c]{font-size:14px;line-height:20px;padding:8px 16px;border-radius:4px;cursor:pointer;margin-inline-start:0px}.explorer-list-context-menu li[data-v-6086d66c]:hover{background:#d8d8d8}.explorer-drop-before[data-v-6086d66c]:after{content:" ";position:absolute;top:-4px;left:0;right:0;border-top:2px solid #52a770}.explorer-drop-after[data-v-6086d66c]:after{content:" ";position:absolute;bottom:-4px;left:0;right:0;border-top:2px solid #52a770}.explorer-drop-inner[data-v-6086d66c]{outline:2px solid #52a770}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
import { openBlock as i, createElementBlock as u, normalizeClass as q, renderSlot as K2, createElementVNode as v, normalizeStyle as D, unref as s, Fragment as X, renderList as h2, createVNode as T, reactive as Q2, ref as _, computed as V, getCurrentInstance as b2, watch as P, onMounted as B2, onUnmounted as N2, withDirectives as b, withKeys as ee, vModelText as te, vShow as B, createBlock as Z, withCtx as A, createCommentVNode as k, createTextVNode as E2, withModifiers as C, TransitionGroup as le, mergeProps as ae, toHandlers as re, toDisplayString as V2, nextTick as p2, pushScopeId as oe, popScopeId as se } from "vue";
import ne from "dayjs";
import E from "vue-inline-svg";
import M2 from "dompurify";
import { createPopper as G2 } from "@popperjs/core";
import { getTagStyle as ie, detectDeviceType as ce, isTodoTag as r2, getExt as H, getTagStyleById as P2, getTag as I2 } from "@codernote/utils";
const j = (o, L) => {
const m = o.__vccOpts || o;
for (const [c, g] of L)
m[c] = g;
return m;
}, de = {
__name: "icon-button",

@@ -21,13 +21,13 @@ props: {

},
setup(r) {
return (D, h) => (i(), d("button", {
class: M([
setup(o) {
return (L, m) => (i(), u("button", {
class: q([
"record-list-icon-button",
r.active ? "record-list-icon-button-active" : ""
o.active ? "record-list-icon-button-active" : ""
])
}, [
F2(D.$slots, "default", {}, void 0, !0)
K2(L.$slots, "default", {}, void 0, !0)
], 2));
}
}, P = /* @__PURE__ */ H(g0, [["__scopeId", "data-v-8d9b1230"]]), v0 = {
}, W = /* @__PURE__ */ j(de, [["__scopeId", "data-v-8d9b1230"]]), ue = {
__name: "tag",

@@ -44,12 +44,12 @@ props: {

},
setup(r) {
return (D, h) => (i(), d("div", {
class: M(["record-list-tag", { "record-list-tag-active": r.active }])
setup(o) {
return (L, m) => (i(), u("div", {
class: q(["record-list-tag", { "record-list-tag-active": o.active }])
}, [
u("button", {
style: w(o(c0)(r.tag))
v("button", {
style: D(s(ie)(o.tag))
}, null, 4)
], 2));
}
}, h0 = /* @__PURE__ */ H(v0, [["__scopeId", "data-v-5dc25025"]]), p0 = { class: "record-list-select-multiple-tag" }, f0 = {
}, ge = /* @__PURE__ */ j(ue, [["__scopeId", "data-v-5dc25025"]]), ve = { class: "record-list-select-multiple-tag" }, pe = {
__name: "select-multiple-tag",

@@ -71,15 +71,15 @@ props: {

emits: ["change"],
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);
setup(o, { emit: L }) {
const m = L, c = o, g = (d) => d.filter((l) => l.name != ""), N = (d) => {
const l = [...c.value], x = c.value.indexOf(d.created_at);
x === -1 ? l.push(d.created_at) : l.splice(x, 1), m("change", l);
};
return (g, l) => (i(), d("div", p0, [
(i(!0), d(y2, null, D2(s(r.tags), (f) => (i(), d("div", {
key: f.id
return (d, l) => (i(), u("div", ve, [
(i(!0), u(X, null, h2(g(o.tags), (x) => (i(), u("div", {
key: x.id
}, [
p(o(h0), {
tag: f,
onClick: (A) => E(f),
active: r.value.includes(f.created_at)
T(s(ge), {
tag: x,
onClick: (I) => N(x),
active: o.value.includes(x.created_at)
}, null, 8, ["tag", "onClick", "active"])

@@ -89,82 +89,79 @@ ]))), 128))

}
}, 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,
}, he = /* @__PURE__ */ j(pe, [["__scopeId", "data-v-f588325c"]]), fe = "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", me = "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", we = "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", Ce = "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", xe = "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", De = "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", _e = "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", ye = "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", Te = "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", ke = "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", Le = "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", Se = "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", be = "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", Ee = "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='1726194592848'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='10328'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M911.989715%20217.145632q16.017142%2016.017142%2027.426612%2043.443754t11.409471%2050.318692l0%20658.238697q0%2022.818942-16.017142%2038.836083t-38.836083%2016.017142l-767.945147%200q-22.818942%200-38.836083-16.017142t-16.017142-38.836083l0-914.220413q0-22.818942%2016.017142-38.836083t38.836083-16.017142l511.963431%200q22.818942%200%2050.318692%2011.409471t43.443754%2027.426612zM658.275266%2077.672166l0%20214.805228%20214.805228%200q-5.704735-16.602243-12.579673-23.404043l-178.821513-178.821513q-6.874938-6.874938-23.404043-12.579673zM877.688165%20950.789229l0-585.101064-237.697307%200q-22.818942%200-38.836083-16.017142t-16.017142-38.836083l0-237.697307-438.825798%200%200%20877.651596%20731.37633%200z'%20fill='%23444444'%20p-id='10329'%3e%3c/path%3e%3c/svg%3e", S = {
asc: fe,
desc: me,
search: we,
delect: Ce,
filter: xe,
trash: De,
visible: _e,
delete: ye,
todo: Te,
relate: ke,
folder: Le,
folderOpen: Se,
uploading: be,
file: Ee
};
function K(r) {
return window.location.protocol === "https:" && /^http:/.test(r) ? r.replace(/^http:/, "https:") : r;
function v2(o) {
return window.location.protocol === "https:" && /^http:/.test(o) ? o.replace(/^http:/, "https:") : o;
}
function x2(r) {
if (typeof r == "string" || typeof r == "number")
return r;
switch (r.type) {
function o2(o) {
if (typeof o == "string" || typeof o == "number")
return o;
switch (o.type) {
case "image":
return `<img style="width:80px;height: auto;" src="${K(
r.content
return `<img style="width:80px;height: auto;" src="${v2(
o.content
)}" />`;
case "video":
return `<video style="width:200px;height: auto;object-fit: cover;background-color: #000;" src="${K(
r.content
return `<video style="width:200px;height: auto;object-fit: cover;background-color: #000;" src="${v2(
o.content
)}" />`;
case "audio":
return `<audio width="300" controls src="${K(r.content)}" />`;
return `<audio width="300" controls src="${v2(o.content)}" />`;
case "file":
return `文件: ${r.name}`;
return `文件: ${o.name}`;
default:
return r.text || " ";
return o.text || " ";
}
}
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";
function q2(o, L = !1) {
const c = o.target.getBoundingClientRect(), g = o.clientY;
if (L) {
const N = c.height / 3, d = 2 * N;
return g < c.top + N ? "before" : g > c.top + d ? "after" : "inner";
} else
return s < n.top + n.height / 2 ? "before" : "after";
return g < c.top + c.height / 2 ? "before" : "after";
}
const C = Z2({
const f = Q2({
dragging: !1,
dropId: null,
dropPosition: ""
}), T2 = (r) => (r0("data-v-aa1af844"), r = r(), o0(), r), M0 = {
}), Y2 = (o) => (oe("data-v-ce9a6620"), o = o(), se(), o), Ve = {
key: 0,
class: "record-list-bar"
}, B0 = { class: "record-list-bar-search" }, G0 = {
}, Ie = { class: "record-list-bar-search" }, Be = {
key: 1,
class: "record-list-sort"
}, 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", {
}, Ne = { class: "record-list-sort-tags" }, Me = { class: "record-list-sort-box" }, Ge = { class: "record-list-sort-arrow" }, Pe = { class: "record-list-sort-arrow" }, qe = /* @__PURE__ */ Y2(() => /* @__PURE__ */ v("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)), O0 = [
z0
], H0 = {
key: 2,
}, null, -1)), Ye = [
qe
], ze = {
key: 1,
class: "record-list-empty"
}, A0 = ["draggable", "onDragstart", "onDragover"], $0 = {
}, Oe = ["draggable", "onDragstart", "onDragover"], Ae = {
key: 0,
class: "record-list-item-tag-wrap"
}, U0 = {
key: 1,
class: "record-list-item-tag-wrap"
}, W0 = ["onClick"], X0 = ["innerHTML"], R0 = ["innerHTML"], F0 = /* @__PURE__ */ T2(() => /* @__PURE__ */ u("path", {
}, He = ["onClick"], $e = ["innerHTML"], Ue = ["innerHTML"], Fe = /* @__PURE__ */ Y2(() => /* @__PURE__ */ v("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)), Z0 = [
F0
], j0 = {
}, null, -1)), Re = [
Fe
], We = {
__name: "record-list",
props: {
//展示模式
// 展示模式: normal | simple
mode: {

@@ -174,3 +171,3 @@ type: String,

},
//选中的记录
// 选中的记录
activeNote: {

@@ -254,9 +251,7 @@ type: Object,

"removeNote",
"drop",
"addFolder",
"rename"
"drop"
],
setup(r, { emit: D }) {
let h = null;
const n = D, s = r, E = x(0), g = x(null), l = x({
setup(o, { emit: L }) {
let m = null;
const c = L, g = o, N = _(0), d = _(null), l = _({
trash: !1,

@@ -268,35 +263,35 @@ sort: 1,

noteName: ""
}), f = x(!1), A = x(null), $ = x(null), N = x(null), V = x(!0), _2 = x(null), v = x({
}), x = _(!1), I = _(null), $ = _(null), U = _(null), M = _(!0), s2 = _(null), w = _({
datetime: !1,
tagsShow: !1,
tag: !1
}), 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();
}), Y = ce() === "mobile", z = V(() => !l.value.trash && g.draggable && !x.value), J = V(() => M.value && g.mode !== "simple"), K = V(() => M.value && g.mode !== "simple"), Q = V(() => {
const e = b2();
if (!e || e.vnode.props && e.vnode.props.onGetList)
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) || Z && k.title.indexOf(Z) < 0 && k.content.indexOf(Z) < 0 ? !1 : a ? !!k.deleted_at : !k.deleted_at;
return [...g.noteList];
const { tagIds: t, trash: a, sortType: h, sort: d2, noteName: u2 } = l.value, g2 = g.noteList.filter((G) => {
const l2 = G.tag_id;
return t != null && t.length && !t.includes(l2) || u2 && G.title.indexOf(u2) < 0 && G.content.indexOf(u2) < 0 ? !1 : a ? !!G.deleted_at : !G.deleted_at;
});
return l.value.sort === 0 || j.sort((k, q) => {
const z = F === 1 ? "created_at" : "updated_at";
return c === "ASC" ? k[z] > q[z] ? 1 : -1 : k[z] > q[z] ? -1 : 1;
}), j;
}), 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(() => {
return l.value.sort === 0 || g2.sort((G, l2) => {
const a2 = d2 === 1 ? "created_at" : "updated_at";
return h === "ASC" ? G[a2] > l2[a2] ? 1 : -1 : G[a2] > l2[a2] ? -1 : 1;
}), g2;
}), e2 = V(() => g.tags.filter(r2).map((e) => e.created_at)), t2 = V(() => l.value.trash ? Q.value : Q.value.filter((e) => {
const t = e2.value.includes(e.tag_id), a = t && H(e).finished;
return x.value ? a : !t || !a;
})), O = _(!1), n2 = V(() => O.value ? "list" : "disabled"), i2 = V(() => {
const e = {
"padding-top": "5rem"
};
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);
return g.mode === "simple" ? (e["padding-top"] = "6px", e) : (w.value.tagsShow && (e["padding-top"] = `calc(4rem + ${N.value + 20}px)`), e);
});
I(
() => s.filters,
P(
() => g.filters,
() => {
var e;
(e = s.filters) != null && e.todo && (l.value.tagIds = [
(e = g.filters) != null && e.todo && (l.value.tagIds = [
// 防止空数组查询全部
"__TODO__",
...(s.tags || []).filter(O).map((t) => t.created_at)
...(g.tags || []).filter(r2).map((t) => t.created_at)
]);

@@ -307,47 +302,47 @@ },

}
), I(
() => s.activeNote,
), P(
() => g.activeNote,
(e) => {
N.value = e == null ? void 0 : e.created_at;
U.value = e == null ? void 0 : e.created_at;
},
{ immediate: !0 }
), I(
() => s.expand,
), P(
() => g.expand,
(e) => {
V.value = e;
M.value = e;
},
{ immediate: !0 }
), I(
() => s.datetimeVisible,
), P(
() => g.datetimeVisible,
(e) => {
v.value.datetime = e;
w.value.datetime = e;
},
{ immediate: !0 }
), I(
() => s.tagsShowVisible,
), P(
() => g.tagsShowVisible,
(e) => {
v.value.tagsShow = e, e && u2();
w.value.tagsShow = e, e && y2();
},
{ immediate: !0 }
), I(
() => s.tagVisible,
), P(
() => g.tagVisible,
(e) => {
v.value.tag = e;
w.value.tag = e;
},
{ immediate: !0 }
), I(
() => s.sortType,
), P(
() => g.sortType,
() => {
l.value.sort = +s.sort, l.value.sortType = s.sortType || "DESC", l.value.page = 1, n("getList", l.value);
l.value.sort = +g.sort, l.value.sortType = g.sortType || "DESC", l.value.page = 1, c("getList", l.value);
},
{ immediate: !0 }
), j2(() => {
document.addEventListener("click", i2);
}), J2(() => {
document.removeEventListener("click", i2);
), B2(() => {
document.addEventListener("click", C2);
}), N2(() => {
document.removeEventListener("click", C2);
});
function t2(e) {
return s0(e).format("YYYY年MM月DD日 HH:mm:ss");
function F(e) {
return ne(e).format("YYYY年MM月DD日 HH:mm:ss");
}
function l2(e) {
function R(e) {
let t = (e || "").replace("closeIcon", "").replace("contenteditable", "temp");

@@ -359,23 +354,23 @@ try {

if (Array.isArray(t)) {
let a = t.find((c) => c.text || c.type && !c.pending);
return a ? x2(a) : "";
let a = t.find((h) => h.text || h.type && !h.pending);
return a ? o2(a) : "";
} else
return typeof t != "string" ? x2(t) : i0.sanitize(e);
return typeof t != "string" ? o2(t) : M2.sanitize(e);
}
function V2(e) {
const t = C2(e.tag_id, s.tags), a = G(e);
return O(t) && a.finished ? {
function r(e) {
const t = I2(e.tag_id, g.tags), a = H(e);
return r2(t) && a.finished ? {
"record-list-item-title-finished": !0
} : {};
}
function a2() {
const e = !V.value;
V.value = e, n("toggle", e);
function n() {
const e = !M.value;
M.value = e, c("toggle", e);
}
function I2(e) {
clearTimeout(h), h = null;
function p(e) {
clearTimeout(m), m = null;
const t = e.currentTarget;
t.scrollHeight - t.scrollTop - t.clientHeight <= 50 && (l.value.page += 1, n("changePage", l.value));
t.scrollHeight - t.scrollTop - t.clientHeight <= 50 && (l.value.page += 1, c("changePage", l.value));
}
function M2(e) {
function y(e) {
const t = {

@@ -387,41 +382,41 @@ touchStartX: 0,

}, a = () => {
h !== null && (clearTimeout(h), h = null);
m !== null && (clearTimeout(m), m = null);
};
return U ? {
click: () => o2(e),
touchstart: (c) => {
t.touchStartX = c.touches[0].clientX, t.touchStartY = c.touches[0].clientY, h === null && (h = setTimeout(() => {
s2(c, e);
return Y ? {
click: () => m2(e),
touchstart: (h) => {
t.touchStartX = h.touches[0].clientX, t.touchStartY = h.touches[0].clientY, m === null && (m = setTimeout(() => {
w2(h, e);
}, 500));
},
touchmove: (c) => {
a(), t.touchEndX = c.touches[0].clientX, t.touchEndY = c.touches[0].clientY;
touchmove: (h) => {
a(), t.touchEndX = h.touches[0].clientX, t.touchEndY = h.touches[0].clientY;
},
touchend: () => {
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);
const h = t.touchEndX - t.touchStartX, d2 = t.touchEndY - t.touchStartY;
Math.abs(h) > Math.abs(d2) && Math.abs(h) > 50 && f2(e, h > 0);
}
} : {
click: () => o2(e),
contextmenu: (c) => s2(c, e)
click: () => m2(e),
contextmenu: (h) => w2(h, e)
};
}
function B2(e) {
if (!U) {
const t = G(e);
r2(e, !t.finished);
function z2(e) {
if (!Y) {
const t = H(e);
f2(e, !t.finished);
}
}
function r2(e, t) {
if (R(e))
function f2(e, t) {
if (c2(e))
return;
const a = C2(e.tag_id, s.tags);
if (O(a)) {
g2();
const c = G(e);
n("changeNote", {
const a = I2(e.tag_id, g.tags);
if (r2(a)) {
T2();
const h = H(e);
c("changeNote", {
...e,
ext: JSON.stringify({
...c,
...h,
finished: t

@@ -433,20 +428,20 @@ }),

}
function o2(e) {
g.value || (N.value = e.created_at, e.deleted_at || n("selectNote", e));
function m2(e) {
d.value || (U.value = e.created_at, e.deleted_at || c("selectNote", e));
}
function G2() {
const e = !v.value.tagsShow;
v.value.tagsShow = e, n("changeTagsShowVisible", e), e && u2();
function O2() {
const e = !w.value.tagsShow;
w.value.tagsShow = e, c("changeTagsShowVisible", e), e && y2();
}
function P2() {
const e = !v.value.datetime;
v.value.datetime = e, n("changeDatetimeVisible", e);
function A2() {
const e = !w.value.datetime;
w.value.datetime = e, c("changeDatetimeVisible", e);
}
function N2() {
const e = !v.value.tag;
v.value.tag = e, n("changeTagVisible", e);
function H2() {
const e = !w.value.tag;
w.value.tag = e, c("changeTagVisible", e);
}
function s2(e, t) {
e.preventDefault(), g.value = t, a0(() => {
n0(
function w2(e, t) {
e.preventDefault(), d.value = t, p2(() => {
G2(
{

@@ -486,27 +481,27 @@ getBoundingClientRect() {

}
function i2(e) {
function C2(e) {
var t;
(t = $.value) != null && t.contains(e.target) || (g.value = null);
(t = $.value) != null && t.contains(e.target) || (d.value = null);
}
function n2() {
function x2() {
const e = !l.value.trash;
l.value.trash = e, l.value.page = 1, e && (f.value = !1), n("getList", l.value);
l.value.trash = e, l.value.page = 1, e && (x.value = !1), c("getList", l.value);
}
function Y2() {
f.value = !f.value, l.value.trash && n2();
function $2() {
x.value = !x.value, l.value.trash && x2();
}
function q2(e) {
l.value.noteName = e.target.value, l.value.page = 1, n("getList", l.value);
function U2(e) {
l.value.noteName = e.target.value, l.value.page = 1, c("getList", l.value);
}
function z2() {
function F2() {
var t;
l.value.noteName = "";
const e = f2();
(t = e == null ? void 0 : e.proxy) == null || t.$forceUpdate(), n("getList", l.value);
const e = b2();
(t = e == null ? void 0 : e.proxy) == null || t.$forceUpdate(), c("getList", l.value);
}
function O2(e) {
l.value.tagIds = e, l.value.page = 1, n("getList", l.value);
function R2(e) {
l.value.tagIds = e, l.value.page = 1, c("getList", l.value);
}
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", {
function D2(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, c("getList", l.value), c("changeSort", {
sort: e,

@@ -516,35 +511,31 @@ sortType: l.value.sortType

}
function d2(e = !1) {
g2(), n("removeNote", g.value, e), g.value = null;
function _2(e = !1) {
T2(), c("removeNote", d.value, e), d.value = null;
}
function H2() {
n("rename", g.value);
}
function u2() {
function y2() {
var t;
const e = (t = A.value) == null ? void 0 : t.$el;
const e = (t = I.value) == null ? void 0 : t.$el;
e && setTimeout(() => {
E.value = e.clientHeight;
N.value = e.clientHeight;
}, 200);
}
function g2() {
X.value = !0, setTimeout(() => {
X.value = !1;
function T2() {
O.value = !0, setTimeout(() => {
O.value = !1;
}, 500);
}
function v2(e, t = {}) {
if (!W.value || // 非文件夹模式下不支持拖拽文件夹
s.mode !== "explorer" && window.__DRAG_TYPE__ === "folder" || window.__DRAG_ID__ === t.created_at) {
function k2(e, t = {}) {
if (!z.value || window.__DRAG_ID__ === t.created_at) {
e.dataTransfer.dropEffect = "none";
return;
}
C.dropId = t.created_at, C.dropPosition = I0(e, t.type === "folder");
f.dropId = t.created_at, f.dropPosition = q2(e, t.type === "folder");
}
function A2(e) {
function W2(e) {
const t = e.cloneNode(!0);
return t.classList.add("dragging-image"), t.style.width = `${e.offsetWidth}px`, document.body.appendChild(t), t;
}
function $2(e, t) {
function X2(e, t) {
const a = t.type || "note";
if (window.__DRAG_TYPE__ = a, window.__DRAG_ID__ = t.created_at, e.dataTransfer.setData(
window.__DRAG_TYPE__ = a, window.__DRAG_ID__ = t.created_at, e.dataTransfer.setData(
"dragData",

@@ -556,43 +547,38 @@ JSON.stringify({

})
), s.mode !== "explorer") {
const c = A2(e.target);
e.dataTransfer.setDragImage(c, 25, 25);
}
);
const h = W2(e.target);
e.dataTransfer.setDragImage(h, 25, 25);
}
function U2() {
function Z2() {
delete window.__DRAG_TYPE__, delete window.__DRAG_ID__, document.querySelectorAll(".dragging-image").forEach((t) => t.remove());
}
function h2(e) {
W.value && (n("drop", e, {
id: C.dropId,
position: C.dropPosition
}), p2());
function L2(e) {
z.value && (c("drop", e, {
id: f.dropId,
position: f.dropPosition
}), S2());
}
function p2() {
C.dropId = null, C.dropPosition = "";
function S2() {
f.dropId = null, f.dropPosition = "";
}
function R(e) {
return !!G(e).rel;
function c2(e) {
return !!H(e).rel;
}
function W2(e) {
return !!G(e).uploading;
function j2(e) {
return !!H(e).uploading;
}
function X2(e) {
return Y.value && e.type === "folder" && e.created_at === N.value ? !1 : W.value && !R(e);
function J2(e) {
return z.value && !c2(e);
}
function R2() {
n("addFolder", g.value);
}
return (e, t) => (i(), d("div", {
class: M({
return (e, t) => (i(), u("div", {
class: q({
"record-list": !0,
"record-list-mobile": U,
"record-folder": Y.value
"record-list-mobile": Y
})
}, [
L2.value ? (i(), d("div", M0, [
u("div", B0, [
p(o(_), {
J.value ? (i(), u("div", Ve, [
v("div", Ie, [
T(s(E), {
class: "record-list-bar-search-icon",
src: o(L).search,
src: s(S).search,
width: "14",

@@ -602,16 +588,16 @@ height: "14",

}, null, 8, ["src"]),
y(u("input", {
b(v("input", {
class: "record-list-bar-search-input",
"onUpdate:modelValue": t[0] || (t[0] = (a) => l.value.noteName = a),
placeholder: "搜索",
onKeyup: K2(q2, ["enter"])
onKeyup: ee(U2, ["enter"])
}, null, 544), [
[Q2, l.value.noteName]
[te, l.value.noteName]
]),
y(u("div", {
b(v("div", {
class: "record-list-bar-search-clear",
onClick: z2
onClick: F2
}, [
p(o(_), {
src: o(L).delect,
T(s(E), {
src: s(S).delect,
width: "18",

@@ -621,33 +607,33 @@ height: "18"

], 512), [
[T, l.value.noteName]
[B, l.value.noteName]
])
]),
u("div", {
v("div", {
class: "record-list-bar-filter",
style: w({
left: r.showToggle ? "36px" : "10px"
style: D({
left: o.showToggle ? "36px" : "10px"
})
}, [
r.tags.length ? (i(), J(o(P), {
o.tags.length ? (i(), Z(s(W), {
key: 0,
slot: "reference",
active: v.value.tagsShow,
onClick: G2
active: w.value.tagsShow,
onClick: O2
}, {
default: B(() => [
p(o(_), {
default: A(() => [
T(s(E), {
class: "record-list-icon",
src: o(L).filter
src: s(S).filter
}, null, 8, ["src"])
]),
_: 1
}, 8, ["active"])) : m("", !0),
p(o(P), {
onClick: n2,
}, 8, ["active"])) : k("", !0),
T(s(W), {
onClick: x2,
active: l.value.trash
}, {
default: B(() => [
p(o(_), {
default: A(() => [
T(s(E), {
class: "record-list-icon",
src: o(L).trash
src: s(S).trash
}, null, 8, ["src"])

@@ -657,10 +643,10 @@ ]),

}, 8, ["active"]),
p(o(P), {
onClick: N2,
active: v.value.tag
T(s(W), {
onClick: H2,
active: w.value.tag
}, {
default: B(() => [
p(o(_), {
default: A(() => [
T(s(E), {
class: "record-list-icon",
src: o(L).visible
src: s(S).visible
}, null, 8, ["src"])

@@ -670,10 +656,10 @@ ]),

}, 8, ["active"]),
p(o(P), {
onClick: P2,
active: v.value.datetime
T(s(W), {
onClick: A2,
active: w.value.datetime
}, {
default: B(() => [
p(o(_), {
default: A(() => [
T(s(E), {
class: "record-list-icon",
src: o(L).delete
src: s(S).delete
}, null, 8, ["src"])

@@ -683,10 +669,10 @@ ]),

}, 8, ["active"]),
p(o(P), {
onClick: Y2,
active: f.value
T(s(W), {
onClick: $2,
active: x.value
}, {
default: B(() => [
p(o(_), {
default: A(() => [
T(s(E), {
class: "record-list-icon",
src: o(L).todo
src: s(S).todo
}, null, 8, ["src"])

@@ -697,84 +683,84 @@ ]),

], 4)
])) : m("", !0),
S2.value ? (i(), d("div", G0, [
y(u("div", P0, [
p(o(m0), {
])) : k("", !0),
K.value ? (i(), u("div", Be, [
b(v("div", Ne, [
T(s(he), {
ref_key: "multipleTag",
ref: A,
tags: r.tags,
ref: I,
tags: o.tags,
value: l.value.tagIds,
onChange: O2
onChange: R2
}, null, 8, ["tags", "value"])
], 512), [
[T, v.value.tagsShow]
[B, w.value.tagsShow]
]),
u("div", N0, [
u("div", {
class: M(["record-list-sort-item", {
v("div", Me, [
v("div", {
class: q(["record-list-sort-item", {
"record-list-sort-item-active": l.value.sort == 1
}]),
onClick: t[1] || (t[1] = (a) => c2(1)),
style: w({
onClick: t[1] || (t[1] = (a) => D2(1)),
style: D({
"margin-right": l.value.sort == 2 ? "24px" : "10px"
})
}, [
m2(" 创建时间 "),
y(u("span", Y0, [
y(u("span", {
style: w({
E2(" 创建时间 "),
b(v("span", Ge, [
b(v("span", {
style: D({
color: l.value.sort == 1 && l.value.sortType == "DESC" ? "rgba(82, 167, 112, 1)" : "#cecece"
})
}, "▼", 4), [
[T, l.value.sortType === "DESC"]
[B, l.value.sortType === "DESC"]
]),
y(u("span", {
style: w({
b(v("span", {
style: D({
color: l.value.sort == 1 && l.value.sortType == "ASC" ? "rgba(82, 167, 112, 1)" : "#cecece"
})
}, "▲", 4), [
[T, l.value.sortType === "ASC"]
[B, l.value.sortType === "ASC"]
])
], 512), [
[T, l.value.sort == 1]
[B, l.value.sort == 1]
])
], 6),
u("div", {
class: M(["record-list-sort-item", {
v("div", {
class: q(["record-list-sort-item", {
"record-list-sort-item-active": l.value.sort == 2
}]),
onClick: t[2] || (t[2] = (a) => c2(2))
onClick: t[2] || (t[2] = (a) => D2(2))
}, [
m2(" 更新时间 "),
y(u("span", q0, [
y(u("span", {
style: w({
E2(" 更新时间 "),
b(v("span", Pe, [
b(v("span", {
style: D({
color: l.value.sort == 2 && l.value.sortType == "DESC" ? "rgba(82, 167, 112, 1)" : "#cecece"
})
}, "▼", 4), [
[T, l.value.sortType == "DESC"]
[B, l.value.sortType == "DESC"]
]),
y(u("span", {
style: w({
b(v("span", {
style: D({
color: l.value.sort == 2 && l.value.sortType == "ASC" ? "rgba(82, 167, 112, 1)" : "#cecece"
})
}, "▲", 4), [
[T, l.value.sortType == "ASC"]
[B, l.value.sortType == "ASC"]
])
], 512), [
[T, l.value.sort == 2]
[B, l.value.sort == 2]
])
], 2)
])
])) : m("", !0),
V.value ? (i(), d("div", {
])) : k("", !0),
M.value ? (i(), u("div", {
key: 2,
class: "record-list-main",
style: w({ background: r.bgColor })
style: D({ background: o.bgColor })
}, [
r.showToggle ? (i(), d("button", {
o.showToggle ? (i(), u("button", {
key: 0,
class: "record-list-closer",
onClick: a2
onClick: n
}, [
(i(), d("svg", {
(i(), u("svg", {
xmlns: "http://www.w3.org/2000/svg",

@@ -784,114 +770,101 @@ width: "14",

fill: "currentColor",
style: w({
style: D({
transform: "rotate(-90deg)"
}),
viewBox: "0 0 16 16"
}, O0, 4))
])) : m("", !0),
Y.value ? (i(), d("div", {
key: 1,
class: "record-list-explorer-add",
onClick: R2
}, " + ")) : m("", !0),
!e2.value.length && r.mode !== "explorer" ? (i(), d("div", H0, " 0条符合条件的记录 ")) : (i(), d("div", {
key: 3,
}, Ye, 4))
])) : k("", !0),
t2.value.length ? (i(), u("div", {
key: 2,
ref_key: "noteList",
ref: _2,
style: w(E2.value),
ref: s2,
style: D(i2.value),
class: "record-list-wrap",
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"]))
onScroll: p,
onDragover: t[4] || (t[4] = C((a) => k2(a), ["stop", "prevent"])),
onDragleave: C(S2, ["stop", "prevent"]),
onDrop: t[5] || (t[5] = C((a) => L2(a), ["stop", "prevent"]))
}, [
p(e0, {
name: b2.value,
T(le, {
name: n2.value,
tag: "div"
}, {
default: B(() => [
(i(!0), d(y2, null, D2(e2.value, (a) => (i(), d("div", t0({
default: A(() => [
(i(!0), u(X, null, h2(t2.value, (a) => (i(), u("div", ae({
key: a.created_at,
class: ["record-list-item", {
"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"
"record-list-item-active": a.created_at === U.value,
"record-drop-before": s(f).dropId === a.created_at && s(f).dropPosition === "before",
"record-drop-after": s(f).dropId === a.created_at && s(f).dropPosition === "after",
"record-drop-inner": s(f).dropId === a.created_at && s(f).dropPosition === "inner"
}]
}, 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"]))
}, re(y(a), !0), {
draggable: J2(a),
onDragstart: C((h) => X2(h, a), ["stop"]),
onDragend: C(Z2, ["stop"]),
onDragover: C((h) => k2(h, a), ["stop", "prevent"]),
onDrop: t[3] || (t[3] = C((h) => L2(h), ["stop", "prevent"]))
}), [
a.type === "folder" ? (i(), d("div", $0, [
p(o(_), {
w.value.tag ? (i(), u("div", Ae, [
v("span", {
class: "record-list-item-tag",
src: o(L).folder,
width: "14",
height: "14",
fill: "#9E9E9E"
}, null, 8, ["src"])
])) : v.value.tag ? (i(), d("div", U0, [
u("span", {
class: "record-list-item-tag",
style: w(o(u0)(a.tag_id, r.tags, a)),
onClick: b((c) => B2(a), ["stop"])
}, null, 12, W0)
])) : m("", !0),
u("h3", {
class: M(["record-list-item-title", {
style: D(s(P2)(a.tag_id, o.tags, a)),
onClick: C((h) => z2(a), ["stop"])
}, null, 12, He)
])) : k("", !0),
v("h3", {
class: q(["record-list-item-title", {
"record-list-item-title-trash": l.value.trash,
...V2(a)
...r(a)
}]),
innerHTML: l2(a.title)
}, null, 10, X0),
a.type ? m("", !0) : (i(), d("p", {
key: 2,
class: M(["record-list-item-content", {
innerHTML: R(a.title)
}, null, 10, $e),
a.type ? k("", !0) : (i(), u("p", {
key: 1,
class: q(["record-list-item-content", {
"record-list-item-title-trash": l.value.trash
}]),
innerHTML: l2(a.content)
}, null, 10, R0)),
v.value.datetime ? y((i(), d("p", {
innerHTML: R(a.content)
}, null, 10, Ue)),
w.value.datetime ? b((i(), u("p", {
key: 2,
style: D({ color: l.value.trash ? "#777777" : "" }),
class: "record-list-item-des"
}, V2(F(a.created_at)) + "创建 ", 5)), [
[B, l.value.sort == 1]
]) : k("", !0),
w.value.datetime ? b((i(), u("p", {
key: 3,
style: w({ color: l.value.trash ? "#777777" : "" }),
style: D({ color: l.value.trash ? "#777777" : "" }),
class: "record-list-item-des"
}, w2(t2(a.created_at)) + "创建 ", 5)), [
[T, l.value.sort == 1]
]) : m("", !0),
v.value.datetime ? y((i(), d("p", {
}, V2(F(a.updated_at)) + "更新 ", 5)), [
[B, l.value.sort == 2]
]) : k("", !0),
j2(a) ? (i(), Z(s(E), {
key: 4,
style: w({ color: l.value.trash ? "#777777" : "" }),
class: "record-list-item-des"
}, w2(t2(a.updated_at)) + "更新 ", 5)), [
[T, l.value.sort == 2]
]) : m("", !0),
W2(a) ? (i(), J(o(_), {
key: 5,
class: "record-list-uploading",
src: o(L).uploading,
src: s(S).uploading,
width: "14",
height: "14",
fill: "#52A770"
}, null, 8, ["src"])) : R(a) ? (i(), J(o(_), {
key: 6,
}, null, 8, ["src"])) : c2(a) ? (i(), Z(s(E), {
key: 5,
class: "record-list-rel",
src: o(L).relate,
src: s(S).relate,
width: "14",
height: "14",
fill: "#9E9E9E"
}, null, 8, ["src"])) : m("", !0)
], 16, A0))), 128))
}, null, 8, ["src"])) : k("", !0)
], 16, Oe))), 128))
]),
_: 1
}, 8, ["name"])
], 36))
], 4)) : m("", !0),
!V.value && r.showToggle ? (i(), d("button", {
], 36)) : (i(), u("div", ze, " 0条符合条件的记录 "))
], 4)) : k("", !0),
!M.value && o.showToggle ? (i(), u("button", {
key: 3,
class: "record-list-opener",
onClick: a2
onClick: n
}, [
(i(), d("svg", {
(i(), u("svg", {
xmlns: "http://www.w3.org/2000/svg",

@@ -901,9 +874,9 @@ width: "14",

fill: "currentColor",
style: w({
style: D({
transform: "rotate(90deg)"
}),
viewBox: "0 0 16 16"
}, Z0, 4))
])) : m("", !0),
g.value ? (i(), d("div", {
}, Re, 4))
])) : k("", !0),
d.value ? (i(), u("div", {
key: 4,

@@ -914,21 +887,285 @@ ref_key: "contentMenu",

}, [
u("ul", null, [
g.value.type === "folder" ? (i(), d("li", {
v("ul", null, [
l.value.trash ? (i(), u("li", {
key: 0,
onClick: H2
}, " 重命名 ")) : m("", !0),
l.value.trash ? (i(), d("li", {
onClick: t[6] || (t[6] = (a) => _2(!0))
}, "彻底删除")) : (i(), u("li", {
key: 1,
onClick: t[6] || (t[6] = (a) => d2(!0))
}, "彻底删除")) : (i(), d("li", {
key: 2,
onClick: t[7] || (t[7] = (a) => d2(!1))
onClick: t[7] || (t[7] = (a) => _2(!1))
}, "删除"))
])
], 512)) : m("", !0)
], 512)) : k("", !0)
], 2));
}
}, ae = /* @__PURE__ */ H(j0, [["__scopeId", "data-v-aa1af844"]]);
}, o0 = /* @__PURE__ */ j(We, [["__scopeId", "data-v-ce9a6620"]]), Xe = { class: "explorer-list" }, Ze = ["onClick", "onContextmenu", "draggable", "onDragstart", "onDragover"], je = { class: "explorer-list-item-icon" }, Je = ["innerHTML"], Ke = {
__name: "explorer-list",
props: {
// 选中的记录
activeNote: {
type: Object,
default: () => ({})
},
// 记录列表
noteList: {
type: Array,
default: () => []
},
// 标签列表
tags: {
type: Array,
default: () => []
},
// 是否支持拖拽
draggable: {
type: Boolean,
default: !0
},
// 层级索引,用于计算渐变背景色
level: {
type: Number,
default: 0
},
// 层级颜色序列(简洁灰色调循环,8级)
levelColors: {
type: Array,
default: () => [
"#F7F7F7",
// 1级 - 最浅
"#F0F0F0",
// 2级
"#E9E9E9",
// 3级
"#E2E2E2",
// 4级
"#DBDBDB",
// 5级
"#D4D4D4",
// 6级
"#CDCDCD",
// 7级
"#C6C6C6"
// 8级 - 最深
]
}
},
emits: [
"selectNote",
"removeNote",
"drop",
"addFolder",
"addNote",
"rename"
],
setup(o, { emit: L }) {
const m = L, c = o, g = V(() => {
const r = c.levelColors;
return r[c.level % r.length];
}), N = V(() => {
const r = c.levelColors;
return r[(c.level + 1) % r.length];
}), d = _(null), l = _(null), x = _(null), I = _(null), $ = V(() => g.value);
P(
() => c.activeNote,
(r) => {
I.value = r == null ? void 0 : r.created_at;
},
{ immediate: !0 }
), B2(() => {
document.addEventListener("click", z);
}), N2(() => {
document.removeEventListener("click", z);
});
function U(r) {
let n = (r || "").replace("closeIcon", "").replace("contenteditable", "temp");
try {
n = JSON.parse(n);
} catch {
}
if (Array.isArray(n)) {
let p = n.find((y) => y.text || y.type && !y.pending);
return p ? o2(p) : "";
} else
return typeof n != "string" ? o2(n) : M2.sanitize(r);
}
function M(r) {
!d.value && !r.deleted_at && (I.value = r.created_at, m("selectNote", r));
}
function s2(r, n) {
r.preventDefault(), n.deleted_at || (I.value = n.created_at, m("selectNote", n)), d.value = n, p2(() => {
Y(r.clientX, r.clientY);
});
}
function w(r) {
r.preventDefault(), d.value = { _isBlank: !0 }, p2(() => {
Y(r.clientX, r.clientY);
});
}
function Y(r, n) {
G2(
{
getBoundingClientRect() {
return {
width: 0,
height: 0,
top: n,
right: r,
bottom: n,
left: r
};
}
},
l.value,
{
placement: "right-start",
modifiers: [
{
name: "offset",
options: {
offset: [2, 2]
}
}
]
}
);
}
function z(r) {
var n;
(n = l.value) != null && n.contains(r.target) || (d.value = null);
}
function J() {
var n;
const r = (n = d.value) != null && n._isBlank ? null : d.value;
m("addFolder", r), d.value = null;
}
function K() {
var n;
const r = (n = d.value) != null && n._isBlank ? null : d.value;
m("addNote", r), d.value = null;
}
function Q() {
m("rename", d.value), d.value = null;
}
function e2() {
m("removeNote", d.value), d.value = null;
}
function t2(r) {
return r.type === "folder" && r.created_at === I.value ? !1 : c.draggable;
}
function O(r, n = {}) {
if (!c.draggable || window.__DRAG_ID__ === n.created_at) {
r.dataTransfer.dropEffect = "none";
return;
}
f.dropId = n.created_at, f.dropPosition = q2(r, n.type === "folder");
}
function n2(r, n) {
const p = n.type || "note";
window.__DRAG_TYPE__ = p, window.__DRAG_ID__ = n.created_at, r.dataTransfer.setData(
"dragData",
JSON.stringify({
type: p,
data: n,
action: r.altKey ? "rel" : "move"
})
);
}
function i2() {
delete window.__DRAG_TYPE__, delete window.__DRAG_ID__;
}
function F(r) {
c.draggable && (m("drop", r, {
id: f.dropId,
position: f.dropPosition
}), R());
}
function R() {
f.dropId = null, f.dropPosition = "";
}
return (r, n) => (i(), u("div", Xe, [
v("div", {
class: "explorer-list-main",
style: D({
background: g.value,
"--item-bg-color": $.value,
"--active-bg-color": N.value
})
}, [
v("div", {
ref_key: "listWrap",
ref: x,
class: "explorer-list-wrap",
onDragover: n[1] || (n[1] = C((p) => O(p), ["stop", "prevent"])),
onDragleave: C(R, ["stop", "prevent"]),
onDrop: n[2] || (n[2] = C((p) => F(p), ["stop", "prevent"])),
onContextmenu: C(w, ["self"])
}, [
(i(!0), u(X, null, h2(o.noteList, (p) => (i(), u("div", {
key: p.created_at,
class: q(["explorer-list-item", {
"explorer-list-item-active": p.created_at === I.value,
"explorer-drop-before": s(f).dropId === p.created_at && s(f).dropPosition === "before",
"explorer-drop-after": s(f).dropId === p.created_at && s(f).dropPosition === "after",
"explorer-drop-inner": s(f).dropId === p.created_at && s(f).dropPosition === "inner"
}]),
onClick: (y) => M(p),
onContextmenu: C((y) => s2(y, p), ["stop"]),
draggable: t2(p),
onDragstart: C((y) => n2(y, p), ["stop"]),
onDragend: C(i2, ["stop"]),
onDragover: C((y) => O(y, p), ["stop", "prevent"]),
onDrop: n[0] || (n[0] = C((y) => F(y), ["stop", "prevent"]))
}, [
v("div", je, [
p.type === "folder" ? (i(), Z(s(E), {
key: 0,
src: p.created_at === I.value ? s(S).folderOpen : s(S).folder,
width: "14",
height: "14",
fill: "#9E9E9E"
}, null, 8, ["src"])) : p.tag_id ? (i(), u("div", {
key: 1,
class: "explorer-list-item-tag",
style: D(s(P2)(p.tag_id, o.tags, p))
}, null, 4)) : (i(), Z(s(E), {
key: 2,
src: s(S).file,
width: "14",
height: "14",
fill: "#9E9E9E"
}, null, 8, ["src"]))
]),
v("h3", {
class: "explorer-list-item-title",
innerHTML: U(p.title)
}, null, 8, Je)
], 42, Ze))), 128))
], 544)
], 4),
d.value ? (i(), u("div", {
key: 0,
ref_key: "contentMenu",
ref: l,
class: "explorer-list-context-menu"
}, [
v("ul", null, [
d.value._isBlank ? (i(), u(X, { key: 0 }, [
v("li", { onClick: K }, "新建笔记"),
v("li", { onClick: J }, "新建文件夹")
], 64)) : d.value.type === "folder" ? (i(), u(X, { key: 1 }, [
v("li", { onClick: K }, "新建笔记"),
v("li", { onClick: J }, "新建文件夹"),
v("li", { onClick: Q }, "重命名"),
v("li", { onClick: e2 }, "删除")
], 64)) : (i(), u("li", {
key: 2,
onClick: e2
}, "删除"))
])
], 512)) : k("", !0)
]));
}
}, s0 = /* @__PURE__ */ j(Ke, [["__scopeId", "data-v-6086d66c"]]);
export {
ae as RecordList
s0 as ExplorerList,
o0 as RecordList
};
{
"name": "@codernote/record-list",
"version": "2.6.8",
"version": "3.0.0",
"type": "module",

@@ -5,0 +5,0 @@ "main": "dist/index.js",