Hi Jeremy,
> I agree that letting the user pick from a list is reasonable. There are
> privacy concerns with leaving tiddler text in the browser - I wondered
> about encrypting the data in IndexedDB using SJCL, but of course the
> practicalities of managing passwords is pretty hairy.
>
you are right, I'll keep the encryption feature in my mind for some future
version. Regarding the management of the different object stores I am a bit
stuck wondering how to put that into the tiddlywiki archtitecture best.
Perhaps you have another good hint for me ;-) Hope I'm not to annoying with
all that questions... Here's what I'd like to to:
- execute the window.indexeddb.open function (e.g. from startup of from a
macro)
- in the "onsuccess" callback for that function: read all objectStores and
list them in a ControlPanel tiddler (adding buttons for move/delete on each
item)
- from the buttons: execute some javascript to do actions on indexeddb,
also including callbacks which should then refresh the tiddler.
I'm not sure how to integrate all this async callbacks. Perhaps you could
point me out the direction? Are widgets want I want or is that not the
right thing? If I understood it well, the messaging should help me, but I
would have to work on the DOM directly, right? I was hoping I could just do
some simple macros, but that wouldn't work at all with callbacks probably...
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.
>>>
>>
>> You'll need to add a startup module that is marked to just run in the
>> browser. It can enumerate the tiddlers in the store with something like:
>>
>
> $tw.wiki.each(function(tiddler,title) {dostuff;});
>
> Sorry to load you up with extra work!
>
No worries, such a project is a good way to learn a lot about the
tiddlywiki architecture ;-) I made a startup module to clean up the
indexedDB, that's working fine now. Thanks for your hints.
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.