-122
auth/auth.go
-122
auth/auth.go
···-func (a *Auth) CreateInitialSession(w http.ResponseWriter, r *http.Request, username, appPassword string) (AtSessionCreate, error) {-atSession, err := comatproto.ServerCreateSession(ctx, &client, &comatproto.ServerCreateSession_Input{-func (a *Auth) StoreSession(r *http.Request, w http.ResponseWriter, atSessionCreate *AtSessionCreate, atSessionRefresh *AtSessionRefresh) error {
···
-15
auth/types.go
-15
auth/types.go
···
···
-47
cmd/legit/main.go
-47
cmd/legit/main.go
···
···
-61
config/config.go
-61
config/config.go
···
···
-22
contrib/Dockerfile
-22
contrib/Dockerfile
···
···
-14
contrib/docker-compose.yml
-14
contrib/docker-compose.yml
···
···
-17
contrib/legit.service
-17
contrib/legit.service
···
···
-80
db/access.go
-80
db/access.go
···-func (d *DB) SetAccessLevel(userDid string, repoDid string, repoName string, level Level) error {
···
-51
db/init.go
-51
db/init.go
···
···
-70
db/pubkeys.go
-70
db/pubkeys.go
···-if err := rows.Scan(&publicKey.Key, &publicKey.Name, &publicKey.DID, &publicKey.Created); err != nil {-if err := rows.Scan(&publicKey.DID, &publicKey.Key, &publicKey.Name, &publicKey.Created); err != nil {
···
-25
db/repo.go
-25
db/repo.go
···-_, err := d.db.Exec("insert into repos (did, name, description) values (?, ?, ?)", did, name, description)-_, err := d.db.Exec("update repos set name = ?, description = ? where did = ?", name, description, did)
···
-119
git/diff.go
-119
git/diff.go
···
···
-345
git/git.go
-345
git/git.go
···
···
-33
git/repo.go
-33
git/repo.go
···
···
-121
git/service/service.go
-121
git/service/service.go
···
···
-25
git/service/write_flusher.go
-25
git/service/write_flusher.go
···
···
-66
git/tree.go
-66
git/tree.go
···
···
+1
-1
knotserver/routes.go
+1
-1
knotserver/routes.go
-35
routes/access.go
-35
routes/access.go
···
···
-72
routes/auth.go
-72
routes/auth.go
···-err = h.auth.StoreSession(r, w, nil, &rauth.AtSessionRefresh{ServerRefreshSession_Output: *atSession, PDSEndpoint: pdsUrl})
···
-122
routes/file.go
-122
routes/file.go
···-func (h *Handle) showFileWithHighlight(name, content string, data map[string]any, w http.ResponseWriter) {
···
-69
routes/git.go
-69
routes/git.go
···
···
-118
routes/handler.go
-118
routes/handler.go
···
···
-29
routes/html_util.go
-29
routes/html_util.go
···
···
-62
routes/internal.go
-62
routes/internal.go
···
···
-61
routes/middleware/did.go
-61
routes/middleware/did.go
···
···
-643
routes/routes.go
-643
routes/routes.go
···
···
-54
routes/tmpl/tmpl.go
-54
routes/tmpl/tmpl.go
···
···
-146
routes/util.go
-146
routes/util.go
···-err := filepath.WalkDir(d.c.Repo.ScanPath, func(path string, de fs.DirEntry, err error) error {-return strings.TrimPrefix(filepath.Dir(strings.TrimPrefix(path, d.c.Repo.ScanPath)), string(os.PathSeparator))
···
static/legit.png
static/legit.png
This is a binary file and will not be displayed.
-341
static/style.css
-341
static/style.css
···
···
-10
templates/errors/404.html
-10
templates/errors/404.html
-10
templates/errors/500.html
-10
templates/errors/500.html
-21
templates/index.html
-21
templates/index.html
···
···
-37
templates/layouts/head.html
-37
templates/layouts/head.html
···
···
-12
templates/layouts/nav.html
-12
templates/layouts/nav.html
···
···
-9
templates/layouts/repo-header.html
-9
templates/layouts/repo-header.html
-12
templates/layouts/topbar.html
-12
templates/layouts/topbar.html
-100
templates/repo/commit.html
-100
templates/repo/commit.html
···-{{ .commit.Author.Name }} <a href="mailto:{{ .commit.Author.Email }}" class="commit-email">{{ .commit.Author.Email}}</a>
···
-9
templates/repo/empty.html
-9
templates/repo/empty.html
-34
templates/repo/file.html
-34
templates/repo/file.html
···
···
-23
templates/repo/log.html
-23
templates/repo/log.html
···-<div><a href="/{{ $repo }}/commit/{{ .Hash.String }}" class="commit-hash">{{ slice .Hash.String 0 8 }}</a></div>-{{ .Author.Name }} <a href="mailto:{{ .Author.Email }}" class="commit-email">{{ .Author.Email }}</a>
···
-30
templates/repo/new.html
-30
templates/repo/new.html
···
···
-38
templates/repo/refs.html
-38
templates/repo/refs.html
···
···
-36
templates/repo/repo.html
-36
templates/repo/repo.html
···-<div><a href="/{{ $repo }}/commit/{{ .Hash.String }}" class="commit-hash">{{ slice .Hash.String 0 8 }}</a></div>-{{ .Author.Name }} <a href="mailto:{{ .Author.Email }}" class="commit-email">{{ .Author.Email }}</a>
···
-53
templates/repo/tree.html
-53
templates/repo/tree.html
···
···
-51
templates/settings/keys.html
-51
templates/settings/keys.html
···
···
-14
templates/timeline.html
-14
templates/timeline.html
-29
templates/user/login.html
-29
templates/user/login.html
···
···