feat(site): implement dynamic site selection dropdown in sidebar and enable multi-site monitoring

This commit is contained in:
Rafif-Riqullah-Siregar committed 2026-07-13 16:57:45 +07:00
1 parent be6bc14190
commit 4882108068
125 files changed
+5666 -4305

No files matched your search

+2 -5
View File
@@ -228,11 +228,8 @@ module.exports = async function appDetailsHandler(req, res, helpers) {
// Enrich domain & protocol info from Flow if available
const flows = await Flow.find({
...baseFilter,
$or: [
{ app_label: label },
{ domain: { $regex: label.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), $options: 'i' } }
]
}).sort({ timestamp: -1 }).lean();
app_label: label
}).sort({ timestamp: -1 }).limit(100).lean();
flows.forEach(f => {
const ip = f.src_ip;