40760aa884
- server:Go 网关(WS 流式识别中继/计费配额/微信登录支付 mock/反馈/埋点),gummy provider 已真实联调 - desktop:Tauri 2(全局快捷键 push-to-talk/浮层/托盘/设置/登录购买/反馈/首启引导) - android:Compose 主 App + IME(键盘内录音直传) - ios:App + 键盘扩展(1A spike 实证键盘内不可录音,走 deep link 听写) - design/design-pipeline:设计系统 + token 导出 iOS/Android 主题 - doc:前后端设计文档(HTML);web:官网宣传页;todo:任务看板 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
29 lines
837 B
React
29 lines
837 B
React
const ddKbdCss = `
|
|
.dd-kbd {
|
|
display: inline-block; background: var(--surface-2);
|
|
border: 1px solid var(--border-2); border-bottom-width: 2px;
|
|
border-radius: var(--radius-xs); padding: 1px 7px;
|
|
font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-1);
|
|
line-height: 1.5;
|
|
}
|
|
`;
|
|
|
|
if (typeof document !== 'undefined' && !document.getElementById('dd-kbd-css')) {
|
|
const s = document.createElement('style');
|
|
s.id = 'dd-kbd-css';
|
|
s.textContent = ddKbdCss;
|
|
document.head.appendChild(s);
|
|
}
|
|
|
|
export function Kbd({ children, ...rest }) {
|
|
return <kbd className="dd-kbd" {...rest}>{children}</kbd>;
|
|
}
|
|
|
|
export function HotkeyCombo({ keys = [], gap = 4 }) {
|
|
return (
|
|
<span style={{ display: 'inline-flex', gap, alignItems: 'center' }}>
|
|
{keys.map((k, i) => <Kbd key={i}>{k}</Kbd>)}
|
|
</span>
|
|
);
|
|
}
|