🎄 Sync 2026-06-14 03:16:16

This commit is contained in:
github-actions[bot] committed 2026-06-14 03:16:16 +08:00
1 parent 80b02c4274
commit d0a42fa38e
13 files changed
+1477 -24

No files matched your search

@@ -0,0 +1,37 @@
#!/bin/sh
# SPDX-License-Identifier: Apache-2.0
set -eu
URL="${1:-}"
MAX_BYTES=5242880
FETCH_BIN="${DAEDE_FETCH_BIN:-uclient-fetch}"
case "$URL" in
http://*|https://*) ;;
*)
echo "Subscription URL must use HTTP or HTTPS" >&2
exit 2
;;
esac
TMP="$(mktemp /tmp/daede-clash-yaml.XXXXXX)"
trap 'rm -f "$TMP"' EXIT INT TERM
chmod 600 "$TMP"
if ! "$FETCH_BIN" -q -T 20 -U "ClashMeta" -O "$TMP" "$URL"; then
echo "Failed to fetch subscription" >&2
exit 3
fi
SIZE="$(wc -c <"$TMP" | tr -d ' ')"
if [ "$SIZE" -eq 0 ]; then
echo "Subscription response is empty" >&2
exit 4
fi
if [ "$SIZE" -gt "$MAX_BYTES" ]; then
echo "Subscription response is too large (maximum 5 MiB)" >&2
exit 5
fi
cat "$TMP"
@@ -17,9 +17,17 @@
"path": "daede/config"
}
},
"admin/services/daede/converter": {
"title": "Subscription Converter",
"order": 20,
"action": {
"type": "view",
"path": "daede/converter"
}
},
"admin/services/daede/updates": {
"title": "Updates",
"order": 20,
"order": 30,
"action": {
"type": "view",
"path": "daede/updates"
@@ -27,7 +35,7 @@
},
"admin/services/daede/log": {
"title": "Log",
"order": 30,
"order": 40,
"action": {
"type": "view",
"path": "daede/log"
@@ -65,6 +65,7 @@
"/usr/share/luci-app-daede/update-pkg.sh dae": [ "exec" ],
"/usr/share/luci-app-daede/update-pkg.sh daed": [ "exec" ],
"/usr/share/luci-app-daede/update-pkg.sh luci-app-daede": [ "exec" ],
"/usr/share/luci-app-daede/fetch-clash-yaml.sh *": [ "exec" ],
"/usr/share/luci-app-daede/gen-dae-config.sh generate": [ "exec" ],
"/usr/share/luci-app-daede/gen-dae-config.sh import": [ "exec" ]
},