chore: settings

This commit is contained in:
lencx
2023-01-22 11:43:56 +08:00
parent 1e5ec6028d
commit b875727753
6 changed files with 240 additions and 180 deletions

16
src/view/settings/TrayWindow.tsx vendored Normal file
View File

@@ -0,0 +1,16 @@
import { Form, Switch, Input } from 'antd';
import { DISABLE_AUTO_COMPLETE } from '@/utils';
export default function General() {
return (
<>
<Form.Item label="Enable SystemTray" name="tray" valuePropName="checked">
<Switch />
</Form.Item>
<Form.Item label="User Agent (SystemTray)" name="ua_tray">
<Input.TextArea autoSize={{ minRows: 4, maxRows: 4 }} {...DISABLE_AUTO_COMPLETE} placeholder="Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Mobile/15E148 Safari/604.1" />
</Form.Item>
</>
)
}