Hi Andreas

yes, for backup purposes I am using the built-in fallback saver. I am
> opening the tiddlywikifile from a local drive, so the file:// URI is used.
> That also means other websites opened locally could open the database (it
> can be viewed anyway with chrome developer tools etc.).
>

Yes, there's the same problem with localStorage. It's a shame that browsers
have shown so little interest in figuring out a decent security model for
file:// URIs.


> The plugin should also be working when opening the file from a website,
> resulting in every browser instance to display it's own tiddlers in
> addition to the ones included in the hosted file.
>

Yup, I quite like that; I'd sometimes like to have more tiddler toolbar
icons visible on tiddlywiki.com for instance.


> Sure, I put it on a subdomain of my webspace, cause it's a bit easier for
> me to udpate:
> http://tw5-dev.cibm.de
>

Great, I'll add a link to tiddlywiki.com.

By the way, what you've got there is a JavaScript module, not a true
plugin. See http://tiddlywiki.com/#PluginMechanism for more details. Having
said that, with a single tiddler there's not much immediate advantage to
distribution via a plugin.

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.

Best wishes

Jeremy


>
>
> Cheers
> Andreas
>
>
>
>> On Thu, Mar 12, 2015 at 8:50 PM, Andreas Abeck <[email protected]>
>> wrote:
>>
>>> Hi all,
>>>
>>> being quite new to TW5 development I tried my best to draft a
>>> SyncAdaptor to store tiddlers in IndexedDb. This is quite useful if an
>>> application / plugin installation is not possible (we have quite some
>>> restrictions at work...).
>>>
>>> I am still not sure how I should take care about revisions and I don't
>>> even know, if they are stored at the right place at the moment. At least
>>> it's working fine for what I need, so if you like to try it out, the plugin
>>> code is here:
>>>
>>> https://gist.github.com/andreasabeck/e6a85df2af39ead573ab
>>>
>>> Cheers
>>> Andreas
>>>
>>> --
>>> 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.
>>>
>>
>>
>>
>> --
>> 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