Re: Standalone Lightning for webapps?
Stefan Sitter <[email protected]> Wed, 27 Jan 2016 19:31:10 +0100
| Newsgroups | gmane.comp.mozilla.devel.calendar |
|---|---|
| Message-ID | <[email protected]> |
On 27.01.2016 14:40, CC wrote: > Just a sanity check before I spend too much time on this. > > I need to write some standalone code on a (Linux) web server that > serves calendar data to browsers via Ajax. It should return either > HTML or Javascript to the browser, so that the browser can display a > month view (just like a Lightning month view). > > This code will probably need to get ics data from a shared calendar > server (probably Calendar (calendarserver.org) on the same box) > before returning it to the browser, but a simpler back-end > (SQLite/whatever) would probably be Ok. The open source SOGo groupware server implements a web calendar interface that looks like Lightning: http://www.sogo.nu/tour/screenshots.html > How difficult would it be to re-use the Lightning source code to do > this? So, basically, I want to chop out the Thunderbird integration > and the GUI and replace it with Ajax/HTML/Javascript. I can write > C++/Javascript/etc, so the hacking is Ok, but I'd just like to > confirm that the Lighning is structured in such a way that this is > possible and there's something useful left after I've removed the > Thunderbird bits. Or has anyone already done this? Ok, so you are looking for a library to parse ics data? Currently Lightning uses the libical library written in C for this task. A replacement written in JavaScript is in development and available for testing in Lightning trunk nightly builds. https://github.com/libical/libical https://github.com/mozilla-comm/ical.js/ The Lightning UI is written in XUL and therefore requires a Mozilla based application. Maybe this will change in the future when Mozilla drops support for XUL. /Stefan