mirror of
https://github.com/tiennm99/ccs.git
synced 2026-08-14 14:25:20 +00:00
style(cliproxy): fix formatting in cli command and ui page
This commit is contained in:
@@ -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'));
|
||||
|
||||
@@ -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>
|
||||
</>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user