diff options
Diffstat (limited to 'applications/luci-app-olsr-viz')
46 files changed, 933 insertions, 627 deletions
diff --git a/applications/luci-app-olsr-viz/Makefile b/applications/luci-app-olsr-viz/Makefile index e1a1185092..34ac041f4d 100644 --- a/applications/luci-app-olsr-viz/Makefile +++ b/applications/luci-app-olsr-viz/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk LUCI_TITLE:=OLSR Visualisation -LUCI_DEPENDS:=+luci-app-olsr +olsrd +olsrd-mod-txtinfo +LUCI_DEPENDS:=+luci-base +luci-app-olsr +olsrd +olsrd-mod-txtinfo include ../../luci.mk diff --git a/applications/luci-app-olsr-viz/htdocs/cgi-bin/olsr-viz.sh b/applications/luci-app-olsr-viz/htdocs/cgi-bin/olsr-viz.sh deleted file mode 100755 index e33c632465..0000000000 --- a/applications/luci-app-olsr-viz/htdocs/cgi-bin/olsr-viz.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh -echo Content-type: text/html -echo - -cat << EOF -<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> -var css=document.styleSheets[0]; -if (null!=css.insertRule) { -css.insertRule(".label {color:black;background-color:white}", css.cssRules.length); -} -else { -css.addRule(".label", "color:black"); -css.addRule(".label", "background-color:white"); -} -</SCRIPT> -<SCRIPT SRC="/luci-static/resources/olsr-viz.js" LANGUAGE="JavaScript1.2" TYPE="text/javascript"></SCRIPT> -<DIV ID="main" -STYLE="width: 100%; height: 93%; border: 1px solid #ccc; margin-left:auto; margin-right:auto; text-align:center; overflow: scroll"> -<DIV ID="edges" STYLE="width: 1px; height: 1px; position: relative; z-index:2"></DIV> -<DIV ID="nodes" STYLE="width: 1px; height: 1px; position: relative; z-index:4"></DIV> -</DIV> -<DIV STYLE="z-index:99"> -<FORM ACTION=""> -<P><B TITLE="Bestimmt die Vergrerungsstufe.">Zoom</B> <A HREF="javascript:set_scale(scale+0.1)">+</A> <A HREF="javascript:set_scale(scale-0.1)">–</A> <INPUT ID="zoom" NAME="zoom" TYPE="text" VALUE="2.0" SIZE="5" ONCHANGE="set_scale()">  -|  <B TITLE="Beschrnkt die Anzeige auf eine maximale Hop-Entfernung.">Metrik</B> <A HREF="javascript:set_maxmetric(maxmetric+1)">+</A> <A HREF="javascript:if(0<maxmetric)set_maxmetric(maxmetric-1)">–</A> <INPUT ID="maxmetric" NAME="maxmetric" TYPE="text" VALUE="3" SIZE="4" ONCHANGE="set_maxmetric(this.value)">  -|  <B TITLE="Schaltet die automatischen Layout-Optimierung ein.">Optimierung</B><INPUT ID="auto_declump" NAME="auto_declump" TYPE="checkbox" ONCHANGE="set_autodeclump(this.checked)" CHECKED="CHECKED">  -|  <B TITLE="Zeige Hostnamen an.">Hostnamen</B><INPUT ID="show_hostnames" NAME="show_hostnames" TYPE="checkbox" ONCHANGE="set_showdesc(this.checked)" CHECKED="CHECKED">  -|  <A HREF="javascript:viz_save()" TITLE="Speichert die aktuellen Einstellungen in einem Cookie.">Speichern</A>  -|  <A HREF="javascript:viz_reset()" TITLE="Startet das Viz-Skriptprogramm neu.">Zurücksetzen</A></P> -</FORM></DIV> -<SPAN ID="debug" STYLE="visibility:hidden;"></SPAN> -<IFRAME ID="RSIFrame" NAME="RSIFrame" STYLE="border:0px; width:0px; height:0px; visibility:hidden;"> -</IFRAME> -<SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript"> - -viz_setup("RSIFrame","main","nodes","edges"); -viz_update(); - -</SCRIPT> -EOF diff --git a/applications/luci-app-olsr-viz/htdocs/cgi-bin/vizdata.sh b/applications/luci-app-olsr-viz/htdocs/cgi-bin/vizdata.sh deleted file mode 100755 index 7d3214242a..0000000000 --- a/applications/luci-app-olsr-viz/htdocs/cgi-bin/vizdata.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/sh -echo Content-type: text/html -echo - -cat<<EOF -<HTML> -<HEAD> - <TITLE>OLSR-VIZ Data</TITLE> - <META CONTENT="text/html; charset=iso-8859-1" HTTP-EQUIV="Content-Type"> - <META CONTENT="no-cache" HTTP-EQUIV="cache-control"> -</HEAD> -<BODY> - -<script language='JavaScript1.2' type='text/javascript'> -EOF - -# sed + txtinfo plugin -re_ip='[0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}' -re_sep='[[:space:]]\{1,\}' -re_nosep='[^[:space:]]\{1,\}' -wget http://127.0.0.1:2006/all -qO - | sed -n " -/^Table: Links$/,/^$/ { -s# # - #g -s#\($re_ip\)$re_sep\($re_ip\)\($re_sep$re_nosep\)\{3\}$re_sep\($re_nosep\)#parent.touch_edge(parent.touch_node('\1').set_metric(1).update(),parent.touch_node('\2').set_metric(1).update(),'\4');#p -} -/^Table: Topology$/,/^$/ { -s#\($re_ip\)$re_sep\($re_ip\)\($re_sep$re_nosep\)\{2\}$re_sep\($re_nosep\)#parent.touch_edge(parent.touch_node('\1').update(),parent.touch_node('\2').update(),'\4');#p -} -/^Table: HNA$/,/^$/ { -s#\($re_ip\)/\([0-9]\{1,\}\)$re_sep\($re_ip\)#parent.touch_hna(parent.touch_node('\3'),'\1','\2');#p -} -/^Table: Routes$/,/^$/ { -s#\($re_ip\)/32$re_sep$re_nosep$re_sep\($re_nosep\).*#parent.touch_node('\1').set_metric('\2').update();#p -} -" - -hosts=$(uci show olsrd|grep hosts_file|cut -d "=" -f 2) -if [ -n $hosts ]; then -sed -n " -s#\($re_ip\)$re_sep\($re_nosep\)$re_sep.*#parent.touch_node('\1').set_desc('\2');#p -" < $hosts -fi - -cat<<EOF - parent.viz_callback(); -</script> -</BODY></HTML> -EOF diff --git a/applications/luci-app-olsr-viz/htdocs/luci-static/resources/olsr-viz.js b/applications/luci-app-olsr-viz/htdocs/luci-static/resources/olsr-viz.js index 08ff1777cd..1a35596e69 100644 --- a/applications/luci-app-olsr-viz/htdocs/luci-static/resources/olsr-viz.js +++ b/applications/luci-app-olsr-viz/htdocs/luci-static/resources/olsr-viz.js @@ -34,8 +34,6 @@ Changes: 2010-12-11: Changed some paths to make it work with Kamikaze and Luci -- soma */ -var cgi_url = "/cgi-bin/vizdata.sh"; - var maxmetric = 3; var iconvariant = "-mini"; var nodes = new Array(); @@ -63,62 +61,39 @@ var now_secs = 5; // dom elements var IFrameObj; -var maindiv; -var nodediv; -var edgediv; - -/******* CALL TO SERVER ********/ -function callToServer(URL) { - var IFrameDoc; - - if (IFrameObj.document) { - // For IE5 + opera - IFrameDoc = IFrameObj.document; - } - else if (IFrameObj.contentDocument) { - // For NS6 - IFrameDoc = IFrameObj.contentDocument; - } - else if (IFrameObj.contentWindow) { - // For IE5.5 and IE6 - IFrameDoc = IFrameObj.contentWindow.document; - } - else { - // opera? hmmmm - return true; - } - - IFrameDoc.location.replace(URL); - return false; -} +var mainDiv; +var nodeDiv; +var edgeDiv; +var zoomInput; +var maxmetricInput; +var debugSpan; /******** EDGE CLASS ********/ -function edge(n1,n2){ - this.getHTML = function() - { +function edge(n1, n2) { + this.getHTML = function () { var nh = ""; - if(this.n1.metric > maxmetric || this.n2.metric > maxmetric) { + if (this.n1.metric > maxmetric || this.n2.metric > maxmetric) { return ""; } - var x = this.n1.x*scale; - var y = this.n1.y*scale; - var dx = this.n2.x*scale - x; - var dy = this.n2.y*scale - y; + var x = this.n1.x * scale; + var y = this.n1.y * scale; + var dx = this.n2.x * scale - x; + var dy = this.n2.y * scale - y; - x += xoff*scale + 75; - y += yoff*scale + 15; + x += xoff * scale + 75; + y += yoff * scale + 15; var imgtag = "<img src='/luci-static/resources/olsr-viz/dot_" if (this.etx > 0 && this.etx < 2) { imgtag += "good.gif'"; } - else if(this.etx > 2 && this.etx < 5) { + else if (this.etx > 2 && this.etx < 5) { imgtag += "ok.gif'"; } - else if(this.etx > 5 && this.etx < 10) { + else if (this.etx > 5 && this.etx < 10) { imgtag += "weak.gif'"; } else { @@ -126,43 +101,40 @@ function edge(n1,n2){ } imgtag += " alt='ETX: " + this.etx + "' title='ETX: " + this.etx + "' "; - var d = Math.sqrt(dx*dx+dy*dy); + var d = Math.sqrt(dx * dx + dy * dy); for (var j = 0; j < d; j += 15) { nh += imgtag + "style='top:" - + parseInt(y+dy * j / d) + "px; left:" - + parseInt(x+dx * j / d) + "px; " - + "width: 4px; height: 4px; position: absolute; z-index: 2' >"; + + parseInt(y + dy * j / d) + "px; left:" + + parseInt(x + dx * j / d) + "px; " + + "width: 4px; height: 4px; position: absolute; z-index: 2' >"; } nh += "<div style='top:" - + parseInt(y+dy * 0.5 - 5) + "px; left:" - + parseInt(x+dx * 0.5 - 24) + "px; " - + "position: absolute; z-index: 3; width: 48px; text-align: center;' >" - + "<span class='label etx' >" + this.etx + "</span></div>"; + + parseInt(y + dy * 0.5 - 5) + "px; left:" + + parseInt(x + dx * 0.5 - 24) + "px; " + + "position: absolute; z-index: 3; width: 48px; text-align: center;' >" + + "<span class='label etx' >" + this.etx + "</span></div>"; return nh; } - this.isIdle = function() - { + this.isIdle = function () { return (now_secs - this.lastseen > idle_timeout); } - this.isDead = function() - { + this.isDead = function () { return (now_secs - this.lastseen > erase_timeout); } - this.cleanup = function() - { - if(this.n1 && this.n1.weight) { + this.cleanup = function () { + if (this.n1 && this.n1.weight) { this.n1.weight--; } - if(this.n2 && this.n2.weight) { + if (this.n2 && this.n2.weight) { this.n2.weight--; } - if(this.n1 && this.n2) { + if (this.n1 && this.n2) { delete this.n1.edges[n2.ip]; delete this.n2.edges[n1.ip]; } @@ -180,10 +152,9 @@ function edge(n1,n2){ return this; } -function getEdgeKey(ip1,ip2) -{ +function getEdgeKey(ip1, ip2) { var key = ""; - if(ip1 > ip2) { + if (ip1 > ip2) { key = ip2 + "-" + ip1; } else { @@ -192,12 +163,11 @@ function getEdgeKey(ip1,ip2) return key; } -function touch_edge(n1,n2,etx) -{ - var key = getEdgeKey(n1.ip,n2.ip); +function touch_edge(n1, n2, etx) { + var key = getEdgeKey(n1.ip, n2.ip); var e = edges[key]; - if(!e) { - e = new edge(n1,n2); + if (!e) { + e = new edge(n1, n2); edges[key] = e; } e.etx = etx; @@ -207,71 +177,67 @@ function touch_edge(n1,n2,etx) /******** NODE CLASS ********/ function node(ip) { - this.getHTML = function() - { + this.getHTML = function () { var nh; - if(this.metric > maxmetric) { + if (this.metric > maxmetric) { return ""; } var igw = 0; - for(var h in this.hna) { - if(h == "0.0.0.0") { + for (var h in this.hna) { + if (h == "0.0.0.0") { igw = 1; break; } } nh = "<div id='node_" + this.ip + "' onmousedown='dragstart(this)' style=" - + "'top: " + parseInt((this.y+yoff)*scale) + "px; " - + "left: " + parseInt((this.x+xoff)*scale) + "px; " + + "'top: " + parseInt((this.y + yoff) * scale) + "px; " + + "left: " + parseInt((this.x + xoff) * scale) + "px; " + "width: 150px; height: 1px; z-index: 4; " + "position: absolute; background-color: transparent;' >" - + "<div><img src='/luci-static/resources/olsr-viz/node"+(igw ? "-hna" : "")+iconvariant + ".gif'" + + "<div><img src='/luci-static/resources/olsr-viz/node" + (igw ? "-hna" : "") + iconvariant + ".gif'" + " alt='node " + this.ip + "' style='border: none;'><br />" - + "<a href='http://" + this.ip + "/'>" - + "<span class='label ip'>" + this.ip + "</span></a>" - + (showdesc && this.desc != "" ? - "<br /><span class='label desc'>" + this.desc + "</span>" : "") + + "<a href='http://" + this.ip + "/'>" + + "<span class='label ip'>" + this.ip + "</span></a>" + + (showdesc && this.desc != "" ? + "<br /><span class='label desc'>" + this.desc + "</span>" : "") + "</div></div>"; return nh; } - this.isIdle = function() - { + this.isIdle = function () { return (now_secs - this.lastseen > idle_timeout); } - this.isDead = function() - { + this.isDead = function () { return (now_secs - this.lastseen > erase_timeout); } - this.cleanup = function() - { + this.cleanup = function () { ncount--; } - - this.set_metric = function(metric) { + + this.set_metric = function (metric) { this.metric = metric; return this; } - - this.set_desc = function(desc) { + + this.set_desc = function (desc) { this.desc = desc return this; } - - this.update = function() { + + this.update = function () { this.lastseen = now_secs; return this; } - + this.ip = ip; this.x = 0; this.y = 0; - this.dx_last=0; - this.dy_last=0; + this.dx_last = 0; + this.dy_last = 0; this.placed = false; this.weight = 0; this.edges = new Array(); @@ -286,7 +252,7 @@ function node(ip) { function touch_node(ip) { var n = nodes[ip]; - if(!n) { + if (!n) { n = new node(ip); nodes[ip] = n; // newnodes.push(n); @@ -298,24 +264,24 @@ function touch_node(ip) { function place_new_nodes() { var nc = 0; - for(var i = 0;i<newnodes.length;i++){ + for (var i = 0; i < newnodes.length; i++) { var n = newnodes[i]; - if(n.placed){continue;} + if (n.placed) { continue; } var sp; - if(sp = getCookie("node_"+n.ip)) { + if (sp = getCookie("node_" + n.ip)) { var xy = sp.split("x"); - debug_writeln("sp: "+sp+" xy[0]: "+xy[0]+" xy[1]: "+xy[1]); + debug_writeln(("sp: " + sp + " xy[0]: " + xy[0] + " xy[1]: " + xy[1])); n.x = parseFloat(xy[0]); n.y = parseFloat(xy[1]); } - else if(n.weight>1){ + else if (n.weight > 1) { // see if we find already placed nodes - var ox=0, oy=0; - var dx=0, dy=0; - var c=0; - for(var e in n.edges){ - if(nodes[e] && nodes[e].placed){ - if(!ox && !oy) { + var ox = 0, oy = 0; + var dx = 0, dy = 0; + var c = 0; + for (var e in n.edges) { + if (nodes[e] && nodes[e].placed) { + if (!ox && !oy) { ox = nodes[e].x; oy = nodes[e].y; } @@ -326,35 +292,35 @@ function place_new_nodes() { c++; } } - if(c>0) { - n.x = ox + dx/c + Math.random()*iel/2-iel/4; - n.y = oy + dy/c + Math.random()*iel/2-iel/4; + if (c > 0) { + n.x = ox + dx / c + Math.random() * iel / 2 - iel / 4; + n.y = oy + dy / c + Math.random() * iel / 2 - iel / 4; } } else { // begin somewhere - n.x = Math.random()*400; - n.y = Math.random()*400; + n.x = Math.random() * 400; + n.y = Math.random() * 400; } n.placed = true; nc++; } - newnodes.length=0; + newnodes.length = 0; return nc; } /******** HNA CLASS ********/ -function hna(gw,net,mask) { +function hna(gw, net, mask) { this.gw = gw; this.net = net; this.mask = mask; return this; } -function touch_hna(node,net,mask) { +function touch_hna(node, net, mask) { var h = node.hna[net]; - if(!h) { - h = new hna(node.ip,net,mask); + if (!h) { + h = new hna(node.ip, net, mask); node.hna[net] = h; } @@ -363,42 +329,39 @@ function touch_hna(node,net,mask) { } /******** VIZ SETUP AND SETTINGS ********/ -function viz_setup(iframeid,maindivid,nodedivid,edgedivid) { +function viz_setup(iframe, maindiv, nodediv, edgediv, debugspan, zoominput, maxmetricinput) { // assign a reference to the // object to our global variable IFrameObj. - IFrameObj=document.getElementById(iframeid); - if (document.frames) { - // this is for IE5 Mac, because it will only - // allow access to the document object - // of the IFrame if we access it through - // the document.frames array - IFrameObj = document.frames[iframeid]; - } + IFrameObj = iframe; draginit(); - maindiv=document.getElementById(maindivid); - nodediv=document.getElementById(nodedivid); - edgediv=document.getElementById(edgedivid); + mainDiv = maindiv; + nodeDiv = nodediv; + edgeDiv = edgediv; + debugSpan = debugspan; + zoomInput = zoominput; + maxmetricInput = maxmetricinput; // autosave on exit? var autosave; - if((autosave = getCookie("prefs_autosave"))) { + if ((autosave = getCookie("prefs_autosave"))) { auto_save = parseInt(autosave); } viz_autosave(auto_save); // maximum metric of surrounding nodes - var mmx; - if(mmx = getCookie("prefs_maxmetric")) { - set_maxmetric(mmx,true,true); - } + var mmx = (getCookie("prefs_maxmetric"))||3; + set_maxmetric(mmx, true, true); // scale of view var savescale; - if((savescale = getCookie("prefs_scale")) && - (savescale = parseFloat(savescale))) { - set_scale(savescale,true); + if ((savescale = getCookie("prefs_scale")) && + (savescale = parseFloat(savescale))) { + set_scale(savescale, true); + } + else { + set_scale(2.0, true); } // scroll - FIXME @@ -417,53 +380,49 @@ function viz_setup(iframeid,maindivid,nodedivid,edgedivid) { */ } -function viz_save() -{ +function viz_save() { // let cookie survive a month var exp = new Date(); exp.setTime(exp.getTime() + 2592000000); // save node positions - for(var ip in nodes) - { - if(nodes[ip].metric > maxmetric) { + for (var ip in nodes) { + if (nodes[ip].metric > maxmetric) { continue; } - setCookie("node_"+ip,nodes[ip].x+"x"+nodes[ip].y,exp); + // setCookie("node_"+ip,nodes[ip].x+"x"+nodes[ip].y,exp); } // save maxmetric - setCookie("prefs_maxmetric",maxmetric,exp); + setCookie("prefs_maxmetric", maxmetric, exp); // save zooming - setCookie("prefs_scale",scale,exp); + setCookie("prefs_scale", scale, exp); // save scroll - FIXME setCookie("prefs_innerview", - parseInt(maindiv.scrollLeft)+"x"+parseInt(maindiv.scrollTop)+"x"+ - parseInt(vwidth*scale)+"x"+parseInt(vheight*scale),exp); + parseInt(mainDiv.scrollLeft) + "x" + parseInt(mainDiv.scrollTop) + "x" + + parseInt(vwidth * scale) + "x" + parseInt(vheight * scale), exp); } -function viz_autosave(autosave) -{ +function viz_autosave(autosave) { auto_save = autosave; - if(auto_save) { - document.body.onunload=viz_save; + if (auto_save) { + document.body.onunload = viz_save; } else { deleteCookie("prefs_autosave"); } } -function viz_reset() -{ +function viz_reset() { deleteAllCookies(); - for(var ip in nodes) { + for (var ip in nodes) { delete nodes[ip]; } - for(var e in edges) { + for (var e in edges) { delete edges[e]; } - viz_update(); + window.location.reload(); } var updateTimer = 0; @@ -471,8 +430,7 @@ function viz_update() { if (updateTimer) { clearTimeout(updateTimer); } - now_secs = new Date().getTime()/1000; - callToServer(cgi_url); + now_secs = new Date().getTime() / 1000; } function viz_callback() { @@ -480,7 +438,7 @@ function viz_callback() { clearTimeout(updateTimer); } - if(place_new_nodes() > 0 && auto_declump) { + if (place_new_nodes() > 0 && auto_declump) { declump(); } refresh(); @@ -489,7 +447,7 @@ function viz_callback() { var refresh_running = false; function refresh() { - if(refresh_running) { + if (refresh_running) { return; } refresh_running = true; @@ -499,7 +457,7 @@ function refresh() { // refresh nodes nh = ""; for (var n in nodes) { - if(nodes[n].isDead()) { + if (nodes[n].isDead()) { nodes[n].cleanup(); delete nodes[n]; } @@ -507,13 +465,13 @@ function refresh() { nh += nodes[n].getHTML(); } } - nodediv.innerHTML = nh; + nodeDiv.innerHTML = nh; // refresh edges - nh = ""; + nh = ""; for (var e in edges) { - if(edges[e].isDead()) { + if (edges[e].isDead()) { edges[e].cleanup(); delete edges[e]; } @@ -521,20 +479,18 @@ function refresh() { nh += edges[e].getHTML(); } } - edgediv.innerHTML = nh; + edgeDiv.innerHTML = nh; refresh_running = false; } -function set_showdesc(doit) -{ +function set_showdesc(doit) { showdesc = doit; - if(!noupdate) refresh(); + if (!noupdate) refresh(); } -function set_autodeclump(doit) -{ +function set_autodeclump(doit) { auto_declump = doit; - if(doit) { + if (doit) { declump(); } else { @@ -542,36 +498,34 @@ function set_autodeclump(doit) } } -function set_scale(inscale,noupdate) -{ - if(!inscale) { - inscale = parseFloat(document.getElementById("zoom").value/2); +function set_scale(inscale, noupdate) { + if (!inscale) { + inscale = parseFloat(zoomInput.value / 2); } - scale = Math.round(inscale*100)/100; - if(!scale || scale<0.1) { + scale = Math.round(inscale * 100) / 100; + if (!scale || scale < 0.1) { scale = 0.1; } - document.getElementById("zoom").value = scale*2; - if(!noupdate) refresh(); + zoomInput.value = scale * 2; + if (!noupdate) refresh(); } -function set_maxmetric(inmetric,noupdate,noconfirm) -{ +function set_maxmetric(inmetric, noupdate, noconfirm) { inmetric = parseInt(inmetric); - if(inmetric > 0 || !noconfirm || confirm("warning. setting the maximum metric to zero can lead to expensive calculations if you are connected to a network with many nodes. do you want to proceed?")) { + if (inmetric > 0 || !noconfirm || confirm("warning. setting the maximum metric to zero can lead to expensive calculations if you are connected to a network with many nodes. do you want to proceed?")) { maxmetric = inmetric; } - document.getElementById("maxmetric").value = maxmetric; - if(!noupdate) refresh(); + maxmetricInput.value = maxmetric; + if (!noupdate) refresh(); } // k = area / nodes function fr(x) { - return Math.pow((iel*iel)/x,2); + return Math.pow((iel * iel) / x, 2); } function fa(x) { - return Math.pow((x*x)/iel,2); + return Math.pow((x * x) / iel, 2); } var dclTimer = 0; @@ -582,10 +536,10 @@ function declump(t) { var d; // clear declump timer - if(dclTimer) { + if (dclTimer) { clearTimeout(dclTimer); } - if(declump_running) { + if (declump_running) { return; } declump_running = true; @@ -593,16 +547,16 @@ function declump(t) { // nodes var nc = 0; for (var ip1 in nodes) { - nodes[ip1].fr_x=0; - nodes[ip1].fr_y=0; - nodes[ip1].fa_x=0; - nodes[ip1].fa_y=0; + nodes[ip1].fr_x = 0; + nodes[ip1].fr_y = 0; + nodes[ip1].fa_x = 0; + nodes[ip1].fa_y = 0; nodes[ip1].x_next = nodes[ip1].x; nodes[ip1].y_next = nodes[ip1].y; nodes[ip1].randdisplace = 0; } for (var ip1 in nodes) { - if(nodes[ip1].metric > maxmetric || nodes[ip1].pinned) { + if (nodes[ip1].metric > maxmetric || nodes[ip1].pinned) { continue; } for (var ip2 in nodes) { @@ -611,17 +565,17 @@ function declump(t) { } dx = (nodes[ip1].x_next - nodes[ip2].x_next); dy = (nodes[ip1].y_next - nodes[ip2].y_next); - d = Math.sqrt(dx*dx+dy*dy); - d = Math.max(d-optsize,(d+optsize)/optsize); + d = Math.sqrt(dx * dx + dy * dy); + d = Math.max(d - optsize, (d + optsize) / optsize); - nodes[ip1].fr_x += (dx/d) * fr(d); - nodes[ip1].fr_y += (dy/d) * fr(d); + nodes[ip1].fr_x += (dx / d) * fr(d); + nodes[ip1].fr_y += (dy / d) * fr(d); } dx = nodes[ip1].fr_x; dy = nodes[ip1].fr_y; - d = Math.sqrt(dx*dx+dy*dy); - var md = Math.min(d,iel/nodes[ip1].weight); + d = Math.sqrt(dx * dx + dy * dy); + var md = Math.min(d, iel / nodes[ip1].weight); nodes[ip1].x_next += (dx / d) * md; nodes[ip1].y_next += (dy / d) * md; nc++; @@ -636,59 +590,59 @@ function declump(t) { } dx = (edges[e].n1.x_next - edges[e].n2.x_next); dy = (edges[e].n1.y_next - edges[e].n2.y_next); - d = Math.sqrt(dx*dx+dy*dy); -// d = Math.max(d-optsize,(d+optsize)/optsize); + d = Math.sqrt(dx * dx + dy * dy); + // d = Math.max(d-optsize,(d+optsize)/optsize); - edges[e].n1.fa_x -= (dx/d) * fa(d); - edges[e].n1.fa_y -= (dy/d) * fa(d); - edges[e].n2.fa_x += (dx/d) * fa(d); - edges[e].n2.fa_y += (dy/d) * fa(d); + edges[e].n1.fa_x -= (dx / d) * fa(d); + edges[e].n1.fa_y -= (dy / d) * fa(d); + edges[e].n2.fa_x += (dx / d) * fa(d); + edges[e].n2.fa_y += (dy / d) * fa(d); ec++; } // displacement - var xmin=-20; - var ymin=-20; - var xmax=20; - var ymax=20; - var dsum=0; + var xmin = -20; + var ymin = -20; + var xmax = 20; + var ymax = 20; + var dsum = 0; for (var ip in nodes) { - if(nodes[ip].metric > maxmetric || nodes[ip].pinned) { + if (nodes[ip].metric > maxmetric || nodes[ip].pinned) { continue; } dx = nodes[ip].fa_x; dy = nodes[ip].fa_y; - d = Math.sqrt(dx*dx+dy*dy); - dx = (dx / d) * Math.min(d,iel/nodes[ip].weight) * 0.75 + nodes[ip].dx_last * 0.25; - dy = (dy / d) * Math.min(d,iel/nodes[ip].weight) * 0.75 + nodes[ip].dy_last * 0.25; + d = Math.sqrt(dx * dx + dy * dy); + dx = (dx / d) * Math.min(d, iel / nodes[ip].weight) * 0.75 + nodes[ip].dx_last * 0.25; + dy = (dy / d) * Math.min(d, iel / nodes[ip].weight) * 0.75 + nodes[ip].dy_last * 0.25; nodes[ip].dx_last = dx; nodes[ip].dy_last = dy; nodes[ip].x_next += dx; nodes[ip].y_next += dy; - if(!nodes[ip].x_next || !nodes[ip].y_next) { + if (!nodes[ip].x_next || !nodes[ip].y_next) { continue; } dx = (nodes[ip].x - nodes[ip].x_next); dy = (nodes[ip].y - nodes[ip].y_next); - dsum += Math.sqrt(dx*dx+dy*dy); + dsum += Math.sqrt(dx * dx + dy * dy); nodes[ip].x = nodes[ip].x_next; nodes[ip].y = nodes[ip].y_next; - xmin = Math.min(xmin,nodes[ip].x); - xmax = Math.max(xmax,nodes[ip].x); - ymin = Math.min(ymin,nodes[ip].y); - ymax = Math.max(ymax,nodes[ip].y); + xmin = Math.min(xmin, nodes[ip].x); + xmax = Math.max(xmax, nodes[ip].x); + ymin = Math.min(ymin, nodes[ip].y); + ymax = Math.max(ymax, nodes[ip].y); } - vwidth=(xmax-xmin); - vheight=(ymax-ymin); + vwidth = (xmax - xmin); + vheight = (ymax - ymin); - xoff=-xmin; - yoff=-ymin; + xoff = -xmin; + yoff = -ymin; /* document.getElementById('debug').innerHTML = "<br />" + "offset: " + xoff + "x" + yoff + " dsum: " + dsum + "<br />" + @@ -696,8 +650,8 @@ function declump(t) { "optsize: " + optsize + "<br />"; */ refresh(); - if(auto_declump) { - dclTimer = setTimeout("declump()", dsum>ncount ? dcl_timeout : dcllow_timeout ); + if (auto_declump) { + dclTimer = setTimeout("declump()", dsum > ncount ? dcl_timeout : dcllow_timeout); } declump_running = false; } @@ -728,7 +682,7 @@ function dragstart(element) { dragy = posy - element.offsetTop; var n = nodes[dragip]; - if(n) { + if (n) { n.pinned = true; } } @@ -738,11 +692,11 @@ function dragstop() { //Wird aufgerufen, wenn ein Objekt nicht mehr bewegt werden soll. var n = nodes[dragip]; - if(n) { + if (n) { n.pinned = false; } refresh(); - dragip=null; + dragip = null; } @@ -751,21 +705,20 @@ function drag(ereignis) { posx = document.all ? window.event.clientX : ereignis.pageX; posy = document.all ? window.event.clientY : ereignis.pageY; - if(dragip != null) { + if (dragip != null) { var n = nodes[dragip]; - if(n) { - n.x = (posx - dragx)/scale - xoff; - n.y = (posy - dragy)/scale - yoff; + if (n) { + n.x = (posx - dragx) / scale - xoff; + n.y = (posy - dragy) / scale - yoff; } - var e = document.getElementById('node_'+dragip); - e.style.left = parseInt((n.x+xoff)*scale) + "px"; - e.style.top = parseInt((n.y+yoff)*scale) + "px"; + var e = document.getElementById('node_' + dragip); + e.style.left = parseInt((n.x + xoff) * scale) + "px"; + e.style.top = parseInt((n.y + yoff) * scale) + "px"; } } -function debug_writeln(line) -{ - document.getElementById('debug').innerHTML = line + "<br />" + document.getElementById('debug').innerHTML; +function debug_writeln(line) { + debugSpan.innerHTML = line + "<br />" + debugSpan.innerHTML; } /** @@ -782,7 +735,7 @@ function debug_writeln(line) */ function setCookie(name, value, expires, path, domain, secure) { - document.cookie= name + "=" + escape(value) + + document.cookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + @@ -798,9 +751,8 @@ function setCookie(name, value, expires, path, domain, secure) { * or null if cookie does not exist. */ -function getCookie(name) -{ - var results = document.cookie.match ( name + '=(.*?)(;|$)' ); +function getCookie(name) { + var results = document.cookie.match(name + '=(.*?)(;|$)'); if (results) { return unescape(results[1]); } @@ -826,7 +778,7 @@ function deleteCookie(name, path, domain) { function deleteAllCookies() { var cookies = document.cookie.split("; "); - for(var i=0;i<cookies.length;i++) { + for (var i = 0; i < cookies.length; i++) { deleteCookie(cookies[i].split("=")[0]); } } diff --git a/applications/luci-app-olsr-viz/htdocs/luci-static/resources/view/olsr-viz/olsr-viz-view.js b/applications/luci-app-olsr-viz/htdocs/luci-static/resources/view/olsr-viz/olsr-viz-view.js new file mode 100644 index 0000000000..7624e0e7b2 --- /dev/null +++ b/applications/luci-app-olsr-viz/htdocs/luci-static/resources/view/olsr-viz/olsr-viz-view.js @@ -0,0 +1,166 @@ +'use strict'; +'require uci'; +'require view'; +'require poll'; +'require ui'; +'require rpc'; + + +return view.extend({ + callGetOlsrVizData: rpc.declare({ + object: 'olsrvizinfo', + method: 'getolsrvizdata' + }), + + fetch_jsoninfo: function () { + var jsonreq4 = ''; + var json; + var data; + var self = this; + return new Promise(function (resolve, reject) { + L.resolveDefault(self.callGetOlsrVizData(), {}) + .then(function (res) { + json = res; + data = json.jsonreq4; + resolve([data]); + }) + .catch(function (err) { + console.error(err); + reject([null]); + }); + }); + }, + + action_olsr_viz: function () { + var self = this; + return new Promise(function (resolve, reject) { + self + .fetch_jsoninfo() + .then(function ([data]) { + var result = { viz_data: data }; + resolve(result); + }) + .catch(function (err) { + reject(err); + }); + }); + }, + + load: function () { + var self = this; + document.querySelector('head').appendChild(E('style', { 'type': 'text/css' }, [ + '.label {color:black;background-color:white}', + '.olsr_viz_main {width: 100%; height: 93%; border: 1px solid #ccc; margin-left:auto; margin-right:auto; text-align:center; overflow: scroll}' + ])); + return new Promise(function (resolve, reject) { + var script = E('script', { 'type': 'text/javascript' }); + script.onload = resolve; + script.onerror = reject; + script.src = L.resource('olsr-viz.js'); + document.querySelector('head').appendChild(script); + }); + }, + render: function () { + var viz_res; + var self = this; + return this.action_olsr_viz() + .then(function (result) { + viz_res = result.viz_data; + + var nodeDiv = E('div', { 'id': 'nodes', 'style': 'width: 1px; height: 1px; position: relative; z-index:4' }); + var edgeDiv = E('div', { 'id': 'edges', 'style': 'width: 1px; height: 1px; position: relative; z-index:2' }); + + var mainDiv = E('div', { + 'id': 'main', + 'class': 'olsr_viz_main' + }, [nodeDiv, edgeDiv]); + + var zoomInput = E('input', { + 'id': 'zoom', + 'name': 'zoom', + 'type': 'text', + 'value': '2.0', + 'size': '5', + 'style': 'min-width: unset !important;', + 'onchange': 'set_scale()' + }); + var metricInput = E('input', { + 'id': 'maxmetric', + 'name': 'maxmetric', + 'type': 'text', + 'value': '3', + 'size': '4', + 'style': 'min-width: unset !important;', + 'change': (ev)=>set_maxmetric(ev.target.value) + }); + var autoOptimizationCheckbox = E('input', { + 'id': 'auto_declump', + 'name': 'auto_declump', + 'type': 'checkbox', + 'change': (ev) => set_autodeclump(ev.target.checked), + 'checked': 'checked' + }); + var hostnamesCheckbox = E('input', { + 'id': 'show_hostnames', + 'name': 'show_hostnames', + 'type': 'checkbox', + 'change': (ev) => set_showdesc(ev.target.checked), + 'checked': 'checked' + }); + + var form = E('form', { 'action': '' }, [ + E('p', {}, [ + E('b', { 'title': 'Bestimmt die Vergrößerungsstufe.' }, 'Zoom '), + E('a', { 'href': '#', 'click': () =>set_scale(scale+0.1) }, '+ '), + E('a', { 'href': '#', 'click': () =>set_scale(scale-0.1) }, '\u2212 '), + zoomInput, + E('b', { 'title': 'Beschränkt die Anzeige auf eine maximale Hop-Entfernung.' }, ' Metrik'), + E('a', { 'href': '#', 'click': () => set_maxmetric(maxmetric+1) }, '+ '), + E('a', { 'href': '#', 'click': () => set_maxmetric(Math.max(maxmetric, 1) - 1) }, '\u2212'), + metricInput, + E('b', { 'title': 'Schaltet die automatischen Layout-Optimierung ein.' }, ' Optimierung'), + autoOptimizationCheckbox, + E('b', { 'title': 'Zeige Hostnamen an.' }, ' | Hostnamen'), + hostnamesCheckbox, + E('a', { 'href': '#', 'click': viz_save, 'title': 'Speichert die aktuellen Einstellungen in einem Cookie.', 'style': 'font-weight:700;' }, ' | Speichern'), + E('a', { 'href': '#', 'click': viz_reset, 'title': 'Startet das Viz-Skriptprogramm neu.', 'style': 'font-weight:700;' }, ' | Zurücksetzen') + ]) + ]); + + var debugSpan = E('span', { 'id': 'debug', 'style': 'visibility:hidden;' }); + var vizDiv = E('div', { 'id': 'RSIFrame', 'name': 'RSIFrame', 'style': 'border:0px; width:0px; height:0px; visibility:hidden;' }); + viz_setup(vizDiv, mainDiv, nodeDiv, edgeDiv, debugSpan, zoomInput, metricInput); viz_update(); + + function setInnerHTML(elm, html) { + elm.innerHTML = html; + + Array.from(elm.querySelectorAll("script")) + .forEach(oldScriptEl => { + const newScriptEl = document.createElement("script"); + + Array.from(oldScriptEl.attributes).forEach(attr => { + newScriptEl.setAttribute(attr.name, attr.value) + }); + + const scriptText = document.createTextNode(oldScriptEl.innerHTML); + newScriptEl.appendChild(scriptText); + + oldScriptEl.parentNode.replaceChild(newScriptEl, oldScriptEl); + }); + }; + + setInnerHTML(vizDiv, viz_res); + + var renderDiv = E('div', { 'style': 'width:100%; height:640px; border:none', 'scrolling': 'no' }, [mainDiv]); + var result = E([], {}, [form, debugSpan, renderDiv, vizDiv]); + return result; + }) + .catch(function (error) { + console.error(error); + }); + }, + handleSaveApply: null, + handleSave: null, + handleReset: null, +}); + diff --git a/applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm b/applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm deleted file mode 100644 index 47bd88405f..0000000000 --- a/applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm +++ /dev/null @@ -1,10 +0,0 @@ -<%+header%> -<noscript> - <div class="warning"> - <%:You need to allow javascript in your browser to show this page.%> - </div> -</noscript> - -<iframe style="width:100%; height:640px; border:none" scrolling="no" src="/cgi-bin/olsr-viz.sh"></iframe> - -<%+footer%> diff --git a/applications/luci-app-olsr-viz/po/ar/olsr-viz.po b/applications/luci-app-olsr-viz/po/ar/olsr-viz.po index 9dce5ed977..bcd1817371 100644 --- a/applications/luci-app-olsr-viz/po/ar/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/ar/olsr-viz.po @@ -11,10 +11,13 @@ msgstr "" "&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n" "X-Generator: Weblate 4.15-dev\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" msgstr "" + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" diff --git a/applications/luci-app-olsr-viz/po/bg/olsr-viz.po b/applications/luci-app-olsr-viz/po/bg/olsr-viz.po index 8464bca5d2..4e0afccedd 100644 --- a/applications/luci-app-olsr-viz/po/bg/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/bg/olsr-viz.po @@ -10,10 +10,13 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.16.2-dev\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-визуализация" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" msgstr "" + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-визуализация" diff --git a/applications/luci-app-olsr-viz/po/bn_BD/olsr-viz.po b/applications/luci-app-olsr-viz/po/bn_BD/olsr-viz.po index acb4701cdc..48e66bca20 100644 --- a/applications/luci-app-olsr-viz/po/bn_BD/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/bn_BD/olsr-viz.po @@ -10,10 +10,16 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.9-dev\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR- ভিজ" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "" + +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" +msgstr "" + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR- ভিজ" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." -msgstr "এই পৃষ্ঠাটি দেখার জন্য আপনার ব্রাউজারে জাভাস্ক্রিপ্টের অনুমতি দিতে হবে।" +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "এই পৃষ্ঠাটি দেখার জন্য আপনার ব্রাউজারে জাভাস্ক্রিপ্টের অনুমতি দিতে হবে।" diff --git a/applications/luci-app-olsr-viz/po/ca/olsr-viz.po b/applications/luci-app-olsr-viz/po/ca/olsr-viz.po index 9a83353979..3155445891 100644 --- a/applications/luci-app-olsr-viz/po/ca/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/ca/olsr-viz.po @@ -4,10 +4,10 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" msgstr "" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" msgstr "" diff --git a/applications/luci-app-olsr-viz/po/cs/olsr-viz.po b/applications/luci-app-olsr-viz/po/cs/olsr-viz.po index 5c7ea040ca..04fcedd168 100644 --- a/applications/luci-app-olsr-viz/po/cs/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/cs/olsr-viz.po @@ -10,11 +10,17 @@ msgstr "" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" "X-Generator: Weblate 3.11-dev\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" msgstr "" -"Pro zobrazení této stránky je třeba si v prohlížeči povolit JavaScript." + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" + +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "" +#~ "Pro zobrazení této stránky je třeba si v prohlížeči povolit JavaScript." diff --git a/applications/luci-app-olsr-viz/po/da/olsr-viz.po b/applications/luci-app-olsr-viz/po/da/olsr-viz.po index 6f0bcf6125..897f64be5d 100644 --- a/applications/luci-app-olsr-viz/po/da/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/da/olsr-viz.po @@ -1,6 +1,6 @@ msgid "" msgstr "" -"PO-Revision-Date: 2021-11-09 20:53+0000\n" +"PO-Revision-Date: 2023-10-27 08:55+0000\n" "Last-Translator: drax red <drax@outlook.dk>\n" "Language-Team: Danish <https://hosted.weblate.org/projects/openwrt/" "luciapplicationsolsr-viz/da/>\n" @@ -8,12 +8,18 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 4.9-dev\n" +"X-Generator: Weblate 5.2-dev\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "Grant læste adgang til luci-app-olsr-viz" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." -msgstr "Du skal tillade javascript i din browser for at vise denne side." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" +msgstr "OLSR Visualisering" + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" + +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "Du skal tillade javascript i din browser for at vise denne side." diff --git a/applications/luci-app-olsr-viz/po/de/olsr-viz.po b/applications/luci-app-olsr-viz/po/de/olsr-viz.po index 1f06ed6b18..acac19672c 100644 --- a/applications/luci-app-olsr-viz/po/de/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/de/olsr-viz.po @@ -1,21 +1,27 @@ msgid "" msgstr "" -"PO-Revision-Date: 2019-12-24 18:12+0000\n" -"Last-Translator: ssantos <ssantos@web.de>\n" +"PO-Revision-Date: 2023-06-20 13:52+0000\n" +"Last-Translator: Allan Nordhøy <epost@anotheragency.no>\n" "Language-Team: German <https://hosted.weblate.org/projects/openwrt/" "luciapplicationsolsr-viz/de/>\n" "Language: de\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 3.10\n" +"X-Generator: Weblate 4.18.1\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" msgstr "" -"Sie müssen Javascript in ihrem Webbrowser aktivieren, um diese Seite " -"anzeigen zu lassen." + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" + +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "" +#~ "Sie müssen JavaScript in ihrem Webbrowser aktivieren, um diese Seite " +#~ "anzeigen zu lassen." diff --git a/applications/luci-app-olsr-viz/po/el/olsr-viz.po b/applications/luci-app-olsr-viz/po/el/olsr-viz.po index b564b9b620..19d34348fd 100644 --- a/applications/luci-app-olsr-viz/po/el/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/el/olsr-viz.po @@ -4,10 +4,10 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" msgstr "" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" msgstr "" diff --git a/applications/luci-app-olsr-viz/po/en/olsr-viz.po b/applications/luci-app-olsr-viz/po/en/olsr-viz.po index b7e7621587..aad65ca9d4 100644 --- a/applications/luci-app-olsr-viz/po/en/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/en/olsr-viz.po @@ -1,19 +1,26 @@ msgid "" msgstr "" -"PO-Revision-Date: 2021-09-09 08:44+0000\n" -"Last-Translator: Demian Wright <wright.demian+weblate@gmail.com>\n" +"PO-Revision-Date: 2023-06-20 13:52+0000\n" +"Last-Translator: Allan Nordhøy <epost@anotheragency.no>\n" "Language-Team: English <https://hosted.weblate.org/projects/openwrt/" "luciapplicationsolsr-viz/en/>\n" "Language: en\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 4.8.1-dev\n" +"X-Generator: Weblate 4.18.1\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "" + +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" +msgstr "" + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." -msgstr "Sinun täytyy sallia Javascript selaimessasi näyttääksesi tämän sivun." +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "" +#~ "Sinun täytyy sallia JavaScript selaimessasi näyttääksesi tämän sivun." diff --git a/applications/luci-app-olsr-viz/po/es/olsr-viz.po b/applications/luci-app-olsr-viz/po/es/olsr-viz.po index 837732f8c1..cdcb5b1664 100644 --- a/applications/luci-app-olsr-viz/po/es/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/es/olsr-viz.po @@ -1,22 +1,29 @@ msgid "" msgstr "" -"Content-Type: text/plain; charset=UTF-8\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" -"PO-Revision-Date: 2019-07-25 20:02-0300\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.2.1\n" +"PO-Revision-Date: 2023-10-09 05:46+0000\n" "Last-Translator: Franco Castillo <castillofrancodamian@gmail.com>\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Language-Team: Spanish <https://hosted.weblate.org/projects/openwrt/" +"luciapplicationsolsr-viz/es/>\n" "Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 5.1-dev\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "Conceder acceso de lectura para luci-app-olsr-viz" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." -msgstr "" -"Necesitas permitir javascript en tu navegador para mostrar esta página." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" +msgstr "Visualización de OLSR" + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" + +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "" +#~ "Necesitas permitir JavaScript en tu navegador para mostrar esta página." diff --git a/applications/luci-app-olsr-viz/po/fi/olsr-viz.po b/applications/luci-app-olsr-viz/po/fi/olsr-viz.po index af3acb6159..3a27cd40be 100644 --- a/applications/luci-app-olsr-viz/po/fi/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/fi/olsr-viz.po @@ -10,12 +10,18 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.1-dev\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" msgstr "" -"Sinun täytyy sallia JavaScriptin suorittaminen selaimessasi käyttääksesi " -"tätä sivua." + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" + +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "" +#~ "Sinun täytyy sallia JavaScriptin suorittaminen selaimessasi käyttääksesi " +#~ "tätä sivua." diff --git a/applications/luci-app-olsr-viz/po/fr/olsr-viz.po b/applications/luci-app-olsr-viz/po/fr/olsr-viz.po index efc76e4d45..914aeee5ba 100644 --- a/applications/luci-app-olsr-viz/po/fr/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/fr/olsr-viz.po @@ -1,21 +1,27 @@ msgid "" msgstr "" -"PO-Revision-Date: 2020-02-09 15:51+0000\n" -"Last-Translator: Bob Weetabix <weetabixlalol@grr.la>\n" +"PO-Revision-Date: 2023-06-20 13:52+0000\n" +"Last-Translator: Allan Nordhøy <epost@anotheragency.no>\n" "Language-Team: French <https://hosted.weblate.org/projects/openwrt/" "luciapplicationsolsr-viz/fr/>\n" "Language: fr\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n > 1;\n" -"X-Generator: Weblate 3.11-dev\n" +"X-Generator: Weblate 4.18.1\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" msgstr "" -"Vous devez autoriser Javascript dans votre navigateur pour pouvoir afficher " -"cette page." + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" + +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "" +#~ "Vous devez autoriser JavaScript dans votre navigateur pour pouvoir " +#~ "afficher cette page." diff --git a/applications/luci-app-olsr-viz/po/he/olsr-viz.po b/applications/luci-app-olsr-viz/po/he/olsr-viz.po index cbdc806f2d..b0ec914f0f 100644 --- a/applications/luci-app-olsr-viz/po/he/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/he/olsr-viz.po @@ -11,10 +11,16 @@ msgstr "" "n % 10 == 0) ? 2 : 3));\n" "X-Generator: Weblate 4.16.2-dev\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "" + +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" +msgstr "" + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." -msgstr "יש להפעיל JavaScript בדפדפן כדי להציג את העמוד הזה." +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "יש להפעיל JavaScript בדפדפן כדי להציג את העמוד הזה." diff --git a/applications/luci-app-olsr-viz/po/hi/olsr-viz.po b/applications/luci-app-olsr-viz/po/hi/olsr-viz.po index e298eb1758..80e1ad7918 100644 --- a/applications/luci-app-olsr-viz/po/hi/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/hi/olsr-viz.po @@ -4,10 +4,10 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" msgstr "" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" msgstr "" diff --git a/applications/luci-app-olsr-viz/po/hu/olsr-viz.po b/applications/luci-app-olsr-viz/po/hu/olsr-viz.po index 44f9aa0d9a..7166328511 100644 --- a/applications/luci-app-olsr-viz/po/hu/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/hu/olsr-viz.po @@ -10,11 +10,17 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 3.10\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" msgstr "" -"Engedélyeznie kell a JavaScriptet a böngészőben az oldal megjelenítéséhez." + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" + +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "" +#~ "Engedélyeznie kell a JavaScriptet a böngészőben az oldal megjelenítéséhez." diff --git a/applications/luci-app-olsr-viz/po/it/olsr-viz.po b/applications/luci-app-olsr-viz/po/it/olsr-viz.po index 5ef89beabd..ab910729cf 100644 --- a/applications/luci-app-olsr-viz/po/it/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/it/olsr-viz.po @@ -1,20 +1,26 @@ msgid "" msgstr "" -"PO-Revision-Date: 2021-01-10 16:32+0000\n" -"Last-Translator: bovirus <roberto.boriotti@canon-europe.com>\n" +"PO-Revision-Date: 2023-10-09 20:18+0000\n" +"Last-Translator: Mario Rossi <kezdidk@hi2.in>\n" "Language-Team: Italian <https://hosted.weblate.org/projects/openwrt/" "luciapplicationsolsr-viz/it/>\n" "Language: it\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 4.4.1-dev\n" +"X-Generator: Weblate 5.1-dev\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "Consenti accesso in lettura per luci-app-olsr-viz" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." -msgstr "" -"Per visualizzare questa pagina devi consentire Javascript nel tuo browser." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" +msgstr "Visualizzazione OLSR" + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" + +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "" +#~ "Per visualizzare questa pagina devi consentire JavaScript nel tuo browser." diff --git a/applications/luci-app-olsr-viz/po/ja/olsr-viz.po b/applications/luci-app-olsr-viz/po/ja/olsr-viz.po index f72bbde8eb..d873131ad6 100644 --- a/applications/luci-app-olsr-viz/po/ja/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/ja/olsr-viz.po @@ -10,10 +10,17 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Weblate 4.5-dev\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "" + +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" +msgstr "" + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." -msgstr "このページを表示するには、ブラウザで JavaScript を許可する必要があります。" +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "" +#~ "このページを表示するには、ブラウザで JavaScript を許可する必要があります。" diff --git a/applications/luci-app-olsr-viz/po/ko/olsr-viz.po b/applications/luci-app-olsr-viz/po/ko/olsr-viz.po index f549aa10d8..f923c54e19 100644 --- a/applications/luci-app-olsr-viz/po/ko/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/ko/olsr-viz.po @@ -10,10 +10,17 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Weblate 4.15.1-dev\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "" + +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" +msgstr "" + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." -msgstr "페이지를 표시하기 위해선 브라우저의 JavaScript 실행을 허용해야 합니다." +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "" +#~ "페이지를 표시하기 위해선 브라우저의 JavaScript 실행을 허용해야 합니다." diff --git a/applications/luci-app-olsr-viz/po/lt/olsr-viz.po b/applications/luci-app-olsr-viz/po/lt/olsr-viz.po new file mode 100644 index 0000000000..1dcac06f02 --- /dev/null +++ b/applications/luci-app-olsr-viz/po/lt/olsr-viz.po @@ -0,0 +1,28 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2023-10-14 00:03+0000\n" +"Last-Translator: Džiugas J <dziugas1959@hotmail.com>\n" +"Language-Team: Lithuanian <https://hosted.weblate.org/projects/openwrt/" +"luciapplicationsolsr-viz/lt/>\n" +"Language: lt\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n % 10 == 1 && (n % 100 < 11 || n % 100 > " +"19)) ? 0 : ((n % 10 >= 2 && n % 10 <= 9 && (n % 100 < 11 || n % 100 > 19)) ? " +"1 : 2);\n" +"X-Generator: Weblate 5.1-dev\n" + +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "Duoti skaitymo prieigą prie „luci-app-olsr-viz“" + +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" +msgstr "„OLSR“ vizualizavimas" + +#~ msgid "OLSR-Viz" +#~ msgstr "„OLSR-Viz“" + +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "" +#~ "Jums reikia leisti „javascript“ savo naršyklėje, kad rodytų šį puslapį." diff --git a/applications/luci-app-olsr-viz/po/mr/olsr-viz.po b/applications/luci-app-olsr-viz/po/mr/olsr-viz.po index 55e44332e0..04613be9a0 100644 --- a/applications/luci-app-olsr-viz/po/mr/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/mr/olsr-viz.po @@ -10,11 +10,17 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n > 1;\n" "X-Generator: Weblate 3.10-dev\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" msgstr "" -"आपल्याला हे पृष्ठ दर्शविण्यासाठी आपल्या ब्राउझरमध्ये जावास्क्रिप्टला अनुमती देणे आवश्यक आहे." + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" + +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "" +#~ "आपल्याला हे पृष्ठ दर्शविण्यासाठी आपल्या ब्राउझरमध्ये जावास्क्रिप्टला अनुमती देणे आवश्यक आहे." diff --git a/applications/luci-app-olsr-viz/po/ms/olsr-viz.po b/applications/luci-app-olsr-viz/po/ms/olsr-viz.po index a2ebba8d39..71e8e8022e 100644 --- a/applications/luci-app-olsr-viz/po/ms/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/ms/olsr-viz.po @@ -4,10 +4,10 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" msgstr "" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" msgstr "" diff --git a/applications/luci-app-olsr-viz/po/nb_NO/olsr-viz.po b/applications/luci-app-olsr-viz/po/nb_NO/olsr-viz.po index 7cdb39c63d..8d9754a1ff 100644 --- a/applications/luci-app-olsr-viz/po/nb_NO/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/nb_NO/olsr-viz.po @@ -1,13 +1,25 @@ msgid "" msgstr "" +"PO-Revision-Date: 2023-06-20 13:52+0000\n" +"Last-Translator: Allan Nordhøy <epost@anotheragency.no>\n" +"Language-Team: Norwegian Bokmål <https://hosted.weblate.org/projects/openwrt/" +"luciapplicationsolsr-viz/nb_NO/>\n" "Language: nb_NO\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.18.1\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" msgstr "" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" msgstr "" + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" + +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "Du må tillate JavaScript i nettleseren din for å vise denne siden." diff --git a/applications/luci-app-olsr-viz/po/nl/olsr-viz.po b/applications/luci-app-olsr-viz/po/nl/olsr-viz.po index b8a125ee59..d97660271a 100644 --- a/applications/luci-app-olsr-viz/po/nl/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/nl/olsr-viz.po @@ -1,19 +1,25 @@ msgid "" msgstr "" -"PO-Revision-Date: 2023-04-22 13:51+0000\n" -"Last-Translator: xtz1983 <xtz1983@gmail.com>\n" +"PO-Revision-Date: 2023-06-20 13:52+0000\n" +"Last-Translator: Allan Nordhøy <epost@anotheragency.no>\n" "Language-Team: Dutch <https://hosted.weblate.org/projects/openwrt/" "luciapplicationsolsr-viz/nl/>\n" "Language: nl\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 4.18-dev\n" +"X-Generator: Weblate 4.18.1\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "" + +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" +msgstr "" + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." -msgstr "U moet javascript in uw browser toestaan om deze pagina te tonen." +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "U moet JavaScript in uw browser toestaan om deze pagina te tonen." diff --git a/applications/luci-app-olsr-viz/po/pl/olsr-viz.po b/applications/luci-app-olsr-viz/po/pl/olsr-viz.po index 4e9ab7e074..6b3ac4ddd7 100644 --- a/applications/luci-app-olsr-viz/po/pl/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/pl/olsr-viz.po @@ -1,7 +1,7 @@ msgid "" msgstr "" -"PO-Revision-Date: 2019-11-06 00:12+0000\n" -"Last-Translator: Michal L <michalrmsmi@wp.pl>\n" +"PO-Revision-Date: 2023-10-08 15:45+0000\n" +"Last-Translator: Matthaiks <kitynska@gmail.com>\n" "Language-Team: Polish <https://hosted.weblate.org/projects/openwrt/" "luciapplicationsolsr-viz/pl/>\n" "Language: pl\n" @@ -9,14 +9,20 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2;\n" -"X-Generator: Weblate 3.10-dev\n" +"X-Generator: Weblate 5.1-dev\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "Przyznaj luci-app-olsr-viz dostęp do odczytu" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." -msgstr "" -"Musisz zezwolić na obsługę JavaScript w przeglądarce, aby wyświetlić tę " -"stronę." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" +msgstr "Wizualizacja OLSR" + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" + +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "" +#~ "Musisz zezwolić na obsługę JavaScript w przeglądarce, aby wyświetlić tę " +#~ "stronę." diff --git a/applications/luci-app-olsr-viz/po/pt/olsr-viz.po b/applications/luci-app-olsr-viz/po/pt/olsr-viz.po index aa2357d384..a96a676112 100644 --- a/applications/luci-app-olsr-viz/po/pt/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/pt/olsr-viz.po @@ -1,19 +1,26 @@ msgid "" msgstr "" -"PO-Revision-Date: 2019-11-20 17:07+0000\n" -"Last-Translator: ssantos <ssantos@web.de>\n" +"PO-Revision-Date: 2023-06-20 13:52+0000\n" +"Last-Translator: Allan Nordhøy <epost@anotheragency.no>\n" "Language-Team: Portuguese <https://hosted.weblate.org/projects/openwrt/" "luciapplicationsolsr-viz/pt/>\n" "Language: pt\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n > 1;\n" -"X-Generator: Weblate 3.10-dev\n" +"X-Generator: Weblate 4.18.1\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "" + +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" +msgstr "" + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." -msgstr "Precisa permitir que o javascript no seu navegador mostre esta página." +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "" +#~ "Precisa permitir que o JavaScript no seu navegador mostre esta página." diff --git a/applications/luci-app-olsr-viz/po/pt_BR/olsr-viz.po b/applications/luci-app-olsr-viz/po/pt_BR/olsr-viz.po index ba1e93bd7a..5225faed62 100644 --- a/applications/luci-app-olsr-viz/po/pt_BR/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/pt_BR/olsr-viz.po @@ -1,21 +1,27 @@ msgid "" msgstr "" -"PO-Revision-Date: 2019-12-09 20:04+0000\n" -"Last-Translator: Wellington Terumi Uemura <wellingtonuemura@gmail.com>\n" +"PO-Revision-Date: 2023-06-20 13:52+0000\n" +"Last-Translator: Allan Nordhøy <epost@anotheragency.no>\n" "Language-Team: Portuguese (Brazil) <https://hosted.weblate.org/projects/" "openwrt/luciapplicationsolsr-viz/pt_BR/>\n" "Language: pt_BR\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n > 1;\n" -"X-Generator: Weblate 3.10-dev\n" +"X-Generator: Weblate 4.18.1\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" msgstr "" -"Você precisa permitir que o javascript rode em seu navegador para pode " -"exibir esta página." + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" + +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "" +#~ "Você precisa permitir que o JavaScript rode em seu navegador para pode " +#~ "exibir esta página." diff --git a/applications/luci-app-olsr-viz/po/ro/olsr-viz.po b/applications/luci-app-olsr-viz/po/ro/olsr-viz.po index 2392d03ef5..b044a8419e 100644 --- a/applications/luci-app-olsr-viz/po/ro/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/ro/olsr-viz.po @@ -1,6 +1,6 @@ msgid "" msgstr "" -"PO-Revision-Date: 2021-11-14 17:22+0000\n" +"PO-Revision-Date: 2023-11-01 19:04+0000\n" "Last-Translator: Simona Iacob <s@zp1.net>\n" "Language-Team: Romanian <https://hosted.weblate.org/projects/openwrt/" "luciapplicationsolsr-viz/ro/>\n" @@ -9,14 +9,20 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < " "20)) ? 1 : 2;\n" -"X-Generator: Weblate 4.9.1-dev\n" +"X-Generator: Weblate 5.2-dev\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "Acordă acces de citire pentru luci-app-olsr-viz" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." -msgstr "" -"Trebuie să permiteți javascript în browserul dumneavoastră pentru a afișa " -"această pagină." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" +msgstr "Vizualizare OLSR" + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" + +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "" +#~ "Trebuie să permiteți JavaScript în browserul dumneavoastră pentru a afișa " +#~ "această pagină." diff --git a/applications/luci-app-olsr-viz/po/ru/olsr-viz.po b/applications/luci-app-olsr-viz/po/ru/olsr-viz.po index 64b2791db5..2d9c6c1b1b 100644 --- a/applications/luci-app-olsr-viz/po/ru/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/ru/olsr-viz.po @@ -1,20 +1,26 @@ msgid "" msgstr "" -"PO-Revision-Date: 2020-06-07 15:48+0000\n" -"Last-Translator: Artem <KovalevArtem.ru@gmail.com>\n" +"PO-Revision-Date: 2023-10-09 01:11+0000\n" +"Last-Translator: sergio <sergio+it@outerface.net>\n" "Language-Team: Russian <https://hosted.weblate.org/projects/openwrt/" "luciapplicationsolsr-viz/ru/>\n" "Language: ru\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" -"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" -"X-Generator: Weblate 4.1-dev\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"X-Generator: Weblate 5.1-dev\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "Предоставить доступ на чтение для luci-app-olsr-viz" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." -msgstr "Включите javascript для отображения этой страницы." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" +msgstr "Визуализация OLSR" + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" + +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "Включите JavaScript для отображения этой страницы." diff --git a/applications/luci-app-olsr-viz/po/sk/olsr-viz.po b/applications/luci-app-olsr-viz/po/sk/olsr-viz.po index e2a6f3c3d3..723696f6cd 100644 --- a/applications/luci-app-olsr-viz/po/sk/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/sk/olsr-viz.po @@ -4,10 +4,10 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" msgstr "" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" msgstr "" diff --git a/applications/luci-app-olsr-viz/po/sr/olsr-viz.po b/applications/luci-app-olsr-viz/po/sr/olsr-viz.po index 7b4c387325..b8526026ad 100644 --- a/applications/luci-app-olsr-viz/po/sr/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/sr/olsr-viz.po @@ -1,22 +1,28 @@ msgid "" msgstr "" -"PO-Revision-Date: 2022-01-12 23:11+0000\n" -"Last-Translator: SP <sp300b@gmail.com>\n" +"PO-Revision-Date: 2023-06-20 14:47+0000\n" +"Last-Translator: Allan Nordhøy <epost@anotheragency.no>\n" "Language-Team: Serbian <https://hosted.weblate.org/projects/openwrt/" "luciapplicationsolsr-viz/sr/>\n" "Language: sr\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" -"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" -"X-Generator: Weblate 4.10.1\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"X-Generator: Weblate 4.18.1\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" msgstr "" -"Potrebno je da dozvolite javascript u vašem pretraživaču, da bi se prikazala " -"ova stranica." + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" + +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "" +#~ "Potrebno je da dozvolite JavaScript u vašem pretraživaču, da bi se " +#~ "prikazala ova stranica." diff --git a/applications/luci-app-olsr-viz/po/sv/olsr-viz.po b/applications/luci-app-olsr-viz/po/sv/olsr-viz.po index 031f2f6208..d7a25e0594 100644 --- a/applications/luci-app-olsr-viz/po/sv/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/sv/olsr-viz.po @@ -1,20 +1,26 @@ msgid "" msgstr "" -"PO-Revision-Date: 2020-08-20 15:36+0000\n" -"Last-Translator: Luna Jernberg <droidbittin@gmail.com>\n" +"PO-Revision-Date: 2023-06-20 13:52+0000\n" +"Last-Translator: Allan Nordhøy <epost@anotheragency.no>\n" "Language-Team: Swedish <https://hosted.weblate.org/projects/openwrt/" "luciapplicationsolsr-viz/sv/>\n" "Language: sv\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 4.2.1-dev\n" +"X-Generator: Weblate 4.18.1\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" msgstr "" -"Du behöver tillåta javascript i din webbläsare för att visa den här sidan." + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" + +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "" +#~ "Du behöver tillåta JavaScript i din webbläsare för att visa den här sidan." diff --git a/applications/luci-app-olsr-viz/po/templates/olsr-viz.pot b/applications/luci-app-olsr-viz/po/templates/olsr-viz.pot index c7f7a2cfdb..4d4d9cf303 100644 --- a/applications/luci-app-olsr-viz/po/templates/olsr-viz.pot +++ b/applications/luci-app-olsr-viz/po/templates/olsr-viz.pot @@ -1,10 +1,10 @@ msgid "" msgstr "Content-Type: text/plain; charset=UTF-8" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" msgstr "" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" msgstr "" diff --git a/applications/luci-app-olsr-viz/po/tr/olsr-viz.po b/applications/luci-app-olsr-viz/po/tr/olsr-viz.po index 2e6cc4b475..18977facdc 100644 --- a/applications/luci-app-olsr-viz/po/tr/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/tr/olsr-viz.po @@ -1,21 +1,27 @@ msgid "" msgstr "" -"PO-Revision-Date: 2020-07-22 02:42+0000\n" -"Last-Translator: tentena <thetentena@gmail.com>\n" +"PO-Revision-Date: 2023-10-29 19:41+0000\n" +"Last-Translator: semih <semiht@gmail.com>\n" "Language-Team: Turkish <https://hosted.weblate.org/projects/openwrt/" "luciapplicationsolsr-viz/tr/>\n" "Language: tr\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 4.2-dev\n" +"X-Generator: Weblate 5.2-dev\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "Luci-app-olsr-viz için okuma erişimi ver" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." -msgstr "" -"Bu sayfayı göstermesi icin tarayıcınızda javascript'e izin vermeniz " -"gerekiyor." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" +msgstr "OLSR Görselleştirme" + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" + +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "" +#~ "Bu sayfayı göstermesi icin tarayıcınızda JavaScript'e izin vermeniz " +#~ "gerekiyor." diff --git a/applications/luci-app-olsr-viz/po/uk/olsr-viz.po b/applications/luci-app-olsr-viz/po/uk/olsr-viz.po index 09cb97b0fe..02a7de4e7b 100644 --- a/applications/luci-app-olsr-viz/po/uk/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/uk/olsr-viz.po @@ -1,20 +1,26 @@ msgid "" msgstr "" -"PO-Revision-Date: 2020-02-17 11:51+0000\n" -"Last-Translator: Olexandr Nesterenko <olexn@ukr.net>\n" +"PO-Revision-Date: 2023-06-20 14:47+0000\n" +"Last-Translator: Allan Nordhøy <epost@anotheragency.no>\n" "Language-Team: Ukrainian <https://hosted.weblate.org/projects/openwrt/" "luciapplicationsolsr-viz/uk/>\n" "Language: uk\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=" -"4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" -"X-Generator: Weblate 3.11-dev\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"X-Generator: Weblate 4.18.1\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "" + +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" +msgstr "" + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." -msgstr "Для показу даної сторінки необхідно дозволити виконання javascript." +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "Для показу даної сторінки необхідно дозволити виконання JavaScript." diff --git a/applications/luci-app-olsr-viz/po/vi/olsr-viz.po b/applications/luci-app-olsr-viz/po/vi/olsr-viz.po index 8b72331060..bccd56c22a 100644 --- a/applications/luci-app-olsr-viz/po/vi/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/vi/olsr-viz.po @@ -1,21 +1,27 @@ msgid "" msgstr "" -"PO-Revision-Date: 2023-02-20 15:36+0000\n" -"Last-Translator: tictactoe <phandinhminh@protonmail.ch>\n" +"PO-Revision-Date: 2023-06-20 14:47+0000\n" +"Last-Translator: Allan Nordhøy <epost@anotheragency.no>\n" "Language-Team: Vietnamese <https://hosted.weblate.org/projects/openwrt/" "luciapplicationsolsr-viz/vi/>\n" "Language: vi\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Weblate 4.16-dev\n" +"X-Generator: Weblate 4.18.1\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" msgstr "" -"Bạn cần phải chấp nhận javascript trong trình duyệt của bạn để hiển thị " -"trang này." + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" + +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "" +#~ "Bạn cần phải chấp nhận JavaScript trong trình duyệt của bạn để hiển thị " +#~ "trang này." diff --git a/applications/luci-app-olsr-viz/po/zh_Hans/olsr-viz.po b/applications/luci-app-olsr-viz/po/zh_Hans/olsr-viz.po index e39c1713e5..c3f46dd923 100644 --- a/applications/luci-app-olsr-viz/po/zh_Hans/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/zh_Hans/olsr-viz.po @@ -1,19 +1,25 @@ msgid "" msgstr "" -"PO-Revision-Date: 2019-12-07 10:45+0000\n" -"Last-Translator: Zheng Qian <sotux82@gmail.com>\n" +"PO-Revision-Date: 2023-10-10 03:37+0000\n" +"Last-Translator: Eric <hamburger2048@users.noreply.hosted.weblate.org>\n" "Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects/" "openwrt/luciapplicationsolsr-viz/zh_Hans/>\n" -"Language: zh-cn\n" +"Language: zh_Hans\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Weblate 3.10-dev\n" +"X-Generator: Weblate 5.1-dev\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR-Viz" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "授予 luci-app-olsr-viz 读取权限" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." -msgstr "您需要允许浏览器中的 javascript 以显示此页面。" +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" +msgstr "OLSR 可视化" + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR-Viz" + +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "您需要允许浏览器中的 JavaScript 以显示此页面。" diff --git a/applications/luci-app-olsr-viz/po/zh_Hant/olsr-viz.po b/applications/luci-app-olsr-viz/po/zh_Hant/olsr-viz.po index 1372c1d975..5f1ce674a7 100644 --- a/applications/luci-app-olsr-viz/po/zh_Hant/olsr-viz.po +++ b/applications/luci-app-olsr-viz/po/zh_Hant/olsr-viz.po @@ -1,19 +1,25 @@ msgid "" msgstr "" -"PO-Revision-Date: 2020-12-30 02:30+0000\n" -"Last-Translator: operator <omniplay@hotmail.com>\n" +"PO-Revision-Date: 2023-06-20 13:52+0000\n" +"Last-Translator: Allan Nordhøy <epost@anotheragency.no>\n" "Language-Team: Chinese (Traditional) <https://hosted.weblate.org/projects/" "openwrt/luciapplicationsolsr-viz/zh_Hant/>\n" "Language: zh_Hant\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Weblate 4.4.1-dev\n" +"X-Generator: Weblate 4.18.1\n" -#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:3 -msgid "OLSR-Viz" -msgstr "OLSR拓樸視覺化" +#: applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json:3 +msgid "Grant read access for luci-app-olsr-viz" +msgstr "" + +#: applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json:4 +msgid "OLSR Visualization" +msgstr "" + +#~ msgid "OLSR-Viz" +#~ msgstr "OLSR拓樸視覺化" -#: applications/luci-app-olsr-viz/luasrc/view/olsr-viz/olsr-viz.htm:4 -msgid "You need to allow javascript in your browser to show this page." -msgstr "你必須啟用 javascript 才能顯示此網頁。" +#~ msgid "You need to allow javascript in your browser to show this page." +#~ msgstr "你必須啟用 JavaScript 才能顯示此網頁。" diff --git a/applications/luci-app-olsr-viz/root/usr/libexec/rpcd/olsrvizinfo b/applications/luci-app-olsr-viz/root/usr/libexec/rpcd/olsrvizinfo new file mode 100644 index 0000000000..27c1f67af3 --- /dev/null +++ b/applications/luci-app-olsr-viz/root/usr/libexec/rpcd/olsrvizinfo @@ -0,0 +1,59 @@ +#!/bin/sh +. /usr/share/libubox/jshn.sh + +case "$1" in +list) + json_init + json_add_object "getolsrvizdata" + json_close_object + json_dump + ;; +call) + case "$2" in + getolsrvizdata) + + jsonreq4=$( + cat <<EOF +<script language='JavaScript1.2' type='text/javascript'> +EOF + + # sed + txtinfo plugin + re_ip='[0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}' + re_sep='[[:space:]]\{1,\}' + re_nosep='[^[:space:]]\{1,\}' + wget http://127.0.0.1:2006/all -qO - | sed -n " +/^Table: Links$/,/^$/ { +s# # - #g +s#\($re_ip\)$re_sep\($re_ip\)\($re_sep$re_nosep\)\{3\}$re_sep\($re_nosep\)#touch_edge(touch_node('\1').set_metric(1).update(),touch_node('\2').set_metric(1).update(),'\4');#p +} +/^Table: Topology$/,/^$/ { +s#\($re_ip\)$re_sep\($re_ip\)\($re_sep$re_nosep\)\{2\}$re_sep\($re_nosep\)#touch_edge(touch_node('\1').update(),touch_node('\2').update(),'\4');#p +} +/^Table: HNA$/,/^$/ { +s#\($re_ip\)/\([0-9]\{1,\}\)$re_sep\($re_ip\)#touch_hna(touch_node('\3'),'\1','\2');#p +} +/^Table: Routes$/,/^$/ { +s#\($re_ip\)/32$re_sep$re_nosep$re_sep\($re_nosep\).*#touch_node('\1').set_metric('\2').update();#p +} +" + + hosts=$(uci show olsrd | grep hosts_file | cut -d "=" -f 2) + if [ -n $hosts ]; then + sed -n " +s#\($re_ip\)$re_sep\($re_nosep\)$re_sep.*#touch_node('\1').set_desc('\2');#p +" <$hosts + fi + + cat <<EOF + viz_callback(); +</script> +EOF + ) + + json_init + json_add_string "jsonreq4" "$jsonreq4" + json_dump + ;; + esac + ;; +esac diff --git a/applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json b/applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json index 02cfd6b646..ad6393b4ac 100644 --- a/applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json +++ b/applications/luci-app-olsr-viz/root/usr/share/luci/menu.d/luci-app-olsr-viz.json @@ -1,10 +1,12 @@ { - "admin/status/olsr/olsr-viz": { - "title": "OLSR-Viz", - "order": 90, + + "olsr/olsr-viz": { + "title": "OLSR Visualization", + "order": 100, "action": { - "type": "template", - "path": "olsr-viz/olsr-viz" + "type": "view", + "path": "olsr-viz/olsr-viz-view" } } + } diff --git a/applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json b/applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json new file mode 100644 index 0000000000..7238fd9053 --- /dev/null +++ b/applications/luci-app-olsr-viz/root/usr/share/rpcd/acl.d/luci-app-olsr-viz-unauthenticated.json @@ -0,0 +1,12 @@ +{ + "unauthenticated": { + "description": "Grant read access for luci-app-olsr-viz", + "read": { + "ubus": { + "olsrvizinfo": [ + "getolsrvizdata" + ] + } + } + } +} |