1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/// The URL for checking the latest euv crate documentation status.
pub const DOCS_STATUS_URL: &str = "https://docs.rs/crate/euv/latest/status.json";
/// The `target` value that opens a link in a new browser tab.
///
/// Used for every outbound GitHub link in the desktop sidebar, the mobile
/// header, and the mobile drawer footer.
pub const LINK_TARGET_BLANK: &str = "_blank";
/// The sidebar section label that introduces the page list.
pub const NAV_SECTION_LABEL_PAGES: &str = "Pages";
/// The leading text of the sidebar footer credit, before the brand span.
pub const NAV_FOOTER_CREDIT_PREFIX: &str = "Built with ";
/// The brand name shown in the sidebar footer credit span.
pub const NAV_FOOTER_CREDIT_BRAND: &str = "Euv & Wasm";
/// The GitHub repository URL for the project.
pub const GITHUB_URL: &str = "https://github.com/euv-dev/euv";
/// Message reported when the docs status fetch exhausted every retry.
pub const MESSAGE_FETCH_DOCS_STATUS_FAILED: &str = "failed to fetch docs status";
/// Message reported when docs.rs offers no version newer than the running one.
pub const MESSAGE_ALREADY_LATEST_VERSION: &str = "already on the latest version";
/// Message reported when the native bridge is missing, so no update is possible.
pub const MESSAGE_BRIDGE_UNAVAILABLE: &str = "native bridge is not available";
/// The invoke command name for updating the local cache via bridge.
pub const INVOKE_UPDATE_CACHE: &str = "update_cache";
/// The fallback string used when a `JsValue` error cannot be converted via `as_string()`.
pub const ERROR_NULL_TEXT: &str = "null";
/// The maximum number of retry attempts for fetching version status.
pub const VERSION_FETCH_MAX_RETRY_COUNT: u32 = 8;
/// The delay duration between retry attempts in milliseconds.
pub const VERSION_FETCH_RETRY_DELAY_MS: u32 = 1000;
/// The maximum number of retry attempts when re-notifying the native side to
/// pull the latest cache after a failed bridge call.
///
/// When `bridge.core.invoke("update_cache", ...)` either rejects on the JS
/// side or returns a `success: false` payload from native, the webview retries
/// the invocation this many times before giving up.
pub const VIEW_UPDATE_RETRY_COUNT: u32 = 8;
/// The delay duration in milliseconds between retry attempts when
/// re-notifying the native side (see `VIEW_UPDATE_RETRY_COUNT`).
pub const VIEW_UPDATE_RETRY_DELAY_MS: u32 = 1000;
pub const THEME_DARK: &str = "dark";