Added new Attractions
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
soraefir 2023-06-18 17:23:11 +02:00
parent bf4ba27381
commit 524a71e391
Signed by: sora
GPG Key ID: A362EA0491E2EEA0
3 changed files with 4 additions and 3 deletions

View File

@ -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;

View File

@ -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

View File

@ -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);