mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-22 16:49:22 -05:00
parent
c60d32bf5a
commit
365b705bf5
5 changed files with 16 additions and 16 deletions
|
@ -13,7 +13,7 @@
|
||||||
<a href="https://crates.io/crates/leptos-use"><img src="https://img.shields.io/crates/v/leptos-use.svg?label=&color=%232C1275" alt="Crates.io"/></a>
|
<a href="https://crates.io/crates/leptos-use"><img src="https://img.shields.io/crates/v/leptos-use.svg?label=&color=%232C1275" alt="Crates.io"/></a>
|
||||||
<a href="https://leptos-use.rs/server_side_rendering.html"><img src="https://img.shields.io/badge/-SSR-%236a214b" alt="SSR"></a>
|
<a href="https://leptos-use.rs/server_side_rendering.html"><img src="https://img.shields.io/badge/-SSR-%236a214b" alt="SSR"></a>
|
||||||
<a href="https://leptos-use.rs"><img src="https://img.shields.io/badge/-docs%20%26%20demos-%239A233F" alt="Docs & Demos"></a>
|
<a href="https://leptos-use.rs"><img src="https://img.shields.io/badge/-docs%20%26%20demos-%239A233F" alt="Docs & Demos"></a>
|
||||||
<a href="https://leptos-use.rs"><img src="https://img.shields.io/badge/-84%20functions-%23EF3939" alt="84 Functions" /></a>
|
<a href="https://leptos-use.rs"><img src="https://img.shields.io/badge/-86%20functions-%23EF3939" alt="86 Functions" /></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
|
@ -12,6 +12,6 @@
|
||||||
<a href="https://crates.io/crates/leptos-use"><img src="https://img.shields.io/crates/v/leptos-use.svg?label=&color=%232C1275" alt="Crates.io"/></a>
|
<a href="https://crates.io/crates/leptos-use"><img src="https://img.shields.io/crates/v/leptos-use.svg?label=&color=%232C1275" alt="Crates.io"/></a>
|
||||||
<a href="https://leptos-use.rs/server_side_rendering.html"><img src="https://img.shields.io/badge/-SSR-%236a214b" alt="SSR"></a>
|
<a href="https://leptos-use.rs/server_side_rendering.html"><img src="https://img.shields.io/badge/-SSR-%236a214b" alt="SSR"></a>
|
||||||
<a href="./get_started.html"><img src="https://img.shields.io/badge/-docs%20%26%20demos-%239A233F" alt="Docs & Demos"></a>
|
<a href="./get_started.html"><img src="https://img.shields.io/badge/-docs%20%26%20demos-%239A233F" alt="Docs & Demos"></a>
|
||||||
<a href="./functions.html"><img src="https://img.shields.io/badge/-84%20functions-%23EF3939" alt="84 Functions" /></a>
|
<a href="./functions.html"><img src="https://img.shields.io/badge/-86%20functions-%23EF3939" alt="86 Functions" /></a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
16
src/lib.rs
16
src/lib.rs
|
@ -28,10 +28,6 @@ mod is_ok;
|
||||||
mod is_some;
|
mod is_some;
|
||||||
#[cfg(feature = "on_click_outside")]
|
#[cfg(feature = "on_click_outside")]
|
||||||
mod on_click_outside;
|
mod on_click_outside;
|
||||||
#[cfg(feature = "use_web_lock")]
|
|
||||||
mod use_web_lock;
|
|
||||||
#[cfg(feature = "use_window_size")]
|
|
||||||
mod use_window_size;
|
|
||||||
#[cfg(feature = "signal_debounced")]
|
#[cfg(feature = "signal_debounced")]
|
||||||
mod signal_debounced;
|
mod signal_debounced;
|
||||||
#[cfg(feature = "signal_throttled")]
|
#[cfg(feature = "signal_throttled")]
|
||||||
|
@ -142,6 +138,8 @@ mod use_to_string;
|
||||||
mod use_toggle;
|
mod use_toggle;
|
||||||
#[cfg(feature = "use_user_media")]
|
#[cfg(feature = "use_user_media")]
|
||||||
mod use_user_media;
|
mod use_user_media;
|
||||||
|
#[cfg(feature = "use_web_lock")]
|
||||||
|
mod use_web_lock;
|
||||||
#[cfg(feature = "use_web_notification")]
|
#[cfg(feature = "use_web_notification")]
|
||||||
mod use_web_notification;
|
mod use_web_notification;
|
||||||
#[cfg(feature = "use_websocket")]
|
#[cfg(feature = "use_websocket")]
|
||||||
|
@ -152,6 +150,8 @@ mod use_window;
|
||||||
mod use_window_focus;
|
mod use_window_focus;
|
||||||
#[cfg(feature = "use_window_scroll")]
|
#[cfg(feature = "use_window_scroll")]
|
||||||
mod use_window_scroll;
|
mod use_window_scroll;
|
||||||
|
#[cfg(feature = "use_window_size")]
|
||||||
|
mod use_window_size;
|
||||||
#[cfg(feature = "watch_debounced")]
|
#[cfg(feature = "watch_debounced")]
|
||||||
mod watch_debounced;
|
mod watch_debounced;
|
||||||
#[cfg(feature = "watch_pausable")]
|
#[cfg(feature = "watch_pausable")]
|
||||||
|
@ -173,10 +173,6 @@ pub use is_ok::*;
|
||||||
pub use is_some::*;
|
pub use is_some::*;
|
||||||
#[cfg(feature = "on_click_outside")]
|
#[cfg(feature = "on_click_outside")]
|
||||||
pub use on_click_outside::*;
|
pub use on_click_outside::*;
|
||||||
#[cfg(feature = "use_web_lock")]
|
|
||||||
pub use use_web_lock::*;
|
|
||||||
#[cfg(feature = "use_window_size")]
|
|
||||||
pub use use_window_size::*;
|
|
||||||
#[cfg(feature = "signal_debounced")]
|
#[cfg(feature = "signal_debounced")]
|
||||||
pub use signal_debounced::*;
|
pub use signal_debounced::*;
|
||||||
#[cfg(feature = "signal_throttled")]
|
#[cfg(feature = "signal_throttled")]
|
||||||
|
@ -287,6 +283,8 @@ pub use use_to_string::*;
|
||||||
pub use use_toggle::*;
|
pub use use_toggle::*;
|
||||||
#[cfg(feature = "use_user_media")]
|
#[cfg(feature = "use_user_media")]
|
||||||
pub use use_user_media::*;
|
pub use use_user_media::*;
|
||||||
|
#[cfg(feature = "use_web_lock")]
|
||||||
|
pub use use_web_lock::*;
|
||||||
#[cfg(feature = "use_web_notification")]
|
#[cfg(feature = "use_web_notification")]
|
||||||
pub use use_web_notification::*;
|
pub use use_web_notification::*;
|
||||||
#[cfg(feature = "use_websocket")]
|
#[cfg(feature = "use_websocket")]
|
||||||
|
@ -297,6 +295,8 @@ pub use use_window::*;
|
||||||
pub use use_window_focus::*;
|
pub use use_window_focus::*;
|
||||||
#[cfg(feature = "use_window_scroll")]
|
#[cfg(feature = "use_window_scroll")]
|
||||||
pub use use_window_scroll::*;
|
pub use use_window_scroll::*;
|
||||||
|
#[cfg(feature = "use_window_size")]
|
||||||
|
pub use use_window_size::*;
|
||||||
#[cfg(feature = "watch_debounced")]
|
#[cfg(feature = "watch_debounced")]
|
||||||
pub use watch_debounced::*;
|
pub use watch_debounced::*;
|
||||||
#[cfg(feature = "watch_pausable")]
|
#[cfg(feature = "watch_pausable")]
|
||||||
|
|
|
@ -6,13 +6,13 @@ pub use web_sys::LockMode;
|
||||||
|
|
||||||
/// Rustified [Web Locks API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Locks_API).
|
/// Rustified [Web Locks API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Locks_API).
|
||||||
///
|
///
|
||||||
/// The **Web Locks API** allows scripts running in one tab or worker to asynchronously acquire a
|
/// The **Web Locks API** allows scripts running in one tab or worker to asynchronously acquire a
|
||||||
/// lock, hold it while work is performed, then release it. While held, no other script executing
|
/// lock, hold it while work is performed, then release it. While held, no other script executing
|
||||||
/// in the same origin can acquire the same lock, which allows a web app running in multiple tabs or
|
/// in the same origin can acquire the same lock, which allows a web app running in multiple tabs or
|
||||||
/// workers to coordinate work and the use of resources.
|
/// workers to coordinate work and the use of resources.
|
||||||
///
|
///
|
||||||
/// > This function requires `--cfg=web_sys_unstable_apis` to be activated as
|
/// > This function requires `--cfg=web_sys_unstable_apis` to be activated as
|
||||||
/// [described in the wasm-bindgen guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html).
|
/// > [described in the wasm-bindgen guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html).
|
||||||
///
|
///
|
||||||
/// ## Demo
|
/// ## Demo
|
||||||
///
|
///
|
||||||
|
|
|
@ -4,7 +4,7 @@ use leptos::*;
|
||||||
///{{#if (eq unstable_apis "true")}}
|
///{{#if (eq unstable_apis "true")}}
|
||||||
///
|
///
|
||||||
/// > This function requires `--cfg=web_sys_unstable_apis` to be activated as
|
/// > This function requires `--cfg=web_sys_unstable_apis` to be activated as
|
||||||
/// [described in the wasm-bindgen guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html).{{/if}}
|
/// > [described in the wasm-bindgen guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html).{{/if}}
|
||||||
///
|
///
|
||||||
/// ## Demo
|
/// ## Demo
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Reference in a new issue