mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
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>
55 lines
1.5 KiB
QML
55 lines
1.5 KiB
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import QmlComponents 1.0
|
|
|
|
CCard {
|
|
id: root
|
|
|
|
// ── Data properties ──
|
|
property int tenantCount: 0
|
|
property int godUserCount: 0
|
|
property int pendingTransferCount: 0
|
|
|
|
// ── Navigation signals ──
|
|
signal navigateToLevel(int level)
|
|
|
|
FlexRow {
|
|
Layout.fillWidth: true
|
|
spacing: 12
|
|
|
|
CText { variant: "h2"; text: "Super God Panel" }
|
|
CBadge { text: "Level 5"; badgeColor: Theme.primary }
|
|
CStatusBadge { status: "success"; text: "Platform Control" }
|
|
|
|
Item { Layout.fillWidth: true }
|
|
|
|
CButton {
|
|
text: "Level 4"; variant: "ghost"; size: "sm"
|
|
onClicked: root.navigateToLevel(4)
|
|
}
|
|
CButton {
|
|
text: "Level 3"; variant: "ghost"; size: "sm"
|
|
onClicked: root.navigateToLevel(3)
|
|
}
|
|
CButton {
|
|
text: "Level 2"; variant: "ghost"; size: "sm"
|
|
onClicked: root.navigateToLevel(2)
|
|
}
|
|
}
|
|
|
|
CDivider { Layout.fillWidth: true }
|
|
|
|
FlexRow {
|
|
Layout.fillWidth: true
|
|
spacing: 8
|
|
CChip { text: root.tenantCount + " Tenants"; chipColor: Theme.primary }
|
|
CChip { text: root.godUserCount + " God Users"
|
|
chipColor: Theme.primary }
|
|
CChip { text: root.pendingTransferCount + " Pending Transfers"
|
|
chipColor: Theme.warning }
|
|
CChip { text: "14 DB Backends"; chipColor: Theme.info }
|
|
CChip { text: "4 Daemons"; chipColor: Theme.success }
|
|
}
|
|
}
|