lede/package/lean/luci-app-frps/luasrc/view/frps/status_header.htm
lwz322 157bf74506
support option: tls_only & extra setting (#3859)
tls_only for frps v0.32.0+
extra setting list for possible new options
update translation

replace PKG_MAINTAINER‘s name with github ID
2020-03-18 12:56:00 +08:00

30 lines
614 B
HTML

<%#
Copyright 2020 lwz322 <lwz322@qq.com>
Licensed to the public under the MIT License.
-%>
<%
local dsp = require "luci.dispatcher"
-%>
<fieldset class="cbi-section">
<p id="frps_status">
<em><%:Collecting data...%></em>
</p>
</fieldset>
<script type="text/javascript">//<![CDATA[
XHR.poll(5, '<%=dsp.build_url("admin/services/frps/status")%>', null,
function (x, data) {
if (x.status !== 200 || !data) {
return;
}
var frpsStatusElm = document.getElementById('frps_status');
frpsStatusElm.innerHTML = data.running
? '<%:Running%>'
: '<%:Not Running%>';
}
);
//]]></script>