Skip to content

Commit ee45d2f

Browse files
committed
chore: clean up unused code and console logs
1 parent 4186d64 commit ee45d2f

File tree

5 files changed

+2
-40
lines changed

5 files changed

+2
-40
lines changed

app/components/BlogPost.server.vue

Lines changed: 0 additions & 27 deletions
This file was deleted.

app/components/BlueskyComments.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const postUrl = computed(() => data.value?.postUrl)
4141
</li>
4242
<li
4343
v-if="totalLikes > likes.length"
44-
class="flex items-center text-fg-muted text-sm m-0 p-0 pl-2"
44+
class="flex items-center text-fg-muted text-sm m-0 p-0 ps-2"
4545
>
4646
<a
4747
v-if="postUrl"

app/utils/bluesky.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export function atUriToWebUrl(atUri: string): string | null {
22
// Convert AT URI to bsky.app URL
33
// at://did:plc:xxx/app.bsky.feed.post/rkey -> https://bsky.app/profile/did:plc:xxx/post/rkey
4-
const match = atUri.match(/at:\/\/([^/]+)\/app\.bsky\.feed\.post\/(.+)/)
4+
const match = atUri.match(AT_URI_REGEX)
55
if (!match) return null
66
const [, did, rkey] = match
77
return `https://bsky.app/profile/${did}/post/${rkey}`

modules/standard-site-sync.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,5 @@ const syncFile = async (filePath: string, siteUrl: string, client: Client) => {
130130
rkey: tid.str,
131131
})
132132

133-
// TODO: Replace with real PDS push
134-
console.log('[standard-site-sync] Pushing:', JSON.stringify(document, null, 2))
135-
136133
syncedDocuments.set(data.path, hash)
137134
}

shared/types/blog-post.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@ import type {
55
AppBskyEmbedExternal,
66
} from '@atproto/api'
77

8-
export interface BlogPost {
9-
author: string // Potentially Multiple?
10-
title: string
11-
topics: string[]
12-
content: string // MarkDown File
13-
published: string // DateTime
14-
}
15-
168
export interface CommentEmbed {
179
type: 'images' | 'external'
1810
images?: AppBskyEmbedImages.ViewImage[]

0 commit comments

Comments
 (0)