diff --git a/src/app.ts b/src/app.ts index 92bc7920..07593045 100644 --- a/src/app.ts +++ b/src/app.ts @@ -66,7 +66,7 @@ app.use('/login', loginRouter); // use httpdocs as static folder app.use('/', express.static(path.join(__dirname, 'httpdocs'), { - extensions: ['html', 'txt', "pdf"], + extensions: ['html', 'txt', "pdf", "css", "js"], index: ["start.html", "start.txt"], })); diff --git a/src/client/components/Map.tsx b/src/client/components/Map.tsx index 9882e0fe..6d40d427 100644 --- a/src/client/components/Map.tsx +++ b/src/client/components/Map.tsx @@ -1,6 +1,6 @@ import React, { useContext, useState } from 'react' import { Context } from "../components/App"; -import { LayersControl, MapContainer, Marker, Polyline, Popup, TileLayer, useMap, useMapEvents } from 'react-leaflet' +import { LayersControl, MapContainer, Marker, Polyline, Popup, TileLayer, useMapEvents } from 'react-leaflet' import { toGamut, parse, Oklch, formatCss } from 'culori'; import L from 'leaflet'; import 'leaflet-rotatedmarker'; diff --git a/views/login-form.ejs b/views/login-form.ejs deleted file mode 100644 index b0eef5e9..00000000 --- a/views/login-form.ejs +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - Login Form - Lorex - - - - - - -
-

Text: <%= locals.text %>

- - - - -
- - - \ No newline at end of file