Hi Andreas

>
> My current plugin version is here for the moment:
> https://github.com/andreasabeck/TW5-syncIndexedDb
>

Great. I noticed one small thing - there seems to be two copies of the
plugin, one in a tiddlywiki/syncIndexedDb subdirectory.


> For the pull request I'd put everything in
> plugins/tiddlywiki/syncIndexedDb - right?
>

I think for consistency we'd call the
plugin "plugins/tiddlywiki/indexed-db" or "plugins/tiddlywiki/indexeddb".
We'd also need a demo edition, along the lines of the other core plugins.

I had two suggestions, which you may well have thought of too.

Firstly, I wondered about hashing the URL of the TiddlyWiki file into the
database name, to make it easier to work with multiple file:// wikis at
once. Perhaps we'd need some clever trick to cope with files being renamed
or moved.

Secondly, I wondered whether at startup the plugin might delete any
tiddlers in the indexedDB store that precisely match tiddlers that were
loaded from the HTML file at startup. That way, during repeated saves and
reloads we'd avoid building up unneeded tiddlers in the indexedDB database.

Best wishes

Jeremy


>
> Cheers
> Andreas
>
>
>
>
> On Fri, Mar 13, 2015 at 10:32 PM, Andreas Abeck <[email protected]>
>> wrote:
>>
>>> Hi Jeremy,
>>>
>>>
>>>> Despite http://caniuse.com/#feat=indexeddb, I'm seeing the red error
>>>>> box of death on Safari and Firefox on OS X. It's working in Chrome, but I
>>>>> did run into one problem with the "modified" and "created" fields - when I
>>>>> create a new tiddler, looking in dev tools I see those fields are being
>>>>> stored as ISO date strings. When I reload the wiki, the modified and
>>>>> created fields are set to NaNNaNNaNNaNNaNNaNNaN. I think the workaround is
>>>>> to use wiki.getTiddlerAsJson(), which handles converting fields to strings
>>>>> as required.
>>>>>
>>>>
>>>> Thanks for mentioning the problem with timestamps, never paid attention
>>>> to that yet to be honest. I'll have a look at that later...
>>>>
>>>>
>>> That should also be fixed now, using the workaround you mentioned.
>>>
>>> Cheers
>>> Andreas
>>>
>>
>>
>>
>> --
>> Jeremy Ruston
>> mailto:[email protected]
>>
>


-- 
Jeremy Ruston
mailto:[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to