mirror of
https://github.com/FranP-code/ChatGPT.git
synced 2025-10-13 00:13:25 +00:00
chore: add pretty
This commit is contained in:
48
src/view/settings/MainWindow.tsx
vendored
48
src/view/settings/MainWindow.tsx
vendored
@@ -9,25 +9,39 @@ import { DISABLE_AUTO_COMPLETE } from '@/utils';
|
||||
const OriginLabel = ({ url }: { url: string }) => {
|
||||
return (
|
||||
<span>
|
||||
Switch Origin <Tooltip title={`Default: ${url}`}><QuestionCircleOutlined style={{ color: '#1677ff' }} /></Tooltip>
|
||||
Switch Origin{' '}
|
||||
<Tooltip title={`Default: ${url}`}>
|
||||
<QuestionCircleOutlined style={{ color: '#1677ff' }} />
|
||||
</Tooltip>
|
||||
</span>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
const PopupSearchLabel = () => {
|
||||
return (
|
||||
<span>
|
||||
Pop-up Search
|
||||
{' '}
|
||||
<Tooltip title={(
|
||||
<div>
|
||||
<div style={{ marginBottom: 10 }}>Generate images according to the content: Select the ChatGPT content with the mouse, no more than 400 characters. the <b>DALL·E 2</b> button appears, and click to jump (Note: because the search content filled by the script cannot trigger the event directly, you need to enter a space in the input box to make the button clickable).</div>
|
||||
<div>The application is built using Tauri, and due to its security restrictions, some of the action buttons will not work, so we recommend going to your browser.</div>
|
||||
</div>
|
||||
)}><QuestionCircleOutlined style={{ color: '#1677ff' }} /></Tooltip>
|
||||
Pop-up Search{' '}
|
||||
<Tooltip
|
||||
title={
|
||||
<div>
|
||||
<div style={{ marginBottom: 10 }}>
|
||||
Generate images according to the content: Select the ChatGPT content with the mouse,
|
||||
no more than 400 characters. the <b>DALL·E 2</b> button appears, and click to jump
|
||||
(Note: because the search content filled by the script cannot trigger the event
|
||||
directly, you need to enter a space in the input box to make the button clickable).
|
||||
</div>
|
||||
<div>
|
||||
The application is built using Tauri, and due to its security restrictions, some of
|
||||
the action buttons will not work, so we recommend going to your browser.
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
>
|
||||
<QuestionCircleOutlined style={{ color: '#1677ff' }} />
|
||||
</Tooltip>
|
||||
</span>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default function General() {
|
||||
const [chatConf, setChatConf] = useState<any>(null);
|
||||
@@ -46,8 +60,12 @@ export default function General() {
|
||||
<Input placeholder="https://chat.openai.com" {...DISABLE_AUTO_COMPLETE} />
|
||||
</Form.Item>
|
||||
<Form.Item label="User Agent (Main)" name="ua_window">
|
||||
<Input.TextArea autoSize={{ minRows: 4, maxRows: 4 }} {...DISABLE_AUTO_COMPLETE} placeholder="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" />
|
||||
<Input.TextArea
|
||||
autoSize={{ minRows: 4, maxRows: 4 }}
|
||||
{...DISABLE_AUTO_COMPLETE}
|
||||
placeholder="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
|
||||
/>
|
||||
</Form.Item>
|
||||
</>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user