feat(admin): read live back-office data in every console view
Models, pipelines, users, subscriptions, usage, audit log, ads, and releases still rendered placeholder or duplicated implementations from the earlier admin split. They now read the live back-office API, share one sidebar and console theme, and the license issuer dialog uses the rotated signing key.
This commit is contained in:
parent
cfc58458a8
commit
5aa268970a
23 changed files with 187 additions and 174 deletions
|
|
@ -94,8 +94,8 @@ function LoginForm(): React.ReactElement {
|
|||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
minHeight: '100vh',
|
||||
bgcolor: '#070b16',
|
||||
backgroundImage: 'radial-gradient(ellipse 60% 50% at 50% 40%, rgba(59, 130, 246, 0.15) 0%, transparent 80%)',
|
||||
bgcolor: 'var(--d3-bg-crtGlass)',
|
||||
backgroundImage: 'radial-gradient(ellipse 60% 50% at 50% 40%, var(--d3-accent-glow) 0%, transparent 80%)',
|
||||
p: 2,
|
||||
position: 'relative',
|
||||
overflow: 'hidden',
|
||||
|
|
@ -110,7 +110,7 @@ function LoginForm(): React.ReactElement {
|
|||
sx={{
|
||||
width: '100%',
|
||||
maxWidth: 440,
|
||||
boxShadow: '0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(59, 130, 246, 0.15)',
|
||||
boxShadow: '0 25px 60px var(--d3-scrim), 0 0 40px var(--d3-accent-glow)',
|
||||
}}
|
||||
>
|
||||
{/* Brand Header */}
|
||||
|
|
@ -120,15 +120,15 @@ function LoginForm(): React.ReactElement {
|
|||
width: 52,
|
||||
height: 52,
|
||||
borderRadius: '16px',
|
||||
background: 'linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%)',
|
||||
background: 'linear-gradient(135deg, var(--d3-tag-cyan) 0%, var(--d3-accent-main) 50%, var(--d3-tag-purple) 100%)',
|
||||
display: 'inline-flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
boxShadow: '0 0 25px rgba(59, 130, 246, 0.5)',
|
||||
boxShadow: '0 0 25px var(--d3-accent-glow)',
|
||||
mb: 2,
|
||||
}}
|
||||
>
|
||||
<LockOutlinedIcon sx={{ color: '#ffffff', fontSize: 28 }} />
|
||||
<LockOutlinedIcon sx={{ color: 'var(--d3-text-inverse)', fontSize: 28 }} />
|
||||
</Box>
|
||||
|
||||
<Typography
|
||||
|
|
@ -168,9 +168,9 @@ function LoginForm(): React.ReactElement {
|
|||
severity="error"
|
||||
sx={{
|
||||
mb: 2.5,
|
||||
bgcolor: 'rgba(239, 68, 68, 0.15)',
|
||||
color: '#fca5a5',
|
||||
border: '1px solid rgba(239, 68, 68, 0.3)',
|
||||
bgcolor: 'var(--d3-status-danger)',
|
||||
color: 'var(--d3-status-danger)',
|
||||
border: '1px solid var(--d3-status-danger)',
|
||||
borderRadius: '10px',
|
||||
fontFamily: FONT_SANS,
|
||||
fontSize: '12px',
|
||||
|
|
@ -193,7 +193,7 @@ function LoginForm(): React.ReactElement {
|
|||
autoComplete="email"
|
||||
sx={{
|
||||
'& .MuiOutlinedInput-root': {
|
||||
bgcolor: 'rgba(10, 17, 31, 0.8)',
|
||||
bgcolor: 'var(--d3-bg-inset-soft)',
|
||||
color: C.bright,
|
||||
borderRadius: '10px',
|
||||
fontFamily: FONT_SANS,
|
||||
|
|
@ -217,7 +217,7 @@ function LoginForm(): React.ReactElement {
|
|||
autoComplete="current-password"
|
||||
sx={{
|
||||
'& .MuiOutlinedInput-root': {
|
||||
bgcolor: 'rgba(10, 17, 31, 0.8)',
|
||||
bgcolor: 'var(--d3-bg-inset-soft)',
|
||||
color: C.bright,
|
||||
borderRadius: '10px',
|
||||
fontFamily: FONT_SANS,
|
||||
|
|
@ -260,7 +260,7 @@ function LoginForm(): React.ReactElement {
|
|||
sx={{
|
||||
borderColor: C.borderHl,
|
||||
color: C.bright,
|
||||
bgcolor: 'rgba(17, 26, 48, 0.5)',
|
||||
bgcolor: 'var(--d3-bg-card-soft)',
|
||||
borderRadius: '10px',
|
||||
fontFamily: FONT_SANS,
|
||||
fontSize: '13px',
|
||||
|
|
@ -269,7 +269,7 @@ function LoginForm(): React.ReactElement {
|
|||
py: 1.1,
|
||||
'&:hover': {
|
||||
borderColor: C.accentLight,
|
||||
bgcolor: 'rgba(26, 38, 68, 0.8)',
|
||||
bgcolor: 'var(--d3-bg-raised-soft)',
|
||||
},
|
||||
}}
|
||||
>
|
||||
|
|
@ -290,7 +290,7 @@ function LoginForm(): React.ReactElement {
|
|||
|
||||
export default function AdminLoginPage(): React.ReactElement {
|
||||
return (
|
||||
<Suspense fallback={<Box sx={{ minHeight: '100vh', bgcolor: '#070b16' }} />}>
|
||||
<Suspense fallback={<Box sx={{ minHeight: '100vh', bgcolor: 'var(--d3-bg-crtGlass)' }} />}>
|
||||
<LoginForm />
|
||||
</Suspense>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue