mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-03-17 11:57:23 +00:00
Compare commits
1 Commits
feat/plugi
...
fix/remove
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d2be8e03e |
@@ -281,7 +281,6 @@ export default function Onboarding({ onComplete }: OnboardingProps) {
|
|||||||
provider={activeLoginProvider}
|
provider={activeLoginProvider}
|
||||||
project={selectedProject}
|
project={selectedProject}
|
||||||
onComplete={handleLoginComplete}
|
onComplete={handleLoginComplete}
|
||||||
isOnboarding={true}
|
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -19,19 +19,16 @@ type ProviderLoginModalProps = {
|
|||||||
onComplete?: (exitCode: number) => void;
|
onComplete?: (exitCode: number) => void;
|
||||||
customCommand?: string;
|
customCommand?: string;
|
||||||
isAuthenticated?: boolean;
|
isAuthenticated?: boolean;
|
||||||
isOnboarding?: boolean;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const getProviderCommand = ({
|
const getProviderCommand = ({
|
||||||
provider,
|
provider,
|
||||||
customCommand,
|
customCommand,
|
||||||
isAuthenticated,
|
isAuthenticated,
|
||||||
isOnboarding,
|
|
||||||
}: {
|
}: {
|
||||||
provider: CliProvider;
|
provider: CliProvider;
|
||||||
customCommand?: string;
|
customCommand?: string;
|
||||||
isAuthenticated: boolean;
|
isAuthenticated: boolean;
|
||||||
isOnboarding: boolean;
|
|
||||||
}) => {
|
}) => {
|
||||||
if (customCommand) {
|
if (customCommand) {
|
||||||
return customCommand;
|
return customCommand;
|
||||||
@@ -41,9 +38,7 @@ const getProviderCommand = ({
|
|||||||
if (isAuthenticated) {
|
if (isAuthenticated) {
|
||||||
return 'claude setup-token --dangerously-skip-permissions';
|
return 'claude setup-token --dangerously-skip-permissions';
|
||||||
}
|
}
|
||||||
return isOnboarding
|
return 'claude /login --dangerously-skip-permissions';
|
||||||
? 'claude /exit --dangerously-skip-permissions'
|
|
||||||
: 'claude /login --dangerously-skip-permissions';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (provider === 'cursor') {
|
if (provider === 'cursor') {
|
||||||
@@ -84,13 +79,12 @@ export default function ProviderLoginModal({
|
|||||||
onComplete,
|
onComplete,
|
||||||
customCommand,
|
customCommand,
|
||||||
isAuthenticated = false,
|
isAuthenticated = false,
|
||||||
isOnboarding = false,
|
|
||||||
}: ProviderLoginModalProps) {
|
}: ProviderLoginModalProps) {
|
||||||
if (!isOpen) {
|
if (!isOpen) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const command = getProviderCommand({ provider, customCommand, isAuthenticated, isOnboarding });
|
const command = getProviderCommand({ provider, customCommand, isAuthenticated });
|
||||||
const title = getProviderTitle(provider);
|
const title = getProviderTitle(provider);
|
||||||
const shellProject = normalizeProject(project);
|
const shellProject = normalizeProject(project);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user