1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 12:07:19 +00:00
TiddlyWiki5/core/modules
Nicolas Petton 17b4f53ba2
Add server sent events (#5279)
* Create server-sent-events.js

* Create sse-change-listener.js

* Implement server sent events

* Convert to ES5 and wrap in function

* Use the host string from tiddlyweb

* Improve comments in sse-server.js

* Can't use object reference as key

* Add retry timeout

* Fix a bug

* bug fix

* Fix formatting

* Fix ES5 compat

* capitalize comments

* more fixes

* Refactor tiddlywek/sse-server.js

* Extract helper functions for handling wikis and connections.
* Replace JSDoc comments.
* Fix formatting according to TW core.
* Simplify the logic for adding and removing connections.

* Fix formatting of tiddlyweb/sse-client.js

Fix formatting according to TW core.

* Fix formatting of server-sent-events.js

Fix formatting and comments following TW core guidelines.

* Extract a debounce function in sse-client.js

* Avoid using startsWith in server-sent-events.js

startsWith is part of ES2015, while TiddlyWiki uses the 5.1 dialect.

* New sse-enabled WebServer parameter

* If not set to "yes", disabled SSE request handling.
* Add documentation for the parameter in core/language/en-GB/Help/listen.tid
* Add new tiddler editions/tw5.com/tiddlers/webserver/WebServer Parameter_ sse-enabled.tid

* Disable polling for changes if SSE is enabled

* Add sse_enabled to /status JSON response
* Store syncer polling status in $:/config/SyncDisablePolling
* Handled disabling polling in core/modules/syncer.js

* Simply boolean logic in syncer.js

* Delete trailing whitespaces in syncer.js

Co-authored-by: Arlen22 <arlenbee@gmail.com>
2021-01-15 10:37:55 +00:00
..
commands Mention <tiddler-filter> parameter of savelibrarytiddlers command (#4857) 2020-09-24 19:09:06 +01:00
editor Add "autocomplete" attribute to <$edit> and <$edit-text> widgets 2020-11-30 18:48:04 +00:00
filterrunprefixes use a linked list for filter runs. (#5206) 2020-12-06 08:54:57 +00:00
filters Fixed issue where [lookup[]] could emit undefined (#5376) 2021-01-07 18:19:50 +00:00
indexers Add backlinks indexer (#4421) 2020-03-26 13:15:02 +00:00
info Fix dark mode event handling 2020-11-25 12:33:39 +00:00
macros jsontiddlers macro: parse "spaces" parameter as integer 2020-04-15 15:27:53 +01:00
parsers Fixed comment parsers to match end marker correctly 2021-01-13 11:48:42 +00:00
savers Ensure that we always fetch the latest sha bypassing cache. (#5126) 2020-11-27 21:37:11 +00:00
server Add server sent events (#5279) 2021-01-15 10:37:55 +00:00
startup Make "tc-dirty" update also on external windows (#5129) 2020-11-28 21:24:01 +00:00
storyviews Pop storyview: fix bug where targetElement is null (#4143) 2019-08-02 08:51:16 +01:00
upgraders Improved status messages in ImportListing to remove redundant and irrelevant messages (#5059) 2020-11-17 19:12:41 +00:00
utils Memory efficient linked list (#5380) 2021-01-09 20:52:34 +00:00
widgets Fix #5308 - WidgetSubclassingMechanism not working with widgets that add EventListeners (or logic ?) in constructor (#5382) 2021-01-09 13:25:48 +00:00
commander.js Module-ize server routes, add static file support and other enhancements(#2679) 2018-07-18 16:54:43 +01:00
config.js Move the wikilink regexps into global config 2014-11-26 11:12:25 +00:00
deserializers.js Add support for JSON files containing a single tiddler 2017-03-17 14:19:43 +00:00
filters.js Fix for LinkedLists when using bad filter prefix (#5251) 2020-12-10 18:25:53 +00:00
keyboard.js Add "meta" to getEventModifierKeyDescriptor (#5000) 2020-11-08 10:15:29 +00:00
language.js Make lazy loading message be translateable 2015-09-08 10:41:27 +01:00
pluginswitcher.js Dynamic plugins: Fix registration of themes and languages 2019-09-16 13:17:09 +01:00
saver-handler.js Make "tc-dirty" update also on external windows (#5129) 2020-11-28 21:24:01 +00:00
story.js Fix issues with creation and modification dates 2015-09-11 13:34:01 +01:00
syncer.js Add server sent events (#5279) 2021-01-15 10:37:55 +00:00
tiddler.js Ensure tiddler.getFieldStringBlock uses a deterministic ordering 2019-04-14 14:23:49 +01:00
wiki-bulkops.js Fix unnecessary "list" field creation when renaming tiddlers 2019-07-30 17:10:53 +01:00
wiki.js When importing don't use file type as content type 2020-11-14 12:05:35 +00:00