forked from tangled.org/core
this repo has no description

all: rename module to tangled.sh/tangled.sh/core

+1 -1
appview/auth/auth.go
···
"github.com/bluesky-social/indigo/atproto/identity"
"github.com/bluesky-social/indigo/xrpc"
"github.com/gorilla/sessions"
-
"github.com/sotangled/tangled/appview"
+
"tangled.sh/tangled.sh/core/appview"
)
type Auth struct {
+5 -5
appview/db/pulls.go
···
"github.com/bluekeyes/go-gitdiff/gitdiff"
"github.com/bluesky-social/indigo/atproto/syntax"
-
"github.com/sotangled/tangled/types"
+
"tangled.sh/tangled.sh/core/types"
)
type PullState int
···
rkey
from
pulls
-
where
+
where
repo_at = ? and pull_id = ?
`
row := e.QueryRow(query, repoAt, pullId)
···
submissionsQuery := `
select
id, pull_id, repo_at, round_number, patch, created
-
from
+
from
pull_submissions
where
repo_at = ? and pull_id = ?
···
}
inClause := strings.TrimSuffix(strings.Repeat("?, ", len(submissionsMap)), ", ")
commentsQuery := fmt.Sprintf(`
-
select
+
select
id,
pull_id,
submission_id,
···
pull_comments
where
submission_id IN (%s)
-
order by
+
order by
created asc
`, inClause)
commentsRows, err := e.Query(commentsQuery, args...)
+4 -4
appview/pages/pages.go
···
"github.com/alecthomas/chroma/v2/styles"
"github.com/bluesky-social/indigo/atproto/syntax"
"github.com/microcosm-cc/bluemonday"
-
"github.com/sotangled/tangled/appview/auth"
-
"github.com/sotangled/tangled/appview/db"
-
"github.com/sotangled/tangled/appview/state/userutil"
-
"github.com/sotangled/tangled/types"
+
"tangled.sh/tangled.sh/core/appview/auth"
+
"tangled.sh/tangled.sh/core/appview/db"
+
"tangled.sh/tangled.sh/core/appview/state/userutil"
+
"tangled.sh/tangled.sh/core/types"
)
//go:embed templates/* static
+3 -3
appview/state/follow.go
···
comatproto "github.com/bluesky-social/indigo/api/atproto"
lexutil "github.com/bluesky-social/indigo/lex/util"
-
tangled "github.com/sotangled/tangled/api/tangled"
-
"github.com/sotangled/tangled/appview/db"
-
"github.com/sotangled/tangled/appview/pages"
+
tangled "tangled.sh/tangled.sh/core/api/tangled"
+
"tangled.sh/tangled.sh/core/appview/db"
+
"tangled.sh/tangled.sh/core/appview/pages"
)
func (s *State) Follow(w http.ResponseWriter, r *http.Request) {
+2 -2
appview/state/jetstream.go
···
"github.com/bluesky-social/indigo/atproto/syntax"
"github.com/bluesky-social/jetstream/pkg/models"
-
tangled "github.com/sotangled/tangled/api/tangled"
-
"github.com/sotangled/tangled/appview/db"
+
tangled "tangled.sh/tangled.sh/core/api/tangled"
+
"tangled.sh/tangled.sh/core/appview/db"
)
type Ingester func(ctx context.Context, e *models.Event) error
+3 -3
appview/state/middleware.go
···
"github.com/bluesky-social/indigo/atproto/identity"
"github.com/bluesky-social/indigo/xrpc"
"github.com/go-chi/chi/v5"
-
"github.com/sotangled/tangled/appview"
-
"github.com/sotangled/tangled/appview/auth"
-
"github.com/sotangled/tangled/appview/db"
+
"tangled.sh/tangled.sh/core/appview"
+
"tangled.sh/tangled.sh/core/appview/auth"
+
"tangled.sh/tangled.sh/core/appview/db"
)
type Middleware func(http.Handler) http.Handler
+4 -4
appview/state/pull.go
···
"time"
"github.com/go-chi/chi/v5"
-
"github.com/sotangled/tangled/api/tangled"
-
"github.com/sotangled/tangled/appview/db"
-
"github.com/sotangled/tangled/appview/pages"
-
"github.com/sotangled/tangled/types"
+
"tangled.sh/tangled.sh/core/api/tangled"
+
"tangled.sh/tangled.sh/core/appview/db"
+
"tangled.sh/tangled.sh/core/appview/pages"
+
"tangled.sh/tangled.sh/core/types"
comatproto "github.com/bluesky-social/indigo/api/atproto"
lexutil "github.com/bluesky-social/indigo/lex/util"
+5 -5
appview/state/repo.go
···
"github.com/bluesky-social/indigo/atproto/syntax"
securejoin "github.com/cyphar/filepath-securejoin"
"github.com/go-chi/chi/v5"
-
"github.com/sotangled/tangled/api/tangled"
-
"github.com/sotangled/tangled/appview/auth"
-
"github.com/sotangled/tangled/appview/db"
-
"github.com/sotangled/tangled/appview/pages"
-
"github.com/sotangled/tangled/types"
+
"tangled.sh/tangled.sh/core/api/tangled"
+
"tangled.sh/tangled.sh/core/appview/auth"
+
"tangled.sh/tangled.sh/core/appview/db"
+
"tangled.sh/tangled.sh/core/appview/pages"
+
"tangled.sh/tangled.sh/core/types"
comatproto "github.com/bluesky-social/indigo/api/atproto"
lexutil "github.com/bluesky-social/indigo/lex/util"
+3 -3
appview/state/repo_util.go
···
"github.com/bluesky-social/indigo/atproto/syntax"
"github.com/go-chi/chi/v5"
"github.com/go-git/go-git/v5/plumbing/object"
-
"github.com/sotangled/tangled/appview/auth"
-
"github.com/sotangled/tangled/appview/db"
-
"github.com/sotangled/tangled/appview/pages"
+
"tangled.sh/tangled.sh/core/appview/auth"
+
"tangled.sh/tangled.sh/core/appview/db"
+
"tangled.sh/tangled.sh/core/appview/pages"
)
func fullyResolvedRepo(r *http.Request) (*FullyResolvedRepo, error) {
+1 -1
appview/state/router.go
···
"strings"
"github.com/go-chi/chi/v5"
-
"github.com/sotangled/tangled/appview/state/userutil"
+
"tangled.sh/tangled.sh/core/appview/state/userutil"
)
func (s *State) Router() http.Handler {
+4 -4
appview/state/settings.go
···
lexutil "github.com/bluesky-social/indigo/lex/util"
"github.com/gliderlabs/ssh"
"github.com/google/uuid"
-
"github.com/sotangled/tangled/api/tangled"
-
"github.com/sotangled/tangled/appview/db"
-
"github.com/sotangled/tangled/appview/email"
-
"github.com/sotangled/tangled/appview/pages"
+
"tangled.sh/tangled.sh/core/api/tangled"
+
"tangled.sh/tangled.sh/core/appview/db"
+
"tangled.sh/tangled.sh/core/appview/email"
+
"tangled.sh/tangled.sh/core/appview/pages"
)
func (s *State) Settings(w http.ResponseWriter, r *http.Request) {
+1 -1
appview/state/signer.go
···
"net/url"
"time"
-
"github.com/sotangled/tangled/types"
+
"tangled.sh/tangled.sh/core/types"
)
type SignerTransport struct {
+3 -3
appview/state/star.go
···
comatproto "github.com/bluesky-social/indigo/api/atproto"
"github.com/bluesky-social/indigo/atproto/syntax"
lexutil "github.com/bluesky-social/indigo/lex/util"
-
tangled "github.com/sotangled/tangled/api/tangled"
-
"github.com/sotangled/tangled/appview/db"
-
"github.com/sotangled/tangled/appview/pages"
+
tangled "tangled.sh/tangled.sh/core/api/tangled"
+
"tangled.sh/tangled.sh/core/appview/db"
+
"tangled.sh/tangled.sh/core/appview/pages"
)
func (s *State) Star(w http.ResponseWriter, r *http.Request) {
+7 -7
appview/state/state.go
···
lexutil "github.com/bluesky-social/indigo/lex/util"
securejoin "github.com/cyphar/filepath-securejoin"
"github.com/go-chi/chi/v5"
-
tangled "github.com/sotangled/tangled/api/tangled"
-
"github.com/sotangled/tangled/appview"
-
"github.com/sotangled/tangled/appview/auth"
-
"github.com/sotangled/tangled/appview/db"
-
"github.com/sotangled/tangled/appview/pages"
-
"github.com/sotangled/tangled/jetstream"
-
"github.com/sotangled/tangled/rbac"
+
tangled "tangled.sh/tangled.sh/core/api/tangled"
+
"tangled.sh/tangled.sh/core/appview"
+
"tangled.sh/tangled.sh/core/appview/auth"
+
"tangled.sh/tangled.sh/core/appview/db"
+
"tangled.sh/tangled.sh/core/appview/pages"
+
"tangled.sh/tangled.sh/core/jetstream"
+
"tangled.sh/tangled.sh/core/rbac"
)
type State struct {
+2 -2
cmd/appview/main.go
···
"net/http"
"os"
-
"github.com/sotangled/tangled/appview"
-
"github.com/sotangled/tangled/appview/state"
+
"tangled.sh/tangled.sh/core/appview"
+
"tangled.sh/tangled.sh/core/appview/state"
)
func main() {
+1 -1
cmd/gen.go
···
package main
import (
-
shtangled "github.com/sotangled/tangled/api/tangled"
cbg "github.com/whyrusleeping/cbor-gen"
+
shtangled "tangled.sh/tangled.sh/core/api/tangled"
)
func main() {
+1 -1
cmd/jstest/main.go
···
"github.com/bluesky-social/jetstream/pkg/client"
"github.com/bluesky-social/jetstream/pkg/models"
-
"github.com/sotangled/tangled/jetstream"
+
"tangled.sh/tangled.sh/core/jetstream"
)
// Simple in-memory implementation of DB interface
+7 -7
cmd/knotserver/main.go
···
"context"
"net/http"
-
"github.com/sotangled/tangled/api/tangled"
-
"github.com/sotangled/tangled/jetstream"
-
"github.com/sotangled/tangled/knotserver"
-
"github.com/sotangled/tangled/knotserver/config"
-
"github.com/sotangled/tangled/knotserver/db"
-
"github.com/sotangled/tangled/log"
-
"github.com/sotangled/tangled/rbac"
+
"tangled.sh/tangled.sh/core/api/tangled"
+
"tangled.sh/tangled.sh/core/jetstream"
+
"tangled.sh/tangled.sh/core/knotserver"
+
"tangled.sh/tangled.sh/core/knotserver/config"
+
"tangled.sh/tangled.sh/core/knotserver/db"
+
"tangled.sh/tangled.sh/core/log"
+
"tangled.sh/tangled.sh/core/rbac"
_ "net/http/pprof"
)
+1 -1
cmd/repoguard/main.go
···
"time"
securejoin "github.com/cyphar/filepath-securejoin"
-
"github.com/sotangled/tangled/appview"
+
"tangled.sh/tangled.sh/core/appview"
)
var (
+3 -3
go.mod
···
-
module github.com/sotangled/tangled
+
module tangled.sh/tangled.sh/core
go 1.23.0
···
github.com/gliderlabs/ssh v0.3.5
github.com/go-chi/chi/v5 v5.2.0
github.com/go-git/go-git/v5 v5.14.0
+
github.com/google/uuid v1.6.0
github.com/gorilla/sessions v1.4.0
github.com/ipfs/go-cid v0.4.1
github.com/mattn/go-sqlite3 v1.14.24
github.com/microcosm-cc/bluemonday v1.0.27
+
github.com/resend/resend-go/v2 v2.15.0
github.com/sethvargo/go-envconfig v1.1.0
github.com/whyrusleeping/cbor-gen v0.2.1-0.20241030202151-b7a6831be65e
github.com/yuin/goldmark v1.4.13
···
github.com/go-logr/stdr v1.2.2 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
-
github.com/google/uuid v1.6.0 // indirect
github.com/gorilla/css v1.0.1 // indirect
github.com/gorilla/securecookie v1.1.2 // indirect
github.com/gorilla/websocket v1.5.1 // indirect
···
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.54.0 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
-
github.com/resend/resend-go/v2 v2.15.0 // indirect
github.com/sergi/go-diff v1.3.1 // indirect
github.com/skeema/knownhosts v1.3.1 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
+1 -1
jetstream/jetstream.go
···
"github.com/bluesky-social/jetstream/pkg/client"
"github.com/bluesky-social/jetstream/pkg/client/schedulers/sequential"
"github.com/bluesky-social/jetstream/pkg/models"
-
"github.com/sotangled/tangled/log"
+
"tangled.sh/tangled.sh/core/log"
)
type DB interface {
+1 -1
knotserver/db/pubkeys.go
···
import (
"time"
-
"github.com/sotangled/tangled/api/tangled"
+
"tangled.sh/tangled.sh/core/api/tangled"
)
type PublicKey struct {
+1 -1
knotserver/file.go
···
"net/http"
"strings"
-
"github.com/sotangled/tangled/types"
+
"tangled.sh/tangled.sh/core/types"
)
func (h *Handle) listFiles(files []types.NiceTree, data map[string]any, w http.ResponseWriter) {
+1 -1
knotserver/git.go
···
securejoin "github.com/cyphar/filepath-securejoin"
"github.com/go-chi/chi/v5"
-
"github.com/sotangled/tangled/knotserver/git/service"
+
"tangled.sh/tangled.sh/core/knotserver/git/service"
)
func (d *Handle) InfoRefs(w http.ResponseWriter, r *http.Request) {
+1 -1
knotserver/git/diff.go
···
"github.com/bluekeyes/go-gitdiff/gitdiff"
"github.com/go-git/go-git/v5/plumbing/object"
-
"github.com/sotangled/tangled/types"
+
"tangled.sh/tangled.sh/core/types"
)
func (g *GitRepo) Diff() (*types.NiceDiff, error) {
+1 -1
knotserver/git/git.go
···
"github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/plumbing"
"github.com/go-git/go-git/v5/plumbing/object"
-
"github.com/sotangled/tangled/types"
+
"tangled.sh/tangled.sh/core/types"
)
var (
+1 -1
knotserver/git/tree.go
···
"fmt"
"github.com/go-git/go-git/v5/plumbing/object"
-
"github.com/sotangled/tangled/types"
+
"tangled.sh/tangled.sh/core/types"
)
func (g *GitRepo) FileTree(path string) ([]types.NiceTree, error) {
+4 -4
knotserver/handler.go
···
"net/http"
"github.com/go-chi/chi/v5"
-
"github.com/sotangled/tangled/jetstream"
-
"github.com/sotangled/tangled/knotserver/config"
-
"github.com/sotangled/tangled/knotserver/db"
-
"github.com/sotangled/tangled/rbac"
+
"tangled.sh/tangled.sh/core/jetstream"
+
"tangled.sh/tangled.sh/core/knotserver/config"
+
"tangled.sh/tangled.sh/core/knotserver/db"
+
"tangled.sh/tangled.sh/core/rbac"
)
const (
+2 -2
knotserver/internal.go
···
"github.com/go-chi/chi/v5"
"github.com/go-chi/chi/v5/middleware"
-
"github.com/sotangled/tangled/knotserver/db"
-
"github.com/sotangled/tangled/rbac"
+
"tangled.sh/tangled.sh/core/knotserver/db"
+
"tangled.sh/tangled.sh/core/rbac"
)
type InternalHandle struct {
+3 -3
knotserver/jetstream.go
···
"strings"
"github.com/bluesky-social/jetstream/pkg/models"
-
"github.com/sotangled/tangled/api/tangled"
-
"github.com/sotangled/tangled/knotserver/db"
-
"github.com/sotangled/tangled/log"
+
"tangled.sh/tangled.sh/core/api/tangled"
+
"tangled.sh/tangled.sh/core/knotserver/db"
+
"tangled.sh/tangled.sh/core/log"
)
func (h *Handle) processPublicKey(ctx context.Context, did string, record tangled.PublicKey) error {
+3 -3
knotserver/routes.go
···
gogit "github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/plumbing"
"github.com/go-git/go-git/v5/plumbing/object"
-
"github.com/sotangled/tangled/knotserver/db"
-
"github.com/sotangled/tangled/knotserver/git"
-
"github.com/sotangled/tangled/types"
+
"tangled.sh/tangled.sh/core/knotserver/db"
+
"tangled.sh/tangled.sh/core/knotserver/git"
+
"tangled.sh/tangled.sh/core/types"
)
func (h *Handle) Index(w http.ResponseWriter, r *http.Request) {
+1 -1
lexicon-build-config.json
···
"package": "tangled",
"prefix": "sh.tangled",
"outdir": "api/tangled",
-
"import": "github.com/sotangled/tangled/api/tangled",
+
"import": "tangled.sh/tangled.sh/core/api/tangled",
"gen-server": true
}
]