mirror of
https://github.com/FranP-code/ChatGPT.git
synced 2025-10-13 00:13:25 +00:00
chore: fmt
This commit is contained in:
2
src/view/model/UserCustom/index.tsx
vendored
2
src/view/model/UserCustom/index.tsx
vendored
@@ -12,7 +12,7 @@ import { chatRoot, fmtDate } from '@/utils';
|
|||||||
import { modelColumns } from './config';
|
import { modelColumns } from './config';
|
||||||
import UserCustomForm from './Form';
|
import UserCustomForm from './Form';
|
||||||
|
|
||||||
export default function LanguageModel() {
|
export default function UserCustom() {
|
||||||
const { rowSelection, selectedRowIDs } = useTableRowSelection();
|
const { rowSelection, selectedRowIDs } = useTableRowSelection();
|
||||||
const [isVisible, setVisible] = useState(false);
|
const [isVisible, setVisible] = useState(false);
|
||||||
const [jsonPath, setJsonPath] = useState('');
|
const [jsonPath, setJsonPath] = useState('');
|
||||||
|
|||||||
1
src/view/notes/config.tsx
vendored
1
src/view/notes/config.tsx
vendored
@@ -67,6 +67,5 @@ const RenderPath = ({ row }: any) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const getPath = async (row: any) => {
|
export const getPath = async (row: any) => {
|
||||||
const isImg = ['png'].includes(row?.ext);
|
|
||||||
return (await path.join(await chatRoot(), 'notes', row.id)) + `.${row.ext}`;
|
return (await path.join(await chatRoot(), 'notes', row.id)) + `.${row.ext}`;
|
||||||
};
|
};
|
||||||
|
|||||||
2
src/view/settings/MainWindow.tsx
vendored
2
src/view/settings/MainWindow.tsx
vendored
@@ -30,7 +30,7 @@ const PopupSearchLabel = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function General() {
|
export default function MainWindow() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Form.Item label={<PopupSearchLabel />} name="popup_search" valuePropName="checked">
|
<Form.Item label={<PopupSearchLabel />} name="popup_search" valuePropName="checked">
|
||||||
|
|||||||
2
src/view/settings/TrayWindow.tsx
vendored
2
src/view/settings/TrayWindow.tsx
vendored
@@ -17,7 +17,7 @@ const UALabel = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function General() {
|
export default function TrayWindow() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Form.Item label="Enable SystemTray" name="tray" valuePropName="checked">
|
<Form.Item label="Enable SystemTray" name="tray" valuePropName="checked">
|
||||||
|
|||||||
Reference in New Issue
Block a user