diff --git a/package/secubox/luci-app-cyberfeed/htdocs/luci-static/resources/cyberfeed/api.js b/package/secubox/luci-app-cyberfeed/htdocs/luci-static/resources/cyberfeed/api.js index 1062724..ed92dcb 100644 --- a/package/secubox/luci-app-cyberfeed/htdocs/luci-static/resources/cyberfeed/api.js +++ b/package/secubox/luci-app-cyberfeed/htdocs/luci-static/resources/cyberfeed/api.js @@ -84,13 +84,15 @@ return baseclass.extend({ getFeeds: function() { return callGetFeeds().then(function(res) { - return res.feeds || []; + // RPC expect already extracts feeds array, res IS the array + return Array.isArray(res) ? res : (res.feeds || []); }); }, getItems: function() { return callGetItems().then(function(res) { - return res.items || []; + // RPC expect already extracts items array, res IS the array + return Array.isArray(res) ? res : (res.items || []); }); }, diff --git a/package/secubox/secubox-app-cyberfeed/files/usr/bin/cyberfeed b/package/secubox/secubox-app-cyberfeed/files/usr/bin/cyberfeed index e11a2f5..a6ffc5d 100644 --- a/package/secubox/secubox-app-cyberfeed/files/usr/bin/cyberfeed +++ b/package/secubox/secubox-app-cyberfeed/files/usr/bin/cyberfeed @@ -231,11 +231,10 @@ parse_rss() { ' } -# === TIMELINE HTML GENERATOR === +# === TIMELINE HTML GENERATOR (Star Wars Crawl Style) === generate_timeline() { local json_file="$1" local output_file="${OUTPUT_DIR}/timeline.html" - local timestamp=$(date '+%Y-%m-%d %H:%M:%S') cat > "$output_file" << 'TIMELINEHTML' @@ -243,185 +242,444 @@ generate_timeline() {
-Chronological Feed History
-Loading timeline...
+ + ++ Initializing neural feed matrix... +
+