mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-06 16:08:05 +00:00
- ide-web: built-in static server on 127.0.0.1 that serves project files, plus detection and launching of installed browsers. - Open In › Browser in the editor, project view and tab menus; browser bar and built-in preview beside HTML editors; ⌃⇧R opens the default browser. - Emmet: Tab expansion in markup editors and Update Tag with Emmet. Claude-Session: https://claude.ai/code/session_01SaPPsVPuk6ZTNsoUCNCbMv
15 lines
643 B
Rust
15 lines
643 B
Rust
//! Web browsers, like IDEA's "Open In › Browser" and the editor's browser bar.
|
||
//!
|
||
//! [`WebServer`] is the built-in server: it serves project files read-only on
|
||
//! `127.0.0.1`, so pages opened from the IDE load relative scripts, styles and
|
||
//! ES modules the way they would from a real server. Every URL starts with a
|
||
//! random per-run token, and requests whose `Host` is not the server itself are
|
||
//! refused (DNS rebinding). [`installed`] lists the browsers found on this
|
||
//! machine and [`open`] launches one, or the system default.
|
||
|
||
mod browsers;
|
||
mod server;
|
||
|
||
pub use browsers::{Browser, installed, open};
|
||
pub use server::WebServer;
|