From 610ad61097c3192de1ee654ee7f23c3dee88cef2 Mon Sep 17 00:00:00 2001 From: Ondrej Synacek Date: Wed, 23 Oct 2019 22:29:01 +0200 Subject: [PATCH] change copy, add about page --- lib/index.js | 4 +++ lib/public/service-worker.js | 3 +- lib/views/about.ejs | 54 ++++++++++++++++++++++++++++++++++++ lib/views/index.ejs | 10 +++---- 4 files changed, 65 insertions(+), 6 deletions(-) create mode 100644 lib/views/about.ejs diff --git a/lib/index.js b/lib/index.js index 7949470..e2634d3 100644 --- a/lib/index.js +++ b/lib/index.js @@ -44,6 +44,10 @@ app.get('/error', (req, res) => { .render('error', { error }) }) +app.get('/about', (req, res) => { + res.render('about') +}) + // NOTE: Capture all unkown URLs app.get('*', (req, res) => { res.status(400).render('404') diff --git a/lib/public/service-worker.js b/lib/public/service-worker.js index 20af7f8..439007a 100644 --- a/lib/public/service-worker.js +++ b/lib/public/service-worker.js @@ -1,4 +1,4 @@ -// Worker v3 +// Worker v4 self.addEventListener('install', (event) => { event.waitUntil( @@ -8,6 +8,7 @@ self.addEventListener('install', (event) => { '/favicon.ico', '/scripts.js?3', '/style.css?3', + '/about?1', ]) }) ) diff --git a/lib/views/about.ejs b/lib/views/about.ejs new file mode 100644 index 0000000..d85eaf7 --- /dev/null +++ b/lib/views/about.ejs @@ -0,0 +1,54 @@ + + + + + + + + + Facebook Events to iCal Converter | about + + + +

About the project

+ +

+ Not too long ago I deactivated my Facebook account. While I do not miss the social network very much, plenty of local events are only announced on Facebook. +

+

+ To my surprise, I found out that the company discontinued the ability to expor events to iCal files. This app aims at enabling you to do just that. It only works with public events. Unfortunately I haven't had the time to enable you to export your own events (but it's definitely possible). +

+ +

How it works?

+ +

+ The backend service does not use Facebook API which means that I'm basically scraping the page source. This means: + +

+

+ +

Works offline

+ +

+ The site is actually Progressive Web App which means it can run offline. You still need connection to download *.ics files but you'll be able to see list of already downloaded files. The use case for this is to have a place where you might want to store the events separately (you might not want to put them to your calendar). The downloaded data is local-only which means it does not sync in any way. I do not plan on adding user accounts as I want to keep the app very simple. +

+ +

No JavaScript

+ +

+ This is not a feature really, just a stupid switch because I wanted to see how the app would behave without JS. I just left it there because why not ;) +

+ +

Bugs & Features

+ +

+ If you want to let me know about any problems or improvements, you can contact me via my website, or even better create an issue on Github (link are on the main page in the footer). +

+ + Go back + + diff --git a/lib/views/index.ejs b/lib/views/index.ejs index bdee10c..7297584 100644 --- a/lib/views/index.ejs +++ b/lib/views/index.ejs @@ -17,10 +17,9 @@

- Insert Facebook event URL into the form. When you submit it - you will get ics - file that you can import - into your calendar. + Insert Facebook event URL / event number into the form. + When you submit it you will get ics + file that you can import into your calendar. Only public events are supported.

@@ -75,7 +74,8 @@