Files
github-actions[bot] d0f52bd3f5
Merge-upstream / merge (push) Canceled after 0s
🔥 Sync 2026-09-04 23:41:24
2026-09-04 23:41:24 +08:00

61 lines
2.8 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0" /> -->
<!-- <meta name="viewport" content="width=1400, initial-scale=1.0" /> -->
<meta name="viewport" content="width=1100" />
<title><%=luci.sys.hostname()%></title>
</head>
<body>
<script src="<%=url('admin/translations', luci.i18n.context.lang)%><%# ?v=PKG_VERSION %>"></script>
<script src="<%=resource%>/cbi.js<%# ?v=PKG_VERSION %>"></script>
<script type="text/javascript" src="<%=resource%>/promis.min.js<%# ?v=PKG_VERSION %>"></script>
<script type="text/javascript" src="<%=resource%>/luci.js<%# ?v=PKG_VERSION %>"></script>
<%+tasks/embed%>
<script>
(function(){
var pathe_prefix = "<%=prefix%>"
window.istoreRouterVer = "<%# PKG_VERSION %>"
window.HostName = "<%=luci.sys.hostname()%>"
window.path_base = pathe_prefix
window.token = "<%=token%>"
window.model = "<%=model%>"
window.device_id = {
arch:"<%=id.arch%>",
uid:"<%=id.uid%>",
version:"<%=id.version%>"
}
})();
</script>
<%
local luci_main = type(luci.config) == "table" and type(luci.config.main) == "table" and luci.config.main or {}
-%>
<script type="text/javascript">
L = new LuCI(<%= luci.http.write_json({
token = token,
media = media,
resource = resource,
scriptname = luci.http.getenv("SCRIPT_NAME"),
pathinfo = luci.http.getenv("PATH_INFO"),
documentroot = luci.http.getenv("DOCUMENT_ROOT"),
requestpath = luci.dispatcher.context.requestpath,
dispatchpath = luci.dispatcher.context.path,
pollinterval = luci_main.pollinterval or 5,
ubuspath = luci_main.ubuspath or '/ubus/',
sessionid = luci.dispatcher.context.authsession,
nodespec = luci.dispatcher.context.dispatched,
apply_rollback = math.max(applyconf and applyconf.rollback or 90, 30),
apply_holdoff = math.max(applyconf and applyconf.holdoff or 4, 1),
apply_timeout = math.max(applyconf and applyconf.timeout or 5, 1),
apply_display = math.max(applyconf and applyconf.display or 1.5, 1),
rollback_token = rollback_token
}) %>);
</script>
<div id="app"></div>
<link rel="stylesheet" href="/luci-static/istorerouter/style.css?v=<%=cache_tag%>">
<script type="module" crossorigin src="/luci-static/istorerouter/index.js?v=<%=cache_tag%>"></script>
</body>
</html>