Jermolene
ab5e5795e8
Fix issue with lazy loading temporary tiddlers
...
Fixes #3235
2018-05-03 18:27:17 +01:00
Jermolene
05a3d9a302
Syncer: allow logging to be disabled
...
We don't want the syncer used by the savetrail plugin to be logging
2017-09-26 17:10:57 +01:00
Jermolene
73953080e3
SaveTrailPlugin: Fix syncer UI interactions
...
The syncer used by the savetrail plugin shouldn't perform any UI interactions
2017-09-20 16:28:11 +01:00
Jermolene
51b1ead5c9
Add more colour to command line output
2017-09-04 14:55:12 +01:00
Jermolene
db056a84a5
Remove obsolete code
2017-02-04 18:14:20 +00:00
Jermolene
6c65aa2a6d
Make the syncer more configurable, including names for sync adaptors
...
@danielo515 you may want to add a name to your sync adaptor 😄
2017-02-04 17:25:30 +00:00
Jermolene
18dd8d4433
Fix problem with lazy loading under Node.js
...
Fixes #2514
2016-08-16 15:48:14 +01:00
Jermolene
7326a3a4cc
Only call isReady() for sync adaptors that support it
...
Fixes #2522
2016-08-06 14:45:33 +01:00
Jermolene
c3d18364c1
Don't use syncadaptors until they are ready
...
Fixes #2453
2016-07-05 11:29:59 +01:00
Myeongjin
6388f859d1
Add localisable strings for error ( #2447 )
...
* Add localisable strings for error
* Update tiddler Transclusion Basic Usage in fr-FR
2016-05-17 21:58:47 +01:00
Myeongjin
8afc1e9354
Add localisable strings ( #2438 )
...
* Add localisable string for recursive transclusion error
* Add localisable string for count
* Add localisable strings for syncer
2016-05-12 08:44:28 -06:00
Jermolene
1e0d019610
Don't repeatedly lazy load the same tiddler
...
If we don’t get a “text” field back the first time we shouldn’t keep
asking for it.
2016-04-18 14:50:13 +01:00
Jermolene
48dcf959ff
Refactor browser unload task handling
...
Make it possible to register multiple task functions that will be
called when the window is unloaded
2015-05-03 16:23:35 +01:00
Jermolene
3657bbe920
Switch from addEventListener to onbeforeunload
...
This makes it possible for TiddlyDesktop to reuse these functions to
handle detecting unsaved changes
2015-01-10 18:08:12 +00:00
Jermolene
eacb9e53eb
Delete syncer tiddlerInfo when tiddlers are deleted
2014-09-24 16:21:59 +02:00
Jermolene
a159b5baf3
Add tiddlerInfo to the syncadaptor saveTiddler method
2014-09-24 13:15:16 +02:00
Jermolene
2f6d16b0fa
Improve comments and coding style
2014-09-01 20:39:08 +01:00
Jermolene
3a67fdb768
Obeisance to JSHint for core modules
...
There are still some warnings about making functions in a loop, but
I’ll fix those as a separate pull request because the fixes are more
than typographic errors.
2014-08-30 20:44:26 +01:00
Jermolene
2f69ea362c
Rename "tw-*" messages to "tm-*"
2014-08-28 21:43:44 +01:00
Jermolene
787481a804
Change more "tw-*" classes to "tc-*"
...
Part of #764
2014-08-28 18:21:08 +01:00
Jermolene
f75af2c983
Separate the saver handling out of the syncer
2014-08-14 11:43:07 +01:00
Jermolene
27f1f82a70
Rejigging syncer structuring
...
The goal is to separate out the saver handling from the syncadaptor
handling; it will take a few steps to get there
2014-08-14 11:12:25 +01:00
Jermolene
d57446f1e4
Remove $tw.syncer global from syncer.js
2014-08-14 08:54:31 +01:00
Jermolene
35fcdd270e
Move syncer event handlers into syncer module
2014-08-13 20:25:23 +01:00
Jermolene
7c1cb97f7f
Move syncer-browser startup handling into syncer.js
2014-08-13 20:07:08 +01:00
Jermolene
c9ce606b7c
Move the unsaved changes warning into the syncer
2014-08-13 19:29:00 +01:00
Jermolene
56945d91d3
Add unsaved changes indicator
...
The “save” icon changes to red to indicate that there are unsaved
changes.
2014-07-30 16:46:13 +01:00
Jermolene
e366aa3746
Use Date.now() instead of new Date()
...
Just for when what we actually want is a millisecond counter.
Interesting video about this:
https://www.youtube.com/watch?v=Vo72W1HWeFI
2014-04-14 09:02:52 +01:00
Jermolene
b7f674c51a
First pass at refactoring filter execution
...
This is the beginning of addressing #523 .
2014-04-03 20:49:16 +01:00
buggyj
aa63151815
syncer freeze fix
2014-03-19 20:20:54 +05:30
Jermolene
e051eb7d90
Making more things translateable
...
Now we’re done with the text that lives in tiddlers, and we’ll need to
get on with the text that is embedded in code modules.
2014-02-16 09:46:43 +00:00
Jermolene
70a120d4a6
Expand the logging mechanism to support alerts overlaid on the main screen
...
Now we get decent visual indication of sync errors, for instance. Still
work to do to coalesce alerts so that the screen doesn’t fill up with
them after an interval. And probably we should add a button to clear
all alerts.
2014-02-14 07:53:41 +00:00
Jermolene
190ced7cdd
Sync from server even when not logged in
2014-02-11 19:10:40 +00:00
Jermolene
a01bbd4b9c
Add automatic saving and warning on exit with unsaved changes
...
We re-use some of the existing syncer mechanism. It was already keeping
track of changes to tiddlers in the store when working with a tiddler
syncadaptor. Now it also tracks changes when there is no syncadaptor,
allowing us to provide a warning if there are unsaved changes.
2014-02-06 21:36:30 +00:00
Jermolene
dfc57ffa49
More logging
2014-01-26 20:59:30 +00:00
Jermolene
3f9561dd95
Better logging
2014-01-26 18:53:31 +00:00
Jermolene
49b3165fbd
Fix occasional crash from trying to save a tiddler after it has been deleted
2013-12-12 15:16:44 +00:00
Jermolene
9f058925f7
Fix problem with deleting tiddlers with the filesystemadaptor
...
Fixes #266
2013-12-11 22:02:34 +00:00
Jermolene
062822d45c
Fix file system behaviour for loading new tiddlers
...
We don’t need to load tiddlers because they will all have been loaded
during bootup, or been created through the file system adaptor.
2013-12-11 11:45:15 +00:00
Jermolene
f3954d374d
Add error reporting for the syncer module
...
Things were failing silently.
2013-12-03 09:35:02 +00:00
Jermolene
e54148033b
Fix client server edition syncing
2013-11-08 21:34:47 +00:00
Jeremy Ruston
e875de63a9
Ignore shadow tiddlers in the syncer
2013-04-30 22:55:06 +01:00
Jeremy Ruston
70def07d63
Clearer logging preparatory to implementing file synchronisation
2013-03-24 12:53:09 +00:00
Jeremy Ruston
2870a09dc1
Make some of the sync adaptor methods be optional
2013-03-24 12:27:46 +00:00
Jeremy Ruston
5e12868e76
Fixes to ensure revision field is always a string
...
TiddlyWeb returns it as a number, which seems like it might be an
accident.
2013-03-18 10:13:36 +00:00
Jeremy Ruston
d14c61ef45
Switch "userName" to "username"
...
Because the former is naff
2013-03-17 19:37:31 +00:00
Jeremy Ruston
822f436534
Fix revision handling
2013-03-17 19:26:13 +00:00
Jeremy Ruston
dbde2bf23b
Started refactoring TiddlyWeb syncer into generic syncer + TiddlyWeb adaptor
...
The refactored plugin is `tiddlyweb2` for the moment. The idea is to be
able to use the same syncer with a different adaptor for syncing
changes to the local file system.
2013-03-17 15:28:49 +00:00