all repos — elgit @ d11c34e5b61195bd7279d1015b302bac418d455a

fork of legit: web frontend for git, written in go

move package domain to alin.ovh

Alan Pearce
commit

d11c34e5b61195bd7279d1015b302bac418d455a

parent

c10b15a75fb16832a4e2162c4adddf5519aa9659

M go.modgo.mod
@@ -1,8 +1,9 @@
-module go.alanpearce.eu/elgit +module alin.ovh/elgit go 1.24.0 require ( + alin.ovh/gomponents v1.6.0 github.com/alecthomas/chroma/v2 v2.15.0 github.com/bluekeyes/go-gitdiff v0.8.1 github.com/cyphar/filepath-securejoin v0.4.1
@@ -12,7 +13,6 @@ github.com/fsnotify/fsnotify v1.9.0
github.com/go-git/go-git/v5 v5.14.0 github.com/microcosm-cc/bluemonday v1.0.27 github.com/russross/blackfriday/v2 v2.1.0 - go.alanpearce.eu/gomponents v1.4.0 golang.org/x/sys v0.31.0 gopkg.in/yaml.v3 v3.0.1 )
M go.sumgo.sum
@@ -1,3 +1,5 @@
+alin.ovh/gomponents v1.6.0 h1:ymFYykOwMSG63dQ8bQZ4U0611zkDEzVNMOpKQSwwFjE= +alin.ovh/gomponents v1.6.0/go.mod h1:RQtPwKzGB0Nt1JTBDSqRzH2w/mg/6PkuhnNvQMV0/AQ= dario.cat/mergo v1.0.1 h1:Ra4+bf83h2ztPIQYNP99R6m+Y7KfnARDfID+a+vLl4s= dario.cat/mergo v1.0.1/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= github.com/Microsoft/go-winio v0.5.2/go.mod h1:WpS1mjBmmwHBEWmogvA2mj8546UReBk4v8QkMxJ6pZY=
@@ -93,8 +95,6 @@ github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= -go.alanpearce.eu/gomponents v1.4.0 h1:Ibvoce+U0rnPKlDOE+wXDbNniNQL8mYO667+qS5J1Go= -go.alanpearce.eu/gomponents v1.4.0/go.mod h1:WxD+6FRSvwThQOzV0r6zPAA9CRb41lutUZMSC7r6BRc= golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34= golang.org/x/crypto v0.36.0/go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc=
M main.gomain.go
@@ -7,8 +7,8 @@ "net"
"net/http" "strconv" - "go.alanpearce.eu/elgit/config" - "go.alanpearce.eu/elgit/routes" + "alin.ovh/elgit/config" + "alin.ovh/elgit/routes" ) func main() {
M nix/gomod2nix.tomlnix/gomod2nix.toml
@@ -1,6 +1,9 @@
schema = 3 [mod] + [mod."alin.ovh/gomponents"] + version = "v1.6.0" + hash = "sha256-vJLon9M6x/akEnQu+vK0RuzVyy/9vOnWGzp5DSS6brU=" [mod."dario.cat/mergo"] version = "v1.0.1" hash = "sha256-wcG6+x0k6KzOSlaPA+1RFxa06/RIAePJTAjjuhLbImw="
@@ -79,9 +82,6 @@ hash = "sha256-kjqQDzuncQNTuOYegqVZExwuOt/Z73m2ST7NZFEKixI="
[mod."github.com/xanzy/ssh-agent"] version = "v0.3.3" hash = "sha256-l3pGB6IdzcPA/HLk93sSN6NM2pKPy+bVOoacR5RC2+c=" - [mod."go.alanpearce.eu/gomponents"] - version = "v1.4.0" - hash = "sha256-Q8YN8eNouMnW/JaBJpjUmaOZ5cfBj5gFURgVlbnaiDM=" [mod."golang.org/x/crypto"] version = "v0.36.0" hash = "sha256-Np+suvZdMOXALDm4m8nDNa+QsvUV0rE0PEINuxCoKGM="
M nix/package/default.nixnix/package/default.nix
@@ -21,8 +21,6 @@
src = ../..; modules = ../gomod2nix.toml; - vendorHash = "sha256-NrJXVOfWcxm9Jt6++d2x2uS5AGEJ7plJK4ZnbFC4GTg="; - postInstall = '' mkdir -p $out/lib/elgit/templates mkdir -p $out/lib/elgit/static
M routes/git.goroutes/git.go
@@ -7,7 +7,7 @@ "log"
"net/http" "path" - "go.alanpearce.eu/elgit/git/service" + "alin.ovh/elgit/git/service" ) func (d *deps) InfoRefs(w http.ResponseWriter, r *http.Request, params map[string]string) {
M routes/handler.goroutes/handler.go
@@ -10,7 +10,7 @@
"github.com/dimfeld/httptreemux/v5" "github.com/fsnotify/fsnotify" - "go.alanpearce.eu/elgit/config" + "alin.ovh/elgit/config" ) // Checks for gitprotocol-http(5) specific smells; if found, passes
M routes/routes.goroutes/routes.go
@@ -14,9 +14,9 @@ securejoin "github.com/cyphar/filepath-securejoin"
"github.com/dimfeld/httptreemux/v5" "github.com/microcosm-cc/bluemonday" "github.com/russross/blackfriday/v2" - "go.alanpearce.eu/elgit/config" - "go.alanpearce.eu/elgit/git" - "go.alanpearce.eu/elgit/templates" + "alin.ovh/elgit/config" + "alin.ovh/elgit/git" + "alin.ovh/elgit/templates" ) type deps struct {
M routes/template.goroutes/template.go
@@ -10,8 +10,8 @@
"github.com/alecthomas/chroma/v2/formatters/html" "github.com/alecthomas/chroma/v2/lexers" "github.com/alecthomas/chroma/v2/styles" - "go.alanpearce.eu/elgit/git" - "go.alanpearce.eu/elgit/templates" + "alin.ovh/elgit/git" + "alin.ovh/elgit/templates" ) func (d *deps) Write404(w http.ResponseWriter) {
M routes/util.goroutes/util.go
@@ -11,8 +11,8 @@ "strings"
securejoin "github.com/cyphar/filepath-securejoin" "github.com/dimfeld/httptreemux/v5" - "go.alanpearce.eu/elgit/data" - "go.alanpearce.eu/elgit/git" + "alin.ovh/elgit/data" + "alin.ovh/elgit/git" ) func isGoModule(gr *git.GitRepo) bool {
M templates/commit.gotemplates/commit.go
@@ -7,9 +7,9 @@
"github.com/bluekeyes/go-gitdiff/gitdiff" "github.com/dustin/go-humanize" "github.com/go-git/go-git/v5/plumbing/object" - "go.alanpearce.eu/elgit/git" - g "go.alanpearce.eu/gomponents" - . "go.alanpearce.eu/gomponents/html" + "alin.ovh/elgit/git" + g "alin.ovh/gomponents" + . "alin.ovh/gomponents/html" ) // CommitPage renders a commit diff page
M templates/errors.gotemplates/errors.go
@@ -1,8 +1,8 @@
package templates import ( - g "go.alanpearce.eu/gomponents" - . "go.alanpearce.eu/gomponents/html" + g "alin.ovh/gomponents" + . "alin.ovh/gomponents/html" ) func NotFoundPage(data PageData) g.Node {
M templates/file.gotemplates/file.go
@@ -3,8 +3,8 @@
import ( "fmt" - g "go.alanpearce.eu/gomponents" - . "go.alanpearce.eu/gomponents/html" + g "alin.ovh/gomponents" + . "alin.ovh/gomponents/html" ) // FilePage renders a file view page
M templates/index.gotemplates/index.go
@@ -4,10 +4,10 @@ import (
"time" "github.com/dustin/go-humanize" - "go.alanpearce.eu/elgit/data" - g "go.alanpearce.eu/gomponents" - c "go.alanpearce.eu/gomponents/components" - . "go.alanpearce.eu/gomponents/html" + "alin.ovh/elgit/data" + g "alin.ovh/gomponents" + c "alin.ovh/gomponents/components" + . "alin.ovh/gomponents/html" ) func IndexPage(pd PageData, entries *data.Entries) g.Node {
M templates/log.gotemplates/log.go
@@ -5,9 +5,9 @@ "fmt"
"strings" "github.com/go-git/go-git/v5/plumbing" - "go.alanpearce.eu/elgit/git" - g "go.alanpearce.eu/gomponents" - . "go.alanpearce.eu/gomponents/html" + "alin.ovh/elgit/git" + g "alin.ovh/gomponents" + . "alin.ovh/gomponents/html" ) // LogPage renders the commit log page
M templates/page.gotemplates/page.go
@@ -4,11 +4,11 @@ import (
"fmt" "strings" - "go.alanpearce.eu/elgit/config" - "go.alanpearce.eu/elgit/git" - g "go.alanpearce.eu/gomponents" - c "go.alanpearce.eu/gomponents/components" - . "go.alanpearce.eu/gomponents/html" + "alin.ovh/elgit/config" + "alin.ovh/elgit/git" + g "alin.ovh/gomponents" + c "alin.ovh/gomponents/components" + . "alin.ovh/gomponents/html" ) type PageData struct {
M templates/refs.gotemplates/refs.go
@@ -4,9 +4,9 @@ import (
"fmt" "github.com/go-git/go-git/v5/plumbing" - "go.alanpearce.eu/elgit/git" - g "go.alanpearce.eu/gomponents" - . "go.alanpearce.eu/gomponents/html" + "alin.ovh/elgit/git" + g "alin.ovh/gomponents" + . "alin.ovh/gomponents/html" ) // RefsPage renders the repository references page
M templates/repo.gotemplates/repo.go
@@ -3,9 +3,9 @@
import ( "fmt" - "go.alanpearce.eu/elgit/git" - g "go.alanpearce.eu/gomponents" - . "go.alanpearce.eu/gomponents/html" + "alin.ovh/elgit/git" + g "alin.ovh/gomponents" + . "alin.ovh/gomponents/html" ) // RepoPage renders the repository summary page
M templates/tree.gotemplates/tree.go
@@ -3,9 +3,9 @@
import ( "fmt" - "go.alanpearce.eu/elgit/git" - g "go.alanpearce.eu/gomponents" - . "go.alanpearce.eu/gomponents/html" + "alin.ovh/elgit/git" + g "alin.ovh/gomponents" + . "alin.ovh/gomponents/html" ) // TreePage renders a repository file tree view