dsh-design-studio 1.4.0 → 1.5.0

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/lib/client.js CHANGED
@@ -51,7 +51,7 @@ window.__ModuleLoader__.load({
51
51
  askKindsAll: '全部类型',
52
52
  askKindsLess: '收起',
53
53
  emptySub: '说一句,设计会一屏一屏出现在画布上;点哪改哪,做完直接转成代码。',
54
- homeTab: '开始',
54
+ homeTab: "首页",
55
55
  askPh: '比如:{ex}',
56
56
  askTab: '用这句',
57
57
  exAuto: '巷口面馆的点单小程序,三屏,暖色手作风',
@@ -63,14 +63,25 @@ window.__ModuleLoader__.load({
63
63
  exPoster: '周末城市夜跑活动的海报,清爽运动风',
64
64
  exSlides: '新品发布会的五页幻灯片:问题、方案、数字、价格、下一步',
65
65
  exEmail: '会员生日月的优惠邮件:一张大图、一段祝福、一个按钮',
66
- exDiagram: '「产品经理入门」的思维导图:用户研究、需求分析、原型、数据、项目管理',
66
+ exDiagram: '「城市内涝智能预警」课题申报书的技术路线图:研究背景 → 关键问题 → 三项研究内容 → 技术方法 → 预期成果',
67
+ exDgProposal: '「中小学 AI 素养课程建设」教学成果申报书的技术路线图:问题提出 → 研究内容 → 实施路径 → 成效评价 → 推广应用',
68
+ exDgFramework: '「乡村小学阅读习惯培养」的研究框架图:理论基础、研究对象、研究内容、研究方法、预期成果',
69
+ exDgArch: '「社区团购小程序」的系统架构图:小程序端、接口网关、商品 / 订单 / 支付服务、数据库和缓存',
70
+ exDgMindmap: '「产品经理入门」的思维导图:用户研究、需求分析、原型、数据、项目管理',
71
+ exDgRoadmap: '「记账 App」明年的产品路线图:四个季度,每季度的目标和关键功能',
72
+ askDgSubs: '哪种图',
73
+ dgProposal: '技术路线图(申报书)',
74
+ dgFramework: '研究框架图',
75
+ dgArch: '架构图',
76
+ dgMindmap: '思维导图',
77
+ dgRoadmap: '产品路线图',
67
78
  exDshplugin: "做一个 DSH 插件「番茄钟」:会话标签页里放计时器和今日记录",
68
- exFramed: "照这张截图做一个 Chrome 插件弹窗的外框,再在里面设计「稍后读」",
79
+ exFramed: "照这张截图做一个 Chrome 插件弹窗的外壳,再在里面设计「稍后读」",
69
80
  askKindLine: '类型:{k}',
70
- askFrameLine: '外框:{name}({id})',
71
- askFrameNew: '新外框',
72
- askFrameNewD: '照截图或说明做一个新外框,存进外框库',
73
- askFrames: '用哪个外框',
81
+ askFrameLine: "外壳:{name}({id})",
82
+ askFrameNew: "新外壳",
83
+ askFrameNewD: "照截图或说明做一个新外壳,存进外壳库",
84
+ askFrames: "用哪个外壳",
74
85
  askMore: '更多开始方式',
75
86
  askMoreD: '打开 HTML…、品牌…',
76
87
  askOpenHtml: '打开 HTML…',
@@ -118,19 +129,19 @@ window.__ModuleLoader__.load({
118
129
  pickArea: '选中区域',
119
130
  chipOne: '1 个元素',
120
131
  chipMark: '标注图',
121
- chipText: '改字',
132
+ chipText: "文字修改",
122
133
  chipStyle: '样式改动',
123
134
  chipVariant: '再出两版',
124
135
  chipDir: '选定方向',
125
- chipCheck: '体检 · {n} 个问题',
136
+ chipCheck: "检查 · {n} 个问题",
126
137
  chipCode: '转成代码',
127
138
  chipRef: '参考图',
128
- chipTweak: '滑块调整',
129
- chipTwMake: '做调节滑块',
130
- chipTwFix: '修调节滑块',
131
- chipAnMake: '写业务标注',
132
- chipAnFix: '修业务标注',
133
- chipAn: '标注 {id}',
139
+ chipTweak: "微调",
140
+ chipTwMake: "做微调项",
141
+ chipTwFix: "修微调项",
142
+ chipAnMake: "写需求说明",
143
+ chipAnFix: "修需求说明",
144
+ chipAn: "需求说明 {id}",
134
145
  chipSysEx: '提取设计系统',
135
146
  chipSysAp: '套用设计系统',
136
147
  chipLook: '风格 · {name}',
@@ -156,7 +167,7 @@ window.__ModuleLoader__.load({
156
167
  canvas: '画布:几屏并排看',
157
168
  single: '单页:只看一屏',
158
169
  sizes: '多尺寸:同一屏在手机 / 平板 / 电脑上并排看',
159
- sizesNo: '海报、幻灯片、邮件、图表、DSH 插件是固定画幅,没有多尺寸',
170
+ sizesNo: "海报、幻灯片、邮件、路线图·导图、DSH 插件是固定尺寸,没有多尺寸",
160
171
  szPhone: '手机',
161
172
  szTablet: '平板',
162
173
  szDesktop: '电脑',
@@ -164,10 +175,10 @@ window.__ModuleLoader__.load({
164
175
  szStd: '标准',
165
176
  szLarge: '大屏',
166
177
  kind: '类型',
167
- canvasSize: '画幅',
178
+ canvasSize: "尺寸",
168
179
  sizeCustom: '自定义…',
169
180
  sizeDefault: '默认',
170
- sizeApply: '好',
181
+ sizeApply: "应用",
171
182
  sizeReset: '恢复默认',
172
183
  sizeBad: '宽、高都填 100–8000',
173
184
  szCustom: '自定义',
@@ -179,9 +190,9 @@ window.__ModuleLoader__.load({
179
190
  kindPoster: '海报',
180
191
  kindSlides: '幻灯片',
181
192
  kindEmail: '邮件',
182
- kindDiagram: '图表',
193
+ kindDiagram: "路线图·导图",
183
194
  kindDshplugin: "DSH 插件",
184
- kindFramed: "套外框",
195
+ kindFramed: "自定义外壳",
185
196
  tokens: '设计规范',
186
197
  tokensEmpty: '这套设计还没有设计变量(:root 上的 CSS 变量),颜色字号散在各处,改起来不统一。',
187
198
  tokensAsk: '让模型建一份',
@@ -193,8 +204,8 @@ window.__ModuleLoader__.load({
193
204
  gRadius: '圆角',
194
205
  gShadow: '阴影',
195
206
  gOther: '其他',
196
- exFrame: '{name} · 带外框',
197
- exRaw: '{name} · 纯画面',
207
+ exFrame: "{name} · 带设备框",
208
+ exRaw: "{name} · 无设备框",
198
209
  exLong: '{name} · 整页长图',
199
210
  exThisName: '这一屏',
200
211
  exShow: '整套展示图',
@@ -214,8 +225,8 @@ window.__ModuleLoader__.load({
214
225
  xoWarn: '有内容会被裁掉,先看一眼',
215
226
  xoChecking: '正在量页面…',
216
227
  xoClean: '没有会被裁掉的内容。',
217
- xoStNoCheck: '上面只查了默认状态;另外 {n} 页(其他状态)没预检,内容更长的可能被截掉,拿不准就选「整页」。',
218
- xoOver: '{n} 个页面比画幅大,会被裁',
228
+ xoStNoCheck: "上面只查了默认状态;另外 {n} 页(其他状态)没预检,内容更长的可能被截掉,拿不准就选「完整长页」。",
229
+ xoOver: "{n} 个页面超出页面尺寸,会被裁",
219
230
  xoLong: '{n} 个页面是长页,只会截首屏',
220
231
  xoLongPpt: '{n} 个页面是长页,PPT 只会截首屏',
221
232
  xoMoved: '{n} 个页面现在不在页顶,只会截现在看到的这一段',
@@ -230,8 +241,8 @@ window.__ModuleLoader__.load({
230
241
  xoJobGone: '导出中断了(等太久或 DSH 重启过),请重新导出',
231
242
  styleMoved: '设计换了,这次调的样式没保存',
232
243
  xoCut: '一次最多导出 1000 页,最后 {n} 页没导出',
233
- xoResize: '按内容改画幅({size})',
234
- xoFull: '取景改成整页',
244
+ xoResize: "按内容改尺寸({size})",
245
+ xoFull: "截取方式改成完整长页",
235
246
  xoWhich: '导出哪些',
236
247
  xoAll: '全部 {n} 屏',
237
248
  xoAllSub: '画布上 {n} 屏,这次导出 {m} 页',
@@ -250,15 +261,15 @@ window.__ModuleLoader__.load({
250
261
  xoAsImgPpt: '每张是图片',
251
262
  xoSzLong: '宽 {w} · 长图',
252
263
  xoLayout: '版面',
253
- xoAuto: '跟随画幅',
264
+ xoAuto: "跟随页面尺寸",
254
265
  xoA3: 'A3 横向',
255
266
  xoCustom: '自定义…',
256
267
  xoCustomPh: '宽x高,比如 1920x1080',
257
- xoView: '每页取景',
268
+ xoView: "截取方式",
258
269
  xoViewAuto: '自动',
259
- xoViewOne: '一屏',
260
- xoViewPage: '整页',
261
- xoViewH: '指定高度…',
270
+ xoViewOne: "当前可见区域",
271
+ xoViewPage: "完整长页",
272
+ xoViewH: "自定义高度…",
262
273
  xoViewHPh: '高度(像素),比如 1200',
263
274
  xoCols: '拼版',
264
275
  xoCols1: '每页 1 屏',
@@ -266,8 +277,8 @@ window.__ModuleLoader__.load({
266
277
  xoPdf: '导出 PDF',
267
278
  xoPpt: '导出 PPT',
268
279
  exportedDoc: '已导出 {name}({n} 页)',
269
- check: '体检',
270
- checking: '正在体检…',
280
+ check: "检查",
281
+ checking: "正在检查…",
271
282
  checkNone: '没发现问题',
272
283
  checkSum: '{s} 屏 · {n} 个问题',
273
284
  checkSumOk: '{s} 屏 · 没问题',
@@ -288,7 +299,7 @@ window.__ModuleLoader__.load({
288
299
  checkTail: '请逐个修好:改源文件,只动有问题的地方;颜色、字号能改设计变量就改设计变量。',
289
300
  ckToolHead: '量了 {s} 屏,发现 {n} 个问题。逐个改源文件,只动有问题的地方;颜色、字号能改设计变量就改设计变量:',
290
301
  ckToolOk: '量了 {s} 屏({labels}),没发现问题。',
291
- ckToolOff: '用户正在看旧版本、试用或多尺寸,右侧栏现在量不了;过一会儿再调,或照「自查」清单自己过一遍。',
302
+ ckToolOff: "用户正在看旧版本、演示或多尺寸,右侧栏现在量不了;过一会儿再调,或照「自查」清单自己过一遍。",
292
303
  ckToolErr: '{label}:没量成({msg})',
293
304
  ck_hscroll: '超出屏幕',
294
305
  ck_clipped: '文字被截断',
@@ -313,14 +324,14 @@ window.__ModuleLoader__.load({
313
324
  ck_tabbar: '标签栏项太多',
314
325
  ck_navbar: '没有导航栏',
315
326
  ck_winctl: '被窗口按钮挡住',
316
- ck_dgsize: '图比画幅大',
327
+ ck_dgsize: "图比页面尺寸大",
317
328
  ck_dgli: '导图节点写法不对',
318
329
  ck_dgmany: '一层放太多',
319
330
  ck_dgbar: '横条超出时间轴',
320
331
  ck_dgtext: '节点字太多',
321
332
  ck_dgsmall: '字偏小',
322
333
  ck_dglink: '箭头没对着模块',
323
- ck_frame: '外框被改动',
334
+ ck_frame: "外壳被改动",
324
335
  cd_hscroll: '伸出屏幕 {px}px',
325
336
  cd_clipped: '被切掉 {px}px',
326
337
  cd_overflow: '伸出框 {px}px',
@@ -343,16 +354,16 @@ window.__ModuleLoader__.load({
343
354
  cd_homebar: '{bar} 里的字或图标伸进底部横条区 {px}px(底部留 34px:栏加 padding-bottom: 34px,预览里 env(safe-area-inset-bottom) 是 0)',
344
355
  cd_tabbar: '标签栏有 {n} 项(最多 5 项)',
345
356
  cd_navbar: '顶上 y {t}–{b}(导航栏)是空的:一级页放标题或品牌,二级页标题居中加返回',
346
- cd_winctl: '伸进{osName}窗口按钮 {px}px(外框画的、盖在页面上面:{zone}空着)',
347
- cd_dgsize: '图有 {w}×{h},画幅只有 {vw}×{vh}:把画幅改大,或者删减节点',
357
+ cd_winctl: "伸进{osName}窗口按钮 {px}px(设备框画的、盖在页面上面:{zone}空着)",
358
+ cd_dgsize: "图有 {w}×{h},页面尺寸只有 {vw}×{vh}:把尺寸改大,或者删减节点",
348
359
  cd_dgli: '字要包在 <span class="mm-node"> 里,不然连线对不上',
349
360
  cd_dgmany: '{n} 个(最多 {max} 个):合并几个或拆开',
350
361
  cd_dgbar: '从第 {from} 段起占 {span} 段,时间轴只有 {cols} 段',
351
362
  cd_dgtext: '{chars} 个字(最好 ≤ {max}):写关键词,补充放小字',
352
363
  cd_dglink: '这排箭头和上下两层的模块对不上:个数要一样,层里的递进改用不占位的箭头',
353
- cd_frame: '外框和模板对不上:外框要原样复制,插件只写在 data-slot 里面,样式都从 [data-slot="main"] 开头',
354
- cd_frameNosig: '外框({frame})没登记,查不了有没有被改:先用 save_frame 存进外框库,再从库里原样复制',
355
- cd_dgsmall: '正文约 {px}px、画幅 {vw} 宽:贴进 Word 只有约 {pt} 磅。把字放大到 {need}px 左右,或把画幅改窄',
364
+ cd_frame: "外壳和模板对不上:外壳要原样复制,插件只写在 data-slot 里面,样式都从 [data-slot=\"main\"] 开头",
365
+ cd_frameNosig: "外壳({frame})没登记,查不了有没有被改:先用 save_frame 存进外壳库,再从库里原样复制",
366
+ cd_dgsmall: "正文约 {px}px、页面宽 {vw}:贴进 Word 只有约 {pt} 磅。把字放大到 {need}px 左右,或把页面改窄",
356
367
  ckOs_mac: ' Mac ',
357
368
  ckOs_win: ' Windows ',
358
369
  ckZone_mac: '左上角 x 80、y 40 以内',
@@ -438,14 +449,14 @@ window.__ModuleLoader__.load({
438
449
  pickKeep: '〔选定方向〕留原版「{name}」({where})。同组的 {others} 挪进 drafts/ 子目录(别删),其他不动。\n',
439
450
  variantText: '给「{name}」再出两版不同方向的设计(布局或视觉风格明显不同),存成同目录下的 {b}-b.html 和 {b}-c.html(原版:{where}),会紧挨着原版排在画布上。原版和 tokens.css 别动;新版要换配色就在自己文件里覆盖变量。\n',
440
451
  exThis: '导出这一屏',
441
- demo: '试用:点页面里的按钮跳到别的屏',
442
- demoOn: '试用中',
452
+ demo: "演示:点页面里的按钮跳到别的屏",
453
+ demoOn: "演示中",
443
454
  demoHow: '点按钮跳屏',
444
455
  demoBack: '返回上一屏',
445
456
  demoRestart: '从头开始',
446
- demoExit: '退出试用',
447
- textEdit: '改字:点页面里的文字直接改,回车保存(Esc 退出)',
448
- mark: '画笔标注:在页面上画圈、箭头、写字,拼成一张图放进对话',
457
+ demoExit: "退出演示",
458
+ textEdit: "文字:点页面里的文字直接改,回车保存(Esc 退出)",
459
+ mark: "标注:在页面上画圈、箭头、写字,拼成一张图放进对话",
449
460
  mkPen: '画笔',
450
461
  mkHl: '荧光笔',
451
462
  mkArrow: '箭头',
@@ -471,7 +482,7 @@ window.__ModuleLoader__.load({
471
482
  mkCoach3: '画完点「放进对话」,再补一句要怎么改',
472
483
  mkCancel: '取消',
473
484
  mkSend: '放进对话',
474
- mkTitle: '画笔标注',
485
+ mkTitle: "标注",
475
486
  mkCopy: '复制',
476
487
  mkCopyTip: '把标注图复制到剪贴板,贴到别的地方用',
477
488
  mkCopied: '标注图复制好了,贴到别处就行',
@@ -502,10 +513,10 @@ window.__ModuleLoader__.load({
502
513
  edComp: '这屏用了组件',
503
514
  edAsk: '交给模型',
504
515
  styleAskComp: '这个元素在组件 components/{name}.html 里:所有屏都要改就改组件里的 <style>;只改这一屏就给这屏的 <c-{name}> 加 class 或 data-variant。\n',
505
- styleEdit: '调样式:点页面里的元素,拖滑块改字号、颜色、圆角、间距(Esc 退出)',
506
- styleAny: '点任意一屏里的元素调样式 · Esc 退出',
507
- styleOne: '点页面里的元素调样式 · Esc 退出',
508
- style: '调样式',
516
+ styleEdit: "样式:点页面里的元素,拖滑块改字号、颜色、圆角、间距(Esc 退出)",
517
+ styleAny: "点任意一屏里的元素调整样式 · Esc 退出",
518
+ styleOne: "点页面里的元素调整样式 · Esc 退出",
519
+ style: "样式",
509
520
  styleNone: '在页面上点一个元素',
510
521
  styleFont: '字号',
511
522
  styleWeight: '字重',
@@ -536,7 +547,7 @@ window.__ModuleLoader__.load({
536
547
  styleShareSeg: '各屏一起改',
537
548
  closeT: '关闭',
538
549
  styleOnlyHere: '只改选中的这一个',
539
- styleTok: '档位',
550
+ styleTok: "预设",
540
551
  styleAllCol: '全部 {n} 个颜色',
541
552
  styleSaveTip: '写进这个元素在源码里的 style 属性(改前改后各存一版)',
542
553
  styleAskTip: '让模型改进样式表(能用设计变量就用)',
@@ -589,12 +600,12 @@ window.__ModuleLoader__.load({
589
600
  styleAuto: '这张风格卡是首页按题材自动挑的,不是我选的:直接做全套就照它的配色和字体来(定进 tokens.css);要先出三个方向,就让方向 A 用它、B 和 C 从风格卡里另挑两种不同的感觉。我在话里另说了风格、或者有默认的品牌设计系统,就以那个为准:',
590
601
  styleRestyle: '把现在的设计换成这个风格:先改 tokens.css(配色、字体、圆角、阴影),各屏跟着变;页面里写死的颜色也换成变量;布局和文案先不动。\n',
591
602
  demoNone: '这一屏还没有跳到别的屏的按钮;可以让模型用 <a href="detail.html"> 把几屏串起来',
592
- phone: '手机看',
593
- away: '这里看不到预览:开发服务器跑在电脑本机上,从手机或别的电脑打开 DSH 时连不过去(本地 HTML 文件的设计能看)。回到那台电脑上看;想在手机上看,就在电脑上点「在手机上看」扫码(同一个 Wi-Fi)。',
603
+ phone: "手机预览",
604
+ away: "这里看不到预览:开发服务器跑在电脑本机上,从手机或别的电脑打开 DSH 时连不过去(本地 HTML 文件的设计能看)。回到那台电脑上看;想在手机上看,就在电脑上点「手机预览」扫码(同一个 Wi-Fi)。",
594
605
  remoteFail: '这一屏没能传过来(连接断了,或图片太大)。点「刷新」再试。',
595
606
  phoneStarting: '正在打开…',
596
607
  phoneIntro: '手机扫码看这套设计,能点着跳屏。同一个 Wi-Fi 里拿到链接的设备都能打开。',
597
- phoneStart: '开始手机看',
608
+ phoneStart: "开启手机预览",
598
609
  phoneSeen: '手机已打开',
599
610
  phoneCopy: '复制链接',
600
611
  phoneCopied: '链接已复制,可以发到手机上打开',
@@ -604,16 +615,16 @@ window.__ModuleLoader__.load({
604
615
  phoneTrouble: '打不开?',
605
616
  phoneOnPill: '开着',
606
617
  phoneHow2: '用手机扫一下(要连同一个 Wi-Fi)',
607
- pubExp: '实验',
618
+ pubExp: "测试版",
608
619
  pubKnow: '发之前知道这几件事',
609
620
  pkCC0s: 'CC0 · 随便用',
610
621
  pkBYs: 'CC BY · 要署名',
611
- pkGoZip: '检查并打成 zip',
622
+ pkGoZip: "检查并导出",
612
623
  demoOne: '一个文件,双击就能开',
613
624
  demoFileSub: '{n} 屏 · 不用装东西',
614
- demoHtmlTip2: '打开后能点着按钮跳屏;外壳、全屏在那个页面里自己切。',
625
+ demoHtmlTip2: "打开后能点着按钮跳屏;设备框、全屏在那个页面里自己切。",
615
626
  demoZipT: '发整套文件,对方能接着改',
616
- demoZipTip: '打成 zip 设计包:别人拖进设计台就能打开、接着做。',
627
+ demoZipTip: "导出设计包(.zip):别人拖进设计台就能打开、接着做。",
617
628
  demoNote: '导出的是现在这一版',
618
629
  demoNoteV: '导出的是第 {n} 版',
619
630
  shCatsH: '分类',
@@ -627,17 +638,17 @@ window.__ModuleLoader__.load({
627
638
  shS2: '自动检查',
628
639
  shS3: '连 GitHub 投稿',
629
640
  shPublic: '交上去是公开的',
630
- pub: '公网链接(实验)',
641
+ pub: "在线链接(测试版)",
631
642
  pubWhat: '发个链接给不在身边的人看',
632
643
  pubP1: '对方不用连同一个 Wi-Fi,微信里点开就能看、能点着换屏',
633
644
  pubP2: '只放这套设计的整套演示,电脑上别的东西都碰不到',
634
645
  pubP3: '2 小时后自动关,也能随时关;关了链接马上失效',
635
646
  pubP4: '走 Cloudflare 的免费临时通道(trycloudflare.com),不经过我们的服务器',
636
647
  pubGo: '生成链接',
637
- pubOld: '正在看旧版本:公网链接发的是现在的设计。先回到当前版本再生成。',
648
+ pubOld: "正在看旧版本:在线链接发的是现在的设计。先回到当前版本再生成。",
638
649
  pubStarting: '正在连 Cloudflare…',
639
650
  pubStartingFine: '一般 10 秒左右',
640
- pubReady: '公网可见',
651
+ pubReady: "链接已生效",
641
652
  pubLeft: '还剩 {t}',
642
653
  pubViews: '打开过 {n} 次',
643
654
  pubHow: '微信、浏览器里打开都行',
@@ -675,7 +686,7 @@ window.__ModuleLoader__.load({
675
686
  pubAgain: '再生成一个(链接会变)',
676
687
  pubTrouble: '对方打不开?',
677
688
  pubHelp: '刚生成的链接要等几秒才打得开。微信里提示风险或打不开,让对方点右上角,选「在浏览器打开」。电脑睡着、合上盖子,链接也会断。',
678
- pubOff: '公网链接关了:{why}',
689
+ pubOff: "在线链接关了:{why}",
679
690
  pubWhyExpired: '到 2 小时了',
680
691
  pubWhyDropped: '通道断了',
681
692
  pubWhyMoved: '换了设计',
@@ -691,7 +702,7 @@ window.__ModuleLoader__.load({
691
702
  refresh: '刷新',
692
703
  external: '在浏览器里打开',
693
704
  more: '更多',
694
- demoShort: '试用',
705
+ demoShort: "演示",
695
706
  // 浮块按钮悬停说明:名字下面这一句
696
707
  dPick: '点一个元素或拖出一块区域,发给模型改',
697
708
  dText: '点页面里的字直接改,回车保存',
@@ -701,12 +712,12 @@ window.__ModuleLoader__.load({
701
712
  dLook: '改配色、字体,或整套换个风格',
702
713
  dCheck: '找出文字溢出、重叠、看不清、按钮太小',
703
714
  dCheckN: '上次找到 {n} 个问题,点开看',
704
- an: '业务标注',
715
+ an: "需求说明",
705
716
  anEmpty: '新做的设计模型会自动写,已有的设计可以让它补上。',
706
- anEmptyT: '还没有业务标注',
707
- anMake: '让模型标注',
717
+ anEmptyT: "还没有需求说明",
718
+ anMake: "让模型写需求说明",
708
719
  anFix: '让模型改',
709
- anBad: '标注文件有 {n} 处问题:',
720
+ anBad: "需求说明文件有 {n} 处问题:",
710
721
  anLost: '{n} 条未定位',
711
722
  anLostTag: '未定位',
712
723
  anOpenTag: '待确认',
@@ -719,20 +730,20 @@ window.__ModuleLoader__.load({
719
730
  anT_state: '状态边界',
720
731
  anT_logic: '逻辑',
721
732
  anT_flow: '流程',
722
- anT_metric: '口径',
723
- anT_data: '口径',
733
+ anT_metric: "指标口径",
734
+ anT_data: "数据字段",
724
735
  anMore: '另有 {n} 条',
725
736
  dExport: '存成图片、PDF 或 PPT',
726
737
  dZoom: '按住 {mod} 滚动也能缩放',
727
738
  dScreen: '换一屏;屏多时顶上能搜',
728
739
  dCanvas: '回到画布,看全部的屏',
729
740
  toolsT: '工具',
730
- textShort: '改字',
731
- styleShort: '调样式',
741
+ textShort: "文字",
742
+ styleShort: "样式",
732
743
  askSay: '说一句或输命令',
733
744
  dCode: '把设计做成 React、Vue、小程序等代码,逐像素和设计比',
734
745
  dHistory: '看之前的版本、和现在比、退回去',
735
- dAskSay: '输命令(导出、体检…),或说一句让模型改',
746
+ dAskSay: "输命令(导出、检查…),或说一句让模型改",
736
747
  capStop: '停下',
737
748
  dCapStop: '让模型停下这一轮',
738
749
  capDone: '做好了',
@@ -742,13 +753,13 @@ window.__ModuleLoader__.load({
742
753
  checkTab: '排版问题',
743
754
  shareT: '分享',
744
755
  exportT: '导出',
745
- phoneShort: '手机看',
746
- pubShort: '公网链接',
756
+ phoneShort: "手机预览",
757
+ pubShort: "在线链接",
747
758
  demoHtml: 'HTML 演示',
748
759
  subT: '投稿到市场',
749
760
  demoHtmlGo: '导出 HTML 演示',
750
761
  pageSet: '页面设置',
751
- dPageSet: '类型、画幅、多尺寸、深色模式、刷新…',
762
+ dPageSet: "类型、页面尺寸、多尺寸、深色模式、刷新…",
752
763
  scrSearch: '搜屏名',
753
764
  stMenuT: '「{name}」的状态',
754
765
  stDefault: '默认',
@@ -761,36 +772,36 @@ window.__ModuleLoader__.load({
761
772
  scrNone: '没有对得上的屏',
762
773
  scrCount: '{n} / {m} 屏',
763
774
  scrKeyPick: '选',
764
- scrKeyOpen: '单看',
775
+ scrKeyOpen: "单页查看",
765
776
  nScr: '{n} 屏',
766
- dShare: '手机看、公网链接、HTML 演示、投稿到市场',
777
+ dShare: "手机预览、在线链接、HTML 演示、投稿到市场",
767
778
  openHtml: '打开 HTML…',
768
779
  xImg: '图片',
769
780
  xImgStyle: '图片样式',
770
781
  xImgNote: '存成 PNG,放在设计所在的文件夹',
771
782
  xImgGo: '导出图片',
772
783
  dCapTools: '点一下回到工具条',
773
- markShort: '画笔',
784
+ markShort: "标注",
774
785
  canvasShort: '画布',
775
786
  sizesShort: '多尺寸',
776
- fitShort: "按画幅显示",
777
- fitTip: "网页单看、演示、对比时按画幅整屏缩放显示(写了画幅默认就是这样);关掉就铺满右侧栏,宽度跟着侧栏变",
778
- look: '外观',
787
+ fitShort: "按尺寸缩放",
788
+ fitTip: "网页单页查看、演示、对比时按尺寸整页缩放显示(写了尺寸默认就是这样);关掉就铺满右侧栏,宽度跟着侧栏变",
789
+ look: "主题",
779
790
  deliver: '导出',
780
- checkShort: '体检',
791
+ checkShort: "检查",
781
792
  zoomT: '缩放',
782
793
  zoomReal: '实际大小',
783
794
  actX: '导出',
784
795
  actV: '再出两版',
785
- actO: '单看',
796
+ actO: "单页查看",
786
797
  screensT: '换一屏',
787
798
  screensN: '{name} · {n} 屏',
788
799
  screensHidden: '还有 {n} 屏没显示(最多显示 {max} 屏,最新的优先)',
789
800
  canvasAsleep: '挪近就加载',
790
- checkPartial: '屏太多,这次只体检了画布上加载着的 {n} 屏',
801
+ checkPartial: "屏太多,这次只检查了画布上加载着的 {n} 屏",
791
802
  phoneOnTip: '手机预览开着',
792
- lookSet: '整套',
793
- lookStyle: '换风格',
803
+ lookSet: "全局样式",
804
+ lookStyle: "风格",
794
805
  lookBrand: '品牌',
795
806
  lookTokTip: '点一下放进对话,接着说怎么改',
796
807
  fpRowTip: '点开换字体:字体库(免费可商用)或电脑自带的',
@@ -820,10 +831,10 @@ window.__ModuleLoader__.load({
820
831
  lookNoType: '没有字体、字号变量。',
821
832
  lookNoShape: '没有圆角、间距、阴影变量。',
822
833
  lookTwHint: '拖一下,所有屏一起变',
823
- lookTw: '滑块',
834
+ lookTw: "微调",
824
835
  lookTwNone: '比如圆润度、留白、主色,拖一下所有屏一起变',
825
- twNoneT: '还没有滑块',
826
- twBadT: '滑块文件有问题',
836
+ twNoneT: "还没有微调项",
837
+ twBadT: "微调项文件有问题",
827
838
  twAll: '整体',
828
839
  twColor: '颜色',
829
840
  twFeel: '质感',
@@ -841,7 +852,7 @@ window.__ModuleLoader__.load({
841
852
  stUseTip: '让模型把现在的设计换成它:只换配色、字体、圆角,布局和文字不动',
842
853
  stMineNone: '还没存过风格',
843
854
  stMineNoneTip: '改好一套后点上面「存成我的风格」,以后做新设计一键用。',
844
- lookAskHead: '〔外观〕我在右侧外观面板里把这几个设计变量改成了:',
855
+ lookAskHead: "〔外观〕我在右侧主题面板里把这几个设计变量改成了:",
845
856
  lookAskTail: '照这个改:改 tokens.css(或样式里 :root 上)的默认值,页面里写死的同一种颜色也换成变量。',
846
857
  lookRef: '参考图…',
847
858
  el_button: '按钮', el_a: '链接', el_img: '图片', el_h: '标题', el_p: '段落', el_input: '输入框', el_li: '列表项', el_ul: '列表', el_nav: '导航', el_header: '顶栏', el_footer: '底栏', el_text: '文字', el_icon: '图标', el_card: '卡片', el_tag: '标签', el_avatar: '头像', el_box: '区块',
@@ -851,7 +862,7 @@ window.__ModuleLoader__.load({
851
862
  tkn_space: '间距', tkn_gutter: '页边距',
852
863
  tkn_fHead: '标题字体', tkn_fBody: '正文字体', tkn_fMono: '等宽字体', tkn_fArt: '书法字体',
853
864
  tkn_shadow: '阴影', tkn_light: '浅', tkn_dark: '深', tkn_hover: '悬停',
854
- sizesNoShort: '固定画幅',
865
+ sizesNoShort: "固定尺寸",
855
866
  working: '模型正在工作',
856
867
  asking: '模型在等你回答(在对话里)',
857
868
  writing: '正在写 {file}',
@@ -862,29 +873,29 @@ window.__ModuleLoader__.load({
862
873
  stNew: '正在做第 {n} 屏',
863
874
  stEdit: '正在改「{name}」',
864
875
  stWriteAny: '正在改文件',
865
- stCheck: '正在体检',
876
+ stCheck: "正在检查",
866
877
  stLook: '正在看效果',
867
878
  stPreview: '正在打开预览',
868
879
  stBrand: '正在提取品牌',
869
880
  stCode: '正在转成代码',
870
881
  stCompare: '正在逐像素对比',
871
- implCmp: '和做出来的比',
872
- dImplCmp: '把做出来的真页面和设计稿放在一起比,差在哪一眼看出来',
882
+ implCmp: "还原度对比",
883
+ dImplCmp: "把开发出来的实际页面和设计稿放在一起比,差在哪一眼看出来",
873
884
  implDesign: '设计稿',
874
- implSide: '做出来的',
875
- implHidden: '外框里的 main 露不出来:画幅改成外框自己的 {w}×{h} 再看',
876
- implOpening: '正在打开做出来的页面…',
877
- implNeed: '在上面填做出来的页面地址(开发服务器要先跑起来)',
885
+ implSide: "实际页面",
886
+ implHidden: "外壳里的主区域露不出来:尺寸改成外壳自己的 {w}×{h} 再看",
887
+ implOpening: "正在打开实际页面…",
888
+ implNeed: "在上面填实际页面的地址(开发服务器要先跑起来)",
878
889
  implBadUrl: '地址不对:只认本机的页面,比如 http://localhost:5173/login、端口 5173,或本地 HTML 文件',
879
- implSelf: '这是设计稿自己的预览地址:填做出来的那个项目的',
890
+ implSelf: "这是设计稿自己的预览地址:填开发出来的那个项目的",
880
891
  implHttps: 'https 的开发服务器嵌不进来:换成 http 地址',
881
- implOpenFail: '打不开做出来的页面({msg})',
882
- implCmpFail: '没比成:做出来的页面打得开吗?开发服务器起来了吗?',
883
- implCmpHidden: '没比成:这个画幅下外框里的 main 露不出来',
892
+ implOpenFail: "打不开实际页面({msg})",
893
+ implCmpFail: "没比成:实际页面打得开吗?开发服务器起来了吗?",
894
+ implCmpHidden: "没比成:这个尺寸下外壳里的主区域露不出来",
884
895
  implScore: '比完了:差异 {pct}%',
885
- implDone: '模型刚和做出来的比过「{name}」:差异 {pct}%',
886
- implSee: '和做出来的比',
887
- implUrl: '做出来的页面地址',
896
+ implDone: "模型刚和实际页面比过「{name}」:差异 {pct}%",
897
+ implSee: "还原度对比",
898
+ implUrl: "实际页面地址",
888
899
  implGo: '打开',
889
900
  dImplUrl: '点一下换地址',
890
901
  implPct: '差异 {pct}%',
@@ -892,32 +903,32 @@ window.__ModuleLoader__.load({
892
903
  implByModel: '模型比的',
893
904
  implByYou: '你点的',
894
905
  implRe: '重新比',
895
- dImplRe: '照现在的画幅、深浅色逐像素比一次(和 compare_design 一样)',
906
+ dImplRe: "照现在的尺寸、深浅色逐像素比一次(和 compare_design 一样)",
896
907
  implHere: '比这一页',
897
908
  implBlocked: '外链不在对比里打开:{href}',
898
- dImplHere: '做出来的页面换到了 {path}(上次的分数、红框是原来那页的):点这里改成和这一页比',
909
+ dImplHere: "实际页面换到了 {path}(上次的分数、差异框是原来那页的):点这里改成和这一页比",
899
910
  implRunning: '在比…',
900
911
  implExit: '退出对比',
901
912
  implShotT: '上次比对的拼图',
902
913
  implShotGone: '拼图没了(重开过 DSH):点「重新比」再出一张',
903
- implShotHow: '设计稿 | 做出来的 | 差异;点任意处关掉',
904
- implSplit: '拖线',
905
- dImplSplit: '左边设计稿、右边做出来的,拖中间的把手',
914
+ implShotHow: "设计稿 | 实际页面 | 差异;点任意处关掉",
915
+ implSplit: "卷帘",
916
+ dImplSplit: "左边设计稿、右边实际页面,拖中间的把手",
906
917
  implOver: '叠加',
907
- dImplOver: '做出来的半透明盖在设计稿上',
918
+ dImplOver: "实际页面半透明盖在设计稿上",
908
919
  implSideBy: '并排',
909
920
  dImplSide: '两个并排,滚动同步',
910
921
  implOp: '透明度',
911
- dImplOp: '做出来的那层有多实',
912
- implDiff: '反色',
922
+ dImplOp: "实际页面那层的透明度",
923
+ implDiff: "差异高亮",
913
924
  dImplDiff: '一样的地方发黑,对不上的地方发亮',
914
- implBoxes: '红框',
915
- implBoxN: '红框 {n}',
925
+ implBoxes: "差异框",
926
+ implBoxN: "差异框 {n}",
916
927
  implHow: '怎么比',
917
- dImplBoxes: '标出上次比对差得最多的几块(同样画幅、顶上一屏时)',
928
+ dImplBoxes: "标出上次比对差得最多的几块(同样尺寸、顶上一屏时)",
918
929
  stPhotos: '正在挑照片',
919
930
  stStyle: '正在挑风格',
920
- stFrame: '正在存外框',
931
+ stFrame: "正在保存外壳",
921
932
  stShell: '正在跑命令',
922
933
  stRead: '正在看文件',
923
934
  stWeb: '正在查资料',
@@ -934,7 +945,7 @@ window.__ModuleLoader__.load({
934
945
  failed: '没放进去:{msg}',
935
946
  openFailed: '打不开:{msg}',
936
947
  headerTip: '设计台',
937
- tweaks: '调节滑块',
948
+ tweaks: "微调项",
938
949
  twMake: '让模型做几个',
939
950
  twFix: '让模型改',
940
951
  twMakeText: '〔调节滑块〕给这套设计做 3–5 个调节滑块:挑最值得试的维度(比如留白、圆角、主色、卡片排法),照 ui-design 技能「调节滑块」一节写进设计目录的 tweaks.json,把样式接上,做完用 check_design 查一遍。',
@@ -984,8 +995,8 @@ window.__ModuleLoader__.load({
984
995
  hoVerify: '做完怎么验',
985
996
  hoRowWait: '等着',
986
997
  hoRowUrl: '还没比',
987
- hoRowSee: '打开这屏,和做出来的并排比',
988
- hoRowGo: '填上做出来的页面地址,和这一屏比',
998
+ hoRowSee: "打开这屏,和实际页面并排比",
999
+ hoRowGo: "填上实际页面地址,和这一屏比",
989
1000
  hoSteps: '转成代码的三步',
990
1001
  hoS1: '选怎么转',
991
1002
  hoS2: '模型在做',
@@ -1013,7 +1024,7 @@ window.__ModuleLoader__.load({
1013
1024
  libOpen: '打开设计库',
1014
1025
  libClose: '返回',
1015
1026
  libFail: '没办成:{msg}',
1016
- mkZip: '朋友给你的设计 zip,直接拖进右侧栏就能用。',
1027
+ mkZip: "朋友给你的设计包(.zip),直接拖进右侧栏就能用。",
1017
1028
  mkLoading: '正在读市场…',
1018
1029
  tplStartHead: '从模板开始',
1019
1030
  tplStartMore: '去市场 →',
@@ -1076,7 +1087,7 @@ window.__ModuleLoader__.load({
1076
1087
  mkErr_stale: '这一套刚出了新版,再看一眼新版再点',
1077
1088
  worksNoneT: '还没有作品',
1078
1089
  worksNoneD: '做过的每一套设计都会自动出现在这里。',
1079
- worksNoneN: '也可以把 HTML 文件、设计 zip 直接拖进来',
1090
+ worksNoneN: "也可以把 HTML 文件、设计包(.zip)直接拖进来",
1080
1091
  worksFirst: '做第一套',
1081
1092
  worksErrT: '作品列表没读出来',
1082
1093
  mkErrT: '市场没打开',
@@ -1092,7 +1103,7 @@ window.__ModuleLoader__.load({
1092
1103
  wkReveal: '在文件夹里显示',
1093
1104
  wkPin: '置顶',
1094
1105
  wkUnpin: '取消置顶',
1095
- wkZip: '打成 zip',
1106
+ wkZip: "导出设计包",
1096
1107
  wkHide: '移出列表',
1097
1108
  wkHideGo: '移出',
1098
1109
  wkMore: '更多操作',
@@ -1130,7 +1141,7 @@ window.__ModuleLoader__.load({
1130
1141
  phoneKeep: '关掉面板链接还在,点「停止分享」才关。',
1131
1142
  mkFontShort: '字体授权另计。',
1132
1143
  phoneAbout: '同一个 Wi-Fi 里、拿到这个码或链接的设备才打得开。你这边一改,手机自动刷新;电脑上点哪屏,手机跟着跳。关掉面板链接还在,点「停止分享」才关;30 分钟没人看也会自动关。',
1133
- anHelp: '模型读完设计,把规则、状态、流程写成一条条标注;点一条,页面上找到它。',
1144
+ anHelp: "模型读完设计,把规则、状态、流程写成一条条需求说明;点一条,页面上找到它。",
1134
1145
  hpLookSet: '点色块直接改颜色,所有屏一起变,点「保存」才写进文件;字体、形状点一项会放进对话,接着说怎么改。',
1135
1146
  histHelp: '模型每轮改完、你每次手调保存,都会自动存一版:能和现在并排比,也能退回去。',
1136
1147
  data: '数据',
@@ -1169,17 +1180,17 @@ window.__ModuleLoader__.load({
1169
1180
  inStylesHow: '点一张就用上:风格放进输入框,发出去照它做',
1170
1181
  inStylesNone: '还没存过:打开一套设计点右上「存成我的风格」,或在市场「风格」里点 +',
1171
1182
  wkDesigns: '设计',
1172
- wkFrames: '外框',
1183
+ wkFrames: "外壳",
1173
1184
  wkSearch: '搜作品',
1174
- wkSearchFr: '搜外框',
1175
- wkFrameUse: '用这个外框做新设计',
1185
+ wkSearchFr: "搜索外壳",
1186
+ wkFrameUse: "用这个外壳做新设计",
1176
1187
  frRename: '改名',
1177
1188
  frDel: '删除',
1178
- frDelTip: '删掉这个外框?用它做过的设计不受影响',
1179
- frDeleted: '外框已删除',
1189
+ frDelTip: "删除这个外壳?用它做过的设计不受影响",
1190
+ frDeleted: "外壳已删除",
1180
1191
  frNameBad: '名字要写,30 个字以内',
1181
- frNoneT: '还没有外框',
1182
- frNoneD: '外框是别的软件的界面壳,比如浏览器插件弹窗、某个 App 的侧栏。发张截图给模型,说「照这个做个外框」,存好就在这儿;做设计时原样套上,只改中间。',
1192
+ frNoneT: "还没有外壳",
1193
+ frNoneD: "外壳是别的软件的界面框架,比如浏览器插件弹窗、某个 App 的侧栏。发张截图给模型,说「照这个做个外壳」,存好就在这儿;做设计时原样套上,只改中间。",
1183
1194
  retry: '重试',
1184
1195
  scrFailT: '这一屏打不开',
1185
1196
  scrFailMissing: '{file} 找不到了,可能被改名或删掉了。',
@@ -1204,7 +1215,7 @@ window.__ModuleLoader__.load({
1204
1215
  zipWhy_big: '解开后太大了',
1205
1216
  zipWhy_count: '文件太多了',
1206
1217
  zipWhy_dup: '有重名的文件',
1207
- zipNoManifest: '包里没有 design.json:要用设计台「打成 zip」导出的设计包',
1218
+ zipNoManifest: "包里没有 design.json:要用设计台「导出设计包」导出的设计包",
1208
1219
  zipRejected: '这个设计包没过检查,没有打开:',
1209
1220
  zipNotOpened: '设计包没打开',
1210
1221
  zipOpened: '已打开「{name}」:在输入框里说说要改成什么,比如「改成我的奶茶店,主色换成抹茶绿」',
@@ -1217,13 +1228,13 @@ window.__ModuleLoader__.load({
1217
1228
  chipTpl: '模板 · {name}',
1218
1229
  licCC0: 'CC0 随便用',
1219
1230
  licBY: 'CC BY 要署名',
1220
- pkTitle: '打成 zip',
1231
+ pkTitle: "导出设计包",
1221
1232
  pkTip: '发给朋友,对方拖进设计台就能接着改。打包前按设计库的规矩查一遍:不能有脚本、不能连外网、不能有真的手机号和邮箱。',
1222
1233
  pkLicense: '授权',
1223
1234
  pkCC0: 'CC0:随便用,商用也行,不用署名',
1224
1235
  pkBY: 'CC BY:随便用,要署上你的名字',
1225
1236
  pkWho: '署什么名(你的名字或网名)',
1226
- pkGo: '检查并打包',
1237
+ pkGo: "检查并导出",
1227
1238
  pkChecking: '正在检查…',
1228
1239
  pkOk: '已存到「下载」:{name}',
1229
1240
  pkReveal: '在文件夹里显示',
@@ -1313,7 +1324,7 @@ window.__ModuleLoader__.load({
1313
1324
  askKindsAll: 'All types',
1314
1325
  askKindsLess: 'Fewer',
1315
1326
  emptySub: 'Describe it in a sentence. Screens appear on the canvas one by one; click anything to change it, then turn it into code.',
1316
- homeTab: 'Start',
1327
+ homeTab: "Home",
1317
1328
  askPh: 'e.g. {ex}',
1318
1329
  askTab: 'use this',
1319
1330
  exAuto: 'An ordering mini program for a corner noodle shop, 3 screens, warm hand-made style',
@@ -1325,7 +1336,18 @@ window.__ModuleLoader__.load({
1325
1336
  exPoster: 'Poster for a weekend night run in the city, fresh sporty style',
1326
1337
  exSlides: 'Five-slide launch deck: problem, solution, numbers, pricing, next steps',
1327
1338
  exEmail: 'Birthday-month offer email for members: one big image, a short note, one button',
1328
- exDiagram: 'A mind map for "Product management 101": user research, requirements, prototyping, data, project management',
1339
+ exDiagram: 'A technical roadmap for the grant proposal "Smart urban flood warning": background → key questions → three research tasks → methods → expected results',
1340
+ exDgProposal: 'A technical roadmap for the teaching award application "AI literacy courses for K-12": problem → research content → implementation → evaluation → rollout',
1341
+ exDgFramework: 'A research framework for "Building reading habits in rural primary schools": theory, subjects, research content, methods, expected results',
1342
+ exDgArch: 'A system architecture diagram for a neighborhood group-buying mini program: client, API gateway, product / order / payment services, database and cache',
1343
+ exDgMindmap: 'A mind map for "Product management 101": user research, requirements, prototyping, data, project management',
1344
+ exDgRoadmap: 'Next year\'s product roadmap for a budgeting app: four quarters, each with goals and key features',
1345
+ askDgSubs: 'Which diagram',
1346
+ dgProposal: 'Technical roadmap (grant proposal)',
1347
+ dgFramework: 'Research framework',
1348
+ dgArch: 'Architecture',
1349
+ dgMindmap: 'Mind map',
1350
+ dgRoadmap: 'Product roadmap',
1329
1351
  exDshplugin: "A DSH plugin \"Pomodoro\": a timer and today's log in a session tab",
1330
1352
  exFramed: "Make a Chrome extension popup frame from this screenshot, then design \"Read later\" inside it",
1331
1353
  askKindLine: 'Type: {k}',
@@ -1379,7 +1401,7 @@ window.__ModuleLoader__.load({
1379
1401
  pickOne: 'Click an element or drag a region · Esc to cancel',
1380
1402
  pickArea: 'Selected region',
1381
1403
  chipOne: '1 element',
1382
- chipMark: 'Markup',
1404
+ chipMark: "Annotation",
1383
1405
  chipText: 'Text edit',
1384
1406
  chipStyle: 'Style changes',
1385
1407
  chipVariant: 'Two more takes',
@@ -1390,8 +1412,8 @@ window.__ModuleLoader__.load({
1390
1412
  chipTweak: 'Tweaked values',
1391
1413
  chipTwMake: 'Make tweaks',
1392
1414
  chipTwFix: 'Fix tweaks',
1393
- chipAnMake: 'Write business notes',
1394
- chipAnFix: 'Fix business notes',
1415
+ chipAnMake: "Write requirement notes",
1416
+ chipAnFix: "Fix requirement notes",
1395
1417
  chipAn: 'Note {id}',
1396
1418
  chipSysEx: 'Extract design system',
1397
1419
  chipSysAp: 'Apply design system',
@@ -1426,10 +1448,10 @@ window.__ModuleLoader__.load({
1426
1448
  szStd: 'Standard',
1427
1449
  szLarge: 'Large',
1428
1450
  kind: 'Type',
1429
- canvasSize: 'Canvas',
1451
+ canvasSize: "Size",
1430
1452
  sizeCustom: 'Custom…',
1431
1453
  sizeDefault: 'default',
1432
- sizeApply: 'OK',
1454
+ sizeApply: "Apply",
1433
1455
  sizeReset: 'Reset',
1434
1456
  sizeBad: 'Width and height: 100–8000',
1435
1457
  szCustom: 'Custom',
@@ -1441,7 +1463,7 @@ window.__ModuleLoader__.load({
1441
1463
  kindPoster: 'Poster',
1442
1464
  kindSlides: 'Slides',
1443
1465
  kindEmail: 'Email',
1444
- kindDiagram: 'Diagram',
1466
+ kindDiagram: "Roadmaps & diagrams",
1445
1467
  kindDshplugin: "DSH plugin",
1446
1468
  kindFramed: "Custom frame",
1447
1469
  tokens: 'Design tokens',
@@ -1455,8 +1477,8 @@ window.__ModuleLoader__.load({
1455
1477
  gRadius: 'Radii',
1456
1478
  gShadow: 'Shadows',
1457
1479
  gOther: 'Other',
1458
- exFrame: '{name} · in frame',
1459
- exRaw: '{name} · plain',
1480
+ exFrame: "{name} · with device frame",
1481
+ exRaw: "{name} · without device frame",
1460
1482
  exLong: '{name} · full page',
1461
1483
  exThisName: 'This screen',
1462
1484
  exShow: 'Showcase of all screens',
@@ -1476,8 +1498,8 @@ window.__ModuleLoader__.load({
1476
1498
  xoWarn: 'Some content would be cut off. Have a look first',
1477
1499
  xoChecking: 'Measuring pages…',
1478
1500
  xoClean: 'Nothing will be cut off.',
1479
- xoStNoCheck: 'Only the default states were checked above; the other {n} pages (other states) were not, and longer content there may be cut off. If unsure, choose “Full page”.',
1480
- xoOver: '{n} page(s) are larger than the canvas and will be cut off',
1501
+ xoStNoCheck: "Only the default states were checked above; the other {n} pages (other states) were not, and longer content there may be cut off. If unsure, choose “Full-length page”.",
1502
+ xoOver: "{n} page(s) are larger than the page size and will be cut off",
1481
1503
  xoLong: '{n} long page(s): only the first screen is captured',
1482
1504
  xoLongPpt: '{n} long page(s): the PPT only captures the first screen',
1483
1505
  xoMoved: '{n} page(s) are scrolled away from the top: only what is showing now is captured',
@@ -1492,8 +1514,8 @@ window.__ModuleLoader__.load({
1492
1514
  xoJobGone: 'The export was interrupted (it waited too long or DSH restarted). Please export again',
1493
1515
  styleMoved: 'The design changed, so these style tweaks were not saved',
1494
1516
  xoCut: 'At most 1000 pages per export; the last {n} were left out',
1495
- xoResize: 'Fit canvas to content ({size})',
1496
- xoFull: 'Switch to full page',
1517
+ xoResize: "Fit size to content ({size})",
1518
+ xoFull: "Switch to full-length page",
1497
1519
  xoWhich: 'Which screens',
1498
1520
  xoAll: 'All {n} screens',
1499
1521
  xoAllSub: '{n} on the canvas, {m} pages this time',
@@ -1512,15 +1534,15 @@ window.__ModuleLoader__.load({
1512
1534
  xoAsImgPpt: 'each slide is an image',
1513
1535
  xoSzLong: '{w} wide · long image',
1514
1536
  xoLayout: 'Page size',
1515
- xoAuto: 'Match canvas',
1537
+ xoAuto: "Match page size",
1516
1538
  xoA3: 'A3 landscape',
1517
1539
  xoCustom: 'Custom…',
1518
1540
  xoCustomPh: 'WxH, e.g. 1920x1080',
1519
- xoView: 'Each page shows',
1541
+ xoView: "Capture",
1520
1542
  xoViewAuto: 'Auto',
1521
- xoViewOne: 'One screen',
1522
- xoViewPage: 'Full page',
1523
- xoViewH: 'Set height…',
1543
+ xoViewOne: "Current viewport",
1544
+ xoViewPage: "Full-length page",
1545
+ xoViewH: "Custom height…",
1524
1546
  xoViewHPh: 'Height in px, e.g. 1200',
1525
1547
  xoCols: 'Per page',
1526
1548
  xoCols1: '1 screen',
@@ -1575,7 +1597,7 @@ window.__ModuleLoader__.load({
1575
1597
  ck_tabbar: 'Too many tabs',
1576
1598
  ck_navbar: 'No navigation bar',
1577
1599
  ck_winctl: 'Under the window buttons',
1578
- ck_dgsize: 'Diagram bigger than the canvas',
1600
+ ck_dgsize: "Diagram bigger than the page size",
1579
1601
  ck_dgli: 'Mind map node written wrong',
1580
1602
  ck_dgmany: 'Too many in one level',
1581
1603
  ck_dgbar: 'Bar runs past the timeline',
@@ -1606,7 +1628,7 @@ window.__ModuleLoader__.load({
1606
1628
  cd_tabbar: 'the tab bar has {n} items (5 at most)',
1607
1629
  cd_navbar: 'nothing at y {t}–{b} (the navigation bar): top-level pages show a title or brand, other pages a centered title and a back button',
1608
1630
  cd_winctl: '{px}px under the{osName}window buttons (the frame draws them on top: keep {zone} clear)',
1609
- cd_dgsize: 'the diagram is {w}×{h} but the canvas is {vw}×{vh}: make the canvas bigger or trim nodes',
1631
+ cd_dgsize: "the diagram is {w}×{h} but the page size is {vw}×{vh}: make the size bigger or trim nodes",
1610
1632
  cd_dgli: 'wrap the text in <span class="mm-node">, or the lines will not meet it',
1611
1633
  cd_dgmany: '{n} of them ({max} at most): merge some or split them up',
1612
1634
  cd_dgbar: 'starts at period {from} and spans {span}, but the timeline has only {cols}',
@@ -1614,7 +1636,7 @@ window.__ModuleLoader__.load({
1614
1636
  cd_dglink: 'this row of arrows does not line up with the modules above and below: use as many arrows as modules, and arrows that take no space inside a layer',
1615
1637
  cd_frame: 'the frame no longer matches its template: copy the frame as is, write the plugin only inside data-slot, and start every style rule with [data-slot="main"]',
1616
1638
  cd_frameNosig: 'the frame ({frame}) is not registered, so changes to it cannot be checked: save it to the frame library with save_frame, then copy it from there as is',
1617
- cd_dgsmall: 'body text is about {px}px on a {vw}px-wide canvas: about {pt}pt once placed in a Word page. Enlarge it to about {need}px or make the canvas narrower',
1639
+ cd_dgsmall: "body text is about {px}px on a {vw}px-wide page: about {pt}pt once placed in a Word page. Enlarge it to about {need}px or make the page narrower",
1618
1640
  ckOs_mac: ' Mac ',
1619
1641
  ckOs_win: ' Windows ',
1620
1642
  ckZone_mac: 'the top-left 80×40',
@@ -1700,14 +1722,14 @@ window.__ModuleLoader__.load({
1700
1722
  pickKeep: '[Direction picked] Keep the original "{name}" ({where}). Move the other takes in its group ({others}) into a drafts/ subfolder (don\'t delete them) and leave everything else as is.\n',
1701
1723
  variantText: 'Make two alternative designs of "{name}" in clearly different directions (layout or visual style). Save them next to it as {b}-b.html and {b}-c.html (original: {where}); they will sit right after the original on the canvas. Leave the original and tokens.css unchanged; override variables inside the new files if they need other colors.\n',
1702
1724
  exThis: 'Export this screen',
1703
- demo: 'Play: tap buttons in the page to move between screens',
1704
- demoOn: 'Playing',
1725
+ demo: "Present: tap buttons in the page to move between screens",
1726
+ demoOn: "Presenting",
1705
1727
  demoHow: 'tap buttons to move',
1706
1728
  demoBack: 'Back',
1707
1729
  demoRestart: 'Start over',
1708
- demoExit: 'Stop playing',
1730
+ demoExit: "Stop presenting",
1709
1731
  textEdit: 'Edit text: click any text in the page, Enter to save (Esc to stop)',
1710
- mark: 'Mark up: draw circles, arrows and notes on the page, then hand it to the model as one image',
1732
+ mark: "Annotate: draw circles, arrows and notes on the page, then hand it to the model as one image",
1711
1733
  mkPen: 'Pen',
1712
1734
  mkHl: 'Highlighter',
1713
1735
  mkArrow: 'Arrow',
@@ -1733,21 +1755,21 @@ window.__ModuleLoader__.load({
1733
1755
  mkCoach3: 'Then click "Add to chat" and add a line on what to do',
1734
1756
  mkCancel: 'Cancel',
1735
1757
  mkSend: 'Add to chat',
1736
- mkTitle: 'Markup',
1758
+ mkTitle: "Annotate",
1737
1759
  mkCopy: 'Copy',
1738
- mkCopyTip: 'Copy the marked-up image to paste somewhere else',
1739
- mkCopied: 'Markup image copied. Paste it anywhere',
1760
+ mkCopyTip: "Copy the annotated image to paste somewhere else",
1761
+ mkCopied: "Annotated image copied. Paste it anywhere",
1740
1762
  mkCopyFail: 'Could not copy to the clipboard. Click Copy again, or Add to chat',
1741
1763
  mkSending: 'Building the image…',
1742
1764
  mkTextPh: 'Type a note, Enter to finish',
1743
1765
  mkEmpty: 'Nothing drawn yet',
1744
- mkFail: 'Could not save the markup: {msg}',
1766
+ mkFail: "Could not save the annotation: {msg}",
1745
1767
  mkAsk: '[Markup] {path}\n{notes}A screenshot of the design with my markup on it ({where}). Look at it with read_image first, then change what the circles, arrows and notes point at; leave unmarked parts alone.\n',
1746
1768
  mkNotes: 'Notes written on it: {notes}\n',
1747
1769
  mkQuote: '"{v}"',
1748
- mkIn: 'Markup added to the input. Say what to change, then send',
1770
+ mkIn: "Annotated image added to the input. Say what to change, then send",
1749
1771
  mkMany: 'Too many screens marked: captured the first {n}, the rest are gray',
1750
- mkMoved: 'The design changed, so the markup was not sent',
1772
+ mkMoved: "The design changed, so the annotation was not sent",
1751
1773
  mkNoInput: 'Could not add it to the input. Click the chat input, then Add to chat again',
1752
1774
  textSaved: 'Saved to {file}',
1753
1775
  edSave: 'Save',
@@ -1798,7 +1820,7 @@ window.__ModuleLoader__.load({
1798
1820
  styleShareSeg: 'All screens',
1799
1821
  closeT: 'Close',
1800
1822
  styleOnlyHere: 'only the selected element',
1801
- styleTok: 'Tokens',
1823
+ styleTok: "Presets",
1802
1824
  styleAllCol: 'All {n} colors',
1803
1825
  styleSaveTip: 'Writes into this element\'s style attribute in the source (a version is kept before and after)',
1804
1826
  styleAskTip: 'Let the model move it into the stylesheet (using tokens where it can)',
@@ -1851,8 +1873,8 @@ window.__ModuleLoader__.load({
1851
1873
  styleAuto: 'Home picked this style card for the subject; I did not choose it. If you build the full set right away, use its colors and fonts (put them into tokens.css); if you start with three directions, make direction A in this style and pick two different feels from the style cards for B and C. If my message names another style, or there is a default brand design system, follow that instead:',
1852
1874
  styleRestyle: 'Restyle the current design to this: update tokens.css first (colors, fonts, radius, shadows) so every screen follows; replace hard-coded colors in the pages with tokens; keep layout and copy for now.\n',
1853
1875
  demoNone: 'This screen has no links to other screens yet. Ask the model to connect screens with <a href="detail.html">',
1854
- phone: 'On phone',
1855
- away: 'The dev server runs on the computer itself, so it can\'t load when DSH is opened from a phone or another computer (designs made of local HTML files do show). View it on that computer, or click "View on phone" there and scan the code (same Wi-Fi).',
1876
+ phone: "Phone preview",
1877
+ away: "The dev server runs on the computer itself, so it can't load when DSH is opened from a phone or another computer (designs made of local HTML files do show). View it on that computer, or click \"Phone preview\" there and scan the code (same Wi-Fi).",
1856
1878
  remoteFail: 'This screen couldn\'t be sent over (connection dropped, or the images are too large). Click Reload to try again.',
1857
1879
  phoneStarting: 'Starting…',
1858
1880
  phoneIntro: 'Scan with your phone to view this design and tap through the screens. Any device on the same Wi-Fi with the link can open it.',
@@ -1870,12 +1892,12 @@ window.__ModuleLoader__.load({
1870
1892
  pubKnow: 'Good to know before sending',
1871
1893
  pkCC0s: 'CC0 · free to use',
1872
1894
  pkBYs: 'CC BY · credit me',
1873
- pkGoZip: 'Check and make zip',
1895
+ pkGoZip: "Check and export",
1874
1896
  demoOne: 'One file, opens with a double-click',
1875
1897
  demoFileSub: '{n} screens · nothing to install',
1876
1898
  demoHtmlTip2: 'Buttons take you between screens; the device frame and full screen toggle inside the page.',
1877
1899
  demoZipT: 'Send the whole set so they can keep editing',
1878
- demoZipTip: 'A zip design pack: drop it into Design Studio to open it and keep going.',
1900
+ demoZipTip: "A design package (.zip): drop it into Design Studio to open it and keep going.",
1879
1901
  demoNote: 'Exports the current version',
1880
1902
  demoNoteV: 'Exports version {n}',
1881
1903
  shCatsH: 'Category',
@@ -1889,7 +1911,7 @@ window.__ModuleLoader__.load({
1889
1911
  shS2: 'Auto check',
1890
1912
  shS3: 'Submit via GitHub',
1891
1913
  shPublic: 'Submissions are public',
1892
- pub: 'Public link (beta)',
1914
+ pub: "Online link (beta)",
1893
1915
  pubWhat: 'Send a link to someone who is not nearby',
1894
1916
  pubP1: 'No shared Wi-Fi needed: they open it in WeChat or any browser and can click through the screens',
1895
1917
  pubP2: 'Only this design\'s clickable demo goes out; nothing else on your computer is reachable',
@@ -1899,7 +1921,7 @@ window.__ModuleLoader__.load({
1899
1921
  pubOld: 'You are viewing an older version, but the link would share the current design. Go back to the current version first.',
1900
1922
  pubStarting: 'Connecting to Cloudflare…',
1901
1923
  pubStartingFine: 'Usually about 10 seconds',
1902
- pubReady: 'Public',
1924
+ pubReady: "Live",
1903
1925
  pubLeft: '{t} left',
1904
1926
  pubViews: 'Opened {n} times',
1905
1927
  pubHow: 'Opens in WeChat or any browser',
@@ -1937,7 +1959,7 @@ window.__ModuleLoader__.load({
1937
1959
  pubAgain: 'Create a new link (it will change)',
1938
1960
  pubTrouble: "They can't open it?",
1939
1961
  pubHelp: 'A new link takes a few seconds to start working. If WeChat warns or won\'t open it, tap the top-right menu and open it in the browser. The link also drops if the computer sleeps.',
1940
- pubOff: 'Public link closed: {why}',
1962
+ pubOff: "Online link closed: {why}",
1941
1963
  pubWhyExpired: '2 hours are up',
1942
1964
  pubWhyDropped: 'the tunnel dropped',
1943
1965
  pubWhyMoved: 'you switched designs',
@@ -1953,7 +1975,7 @@ window.__ModuleLoader__.load({
1953
1975
  refresh: 'Reload',
1954
1976
  external: 'Open in browser',
1955
1977
  more: 'More',
1956
- demoShort: 'Play',
1978
+ demoShort: "Present",
1957
1979
  dPick: 'Click an element or drag a region to send it to the model',
1958
1980
  dText: 'Click any text in the page and type, Enter to save',
1959
1981
  dStyle: 'Click an element, then drag sliders for size, colors, radius and spacing',
@@ -1964,8 +1986,8 @@ window.__ModuleLoader__.load({
1964
1986
  dCheckN: '{n} problems last time. Click to see them',
1965
1987
  an: 'Notes',
1966
1988
  anEmpty: 'The model writes them for new designs; for an existing one, ask it to add them.',
1967
- anEmptyT: 'No business notes yet',
1968
- anMake: 'Ask the model to annotate',
1989
+ anEmptyT: "No requirement notes yet",
1990
+ anMake: "Ask the model to write notes",
1969
1991
  anFix: 'Ask the model',
1970
1992
  anBad: 'The notes file has {n} problems:',
1971
1993
  anLost: '{n} not located',
@@ -1981,7 +2003,7 @@ window.__ModuleLoader__.load({
1981
2003
  anT_logic: 'Logic',
1982
2004
  anT_flow: 'Flow',
1983
2005
  anT_metric: 'Metric',
1984
- anT_data: 'Metric',
2006
+ anT_data: "Data field",
1985
2007
  anMore: '{n} more',
1986
2008
  dExport: 'Save as images, PDF or PPT',
1987
2009
  dZoom: 'Hold {mod} and scroll to zoom too',
@@ -2003,13 +2025,13 @@ window.__ModuleLoader__.load({
2003
2025
  checkTab: 'Layout',
2004
2026
  shareT: 'Share',
2005
2027
  exportT: 'Export',
2006
- phoneShort: 'On phone',
2007
- pubShort: 'Public link',
2028
+ phoneShort: "Phone preview",
2029
+ pubShort: "Online link",
2008
2030
  demoHtml: 'HTML demo',
2009
2031
  subT: 'Submit to gallery',
2010
2032
  demoHtmlGo: 'Export HTML demo',
2011
2033
  pageSet: 'Page setup',
2012
- dPageSet: 'Type, canvas size, sizes, dark mode, reload…',
2034
+ dPageSet: "Type, page size, multi-size, dark mode, reload…",
2013
2035
  scrSearch: 'Find a screen',
2014
2036
  stMenuT: 'States of "{name}"',
2015
2037
  stDefault: 'default',
@@ -2024,19 +2046,19 @@ window.__ModuleLoader__.load({
2024
2046
  scrKeyPick: 'move',
2025
2047
  scrKeyOpen: 'open',
2026
2048
  nScr: '{n} screens',
2027
- dShare: 'On phone, public link, HTML demo, submit to gallery',
2049
+ dShare: "Phone preview, online link, HTML demo, submit to gallery",
2028
2050
  openHtml: 'Open HTML…',
2029
2051
  xImg: 'Image',
2030
2052
  xImgStyle: 'Image style',
2031
2053
  xImgNote: 'Saved as PNG next to the design',
2032
2054
  xImgGo: 'Export image',
2033
2055
  dCapTools: 'Click to bring the toolbar back',
2034
- markShort: 'Draw',
2056
+ markShort: "Annotate",
2035
2057
  canvasShort: 'Canvas',
2036
- sizesShort: 'Sizes',
2037
- fitShort: "Fit to canvas size",
2038
- fitTip: "Show the whole screen at its canvas size, scaled to fit, in single view, demo and compare (the default when a size is set); turn off to fill the side panel width",
2039
- look: 'Look',
2058
+ sizesShort: "Multi-size",
2059
+ fitShort: "Fit to size",
2060
+ fitTip: "Show the whole screen at its size, scaled to fit, in single page view, presenting and compare (the default when a size is set); turn off to fill the side panel width",
2061
+ look: "Theme",
2040
2062
  deliver: 'Export',
2041
2063
  checkShort: 'Check',
2042
2064
  zoomT: 'Zoom',
@@ -2050,7 +2072,7 @@ window.__ModuleLoader__.load({
2050
2072
  canvasAsleep: 'Move closer to load',
2051
2073
  checkPartial: 'Too many screens: checked only the {n} loaded on the canvas',
2052
2074
  phoneOnTip: 'Phone preview is on',
2053
- lookSet: 'Tokens',
2075
+ lookSet: "Global styles",
2054
2076
  lookStyle: 'Restyle',
2055
2077
  lookBrand: 'Brand',
2056
2078
  lookTokTip: 'Click to add it to the chat, then say how to change it',
@@ -2081,10 +2103,10 @@ window.__ModuleLoader__.load({
2081
2103
  lookNoType: 'No font or type-size tokens.',
2082
2104
  lookNoShape: 'No corner, spacing or shadow tokens.',
2083
2105
  lookTwHint: 'Drag one; every screen follows',
2084
- lookTw: 'Sliders',
2106
+ lookTw: "Tweaks",
2085
2107
  lookTwNone: 'Roundness, spacing, main color… drag once and every screen follows',
2086
- twNoneT: 'No sliders yet',
2087
- twBadT: 'The sliders file has a problem',
2108
+ twNoneT: "No tweaks yet",
2109
+ twBadT: "The tweaks file has a problem",
2088
2110
  twAll: 'Overall',
2089
2111
  twColor: 'Color',
2090
2112
  twFeel: 'Feel',
@@ -2102,7 +2124,7 @@ window.__ModuleLoader__.load({
2102
2124
  stMineNone: 'No saved styles yet',
2103
2125
  stMineNoneTip: 'Once a design looks right, use "Save as my style" above to reuse it in one click.',
2104
2126
  lookSaveTip: 'Write into the design files (no model; a version is kept before and after)',
2105
- lookAskHead: '[Look] I changed these design tokens in the Look panel:',
2127
+ lookAskHead: "[Look] I changed these design tokens in the Theme panel:",
2106
2128
  lookAskTail: 'Make it so: change the defaults in tokens.css (or :root in the styles), and replace hard-coded copies of the same colors with the tokens.',
2107
2129
  lookRef: 'Reference…',
2108
2130
  el_button: 'Button', el_a: 'Link', el_img: 'Image', el_h: 'Heading', el_p: 'Paragraph', el_input: 'Input', el_li: 'List item', el_ul: 'List', el_nav: 'Nav', el_header: 'Header', el_footer: 'Footer', el_text: 'Text', el_icon: 'Icon', el_card: 'Card', el_tag: 'Tag', el_avatar: 'Avatar', el_box: 'Block',
@@ -2129,23 +2151,23 @@ window.__ModuleLoader__.load({
2129
2151
  stBrand: 'Extracting the brand',
2130
2152
  stCode: 'Turning it into code',
2131
2153
  stCompare: 'Comparing pixel by pixel',
2132
- implCmp: 'Compare with build',
2133
- dImplCmp: 'Put the built page next to the design and see what differs',
2154
+ implCmp: "Visual diff",
2155
+ dImplCmp: "Put the actual page next to the design and see what differs",
2134
2156
  implDesign: 'Design',
2135
- implSide: 'Built',
2136
- implHidden: 'The main slot inside the frame does not show at this size: set the canvas size to the frame’s own {w}×{h}',
2137
- implOpening: 'Opening the built page…',
2138
- implNeed: 'Enter the built page’s address above (start the dev server first)',
2157
+ implSide: "Actual page",
2158
+ implHidden: "The main slot inside the frame does not show at this size: set the size to the frame’s own {w}×{h}",
2159
+ implOpening: "Opening the actual page…",
2160
+ implNeed: "Enter the actual page’s address above (start the dev server first)",
2139
2161
  implBadUrl: 'Not a usable address: only pages on this computer, such as http://localhost:5173/login, port 5173, or a local HTML file',
2140
2162
  implSelf: 'That is the design’s own preview address: enter the address of the project you built',
2141
2163
  implHttps: 'An https dev server cannot be embedded: use its http address',
2142
- implOpenFail: 'Could not open the built page ({msg})',
2143
- implCmpFail: 'Could not compare: does the built page open? Is the dev server running?',
2164
+ implOpenFail: "Could not open the actual page ({msg})",
2165
+ implCmpFail: "Could not compare: does the actual page open? Is the dev server running?",
2144
2166
  implCmpHidden: 'Could not compare: the main slot inside the frame does not show at this size',
2145
2167
  implScore: 'Compared: {pct}% different',
2146
- implDone: 'The model just compared “{name}” with the build: {pct}% different',
2147
- implSee: 'Compare with build',
2148
- implUrl: 'Built page address',
2168
+ implDone: "The model just compared “{name}” with the actual page: {pct}% different",
2169
+ implSee: "Visual diff",
2170
+ implUrl: "Actual page address",
2149
2171
  implGo: 'Open',
2150
2172
  dImplUrl: 'Click to change the address',
2151
2173
  implPct: '{pct}% different',
@@ -2156,24 +2178,24 @@ window.__ModuleLoader__.load({
2156
2178
  dImplRe: 'Compare pixel by pixel at the current size and theme (same as compare_design)',
2157
2179
  implHere: 'Compare this page',
2158
2180
  implBlocked: 'Outside links don\'t open inside the comparison: {href}',
2159
- dImplHere: 'The built page moved to {path} (the last score and boxes are for the old page): click to compare against this page instead',
2181
+ dImplHere: "The actual page moved to {path} (the last score and diff boxes are for the old page): click to compare against this page instead",
2160
2182
  implRunning: 'Comparing…',
2161
2183
  implExit: 'Leave comparison',
2162
2184
  implShotT: 'Last comparison image',
2163
2185
  implShotGone: 'The image is gone (DSH was restarted): click Compare again for a new one',
2164
- implShotHow: 'Design | Built | Difference; click anywhere to close',
2186
+ implShotHow: "Design | Actual page | Difference; click anywhere to close",
2165
2187
  implSplit: 'Split',
2166
- dImplSplit: 'Design on the left, build on the right; drag the handle',
2188
+ dImplSplit: "Design on the left, actual page on the right; drag the handle",
2167
2189
  implOver: 'Overlay',
2168
- dImplOver: 'The build sits translucent over the design',
2190
+ dImplOver: "The actual page sits translucent over the design",
2169
2191
  implSideBy: 'Side',
2170
2192
  dImplSide: 'Both side by side, scrolling together',
2171
2193
  implOp: 'Opacity',
2172
- dImplOp: 'How solid the build layer is',
2173
- implDiff: 'Invert',
2194
+ dImplOp: "Opacity of the actual page layer",
2195
+ implDiff: "Difference",
2174
2196
  dImplDiff: 'Matching areas turn black, mismatches light up',
2175
- implBoxes: 'Boxes',
2176
- implBoxN: '{n} boxes',
2197
+ implBoxes: "Diff boxes",
2198
+ implBoxN: "{n} diff boxes",
2177
2199
  implHow: 'Compare by',
2178
2200
  dImplBoxes: 'Mark the areas that differed most last time (same size, top of the page)',
2179
2201
  stPhotos: 'Picking photos',
@@ -2245,8 +2267,8 @@ window.__ModuleLoader__.load({
2245
2267
  hoVerify: 'How it gets checked',
2246
2268
  hoRowWait: 'Waiting',
2247
2269
  hoRowUrl: 'Not compared',
2248
- hoRowSee: 'Open this screen next to the build',
2249
- hoRowGo: 'Enter the built page\'s URL to compare with this screen',
2270
+ hoRowSee: "Open this screen next to the actual page",
2271
+ hoRowGo: "Enter the actual page's URL to compare with this screen",
2250
2272
  hoSteps: 'Three steps to code',
2251
2273
  hoS1: 'Choose',
2252
2274
  hoS2: 'Model builds',
@@ -2273,7 +2295,7 @@ window.__ModuleLoader__.load({
2273
2295
  libOpen: 'Open the library',
2274
2296
  libClose: 'Back',
2275
2297
  libFail: 'That did not work: {msg}',
2276
- mkZip: 'Got a design zip from a friend? Drop it on the sidebar to use it.',
2298
+ mkZip: "Got a design package (.zip) from a friend? Drop it on the sidebar to use it.",
2277
2299
  mkLoading: 'Loading the gallery…',
2278
2300
  tplStartHead: 'Start from a template',
2279
2301
  tplStartMore: 'Go to gallery →',
@@ -2336,7 +2358,7 @@ window.__ModuleLoader__.load({
2336
2358
  mkErr_stale: 'A new version of this design just came out; look at the new version, then try again',
2337
2359
  worksNoneT: 'No designs yet',
2338
2360
  worksNoneD: 'Every design you make shows up here automatically.',
2339
- worksNoneN: 'You can also drop HTML files or a design zip here',
2361
+ worksNoneN: "You can also drop HTML files or a design package (.zip) here",
2340
2362
  worksFirst: 'Make your first',
2341
2363
  worksErrT: 'Couldn’t read your designs',
2342
2364
  mkErrT: 'The gallery didn’t open',
@@ -2352,7 +2374,7 @@ window.__ModuleLoader__.load({
2352
2374
  wkReveal: 'Show in folder',
2353
2375
  wkPin: 'Pin',
2354
2376
  wkUnpin: 'Unpin',
2355
- wkZip: 'Save as zip',
2377
+ wkZip: "Export design package",
2356
2378
  wkHide: 'Remove from list',
2357
2379
  wkHideGo: 'Remove',
2358
2380
  wkMore: 'More',
@@ -2464,7 +2486,7 @@ window.__ModuleLoader__.load({
2464
2486
  zipWhy_big: 'it is too large once unpacked',
2465
2487
  zipWhy_count: 'it has too many files',
2466
2488
  zipWhy_dup: 'it has duplicate file names',
2467
- zipNoManifest: 'There is no design.json: use a pack made with "Save as zip" in the studio',
2489
+ zipNoManifest: "There is no design.json: use a package made with \"Export design package\" in the studio",
2468
2490
  zipRejected: 'This design pack did not pass the checks and was not opened:',
2469
2491
  zipNotOpened: 'Design pack not opened',
2470
2492
  zipOpened: 'Opened "{name}": tell the model what to change, e.g. "make it my bubble tea shop, main color matcha green"',
@@ -2477,13 +2499,13 @@ window.__ModuleLoader__.load({
2477
2499
  chipTpl: 'Template · {name}',
2478
2500
  licCC0: 'CC0, free to use',
2479
2501
  licBY: 'CC BY, credit needed',
2480
- pkTitle: 'Save as zip',
2502
+ pkTitle: "Export design package",
2481
2503
  pkTip: 'Send it to a friend; they drop it into the studio and keep editing. It is checked with the library rules first: no scripts, no outside requests, no real phone numbers or emails.',
2482
2504
  pkLicense: 'License',
2483
2505
  pkCC0: 'CC0: free for any use, no credit needed',
2484
2506
  pkBY: 'CC BY: free for any use, with credit to you',
2485
2507
  pkWho: 'Name to credit (your name or handle)',
2486
- pkGo: 'Check and save',
2508
+ pkGo: "Check and export",
2487
2509
  pkChecking: 'Checking…',
2488
2510
  pkOk: 'Saved to Downloads: {name}',
2489
2511
  pkReveal: 'Show in folder',
@@ -6699,7 +6721,7 @@ body:not([data-ds-dark-theme]) .ddp .ddp-homebar .seg::before{box-shadow:var(--d
6699
6721
  // 桌面软件的窗口按钮(和 picker.js 的一样):Mac 红绿灯在左上 x 20、y 20 起,三个 12px 圆点隔 8;Windows 最小化 / 最大化 / 关闭在右上角,各 46×32
6700
6722
  const LIGHTS = { x: 20, y: 20, d: 12, gap: 8 }
6701
6723
  const WINBTN = { w: 46, h: 32 }
6702
- const META_ALIAS = { phone: 'app', mobile: 'app', ios: 'app', android: 'app', mini: 'miniprogram', miniapp: 'miniprogram', weapp: 'miniprogram', wechat: 'miniprogram', 小程序: 'miniprogram', pad: 'tablet', ipad: 'tablet', pc: 'desktop', electron: 'desktop', tauri: 'desktop', mac: 'desktop', macos: 'desktop', windows: 'desktop', win: 'desktop', 桌面: 'desktop', 桌面软件: 'desktop', social: 'poster', image: 'poster', slide: 'slides', deck: 'slides', ppt: 'slides', mail: 'email', mindmap: 'diagram', roadmap: 'diagram', architecture: 'diagram', flowchart: 'diagram', 思维导图: 'diagram', 导图: 'diagram', 路线图: 'diagram', 架构图: 'diagram', 图表: 'diagram', dsh: 'dshplugin', 'dsh-plugin': 'dshplugin', dsh插件: 'dshplugin', frame: 'framed', 外框: 'framed', 自定外框: 'framed', 套外框: 'framed' }
6724
+ const META_ALIAS = { phone: 'app', mobile: 'app', ios: 'app', android: 'app', mini: 'miniprogram', miniapp: 'miniprogram', weapp: 'miniprogram', wechat: 'miniprogram', 小程序: 'miniprogram', pad: 'tablet', ipad: 'tablet', pc: 'desktop', electron: 'desktop', tauri: 'desktop', mac: 'desktop', macos: 'desktop', windows: 'desktop', win: 'desktop', 桌面: 'desktop', 桌面软件: 'desktop', social: 'poster', image: 'poster', slide: 'slides', deck: 'slides', ppt: 'slides', mail: 'email', mindmap: 'diagram', roadmap: 'diagram', architecture: 'diagram', flowchart: 'diagram', 思维导图: 'diagram', 导图: 'diagram', 路线图: 'diagram', 架构图: 'diagram', 图表: 'diagram', '路线图·导图': 'diagram', dsh: 'dshplugin', 'dsh-plugin': 'dshplugin', dsh插件: 'dshplugin', frame: 'framed', 外框: 'framed', 自定外框: 'framed', 套外框: 'framed', 外壳: 'framed', 自定义外壳: 'framed' }
6703
6725
 
6704
6726
  /** 页面里 <meta name="dsh-design" content="app"> / "poster 1080x1920" / "desktop windows" → { kind, size, os }(os:win,不写是 Mac) */
6705
6727
  function parseMeta(content) {
@@ -11362,7 +11384,12 @@ body:not([data-ds-dark-theme]) .ddp .ddp-homebar .seg::before{box-shadow:var(--d
11362
11384
 
11363
11385
  // 首页大输入框:说一句 + 类型 + 风格 → onSend(发给模型)。没写字时 Tab 用占位里的例子
11364
11386
  const ASK_KINDS = ['app', 'miniprogram', 'web', 'poster', 'slides', 'diagram', 'dshplugin', 'framed', 'tablet', 'desktop', 'email']
11365
- const ASK_TOP = ['app', 'web', 'miniprogram', 'poster', 'slides'] // 首页类型行平时只摆这几个
11387
+ const ASK_TOP = ['app', 'web', 'miniprogram', 'poster', 'slides', 'diagram'] // 首页类型行平时只摆这几个
11388
+ // 改过名的命令:旧叫法(11-25 第一批改名前)在命令面板里照样搜得到,免得搜旧名没命中、回车变成发消息
11389
+ const KW_OLD = { textShort: '改字', styleShort: '调样式', markShort: '画笔 画笔标注 Draw Markup', demoShort: '试用 Play', look: '外观 Look', lookSet: '整套 Tokens', lookStyle: '换风格', checkShort: '体检 设计体检', an: '业务标注 Business notes', phoneShort: '手机看 On phone', pubShort: '公网链接 Public link', implCmp: '和做出来的比 Compare with build', homeTab: '开始 Start' }
11390
+ // 选了「路线图·导图」:下面多一排具体哪种图,点哪个换哪句示例,发出去时跟在类型后面(不点就让模型自己看)
11391
+ const DG_SUBS = [{ id: 'proposal', k: 'dgProposal', ex: 'exDgProposal', prop: true }, { id: 'framework', k: 'dgFramework', ex: 'exDgFramework', prop: true }, { id: 'arch', k: 'dgArch', ex: 'exDgArch' }, { id: 'mindmap', k: 'dgMindmap', ex: 'exDgMindmap' }, { id: 'roadmap', k: 'dgRoadmap', ex: 'exDgRoadmap' }]
11392
+ const dgSub = (kind, id) => (kind === 'diagram' && DG_SUBS.find((x) => x.id === id)) || null
11366
11393
  const ASK_EX = { web: 'exWeb', app: 'exApp', miniprogram: 'exMini', tablet: 'exTablet', desktop: 'exDesktop', poster: 'exPoster', slides: 'exSlides', email: 'exEmail', diagram: 'exDiagram', dshplugin: 'exDshplugin', framed: 'exFramed' }
11367
11394
  function HomeAsk({ t, onSend, onRef, plus, draft, note, autoFocus }) {
11368
11395
  const d0 = (draft && draft.current) || {}
@@ -11370,8 +11397,9 @@ body:not([data-ds-dark-theme]) .ddp .ddp-homebar .seg::before{box-shadow:var(--d
11370
11397
  const [kind, setKind] = useState(d0.kind || '')
11371
11398
  const [sty, setSty] = useState(d0.sty || null)
11372
11399
  const [frame, setFrame] = useState(d0.frame || null) // 套外框:挑的是外框库里哪个(null = 新做一个)
11400
+ const [dg, setDg] = useState(d0.dg || '') // 路线图·导图:具体哪种图('' = 没挑)
11373
11401
  const [frames, setFrames] = useState(null)
11374
- useEffect(() => { if (draft) draft.current = { text, kind, sty, frame } }, [text, kind, sty, frame])
11402
+ useEffect(() => { if (draft) draft.current = { text, kind, sty, frame, dg } }, [text, kind, sty, frame, dg])
11375
11403
  // 「我的作品」里删了 / 改名了外框:开始页一直挂在设计库底下,不会重新挂上,听一声再重取
11376
11404
  const [frTick, setFrTick] = useState(0)
11377
11405
  useEffect(() => {
@@ -11406,12 +11434,13 @@ body:not([data-ds-dark-theme]) .ddp .ddp-homebar .seg::before{box-shadow:var(--d
11406
11434
  return () => window.removeEventListener('keydown', esc)
11407
11435
  }, [allKinds])
11408
11436
  const en = t('lang') === 'en'
11409
- const ex = t(ASK_EX[kind] || 'exAuto')
11437
+ const sub = dgSub(kind, dg)
11438
+ const ex = t(sub ? sub.ex : ASK_EX[kind] || 'exAuto')
11410
11439
  const back = () => { if (ta.current) ta.current.focus() }
11411
11440
  const go = () => {
11412
11441
  const s = text.trim()
11413
11442
  if (!s) return back()
11414
- if (onSend({ text: s, kind, style: sty, frame: kind === 'framed' ? frame : null }) !== false) setText('')
11443
+ if (onSend({ text: s, kind, style: sty, frame: kind === 'framed' ? frame : null, dg: sub ? sub.id : '' }) !== false) setText('')
11415
11444
  }
11416
11445
  const onKey = (e) => {
11417
11446
  if (e.nativeEvent && e.nativeEvent.isComposing) return
@@ -11434,6 +11463,8 @@ body:not([data-ds-dark-theme]) .ddp .ddp-homebar .seg::before{box-shadow:var(--d
11434
11463
  h('div', { className: 'ddp-askkinds', role: 'radiogroup', 'aria-label': t('kind') }, ...ASK_KINDS.filter((k) => allKinds || ASK_TOP.includes(k) || k === kind).map((k) => h('button', { key: k, role: 'radio', 'aria-checked': kind === k, className: kind === k ? 'on' : '', onClick: () => setKind(kind === k ? '' : k) },
11435
11464
  h(I[k]), h('span', null, t(KIND_KEY[k])))),
11436
11465
  h('button', { key: 'more', type: 'button', className: 'more', 'aria-expanded': allKinds, onClick: () => setAllKinds(!allKinds) }, h('span', null, allKinds ? t('askKindsLess') : t('askKindsAll')), allKinds ? null : h('small', null, String(ASK_KINDS.length)), h(I.caret))),
11466
+ kind === 'diagram' ? h('div', { className: 'ddp-askkinds ddp-askframes ddp-askdg', role: 'radiogroup', 'aria-label': t('askDgSubs') },
11467
+ ...DG_SUBS.map((x) => h('button', { key: x.id, role: 'radio', 'aria-checked': dg === x.id, className: dg === x.id ? 'on' : '', onClick: () => setDg(dg === x.id ? '' : x.id) }, h('span', null, t(x.k))))) : null,
11437
11468
  kind === 'framed' && frames && frames.length ? h('div', { className: 'ddp-askkinds ddp-askframes', role: 'radiogroup', 'aria-label': t('askFrames') },
11438
11469
  h('button', { key: '', role: 'radio', 'aria-checked': !frame, className: !frame ? 'on' : '', ...tipA(t('askFrameNew'), t('askFrameNewD')), onClick: () => setFrame(null) }, h(I.plus), h('span', null, t('askFrameNew'))),
11439
11470
  ...frames.slice(0, 12).map((f) => h('button', { key: f.id, role: 'radio', 'aria-checked': !!frame && frame.id === f.id, className: frame && frame.id === f.id ? 'on' : '', title: `${f.size[0]}×${f.size[1]} · ${(f.positions || []).join(' / ')}`, onClick: () => setFrame({ id: f.id, name: en && f.nameEn ? f.nameEn : f.name }) }, h(I.framed), h('span', null, en && f.nameEn ? f.nameEn : f.name)))) : null)
@@ -15388,15 +15419,16 @@ body:not([data-ds-dark-theme]) .ddp .ddp-homebar .seg::before{box-shadow:var(--d
15388
15419
  onPointerDown: (e) => e.stopPropagation(),
15389
15420
  }, h('div', { key: sheet + ':' + (sheet === 'check' ? (an ? 'an' : 'ck') : sheet === 'share' ? shareTab : sheet === 'look' ? lookTab : ''), className: 'dd-in' }, sheetBody())) : null)
15390
15421
  // 首页大输入框发出去:放进 DSH 的输入框直接发;输入框里本来有字、或旧版 DSH 没有 submit:放进去等用户自己发
15391
- const homeSend = ({ text, kind, style, frame }) => {
15422
+ const homeSend = ({ text, kind, style, frame, dg }) => {
15392
15423
  const ia = props.inputActions
15393
15424
  const cel = composerEl()
15394
15425
  const was = cel ? composerText(cel) : null
15395
15426
  const had = was === null || !!was.trim() // 读不出来(有引用标签、分屏)当成有字:只放进去,不替用户发
15396
15427
  const fr = kind === 'framed' && frame ? '\n' + t('askFrameLine', { name: frame.name, id: frame.id }) : ''
15397
- const msg = text + (kind ? '\n' + t('askKindLine', { k: t(KIND_KEY[kind]) }) : '') + fr + (url ? '\n' + t('askNewLine') : '')
15428
+ const sub = dgSub(kind, dg)
15429
+ const msg = text + (kind ? '\n' + t('askKindLine', { k: t(KIND_KEY[kind]) + (sub ? ' · ' + t(sub.k) : '') }) : '') + fr + (url ? '\n' + t('askNewLine') : '')
15398
15430
  homeKind.current = kind || ''
15399
- const pick = style || (had ? null : autoStyle(text, kind)) // 没选风格:按题材替模型挑一张(不然总是米色暖调);输入框里本来有东西(风格卡、参考图…)就不挑
15431
+ const pick = style || (had || (sub && sub.prop) ? null : autoStyle(text, kind)) // 申报书、研究框架图按图种认(不看翻译后的字):默认用炫酷样式,不挑风格卡 // 没选风格:按题材替模型挑一张(不然总是米色暖调);输入框里本来有东西(风格卡、参考图…)就不挑
15400
15432
  const sty = pick ? formatStyle(t, pick, false, !style) : ''
15401
15433
  if (!insert(msg, 'inserted', false)) {
15402
15434
  insert([msg, sty].filter(Boolean).join('\n\n')) // 插不进:整段复制
@@ -15415,7 +15447,7 @@ body:not([data-ds-dark-theme]) .ddp .ddp-homebar .seg::before{box-shadow:var(--d
15415
15447
  const L = []
15416
15448
  const add = (id, Icon, label, run, o = {}) => L.push({ id, Icon, label, run, note: o.note || '', key: o.key || '', off: !!o.off, top: !!o.top, kw: o.kw || '', on: !!o.on, grp: o.grp || 'cmd' })
15417
15449
  const noUrl = !url
15418
- const kwOf = (...keys) => keys.map((k) => ZH[k] + ' ' + EN[k]).join(' ')
15450
+ const kwOf = (...keys) => keys.map((k) => ZH[k] + ' ' + EN[k] + (KW_OLD[k] ? ' ' + KW_OLD[k] : '')).join(' ')
15419
15451
  add('canvas', I.canvas, t('canvasShort'), toCanvas, { off: noUrl || onCanvas, top: true, kw: kwOf('canvasShort') })
15420
15452
  add('pick', I.pick, t('pick'), togglePick, { key: 'V', on: picking, off: noUrl || !!ver || !!demo || mark, kw: kwOf('pick') })
15421
15453
  add('text', I.text, t('textShort'), toggleText, { key: 'T', on: textEdit, off: noUrl || !!ver || !!demo || busy || mark, kw: kwOf('textShort') })
@@ -15444,7 +15476,7 @@ body:not([data-ds-dark-theme]) .ddp .ddp-homebar .seg::before{box-shadow:var(--d
15444
15476
  add('refresh', I.refresh, t('refresh'), reload, { off: noUrl, kw: kwOf('refresh') })
15445
15477
  add('external', I.external, t('external'), () => { const a = document.createElement('a'); a.href = url; a.target = '_blank'; a.rel = 'noreferrer'; a.click() }, { off: noUrl, kw: kwOf('external') })
15446
15478
  add('open-html', I.folder, t('openHtml'), openHtml, { kw: kwOf('openHtml') })
15447
- for (const [k, key] of HOME_TABS) add('home:' + (k || 'start'), I.spark, t('cmdHomeTo', { tab: t(key) }), () => { homeOpen(); if (k) setTimeout(() => toLib(k), 0) }, { kw: kwOf('homeBtn', key) })
15479
+ for (const [k, key] of HOME_TABS) add('home:' + (k || 'start'), I.spark, k ? t('cmdHomeTo', { tab: t(key) }) : t('homeBtn'), () => { homeOpen(); if (k) setTimeout(() => toLib(k), 0) }, { kw: kwOf('homeBtn', key) })
15448
15480
  screens.forEach((x, i) => {
15449
15481
  const L2 = takeTag(x)
15450
15482
  add('scr:' + x.key, I.single, dropBrand(shortOf(x)) + (L2 ? ' · ' + L2 : ''), () => pickScreen(x.key), { grp: 'scr', top: true, on: x.key === curKey && !onCanvas, note: String(i + 1).padStart(2, '0'), kw: x.key })
@@ -16020,7 +16052,7 @@ body:not([data-ds-dark-theme]) .ddp .ddp-homebar .seg::before{box-shadow:var(--d
16020
16052
  // 注意:这里是客户端**服务名**(短的),不是包名
16021
16053
  exports.inject = INJECT
16022
16054
  // 测试用
16023
- exports._test = { STYLE, makeDemoNav, implLayout, implAwayUrl, KIND_LIST, KIND_KEY, KIND_SIZE, META_ALIAS, FIXED, SHOW_COLS, FRAME, ASK_EX, ASK_KINDS, KIND_ICON: I, pollGap, webFitOf, precheckOf, fitCanvas, layoutOk, fitHOk, autoSize, pulseStep, MarketDetail, dragKind, droppedOf, pickInfo, pickLabel, pickRanges, pickRule, chipOf, chipRanges, makeT, ZH, EN, formatCheck, formatTweaks, markHit, markPath, STYLES, formatStyle, accentUse, autoStyle, recStyles, styleLook, padInsert, pageOf, pxOf, styleChanges, formatStyleAsk, everyOf, shareOn, takesOf, formatCheckTool, poller, frameOf, paletteOf, formatRef, layoutRow, keyOfPath, flowsOf, flowLines, parseStates, withState, byStates, stateTitle, stateGoPlan, withHashNext, flowMarks, formatPick, whereOf, parseMeta, sizeOf, layoutGrid, fitCam, nearestLive, LIVE_MAX, tokenKind, formatToken, splitTitles, pickColors, hhmm, formatTpl, formatPrep, styleFromTokens, myStyleOf, isZipFile, hoStepOf }
16055
+ exports._test = { STYLE, KW_OLD, DG_SUBS, makeDemoNav, implLayout, implAwayUrl, KIND_LIST, KIND_KEY, KIND_SIZE, META_ALIAS, FIXED, SHOW_COLS, FRAME, ASK_EX, ASK_KINDS, KIND_ICON: I, pollGap, webFitOf, precheckOf, fitCanvas, layoutOk, fitHOk, autoSize, pulseStep, MarketDetail, dragKind, droppedOf, pickInfo, pickLabel, pickRanges, pickRule, chipOf, chipRanges, makeT, ZH, EN, formatCheck, formatTweaks, markHit, markPath, STYLES, formatStyle, accentUse, autoStyle, recStyles, styleLook, padInsert, pageOf, pxOf, styleChanges, formatStyleAsk, everyOf, shareOn, takesOf, formatCheckTool, poller, frameOf, paletteOf, formatRef, layoutRow, keyOfPath, flowsOf, flowLines, parseStates, withState, byStates, stateTitle, stateGoPlan, withHashNext, flowMarks, formatPick, whereOf, parseMeta, sizeOf, layoutGrid, fitCam, nearestLive, LIVE_MAX, tokenKind, formatToken, splitTitles, pickColors, hhmm, formatTpl, formatPrep, styleFromTokens, myStyleOf, isZipFile, hoStepOf }
16024
16056
  return module.exports
16025
16057
  },
16026
16058
  })