fix: apply theme colors to all admin pages

AdminDashboard:
- Replace all gray colors with theme variables
- Indonesian text: 'Selamat datang', 'Kelola Plans', etc.
- Loading: 'Memuat...'

AdminPlans:
- bg-card, text-foreground, border-border
- text-muted-foreground for secondary text
- bg-muted for sections
- text-primary for links/icons
- text-destructive for delete
- Indonesian: 'Kelola Plans', 'Tambah Plan', 'Tidak ada plan'

AdminUsers:
- Same theme color replacements
- Indonesian: 'Kelola Users', 'Tidak ada user'
- bg-primary for avatars
- Consistent hover states

All pages now:
 Respect light/dark mode
 Use @theme colors from index.css
 Indonesian text (keeping English tech terms)
 Consistent with member layout styling
This commit is contained in:
dwindown
2025-10-11 20:18:10 +07:00
parent 4bd95e50e8
commit 50ce884a43
13 changed files with 328 additions and 239 deletions

View File

@@ -20,6 +20,7 @@ export declare class AuthController {
name: string | null;
avatarUrl: string | null;
emailVerified: boolean;
role: string;
};
token: string;
}>;
@@ -43,6 +44,7 @@ export declare class AuthController {
name: string | null;
avatarUrl: string | null;
emailVerified: boolean;
role: string;
};
token: string;
requiresOtp?: undefined;
@@ -60,6 +62,7 @@ export declare class AuthController {
name: string | null;
avatarUrl: string | null;
emailVerified: boolean;
role: string;
};
token: string;
}>;
@@ -71,6 +74,7 @@ export declare class AuthController {
emailVerified: boolean;
name: string | null;
avatarUrl: string | null;
role: string;
}>;
changePassword(req: RequestWithUser, body: {
currentPassword: string;

View File

@@ -13,6 +13,7 @@ export declare class AuthService {
name: string | null;
avatarUrl: string | null;
emailVerified: boolean;
role: string;
};
token: string;
}>;
@@ -33,6 +34,7 @@ export declare class AuthService {
name: string | null;
avatarUrl: string | null;
emailVerified: boolean;
role: string;
};
token: string;
requiresOtp?: undefined;
@@ -61,6 +63,7 @@ export declare class AuthService {
name: string | null;
avatarUrl: string | null;
emailVerified: boolean;
role: string;
};
token: string;
requiresOtp?: undefined;
@@ -74,6 +77,7 @@ export declare class AuthService {
name: string | null;
avatarUrl: string | null;
emailVerified: boolean;
role: string;
};
token: string;
}>;
@@ -85,6 +89,7 @@ export declare class AuthService {
emailVerified: boolean;
name: string | null;
avatarUrl: string | null;
role: string;
}>;
changePassword(userId: string, currentPassword: string, newPassword: string, isSettingPassword?: boolean): Promise<{
message: string;

View File

@@ -88,6 +88,7 @@ let AuthService = class AuthService {
name: user.name,
avatarUrl: user.avatarUrl,
emailVerified: user.emailVerified,
role: user.role,
},
token,
};
@@ -102,6 +103,7 @@ let AuthService = class AuthService {
name: true,
avatarUrl: true,
emailVerified: true,
role: true,
otpEmailEnabled: true,
otpWhatsappEnabled: true,
otpTotpEnabled: true,
@@ -150,6 +152,7 @@ let AuthService = class AuthService {
name: user.name,
avatarUrl: user.avatarUrl,
emailVerified: user.emailVerified,
role: user.role,
},
token,
};
@@ -254,6 +257,7 @@ let AuthService = class AuthService {
name: user.name,
avatarUrl: user.avatarUrl,
emailVerified: user.emailVerified,
role: user.role,
},
token,
};
@@ -313,6 +317,7 @@ let AuthService = class AuthService {
name: user.name,
avatarUrl: user.avatarUrl,
emailVerified: user.emailVerified,
role: user.role,
},
token,
};
@@ -340,6 +345,7 @@ let AuthService = class AuthService {
name: true,
avatarUrl: true,
emailVerified: true,
role: true,
},
});
if (!user) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long