From b70e5b2f387e8de6dac5d388aee1ccbf5b217adc Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 26 Aug 2025 18:24:46 +0300 Subject: Add verification checkmarks to `embed.bsky.app` (#8644) * update vite+typescript * update atproto api to latest, split out utils * add checkmark to post * add checkie to embed * revert change to example post * fix ext link color --- bskyembed/src/utils.ts | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 bskyembed/src/utils.ts (limited to 'bskyembed/src/utils.ts') diff --git a/bskyembed/src/utils.ts b/bskyembed/src/utils.ts deleted file mode 100644 index cfa4a525b..000000000 --- a/bskyembed/src/utils.ts +++ /dev/null @@ -1,28 +0,0 @@ -import {AtUri} from '@atproto/api' - -export function niceDate(date: number | string | Date) { - const d = new Date(date) - return `${d.toLocaleDateString('en-us', { - year: 'numeric', - month: 'short', - day: 'numeric', - })} at ${d.toLocaleTimeString(undefined, { - hour: 'numeric', - minute: '2-digit', - })}` -} - -export function getRkey({uri}: {uri: string}): string { - const at = new AtUri(uri) - return at.rkey -} - -const formatter = new Intl.NumberFormat('en-US', { - notation: 'compact', - maximumFractionDigits: 1, - roundingMode: 'trunc', -}) - -export function prettyNumber(number: number) { - return formatter.format(number) -} -- cgit 1.4.1