diff --git a/compile_sass.js b/compile_sass.js index 6dd153b..e3fb510 100644 --- a/compile_sass.js +++ b/compile_sass.js @@ -1,6 +1,6 @@ const path = require('path'); const fs = require('fs'); -const mkdirp = require('mkdirp'); +const {mkdirp} = require('mkdirp'); const sass = require('node-sass'); const nodeEnv = process.env.NODE_ENV; diff --git a/public/js/main.js b/public/js/main.js index 800170e..6a20b45 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -53,7 +53,8 @@ const query_flight = (q) => axios.get('/api/flight/'+q).then(res=>res.data) const is_restauration_type = e => ["restaurant", "cafe", "pub", "bar", "fast_food", "food_court"].indexOf(e.type)!=-1; -const is_attraction_type = e => ["tourism", "leisure", "place", "amenity", "highway"].indexOf(e.category)!=-1; +const is_attraction_type = e => (["tourism", "leisure", "place", "amenity", "highway", "historic", "natural", "waterway"].indexOf(e.category)!=-1 || + ["place_of_worship", "national_park", "nature_reserve", "protected_area"].indexOf(e.type!=-1)); const icon_type = (item)=>{ let t = item.type diff --git a/server.js b/server.js index 63ab59b..52eee05 100644 --- a/server.js +++ b/server.js @@ -47,7 +47,7 @@ fastify.get('/short/:id', (req, reply) => reply.sendFile('/template/journey.html -fastify.listen(8080,'0.0.0.0' ,(err,address) => { +fastify.listen({port:8080,address:'0.0.0.0'} ,(err,address) => { if (err) throw err; console.log("Listening on", address);