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>
43 lines
2.2 KiB
HTML
43 lines
2.2 KiB
HTML
<!-- @dsCard group="Components" viewport="700x300" name="Forms 表单" subtitle="Input · Switch · SettingRow" -->
|
|
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<link rel="stylesheet" href="../../styles.css">
|
|
<script src="https://unpkg.com/react@18.3.1/umd/react.development.js" integrity="sha384-hD6/rw4ppMLGNu3tX5cjIb+uRZ7UkRJ6BPkLpg4hAu/6onKUg4lLsHAs9EBPT82L" crossorigin="anonymous"></script>
|
|
<script src="https://unpkg.com/react-dom@18.3.1/umd/react-dom.development.js" integrity="sha384-u6aeetuaXnQ38mYT8rp6sbXaQe3NL9t+IBXmnYxwkUI2Hw4bsp2Wvmx4yRQF1uAm" crossorigin="anonymous"></script>
|
|
<script src="https://unpkg.com/@babel/standalone@7.29.0/babel.min.js" integrity="sha384-m08KidiNqLdpJqLq95G/LEi8Qvjl/xUYll3QILypMoQ65QorJ9Lvtp2RXYGBFj1y" crossorigin="anonymous"></script>
|
|
<script src="../../_ds_bundle.js"></script>
|
|
<style>
|
|
body { margin: 0; font-family: var(--font-sans); display: grid; grid-template-columns: 1fr 1fr; }
|
|
.pane { padding: 20px 22px; background: var(--bg-app); color: var(--text-1); min-height: 300px; box-sizing: border-box; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="pane" id="light"></div>
|
|
<div class="pane" id="dark" data-theme="dark"></div>
|
|
<script type="text/babel">
|
|
const { Input, Switch, SettingRow, HotkeyCombo, Card } = window.DuduDesignSystem_2e0172;
|
|
function Demo() {
|
|
const [auto, setAuto] = React.useState(true);
|
|
const [hotkey, setHotkey] = React.useState(true);
|
|
return (
|
|
<div style={{ display: 'grid', gap: 14 }}>
|
|
<Input placeholder="说点什么…" />
|
|
<Card padding="4px 16px">
|
|
<SettingRow label="说话快捷键" description="按住说话,松开完成">
|
|
<HotkeyCombo keys={['⌘', '⇧', 'Space']} />
|
|
</SettingRow>
|
|
<SettingRow label="麦克风">MacBook Pro 麦克风 ▾</SettingRow>
|
|
<SettingRow label="开机自启"><Switch checked={auto} onChange={setAuto} /></SettingRow>
|
|
<SettingRow label="启用快捷键"><Switch checked={hotkey} onChange={setHotkey} /></SettingRow>
|
|
</Card>
|
|
</div>
|
|
);
|
|
}
|
|
ReactDOM.createRoot(document.getElementById('light')).render(<Demo />);
|
|
ReactDOM.createRoot(document.getElementById('dark')).render(<Demo />);
|
|
</script>
|
|
</body>
|
|
</html>
|