@startup-api/cloudflare 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/users/profile.html +2 -1
- package/src/handlers/ssr.ts +6 -2
package/package.json
CHANGED
|
@@ -451,7 +451,8 @@
|
|
|
451
451
|
}
|
|
452
452
|
function credentialIdentifier(c) {
|
|
453
453
|
if (c.provider === 'atproto') {
|
|
454
|
-
|
|
454
|
+
if (!c.handle) return c.subject_id;
|
|
455
|
+
return `<span style="font-size: 1.05rem; font-weight: 600;">@${c.handle}</span> <span style="opacity: 0.6;">(${c.subject_id})</span>`;
|
|
455
456
|
}
|
|
456
457
|
return c.email || c.subject_id;
|
|
457
458
|
}
|
package/src/handlers/ssr.ts
CHANGED
|
@@ -214,10 +214,14 @@ function providerLabel(provider: string): string {
|
|
|
214
214
|
return provider.charAt(0).toUpperCase() + provider.slice(1);
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
-
/**
|
|
217
|
+
/**
|
|
218
|
+
* The identifier shown under the provider name. atproto emphasizes the handle (larger, with an `@`)
|
|
219
|
+
* and de-emphasizes the DID in parentheses.
|
|
220
|
+
*/
|
|
218
221
|
function credentialIdentifier(c: any): string {
|
|
219
222
|
if (c.provider === 'atproto') {
|
|
220
|
-
|
|
223
|
+
if (!c.handle) return c.subject_id;
|
|
224
|
+
return `<span style="font-size: 1.05rem; font-weight: 600;">@${c.handle}</span> <span style="opacity: 0.6;">(${c.subject_id})</span>`;
|
|
221
225
|
}
|
|
222
226
|
return c.email || c.subject_id;
|
|
223
227
|
}
|