mirror of https://github.com/aredn/aredn.git
Migrate LeafletJS to new URL (#298)
This commit is contained in:
parent
73278ac99c
commit
8947e6f23c
|
@ -8,8 +8,8 @@ config usb
|
|||
option passthrough '1'
|
||||
|
||||
config map
|
||||
option leafletjs 'http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js'
|
||||
option leafletcss 'http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css'
|
||||
option leafletjs 'http://unpkg.com/leaflet@0.7.7/dist/leaflet.js'
|
||||
option leafletcss 'http://unpkg.com/leaflet@0.7.7/dist/leaflet.css'
|
||||
option maptiles 'http://stamen-tiles-{s}.a.ssl.fastly.net/terrain/{z}/{x}/{y}.jpg'
|
||||
|
||||
config meshstatus
|
||||
|
|
|
@ -21,6 +21,6 @@ config button
|
|||
option max '20'
|
||||
|
||||
config map
|
||||
option leafletjs 'http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js'
|
||||
option leafletcss 'http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css'
|
||||
option leafletjs 'http://unpkg.com/leaflet@0.7.7/dist/leaflet.js'
|
||||
option leafletcss 'http://unpkg.com/leaflet@0.7.7/dist/leaflet.css'
|
||||
option maptiles 'http://stamen-tiles-{s}.a.ssl.fastly.net/terrain/{z}/{x}/{y}.jpg'
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
if [ "$(/sbin/uci -c /etc/config.mesh -q get aredn.@map[0].leafletjs)" = "http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js" ]; then
|
||||
/sbin/uci -c /etc/config.mesh -q set aredn.@map[0].leafletjs="http://unpkg.com/leaflet@0.7.7/dist/leaflet.js"
|
||||
/sbin/uci -c /etc/config.mesh -q set aredn.@map[0].leafletcss="http://unpkg.com/leaflet@0.7.7/dist/leaflet.css"
|
||||
/sbin/uci -c /etc/config.mesh -q commit aredn
|
||||
fi
|
|
@ -89,13 +89,13 @@ local settings = {
|
|||
key = "aredn.@map[0].leafletcss",
|
||||
type = "string",
|
||||
desc = "Specifies the URL of the leaflet.css file",
|
||||
default = "http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css"
|
||||
default = "http://unpkg.com/leaflet@0.7.7/dist/leaflet.css"
|
||||
},
|
||||
{
|
||||
key = "aredn.@map[0].leafletjs",
|
||||
type = "string",
|
||||
desc = "Specifies the URL of the leaflet.js file",
|
||||
default = "http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"
|
||||
default = "http://unpkg.com/leaflet@0.7.7/dist/leaflet.js"
|
||||
},
|
||||
{
|
||||
key = "aredn.@downloads[0].firmwarepath",
|
||||
|
|
Loading…
Reference in New Issue