John, Thanks, glad it is working for you.
You can just zip those files, that is everything required. Those files aren't always up to date, for the most recent version, download the repo and look at the files in the docs folder. You just need index.html + whatever files in the static folder you want to distribute. The docs folder has some junk in it I'll be removing with the next release, should be within a week or so. But it is easy to figure out what is not needed. You just need the index.html, the leo file and the js and css folders. Joe On Tuesday, October 10, 2017 at 10:53:18 AM UTC-4, john lunzer wrote: > > I want to thank you for this work Joe, this is really amazing and has the > potential how I use Leo to share information. I was able to download all > the files listed in index.html from the aws site and run the entire thing > locally without having to run a web server. Just open the link up in my web > browser and I've got an instant Leo file viewer that I can package up. > > But I would like to ask you Joe: I would like to be able to to just zip up > a directory with all the required javascript/html and a .leo file and send > it to somebody for viewing. Outside of the files listed in the index.html > file are there any other javascript dependencies I'm not taking into > account? > > On Saturday, September 30, 2017 at 11:42:16 AM UTC-4, Joe Orr wrote: >> >> Sorry for the slow reply, been busy with a startup and another side >> project, but getting back to this now. >> >> About getting a leo file to load up in LeoViewer easily, see this repo: >> https://github.com/kaleguy/leo-examples >> >> All you need to do is download index.html and put it in the same folder >> as the leo file you'd like to view, edit index.html (settings are self >> explanatory) and then view index.html in the browser. You'll need to use >> something like http-server if you want to do this locally. >> >> Also, the relative links in the main demo site were broken, just fixed >> those. >> >> The example site above shows Leoviewer displaying Youtube videos. If you >> look at the source Leo file, you'll see this a simple Vue component. Next >> steps for LeoViewer is to make more Vue components work out of the box + >> integrate form.io, so that you can build analytics dashboards and other >> complicated programs using Leo to design your UI. Probably will change the >> name to LeoVue. >> >> Joe >> >> On Tuesday, September 12, 2017 at 11:01:48 AM UTC-4, Edward K. Ream wrote: >>> >>> In another thread (don't remember where), I said that I wanted to >>> "recreate" Joe Orr's Leo viewer page >>> <https://bl.ocks.org/kaleguy/cef095e16e147bc04dd6c5812d732fb2>, or >>> words to that effect. The conversation then shifted to discussions about >>> web frameworks, abstraction layers, etc. >>> >>> But I meant something much simpler! I just want to be able to download >>> the page on my local machine, and have the page work as it does via the >>> link above. But it doesn't. Maybe scripts got "disconnected" somehow, or >>> maybe the problem lies in the css. Or somewhere else. >>> >>> I've studied the code on the page in a text editor (and anyway, the page >>> displays its own source code). I don't see why things don't "just work". >>> >>> Can anyone explain what is going on, and how to make the local page work >>> like the original? I'm guessing that just a few tweaks would do the job. >>> That would be a big step forward for me. >>> >>> Any volunteers? >>> >>> Edward >>> >> -- You received this message because you are subscribed to the Google Groups "leo-editor" 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 https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
