Files
cline-multi-mirror/src/shared/BrowserSettings.ts
T
AraandCline Evaluation 976a8fa85e Migrate Browsertools settings to the webview from Vscode settings (#3444)
* Removing redundant settings

* Add chromeExecutablePath to BrowserSettings and UpdateBrowserSettingsRequest

- Introduced optional chromeExecutablePath field in BrowserSettings and UpdateBrowserSettingsRequest.
- Updated updateBrowserSettings function to merge new settings with existing ones, preserving previous values.
- Enhanced BrowserSession to check for the chromeExecutablePath in global state.
- Modified BrowserSettingsSection to include a UI input for specifying the Chrome executable path.

* Removing browser stuff

* Removing browser stuff

* Removing browser stuff

* Removing browser stuff

* Add cute animation

* Add cute animation

* Add cute animation

* Add cute animation

* Add cute animation

* Add cute animation

* Add cute animation

* adding stuff

---------

Co-authored-by: Cline Evaluation <cline@example.com>
2025-05-12 23:06:37 +05:30

33 lines
875 B
TypeScript

export interface BrowserSettings {
// Viewport size settings
viewport: {
width: number
height: number
}
// Chrome installation to use
// chromeType: "chromium" | "system"
remoteBrowserHost?: string
remoteBrowserEnabled?: boolean
chromeExecutablePath?: string
disableToolUse?: boolean
}
export const DEFAULT_BROWSER_SETTINGS: BrowserSettings = {
viewport: {
width: 900,
height: 600,
},
remoteBrowserEnabled: false,
remoteBrowserHost: "http://localhost:9222",
chromeExecutablePath: "", // Changed from undefined to empty string
// chromeType: "chromium",
disableToolUse: false,
}
export const BROWSER_VIEWPORT_PRESETS = {
"Large Desktop (1280x800)": { width: 1280, height: 800 },
"Small Desktop (900x600)": { width: 900, height: 600 },
"Tablet (768x1024)": { width: 768, height: 1024 },
"Mobile (360x640)": { width: 360, height: 640 },
} as const