formatting
This commit is contained in:
parent
02fc2004e1
commit
c9fd97f1f6
9 changed files with 130 additions and 119 deletions
|
|
@ -28,7 +28,6 @@ export default function CodeAreaComponent({
|
||||||
setMyValue(typeof value == "string" ? value : JSON.stringify(value));
|
setMyValue(typeof value == "string" ? value : JSON.stringify(value));
|
||||||
}, [value]);
|
}, [value]);
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={disabled ? "pointer-events-none w-full " : " w-full"}>
|
<div className={disabled ? "pointer-events-none w-full " : " w-full"}>
|
||||||
<div className="flex w-full items-center">
|
<div className="flex w-full items-center">
|
||||||
|
|
@ -50,7 +49,7 @@ export default function CodeAreaComponent({
|
||||||
editNode
|
editNode
|
||||||
? "input-edit-node input-dialog"
|
? "input-edit-node input-dialog"
|
||||||
: (disabled ? " input-disable " : "") +
|
: (disabled ? " input-disable " : "") +
|
||||||
" input-primary input-dialog"
|
" input-dialog input-primary"
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{myValue !== "" ? myValue : "Type something..."}
|
{myValue !== "" ? myValue : "Type something..."}
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,9 @@ export default function InputFileComponent({
|
||||||
className={
|
className={
|
||||||
editNode
|
editNode
|
||||||
? "input-edit-node input-dialog text-muted-foreground"
|
? "input-edit-node input-dialog text-muted-foreground"
|
||||||
: (disabled ? "input-disable input-primary input-dialog" : "input-primary input-dialog text-muted-foreground")
|
: disabled
|
||||||
|
? "input-disable input-dialog input-primary"
|
||||||
|
: "input-dialog input-primary text-muted-foreground"
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{myValue !== "" ? myValue : "No file"}
|
{myValue !== "" ? myValue : "No file"}
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ export default function PromptAreaComponent({
|
||||||
editNode
|
editNode
|
||||||
? "input-edit-node input-dialog"
|
? "input-edit-node input-dialog"
|
||||||
: (disabled ? " input-disable " : "") +
|
: (disabled ? " input-disable " : "") +
|
||||||
" input-primary input-dialog"
|
" input-dialog input-primary"
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{myValue !== "" ? myValue : "Type your prompt here"}
|
{myValue !== "" ? myValue : "Type your prompt here"}
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,6 @@ export default function TextAreaComponent({
|
||||||
setMyValue(e.target.value);
|
setMyValue(e.target.value);
|
||||||
onChange(e.target.value);
|
onChange(e.target.value);
|
||||||
}}
|
}}
|
||||||
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
|
|
|
||||||
|
|
@ -374,7 +374,9 @@ export default function ChatModal({
|
||||||
<ChatMessage
|
<ChatMessage
|
||||||
lockChat={lockChat}
|
lockChat={lockChat}
|
||||||
chat={c}
|
chat={c}
|
||||||
lastMessage={chatHistory.length - 1 === i ? true : false}
|
lastMessage={
|
||||||
|
chatHistory.length - 1 === i ? true : false
|
||||||
|
}
|
||||||
key={i}
|
key={i}
|
||||||
/>
|
/>
|
||||||
))
|
))
|
||||||
|
|
|
||||||
|
|
@ -34,13 +34,21 @@ export default function ChatMessage({
|
||||||
{!chat.isSend ? (
|
{!chat.isSend ? (
|
||||||
<div className="form-modal-chat-image">
|
<div className="form-modal-chat-image">
|
||||||
<div className="form-modal-chat-bot-icon ">
|
<div className="form-modal-chat-bot-icon ">
|
||||||
<img src={Robot} className="form-modal-chat-icon-img" alt="robot_image"/>
|
<img
|
||||||
|
src={Robot}
|
||||||
|
className="form-modal-chat-icon-img"
|
||||||
|
alt="robot_image"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="form-modal-chat-image">
|
<div className="form-modal-chat-image">
|
||||||
<div className="form-modal-chat-user-icon ">
|
<div className="form-modal-chat-user-icon ">
|
||||||
<img src={MaleTechnology} className="form-modal-chat-icon-img" alt="male_technology"/>
|
<img
|
||||||
|
src={MaleTechnology}
|
||||||
|
className="form-modal-chat-icon-img"
|
||||||
|
alt="male_technology"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -517,7 +517,9 @@ export default function FormModal({
|
||||||
<ChatMessage
|
<ChatMessage
|
||||||
lockChat={lockChat}
|
lockChat={lockChat}
|
||||||
chat={c}
|
chat={c}
|
||||||
lastMessage={chatHistory.length - 1 === i ? true : false}
|
lastMessage={
|
||||||
|
chatHistory.length - 1 === i ? true : false
|
||||||
|
}
|
||||||
key={i}
|
key={i}
|
||||||
/>
|
/>
|
||||||
))
|
))
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,6 @@ export type FlowStyleType = {
|
||||||
flow_id: string;
|
flow_id: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export type TweaksType = Array<
|
export type TweaksType = Array<
|
||||||
{
|
{
|
||||||
[key: string]: {
|
[key: string]: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue