Files
metabuilder/qml/MetaBuilder/LuaSecurityPanel.qml
johndoe6345789 6e394d7846 style(qt6): 80-char margin enforced — 737 violations → 29 remaining
191 files reformatted across views, components, widgets, hybrid, contexts.
New components: CCreateSchemaDialog, CAddFieldDialog, CAdminContentPanel.
JS helpers: connBadgeStatus/Text, adminStats, exampleLabels, onLevelClicked.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 15:48:39 +00:00

36 lines
1.0 KiB
QML

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import QmlComponents 1.0
ColumnLayout {
Layout.preferredWidth: 200
Layout.fillHeight: true
spacing: 8
property string securityScanResult: ""
CText { variant: "h4"; text: "Security" }
CAlert {
Layout.fillWidth: true
severity: securityScanResult
? (securityScanResult.indexOf("WARN") !== -1 ? "warning" :
"success")
: "info"
text: securityScanResult
? (securityScanResult.indexOf("WARN") !== -1 ? "Advisories found"
: "All checks passed")
: "Not scanned yet"
}
CText { variant: "caption"; text: "SCAN CHECKS" }
CText { variant: "body2"; text: "os.execute() calls" }
CText { variant: "body2"; text: "Raw SQL injection" }
CText { variant: "body2"; text: "File system access" }
CText { variant: "body2"; text: "Global pollution" }
CText { variant: "body2"; text: "Unsafe concat" }
Item { Layout.fillHeight: true }
}