Re: [tw5] Service worker

2020-12-08 Thread Nick
@Jeremy I am not using node.js,( I will read up on this) but after a lot of tinkering, I still couldn't get the empty TW to save to the home screen and still be viewable offline.Maybe available once but then disappears. I tried exporting it as a static site with all the tiddlers, but then

Re: [tw5] Service worker

2020-12-07 Thread 林东吴
I made a service-worker plugin https://github.com/linonetwo/tiddlywiki-plugins/tree/master/plugins/linonetwo/service-worker But it requires additional setup, and only work in nodejs wiki that is bundled to HTML wiki when publish to github pages or vercel. It surely boost the open speed of my

Re: [tw5] Service worker

2020-12-07 Thread Jeremy Ruston
Hi Nick Are you perhaps generating a static rendering of the wiki, and then uploading that? The process I described works with an ordinary TiddlyWiki standalone HTML file, you don't need to export anything. If you're using the Node.js configuration you can save a snapshot of the wiki as an

Re: [tw5] Service worker

2020-12-07 Thread Nick
Hi Tone, Yep, looking for the TW5 internal search. I'll give this a go Cheers Nick On Sunday, 6 December 2020 at 23:25:47 UTC TW Tones wrote: > Nick, > > Perhaps you can find the search due to mobile layout, create a tiddler and > transclude the sidebar search in it and see if that works. > >

Re: [tw5] Service worker

2020-12-06 Thread Nick
It doesen't seem to work for me, with getting an offline screen. I can export all the tiddlers and upload this to a host, then save as app on the homescreen which works offline. However no search. You can use 'Find on page' but this doesn't give the app like feel i'm after. I'll keep

Re: [tw5] Service worker

2020-12-06 Thread Jeremy Ruston
If you’re using a phone you’ll need to scroll up to get to the search box. Best wishes Jeremy > On 6 Dec 2020, at 12:19, Nick wrote: > > This solution is almost perfect and just whats needed. It however doesn't > have a search function. Is there a way of including the search? > > Thanks >

Re: [tw5] Service worker

2020-12-06 Thread Jeremy Ruston
Hi Nick > To make life easier, I only require a read-only only version for this case. > So no changes will be needed. But for a solution for others, it would I > guess. This is why I thought just loading the TW to read offline would be a > simple affair! I misunderstood, and thought you were

Re: [tw5] Service worker

2020-12-06 Thread Nick
Interesting Tony, Would this be done using browser storage plugin? To make life easier, I only require a read-only only version for this case. So no changes will be needed. But for a solution for others, it would I guess. This is why I thought just loading the TW to read offline would be a

Re: [tw5] Service worker

2020-12-05 Thread Ed Heil
Nick, Have you looked at Quine2? https://apps.apple.com/us/app/quine-2/id1450128957 On Saturday, December 5, 2020 at 12:15:34 PM UTC-5 Nick wrote: > Thanks to all, It seems SWs' are really not the way forward. The 'offline' > feature was the appeal of TW, but as an app on my home screen,

Re: [tw5] Service worker

2020-12-05 Thread TW Tones
Nick et al, I have always wondered if this problem can be turned upside down. - Load a prepared wiki either from the internet or by opening a local file (the base wiki). - In both cases you can make use of local storage and returning to that (address) or tab, the original "file"

Re: [tw5] Service worker

2020-12-05 Thread Nick
Great stuff Jeremy, I'll take a look at those options, hopefully one may just work out. Cheers nick On Saturday, 5 December 2020 at 17:20:18 UTC jeremy...@gmail.com wrote: > Thanks to all, It seems SWs' are really not the way forward. The 'offline' > feature was the appeal of TW, but as an

Re: [tw5] Service worker

2020-12-05 Thread Jeremy Ruston
> Thanks to all, It seems SWs' are really not the way forward. The 'offline' > feature was the appeal of TW, but as an app on my home screen, the offline > function is not working. You could experiment with using the "browser-storage" plugin from the official plugin library to store changes in

Re: [tw5] Service worker

2020-12-05 Thread Nick
Thanks to all, It seems SWs' are really not the way forward. The 'offline' feature was the appeal of TW, but as an app on my home screen, the offline function is not working. It does not open from files either on IOS. Its works in apps like quine but I need it to be its own app. Maybe i've

Re: [tw5] Service worker

2020-12-05 Thread Jeremy Ruston
Indeed. Service workers were intended to help re-engineer existing server-based applications to work offline. The main feature is a background thread that can fake network requests when the system is offline. It still uses the same LocalStorage as an ordinary web page. So there’s not really

[tw5] Service worker

2020-12-05 Thread Nick
I now have my tiddlywiki working as a online PWA saved to my IOS homescreen. I wanted to be able to open this and read online, I thought a service worker would be the way, is this right? I found this article: https://css-tricks.com/serviceworker-for-offline/ However I cannot figure out how