dsh-maoying 0.1.20 → 0.1.22
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/README.en.md +4 -4
- package/README.md +3 -3
- package/docs/creator-panel.md +17 -9
- package/docs/design.md +8 -8
- package/docs/spec.md +2 -2
- package/index.mjs +126 -29
- package/lib/base.css +25 -10
- package/lib/client.js +551 -85
- package/lib/epub.mjs +6 -0
- package/lib/novel-parse.mjs +103 -19
- package/lib/panel-core.mjs +16 -7
- package/lib/self-update.mjs +118 -21
- package/lib/version.mjs +30 -2
- package/package.json +2 -1
- package/presets/maoying/agent.cordis.v2.yml +5 -0
- package/presets/maoying/agent.cordis.yml +9 -0
- package/presets/maoying/restrict.mjs +16 -3
- package/scripts/smoke-client.mjs +128 -0
package/lib/base.css
CHANGED
|
@@ -461,9 +461,11 @@ html[data-dsh-maoying-active]:not([data-dsh-mnemon-active]):not([data-dsh-taskbo
|
|
|
461
461
|
.myt-dimLabel { font-size: 11px; line-height: 16px; color: var(--dsw-alias-label-tertiary); margin-bottom: 2px; }
|
|
462
462
|
.myt-dimText { font-size: 12px; line-height: 18px; color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere; }
|
|
463
463
|
|
|
464
|
-
/* ── 0.1.19
|
|
465
|
-
|
|
466
|
-
|
|
464
|
+
/* ── 0.1.19 引入正文/章纲面板编辑态;0.1.22 起正文自动保存(2s 防抖)─────
|
|
465
|
+
编辑态与只读态的区分靠主题色边框强调(只读态是无边框淡底的
|
|
466
|
+
.myt-chapterBody pre);正文 textarea 排版与只读正文对齐(同 UI 字体、
|
|
467
|
+
13px/22px 行高)所见即所得,高度随内容自动长高——当年的等宽字体 +
|
|
468
|
+
resize: vertical 已成史。章纲编辑区(.myt-outlineArea)仍手动保存。 */
|
|
467
469
|
.myt-bodyEdit { display: flex; flex-direction: column; gap: 8px; }
|
|
468
470
|
.myt-chapterEditArea {
|
|
469
471
|
width: 100%;
|
|
@@ -473,10 +475,11 @@ html[data-dsh-maoying-active]:not([data-dsh-mnemon-active]):not([data-dsh-taskbo
|
|
|
473
475
|
border-radius: 10px;
|
|
474
476
|
background: var(--dsw-alias-bg-layer-1, var(--dsw-alias-bg-layer-2));
|
|
475
477
|
color: var(--dsw-alias-label-primary);
|
|
476
|
-
font-family:
|
|
478
|
+
font-family: inherit; /* 所见即所得:与 .myt-chapterBody 同 UI 字体 */
|
|
477
479
|
font-size: 13px;
|
|
478
|
-
line-height:
|
|
479
|
-
resize:
|
|
480
|
+
line-height: 22px; /* 与 .myt-chapterBody 一致 */
|
|
481
|
+
resize: none; /* 高度由自动长高 effect 接管 */
|
|
482
|
+
overflow: hidden;
|
|
480
483
|
min-height: 320px;
|
|
481
484
|
}
|
|
482
485
|
.myt-editHint { font-size: 11px; line-height: 16px; color: var(--dsw-alias-label-tertiary); }
|
|
@@ -877,8 +880,9 @@ html[data-dsh-maoying-active]:not([data-dsh-mnemon-active]):not([data-dsh-taskbo
|
|
|
877
880
|
}
|
|
878
881
|
.myt-verBadge:hover { background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 22%, transparent); }
|
|
879
882
|
|
|
880
|
-
/*
|
|
881
|
-
.myt-verUpgrade
|
|
883
|
+
/* 一键升级 / 手动检测更新按钮:同形(描边胶囊),安装中/检测中禁用降透明度 */
|
|
884
|
+
.myt-verUpgrade,
|
|
885
|
+
.myt-verCheck {
|
|
882
886
|
margin-left: 6px;
|
|
883
887
|
padding: 2px 10px;
|
|
884
888
|
border: 1px solid color-mix(in srgb, var(--dsw-alias-state-business-primary) 45%, transparent);
|
|
@@ -892,8 +896,10 @@ html[data-dsh-maoying-active]:not([data-dsh-mnemon-active]):not([data-dsh-taskbo
|
|
|
892
896
|
white-space: nowrap;
|
|
893
897
|
cursor: pointer;
|
|
894
898
|
}
|
|
895
|
-
.myt-verUpgrade:hover:not(:disabled)
|
|
896
|
-
.myt-
|
|
899
|
+
.myt-verUpgrade:hover:not(:disabled),
|
|
900
|
+
.myt-verCheck:hover:not(:disabled) { background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 12%, transparent); }
|
|
901
|
+
.myt-verUpgrade:disabled,
|
|
902
|
+
.myt-verCheck:disabled { opacity: 0.6; cursor: default; }
|
|
897
903
|
|
|
898
904
|
/* ── 版本号 + 系统设置(字号五档,面板整体 zoom)────────────────────────── */
|
|
899
905
|
.myt-verTag {
|
|
@@ -1013,6 +1019,15 @@ html[data-dsh-maoying-active]:not([data-dsh-mnemon-active]):not([data-dsh-taskbo
|
|
|
1013
1019
|
.myt-md a { color: var(--dsw-alias-state-business-primary); text-decoration: none; }
|
|
1014
1020
|
.myt-md a:hover { text-decoration: underline; }
|
|
1015
1021
|
.myt-md strong { color: var(--dsw-alias-label-primary); }
|
|
1022
|
+
.myt-md .myt-mdTableWrap { overflow-x: auto; margin: 6px 0 10px; }
|
|
1023
|
+
/* white-space: normal 必须有:落点容器(.myt-outlineBody / .myt-worldDesc)是
|
|
1024
|
+
pre-wrap,不覆盖则单元格内容按源码换行。 */
|
|
1025
|
+
.myt-md table.myt-mdTable { border-collapse: collapse; width: 100%; white-space: normal; font-size: 12px; line-height: 1.6; }
|
|
1026
|
+
.myt-md .myt-mdTable th, .myt-md .myt-mdTable td { border: 1px solid var(--dsw-alias-border-l1); padding: 5px 9px; text-align: left; vertical-align: top; }
|
|
1027
|
+
.myt-md .myt-mdTable th { background: var(--dsw-alias-bg-layer-3); color: var(--dsw-alias-label-primary); font-weight: 600; }
|
|
1028
|
+
.myt-md .myt-mdTable .myt-ta-l { text-align: left; }
|
|
1029
|
+
.myt-md .myt-mdTable .myt-ta-c { text-align: center; }
|
|
1030
|
+
.myt-md .myt-mdTable .myt-ta-r { text-align: right; }
|
|
1016
1031
|
|
|
1017
1032
|
/* ── 书稿元信息表单(概览「编辑」态展开)────────────────────────────────── */
|
|
1018
1033
|
.myt-setGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
|