Files
dudu/desktop/src-tauri/tauri.conf.json
T
wangjia 911ceca079
ci / server (push) Failing after 11s
ci / design-system (push) Failing after 12s
feat(design+desktop): Select 真相源组件 + 设置窗口无边框(12A 实测反馈)
Select 组件(用户拍板:下拉框全端共用一个真相源):
- design/components/forms/Select.jsx:自绘下拉——触发器同 Input
  (control-sm/radius-sm/border-1 + chevronDown),弹层同菜单
  (radius-md/shadow-menu、选中项前置对勾、hover surface-2),
  外点/Esc 收起;登记簿加卡;icons.js 新增 chevronDown 并登记 icon-map
- 原型 SettingsTray 与桌面 SettingsApp 同步换用(替换原生 select——
  其系统弹层样式/位置不可控,即 12A 截图问题)

原型组件运行时可再生(修复单源缺口):
- design-pipeline/bundle-components.mjs:用 desktop 现成 esbuild 重建
  _ds_bundle.js(此前为 Claude 导出产物、仓库内无法再生,组件一改即
  过期);import 'react' 经全局 shim,命名空间不变;已实测原型页正常
- _ds_bundle.js 重建(15 个组件,含 Select/Icon)

设置窗口无边框:
- tauri.conf settings 窗口 titleBarStyle=Overlay + hiddenTitle,
  系统红绿灯悬浮左上;SettingsApp 自绘顶条(surface-2 + 下边框 +
  data-tauri-drag-region 可拖拽),对齐原型 MacWindow 规格

合并 feat/design-truth-source(真相源与闸体系)进本分支

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-11 01:00:29 +08:00

99 lines
2.2 KiB
JSON

{
"$schema": "https://schema.tauri.app/config/2",
"productName": "dudu",
"version": "0.1.0",
"identifier": "app.dudu.desktop",
"build": {
"beforeDevCommand": "npm run dev",
"devUrl": "http://localhost:5181",
"beforeBuildCommand": "npm run build",
"frontendDist": "../dist"
},
"app": {
"windows": [
{
"label": "settings",
"title": "dudu 设置",
"url": "index.html",
"width": 440,
"height": 560,
"resizable": false,
"visible": false,
"titleBarStyle": "Overlay",
"hiddenTitle": true
},
{
"label": "overlay",
"title": "dudu",
"url": "overlay.html",
"width": 360,
"height": 140,
"visible": false,
"transparent": true,
"decorations": false,
"alwaysOnTop": true,
"focus": false,
"skipTaskbar": true,
"shadow": false
},
{
"label": "login",
"title": "dudu — 登录",
"url": "login.html",
"width": 400,
"height": 520,
"resizable": false,
"visible": false
},
{
"label": "tray",
"title": "dudu",
"url": "tray.html",
"width": 248,
"height": 300,
"resizable": false,
"visible": false,
"transparent": true,
"decorations": false,
"alwaysOnTop": true,
"skipTaskbar": true,
"shadow": false
},
{
"label": "feedback",
"title": "反馈问题",
"url": "feedback.html",
"width": 460,
"height": 560,
"resizable": false,
"center": true,
"visible": false
},
{
"label": "onboarding",
"title": "欢迎使用 dudu",
"url": "onboarding.html",
"width": 560,
"height": 480,
"resizable": false,
"center": true,
"visible": false
}
],
"security": {
"csp": null
}
},
"bundle": {
"active": true,
"targets": "all",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
]
}
}