about summary refs log tree commit diff
path: root/bskyembed/src/utils.ts
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-08-26 18:24:46 +0300
committerGitHub <noreply@github.com>2025-08-26 08:24:46 -0700
commitb70e5b2f387e8de6dac5d388aee1ccbf5b217adc (patch)
treee540d731ec004e58e1280c6382b00b6947d03e63 /bskyembed/src/utils.ts
parent5a074fa37acafb0cf11acbdd0a931411b1c63aa2 (diff)
downloadvoidsky-b70e5b2f387e8de6dac5d388aee1ccbf5b217adc.tar.zst
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
Diffstat (limited to 'bskyembed/src/utils.ts')
-rw-r--r--bskyembed/src/utils.ts28
1 files changed, 0 insertions, 28 deletions
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)
-}