style(cliproxy): fix formatting in cli command and ui page

This commit is contained in:
kaitranntt
2025-12-07 20:33:28 -05:00
parent a283f942a9
commit db68cf06af
2 changed files with 9 additions and 6 deletions
+7 -5
View File
@@ -366,12 +366,14 @@ async function handleList(): Promise<void> {
for (const status of authStatuses) {
const oauthConfig = getOAuthConfig(status.provider);
const icon = status.authenticated ? ok('') : warn('');
const authLabel = status.authenticated ? color('authenticated', 'success') : dim('not authenticated');
const lastAuthStr = status.lastAuth
? dim(` (${status.lastAuth.toLocaleDateString()})`)
: '';
const authLabel = status.authenticated
? color('authenticated', 'success')
: dim('not authenticated');
const lastAuthStr = status.lastAuth ? dim(` (${status.lastAuth.toLocaleDateString()})`) : '';
console.log(` ${icon} ${color(status.provider, 'command').padEnd(18)} ${oauthConfig.displayName.padEnd(16)} ${authLabel}${lastAuthStr}`);
console.log(
` ${icon} ${color(status.provider, 'command').padEnd(18)} ${oauthConfig.displayName.padEnd(16)} ${authLabel}${lastAuthStr}`
);
}
console.log('');
console.log(dim(' To authenticate: ccs <provider> --auth'));
+2 -1
View File
@@ -68,7 +68,8 @@ export function CliproxyPage() {
<>
Not authenticated
<span className="block text-xs mt-1">
Run: <code className="bg-muted px-1 rounded">ccs {status.provider} --auth</code>
Run:{' '}
<code className="bg-muted px-1 rounded">ccs {status.provider} --auth</code>
</span>
</>
)}