mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-13 19:57:54 +08:00
🎁 Sync 2026-07-07 20:50:55
This commit is contained in:
1 parent
add8ea0d42
commit
66678c8afc
100 files changed
+5162
-17005
No files matched your search
@@ -51,7 +51,7 @@ local dns_host = "www.instagram.com"
|
||||
if (legend && output)
|
||||
{
|
||||
output.innerHTML =
|
||||
'<img src="<%=resource%>/icons/loading.svg" onerror="this.onerror=null;this.src=\'<%=resource%>/icons/loading.gif\'" alt="<%:Loading%>" style="vertical-align:middle" /> ' +
|
||||
'<img src="<%=resource%>/icons/loading.svg" onerror="this.onerror=null;this.src=\'<%=resource%>/icons/loading.gif\'" alt="<%:Loading...%>" style="vertical-align:middle" /> ' +
|
||||
'<%:Waiting for command to complete...%>';
|
||||
|
||||
legend.textContent = '<%:Collecting data...%>';
|
||||
@@ -95,7 +95,7 @@ local dns_host = "www.instagram.com"
|
||||
if (legend && output)
|
||||
{
|
||||
output.innerHTML =
|
||||
'<img src="<%=resource%>/icons/loading.svg" onerror="this.onerror=null;this.src=\'<%=resource%>/icons/loading.gif\'" alt="<%:Loading%>" style="vertical-align:middle" /> ' +
|
||||
'<img src="<%=resource%>/icons/loading.svg" onerror="this.onerror=null;this.src=\'<%=resource%>/icons/loading.gif\'" alt="<%:Loading...%>" style="vertical-align:middle" /> ' +
|
||||
'<%:Waiting for command to complete...%>';
|
||||
|
||||
legend.textContent = '<%:Collecting data...%>';
|
||||
@@ -129,61 +129,20 @@ local dns_host = "www.instagram.com"
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function gen_debug_logs()
|
||||
{
|
||||
var legend = document.getElementById('debug-rc-legend');
|
||||
var output = document.getElementById('debug-rc-output');
|
||||
|
||||
if (legend && output)
|
||||
{
|
||||
output.innerHTML =
|
||||
'<img src="<%=resource%>/icons/loading.svg" onerror="this.onerror=null;this.src=\'<%=resource%>/icons/loading.gif\'" alt="<%:Loading%>" style="vertical-align:middle" /> ' +
|
||||
'<%:Waiting for command to complete...%>';
|
||||
|
||||
legend.textContent = '<%:Collecting data...%>';
|
||||
legend.parentNode.style.display = 'block';
|
||||
legend.style.display = 'block';
|
||||
|
||||
XHR.get('<%=luci.dispatcher.build_url("admin", "services", "openclash", "gen_debug_logs")%>', null, function(x, status) {
|
||||
legend.textContent = '<%:Generated Logs%>';
|
||||
if (x && x.status == 200 && x.responseText != "")
|
||||
{
|
||||
output.innerHTML = '';
|
||||
var ta = document.createElement('textarea');
|
||||
ta.style.width = '100%';
|
||||
ta.value = x.responseText;
|
||||
output.appendChild(ta);
|
||||
_cmWhenReady(function() {
|
||||
other_editor(ta, true, '100%', '400px');
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
output.innerHTML = '<span class="error"><%:Some error occurred!%></span>';
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
//]]></script>
|
||||
|
||||
<form>
|
||||
<fieldset class="diag-style">
|
||||
<div style="width:33%; float: left; text-align: center; white-space: nowrap;">
|
||||
<div style="width:50%; float: left; text-align: center; white-space: nowrap;">
|
||||
<%:Connection Test%>
|
||||
<input type="text" value="<%=diag_host%>" name="diag" />
|
||||
<input type="button" value="<%:Click to Test%>" class="btn cbi-button cbi-button-apply" onclick="update_status(this.form.diag)" />
|
||||
</div>
|
||||
<div style="width:33%; float: left; text-align: center; white-space: nowrap;">
|
||||
<div style="width:50%; float: left; text-align: center; white-space: nowrap;">
|
||||
<%:DNS Test%>
|
||||
<input type="text" value="<%=dns_host%>" name="dns_host" />
|
||||
<input type="button" value="<%:Click to Test%>" class="btn cbi-button cbi-button-apply" onclick="diag_dns(this.form.dns_host)" />
|
||||
</div>
|
||||
<div style="width:33%; float: left; text-align: center; white-space: nowrap;">
|
||||
<%:Generate Logs%>
|
||||
<input type="button" value="<%:Click to Generate%>" class="btn cbi-button cbi-button-apply" onclick="gen_debug_logs(this)" />
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<div class="diag-style" style="display:none">
|
||||
@@ -195,9 +154,4 @@ local dns_host = "www.instagram.com"
|
||||
<div id="dns-rc-legend" class="diag-legend"><%:Collecting data...%></div>
|
||||
<span id="dns-rc-output"></span>
|
||||
</div>
|
||||
|
||||
<div class="diag-style" style="display:none">
|
||||
<div id="debug-rc-legend" class="diag-legend"><%:Collecting data...%></div>
|
||||
<span id="debug-rc-output"></span>
|
||||
</div>
|
||||
</form>
|
||||
Reference in new issue
Block a user