chore: fixed lock file
This commit is contained in:
@@ -260,7 +260,7 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
|
||||
<GitCloneButton />
|
||||
<Separator.Root className="my-[15px] bg-gray6 data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px" />
|
||||
<div className="flex items-center gap-3"></div>
|
||||
|
||||
|
||||
<div className={isModelSettingsCollapsed ? 'hidden' : ''}>
|
||||
<ModelSelector
|
||||
key={provider?.name + ':' + modelList.length}
|
||||
|
||||
@@ -1,24 +1,30 @@
|
||||
import { IconButton } from '../ui/IconButton'
|
||||
import git from 'isomorphic-git'
|
||||
import http from 'isomorphic-git/http/web'
|
||||
import { useGit } from '~/lib/hooks/useGit'
|
||||
import { IconButton } from '~/components/ui/IconButton';
|
||||
import { useGit } from '~/lib/hooks/useGit';
|
||||
|
||||
export default function GitCloneButton() {
|
||||
const {ready,gitClone} = useGit()
|
||||
const onClick= async(e:any)=>{
|
||||
if (!ready) return
|
||||
let repoUrl=prompt("Enter the Git url")
|
||||
if (repoUrl) {
|
||||
await gitClone(repoUrl)
|
||||
}
|
||||
const { ready, gitClone } = useGit();
|
||||
const onClick = async (_e: any) => {
|
||||
if (!ready) {
|
||||
return;
|
||||
}
|
||||
|
||||
const repoUrl = prompt('Enter the Git url');
|
||||
|
||||
if (repoUrl) {
|
||||
await gitClone(repoUrl);
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<IconButton onClick={e=>{
|
||||
onClick(e)
|
||||
|
||||
}} className="w-full justify-center" title="Clone A Git Repo">
|
||||
<span className="mr-2 text-xs lg:text-sm">Clone A Git Repo</span>
|
||||
<div className='i-ph:git-branch' />
|
||||
<IconButton
|
||||
onClick={(e) => {
|
||||
onClick(e);
|
||||
}}
|
||||
className="w-full justify-center"
|
||||
title="Clone A Git Repo"
|
||||
>
|
||||
<span className="mr-2 text-xs lg:text-sm">Clone A Git Repo</span>
|
||||
<div className="i-ph:git-branch" />
|
||||
</IconButton>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user