+30
appview/db/db.go
+30
appview/db/db.go
······
······
+179
appview/db/issues.go
+179
appview/db/issues.go
···
···+rows, err := d.db.Query(`select owner_did, issue_id, created, title, body, open from issues where repo_at = ?`, repoAt)+err := rows.Scan(&issue.OwnerDid, &issue.IssueId, &createdAt, &issue.Title, &issue.Body, &issue.Open)+query := `select owner_did, issue_id, created, title, body, open from issues where repo_at = ? and issue_id = ?`+err := row.Scan(&issue.OwnerDid, &issue.IssueId, &createdAt, &issue.Title, &issue.Body, &issue.Open)+query := `insert into comments (owner_did, repo_at, issue_id, comment_id, body) values (?, ?, ?, ?, ?)`+rows, err := d.db.Query(`select owner_did, issue_id, comment_id, body, created from comments where repo_at = ? and issue_id = ? order by created asc`, repoAt, issueId)+err := rows.Scan(&comment.OwnerDid, &comment.Issue, &comment.CommentId, &comment.Body, &createdAt)+_, err := d.db.Exec(`update issues set open = 0 where repo_at = ? and issue_id = ?`, repoAt, issueId)+_, err := d.db.Exec(`update issues set open = 1 where repo_at = ? and issue_id = ?`, repoAt, issueId)
+4
-3
appview/db/repos.go
+4
-3
appview/db/repos.go
······-row := d.db.QueryRow(`select did, name, knot, created from repos where did = ? and name = ?`, did, name)···-_, err := d.db.Exec(`insert into repos (did, name, knot, rkey) values (?, ?, ?, ?)`, repo.Did, repo.Name, repo.Knot, repo.Rkey)
······+row := d.db.QueryRow(`select did, name, knot, created, at_uri from repos where did = ? and name = ?`, did, name)···+_, err := d.db.Exec(`insert into repos (did, name, knot, rkey, at_uri) values (?, ?, ?, ?, ?)`, repo.Did, repo.Name, repo.Knot, repo.Rkey, repo.AtUri)
+47
appview/pages/pages.go
+47
appview/pages/pages.go
······
······
+4
-4
appview/pages/templates/repo/empty.html
+4
-4
appview/pages/templates/repo/empty.html
+168
-142
appview/pages/templates/repo/index.html
+168
-142
appview/pages/templates/repo/index.html
······-<a href="/{{ $.RepoInfo.FullName }}/commit/{{ .Hash.String }}" class="inline no-underline hover:underline">{{ index $messageParts 0 }}</a>-<p class="hidden mt-1 text-sm cursor-text pb-2">{{ nl2br (unwrapText (index $messageParts 1)) }}</p>
······
+107
appview/pages/templates/repo/issue.html
+107
appview/pages/templates/repo/issue.html
···
···
+48
appview/pages/templates/repo/issues.html
+48
appview/pages/templates/repo/issues.html
···
···
+30
appview/pages/templates/repo/new-issue.html
+30
appview/pages/templates/repo/new-issue.html
···
···
+1
appview/state/middleware.go
+1
appview/state/middleware.go
+239
appview/state/repo.go
+239
appview/state/repo.go
············
·········+s.pages.HxLocation(w, fmt.Sprintf("/%s/issues/%d#comment-%d", f.OwnerSlashRepo(), issueIdInt, commentId))···
+12
-1
appview/state/state.go
+12
-1
appview/state/state.go
·········
·········
+1
go.mod
+1
go.mod
+2
go.sum
+2
go.sum
···golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
···+golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 h1:LoYXNGAShUG3m/ehNk4iFctuhGX/+R1ZpfJ4/ia80JM=+golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI=golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=