34 lines
1005 B
HTML
34 lines
1005 B
HTML
<%+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.host+':'+resp.result.data.http_port+'" target="_blank">NasTools HTTP 链接</a>';
|
|
} 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%>
|