Re: [twdev] Downloading files embedded

2019-05-11 Thread Jeremy Ruston
Hi Donmor

> Thanks a lot! I managed to enable the green button, though it fails if the 
> tiddler in the button is changed.

Can you show the relevant code?

> BTW what kind of public license should I use with my app? Is it OK to use 
> GPLv2? Here's my git url: https://github.com/donmor/Tiddloid 
> 

Yes, but I personally favour BSD because it places fewer obligations on the 
user and thus improves adoption.

Best wishes

Jeremy

> 
> -- 
> 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 tiddlywikidev+unsubscr...@googlegroups.com.
> To post to this group, send email to tiddlywikidev@googlegroups.com.
> Visit this group at https://groups.google.com/group/tiddlywikidev.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywikidev/8a226322-e4f8-4245-b2fc-ed701373ed17%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/4121D000-5F97-496A-AAA2-CC9EA9630B58%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] Re: [TW5] Should I load all TiddlerFields (only without text field) of all tiddlers for getSkinnyTiddlers() in sync adaptor?

2019-05-11 Thread Jeremy Ruston
Hi LinOneTwo

I experimented by modifying the core’s lazy loading to only load the title 
fields with the following steps:

* Copy TW5 repo
* Modify core/modules/server/routes/get-tiddlers-json.js to change the 
condition (name !== "text”) to (name === "title”)
* Execute the command:

tiddlywiki editions/tw5.com-server/ --listen root-tiddler=$:/core/save/lazy-all

Visiting http://127.0.0.1:8080/  in a browser shows a 
working TiddlyWiki. The problem is that because the skinny tiddlers lack tags 
and modified fields they don’t get listed in the sidebar tabs.

But if you visit $:/AdvancedSearch “filters” tab and search for [is[tiddler]] 
you’ll see a list of all tiddlers. You can force any of them to be loaded by 
navigating to them.

So, that’s the challenge: you need enough metadata to be able to present the 
skinny tiddlers to the user so that they can navigate to them, and thus trigger 
loading them.

Best wishes

Jeremy


> On 11 May 2019, at 04:31, LinOnetwo  wrote:
> 
> 
> As @bourgeoa   said,
> 
> when I load the skinnytiddlers without the tags these are not loaded through 
> the load tiddler function.
> 
> It was in the specific test where I used an index file containing only the 
> title. I do not change anything to the toddler they remained with all there 
> fields.
> The skinnytiddlers loaded the list of tiddlers as having no tags. Quite 
> normal. Then I manually select and load a tiddler that has tags.
> These tags did not show in the tiddlywiki, neither in the tiddler nor in the 
> tag list.
> 
> I did not further explore and decided that skinnytiddlers needed all 
> tiddlerfields except the text field.
> As I do not load all tiddlers at startup but only on demand, I keep an index 
> file for performance.
> 
> 
> 在 2019年5月4日星期六 UTC+8下午8:09:38,LinOnetwo写道:
> Sorry I've just found that this forum is based on email, so I update it here:
> 
> ---
> 
> We are quite not sure about this 
> 
> https://github.com/bourgeoa/tiddlywiki-node-solid-server/issues/5#issuecomment-489087397
>  
> 
> 
> Guessed from the doc:
> 
> If an adaptor does implement it, then every 60s (this function get called, by 
> default)
> if there are any changes from other devices to TiddlyWiki store,
> then the modified field will change.
> So TiddlyWiki on this device will know it's changed...then trigger 
> loadTiddler() for it.
> 
> 
> I'll need to keep an index file storing a list of all tiddler's tiddlerfields 
> (only without their text field), and each time getSkinnyTiddlers() get 
> called, I GET this file and return it. This is expensive on SoLiD backend.
> 
> So if i've guessed right, I can only return a list of title field and 
> modified field, then TiddlyWiki will have enough information to decide 
> whether to trigger loadTiddler().
> Am I right?
> 
> -- 
> 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 tiddlywikidev+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to tiddlywikidev@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/tiddlywikidev 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywikidev/d28c1e37-d302-49cf-b1e5-2c68656309f6%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
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 tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/9062DD26-5829-4110-9CCD-0DF85C2C554C%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Progressive Web Apps

2019-05-11 Thread TonyM
Ps

There is discussion about being able to ensure persistent local storage to 
support PWAs and another critical idea is an icon that does not launch another 
tab in a browser for the same app/site.

Regards
Tony

-- 
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 tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/df8a6965-3d26-4d17-8570-04a8586a26bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.