2022-07-15 11:34:43 +08:00

34 lines
1.0 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%+header%>
<script>
(function(){
})();
</script>
<div id="app">
</div>
<script>
window.IstoreosFormConfig = {
getApi:"/cgi-bin/luci/admin/services/nastools/form/",
logApi:"/cgi-bin/luci/admin/services/nastools/log",
submitApi:"/cgi-bin/luci/admin/services/nastools/submit",
getHook:function(resp){
var c1 = resp.result.schema.containers[0];
var idx = 1;
if (resp.result.data.container_install) {
c1.labels[idx].value = '<a href="http://'+location.hostname+':'+resp.result.data.http_port+'" target="_blank">打开 NasTools</a>(默认用户名/密码admin/password';
} else {
c1.labels[idx].value = "安装并运行之后,才能用网页访问";
}
return resp;
},
submitHook:function(params){
return params;
}
}
</script>
<script type="module" crossorigin src="/luci-static/iform/1.0/index.js?v=<%=math.random(1,100000)%>"></script>
<link rel="stylesheet" href="/luci-static/iform/1.0/style.css?v=<%=math.random(1,100000)%>">
<%+footer%>