deepsky 1.123.10 → 1.123.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +17 -20
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -4259,7 +4259,7 @@ img[data-v-9faeeffa] {
|
|
|
4259
4259
|
}
|
|
4260
4260
|
|
|
4261
4261
|
|
|
4262
|
-
.note-statusbar[data-v-
|
|
4262
|
+
.note-statusbar[data-v-c543f13e] {
|
|
4263
4263
|
flex-shrink: 0;
|
|
4264
4264
|
transition:
|
|
4265
4265
|
transform var(--transition-base, 0.24s),
|
|
@@ -4270,7 +4270,7 @@ img[data-v-9faeeffa] {
|
|
|
4270
4270
|
font-size: var(--statusbar-font-size, 12px);
|
|
4271
4271
|
}
|
|
4272
4272
|
.statusbar-shell {
|
|
4273
|
-
&[data-v-
|
|
4273
|
+
&[data-v-c543f13e] {
|
|
4274
4274
|
min-height: var(--statusbar-height, 32px);
|
|
4275
4275
|
font-size: var(--statusbar-font-size, 12px);
|
|
4276
4276
|
display: flex;
|
|
@@ -4282,26 +4282,24 @@ img[data-v-9faeeffa] {
|
|
|
4282
4282
|
pointer-events: auto;
|
|
4283
4283
|
overflow: hidden;
|
|
4284
4284
|
position: relative;
|
|
4285
|
-
border-top: var(--statusbar-border-top, 1px solid rgba(255, 255, 255, 0.3));
|
|
4286
|
-
box-shadow: var(--statusbar-shadow);
|
|
4287
4285
|
}
|
|
4288
|
-
&[data-v-
|
|
4286
|
+
&[data-v-c543f13e] > * {
|
|
4289
4287
|
position: relative;
|
|
4290
4288
|
z-index: 1;
|
|
4291
4289
|
}
|
|
4292
|
-
.notsave[data-v-
|
|
4290
|
+
.notsave[data-v-c543f13e] {
|
|
4293
4291
|
background: var(--statusbar-item-not-save-bg);
|
|
4294
4292
|
color: var(--statusbar-item-not-save-color);
|
|
4295
4293
|
box-shadow: var(--statusbar-item-not-save-shadow);
|
|
4296
4294
|
}
|
|
4297
|
-
.mode-reading[data-v-
|
|
4295
|
+
.mode-reading[data-v-c543f13e] {
|
|
4298
4296
|
background: var(--statusbar-item-reading-mode-bg);
|
|
4299
4297
|
color: var(--statusbar-item-reading-mode-color);
|
|
4300
4298
|
box-shadow: var(--statusbar-item-reading-mode-shadow);
|
|
4301
4299
|
}
|
|
4302
4300
|
}
|
|
4303
4301
|
.statusbar-docid {
|
|
4304
|
-
&[data-v-
|
|
4302
|
+
&[data-v-c543f13e] {
|
|
4305
4303
|
display: inline-flex;
|
|
4306
4304
|
align-items: center;
|
|
4307
4305
|
gap: 6px;
|
|
@@ -4319,25 +4317,25 @@ img[data-v-9faeeffa] {
|
|
|
4319
4317
|
background var(--transition-base, 0.24s);
|
|
4320
4318
|
will-change: transform;
|
|
4321
4319
|
}
|
|
4322
|
-
&[data-v-
|
|
4320
|
+
&[data-v-c543f13e]:hover {
|
|
4323
4321
|
transform: translateY(-2px);
|
|
4324
4322
|
background: var(--statusbar-docid-hover-bg);
|
|
4325
4323
|
box-shadow: var(--statusbar-docid-hover-shadow);
|
|
4326
4324
|
}
|
|
4327
4325
|
}
|
|
4328
|
-
.statusbar-docid-label[data-v-
|
|
4326
|
+
.statusbar-docid-label[data-v-c543f13e] {
|
|
4329
4327
|
flex-shrink: 0;
|
|
4330
4328
|
letter-spacing: 0.12em;
|
|
4331
4329
|
opacity: 0.6;
|
|
4332
4330
|
}
|
|
4333
|
-
.statusbar-docid-value[data-v-
|
|
4331
|
+
.statusbar-docid-value[data-v-c543f13e] {
|
|
4334
4332
|
min-width: 0;
|
|
4335
4333
|
overflow: hidden;
|
|
4336
4334
|
white-space: nowrap;
|
|
4337
4335
|
text-overflow: ellipsis;
|
|
4338
4336
|
}
|
|
4339
4337
|
.statusbar-items {
|
|
4340
|
-
&[data-v-
|
|
4338
|
+
&[data-v-c543f13e] {
|
|
4341
4339
|
flex: 1;
|
|
4342
4340
|
min-width: 0;
|
|
4343
4341
|
max-width: var(--statusbar-items-max-width);
|
|
@@ -4349,7 +4347,7 @@ img[data-v-9faeeffa] {
|
|
|
4349
4347
|
padding: 1px;
|
|
4350
4348
|
}
|
|
4351
4349
|
.statusbar-item {
|
|
4352
|
-
&[data-v-
|
|
4350
|
+
&[data-v-c543f13e] {
|
|
4353
4351
|
cursor: pointer;
|
|
4354
4352
|
background: var(--statusbar-item-bg);
|
|
4355
4353
|
color: var(--statusbar-item-color);
|
|
@@ -4361,7 +4359,6 @@ img[data-v-9faeeffa] {
|
|
|
4361
4359
|
max-width: 220px;
|
|
4362
4360
|
padding: 2px 8px;
|
|
4363
4361
|
border-radius: 4px;
|
|
4364
|
-
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
|
|
4365
4362
|
transition:
|
|
4366
4363
|
transform var(--transition-spring, 0.36s cubic-bezier(0.34, 1.56, 0.64, 1)),
|
|
4367
4364
|
background var(--transition-base, 0.24s),
|
|
@@ -4369,31 +4366,31 @@ img[data-v-9faeeffa] {
|
|
|
4369
4366
|
box-shadow var(--transition-base, 0.24s);
|
|
4370
4367
|
will-change: transform;
|
|
4371
4368
|
}
|
|
4372
|
-
&[data-v-
|
|
4369
|
+
&[data-v-c543f13e]:hover {
|
|
4373
4370
|
background: var(--statusbar-item-hover-bg);
|
|
4374
4371
|
border-color: var(--statusbar-item-hover-border);
|
|
4375
4372
|
box-shadow: var(--statusbar-item-hover-shadow);
|
|
4376
4373
|
}
|
|
4377
4374
|
}
|
|
4378
|
-
.statusbar-item-text[data-v-
|
|
4375
|
+
.statusbar-item-text[data-v-c543f13e] {
|
|
4379
4376
|
overflow: hidden;
|
|
4380
4377
|
text-overflow: ellipsis;
|
|
4381
4378
|
}
|
|
4382
|
-
.has-scope[data-v-
|
|
4379
|
+
.has-scope[data-v-c543f13e] {
|
|
4383
4380
|
background: var(--statusbar-item-scope-exist-bg);
|
|
4384
4381
|
color: var(--statusbar-item-scope-exist-color);
|
|
4385
4382
|
box-shadow: var(--statusbar-item-scope-exist-shadow);
|
|
4386
4383
|
}
|
|
4387
4384
|
.statusbar-item.iconfont {
|
|
4388
|
-
&[data-v-
|
|
4385
|
+
&[data-v-c543f13e] {
|
|
4389
4386
|
font-weight: 300;
|
|
4390
4387
|
}
|
|
4391
|
-
&[data-v-
|
|
4388
|
+
&[data-v-c543f13e]::before {
|
|
4392
4389
|
margin-right: 4px;
|
|
4393
4390
|
opacity: 0.8;
|
|
4394
4391
|
}
|
|
4395
4392
|
}
|
|
4396
|
-
&[data-v-
|
|
4393
|
+
&[data-v-c543f13e]::-webkit-scrollbar {
|
|
4397
4394
|
display: none;
|
|
4398
4395
|
}
|
|
4399
4396
|
}
|
package/dist/index.js
CHANGED
|
@@ -5611,7 +5611,7 @@ var GP=n(3709);// ./node_modules/.pnpm/swc-loader@0.2.6_@swc+core@1.13.5_webpack
|
|
|
5611
5611
|
const qP={key:0,class:"ui-sidebar",tabindex:"-1"},UP={class:"sidebar-icons"},QP={class:"sideitem-component"},YP=(0,l/* defineComponent */.pM)({__name:"ui-sidebar",props:{editor:{}},setup(e){const{sidebar:t}=e.editor,{config:n,root:o}=t;let r,s=!1,a=0;(0,l/* onMounted */.sV)(()=>{document.documentElement.addEventListener("pointermove",u),document.documentElement.addEventListener("pointerup",p)});const c=(0,l/* computed */.EW)(()=>({width:n.data.sidebar_panel_width+"px"}));function d(e){const t=GP/* StatusSidebar */.p.active;GP/* StatusSidebar */.p.active=e,GP/* StatusSidebar */.p.open=t!==e||!GP/* StatusSidebar */.p.open}
|
|
5612
5612
|
// desc : 鼠标移动时改变面板宽度
|
|
5613
5613
|
function u(e){if(!s||!r)return;const{sidebar_min_width:t,sidebar_max_width:o}=n,i=e.clientX-r.x;let l=a+i;l<t&&(l=t),l>o&&(l=o),n.data.sidebar_panel_width=l}function p(e){s=!1}function h(e){return e===GP/* StatusSidebar */.p.active?["active-sideitem"]:[]}return(e,n)=>(0/* StatusEditor */,i/* unref */.R1)(LB.QI).fold_sidebar?(0,l/* createCommentVNode */.Q3)("v-if",!0):((0,l/* openBlock */.uX)(),(0,l/* createElementBlock */.CE)("div",qP,[(0,l/* createElementVNode */.Lk)("div",UP,[(0,l/* createElementVNode */.Lk)("div",{class:(0,m/* normalizeClass */.C4)(["iconfont icon-bookmark",h("catalogue")]),title:"书签",onClick:n[0]||(n[0]=e=>d("catalogue"))},null,2/* CLASS */),(0,l/* createElementVNode */.Lk)("div",{class:(0,m/* normalizeClass */.C4)(["iconfont icon-Search",h("search")]),title:"搜索",onClick:n[1]||(n[1]=e=>d("search"))},null,2/* CLASS */),(0,l/* createElementVNode */.Lk)("div",{class:(0,m/* normalizeClass */.C4)(["iconfont icon-theme",h("theme")]),title:"主题",onClick:n[2]||(n[2]=e=>d("theme"))},null,2/* CLASS */),(0,l/* createElementVNode */.Lk)("div",{class:(0,m/* normalizeClass */.C4)(["iconfont icon-cube",h("presets")]),title:"预设",onClick:n[3]||(n[3]=e=>d("presets"))},null,2/* CLASS */),(0,l/* createElementVNode */.Lk)("div",{class:(0,m/* normalizeClass */.C4)(["iconfont icon-cursor3",h("ai")]),title:"AI服务",onClick:n[4]||(n[4]=e=>d("ai"))},null,2/* CLASS */),(0,l/* createCommentVNode */.Q3)(' <div class="iconfont icon-keyboard-box-fill" :class="get_class(\'hotkey\')" title="快捷键" @click="open_side(\'hotkey\')"></div> '),(0,l/* createElementVNode */.Lk)("div",{class:(0,m/* normalizeClass */.C4)(["iconfont icon-Items",h("toolbar")]),title:"工具栏配置",onClick:n[5]||(n[5]=e=>d("toolbar"))},null,2/* CLASS */),(0,l/* createElementVNode */.Lk)("div",{class:(0,m/* normalizeClass */.C4)(["iconfont icon-setting",h("config")]),title:"设置",onClick:n[6]||(n[6]=e=>d("config"))},null,2/* CLASS */)]),(0/* StatusSidebar */,i/* unref */.R1)(GP.p).open?((0,l/* openBlock */.uX)(),(0,l/* createElementBlock */.CE)("div",{key:0,class:"sidebar-panel",style:(0,m/* normalizeStyle */.Tr)(c.value)},[(0,l/* createElementVNode */.Lk)("div",QP,["catalogue"===(0/* StatusSidebar */,i/* unref */.R1)(GP.p).active?((0,l/* openBlock */.uX)(),(0,l/* createBlock */.Wv)(vB,{key:0,editor:(0,i/* markRaw */.IG)(e.editor)},null,8/* PROPS */,["editor"])):"search"===(0/* StatusSidebar */,i/* unref */.R1)(GP.p).active?((0,l/* openBlock */.uX)(),(0,l/* createBlock */.Wv)(TB,{key:1,editor:(0,i/* markRaw */.IG)(e.editor)},null,8/* PROPS */,["editor"])):"theme"===(0/* StatusSidebar */,i/* unref */.R1)(GP.p).active?((0,l/* openBlock */.uX)(),(0,l/* createBlock */.Wv)(qB,{key:2,editor:(0,i/* markRaw */.IG)(e.editor)},null,8/* PROPS */,["editor"])):"presets"===(0/* StatusSidebar */,i/* unref */.R1)(GP.p).active?((0,l/* openBlock */.uX)(),(0,l/* createBlock */.Wv)(rP,{key:3,editor:(0,i/* markRaw */.IG)(e.editor)},null,8/* PROPS */,["editor"])):"ai"===(0/* StatusSidebar */,i/* unref */.R1)(GP.p).active?((0,l/* openBlock */.uX)(),(0/* default */,l/* createBlock */.Wv)(iP.A,{key:4,editor:(0,i/* markRaw */.IG)(e.editor)},null,8/* PROPS */,["editor"])):"toolbar"===(0/* StatusSidebar */,i/* unref */.R1)(GP.p).active?((0,l/* openBlock */.uX)(),(0/* Fragment */,l/* createElementBlock */.CE)(l.FK,{key:5},[(0,l/* createCommentVNode */.Q3)(' <UIHotkeys v-else-if="StatusSidebar.active === \'hotkey\'" :editor="markRaw(editor)" /> '),(0,l/* createVNode */.bF)(gP,{editor:(0,i/* markRaw */.IG)(e.editor)},null,8/* PROPS */,["editor"])],2112/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */)):"config"===(0/* StatusSidebar */,i/* unref */.R1)(GP.p).active?((0,l/* openBlock */.uX)(),(0,l/* createBlock */.Wv)(XP,{key:6,editor:e.editor},null,8/* PROPS */,["editor"])):(0,l/* createCommentVNode */.Q3)("v-if",!0)]),(0,l/* createElementVNode */.Lk)("div",{class:"dragger",onPointerdown:n[7]||(n[7]=e=>function(e,t){s=!0,r={x:e.clientX,y:e.clientY},a=t.config.data.sidebar_panel_width}(e,(0,i/* unref */.R1)(t)))},null,32/* NEED_HYDRATION */)],4/* STYLE */)):(0,l/* createCommentVNode */.Q3)("v-if",!0)]))}}),ZP=(0,J$/* default */.A)(YP,[["__scopeId","data-v-446b83b8"]])
|
|
5614
|
-
/* harmony default export */,JP={class:"note-statusbar"},eF={class:"statusbar-shell"},tF={class:"statusbar-items"},nF=["title","data-id","onClick"],oF={class:"statusbar-item-text"},rF={class:"statusbar-docid-value"},iF=(0,l/* defineComponent */.pM)({__name:"ui-statusbar",props:{editor:{}},setup(e){const{root:t,statusbar:n,tips:o}=e.editor,{stats:r}=t;function s(){const e=new Blob([t.id],{type:"text/plain"}),n=new ClipboardItem({[e.type]:e});t.clipboard.set_clipboard_data(n).then(e=>{e?o.tip_success("成功复制到粘贴板"):o.tip_error("复制到粘贴板失败")})}return(e,o)=>((0,l/* openBlock */.uX)(),(0,l/* createElementBlock */.CE)("div",JP,[(0,l/* createElementVNode */.Lk)("div",eF,[(0,l/* createElementVNode */.Lk)("div",tF,[((0,l/* openBlock */.uX)(!0),(0/* Fragment */,l/* createElementBlock */.CE)(l.FK,null,(0,l/* renderList */.pI)((0,i/* unref */.R1)(n).items,t=>((0,l/* openBlock */.uX)(),(0,l/* createElementBlock */.CE)("div",{key:t.id,class:(0,m/* normalizeClass */.C4)(["statusbar-item",t.class.join(" ")]),title:t.tooltip,"data-id":t.id,onClick:n=>t.click(n,e.editor)},[(0,l/* createElementVNode */.Lk)("span",oF,(0,m/* toDisplayString */.v_)(t.text),1/* TEXT */)],10/* CLASS, PROPS */,nF))),128/* KEYED_FRAGMENT */))]),(0,l/* createElementVNode */.Lk)("div",{class:"statusbar-docid",title:"文档id,点击复制",onClick:s},[o[0]||(o[0]=(0,l/* createElementVNode */.Lk)("span",{class:"statusbar-docid-label"},"note",-1/* CACHED */)),(0,l/* createElementVNode */.Lk)("span",rF,(0,m/* toDisplayString */.v_)((0,i/* unref */.R1)(t).id),1/* TEXT */)])])]))}}),sF=(0,J$/* default */.A)(iF,[["__scopeId","data-v-
|
|
5614
|
+
/* harmony default export */,JP={class:"note-statusbar"},eF={class:"statusbar-shell"},tF={class:"statusbar-items"},nF=["title","data-id","onClick"],oF={class:"statusbar-item-text"},rF={class:"statusbar-docid-value"},iF=(0,l/* defineComponent */.pM)({__name:"ui-statusbar",props:{editor:{}},setup(e){const{root:t,statusbar:n,tips:o}=e.editor,{stats:r}=t;function s(){const e=new Blob([t.id],{type:"text/plain"}),n=new ClipboardItem({[e.type]:e});t.clipboard.set_clipboard_data(n).then(e=>{e?o.tip_success("成功复制到粘贴板"):o.tip_error("复制到粘贴板失败")})}return(e,o)=>((0,l/* openBlock */.uX)(),(0,l/* createElementBlock */.CE)("div",JP,[(0,l/* createElementVNode */.Lk)("div",eF,[(0,l/* createElementVNode */.Lk)("div",tF,[((0,l/* openBlock */.uX)(!0),(0/* Fragment */,l/* createElementBlock */.CE)(l.FK,null,(0,l/* renderList */.pI)((0,i/* unref */.R1)(n).items,t=>((0,l/* openBlock */.uX)(),(0,l/* createElementBlock */.CE)("div",{key:t.id,class:(0,m/* normalizeClass */.C4)(["statusbar-item",t.class.join(" ")]),title:t.tooltip,"data-id":t.id,onClick:n=>t.click(n,e.editor)},[(0,l/* createElementVNode */.Lk)("span",oF,(0,m/* toDisplayString */.v_)(t.text),1/* TEXT */)],10/* CLASS, PROPS */,nF))),128/* KEYED_FRAGMENT */))]),(0,l/* createElementVNode */.Lk)("div",{class:"statusbar-docid",title:"文档id,点击复制",onClick:s},[o[0]||(o[0]=(0,l/* createElementVNode */.Lk)("span",{class:"statusbar-docid-label"},"note",-1/* CACHED */)),(0,l/* createElementVNode */.Lk)("span",rF,(0,m/* toDisplayString */.v_)((0,i/* unref */.R1)(t).id),1/* TEXT */)])])]))}}),sF=(0,J$/* default */.A)(iF,[["__scopeId","data-v-c543f13e"]])
|
|
5615
5615
|
/* harmony default export */,aF={class:"toolbar-content"},lF={key:0,class:"tool-group"},cF=["onPointerdown"],dF={class:"toolbar-foot"},uF=["onPointerdown"],pF=(0,l/* defineComponent */.pM)({__name:"ui-toolbar",props:{editor:{}},setup(e){const t=e.editor.toolbar,{config:n,root:r}=t,s=n.data.toolbar_whitelist;let a,c=(0,i/* shallowReactive */.Gc)([]);const d=(0,l/* computed */.EW)(()=>{const e=nB/* StatusEditor */.Q.fold_toolbar,t=nB/* StatusEditor */.Q.mode===o._NoteMode.read;return{display:e||t?"none":"flex"}});
|
|
5616
5616
|
// desc : 滚动工具栏
|
|
5617
5617
|
function u(e){const{deltaY:t}=e,n=e.currentTarget;if(!n)return;const o=n.lastElementChild;o&&(e.preventDefault(),e.stopPropagation(),t<0?tB.DomAnimation.scroll_element(o,-20,"horizental"):tB.DomAnimation.scroll_element(o,20,"horizental"))}
|
|
@@ -5727,7 +5727,7 @@ async render(e){if(this._editor_dom=e,this.root instanceof o.CubeDoc){const t=(0
|
|
|
5727
5727
|
// desc : 导出PDF专用页面
|
|
5728
5728
|
render_pdf(e){
|
|
5729
5729
|
// 提前展开所有的折叠块
|
|
5730
|
-
const t=this.root.cubes.get_types_cube(o._NoteCubeTypes.box_folder);for(let e of this.root.children)e.attrs.fold=!1;for(let e of t.values())e.attrs.fold=!1;(0,s/* createApp */.Ef)(nK,{editor:this}).mount(e),Promise.resolve().then(()=>{this.event.emit_render_end()})}get_editor_version(){return MK.get_editor_version()}static get_editor_version(){return{version:"1.123.
|
|
5730
|
+
const t=this.root.cubes.get_types_cube(o._NoteCubeTypes.box_folder);for(let e of this.root.children)e.attrs.fold=!1;for(let e of t.values())e.attrs.fold=!1;(0,s/* createApp */.Ef)(nK,{editor:this}).mount(e),Promise.resolve().then(()=>{this.event.emit_render_end()})}get_editor_version(){return MK.get_editor_version()}static get_editor_version(){return{version:"1.123.11",time_publish:1773969025624}}static get meta(){return{type:r/* _UIPart */.d2.editor,version:1}}}},
|
|
5731
5731
|
/***/6941:
|
|
5732
5732
|
/***/function(e){e.exports=function(){"use strict";return function(e,t,n){var o=t.prototype,r=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,o,i){var s=e.name?e:e.$locale(),a=r(s[t]),l=r(s[n]),c=a||l.map(function(e){return e.slice(0,o)});if(!i)return c;var d=s.weekStart;return c.map(function(e,t){return c[(t+(d||0))%7]})},s=function(){return n.Ls[n.locale()]},a=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return a(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return l.bind(this)()},n.localeData=function(){var e=s();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return a(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(s(),"months")},n.monthsShort=function(){return i(s(),"monthsShort","months",3)},n.weekdays=function(e){return i(s(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(s(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(s(),"weekdaysMin","weekdays",2,e)}}}();
|
|
5733
5733
|
/***/},
|