add CHANGELOG.md

This commit is contained in:
Nils Schneider 2015-04-11 13:48:16 +02:00
parent 2cbea6dc20
commit 6f546bf823
3 changed files with 59 additions and 2 deletions

17
CHANGELOG.md Normal file
View file

@ -0,0 +1,17 @@
# Change Log
## v2
### General changes:
- License change from GPL 3 to AGPL 3
### Implemented enhancements:
- Improved performance on Firefox
- Labels in graph view
- infobox: link to geouri with node's coordinates
### Fixed bugs:
- Links disappeared on graph on refresh

View file

@ -5,6 +5,9 @@
Meshviewer is a frontend for Meshviewer is a frontend for
[ffmap-backend](https://github.com/ffnord/ffmap-backend). [ffmap-backend](https://github.com/ffnord/ffmap-backend).
[Changelog](CHANGELOG.md)
# Screenshots # Screenshots
![](doc/mapview.png?raw=true) ![](doc/mapview.png?raw=true)

View file

@ -1,4 +1,41 @@
define(["moment", "tablesort", "tablesort.numeric"], function (moment, Tablesort) { define(["moment", "numeral", "tablesort", "tablesort.numeric"],
function (moment, numeral, Tablesort) {
function showGeoURI(d) {
function showLatitude(d) {
var suffix = Math.sign(d) > -1 ? "'N" : "'S"
d = Math.abs(d)
var a = Math.floor(d)
var min = (d * 60) % 60
a = (a < 10 ? "0" : "") + a
return a + "° " + numeral(min).format("0.000") + suffix
}
function showLongitude(d) {
var suffix = Math.sign(d) > -1 ? "'E" : "'W"
d = Math.abs(d)
var a = Math.floor(d)
var min = (d * 60) % 60
a = (a < 100 ? "0" + (a < 10 ? "0" : "") : "") + a
return a + "° " + numeral(min).format("0.000") + suffix
}
if (!has_location(d))
return undefined
return function (el) {
var latitude = d.nodeinfo.location.latitude
var longitude = d.nodeinfo.location.longitude
var a = document.createElement("a")
a.textContent = showLatitude(latitude) + " " +
showLongitude(longitude)
a.href = "geo:" + latitude + "," + longitude
el.appendChild(a)
}
}
function showFirmware(d) { function showFirmware(d) {
var release = dictGet(d.nodeinfo, ["software", "firmware", "release"]) var release = dictGet(d.nodeinfo, ["software", "firmware", "release"])
var base = dictGet(d.nodeinfo, ["software", "firmware", "base"]) var base = dictGet(d.nodeinfo, ["software", "firmware", "base"])
@ -109,7 +146,7 @@ define(["moment", "tablesort", "tablesort.numeric"], function (moment, Tablesort
attributes.classList.add("attributes") attributes.classList.add("attributes")
attributeEntry(attributes, "Gateway", d.flags.gateway ? "ja" : null) attributeEntry(attributes, "Gateway", d.flags.gateway ? "ja" : null)
attributeEntry(attributes, "In der Karte", has_location(d) ? "ja" : "nein") attributeEntry(attributes, "Koordinaten", showGeoURI(d))
if (config.showContact) if (config.showContact)
attributeEntry(attributes, "Kontakt", dictGet(d.nodeinfo, ["owner", "contact"])) attributeEntry(attributes, "Kontakt", dictGet(d.nodeinfo, ["owner", "contact"]))