Rename to uncensored-send

This commit is contained in:
2026-09-13 08:57:01 +02:00
parent eaa0a5d1d7
commit 7d0d303c2a
21 changed files with 61 additions and 61 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"slices"
"time"
"send/internal/config"
"uncensored-send/internal/config"
)
// adminPage is the one view that shows every object, regardless of who
+1 -1
View File
@@ -14,7 +14,7 @@ import (
// reason to prefer it over localStorage, where any injected script could
// exfiltrate the credential. The page never needs to see the value: the server
// resolves it and renders who the caller is.
const tokenCookie = "send_token"
const tokenCookie = "uncensored_send_token"
// rememberFor is how long a persisted login survives. Tokens are revoked by
// deleting them from the token file, so a long window costs nothing.
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"net/http"
"strings"
"send/internal/auth"
"send/internal/store"
"uncensored-send/internal/auth"
"uncensored-send/internal/store"
)
// handleDelete removes an object early. Three credentials are accepted: the
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"net/http"
"strings"
"send/internal/store"
"uncensored-send/internal/store"
)
// downloadCSP is as inert as a policy gets. Combined with the attachment
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"net/url"
"strings"
"send/internal/config"
"uncensored-send/internal/config"
)
// loginPage backs both the form and its error redisplay.
+3 -3
View File
@@ -6,9 +6,9 @@ import (
"net/http"
"time"
"send/internal/auth"
"send/internal/config"
"send/internal/store"
"uncensored-send/internal/auth"
"uncensored-send/internal/config"
"uncensored-send/internal/store"
)
func writeJSON(w http.ResponseWriter, status int, v any) {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"sync"
"time"
"send/internal/config"
"uncensored-send/internal/config"
)
// limiter is a per-key token bucket. It is deliberately small: there is no
+4 -4
View File
@@ -11,10 +11,10 @@ import (
"strings"
"time"
"send/internal/auth"
"send/internal/config"
"send/internal/store"
"send/web"
"uncensored-send/internal/auth"
"uncensored-send/internal/config"
"uncensored-send/internal/store"
"uncensored-send/web"
)
// Server holds everything the handlers need. It is safe for concurrent use.
+4 -4
View File
@@ -19,9 +19,9 @@ import (
"testing"
"time"
"send/internal/auth"
"send/internal/config"
"send/internal/store"
"uncensored-send/internal/auth"
"uncensored-send/internal/config"
"uncensored-send/internal/store"
)
// clock is the fixed instant tests start from; s.now is swapped so expiry can
@@ -42,7 +42,7 @@ func newHarness(t *testing.T, tweak func(*config.Config)) *harness {
dir := t.TempDir()
cfg := config.Config{}
fs := config.NewSet("test", "SEND_TEST_")
fs := config.NewSet("test", "UNCENSORED_SEND_TEST_")
cfg.Register(fs)
if err := fs.Parse(nil); err != nil {
t.Fatal(err)
+3 -3
View File
@@ -10,9 +10,9 @@ import (
"strings"
"time"
"send/internal/auth"
"send/internal/config"
"send/internal/store"
"uncensored-send/internal/auth"
"uncensored-send/internal/config"
"uncensored-send/internal/store"
)
const (