Maccesch
1ba0b03965
updated book and template with features
2024-08-24 22:50:02 +01:00
Marc-Stefan Cassola
55f5ff9557
Merge pull request #160 from BakerNet/bugfix/reconnect-after-cleanup
...
bugfix: error when cleanup happens after reconnect attempt is on timeout
2024-08-24 12:39:05 +01:00
Maccesch
97c678c4a1
fixed examples
2024-08-24 12:38:11 +01:00
Marc-Stefan Cassola
ff5f6a62a0
Merge pull request #155 from hcandelaria/use_web_notification
...
Feat: Enhance UseWebNotificationOptions and ShowOptions with additional field
2024-08-24 12:10:22 +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
81f09cb278
Merge branch 'main' into use_web_notification
2024-08-23 22:22:13 -04:00
BakerNet
856a64dd18
fix error when cleanup happens after reconnect attempt is on timeout
2024-08-23 18:02:02 -07:00
Maccesch
2d3f513216
implemented different types support for sending and receiving using use_websocket
2024-08-23 19:59:59 +01: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
2443c695e9
Chore: Apply cargo fmt
to ensure code formatting
...
- Reformatted the code for `watch_debounced` & `watch_throttled` to pass `cargo fmt --check`
2024-08-22 23:24:26 -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
Maccesch
3fbe9c66d2
added features for every function.
...
fixes #152
2024-08-22 23:06:55 -04:00
Maccesch
b07b6b7cfd
added features for every function.
...
fixes #152
2024-08-22 13:37:32 +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
Marc-Stefan Cassola
480b1fa4ee
Merge pull request #88 from luckynumberke7in/main
...
Add methods to UseDocument
2024-08-21 22:03:11 +01:00
Ke7in
44cab1027d
fix cargo fmt issues
...
Forgot to set up "cargo fmt" on save --new system.
2024-08-21 16:41:04 -04:00
Ke7in
09b08f64f5
Update "hidden" in use_document
...
Changed to hide elements by default on server.
2024-08-20 21:40:23 -04:00
Marc-Stefan Cassola
9874f80c84
Merge pull request #153 from hcandelaria/use_prefers_reduced_motion
...
Feat: Add prefers-reduced-motion API implementation
2024-08-19 11:35:11 +01:00
Hector Candelaria
9f8adfc1f1
Chore: Apply cargo fmt
to ensure code formatting compliance
...
Reformatted the code to pass `cargo fmt --check`
2024-08-18 18:57:04 -04:00
Hector Candelaria
0021e4aed5
Docs: Add BooleanDisplay
import to demo
...
Included the `BooleanDisplay` import in the demo.
2024-08-18 18:43:35 -04:00
Hector Candelaria
f5a37f6c7f
Docs: Update See also references in media query functions
...
- Added `use_prefers_reduced_motion` in the documentation for
`use_media_query`, `use_preferred_contrast`, and `use_preferred_dark`
functions to include links to related functions.
2024-08-18 17:19:50 -04:00
Hector Candelaria
6d57bdf7f5
Feat: Add prefers-reduced-motion
API implementation
...
Implemented the `use_prefers_reduced_motion` function to create a
reactive interface for detecting the user's reduced motion preference
via the `prefers-reduced-motion` media query.
2024-08-18 17:17:06 -04:00
Maccesch
8324c70742
release 0.12.0
2024-08-14 03:43:00 +01:00
Marc-Stefan Cassola
30e6c9351b
Merge pull request #146 from carloskiki/mouse-coord-type
...
Rework of `UseMouseCoordType`
2024-08-14 03:31:46 +01:00
Marc-Stefan Cassola
ee7934fd7d
Merge branch 'main' into mouse-coord-type
2024-08-14 03:26:14 +01:00
Charles Edward Gagnon
f245bf07d0
fix some clippy lints
2024-08-13 22:11:43 -04:00
Maccesch
d2e968249b
updated changelog
2024-08-13 18:36:18 +01:00
Maccesch
16a65b100d
fixed the codecs chapter in the book to refer to crate codee
2024-08-13 18:32:50 +01:00
Maccesch
26a2dc0e4b
added support for Sec-CH-Prefers-Color-Scheme header.
...
Fixes #101
Relates to #121
2024-08-13 16:19:19 +01:00
Maccesch
b1367a9f0b
chore: clippy
2024-08-13 13:56:13 +01:00
Marc-Stefan Cassola
2a1f532b0b
Merge branch 'main' into mouse-coord-type
2024-08-13 13:50:16 +01:00
Maccesch
61c112c140
typo
2024-08-13 13:47:07 +01: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
1c9bbb6b08
clipboard is no longer behind unstable flags
2024-08-13 02:17:50 +01:00
Maccesch
294cbaf222
updated to latest version of web_sys
2024-08-13 02:10:35 +01:00
Marc-Stefan Cassola
5d1d8ad28f
Merge pull request #147 from Baptistemontan/fix_non_exhaustive
...
fixed an error for a match on a non exhaustive enum
2024-08-13 01:55:48 +01:00
Baptiste
6d0e946b5a
fixed a error for a match on a non exhaustive enum
2024-08-13 02:40:46 +02:00
Charles Edward Gagnon
72cc82713d
remove useless code churn
...
remove useless type
2024-08-12 20:39:46 -04:00
Charles Edward Gagnon
5d6d55dd89
update changelog
2024-08-12 20:35:51 -04:00
Charles Edward Gagnon
cb889066ce
fix build issues
2024-08-12 20:34:11 -04:00
Charles Edward Gagnon
31f019a944
make it take Some again
2024-08-12 20:27:04 -04:00
Charles Edward Gagnon
0b7e8af995
chore: fmt;
2024-08-12 20:01:53 -04:00
Charles Edward Gagnon
fe7d51c70f
fix building issues
2024-08-12 20:01:08 -04:00
Charles Edward Gagnon
e795c1f8f3
make UseMouseEventExtractor
not return an option
...
This makes it so that `Movement` always returns (0., 0.)
2024-08-12 19:55:33 -04:00
Maccesch
cef0e68121
added assign_ltr and assign_rtl to sync_signal
2024-08-12 12:25:07 +01:00
Maccesch
d32d725731
updated changelog
2024-08-01 16:16:26 +01:00
Marc-Stefan Cassola
8d8169861c
Merge pull request #142 from hcandelaria/use_web_notification
...
Feat: Enhance `UseWebNotificationOptions` and `ShowOptions` with additional fields
2024-08-01 16:08:38 +01:00
Hector Candelaria
2a8a2b81e4
Doc: fixed typo
2024-08-01 01:15:37 -04:00
Hector Candelaria
18021ad942
Merge branch 'main' into use_web_notification
2024-08-01 00:31:08 -04:00