update So 2. Feb 15:01:01 CET 2020
This commit is contained in:
parent
f1807b01df
commit
c95303bd8d
2
TODO.md
2
TODO.md
@ -8,6 +8,8 @@
|
|||||||
- Buttons für Sounds werden fehlerhaft dargestellt
|
- Buttons für Sounds werden fehlerhaft dargestellt
|
||||||
- Uhrzeit in der Datenbank (und im Log) ist auf UTC, sollte aber lokale Zeit sein
|
- Uhrzeit in der Datenbank (und im Log) ist auf UTC, sollte aber lokale Zeit sein
|
||||||
- Absturz bei unbekannter/falscher Wachennummer in Alarmmonitor-URL
|
- Absturz bei unbekannter/falscher Wachennummer in Alarmmonitor-URL
|
||||||
|
- openstreetmap credit
|
||||||
|
- name, leitstelle, version immer mitgeben
|
||||||
|
|
||||||
## 2. Priorität (notwendige Anpassungen)
|
## 2. Priorität (notwendige Anpassungen)
|
||||||
|
|
||||||
|
|||||||
30
public/js/rueckmeldung_client.js
Executable file
30
public/js/rueckmeldung_client.js
Executable file
@ -0,0 +1,30 @@
|
|||||||
|
/* ########################### */
|
||||||
|
/* ######### LEAFLET ######### */
|
||||||
|
/* ########################### */
|
||||||
|
|
||||||
|
// Karte definieren
|
||||||
|
var map = L.map('map', {
|
||||||
|
zoomControl: false
|
||||||
|
}).setView([51.733005, 14.338048], 13);
|
||||||
|
|
||||||
|
// Layer der Karte
|
||||||
|
mapLink = L.tileLayer(
|
||||||
|
'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||||
|
//map_tile, {
|
||||||
|
maxZoom: 18
|
||||||
|
}).addTo(map);
|
||||||
|
|
||||||
|
// Icon der Karte zuordnen
|
||||||
|
var redIcon = new L.Icon({
|
||||||
|
iconUrl: '/media/marker-icon-2x-red.png',
|
||||||
|
shadowUrl: '/media/marker-shadow.png',
|
||||||
|
iconSize: [25, 41],
|
||||||
|
iconAnchor: [12, 41],
|
||||||
|
popupAnchor: [1, -34],
|
||||||
|
shadowSize: [41, 41]
|
||||||
|
});
|
||||||
|
|
||||||
|
// Icon setzen
|
||||||
|
var marker = L.marker(new L.LatLng(0, 0), {
|
||||||
|
icon: redIcon
|
||||||
|
}).addTo(map);
|
||||||
@ -4,7 +4,7 @@ app_cfg.global = {
|
|||||||
http_port: 3000,
|
http_port: 3000,
|
||||||
https_port: 3443,
|
https_port: 3443,
|
||||||
udpport: 60233,
|
udpport: 60233,
|
||||||
remoteapi: "http://localhost:8078/api",
|
remoteapi: 'http://localhost:8078/api',
|
||||||
database: './database.sqlite3',
|
database: './database.sqlite3',
|
||||||
soundpath: '/public/media/',
|
soundpath: '/public/media/',
|
||||||
mediapath: '/media/',
|
mediapath: '/media/',
|
||||||
@ -20,4 +20,9 @@ app_cfg.global = {
|
|||||||
map_tile: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
|
map_tile: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
app_cfg.dev = {
|
||||||
|
app_name: 'Wachalarm IP-Web',
|
||||||
|
version: '1.2'
|
||||||
|
};
|
||||||
|
|
||||||
module.exports = app_cfg;
|
module.exports = app_cfg;
|
||||||
|
|||||||
@ -95,6 +95,7 @@ module.exports = function(app, sql, app_cfg, passport, auth, udp) {
|
|||||||
app.get('/test_tableau', function(req, res) {
|
app.get('/test_tableau', function(req, res) {
|
||||||
res.render('test_wachalarm', {
|
res.render('test_wachalarm', {
|
||||||
title: 'Test Wachalarm',
|
title: 'Test Wachalarm',
|
||||||
|
map_tile: app_cfg.global.map_tile,
|
||||||
user: req.user
|
user: req.user
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -103,6 +104,7 @@ module.exports = function(app, sql, app_cfg, passport, auth, udp) {
|
|||||||
app.get('/test_rueckmeldung', function(req, res) {
|
app.get('/test_rueckmeldung', function(req, res) {
|
||||||
res.render('test_rueckmeldung', {
|
res.render('test_rueckmeldung', {
|
||||||
title: 'Test Einsatz-Rückmeldung',
|
title: 'Test Einsatz-Rückmeldung',
|
||||||
|
map_tile: app_cfg.global.map_tile,
|
||||||
user: req.user
|
user: req.user
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@ -5,15 +5,19 @@
|
|||||||
.col-2
|
.col-2
|
||||||
.align-items-center.justify-content-center.rounded.bg-light.text-info.p-3
|
.align-items-center.justify-content-center.rounded.bg-light.text-info.p-3
|
||||||
#sondersignal.ion-md-apps.text-center
|
#sondersignal.ion-md-apps.text-center
|
||||||
.row
|
.col-12
|
||||||
.col-12.col-5_ls.h-35.h-70_ls.pt-3_pt.ptr-3_ls
|
//.pt-3_pt.ptr-3_ls.h-50
|
||||||
#map.h-100.rounded
|
#map.rounded.my-1
|
||||||
.col-12.col-7_ls.h-40.h-70_ls
|
br
|
||||||
.row.no-gutters.h-100.pt-3
|
br
|
||||||
.col-12.h-10.h-100.w-100
|
br
|
||||||
#rueckmeldung.list-group.list-group-horizontal.text-center.h-100.w-100
|
br
|
||||||
a.list-group-item.flex-fill.list-group-item-action.text-secondary.tf_singleline
|
br
|
||||||
.ion-md-paper-plane
|
br
|
||||||
|
br
|
||||||
|
br
|
||||||
|
br
|
||||||
|
|
||||||
.col-6.h-65.d-flex.align-items-end.justify-content-start.tf_multiline
|
.col-6.h-65.d-flex.align-items-end.justify-content-start.tf_multiline
|
||||||
#ortsdaten.flex-fill -Objekt-
|
#ortsdaten.flex-fill -Objekt-
|
||||||
br
|
br
|
||||||
|
|||||||
@ -11,5 +11,5 @@ block content
|
|||||||
include includes/rueckmeldung
|
include includes/rueckmeldung
|
||||||
script(src='/js/leaflet.js')
|
script(src='/js/leaflet.js')
|
||||||
// script(src='/js/textFit.min.js')
|
// script(src='/js/textFit.min.js')
|
||||||
// script(src='/js/waip_client.js')
|
script(src='/js/rueckmeldung_client.js')
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user