Experimental panel for Verso.
- Run
pnpm dev
to start the development server. - In Verso
verso/src/app.rs
, point panel url to the dev server.
// let path = std::env::current_dir()
// .unwrap()
// .join("resources/panel.html");
// let url = ServoUrl::from_file_path(path.to_str().unwrap()).unwrap();
let url = ServoUrl::parse("http://localhost:5173/").unwrap();
init_servo
.servo
.handle_events(vec![EmbedderEvent::NewWebView(url, init_servo.browser_id)]);
- Run
pnpm build
to generate a single HTML file. - Replace
verso/resources/panel.html
withdist/index.html
.