Ben Pate
2aca696c88
Rebuild SSE using new Extension API
...
- internal API has been moved to a constructor variable.
- added reconnect with exponential backoff
- initial tests of SSE features are working
- added many JSDoc comments in the process.
- added link to "sse triggers" test
2021-10-29 13:24:16 -06:00
Ben Pate
93acf88431
Update test cases
...
- trigger tests working.
- settle tests failing
2021-10-25 21:56:24 -06:00
Ben Pate
dd5b92b46a
Triggers working
2021-10-25 20:15:56 -06:00
Ben Pate
a1113ec111
More tests working
...
- multichannel test works well.
- removing debug code from simple SSE example
2021-10-24 12:34:01 -06:00
Ben Pate
260b82314a
Initial port
...
- rebuilding this fork because of a corrupted git repository. This branch is "working" but needs more testing to be certain.
- major changes to the way that htmx handles extensions. this will need to be vetted more carefully before we proceed.
2021-10-24 11:56:45 -06:00
Mamés Palmero
443c271d40
Fix root: option of the intersect event
2021-09-27 15:25:15 +02:00
carson
c77cb83c54
clean up tests for 1.5.0
release
2021-07-12 10:48:53 -06:00
carson
94a9ef1dbb
consume white space after interval
2021-07-09 17:52:21 -06:00
carson
0eeb922a1e
scroll fixes
2021-07-09 06:01:56 -06:00
carson
e621b52867
tests and bug fixes for scrolling targets
2021-07-08 13:11:48 -06:00
carson
1298c41435
use clicked event to track button clicks as well for OSX
2021-07-02 12:30:08 -06:00
carson
6d1a86836e
track last clicked button using focus to include value in submission
2021-07-01 13:54:11 -06:00
carson
f6efc4a8c3
add intersect
event for intersection observer
...
supports the `root` and `threshold` config variables
2021-05-18 13:19:03 -06:00
Sven R. Kunze
c98c1abc33
added manual test (by @benpate)
2021-03-12 20:46:59 +01:00
carson
5a68871ac3
find the correct element to trigger after request events on
2021-02-23 14:01:35 -07:00
carson
acd15a5f5a
allow users to configure a full page refresh on a history miss
2021-02-19 09:50:04 -07:00
carson
aab37c8825
history testing infrastructure
2021-02-13 07:35:40 -07:00
Ben Pate
9e58594af1
Update preload extension
...
- preloading linked images is now optional
- update manual tests
- update documentation
2021-01-28 14:30:35 -07:00
Ben Pate
4b1d6708d0
Handle preloaded resources
...
Updates to preload now preload any linked images included in the fragment html. Stylesheets and scripts are not affected.
2021-01-12 19:21:09 -07:00
carson
219c78262d
csp test page
2021-01-04 09:22:07 -07:00
Ben Pate
8aa4f74745
Change Default Configuration
...
- allow inheritance
- change default trigger to mousedown
- move configuration event into `preload` attribute
- remove wait option (delay hardcoded to 100ms)
- update manual test cases
2021-01-02 17:55:36 -07:00
Ben Pate
3022030505
Add test cases
...
Manual test cases for now.
2021-01-01 21:54:49 -07:00
Ben Pate
d928c7ca38
Improved error handling
...
- Catches rapid mouse movements better
- Better test cases
2020-12-29 22:12:47 -07:00
Ben Pate
294885454b
Style updates
...
- use built-in htmx.parseInterval function instead of custom one
- smarter handling of mouse movement inside complex objects
- more descriptive values in preloadState
- also, semicolons
2020-12-29 20:39:07 -07:00
Ben Pate
d0f19754ad
Updates
...
- Changed API to look for event names and wait durations.
- Changed default triggers to mousedown (0ms wait time)
- Added default wait on mouseover events (100ms)
- Now using htmx.ajax for HX-GET requests. This makes sure headers match the actual HTTP requestswhen they're made
- Updated manual tests
- More tests and documentation to come
2020-12-29 16:28:35 -07:00
carson
d71e7bd4e9
accept selector strings as first argument to on()
, off()
, etc.
...
hyperscript example for file upload
2020-11-25 06:24:46 -07:00
carson
85b5d04faa
file upload progress, with test
2020-11-24 14:24:01 -07:00
Andrew Lehman
661f43f5cf
Update title and test label
2020-11-15 21:11:10 -05:00
Andrew Lehman
f9d0ccb3ed
Add minimal test to ensure requests aren't locked
2020-11-15 21:08:31 -05:00
carson
8ac2baf586
switch to colon separator for sse and ws to avoid comma issues w/ URLs
2020-09-15 12:22:54 -06:00
Ben Pate
9b28ddc129
Import Test Cases
...
These three test cases demonstrate SSE using a remote service.
2020-09-13 19:21:35 -06:00
Ben Pate
09be7fff0d
Added Tests
...
- added new scroll test
- renamed original test (because now there are two manual tests for scrolling)
2020-09-02 11:12:48 -06:00
carson
eb04ab5b3e
add scroll
and view
modifiers to hx-swap
2020-06-23 14:25:56 -07:00
acnebs
d01025823e
Rename custom HTTP headers to no longer start with X-
...
This convention is deprecated, as per this RFC from the IETF:
https://tools.ietf.org/html/rfc6648
2020-05-28 01:29:51 +01:00
carson
0a2f717f10
fix up final stuff from rename
2020-05-17 05:59:13 -07:00
carson
3aa8c64754
le big re-rename
2020-05-17 05:22:19 -07:00
carson
e1e4f25b0e
regigger tests and add manual tests for hard-to-test things like prompt and confirm
2020-05-16 15:40:15 -07:00