@musnows/scriverse 0.5.5 → 0.5.6
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/ai.js +7 -7
- package/dist/ai.js.map +1 -1
- package/dist/app.js +46 -0
- package/dist/app.js.map +1 -1
- package/dist/database.js +81 -0
- package/dist/database.js.map +1 -1
- package/dist/public/app.js +559 -5
- package/dist/public/index.html +70 -3
- package/dist/public/styles.css +59 -0
- package/dist/store.js +425 -30
- package/dist/store.js.map +1 -1
- package/dist/user-auth.js +11 -1
- package/dist/user-auth.js.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/public/index.html
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<link rel="icon" href="/icon.svg?v=20260712" type="image/svg+xml">
|
|
11
11
|
<link rel="manifest" href="/site.webmanifest">
|
|
12
12
|
<link rel="stylesheet" href="/vendor/vditor/dist/index.css?v=3.11.2">
|
|
13
|
-
<link rel="stylesheet" href="/styles.css?v=20260727-
|
|
13
|
+
<link rel="stylesheet" href="/styles.css?v=20260727-integrated-authoring-v1">
|
|
14
14
|
</head>
|
|
15
15
|
<body class="auth-pending">
|
|
16
16
|
<section id="auth-view" class="auth-view hidden" aria-labelledby="auth-title">
|
|
@@ -140,6 +140,7 @@
|
|
|
140
140
|
<span>作品目录</span>
|
|
141
141
|
<div class="panel-heading-actions">
|
|
142
142
|
<span id="chapter-count">0 章</span>
|
|
143
|
+
<button id="chapter-batch-button" class="chapter-batch-button" type="button">批量管理</button>
|
|
143
144
|
<button id="new-volume-button" class="add-button" type="button" aria-label="新建分卷" title="新建分卷">+</button>
|
|
144
145
|
</div>
|
|
145
146
|
</div>
|
|
@@ -193,6 +194,8 @@
|
|
|
193
194
|
<button id="user-management-button" class="settings-hub-card hidden" type="button"><span class="settings-card-mark">人</span><strong>用户管理</strong><small>管理员、普通用户与账户状态</small></button>
|
|
194
195
|
<button id="platform-ui-settings-button" class="settings-hub-card hidden" type="button"><span class="settings-card-mark">界</span><strong>界面与分页</strong><small>设置通知位置及各模块的单页数量</small></button>
|
|
195
196
|
<button id="collaboration-button" class="settings-hub-card" type="button"><span class="settings-card-mark">协</span><strong>作品协作</strong><small>邀请注册用户共同编辑当前作品</small></button>
|
|
197
|
+
<button id="writing-progress-button" class="settings-hub-card" type="button"><span class="settings-card-mark">字</span><strong>写作目标</strong><small>每日目标、总字数目标与近 30 天趋势</small></button>
|
|
198
|
+
<button id="work-audit-button" class="settings-hub-card" type="button"><span class="settings-card-mark">录</span><strong>操作记录</strong><small>查看作品修改、操作者、对象与时间</small></button>
|
|
196
199
|
<button id="appearance-button" class="settings-hub-card" type="button" data-settings-action="appearance"><span class="settings-card-mark">Aa</span><strong>显示设置</strong><small>中文字体、等宽英文字体、字号与行距</small></button>
|
|
197
200
|
<button id="export-button" class="settings-hub-card" type="button" data-settings-action="export"><span class="settings-card-mark">MD</span><strong>导出作品</strong><small>将当前作品安全导出为 Markdown</small></button>
|
|
198
201
|
</div>
|
|
@@ -223,6 +226,8 @@
|
|
|
223
226
|
<span id="chapter-stats" class="chapter-stats">0 字 · v0</span>
|
|
224
227
|
<button id="insight-button" class="ghost-button" type="button" aria-controls="chapter-insight-toast" aria-expanded="false">章节概览</button>
|
|
225
228
|
<button id="versions-button" class="ghost-button" type="button">版本</button>
|
|
229
|
+
<button id="chapter-annotations-button" class="ghost-button" type="button">批注与待办</button>
|
|
230
|
+
<button id="chapter-delete-button" class="danger-button" type="button">删除章节</button>
|
|
226
231
|
<button id="chapter-edit-button" class="primary-button hidden" type="button">编辑</button>
|
|
227
232
|
<button id="tidy-blank-lines-button" class="ghost-button" type="button">整理空行</button>
|
|
228
233
|
<button id="save-button" class="primary-button" type="button">保存正文</button>
|
|
@@ -312,18 +317,21 @@
|
|
|
312
317
|
</div>
|
|
313
318
|
|
|
314
319
|
<div id="toast-region" class="toast-region" data-position="bottom-right" aria-live="polite" popover="manual"></div>
|
|
315
|
-
<div id="chapter-type-menu" class="chapter-type-menu hidden" role="menu" aria-label="
|
|
320
|
+
<div id="chapter-type-menu" class="chapter-type-menu hidden" role="menu" aria-label="章节操作" data-testid="chapter-type-menu">
|
|
316
321
|
<strong>标记章节</strong>
|
|
317
322
|
<div>
|
|
318
323
|
<button type="button" role="menuitemradio" data-chapter-type="正文">正文</button>
|
|
319
324
|
<button type="button" role="menuitemradio" data-chapter-type="设定">设定</button>
|
|
320
325
|
<button type="button" role="menuitemradio" data-chapter-type="作者的话">作者的话</button>
|
|
321
326
|
<button type="button" role="menuitemradio" data-chapter-type="其他">其他</button>
|
|
327
|
+
<button class="danger-button" type="button" role="menuitem" data-delete-chapter>删除章节</button>
|
|
322
328
|
</div>
|
|
323
329
|
</div>
|
|
324
330
|
<div id="line-citation-menu" class="line-citation-menu hidden" role="menu" aria-label="正文行引用操作">
|
|
325
331
|
<strong id="line-citation-label">已选择正文</strong>
|
|
326
332
|
<button id="add-line-citation" type="button" role="menuitem">添加到创作助手引用</button>
|
|
333
|
+
<button id="add-line-annotation" type="button" role="menuitem">添加批注</button>
|
|
334
|
+
<button id="add-line-todo" type="button" role="menuitem">添加待办</button>
|
|
327
335
|
</div>
|
|
328
336
|
<input id="new-import-file" class="hidden" type="file" accept=".txt,.docx">
|
|
329
337
|
<input id="cover-file" class="hidden" type="file" accept="image/png,image/jpeg,image/webp">
|
|
@@ -381,6 +389,30 @@
|
|
|
381
389
|
</form>
|
|
382
390
|
</dialog>
|
|
383
391
|
|
|
392
|
+
<dialog id="chapter-batch-dialog" class="dialog chapter-batch-dialog" aria-labelledby="chapter-batch-title">
|
|
393
|
+
<form id="chapter-batch-form">
|
|
394
|
+
<div class="dialog-header">
|
|
395
|
+
<div><span class="eyebrow">正文工具</span><h2 id="chapter-batch-title">章节批量管理</h2><p class="dialog-header-meta">选择多个章节后统一移动、修改属性或软删除。</p></div>
|
|
396
|
+
<button id="chapter-batch-close" class="dialog-close" type="button" aria-label="关闭章节批量管理">×</button>
|
|
397
|
+
</div>
|
|
398
|
+
<div class="chapter-batch-toolbar">
|
|
399
|
+
<button id="chapter-batch-select-all" class="ghost-button" type="button">全选</button>
|
|
400
|
+
<button id="chapter-batch-clear" class="ghost-button" type="button">清空</button>
|
|
401
|
+
<output id="chapter-batch-count">已选择 0 章</output>
|
|
402
|
+
</div>
|
|
403
|
+
<div id="chapter-batch-list" class="chapter-batch-list"></div>
|
|
404
|
+
<div class="chapter-batch-controls">
|
|
405
|
+
<label>批量操作<select id="chapter-batch-action"><option value="move">移动到分卷</option><option value="setType">修改章节类型</option><option value="exclude">排除 AI 分析</option><option value="include">纳入 AI 分析</option><option value="delete">软删除章节</option></select></label>
|
|
406
|
+
<label id="chapter-batch-volume-field">目标分卷<select id="chapter-batch-volume"></select></label>
|
|
407
|
+
<label id="chapter-batch-type-field" class="hidden">章节类型<select id="chapter-batch-type"><option value="正文">正文</option><option value="设定">设定</option><option value="作者的话">作者的话</option><option value="其他">其他</option></select></label>
|
|
408
|
+
</div>
|
|
409
|
+
<div class="dialog-actions">
|
|
410
|
+
<button id="chapter-batch-cancel" class="ghost-button" type="button">取消</button>
|
|
411
|
+
<button id="chapter-batch-apply" class="primary-button" type="submit" disabled>应用到所选章节</button>
|
|
412
|
+
</div>
|
|
413
|
+
</form>
|
|
414
|
+
</dialog>
|
|
415
|
+
|
|
384
416
|
<dialog id="import-mode-dialog" class="dialog import-mode-dialog" aria-labelledby="import-mode-dialog-title" aria-describedby="import-mode-dialog-description" data-testid="import-mode-dialog">
|
|
385
417
|
<form method="dialog">
|
|
386
418
|
<div class="dialog-header">
|
|
@@ -607,6 +639,17 @@
|
|
|
607
639
|
</div>
|
|
608
640
|
</dialog>
|
|
609
641
|
|
|
642
|
+
<dialog id="chapter-recycle-bin-dialog" class="dialog wide-dialog" aria-labelledby="chapter-recycle-bin-title" aria-describedby="chapter-recycle-bin-description">
|
|
643
|
+
<div class="dialog-header">
|
|
644
|
+
<div><span class="eyebrow">正文安全</span><h2 id="chapter-recycle-bin-title">章节回收站</h2></div>
|
|
645
|
+
<button id="chapter-recycle-bin-close" class="dialog-close" aria-label="关闭章节回收站" type="button">×</button>
|
|
646
|
+
</div>
|
|
647
|
+
<div class="import-history-body">
|
|
648
|
+
<p id="chapter-recycle-bin-description" class="import-history-note">软删除的章节会保留正文、版本和关联资料。恢复后章节将重新出现在原分卷中。</p>
|
|
649
|
+
<div id="chapter-recycle-bin-list" class="entity-history-list" aria-live="polite"></div>
|
|
650
|
+
</div>
|
|
651
|
+
</dialog>
|
|
652
|
+
|
|
610
653
|
<dialog id="users-dialog" class="dialog wide-dialog" aria-labelledby="users-dialog-title">
|
|
611
654
|
<div class="dialog-header"><div><span class="eyebrow">系统管理员</span><h2 id="users-dialog-title">用户管理</h2></div><div class="settings-dialog-header-actions"><button id="users-settings-return" class="ghost-button settings-parent-button" type="button">返回设置</button><button id="users-dialog-close" class="dialog-close" aria-label="关闭" type="button">×</button></div></div>
|
|
612
655
|
<div class="access-dialog-body">
|
|
@@ -614,6 +657,30 @@
|
|
|
614
657
|
</div>
|
|
615
658
|
</dialog>
|
|
616
659
|
|
|
660
|
+
<dialog id="chapter-annotations-dialog" class="dialog wide-dialog chapter-annotations-dialog" aria-labelledby="chapter-annotations-title">
|
|
661
|
+
<div class="dialog-header"><div><span class="eyebrow">正文协作</span><h2 id="chapter-annotations-title">批注与待办</h2><p id="chapter-annotations-meta" class="dialog-header-meta">选择正文行后可添加批注或待办。</p></div><button id="chapter-annotations-close" class="dialog-close" aria-label="关闭批注与待办" type="button">×</button></div>
|
|
662
|
+
<div id="chapter-annotations-list" class="chapter-annotations-list"></div>
|
|
663
|
+
<div class="dialog-actions"><button id="chapter-annotations-refresh" class="ghost-button" type="button">刷新</button><button id="chapter-annotations-done" class="primary-button" type="button">完成</button></div>
|
|
664
|
+
</dialog>
|
|
665
|
+
|
|
666
|
+
<dialog id="writing-progress-dialog" class="dialog wide-dialog writing-progress-dialog" aria-labelledby="writing-progress-title">
|
|
667
|
+
<form id="writing-goal-form">
|
|
668
|
+
<div class="dialog-header"><div><span class="eyebrow">创作节奏</span><h2 id="writing-progress-title">写作目标与字数趋势</h2><p class="dialog-header-meta">趋势根据正文版本历史重建,软删除章节不会继续计入。</p></div><button id="writing-progress-close" class="dialog-close" aria-label="关闭写作目标" type="button">×</button></div>
|
|
669
|
+
<div class="writing-progress-body">
|
|
670
|
+
<div class="writing-progress-stats"><article><small>当前总字数</small><strong id="writing-current-words">0</strong></article><article><small>今日新增</small><strong id="writing-today-words">0</strong></article><article><small>每日目标完成</small><strong id="writing-daily-completion">0%</strong></article><article><small>总目标完成</small><strong id="writing-total-completion">0%</strong></article></div>
|
|
671
|
+
<div id="writing-trend-chart" class="writing-trend-chart" role="img" aria-label="近 30 天作品字数趋势"></div>
|
|
672
|
+
<div class="writing-goal-fields"><label>每日目标字数<input id="writing-daily-goal" type="number" min="0" max="1000000" required></label><label>总字数目标<input id="writing-total-goal" type="number" min="0" max="100000000" required></label><label>计划完成日期<input id="writing-deadline" type="date"></label></div>
|
|
673
|
+
</div>
|
|
674
|
+
<div class="dialog-actions"><button id="writing-progress-refresh" class="ghost-button" type="button">刷新趋势</button><button id="writing-goal-save" class="primary-button" type="submit">保存目标</button></div>
|
|
675
|
+
</form>
|
|
676
|
+
</dialog>
|
|
677
|
+
|
|
678
|
+
<dialog id="work-audit-dialog" class="dialog wide-dialog work-audit-dialog" aria-labelledby="work-audit-title">
|
|
679
|
+
<div class="dialog-header"><div><span class="eyebrow">作品安全</span><h2 id="work-audit-title">操作记录</h2><p class="dialog-header-meta">按时间倒序展示当前作品的写入与管理操作。</p></div><div class="settings-dialog-header-actions"><button id="work-audit-settings-return" class="ghost-button settings-parent-button" type="button">返回设置</button><button id="work-audit-close" class="dialog-close" aria-label="关闭操作记录" type="button">×</button></div></div>
|
|
680
|
+
<div id="work-audit-list" class="work-audit-list"></div>
|
|
681
|
+
<div class="dialog-actions"><button id="work-audit-refresh" class="ghost-button" type="button">刷新</button><button id="work-audit-load-more" class="primary-button hidden" type="button">加载更多</button></div>
|
|
682
|
+
</dialog>
|
|
683
|
+
|
|
617
684
|
<dialog id="platform-ui-settings-dialog" class="dialog" aria-labelledby="platform-ui-settings-title">
|
|
618
685
|
<div class="dialog-header"><div><span class="eyebrow">系统管理员</span><h2 id="platform-ui-settings-title">界面与分页</h2></div><div class="settings-dialog-header-actions"><button id="platform-ui-settings-return" class="ghost-button settings-parent-button" type="button">返回设置</button><button id="platform-ui-settings-close" class="dialog-close" aria-label="关闭" type="button">×</button></div></div>
|
|
619
686
|
<form id="platform-ui-settings-form">
|
|
@@ -788,6 +855,6 @@
|
|
|
788
855
|
<div id="auth-loading" class="auth-loading" role="status" aria-label="正在载入工作台"></div>
|
|
789
856
|
<script id="vditorIconScript" src="/vendor/vditor/dist/js/icons/ant.js?v=3.11.2"></script>
|
|
790
857
|
<script src="/vendor/vditor/dist/index.min.js?v=3.11.2"></script>
|
|
791
|
-
<script type="module" src="/app.js?v=20260727-
|
|
858
|
+
<script type="module" src="/app.js?v=20260727-integrated-authoring-v1"></script>
|
|
792
859
|
</body>
|
|
793
860
|
</html>
|
package/dist/public/styles.css
CHANGED
|
@@ -554,6 +554,30 @@ body.is-panel-resizing { cursor: col-resize; user-select: none; }
|
|
|
554
554
|
.settings-card-mark { display: grid; grid-row: 1 / 3; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent-dark); background: var(--surface); font-size: 14px; font-weight: 700; }
|
|
555
555
|
.settings-hub-card strong { align-self: end; font-size: 16px; }
|
|
556
556
|
.settings-hub-card small { align-self: start; color: var(--muted); font-size: 10px; line-height: 1.5; }
|
|
557
|
+
.writing-progress-dialog { width: min(900px, 94vw); }
|
|
558
|
+
.writing-progress-dialog form { display: grid; }
|
|
559
|
+
.writing-progress-body { display: grid; gap: 18px; padding: 20px 24px; }
|
|
560
|
+
.writing-progress-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
|
|
561
|
+
.writing-progress-stats article { display: grid; gap: 6px; padding: 13px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-soft); }
|
|
562
|
+
.writing-progress-stats small { color: var(--muted); font-size: 9px; }
|
|
563
|
+
.writing-progress-stats strong { font: 20px/1.2 var(--font-mono), monospace; }
|
|
564
|
+
.writing-trend-chart { display: grid; grid-template-columns: repeat(30, minmax(4px, 1fr)); align-items: end; gap: 3px; height: 190px; padding: 12px 10px 24px; border: 1px solid var(--line); border-radius: 5px; background: linear-gradient(to top, var(--line) 1px, transparent 1px) 0 0 / 100% 25%; }
|
|
565
|
+
.writing-trend-bar { display: grid; grid-template-rows: 1fr 18px; align-items: end; height: 100%; min-width: 0; }
|
|
566
|
+
.writing-trend-bar i { display: block; width: 100%; height: var(--bar-height); min-height: 3px; border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--accent) 62%, var(--surface)); }
|
|
567
|
+
.writing-trend-bar.is-today i { background: var(--accent); }
|
|
568
|
+
.writing-trend-bar small { overflow: visible; color: var(--muted); font: 7px/18px var(--font-mono), monospace; white-space: nowrap; transform: rotate(-42deg); transform-origin: left center; }
|
|
569
|
+
.writing-goal-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
|
|
570
|
+
.writing-goal-fields label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; }
|
|
571
|
+
.writing-goal-fields input { width: 100%; }
|
|
572
|
+
@media (max-width: 680px) { .writing-progress-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .writing-goal-fields { grid-template-columns: 1fr; } }
|
|
573
|
+
.work-audit-dialog { width: min(860px, 94vw); }
|
|
574
|
+
.work-audit-list { display: grid; max-height: 62vh; overflow: auto; }
|
|
575
|
+
.work-audit-row { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; padding: 13px 24px; border-bottom: 1px solid var(--line); }
|
|
576
|
+
.work-audit-row time { color: var(--muted); font: 10px/1.5 var(--font-mono), monospace; }
|
|
577
|
+
.work-audit-row > div { display: grid; min-width: 0; gap: 4px; }
|
|
578
|
+
.work-audit-row strong { font-size: 12px; }
|
|
579
|
+
.work-audit-row span, .work-audit-row small { overflow-wrap: anywhere; color: var(--muted); font-size: 9px; line-height: 1.5; }
|
|
580
|
+
@media (max-width: 620px) { .work-audit-row { grid-template-columns: 1fr; gap: 4px; } }
|
|
557
581
|
.settings-work-note { max-width: 1000px; margin: 18px auto 0; color: var(--muted); font-size: 11px; }
|
|
558
582
|
.usage-page-content { width: 100%; max-width: 1400px; margin: 0 auto; padding-top: 0; }
|
|
559
583
|
.usage-overview { min-width: 0; container-name: usage-overview; container-type: inline-size; }
|
|
@@ -733,6 +757,7 @@ body.is-panel-resizing { cursor: col-resize; user-select: none; }
|
|
|
733
757
|
.app-shell.prose-hidden-mode:not(.shelf-mode) #novel-tree { display: none !important; }
|
|
734
758
|
.app-shell.prose-read-only-mode:not(.shelf-mode) #tidy-blank-lines-button,
|
|
735
759
|
.app-shell.prose-read-only-mode:not(.shelf-mode) #save-button,
|
|
760
|
+
.app-shell.prose-read-only-mode:not(.shelf-mode) #chapter-delete-button,
|
|
736
761
|
.app-shell.prose-read-only-mode:not(.shelf-mode) #chapter-edit-button { display: none !important; }
|
|
737
762
|
.app-shell.prose-read-only-mode:not(.shelf-mode) .left-primary-actions { justify-content: flex-end; }
|
|
738
763
|
.app-shell.prose-read-only-mode:not(.shelf-mode) #chapter-title[readonly],
|
|
@@ -741,6 +766,7 @@ body.is-panel-resizing { cursor: col-resize; user-select: none; }
|
|
|
741
766
|
.app-shell.view-only-mode:not(.shelf-mode) [data-work-settings],
|
|
742
767
|
.app-shell.view-only-mode:not(.shelf-mode) #tidy-blank-lines-button,
|
|
743
768
|
.app-shell.view-only-mode:not(.shelf-mode) #save-button,
|
|
769
|
+
.app-shell.view-only-mode:not(.shelf-mode) #chapter-delete-button,
|
|
744
770
|
.app-shell.view-only-mode:not(.shelf-mode) #chapter-edit-button { display: none !important; }
|
|
745
771
|
.app-shell.view-only-mode:not(.shelf-mode) .left-primary-actions { justify-content: flex-end; }
|
|
746
772
|
.app-shell.view-only-mode:not(.shelf-mode) #chapter-title[readonly],
|
|
@@ -1054,6 +1080,7 @@ select:focus, input:focus, textarea:focus { border-color: #a77768; box-shadow: 0
|
|
|
1054
1080
|
#module-more-button { grid-column: 1 / -1; color: var(--accent-dark); text-align: center; }
|
|
1055
1081
|
.panel-heading { display: flex; align-items: center; gap: 8px; padding: 15px 0 9px 7px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
|
|
1056
1082
|
.panel-heading-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; }
|
|
1083
|
+
.chapter-batch-button { min-height: 26px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--muted); font-size: 9px; white-space: nowrap; }
|
|
1057
1084
|
.novel-tree { font-size: 13px; }
|
|
1058
1085
|
.empty-copy { color: var(--muted); padding: 14px 7px; line-height: 1.5; }
|
|
1059
1086
|
.volume-node { margin-bottom: 8px; }
|
|
@@ -1067,11 +1094,29 @@ select:focus, input:focus, textarea:focus { border-color: #a77768; box-shadow: 0
|
|
|
1067
1094
|
.volume-node.is-collapsed .volume-chapters { display: none; }
|
|
1068
1095
|
.chapter-node { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 8px; width: calc(100% + 6px); padding: 9px 8px 9px 20px; border: 0; background: transparent; border-radius: 4px; text-align: left; font-size: 12px; }
|
|
1069
1096
|
.chapter-node:hover, .chapter-node.active { background: var(--row-active); }
|
|
1097
|
+
.chapter-node[draggable="true"] { cursor: grab; }
|
|
1098
|
+
.chapter-node.is-dragging { opacity: .42; cursor: grabbing; }
|
|
1099
|
+
.chapter-node.is-drag-over { box-shadow: inset 0 2px 0 var(--accent); }
|
|
1100
|
+
.chapter-node.is-drag-over.drop-after { box-shadow: inset 0 -2px 0 var(--accent); }
|
|
1101
|
+
.volume-node.is-drag-target > .volume-title { border-radius: 4px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); outline: 1px dashed var(--accent); }
|
|
1070
1102
|
.chapter-node.active { color: var(--accent-dark); font-weight: 700; }
|
|
1071
1103
|
.chapter-node > span:first-child { min-width: 0; overflow-wrap: anywhere; line-height: 1.45; white-space: normal; }
|
|
1072
1104
|
.chapter-node-meta { display: flex; flex: none; align-items: center; gap: 5px; margin-left: auto; overflow: visible; white-space: nowrap; }
|
|
1073
1105
|
.chapter-node small { color: var(--muted); font-size: 9px; }
|
|
1074
1106
|
.chapter-type-badge { max-width: 58px; overflow: hidden; padding: 2px 5px; border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line)); border-radius: 9px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent-dark); font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
|
|
1107
|
+
.chapter-batch-dialog { width: min(720px, calc(100vw - 32px)); }
|
|
1108
|
+
.chapter-batch-dialog form { display: grid; gap: 14px; }
|
|
1109
|
+
.chapter-batch-toolbar { display: flex; align-items: center; gap: 8px; margin: 0 24px; }
|
|
1110
|
+
.chapter-batch-toolbar output { margin-left: auto; color: var(--muted); font-size: 11px; }
|
|
1111
|
+
.chapter-batch-list { display: grid; max-height: min(44vh, 420px); margin: 0 24px; overflow: auto; border: 1px solid var(--line); border-radius: 5px; }
|
|
1112
|
+
.chapter-batch-item { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 9px; padding: 9px 11px; border-bottom: 1px solid var(--line); }
|
|
1113
|
+
.chapter-batch-item:last-child { border-bottom: 0; }
|
|
1114
|
+
.chapter-batch-item span { display: grid; min-width: 0; gap: 2px; }
|
|
1115
|
+
.chapter-batch-item strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
|
|
1116
|
+
.chapter-batch-item small { color: var(--muted); font-size: 9px; }
|
|
1117
|
+
.chapter-batch-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 24px; }
|
|
1118
|
+
.chapter-batch-controls label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; }
|
|
1119
|
+
@media (max-width: 620px) { .chapter-batch-controls { grid-template-columns: 1fr; } }
|
|
1075
1120
|
|
|
1076
1121
|
.ghost-button, .primary-button { border-radius: 4px; padding: 8px 13px; font-size: 12px; }
|
|
1077
1122
|
.ghost-button { border: 1px solid var(--line); background: transparent; }
|
|
@@ -2107,9 +2152,23 @@ select:focus, input:focus, textarea:focus { border-color: #a77768; box-shadow: 0
|
|
|
2107
2152
|
.chapter-type-menu > div { display: grid; gap: 3px; }
|
|
2108
2153
|
.chapter-type-menu button { border: 0; border-radius: 3px; padding: 7px 8px; background: transparent; text-align: left; font-size: 11px; }
|
|
2109
2154
|
.chapter-type-menu button:hover, .chapter-type-menu button.active { background: var(--paper-deep); color: var(--accent-dark); }
|
|
2155
|
+
.chapter-type-menu .danger-button { margin-top: 5px; border-top: 1px solid var(--line); border-radius: 0; color: var(--accent-dark); }
|
|
2110
2156
|
.line-citation-menu { position: fixed; z-index: 82; display: grid; min-width: 230px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); box-shadow: 0 14px 38px rgba(49,42,32,.22); }
|
|
2111
2157
|
.line-citation-menu strong { padding: 5px 7px 8px; color: var(--muted); font-size: 9px; }
|
|
2112
2158
|
.line-citation-menu button { border: 0; border-radius: 4px; padding: 8px; background: transparent; text-align: left; font-size: 11px; }.line-citation-menu button:hover { background: var(--paper-deep); color: var(--accent-dark); }
|
|
2159
|
+
.chapter-annotations-dialog { width: min(820px, 94vw); }
|
|
2160
|
+
.chapter-annotations-list { display: grid; gap: 10px; max-height: 62vh; overflow: auto; padding: 18px 24px; }
|
|
2161
|
+
.chapter-annotation-card { display: grid; gap: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); }
|
|
2162
|
+
.chapter-annotation-card.is-resolved { opacity: .65; }
|
|
2163
|
+
.chapter-annotation-card header { display: flex; align-items: center; gap: 8px; }
|
|
2164
|
+
.chapter-annotation-card header strong { font-size: 11px; }
|
|
2165
|
+
.chapter-annotation-card header em { margin-left: auto; color: var(--muted); font-size: 9px; font-style: normal; }
|
|
2166
|
+
.chapter-annotation-kind { padding: 2px 6px; border: 1px solid var(--accent); border-radius: 10px; color: var(--accent-dark); font-size: 8px; }
|
|
2167
|
+
.chapter-annotation-card blockquote { max-height: 100px; overflow: auto; margin: 0; padding: 8px 10px; border-left: 3px solid var(--line); background: var(--surface); color: var(--muted); font: 10px/1.6 var(--font-mono), monospace; white-space: pre-wrap; }
|
|
2168
|
+
.chapter-annotation-card p { margin: 0; font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
|
|
2169
|
+
.chapter-annotation-card > small { color: var(--muted); font-size: 9px; }
|
|
2170
|
+
.chapter-annotation-card footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
|
|
2171
|
+
.chapter-annotation-card footer button { min-height: 30px; padding: 5px 9px; font-size: 9px; }
|
|
2113
2172
|
@keyframes toast-appear-top { from { opacity: 0; transform: translateY(-7px); } }
|
|
2114
2173
|
@keyframes toast-appear-bottom { from { opacity: 0; transform: translateY(7px); } }
|
|
2115
2174
|
|