mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-30 14:35:13 +08:00
🎈 Sync 2026-06-19 02:57:28
This commit is contained in:
1 parent
29adf9f138
commit
e6800e389f
5 files changed
+60
-12
No files matched your search
@@ -73,6 +73,10 @@ function loadYamlParser() {
|
||||
}
|
||||
|
||||
function daedEndpoint() {
|
||||
// HTTPS page: browser blocks the plain-HTTP :2023 fetch as mixed
|
||||
// content, so relay via a same-origin CGI. HTTP: hit daed direct. #11
|
||||
if (window.location.protocol === 'https:')
|
||||
return '/cgi-bin/daede-graphql';
|
||||
const listen = uci.get('daed', 'config', 'listen_addr') || '0.0.0.0:2023';
|
||||
const match = String(listen).match(/:(\d+)$/);
|
||||
const port = match ? match[1] : '2023';
|
||||
|
||||
@@ -131,8 +131,6 @@ function stamp() {
|
||||
|
||||
return view.extend({
|
||||
load: function() {
|
||||
// background apk update so new versions show on next poll
|
||||
fs.exec('/usr/share/luci-app-daede/refresh-index.sh', []).catch(function() {});
|
||||
return Promise.all([
|
||||
backend.detectBackend(),
|
||||
uci.load('daed').catch(function() {}),
|
||||
@@ -379,6 +377,10 @@ return view.extend({
|
||||
|
||||
poll.add(refresh);
|
||||
refresh();
|
||||
// First paint reads the cached index (fast). Refresh the index, then
|
||||
// re-probe once it's current so a freshly published version shows
|
||||
// without waiting for a poll tick. refresh-index.sh self-throttles.
|
||||
fs.exec('/usr/share/luci-app-daede/refresh-index.sh', []).then(refresh).catch(function() {});
|
||||
|
||||
// === Geo data source (preset / custom URL + auto-update) ===
|
||||
const geoSettings = (function() {
|
||||
|
||||
Reference in new issue
Block a user