Maccesch
b6a5d36df1
Merge branch 'main' into leptos-0.7
...
# Conflicts:
# Cargo.toml
# examples/use_broadcast_channel/Cargo.toml
# examples/use_cookie/Cargo.toml
# examples/use_websocket/Cargo.toml
# src/use_websocket.rs
2024-08-24 21:44:34 +01:00
Hector Candelaria
54a04ac382
Docs: Update vibration pattern documentation and convert helper function
...
- Updated comment for `vibrate` to describe the `Vec<u16>` format for vibration patterns.
- Modified `vibration_pattern_to_jsvalue` to accept a slice (`&[u16]`) and convert it to a `JsValue` array.
2024-08-23 23:39:42 -04:00
Hector Candelaria
5133c0308c
Doc: update vibrate
doc type to reflect new type
...
- Updated the `vibrate` type in the docs to Vec<u16>.
2024-08-23 00:01:25 -04:00
Hector Candelaria
3eadd9cf1a
Feat: Update vibrate
type to Rust type
...
- Updated `vibrate` type to `Vec<u16>` to improve SSR and type safety.
- Added new helper function `vibration_patter_to_jsvalue` to convert `Vec<u16>` to `JsValue`.
2024-08-22 23:22:02 -04:00
Baptiste de Montangon
487fdce9a9
fixed some warnings and an error with a untyped into
2024-08-22 22:49:30 +02:00
Maccesch
eb73bff3cd
merged changes from Baptiste
...
Closes #156
2024-08-22 17:47:06 +01:00
Maccesch
52d3bf33f8
Merge branch 'main' into leptos-0.7
...
# Conflicts:
# Cargo.toml
# src/core/storage.rs
# src/lib.rs
# src/use_clipboard.rs
# src/use_cookie.rs
# src/use_mouse.rs
# src/use_mouse_in_element.rs
# src/use_preferred_dark.rs
# src/use_timeout_fn.rs
2024-08-22 13:45:56 +01:00
Hector Candelaria
4ff32e7dce
Docs: Correct default value for silent
field
...
- Updated comments to reflect that the default value for `silent` is
`null`, not `false`.
2024-08-21 21:54:03 -04:00
Hector Candelaria
9cb0e386aa
Feat: Add vibrate
field to use_web_notification
...
- Implemented `vibrate` option in `UseWebNotificationOptions` and
`ShowOptions` structures allowing specifying vibration patterns for
notifications.
2024-08-21 21:54:03 -04:00
Maccesch
d4330c9fb1
use_local now uses LanguageIdentifier and proper matching.
...
Also removed a bunch of deprecated warnings.
Closes #144
2024-08-13 13:45:36 +01:00
Maccesch
294cbaf222
updated to latest version of web_sys
2024-08-13 02:10:35 +01:00
Baptiste
6d0e946b5a
fixed a error for a match on a non exhaustive enum
2024-08-13 02:40:46 +02:00
CorvusPrudens
feb585362e
Removed all trivial SendWrappers
2024-08-03 23:28:09 -06:00
Hector Candelaria
2a8a2b81e4
Doc: fixed typo
2024-08-01 01:15:37 -04:00
Hector Candelaria
f37f28cfff
Feat: Add image
field to UseWebNotificationOptions
and ShowOptions
...
Added the `image` field to the `UseWebNotificationOptions` and `ShowOptions` structures.
This field allows specifying an image URL to be displayed in the notification.
2024-07-31 23:11:33 -04:00
Hector Candelaria
88af0e735d
Feat: Add silent
field to UseWebNotificationOptions
and ShowOptions
...
Introduced the `silent` field to the `UseWebNotificationOptions` and `ShowOptions` structures,
allowing notifications to be displayed in silent.
2024-07-31 22:18:58 -04:00
Hector Candelaria
0b6903fccc
Feat: Add renotify
field to UseWebNotificationOptions
and ShowOptions
...
Uncommented the existing `renotify` code.
2024-07-31 21:47:38 -04:00
CorvusPrudens
c414022b23
Completed MVP port
2024-07-23 21:33:14 -06:00
Corvus
c6914330b6
Partial update to 0.7.0-alpha
2024-07-19 20:22:27 -06:00
Maccesch
04942f432b
work to port to leptos 0.7
2024-05-07 13:24:14 +01:00
Maccesch
5f3f60ca6b
work to port to leptos 0.7
2024-05-07 12:41:44 +01:00
Maccesch
7216a3281c
wrapped callbacks in non-reactive zones to remove potential warnings
2024-02-27 00:02:37 +00:00
Maccesch
27f516898c
added use_clipboard, use_permission, use_timeout_fn
...
closes #72
2024-02-09 03:18:53 +00:00
Maccesch
72b6f31378
added ssr docs to use_web_notification
2023-12-06 00:39:53 +00:00
Maccesch
5f5779ed10
use_web_notification is now SSR-safe.
...
relates to #46
2023-12-06 00:10:33 +00:00
Maccesch
8c2beb814d
release 0.8.0
2023-10-24 00:52:06 -05:00
Maccesch
cd67ca5542
added use_web_notification
2023-10-23 23:49:11 -05:00