chore: watch api

This commit is contained in:
jialin
2024-06-28 17:14:34 +08:00
parent 871bca1916
commit cf0113e8d8
35 changed files with 1171 additions and 627 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ const AddModal: React.FC<AddModalProps> = (props) => {
>
<SealAutoComplete
filterOption
label="Ollama Model"
label={intl.formatMessage({ id: 'model.form.ollama.model' })}
required
options={ollamaModelOptions}
></SealAutoComplete>
@@ -1,15 +1,17 @@
import LogsViewer from '@/components/logs-viewer';
import { Modal } from 'antd';
import React from 'react';
type ViewModalProps = {
content?: string;
content: string;
title: string;
open: boolean;
url: string;
onCancel: () => void;
};
const ViewCodeModal: React.FC<ViewModalProps> = (props) => {
const { title, open, onCancel, content } = props || {};
const { title, open, url, onCancel, content = '' } = props || {};
if (!open) {
return null;
}
@@ -27,7 +29,14 @@ const ViewCodeModal: React.FC<ViewModalProps> = (props) => {
style={{ top: '80px' }}
footer={null}
>
<div>{content}</div>
<LogsViewer
content={content}
height={400}
url={url}
params={{
follow: false
}}
></LogsViewer>
</Modal>
);
};