* manual port * successfully open remote chrome * clean up auto-detect vs specified path * move the browser settings into regular settings * changeset & prettier * correct chrome path description, remove some old comments, and rename headless mode to local mode * rename incorrect headless mode to 'local mode' * Sub-PR of hugelung/remote_browser: clicking browser widget's gear opens basic settings & scrolls down with a highlight (#2439) * first version of scrolling to browser settings * really nice generic scroll to settings & highlight * formatting & changeset --------- Co-authored-by: Andrei Edell <andrei@nugbase.com> * added feature to detect and display chrome path as placeholder in browser settings (#2442) Co-authored-by: Andrei Edell <garoth@gmail.com> * Features to relaunch browser in debug, test connection (#2440) * Features to Relaunch browser in debug, test connection * Update src/services/browser/BrowserSession.ts Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> * Update webview-ui/src/components/browser/BrowserSettingsMenu.tsx Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> --------- Co-authored-by: Andrei Edell <garoth@gmail.com> Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> * fix a merge conflict resolution error * fix linter issue * clarify settings descriptions * Remove sketchy network scanning code * respect viewport size in remote host * headless browser fix (#2451) * Disable notifications in browser * start of info panel popover (#2453) * start of info panel popover * remove duplicated message & prettier fix * Revert "remove duplicated message & prettier fix" This reverts commit dcefef35aacfc9d9a8461d37805c2ffb64b558c4. * info styling, close browser tab, hide headless info --------- Co-authored-by: Andrei Edell <andrei@nugbase.com> * remove headless checkbox * settings layout rework & more auto * new chrome flags experiments * make headless choice automatic & phrasing & visual cleanups * auto-recheck chrome connection every second - while we are looking at settings - while we have remote debugging enabled * continuous remote connection testing & ux cleanup * remove advanced settings from package.json * format fixes * dont display connection type after dc to smooth over ui of reloading tasks * seems we need package-lock now for ci * Revert "remove advanced settings from package.json" This reverts commit 5defe4a8cae7631bcf9c1fb9efa874e3238c5034. * relaunch correctly with default session * prevent about:blank opening on relaunch * Resolve merge conflicts with refactor * add browser tool telemetry * try launching chrome using node spawn_child to detach it * browser settings update * do async dispose for browsersession * remove duplicated message implementation * Remove remote browser settings from configuration, and enhance browser settings UI with an advanced settings button. * Remove updateBrowserSettings * Fix text with chrome path * fix arafat's pr note about multiple timers * fix saoud's note about require use * Remote browser logging (#2682) * logging * reduce logging levels --------- Co-authored-by: Andrei Edell <andrei@nugbase.com> * Make browser status popup adapt to viewport width * remove requires for exec/spawn * remove unneeded comments * error telemetry * remove headless mode / settings everywhere * migrate values list to simple endpoint string * fix log spam and clean up a comment * Fixes; copy * Remove local state since we're already using extension state * Remove unnecessary remoteBrowserHost and remoteBrowserEnabled states * Fix status wrapping --------- Co-authored-by: Andrei Edell <andrei@nugbase.com> Co-authored-by: canvrno <46584286+canvrno@users.noreply.github.com> Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> Co-authored-by: canvrno <kevin@cline.bot> Co-authored-by: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Co-authored-by: frostbournesb <frostbournesb@protonmail.com> Co-authored-by: Dennis Bartlett <bartlett.dc.1@gmail.com>
29 lines
725 B
TypeScript
29 lines
725 B
TypeScript
export interface BrowserSettings {
|
|
// Viewport size settings
|
|
viewport: {
|
|
width: number
|
|
height: number
|
|
}
|
|
// Chrome installation to use
|
|
// chromeType: "chromium" | "system"
|
|
remoteBrowserHost?: string
|
|
remoteBrowserEnabled?: boolean
|
|
}
|
|
|
|
export const DEFAULT_BROWSER_SETTINGS: BrowserSettings = {
|
|
viewport: {
|
|
width: 900,
|
|
height: 600,
|
|
},
|
|
remoteBrowserEnabled: false,
|
|
remoteBrowserHost: "http://localhost:9222",
|
|
// chromeType: "chromium",
|
|
}
|
|
|
|
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
|