Skip to content

Commit

Permalink
Removed submitted and threads of users.
Browse files Browse the repository at this point in the history
  • Loading branch information
joeychilson committed Dec 23, 2023
1 parent d2a9969 commit b790646
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 358 deletions.
107 changes: 0 additions & 107 deletions handlers/submitted.go

This file was deleted.

126 changes: 0 additions & 126 deletions handlers/threads.go

This file was deleted.

2 changes: 0 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ func main() {
mux.HandleFunc("/newest", handlers.HandleNewest(client))
mux.HandleFunc("/news", handlers.HandleNews(client))
mux.HandleFunc("/show", handlers.HandleShow(client))
mux.HandleFunc("/submitted", handlers.HandleSubmitted(client))
mux.HandleFunc("/threads", handlers.HandleThreads(client))
mux.HandleFunc("/user", handlers.HandleUser(client))

log.Println("Listening on http://localhost:8080")
Expand Down
8 changes: 5 additions & 3 deletions pages/user.templ
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ templ User(props UserProps) {
<span class="text-sm text-gray-600">| { strconv.Itoa(len(props.User.Submitted)) } submitted</span>
</div>
<div class="mb-4">
<span class="text-sm text-gray-600">{ props.User.About }</span>
<span class="text-sm text-gray-600">
@components.UnescapedText(props.User.About)
</span>
</div>
<div class="mt-2">
<a href={ templ.URL(fmt.Sprintf("/submitted?id=%v", props.User.ID)) } class="underline text-blue-600">submitted</a>
<a href={ templ.URL(fmt.Sprintf("https://news.ycombinator.com/submitted?id=%s", props.User.ID)) } class="underline text-blue-600">submitted</a>
</div>
<div class="mt-2">
<a href={ templ.URL(fmt.Sprintf("/threads?id=%v", props.User.ID)) } class="underline text-blue-600">comments</a>
<a href={ templ.URL(fmt.Sprintf("https://news.ycombinator.com/threads?id=%s", props.User.ID)) } class="underline text-blue-600">comments</a>
</div>
</div>
</div>
Expand Down
29 changes: 0 additions & 29 deletions pages/user_comments.templ

This file was deleted.

81 changes: 0 additions & 81 deletions pages/user_comments_templ.go

This file was deleted.

Loading

0 comments on commit b790646

Please sign in to comment.