mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-01-29 12:57:31 +00:00
Compare commits
5 Commits
fix/WORKSP
...
viper151-p
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ceb260115 | ||
|
|
3debc3a249 | ||
|
|
f4c0fe9e04 | ||
|
|
5512e2e15b | ||
|
|
1b42dba902 |
@@ -31,13 +31,13 @@ function LoginModal({
|
|||||||
|
|
||||||
switch (provider) {
|
switch (provider) {
|
||||||
case 'claude':
|
case 'claude':
|
||||||
return isAuthenticated ? 'claude /login --dangerously-skip-permissions' : 'claude setup-token --dangerously-skip-permissions';
|
return isAuthenticated ? 'claude setup-token --dangerously-skip-permissions' : 'claude /login --dangerously-skip-permissions';
|
||||||
case 'cursor':
|
case 'cursor':
|
||||||
return 'cursor-agent login';
|
return 'cursor-agent login';
|
||||||
case 'codex':
|
case 'codex':
|
||||||
return isPlatform ? 'codex login --device-auth' : 'codex login';
|
return isPlatform ? 'codex login --device-auth' : 'codex login';
|
||||||
default:
|
default:
|
||||||
return isAuthenticated ? 'claude /login --dangerously-skip-permissions' : 'claude setup-token --dangerously-skip-permissions';
|
return isAuthenticated ? 'claude setup-token --dangerously-skip-permissions' : 'claude /login --dangerously-skip-permissions';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ export function useWebSocket() {
|
|||||||
if (isPlatform) {
|
if (isPlatform) {
|
||||||
// Platform mode: Use same domain as the page (goes through proxy)
|
// Platform mode: Use same domain as the page (goes through proxy)
|
||||||
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
|
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
|
||||||
wsUrl = `${protocol}//${window.location.host}/ws`;
|
wsUrl = `/ws`;
|
||||||
} else {
|
} else {
|
||||||
// OSS mode: Connect to same host:port that served the page
|
// OSS mode: Connect to same host:port that served the page
|
||||||
const token = localStorage.getItem('auth-token');
|
const token = localStorage.getItem('auth-token');
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ export default defineConfig(({ command, mode }) => {
|
|||||||
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
base: './',
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
server: {
|
server: {
|
||||||
port: parseInt(env.VITE_PORT) || 5173,
|
port: parseInt(env.VITE_PORT) || 5173,
|
||||||
|
|||||||
Reference in New Issue
Block a user