# Description of Changes Changes the desktop app to allow connections to self-hosted servers on first startup. This was quite involved and hit loads of CORS issues all through the stack, but I think it's working now. This also changes the bundled backend to spawn on an OS-decided port rather than always spawning on `8080`, which means that the user can have other things running on port `8080` now and the app will still work fine. There were quite a few places that needed to be updated to decouple the app from explicitly using `8080` and I was originally going to split those changes out into another PR (#4939), but I couldn't get it working independently in the time I had, so the diff here is just going to be complex and contian two distinct changes - sorry 🙁
26 lines
609 B
Rust
26 lines
609 B
Rust
pub mod backend;
|
|
pub mod files;
|
|
pub mod connection;
|
|
pub mod auth;
|
|
pub mod default_app;
|
|
pub mod health;
|
|
|
|
pub use backend::{cleanup_backend, get_backend_port, start_backend};
|
|
pub use files::{add_opened_file, clear_opened_files, get_opened_files};
|
|
pub use connection::{
|
|
get_connection_config,
|
|
is_first_launch,
|
|
set_connection_mode,
|
|
};
|
|
pub use auth::{
|
|
clear_auth_token,
|
|
clear_user_info,
|
|
get_auth_token,
|
|
get_user_info,
|
|
login,
|
|
save_auth_token,
|
|
save_user_info,
|
|
};
|
|
pub use default_app::{is_default_pdf_handler, set_as_default_pdf_handler};
|
|
pub use health::check_backend_health;
|